2002-11-29 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-11-29 Andrew Cagney <ac131313@redhat.com>
2
3 * stack.c (selected_frame, select_frame): Move from here ...
4 * frame.c (selected_frame, select_frame): ... to here. Include
5 "language.h".
6 * Makefile.in (frame.o): Update dependencies.
7 * frame.c (get_selected_frame): New function.
8 * frame.h (get_selected_frame): Declare.
9 (deprecated_selected_frame): Rename selected_frame.
10 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
11 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
12 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
13 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
14 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
15 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
16 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
17 * z8k-tdep.c, cli/cli-cmds.c: Update.
18
19 2002-11-29 Andrew Cagney <ac131313@redhat.com>
20
21 * frame.h (get_selected_block): Add comments.
22
23 2002-11-28 Andrew Cagney <ac131313@redhat.com>
24
25 * frame.c (pc_notcurrent): New function.
26 (find_frame_sal): New function.
27 * frame.h (find_frame_sal): Declare.
28 (struct symtab_and_line): Add opaque declaration.
29 * stack.c (print_frame_info_base): Use find_frame_sal instead of
30 find_pc_line.
31 (frame_info): Ditto.
32 * ada-lang.c (find_printable_frame): Ditto.
33
34 2002-11-28 J. Brobecker <brobecker@gnat.com>
35
36 * configure.in: Check that the pthdebug library is recent enough
37 before enabling thread support on native AiX.
38 * configure: Regenerate.
39
40 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
41 from the list of object files as it is now appended by configure
42 if thread support is enabled.
43 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
44 if thread support is enabled.
45
46 2002-11-28 Andrew Cagney <cagney@redhat.com>
47
48 * stack.c (get_selected_block): In-line get_current_block.
49 * frame.h (get_current_block): Delete declaration.
50 * blockframe.c (get_current_block): Delete function.
51
52 2002-11-28 Andrew Cagney <ac131313@redhat.com>
53
54 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
55 USE_GENERIC_DUMMY_FRAMES.
56 * gdbarch.h, gdbarch.c: Regenerate.
57 * valops.c, frame.c: Update.
58 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
59 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
60 * config/pa/tm-hppa.h, blockframe.c: Update.
61 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
62 * m68k-tdep.c, alpha-tdep.c: Ditto.
63
64 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
65 * mips-tdep.c: Ditto.
66
67 2002-11-27 Andrew Cagney <ac131313@redhat.com>
68
69 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
70 (USE_GENERIC_DUMMY_FRAMES): Default to true.
71 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
72 * gdbarch.c, gdbarch.h: Re-generate.
73 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
74 (CALL_DUMMY_LOCATION): Delete macro definition.
75 (PC_IN_CALL_DUMMY): Delete macro definitions.
76
77 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
78 default is already generic_pc_in_call_dummy.
79 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
80 * v850-tdep.c (v850_gdbarch_init): Ditto.
81 * sh-tdep.c (sh_gdbarch_init): Ditto.
82 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
83 * mips-tdep.c (mips_gdbarch_init): Ditto.
84 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
85 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
86 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
87 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
88 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
89 * avr-tdep.c (avr_gdbarch_init): Ditto.
90
91 * arm-tdep.c (arm_gdbarch_init): Do not set
92 use_generic_dummy_frames, default is already 1.
93 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
94 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
95 * v850-tdep.c (v850_gdbarch_init): Ditto.
96 * sh-tdep.c (sh_gdbarch_init): Ditto.
97 * s390-tdep.c (s390_gdbarch_init): Ditto.
98 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
99 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
100 * mips-tdep.c (mips_gdbarch_init): Ditto.
101 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
102 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
103 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
104 * i386-tdep.c (i386_gdbarch_init): Ditto.
105 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
106 * frv-tdep.c (frv_gdbarch_init): Ditto.
107 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
108 * cris-tdep.c (cris_gdbarch_init): Ditto.
109 * avr-tdep.c (avr_gdbarch_init): Ditto.
110
111 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
112 call_dummy_location, default is already AT_ENTRY_POINT.
113 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
114 * v850-tdep.c (v850_gdbarch_init): Ditto.
115 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
116 * sh-tdep.c (sh_gdbarch_init): Ditto.
117 * s390-tdep.c (s390_gdbarch_init): Ditto.
118 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
119 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
120 * mips-tdep.c (mips_gdbarch_init): Ditto.
121 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
122 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
123 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
124 * i386-tdep.c (i386_gdbarch_init): Ditto.
125 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
126 * frv-tdep.c (frv_gdbarch_init): Ditto.
127 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
128 * cris-tdep.c (cris_gdbarch_init): Ditto.
129 * avr-tdep.c (avr_gdbarch_init): Ditto.
130 * arm-tdep.c (arm_gdbarch_init): Ditto.
131 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
132
133 2002-11-28 Andrew Cagney <cagney@redhat.com>
134
135 * frame.h: Update comments on set_current_frame, create_new_frame,
136 flush_cached_frames, reinit_frame_cache, select_frame and
137 selected_frame.
138
139 2002-11-27 Andrew Cagney <cagney@redhat.com>
140
141 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
142 deprecated pc_in_call_dummy function.
143 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
144 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
145 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
146 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
147 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
148
149 2002-11-26 Martin M. Hunt <hunt@redhat.com>
150
151 * Makefile.in: Remove Tix dependencies.
152 * acinclude.m4: Ditto.
153 * aclocal.m4: Ditto.
154 * configure.in: Ditto.
155 * configure: Regenerated.
156
157 2002-11-26 Andrew Cagney <ac131313@redhat.com>
158
159 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
160 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
161 * gdbarch.c: Re-generate.
162
163 2002-11-26 Andrew Cagney <ac131313@redhat.com>
164
165 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
166 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
167 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
168 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
169 pc_in_call_dummy_at_entry_point.
170 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
171 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
172 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
173 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
174 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
175 pc_in_call_dummy_on_stack.
176 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
177 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
178 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
179 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
180 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
181
182 2002-11-26 Andrew Cagney <ac131313@redhat.com>
183
184 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
185 pc_in_call_dummy_before_text_end
186 (deprecated_pc_in_call_dummy_after_text_end): Rename
187 pc_in_call_dummy_after_text_end.
188 (deprecated_pc_in_call_dummy_on_stack): Rename
189 pc_in_call_dummy_on_stack.
190 (deprecated_pc_in_call_dummy_at_entry_point): Rename
191 pc_in_call_dummy_at_entry_point.
192 * m68k-tdep.c (m68k_gdbarch_init): Update.
193 * s390-tdep.c (s390_gdbarch_init): Update.
194 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
195 * vax-tdep.c (vax_gdbarch_init): Update.
196 * sparc-tdep.c (sparc_gdbarch_init): Update.
197 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
198 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
199 * i386-tdep.c (i386_gdbarch_init): Update.
200 * frv-tdep.c (frv_gdbarch_init): Update.
201 * cris-tdep.c (cris_gdbarch_init): Update.
202 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
203 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
204 (deprecated_pc_in_call_dummy_after_text_end)
205 (deprecated_pc_in_call_dummy_on_stack)
206 (deprecated_pc_in_call_dummy_at_entry_point): Update.
207 * alpha-tdep.c (alpha_gdbarch_init): Update.
208
209 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
210
211 * acconfig.h (HAVE_PREAD64): Add.
212 * configure.in: Check for pread64.
213 * config.in: Regenerated.
214 * configure: Regenerated.
215 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
216 * linux-proc.c (linux_proc_xfer_memory): New function.
217 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
218
219 2002-11-25 David Carlton <carlton@math.stanford.edu>
220
221 * dwarf2read.c (scan_partial_symbols): Descend into namespace
222 pdi's with no name.
223
224 2002-11-25 Andrew Cagney <ac131313@redhat.com>
225
226 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
227 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
228
229 2002-11-25 Jim Blandy <jimb@redhat.com>
230
231 * symfile.c (init_objfile_sect_indices): New function.
232 (default_symfile_offsets): Move the section-index-initializing
233 stuff into init_objfile_sect_indices, and call that.
234
235 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
236 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
237
238 * symfile.c (syms_from_objfile): Adjust indentation.
239
240 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
241 || info_verbose isn't true.
242
243 2002-11-24 Andrew Cagney <ac131313@redhat.com>
244
245 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
246 default to get_frame_base.
247 * gdbarch.h, gdbarch.c: Regenerate.
248 * arch-utils.c (default_frame_address): Delete function.
249 * arch-utils.h (default_frame_address): Delete declaration
250
251 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
252
253 * varobj.c (find_frame_addr_in_frame_chain):
254 Use get_frame_base instead of FRAME_FP,
255 obvious fix.
256
257 2002-11-19 Andrew Cagney <ac131313@redhat.com>
258
259 * frame.h (FRAME_FP): Delete macro.
260 (get_frame_base): New function declaration.
261 * frame.c (get_frame_base): New function.
262 (get_frame_id): Use ->frame.
263 (frame_find_by_id): Rewrite to use get_frame_id.
264 * blockframe.c: Use get_frame_base instead of FRAME_FP.
265 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
266 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
267 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
268 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
269 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
270 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
271
272 2002-11-24 Andrew Cagney <ac131313@redhat.com>
273
274 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
275
276 2002-11-24 Andrew Cagney <ac131313@redhat.com>
277
278 * frame.c (set_unwind_by_pc): Revert change below, use
279 PC_IN_CALL_DUMMY.
280 (get_prev_frame): Ditto.
281
282 2002-11-24 Andrew Cagney <ac131313@redhat.com>
283
284 * dummy-frame.c (pc_in_dummy_frame): New function.
285 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
286 (find_dummy_frame): Update comment.
287 (generic_pop_current_frame): Use get_frame_type.
288 * dummy-frame.h (pc_in_dummy_frame): Declare.
289 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
290 (create_new_frame): Use pc_in_dummy_frame.
291 (get_prev_frame): Use pc_in_dummy_frame.
292 (frame_saved_regs_register_unwind): Use get_prev_frame.
293 (deprecated_generic_get_saved_register): Use get_prev_frame.
294
295 2002-11-23 Andrew Cagney <ac131313@redhat.com>
296
297 * blockframe.c (find_frame_addr_in_frame_chain): Move function
298 from here ...
299 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
300 (varobj_create): Note that frame ID should be used.
301 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
302
303 2002-11-23 Andrew Cagney <ac131313@redhat.com>
304
305 * breakpoint.c: Include "gdb_assert.h".
306 (deprecated_frame_in_dummy): Assert that generic dummy frames are
307 not being used.
308 * Makefile.in (breakpoint.o): Update dependencies.
309 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
310 deprecated_frame_in_dummy.
311 * stack.c (print_frame_info_base): Ditto.
312 (frame_info): Ditto.
313 (print_frame_info_base): Ditto. Delete dead code.
314
315 2002-11-23 Andreas Schwab <schwab@suse.de>
316
317 * Makefile.in (m68k_tdep_h): Define.
318 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
319 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
320 * m68k-tdep.c: Move register number enum ...
321 * m68k-tdep.h: ... to this new file and rename the constants from
322 E_* to M68K_*. All uses changed.
323 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
324 * abug-rom.c: Include "m68k-tdep.h". Use
325 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
326 * cpu32bug-rom.c: Likewise.
327 * dbug-rom.c: Likewise.
328 * m68k-tdep.c: Likewise.
329 * m68klinux-nat.c: Likewise.
330 * remote-est.c: Likewise.
331 * rom68k-rom.c: Likewise.
332 * config/m68k/tm-linux.h: Likewise.
333
334 2002-11-23 Andrew Cagney <ac131313@redhat.com>
335
336 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
337 dummy frame initialization code.
338 * mips-tdep.c (mips_gdbarch_init): Ditto.
339
340 2002-11-22 Christopher Faylor <cgf@redhat.com>
341
342 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
343 attach will hang.
344
345 2002-11-22 Andrew Cagney <ac131313@redhat.com>
346
347 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
348 to default_frame_address.
349 * gdbarch.h, gdbarch.c: Re-generate.
350
351 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
352 or frame_locals_address to default_frame_address.
353 * m68k-tdep.c (m68k_gdbarch_init): Update.
354 * i386-tdep.c (i386_gdbarch_init): Update.
355 * frv-tdep.c (frv_gdbarch_init): Update.
356 * sh-tdep.c (sh_gdbarch_init): Update.
357 * v850-tdep.c (v850_gdbarch_init): Update.
358 * sparc-tdep.c (sparc_gdbarch_init): Update.
359 * mips-tdep.c (mips_gdbarch_init): Update.
360 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
361 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
362 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
363
364 * cris-tdep.c (cris_frame_args_address): Delete function.
365 (cris_frame_locals_address): Delete function.
366 (cris_gdbarch_init): Do not set frame_args_address or
367 frame_locals_address.
368
369 2002-11-22 Michael Snyder <msnyder@redhat.com>
370
371 * thread-db.c (thread_db_load): Tell the user what's going on
372 if dlopen fails on libthread_db.
373
374 2002-11-23 Andreas Schwab <schwab@suse.de>
375
376 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
377 invariant return values.
378
379 2002-11-22 Andreas Schwab <schwab@suse.de>
380
381 * valops.c (value_slice): Move declaration of `offset' to avoid
382 warning.
383
384 2002-11-22 Christopher Faylor <cgf@redhat.com>
385
386 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
387 (struct so_stuff): Add end_addr field.
388 (register_loaded_dll): Calculate and store end address of loaded dll.
389 (solib_address): New function.
390 (child_solib_loaded_library_pathname): Pass carefully constructed
391 section info to safe_symbol_file_add rather than ignoring it.
392 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
393 DLL is loaded.
394 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
395 (child_create_inferior): Fix a compiler warning.
396 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
397 (solib_address): Declare new function.
398
399 2002-11-22 Andreas Schwab <schwab@suse.de>
400
401 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
402 and FPS registers.
403
404 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
405
406 * maint.c (_initialize_maint_cmds): Fix typo. From
407 Francesco Potorti` <pot@gnu.org>.
408
409 2002-11-21 Andrew Cagney <cagney@redhat.com>
410
411 * mips-tdep.c (mips_dump_tdep): Delete references to
412 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
413 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
414 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
415 * printcmd.c (build_address_symbolic): Delete calls to
416 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
417 (address_info): Ditto.
418 Fix PR gdb/773.
419
420 2002-11-19 Klee Dienes <kdienes@apple.com>
421 Adam Fedor <fedor@gnu.org>
422
423 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
424 the ability to explicitly specify the quote characters and word
425 break characters; if NULL is specified for either, use the old
426 behavior of using the characters used by the completer.
427 (skip_chars): New function. Convenience wrapper around
428 skip_quoted_chars to provide the original skip_chars behavior.
429 * completer.h (skip_quoted_chars): Add prototype.
430
431 2002-11-19 Andrew Cagney <ac131313@redhat.com>
432
433 Problems reported by Paul Eggert.
434 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
435
436 2002-11-19 Andreas Schwab <schwab@suse.de>
437
438 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
439 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
440 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
441 (m68k_linux_frame_saved_pc): Move to ...
442 * m68klinux-tdep.c: ... here. New file.
443 * Makefile.in (m68klinux-tdep.o): Add dependencies.
444 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
445
446 2002-11-19 Adam Fedor <fedor@gnu.org>
447
448 * objc-exp.y: Revert to old skip_quoted usage.
449
450 2002-11-19 Adam Fedor <fedor@gnu.org>
451
452 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
453 (objc_lang_h): Define.
454 (YYFILES): Add objc-exp.tab.c.
455 (local-maintainer-clean): Remove objc-exp.tab.c.
456 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
457
458 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
459
460 * p-exp.y (typecast rule): Add automatic dereference of
461 pascal classes if needed.
462 (THIS): Set current_type.
463 Automatically dereference pascal classes.
464 (typebase rule): Add ^typebase recognition.
465
466 2002-11-18 Adam Fedor <fedor@gnu.org>
467
468 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
469 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
470 (op_name): Handle OP_OBJC_SELF.
471 * Makefile.in (expprint.o): Add additional depends.
472
473 2002-11-18 Adam Fedor <fedor@gnu.org>
474
475 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
476 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
477 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
478 * objc-exp.y: Likewise.
479
480 2002-11-18 Adam Fedor <fedor@gnu.org>
481
482 * gdb/parser-defs.h: (struct objc_class_str): New structure
483 for parsing ObjC classes.
484
485 2002-11-18 Andrew Cagney <ac131313@redhat.com>
486
487 * stack.c (frame_relative_level): Copy function from here ...
488 * frame.c (frame_relative_level): ...to here.
489
490 2002-11-18 Andrew Cagney <ac131313@redhat.com>
491
492 * frame.h (enum frame_type): Define.
493 (get_frame_type): Declare.
494 (struct frame_info): Add field `type'. Delete field
495 signal_handler_caller.
496 (deprecated_set_frame_signal_handler_caller): Declare.
497 * frame.c (get_frame_type): New function.
498 (deprecated_set_frame_type): New function.
499 (create_new_frame): Set the frame's type.
500 (get_prev_frame): Similar.
501 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
502 * s390-tdep.c: Ditto.
503 * m68klinux-nat.c: Ditto.
504 * ns32k-tdep.c: Ditto.
505 * x86-64-linux-tdep.c: Ditto.
506 * vax-tdep.c: Ditto.
507 * rs6000-tdep.c: Ditto.
508 * ppc-linux-tdep.c: Ditto.
509 * i386-interix-tdep.c: Ditto.
510 * mips-tdep.c: Ditto.
511 * m68k-tdep.c: Ditto.
512 * hppa-tdep.c: Ditto.
513 * ia64-tdep.c: Ditto.
514 * cris-tdep.c: Ditto.
515 * arm-tdep.c: Ditto.
516 * alpha-tdep.c: Ditto.
517 * i386-tdep.c: Ditto.
518 * stack.c: Ditto.
519 * ada-lang.c: Ditto.
520 * blockframe.c: Update.
521 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
522 deprecated_set_frame_type instead of signal_handler_caller.
523 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
524 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
525 * breakpoint.h: Delete FIXME suggesting get_frame_type.
526
527 2002-11-18 Klee Dienes <kdienes@apple.com>
528
529 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
530
531 2002-11-18 Klee Dienes <kdienes@apple.com>
532
533 * buildsym.c (pop_context): Add comment.
534
535 2002-11-18 Klee Dienes <kdienes@apple.com>
536
537 * buildsym.h (pop_context): Convert to function, defined in
538 buildsym.c.
539 * buildsym.c: Include gdb_assert.h.
540 (pop_context): Implement as C function. Add check for stack
541 underflow.
542 * dbxread.c (process_one_symbol): Complain and stop processing
543 that symbol if we are already at the top of the context stack for
544 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
545 when processing N_RBRAC.
546
547 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
548
549 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
550 define.
551 (struct target_waitstatus): Add opaque definition.
552 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
553 * exec.c (init_exec_ops): Likewise.
554 * fork-child.c (clone_and_follow_inferior): Remove.
555 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
556 * inferior.h (clone_and_follow_inferior): Remove prototype.
557 * infrun.c (follow_fork_mode_both): Remove.
558 (follow_fork_mode_kind_names): Remove commented out "both".
559 (follow_inferior_fork): Remove follow_fork_mode_both support.
560 * inftarg.c (child_clone_and_follow_inferior): Remove.
561 (child_post_follow_inferior_by_clone): Remove.
562 (init_child_ops): Don't set to_clone_and_follow_inferior
563 or to_post_follow_inferior_by_clone.
564 * target.c (default_clone_and_follow_inferior): Remove.
565 (cleanup_target): Don't set to_clone_and_follow_inferior
566 or to_post_follow_inferior_by_clone.
567 (find_default_clone_and_follow_inferior): Remove.
568 (init_dummy_target): Don't set to_clone_and_follow_inferior.
569 (debug_to_clone_and_follow_inferior): Remove.
570 (debug_to_post_follow_inferior_by_clone): Remove.
571 (setup_target_debug): Don't set to_clone_and_follow_inferior
572 or to_post_follow_inferior_by_clone.
573 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
574 and to_post_follow_inferior_by_clone.
575 (child_clone_and_follow_inferior): Remove prototype.
576 (child_post_follow_inferior_by_clone): Remove prototype.
577 (target_clone_and_follow_inferior): Remove macro.
578 (target_post_follow_inferior_by_clone): Remove macro.
579 (find_default_clone_and_follow_inferior): Remove prototype.
580
581 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
582
583 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
584 inferior_has_vforked, and inferior_has_execd instead of
585 target_has_forked, target_has_vforked, and target_has_execd.
586 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
587 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
588 (CHILD_WAIT): Define.
589 (child_wait): Add prototype.
590 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
591 Add prototype.
592 (hpux_has_vforked): Likewise, from child_has_vforked.
593 (hpux_has_execd): Likewise, from child_has_execd.
594 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
595 (not_same_real_pid, child_wait): New, copied from inftarg.c.
596 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
597 and hpux_has_syscall_event instead of the target hooks.
598 * infrun.c (inferior_has_forked, inferior_has_vforked)
599 (inferior_has_execd): New functions.
600 * inftarg.c (not_same_real_pid): Remove.
601 (child_wait): Remove references to not_same_real_pid,
602 target_has_forked, target_has_vforked, target_has_execd,
603 and target_has_syscall_event.
604 (child_has_forked, child_has_vforked, child_has_execd)
605 (child_has_syscall_event): Remove.
606 (init_child_ops): Remove references to child_has_forked,
607 child_has_vforked, child_has_execd, and child_has_syscall_event.
608 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
609 (hpux_has_vforked): Likewise, from child_has_vforked.
610 (hpux_has_execd): Likewise, from child_has_execd.
611 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
612 * target.c (cleanup_target): Remove references to
613 to_has_forked, to_has_vforked, to_has_execd, and
614 to_has_syscall_event.
615 (update_current_target): Likewise.
616 (setup_target_debug): Likewise.
617 (debug_to_has_forked): Remove.
618 (debug_to_has_vforked): Remove.
619 (debug_to_has_execd): Remove.
620 (debug_to_has_syscall_event): Remove.
621 * target.h (struct target_ops): Remove to_has_forked.
622 to_has_vforked, to_has_execd, and to_has_syscall_event.
623 (child_has_forked, child_has_vforked, child_has_execd)
624 (child_has_syscall_event): Remove prototypes.
625 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
626 prototypes.
627 (target_has_forked, target_has_vforked, target_has_execd)
628 (target_has_syscall_event): Remove macros.
629
630 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
631
632 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
633 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
634 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
635 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
636 * target.c (cleanup_target): Remove reference to
637 to_can_follow_vfork_prior_to_exec.
638 (update_current_target): Likewise.
639 (debug_to_can_follow_vfork_prior_to_exec): Remove.
640 (setup_target_debug): Remove reference to
641 to_can_follow_vfork_prior_to_exec.
642 * target.h (struct target_ops): Remove
643 to_can_follow_vfork_prior_to_exec.
644 (child_can_follow_vfork_prior_to_exec): Remove prototype.
645 (target_can_follow_vfork_prior_to_exec): Remove definition.
646 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
647 define.
648 * infrun.c (follow_vfork_when_exec): Remove.
649 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
650 (follow_exec): Likewise.
651 (handle_inferior_event): Likewise.
652 (keep_going): Likewise.
653
654 2002-11-15 Andrew Cagney <cagney@redhat.com>
655
656 * frame.c (generic_unwind_get_saved_register): Make static.
657 * frame.h (generic_unwind_get_saved_register): Delete declaration.
658 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
659 defaults to generic_unwind_get_saved_register.
660 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
661 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
662 * frv-tdep.c (frv_gdbarch_init): Ditto.
663 * i386-tdep.c (i386_gdbarch_init): Ditto.
664 * s390-tdep.c (s390_gdbarch_init): Ditto.
665 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
666 * v850-tdep.c (v850_gdbarch_init): Ditto.
667 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
668 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
669 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
670
671 2002-11-15 Andrew Cagney <cagney@redhat.com>
672
673 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
674 i386-tdep.c.
675
676 2002-11-15 Andrew Cagney <cagney@redhat.com>
677
678 * frame.h (sigtramp_saved_pc): Delete declaration.
679 * blockframe.c (sigtramp_saved_pc): Delete function.
680 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
681 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
682 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
683 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
684
685 2002-11-15 Andrew Cagney <ac131313@redhat.com>
686
687 * frame.c (frame_pc_unwind): New function.
688 (frame_saved_regs_pc_unwind): New function.
689 (frame_register_unwind): Pass unwind_cache instead of
690 register_unwind_cache.
691 (set_unwind_by_pc): Add unwind_pc parameter, set.
692 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
693 (get_prev_frame): Ditto.
694 * frame.h (frame_pc_unwind_ftype): Declare.
695 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
696 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
697 (frame_pc_unwind): Declare.
698 * dummy-frame.c (dummy_frame_pc_unwind): New function.
699 (struct dummy_frame): Add comment mentioning that values are for
700 previous frame.
701 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
702 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
703 (generic_file_frame_chain_valid): Ditto.
704 * stack.c (frame_info): Ditto.
705
706 2002-11-15 David Carlton <carlton@math.stanford.edu>
707
708 * linespec.c (locate_first_half): New function.
709 (decode_line_1): Move code into locate_first_half.
710
711 2002-11-15 Andrew Cagney <ac131313@redhat.com>
712
713 * complaints.h: Add comment explaining how to eliminate a
714 deprecated_complain call.
715 * complaints.h: Fix spelling errors.
716
717 2002-11-15 David Carlton <carlton@math.stanford.edu>
718
719 * printcmd.c: Remove #include "disasm.h".
720
721 2002-11-14 Andrew Cagney <ac131313@redhat.com>
722
723 * frame.h: Move the most relevant interface functions to the start
724 of the file.
725
726 2002-11-14 Andrew Cagney <ac131313@redhat.com>
727
728 * regcache.h (deprecated_registers): Rename registers.
729 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
730 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
731 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
732 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
733 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
734 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
735 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
736 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
737 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
738 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
739 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
740 * v850ice.c: Update.
741
742 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
743
744 * utils.c (gdb_realpath): Add comment mentioning realpath with a
745 NULL buffer.
746
747 2002-11-13 Andrew Cagney <cagney@redhat.com>
748
749 * regcache.h (deprecated_read_register_bytes): Rename
750 read_register_bytes.
751 (deprecated_write_register_bytes): Rename write_register_bytes.
752 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
753 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
754 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
755 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
756 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
757 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
758 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
759 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
760 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
761 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
762 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
763 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
764 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
765 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
766
767 2002-11-13 Jim Blandy <jimb@redhat.com>
768
769 * findvar.c (read_var_value): Doc fix.
770
771 2002-11-13 Andrew Cagney <cagney@redhat.com>
772
773 * regcache.c (struct regcache): Replace passthough_p with
774 readonly_p.
775 (regcache_xmalloc): Initialize readonly_p.
776 (build_regcache): Initialize readonly_p.
777 (regcache_save): New function.
778 (regcache_restore): New function.
779 (regcache_cpy): Re-implement using regcache_save and
780 regcache_restore.
781 (regcache_raw_read): Update.
782 (regcache_cooked_read): When a read-only cache, checked for cached
783 pseudo register values.
784 (regcache_raw_write): Assert that the cache is not read-only.
785 Remove code handling a non-passthrough cache.
786 * regcache.h (regcache_save): Declare.
787 (regcache_restore): Declare.
788
789 2002-11-13 Andrew Cagney <cagney@redhat.com>
790
791 * regcache.c (struct regcache_descr): Add fields
792 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
793 (init_legacy_regcache_descr): Compute the size of a cooked
794 register cache and then assign that to sizeof_raw_registers. Set
795 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
796 (init_legacy_regcache_descr): Ditto.
797
798 2002-11-13 Andrew Cagney <cagney@redhat.com>
799
800 * regcache.c (register_buffer): Move to near start of file, update
801 description.
802 (regcache_raw_read): Use.
803 (regcache_raw_write): Use.
804 (struct regcache): Rename raw_registers to registers and
805 raw_register_valid_p to register_valid_p.
806 (regcache_xmalloc): Update.
807 (regcache_xfree): Update.
808 (register_buffer): Update.
809 (regcache_cpy): Update.
810 (regcache_cpy_no_passthrough): Update.
811 (regcache_valid_p): Update.
812 (deprecated_grub_regcache_for_registers): Update.
813 (deprecated_grub_regcache_for_register_valid): Update.
814 (set_register_cached): Update.
815 (regcache_raw_write): Update.
816
817 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
818
819 * p-exp.y (name_not_typename): Use copy_name to
820 set current_type variable for fields of THIS.
821
822 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
823
824 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
825 * monitor.c (init_base_monitor_ops): Likewise.
826 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
827 * remote-array.c (init_array_ops): Likewise.
828 * remote-e7000.c (init_e7000_ops): Likewise.
829 * remote-es.c (init_es1800_ops): Likewise.
830 (init_es1800_child_ops): Likewise.
831 * remote-rdp.c (init_remote_rdp_ops): Likewise.
832 * remote-sim.c (init_gdbsim_ops): Likewise.
833 * remote-st.c (init_st2000_ops): Likewise.
834 * sol-thread.c (init_sol_core_ops): Likewise.
835 (init_sol_thread_ops): Likewise.
836 * v850ice.c (init_850ice_ops): Likewise.
837 * win32-nat.c (init_child_ops): Likewise.
838 * wince.c (init_child_ops): Likewise.
839
840 2002-11-12 Andrew Cagney <ac131313@redhat.com>
841
842 * utils.c (gdb_realpath): Make rp a constant pointer.
843
844 2002-11-12 Andrew Cagney <ac131313@redhat.com>
845
846 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
847 a constant buffer; cannonicalize_file_name(); realpath() with a
848 pathconf() defined buffer, xstrdup().
849
850 2002-11-12 Andrew Cagney <ac131313@redhat.com>
851
852 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
853 to hang2.C; hang3.c to hang3.C.
854
855 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
856
857 * findvar.c (read_var_value): Reenable TLS code.
858
859 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
860 Jim Blandy <jimb@redhat.com>
861
862 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
863 * target.c (update_current_target): Add
864 to_get_thread_local_address.
865 * target.h (to_get_thread_local_address): Export.
866 (target_get_thread_local_address): Define.
867 (target_get_thread_local_address_p): Define.
868 * thread-db.c: Include solib-svr4.h.
869 (td_thr_tls_get_addr_p): Define.
870 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
871 (thread_db_get_thread_local_address): New function.
872 (init_thread_db_ops): Initialize to_get_thread_local_address.
873 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
874 * configure: Regenerate.
875 * config.in: Regenerate.
876
877 2002-11-11 David Carlton <carlton@math.stanford.edu>
878
879 * linespec.c (set_flags): New function.
880 (decode_line_1): Move code into set_flags.
881
882 2002-11-11 David Carlton <carlton@math.stanford.edu>
883
884 * linespec.c (decode_line_1): Move chunks of code to separate
885 functions.
886 (initialize_defaults): New function.
887 (decode_indirect): New function.
888
889 2002-11-11 Andrew Cagney <ac131313@redhat.com>
890
891 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
892 instead of void_code_ptr.
893 (sigtramp_saved_pc): Ditto.
894
895 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
896 i386_fp_regnum_p.
897
898 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
899
900 * gdbtypes.h (struct main_type): Move artificial flag out of
901 loc. New member of ``struct field'' named static_kind. Reduce
902 overloaded meaning of bitsize.
903 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
904 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
905 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
906
907 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
908 new fields.
909 (template_to_fixed_record_type, template_to_static_fixed_type)
910 (to_record_with_fixed_variant_part): Likewise.
911 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
912 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
913 * dwarfread.c (struct_type, enum_type): Likewise.
914 * hpread.c (hpread_read_enum_type)
915 (hpread_read_function_type, hpread_read_doc_function_type)
916 (hpread_read_struct_type): Likewise.
917 * mdebugread.c (parse_symbol): Likewise.
918
919 2002-11-10 Andrew Cagney <ac131313@redhat.com>
920
921 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
922 * stack.c (print_frame_info_base): Update.
923 (print_frame_info_base, frame_info): Update.
924 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
925 (sparc_frame_saved_pc): Update.
926 * ada-lang.c (find_printable_frame): Update.
927 * breakpoint.c (deprecated_frame_in_dummy): Update.
928
929 2002-11-09 Mark Kettenis <kettenis@gnu.org>
930
931 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
932 defined.
933 (regmap): Extend to cover all registers.
934 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
935 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
936 definitions.
937 (fetch_register, sore_register): Simplify.
938 (old_fetch_inferior_registers, old_store_inferior_registers):
939 Remove functions.
940 (cannot_fetch_register, cannot_store_register): Change
941 implementation to use regmap array to decide which registers
942 cannot be fetched/stored. This removes $orig_eax from the
943 registers that cannot be fetched/stored.
944 (fetch_inferior_registers): Call fetch_register directly instead
945 of calling old_fetch_inferior_registers.
946 (store_inferior_registers): Call store_register directly instead
947 of calling old_store_inferior_registers.
948 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
949 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
950 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
951
952 2002-11-09 Klee Dienes <kdienes@apple.com>
953
954 * i387-tdep.c (i387_supply_register): When called with NULL as a
955 buffer, mark the register as not provided (to mirror the behavior
956 of supply_register).
957 (i387_supply_fxsave): Ditto.
958 (i387_supply_fsave): Ditto (inherits the behavior from
959 i387_supply_register).
960
961 2002-11-09 Klee Dienes <kdienes@apple.com>
962
963 * blockframe.c (sigtramp_saved_pc): Use
964 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
965 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
966 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
967
968 2002-11-09 Andrew Cagney <ac131313@redhat.com>
969
970 * frame.c (get_prev_frame): Test prev_p to identify a previously
971 unwound frame. Initialize prev_p.
972 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
973 comment.
974
975 2002-11-09 Andrew Cagney <ac131313@redhat.com>
976
977 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
978 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
979 more comments. Zap dead code.
980
981 2002-11-09 Mark Kettenis <kettenis@gnu.org>
982
983 * infcmd.c (print_vector_info, print_float_info): Move code that
984 checks whether the target has any registers and whether there is a
985 selected frame up, such that it is also used if a target provides
986 multi-arch definitions of these functions.
987
988 2002-11-08 Andrew Cagney <ac131313@redhat.com>
989
990 * Makefile.in (DESTDIR): Define.
991 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
992 prefix.
993
994 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
995 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
996
997 2002-11-08 Andrew Cagney <ac131313@redhat.com>
998
999 * i386-linux-tdep.c: Include "reggroups.h".
1000 (i386_linux_register_reggroup_p): New function.
1001 (i386_linux_init_abi): Set register_reggroup_p to
1002 i386_linux_register_reggroup_p.
1003 * i386-tdep.h (i386_register_reggroup_p): Declare.
1004 * i386-tdep.c: Include "reggroups.h".
1005 (i386_init_reggroups): New function.
1006 (i386_add_reggroups): New function.
1007 (i386_register_reggroup_p): New function.
1008 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1009 (_initialize_i386_tdep): Call i386_init_reggroups.
1010 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1011 specific reggroups.
1012
1013 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1014
1015 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1016 request that's available in *BSD.
1017
1018 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1019
1020 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1021 FDOFF_REGNUM.
1022
1023 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1024
1025 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1026 * dummy-frame.c (find_dummy_frame): Rename
1027 generic_find_dummy_frame, make static. Return the dummy frame
1028 instead of the regcache.
1029 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1030 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1031 (dummy_frame_register_unwind): Rename
1032 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1033 * dummy-frame.h (dummy_frame_register_unwind): Rename
1034 generic_call_dummy_register_unwind.
1035
1036 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1037
1038 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1039 except the inclusion of "i386/tm-i386.h", to...
1040 * config/i386/nm-i386v42mp.h: ...here.
1041 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1042
1043 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1044
1045 * Makefile.in (frame.o): Update dependencies.
1046 * blockframe.c (current_frame, frame_obstack_alloc)
1047 (frame_saved_regs_zalloc, get_current_frame)
1048 (set_current_frame, create_new_frame)
1049 (set_unwind_by_pc, get_next_frame)
1050 (flush_cached_frames, reinit_frame_cache)
1051 (frame_saved_regs_register_unwind)
1052 (deprecated_generic_get_saved_register)
1053 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1054 (_initialize_blockframe): Move frame code from here...
1055 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1056 "annotate.h" and "dummy-frame.h".
1057 (_initialize_frame): New function.
1058
1059 2002-11-08 Jim Blandy <jimb@redhat.com>
1060
1061 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1062 when we finish a function a context.
1063 * buildsym.h (outermost_context_p): New macro.
1064 (Bug analyzed by David Edelsohn.)
1065
1066 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1067
1068 * blockframe.c: Include "dummy-frame.h".
1069 (struct dummy_frame, dummy_frame_stack)
1070 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1071 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1072 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1073 (generic_save_call_dummy_addr, generic_pop_current_frame)
1074 (generic_pop_dummy_frame, generic_fix_call_dummy)
1075 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1076 dummy frame code from here...
1077 * dummy-frame.c: ...to here. New file.
1078 * dummy-frame.h: New file.
1079 (generic_call_dummy_register_unwind): Declare.
1080 (generic_find_dummy_frame): Declare.
1081 * Makefile.in (SFILES): Add dummy-frame.c.
1082 (dummy-frame.o): Specify dependencies.
1083 (dummy_frame_h): Define.
1084 (COMMON_OBS): Add dummy-frame.o.
1085 (blockframe.o): Update dependencies.
1086
1087 2002-11-08 Jim Blandy <jimb@redhat.com>
1088
1089 * dwarf2read.c (read_func_scope): Restore local_symbols and
1090 param_symbols after we finish the function context. (Based on a
1091 patch from David Edelsohn.)
1092
1093 2002-11-08 David Carlton <carlton@math.stanford.edu>
1094
1095 * linespec.c (symbol_found): New function.
1096 (minsym_found): New function.
1097 (decode_line_1): Separate out some code into separate functions.
1098
1099 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1100
1101 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1102 the benefit of the interix target.
1103 * i386-tdep.h (i386_frameless_signal_p): Declare.
1104
1105 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1106
1107 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1108 declaration that snuck in from change below.
1109
1110 2002-11-06 Andrew Cagney <cagney@redhat.com>
1111
1112 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1113 all callers.
1114 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1115 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1116 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1117 (i386_mxcsr_regnum_p): new function. Use instead of
1118 MXCSR_REGNUM_P.
1119 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1120 (i386_sse_regnum_p): Declare.
1121 (i386_mxcsr_regnum_p): Declare.
1122 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1123 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1124 (IS_FP_REGNUM): Update definition.
1125 (IS_FPU_CTRL_REGNUM): Update definition..
1126 (IS_SSE_REGNUM): Update definition..
1127 * i386v-nat.c (register_u_addr): Update.
1128 * go32-nat.c (fetch_register): Update.
1129 (store_register): Update.
1130
1131 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1132
1133 Preparation work to convert the hppa targets to multiarch partial.
1134
1135 * hppa-tdep.c: Add new functions replacing macro bodies from
1136 config/pa/tm-hppa.h. These function will be used to initialize
1137 the gdbarch structure. Import some comments from tm-hppa.h,
1138 and place them where appropriate, to avoid loosing them when
1139 we cleanup this file.
1140 (hppa_reg_struct_has_addr): New function.
1141 (hppa_inner_than): New function.
1142 (hppa_stack_align): New function.
1143 (hppa_pc_requires_run_before_use): New function.
1144 (hppa_instruction_nullified): New function.
1145 (hppa_register_byte): New function.
1146 (hppa_register_virtual_type): New function.
1147 (hppa_store_struct_return): New function.
1148 (hppa_cannot_store_register): New function.
1149 (hppa_frame_args_address): New function.
1150 (hppa_frame_locals_address): New function.
1151 (hppa_smash_text_address): New function.
1152 (hppa_coerce_float_to_double): New function. Requires the inclusion
1153 of "language.h".
1154
1155 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1156
1157 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1158 gdbarch-eligible macro to a call to the new associated function
1159 created in hppa-tdep.c.
1160 (INNER_THAN): Likewise.
1161 (STACK_ALIGN): Likewise.
1162 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1163 (INSTRUCTION_NULLIFIED): Likewise.
1164 (REGISTER_BYTE): Likewise.
1165 (REGISTER_VIRTUAL_TYPE): Likewise.
1166 (STORE_STRUCT_RETURN): Likewise.
1167 (CANNOT_STORE_REGISTER): Likewise.
1168 (FRAME_ARGS_ADDRESS): Likewise.
1169 (FRAME_LOCALS_ADDRESS): Likewise.
1170 (SMASH_TEXT_ADDRESS): Likewise.
1171 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1172 (ABOUT_TO_RETURN): Delete, as no longer used.
1173
1174 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1175
1176 * printcmd.c (disassemble_command): Remove obsolete function.
1177 (_initialize_printcmd): Do not create disassemble command here.
1178 * cli/cli-cmds.c (disassemble_command): New function. Implements
1179 disassemble command.
1180 (init_cli_cmds): Create disassemble command here instead.
1181
1182 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1183
1184 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1185
1186 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1187
1188 * regcache.h (regcache_cooked_read_using_offset_hack)
1189 (regcache_cooked_write_using_offset_hack): Delete declarations.
1190 (register_changed): Delete declaration.
1191 * regcache.c (regcache_cooked_read_using_offset_hack)
1192 (regcache_cooked_write_using_offset_hack): Delete functions.
1193 (cooked_xfer_using_offset_hack): Delete function.
1194 (register_changed): Delete function.
1195
1196 2002-11-07 Jim Blandy <jimb@redhat.com>
1197
1198 * macroscope.c: #include "complaints.h".
1199 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1200 but not in the macro table.
1201 * Makefile.in (macroscope.o): Record dependency.
1202
1203 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1204
1205 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1206
1207 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1208
1209 * regcache.c (deprecated_registers_fetched): Update.
1210 * regcache.h (deprecated_registers_fetched): Rename
1211 registers_fetched.
1212 * remote-vxsparc.c (vx_read_register): Update.
1213 * remote-vxmips.c (vx_read_register): Update.
1214 * remote-vx68.c (vx_read_register): Update.
1215 * irix5-nat.c (fetch_core_registers): Update.
1216 * mipsm3-nat.c (fetch_inferior_registers): Update.
1217 * sun3-nat.c (fetch_inferior_registers): Update.
1218 * symm-nat.c (fetch_inferior_registers): Update.
1219 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1220 (fetch_core_registers): Update.
1221 (fetch_kcore_registers): Update.
1222 * mips-nat.c (fetch_inferior_registers): Update.
1223 * corelow.c (get_core_registers): Update.
1224 * a68v-nat.c (fetch_inferior_registers): Update.
1225
1226 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1227
1228 Put in place the framework necessary for multiarching the hppa targets.
1229 * hppa-tdep.c (hppa_gdbarch_init): New function.
1230 (hppa_dump_tdep): New function.
1231 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1232 tdep structure dumper.
1233 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1234 until the multi-arching conversion has partially been completed.
1235
1236 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1237
1238 * valops.c (value_assign): Merge lval_register case into
1239 lval_reg_frame_relative. Use frame_register and
1240 regcache_cooked_write instead of get_saved_register and
1241 write_register_bytes. After flushing the register cache, try to
1242 re-select the selected frame.
1243
1244 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1245
1246 * regcache.h (deprecated_register_valid): Rename register_valid.
1247 * regcache.c: Update.
1248 * ia64-aix-nat.c: Update.
1249 * i386gnu-nat.c: Update.
1250 * alpha-nat.c: Update.
1251 * sparc-nat.c: Update.
1252 * lynx-nat.c: Update.
1253 * remote-mips.c: Update.
1254
1255 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1256
1257 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1258 to end of file, to be more consistent with the pratice followed
1259 by other targets.
1260
1261 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1262
1263 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1264 (print_float_info): Print registers in float_reggroup.
1265 (print_vector_info): Print registers in vector_reggroup.
1266 (default_print_registers_info): When all, print registers in
1267 all_reggroup. Otherwize, print registers in general_reggroup.
1268 (registers_info): Rewrite. Add support for register groups.
1269 Eliminate a goto.
1270
1271 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1272
1273 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1274 ages.
1275 (symtab_symbol_info): Remove eons old ifdeffed out code.
1276 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1277 command.
1278
1279 2002-11-06 Theodore A. Roth <troth@openavr.org>
1280
1281 * c-exp.y: Add missing semi-colons.
1282 * f-exp.y: Add missing semi-colons.
1283 * m2-exp.y: Add missing semi-colons.
1284 * p-exp.y: Add missing semi-colons.
1285 Add empty action to start rule to avoid a type clash error when
1286 building with bison >= 1.50.
1287
1288 2002-11-06 Jim Blandy <jimb@redhat.com>
1289
1290 * macrotab.h (struct macro_source_file): Doc fix.
1291
1292 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1293
1294 * varobj.c (child_exists, cplus_number_of_children): Change
1295 STREQ macro references to strcmp.
1296 (cplus_name_of_child): Change code to handle the fact that
1297 fields are not necessarily contiguous with regards to their
1298 access control. This is a fix for PR gdb/792.
1299
1300 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1301
1302 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1303 * gdbarch.h, gdbarch.c: Regnerate.
1304 * frame.h (frame_register): Declare.
1305 * frame.c (frame_register): New function.
1306 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1307 GET_SAVED_REGISTER, otherwize call
1308 generic_unwind_get_saved_register.
1309 (frame_register_read): Use frame_register instead of
1310 get_saved_register.
1311
1312 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1313
1314 From Jim Ingham <jingham@apple.com>:
1315 * event-top.c (gdb_disable_readline): New function.
1316 (_initialize_event_loop): Move comment.
1317
1318 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1319
1320 * event-loop.c (start_event_loop): Add comment.
1321 Update copyright.
1322
1323 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1324
1325 * infcmd.c (default_print_registers_info): Do not call
1326 PRINT_REGISTER_HOOK.
1327
1328 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1329
1330 * sparc-tdep.c (sparc_print_register_hook): Make static.
1331 (sparc_print_registers_info): New function.
1332 (sparc_do_registers_info): New function.
1333 (sparclet_print_registers_info): New function.
1334 (sparclet_do_registers_info): New function.
1335 (do_sparc_print_registers_info): New function.
1336 (sparc_print_registers): New static function, clone of infcmd.c's
1337 default_print_registers_info.
1338 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1339 (sparclet_do_registers_info): Declare.
1340 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1341 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1342 Re-define.
1343 (sparc_do_registers_info): Declare.
1344 (PRINT_REGISTER_HOOK): Delete macro.
1345 (sparc_print_register_hook): Delete declaration.
1346
1347 2002-11-05 David Carlton <carlton@math.stanford.edu>
1348
1349 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1350 functions.
1351 (lookup_symbol_aux_local): New function.
1352 (lookup_symbol_aux_symtabs): New function.
1353 (lookup_symbol_aux_psymtabs): New function.
1354
1355 2002-11-05 David Carlton <carlton@math.stanford.edu>
1356
1357 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1358 previous values of 'objfile' and 'block'.
1359
1360 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1361
1362 * values.c (value_change_enclosing_type): Set
1363 enclosing_type field correctly also for the case where
1364 more memory needs to be allocated.
1365
1366 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1367
1368 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1369 of puts_filtered.
1370
1371 * i387-tdep.c (i387_print_float_info): Replace calls to
1372 register_read and deprecated_read_register_gen with calls to
1373 frame_register_read, and make the necessary adjustments to the
1374 surrounding code.
1375
1376 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1377
1378 * gdbarch.sh (register_reggroup_p): Allow default value.
1379 * gdbarch.h, gdbarch.c: Regenerate.
1380
1381 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1382
1383 * regcache.h: Add coment indicating replacements for deprecated
1384 functions.
1385
1386 2002-11-02 Andrew Cagney <cagney@redhat.com>
1387
1388 * reggroups.h, reggroups.c: New files.
1389 * regcache.c: Include "reggroups.h".
1390 (enum regcache_dump_what): Add `regcache_dump_groups'.
1391 (regcache_dump): Contract size of the "Type" column. When
1392 specified, dump the register's groups.
1393 (maintenance_print_register_groups): New function.
1394 (_initialize_regcache): Add command `maint print register-groups'.
1395 * Makefile.in (COMMON_OBS): Add reggroups.o
1396 (SFILES): Add reggroups.c.
1397 (reggroups_h): Define.
1398 (regcache.o, gdbarch.o): Update dependencies.
1399 (reggroups.o): Specify dependencies.
1400 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1401 Add opaque declaration for `struct reggroup' in generated .h file.
1402 Include "reggroups.h" in generated .c file.
1403 gdbarch.h, gdbarch.c: Re-generate.
1404
1405 2002-11-02 Andrew Cagney <cagney@redhat.com>
1406
1407 * regcache.h (deprecated_read_register_gen): Rename
1408 read_register_gen.
1409 (deprecated_write_register_gen): Rename write_register_gen.
1410 * i387-tdep.c: Update.
1411 * x86-64-linux-nat.c: Update
1412 * wince.c: Update.
1413 * thread-db.c: Update.
1414 * win32-nat.c: Update.
1415 * mips-tdep.c: Update.
1416 * d10v-tdep.c: Update.
1417 * cris-tdep.c: Update.
1418 * remote-sim.c: Update.
1419 * remote-rdi.c: Update.
1420 * remote-rdp.c: Update.
1421 * frame.c: Update.
1422 * target.c: Update.
1423 * blockframe.c: Update.
1424 * x86-64-tdep.c: Update.
1425 * xstormy16-tdep.c: Update.
1426 * sh-tdep.c: Update.
1427 * s390-tdep.c: Update.
1428 * rs6000-tdep.c: Update.
1429 * sparc-tdep.c: Update.
1430 * i386-tdep.c: Update.
1431 * dwarf2cfi.c: Update.
1432 * regcache.c: Update.
1433
1434 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1435
1436 New interix-specific files:
1437 * config/i386/nm-interix.h: New file.
1438 * config/i386/interix.mh: New file.
1439 * config/i386/interix.mt: New file.
1440 * i386-interix-nat.c: New file.
1441 * i386-interix-tdep.c: New file.
1442
1443 2002-11-01 Andrew Cagney <cagney@redhat.com>
1444
1445 * frame.h (deprecated_generic_get_saved_register): Rename
1446 generic_get_saved_register.
1447 * blockframe.c (deprecated_generic_get_saved_register): Update.
1448 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1449 (xstormy16_frame_saved_register): Update.
1450 * sh-tdep.c (sh_gdbarch_init): Update.
1451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1452 * ia64-tdep.c (ia64_get_saved_register): Update.
1453 * cris-tdep.c (cris_gdbarch_init): Update.
1454 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1455 * arm-tdep.c (arm_gdbarch_init): Update.
1456
1457 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1458
1459 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1460
1461 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1462
1463 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1464 trampolines in sigaction.
1465
1466 2002-10-31 Andrew Cagney <cagney@redhat.com>
1467
1468 * h8300-tdep.c: Include "gdb_assert.h".
1469 (h8300_print_register): Add gdbarch, file and frame parameters.
1470 Use frame_read_unsigned_register to read the register's value.
1471 Use fprintf_filtered to display output.
1472 (h8300_print_registers_info): Replace h8300_do_registers_info.
1473 (h8300_gdbarch_init): Set print_registers_info.
1474
1475 2002-10-31 Andrew Cagney <cagney@redhat.com>
1476
1477 * frame.c (frame_read_unsigned_register): New function.
1478 (frame_read_signed_register): New function.
1479 * frame.h (frame_read_unsigned_register): Declare.
1480 (frame_read_signed_register): Declare.
1481
1482 2002-10-31 Andrew Cagney <cagney@redhat.com>
1483
1484 * h8500-tdep.c (h8500_print_registers_info): New static function,
1485 clone of infcmd.c's default_print_registers_info.
1486 (h8500_do_registers_info): New funtion.
1487 (h8500_print_register_hook): Rename print_register_hook, make
1488 static.
1489
1490 * config/h8500/tm-h8500.h: Update copyright.
1491 (DEPRECATED_DO_REGISTERS_INFO): Define.
1492 (h8500_do_registers_info: Declare.
1493 (PRINT_REGISTER_HOOK): Delete macro.
1494 (print_register_hook): Delete function.
1495
1496 2002-10-31 Andrew Cagney <cagney@redhat.com>
1497
1498 * z8k-tdep.c (z8k_print_register_hook): Make static.
1499 (z8k_print_registers_info): New static function, clone of
1500 infcmd.c's default_print_registers_info.
1501 (z8k_do_registers_info): New function. Wrap
1502 z8k_print_registers_info.
1503 * config/z8k/tm-z8k.h: Update copyright.
1504 (PRINT_REGISTER_HOOK): Delete macro.
1505 (z8k_print_register_hook): Delete declaration.
1506 (DEPRECATED_DO_REGISTERS_INFO): Define.
1507 (z8k_do_registers_info): Declare.
1508
1509 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1510
1511 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1512 as this is already provided by value.h, and was actually causing
1513 a compilation error because of a conflict in parameter type
1514 declaration due to a missing const keyword.
1515 (low_text_segment_addres): Fix a compilation warning.
1516
1517 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1518
1519 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1520 registers without a name.
1521 (mips_linux_cannot_store_register): Don't store registers without
1522 a name.
1523
1524 2002-10-28 David Carlton <carlton@math.stanford.edu>
1525
1526 * symtab.c (find_addr_symbol): Delete. (It was already commented
1527 out.)
1528 * symtab.h: Delete prototype for find_addr_symbol.
1529
1530 2002-10-26 Andrew Cagney <cagney@redhat.com>
1531
1532 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1533 DO_REGISTERS_INFO.
1534 gdbarch.h, gdbarch.c: Re-generate.
1535 * infcmd.c (default_print_registers_info): Update reference.
1536 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1537 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1538 * sh-tdep.c (sh_gdbarch_init): Ditto.
1539 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1540 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1541
1542 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1543
1544 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1545 cfi_init_extra_frame_info.
1546 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1547 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1548
1549 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1550 target where necessary. Add more comments and remove the ones
1551 that don't provide any useful information.
1552
1553 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1554 deprecated_read_register_dummy with
1555 frame_unwind_unsigned_register.
1556
1557 * i386-tdep.c (i386_extract_struct_value_address): Use
1558 regcache_raw_read_unsigned instead of
1559 regcache_cooked_read_unsigned since we know that the register
1560 we're reading isn't a pseudo register. Rename variable 'val' into
1561 the more descriptive 'addr'.
1562
1563 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1564 (x86_64_push_return_address): Add comment.
1565 (x86_64_pop_frame): Make static.
1566 (examine_argument): Clarify comment.
1567 (x86_64_skip_prologue): Make prolog_expact variable static.
1568
1569 * dwarf2cfi.c: Fix some formatting problems.
1570 (context_cpy, read_encoded_pointer): Clarify comments.
1571
1572 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1573 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1574 i386 target back into x86_64_gdbarch_init. Add some comments and
1575 remove meaningless ones.
1576
1577 2002-10-25 Andrew Cagney <cagney@redhat.com>
1578
1579 * complaints.h (struct deprecated_complaint): Rename `struct
1580 complaint'.
1581 * complaints.c (complain): Update.
1582 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1583 incorrect comment indicating that "symfile.h" was being included
1584 for the `struct complaint' definition.
1585 * remote-vx.c: Update.
1586 * objc-lang.c: Update.
1587 * xcoffread.c: Update.
1588 * hpread.c: Update.
1589 * mdebugread.c: Update.
1590 * stabsread.c: Update.
1591 * dwarf2read.c: Update.
1592 * dwarfread.c: Update.
1593 * elfread.c: Update.
1594 * coffread.c: Update.
1595 * stabsread.h: Update.
1596 * dbxread.c: Update.
1597 * buildsym.c: Update.
1598 * gdbtypes.c: Update.
1599 * macrotab.c: Update.
1600
1601 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1602
1603 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1604 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1605 (x86_64_init_abi): ...new function.
1606
1607 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1608 * i386v-nat.c: Include "i386-tdep.h".
1609
1610 2002-10-25 Andrew Cagney <cagney@redhat.com>
1611
1612 * gdbtypes.c (address_space_name_to_int): Update.
1613 (address_space_int_to_name): Update.
1614 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1615 multi-arch predicate.
1616 (address_class_name_to_type_flags): Ditto.
1617 * gdbarch.h, gdbarch.c: Re-generate.
1618
1619 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1620
1621 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1622
1623 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1624
1625 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1626
1627 * symtab.h (INIT_SAL): Delete macro.
1628 (init_sal): Export.
1629 * symtab.c (init_sal): New function.
1630
1631 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1632 to init_sal function call.
1633 (find_sal_from_funcs_and_line): Ditto.
1634 (all_sals_for_line): Ditto.
1635 * breakpoint.c (create_internal_breakpoint): Ditto.
1636 (create_fork_vfork_event_catchpoint): Ditto.
1637 (create_exec_event_catchpoint): Ditto.
1638 (parse_breakpoint_sals): Ditto.
1639 (watch_command_1): Ditto.
1640 (handle_gnu_4_16_catch_command): Ditto.
1641 (clear_command): Ditto.
1642 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1643 * infcmd.c (run_stack_dummy): Ditto.
1644 * infrun.c (process_event_stop_test): Ditto.
1645 (check_sigtramp2): Ditto.
1646 (step_over_function): Ditto.
1647 * linespec.c (decode_line_2): Ditto.
1648 (decode_line_1): Ditto.
1649 * source.c (line_info): Ditto.
1650 * symtab.c (find_pc_sect_line): Ditto.
1651
1652 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1653
1654 * dwarf2cfi.c (struct context)
1655 (struct context_reg): Moved to dwarf2cfi.h
1656 (context_alloc, frame_state_alloc, context_cpy):
1657 Made extern instead of static, removed prototypes.
1658 * dwarf2cfi.h (struct context)
1659 (struct context_reg): New, moved from dwarf2cfi.c
1660 (context_alloc, frame_state_alloc, context_cpy):
1661 New prototypes.
1662 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1663 Changed from static to extern.
1664 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1665 (LINUX_SIGCONTEXT_FP_OFFSET)
1666 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1667 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1668 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1669 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1670 set_gdbarch_*() calls now use x86-64 specific functions
1671 instead of DWARF2 CFI ones.
1672 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1673 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1674 (x86_64_init_extra_frame_info): New prototypes.
1675
1676 2002-10-23 David Carlton <carlton@math.stanford.edu>
1677
1678 * linespec.c: #include "parser-defs.h".
1679 Delete prototype for find_template_name_end.
1680 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1681
1682 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1683
1684 * NEWS: add recent mi fixes.
1685 * varobj.c (struct varobj): Add new "updated" flag.
1686 (new_variable): Default "updated" flag to 0.
1687 (varobj_set_value): Set "updated" flag to 1 if value
1688 changes.
1689 (varobj_update): Check varobj "updated" flag before
1690 comparing old and refreshed values. Fix for
1691 PR gdb/702.
1692
1693 2002-10-23 David Carlton <carlton@math.stanford.edu>
1694
1695 * parse.c (parse_exp_1): Use BLOCK_START.
1696 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1697 SYMBOL_BLOCK_VALUE.
1698 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1699
1700 2002-10-23 David Carlton <carlton@math.stanford.edu>
1701
1702 * symtab.c: Delete cplusplus_hint.
1703 Delete prototype for find_template_name_end.
1704
1705 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1706
1707 * symtab.h: Update comment.
1708
1709 2002-10-23 Michael Snyder <msnyder@redhat.com>
1710
1711 * printcmd.c (address_info): Restore quotes in output.
1712 * valops.c (value_of_local): Restore quotes in error message.
1713
1714 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1715
1716 * symtab.c (symbol_demangled_name): New function.
1717 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1718 turning most of it into a function.
1719 (symbol_demangled_name): Export.
1720
1721 2002-10-23 Michael Snyder <msnyder@redhat.com>
1722
1723 * valops.c (value_of_local): Restore quotes in error message.
1724
1725 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
1726
1727 * symtab.c (symbol_init_language_specific): New function.
1728 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1729 turning most of it into a function.
1730 (symbol_init_language_specific): Export.
1731
1732 2002-10-23 David Carlton <carlton@math.stanford.edu>
1733
1734 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1735 (dwarf_attr_name): Ditto.
1736 (dwarf_type_encoding_name): Ditto.
1737 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1738 (process_die): Handle DW_TAG_namespace,
1739 DW_TAG_imported_declaration, DW_TAG_imported_module.
1740 (read_namespace): New function.
1741
1742 2002-10-22 Joel Brobecker <brobecker@gnat.com>
1743
1744 * configure.in: Define NEW_PROC_API on Interix too.
1745 * configure: Regenerate.
1746
1747 2002-10-21 Joel Brobecker <brobecker@gnat.com>
1748
1749 * configure: Regenerate using the proper version of autoconf.
1750
1751 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1752
1753 * findvar.c (read_var_value): Temporarily disable TLS code, until
1754 complete TLS support is added.
1755
1756 2002-10-21 Jim Blandy <jimb@redhat.com>
1757 Elena Zannoni <ezannoni@redhat.com>
1758
1759 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1760 for thread local storage locations.
1761 (struct symbol): Add objfile field.
1762 (SYMBOL_OBJFILE): Define.
1763 * dwarf2read.c (is_thread_local): New static variable.
1764 (new_symbol): If variable is in thread local fill in address class
1765 and objfile appropriately.
1766 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1767 stack operation.
1768 * printcmd.c (address_info): Print the information for thread
1769 local storage variable.
1770 * findvar.c (read_var_value): In case of thread local variable,
1771 defer to the target vector code to compute address.
1772
1773 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1774
1775 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
1776 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
1777
1778 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
1779
1780 * symtab.h (address_class): Rename
1781 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
1782 * hpread.c (hpread_process_one_debug_symbol): Ditto.
1783 * printcmd.c (address_info): Ditto.
1784 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
1785
1786 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1787
1788 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
1789 DBREG_DRX macro to acces debug registers.
1790
1791 * Makefile.in (i386obsd-tdep.o): New target.
1792
1793 * solib-sunos.c: Include "bcache.h" and "regcache.h".
1794 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
1795
1796 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
1797 * config/i386/obsd.mt: New file.
1798 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
1799 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
1800 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
1801 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
1802 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
1803 * i386obsd-tdep.c: New file.
1804
1805 2002-10-19 Adam Fedor <fedor@gnu.org>
1806
1807 * objc-exp.y (name_not_typename): Fix invalid comment.
1808
1809 2002-10-20 Mark Kettenis <kettenis@gnu.org>
1810
1811 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
1812 to allocate partial syms and macro byte caches.
1813
1814 2002-10-18 David Carlton <carlton@math.stanford.edu>
1815
1816 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
1817
1818 2002-10-18 Adam Fedor <fedor@gnu.org>
1819
1820 * stabsread.c (find_name_end): New function.
1821 (define_symbol): Use it.
1822
1823 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
1824
1825 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1826 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1827 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1828 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
1829
1830 2002-10-17 David Carlton <carlton@math.stanford.edu>
1831
1832 * symfile.h: Add opaque declaration for struct obstack.
1833 Declare obsavestring to take a const char *.
1834 * symfile.c (obsavestring): Make first argument a const char *.
1835
1836 2002-10-16 Adam Fedor <fedor@gnu.org>
1837
1838 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
1839 names when matching breakpoints in current file.
1840
1841 2002-10-16 Kevin Buettner <kevinb@redhat.com>
1842
1843 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
1844 (read_tag_pointer_type): Add address class support.
1845 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
1846 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
1847 New methods.
1848 * gdbarch.h, gdbarch.c: Regenerate.
1849 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
1850 (make_type_with_address_space, recursive_type_dump): Add address
1851 class support.
1852 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
1853 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
1854 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
1855
1856 2002-10-16 Klee Dienes <kdienes@apple.com>
1857
1858 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
1859 to get the last character of a char[] buffer, not
1860 name[sizeof(vptr_name)-1].
1861
1862 2002-10-14 Adam Fedor <fedor@gnu.org>
1863
1864 * symtab.h: New objc_specific struct.
1865 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
1866 (SYMBOL_DEMANGLED_NAME): Likewise.
1867
1868 2002-10-14 Adam Fedor <fedor@gnu.org>
1869
1870 * symfile.c (init_filename_language_table): Add ObjC file extension.
1871
1872 2002-10-14 Adam Fedor <fedor@gnu.org>
1873
1874 * utils.c (puts_filtered_tabular): New function.
1875 (fprintf_symbol_filtered): Get ObjC demangled name.
1876 * defs.h (puts_filtered_tabular): Declared.
1877
1878 2002-10-14 Kevin Buettner <kevinb@redhat.com>
1879
1880 * c-lang.h (c_type_print_varspec_prefix): Delete.
1881 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
1882 ``need_post_space'' parameter. Adjust all callers.
1883
1884 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
1885
1886 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
1887 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1888 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1889 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
1890
1891 2002-10-13 Adam Fedor <fedor@gnu.org>
1892
1893 * source.c (print_source_lines): Update comments.
1894
1895 2002-10-13 Adam Fedor <fedor@gnu.org>
1896
1897 * valops.c (value_of_local): New function.
1898 (value_of_this): Use it.
1899 * value.h (value_of_local): Declared.
1900
1901 2002-10-13 Adam Fedor <fedor@gnu.org>
1902
1903 * parse.c: (length_of_subexp, prefixify_subexp): Handle
1904 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
1905
1906 2002-10-12 Adam Fedor <fedor@gnu.org>
1907
1908 * language.c (binop_result_type): Add language_objc to case.
1909 (integral_type): Likewise.
1910 (character_type): Likewise.
1911 (string_type): Likewise.
1912 (boolean_type): Likewise.
1913 (structured_type): Likewise.
1914 (binop_type_check): Likewise.
1915
1916 2002-10-11 Adam Fedor <fedor@gnu.org>
1917
1918 * printcmd.c (address_info): Print 'self' for ObjC.
1919
1920 2002-10-11 Adam Fedor <fedor@gnu.org>
1921
1922 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
1923 OP_SELF.
1924
1925 2002-10-11 Adam Fedor <fedor@gnu.org>
1926
1927 * language.h (CAST_IS_CONVERSION): Add language_objc.
1928
1929 2002-10-11 Adam Fedor <fedor@gnu.org>
1930
1931 * defs.h (enum language): Add language_objc.
1932
1933 2002-10-11 Klee Dienes <kdienes@apple.com>
1934
1935 * corefile.c (read_memory_typed_address): New function.
1936 * gdbcore.h (read_memory_typed_address): Add prototype.
1937 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
1938 to read a value destined for a CORE_ADDR, not read_memory_integer.
1939 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
1940 (f77_get_dynamic_lowerbound): Ditto.
1941
1942 2002-10-11 Martin M. Hunt <hunt@redhat.com>
1943
1944 * utils.c (string_to_core_addr): After turning string into
1945 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
1946 which will do necessary sign-extension, etc.
1947
1948 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
1949
1950 * c-exp.y (THIS): Delete token and grammar rule.
1951 (yylex): Don't return THIS.
1952 * cp-valprint.c (vtbl_ptr_name_old): Delete.
1953 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
1954 * demangle.c (cplus_markers): Update comment. Put '$'
1955 first. Remove CPLUS_MARKER.
1956 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
1957 * jv-exp.y (THIS): Delete token and grammar rule.
1958 (yylex): Don't return THIS.
1959 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
1960 * objc-exp.y (THIS): Delete token and grammar rule.
1961 (yylex): Don't return THIS.
1962 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
1963 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
1964 (read_member_functions): Likewise for opname.
1965 (read_tilde_fields): Use is_cplus_marker.
1966
1967 * defs.h (CPLUS_MARKER): Don't define.
1968 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
1969 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
1970 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
1971 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
1972 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
1973
1974 * config/i386/tm-i386v4.h: Delete file.
1975 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
1976 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
1977 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
1978 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
1979 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
1980 * config/i386/i386sco5.mt (TM_FILE): Likewise.
1981 * config/i386/i386v4.mt (TM_FILE): Likewise.
1982 * config/i386/ncr3000.mt (TM_FILE): Likewise.
1983
1984 2002-10-10 Marko Mlinar <markom@opencores.org>
1985
1986 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
1987 accidentially not commited 2002-10-09
1988 * gdbarch.h, gdbarch.c: Re-generate.
1989
1990 2002-10-09 Marko Mlinar <markom@opencores.org>
1991
1992 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
1993 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
1994 * gdbarch.h, gdbarch.c: Re-generate.
1995
1996 2002-10-08 Petr Sorfa <petrs@caldera.com>
1997
1998 Revised and re-submitted by John Wolfe <jlw@caldera.com>
1999
2000 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2001 so we can work on more than one compilation unit at a time. This
2002 helps prepare GDB to handle inter-CU die references.
2003 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2004 the code to be defined before struct comp_unit_head.
2005 (comp_unit_head): Added new members - offset, cu_head,
2006 begin_die, next and dwarf2_abbrevs.
2007 (dwarf2_abbrevs): Removed single static var; now member of
2008 struct comp_unit_head.
2009 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2010 members.
2011 (psymtab_to_symtab_1): Changed to work with the new
2012 struct comp_unit_head.
2013 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2014 constructs the dwarf2_abbrevs[] inside the cu_header.
2015 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2016 dwarf2_abbrev table to clean up.
2017 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2018 handling of dwarf2_abbrevs inside the cu_header.
2019 (read_partial_die): Now supports the call to the new
2020 dwarf2_lookup_abbrev.
2021 (read_full_die): Now supports the call to the new
2022 dwarf2_lookup_abbrev.
2023
2024 2002-10-06 Christopher Faylor <cgf@redhat.com>
2025
2026 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2027 insure that shell variables, such as "transformed_name" are propagated
2028 to later shell statements in rule.
2029
2030 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2031
2032 * config/i386/nm-i386sco.h: Add protection against
2033 multiple-inclusion. Include "i386/nm-i386v.h".
2034 (REGISTER_U_ADDR): Remove define.
2035 (i386_register_u_addr): Remove prototype.
2036
2037 2002-10-04 Michael Snyder <msnyder@redhat.com>
2038
2039 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2040 before treating it as a single-step event.
2041
2042 2002-10-03 Adam Fedor <fedor@gnu.org>
2043
2044 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2045 (objc_demangle): Remove assignment in if statements, Replace
2046 free with xfree.
2047 (add_msglist): Likewise.
2048 (end_msglist): Likewise.
2049 (complare_selectors): Likewise.
2050 (selectors_info): Likewise.
2051 (compare_classes): Likewise.
2052 (classes_info): Likewise.
2053 (print_object_command): Likewise.
2054 (find_objc_msgcall_submethod): Replace PTR with void *.
2055 * objc-lang.h: Remove check for __STDC__.
2056
2057 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2058
2059 * ui-out.h (ui_out_field_fmt_int): New prototype.
2060 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2061 of field width and alignment.
2062 * stack.c (print_frame_info_base): When printing frame level, use
2063 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2064 PR gdb/192
2065
2066 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2067
2068 * MAINTAINERS: Add self to Write After Approval list.
2069
2070 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2071
2072 * infcmd.c (interrupt_target_command_wrapper): Delete.
2073 (interrupt_target_command): Make non static.
2074 (nofp_registers_info): Make static.
2075 * stack.c (return_command_wrapper): Delete.
2076 (return_command): Make non static.
2077
2078 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2079
2080 * event-top.c (gdb_setup_readline): New function. Code moved from
2081 _initialize_event_loop().
2082 (_initialize_event_loop): Call gdb_setup_readline().
2083
2084 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2085
2086 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2087 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2088 * gdbarch.h, gdbarch.c: Re-generate.
2089
2090 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2091
2092 Fix PR gdb/778
2093 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2094 before recursing.
2095 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2096 of fill_in_vptr_fieldno.
2097
2098 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2099
2100 * inferior.h (registers_info, stepi_command, nexti_command,
2101 continue_command, interrupt_target_command): Export from infcmd.c.
2102 * frame.h (args_info, selected_frame_level_changed_hook,
2103 return_command): Export from stack.c.
2104 * v850ice.c (stepi_command, nexti_command, continue_command): use
2105 prototypes from inferior.h.
2106 * tracepoint.c (registers_info, args_info, locals_info): Use
2107 prototypes from frame.h and inferior.h.
2108 * Makefile.in (mi-main.o): Add dependency on frame.h.
2109
2110 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2111
2112 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2113 value in register 3 adjusted by ppc_gp0_regnum.
2114
2115 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2116
2117 2002-10-02 Marko Mlinar <markom@opencores.org>
2118
2119 * MAINTAINERS: Add myself to the Write After Approval list.
2120
2121 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2122
2123 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2124 of the section for the N64 ABI, fixed.
2125
2126 * config/mips/tm-irix6.h: Include solib.h.
2127
2128 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2129
2130 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2131 GNU operators.
2132
2133 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2134
2135 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2136 and that "mi0" syntax has been removed.
2137
2138 2002-09-30 David Carlton <carlton@math.stanford.edu>
2139
2140 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2141 * ppc-sysv-tdep.c: #include "gdb_string.h".
2142 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2143 pacify GCC.
2144
2145 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2146
2147 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2148 "vrsave"'s register number.
2149
2150 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2151
2152 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2153 use frame_unwind_signed_register to obtain the PC.
2154 (mips_frame_chain): Handle a generic dummy frame.
2155 (mips_init_extra_frame_info): When a generic dummy frame, don't
2156 re-compute the frame base.
2157 (mips_pop_frame): Handle generic dummy frames.
2158 (mips_gdbarch_init): When generic dummy frames, set
2159 use_generic_dummy_frames, push_dummy_frame to
2160 generic_push_dummy_frame, pc_in_call_dummy to
2161 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2162 generic_save_dummy_frame_tos.
2163
2164 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2165
2166 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2167 against TOP when TOP was explictly set.
2168 (generic_push_dummy_frame): Set TOP to zero.
2169
2170 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2171
2172 * event-loop.c (start_event_loop): Rename variable 'result' to
2173 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2174
2175 2002-09-30 Keith Seitz <keiths@redhat.com>
2176
2177 * gdb-events.sh (selected_thread_changed): New event.
2178 * gdb-events.c: Regenerated.
2179 * gdb-events.h: Regenerated.
2180
2181 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2182
2183 * MAINTAINERS: Add self to Write After Approval list.
2184
2185 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2186
2187 * disasm.c: New file.
2188 * disasm.h: New file.
2189 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2190 (compare_lines): Ditto.
2191 (dump_insns): Ditto.
2192 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2193 argument.
2194 (do_assembly_only): Ditto.
2195 (do_disassembly): Renamed to gdb_disassembly and moved to
2196 disasm.c. Sdded uiout argument.
2197 * Makefile.in: Add new files. Reorder SFILES list. Update
2198 dependencies. Include libgdb.a later in the insight executable.
2199
2200 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2201
2202 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2203 bfd/elf64-alpha-fbsd.c.
2204
2205 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2206
2207 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2208 i386gnu-tdep.c.
2209
2210 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2211
2212 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2213 __FUNCTION__.
2214 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2215 function name.
2216 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2217 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2218 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2219 (S_msg_sig_post_reply): Ditto.
2220
2221 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2222
2223 * sh-tdep.c (sh_use_struct_convention): Use definition according
2224 to ABI.
2225 (sh_push_arguments): Store in register with correct endianess.
2226 (sh_default_store_return_value): Ditto.
2227 (sh_gdbarch_init): Set sizeof long double to 8.
2228
2229 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2230
2231 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2232 Fix some whitespace problems.
2233
2234 2002-09-27 David Carlton <carlton@math.stanford.edu>
2235
2236 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2237 (mcore-tdep.o): Ditto.
2238 (ns32k-tdep.o): Ditto.
2239 (ns32knbsd-tdep.o): Ditto.
2240 (sh3-rom.o): Ditto.
2241 (vax-tdep.o): Ditto.
2242 * cris-tdep.c: #include "gdb_string.h"
2243 * mcore-tdep.c: Ditto.
2244 * ns32k-tdep.c: Ditto.
2245 * ns32knbsd-tdep.c: Ditto.
2246 * sh3-rom.c: Ditto.
2247 * vax-tdep.c: Ditto.
2248
2249 2002-09-27 David Carlton <carlton@math.stanford.edu>
2250
2251 * config/djgpp/fnchange.lst: Add entries for
2252 gdb/testsuite/gdb.c++/m-static files.
2253
2254 2002-09-27 Jim Wilson <wilson@redhat.com>
2255
2256 * MAINTAINERS: Add myself to the Write After Approval list.
2257
2258 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2259
2260 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2261
2262
2263 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2264
2265 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2266 frame.
2267
2268 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2269
2270 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2271 (rs6000_struct_return_address): Delete variable.
2272 (rs6000_store_struct_return): Update.
2273 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2274 deprecated_extract_struct_value_address.
2275 (rs6000_frame_align): New function.
2276 (rs6000_gdbarch_init): Set frame_align.
2277
2278 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2279
2280 From Grace Sainsbury <graces@redhat.com>:
2281 * Makefile.in (gdbtk-main.o): New target.
2282 (gdb.o): New target.
2283 (main_h): Define.
2284 (main.o): Update dependencies.
2285 (gdb$(EXEEXT)): Add gdb.o.
2286 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2287 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2288 (SUBDIR_GDBTK_CLEAN): Set.
2289 (install-gdbtk): Install the insight binary.
2290 (uninstall-gdbtk): New target.
2291 (all-gdbtk, clean-gdbtk): New rule.
2292 * top.c (use_windows): Default to zero.
2293 * main.c: Include "main.h".
2294 (main): Delete.
2295 (struct captured_main_args): Delete.
2296 (gdb_main): New function.
2297 * main.h: New file.
2298 * gdb.c: New File.
2299
2300 2002-09-25 Andrew Cagney <cagney@redhat.com>
2301
2302 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2303 (frame_map_regnum_to_name): New function.
2304 (frame_map_name_to_regnum): New function.
2305 * frame.h (frame_map_name_to_regnum): Declare.
2306 (frame_map_regnum_to_name): Declare.
2307 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2308 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2309 * parse.c: Do not include "builtin-regs.h".
2310 (target_map_name_to_register): Delete function.
2311 (write_dollar_variable): Use frame_map_name_to_regnum.
2312 * parser-defs.h (target_map_name_to_register): Delete declaration.
2313 * expprint.c: Include "frame.h".
2314 (print_subexp): Use frame_map_regnum_to_name.
2315 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2316 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2317
2318 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2319
2320 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2321 wasn't saved, and the next innermost frame is a dummy, return the
2322 dummy frame's link register.
2323
2324 2002-09-24 Jim Blandy <jimb@redhat.com>
2325
2326 Fix from Paul Breed:
2327 * main.c (captured_main): Add a `break' after the case for 'b'.
2328
2329 2002-09-24 Keith Seitz <keiths@redhat.com>
2330
2331 * varobj.c (c_type_of_child): Use get_target_type instead
2332 of TYPE_TARGET_TYPE.
2333
2334 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2335
2336 * source.c (get_current_or_default_source_symtab_and_line): Remove
2337 function.
2338 (set_default_source_symtab_and_line): New function. Attempts to
2339 determine a source file to list lines from if one is not currently
2340 defined.
2341 (get_current_source_symtab_and_line): Initialize sal.pc and
2342 sal.end fields.
2343 (set_current_source_symtab_and_line): Mark argument as const.
2344 * source.h: Update declarations and comments.
2345 * linespec.c (decode_line_1): Replace call to removed routine above.
2346 * stack.c (print_frame_info_base): Ditto.
2347 * cli/cli-cmds.c (edit_command): Ditto.
2348 (list_command): Ditto.
2349
2350 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2351
2352 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2353 sal.pc and sal.end fields.
2354 (get_current_or_default_source_symtab_and_line): Ditto.
2355 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2356 so we do not cause a new source symtab to be searched for (reverting an
2357 unintentional change from the 2002-09-20 patch).
2358 * scm-lang.c (scm_unpac): Ditto.
2359
2360 2002-09-21 Andrew Cagney <cagney@redhat.com>
2361
2362 * complaints.c (symfile_explanations): Remove new-line from
2363 ``isolated_message''.
2364 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2365 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2366
2367 2002-09-20 Nick Clifton <nickc@redhat.com>
2368
2369 * NEWS: Announce that V850EA ISA is no longer supported.
2370 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2371
2372 2002-09-20 David Carlton <carlton@math.stanford.edu>
2373
2374 * Makefile.in (c-lang.o): Correct dependencies.
2375 (utils.o): Gather dependencies.
2376 (charset.o): Move.
2377 * c-lang.c: #include "gdb_string.h"
2378
2379 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2380
2381 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2382 * cli/cli-cmds.c (list_command): New function. Implements the new
2383 cli edit command.
2384 (_init_cli_cmds): Add new command definition.
2385 * gdb.1: Document edit command.
2386 * doc/gdb.texinfo: Document edit command.
2387
2388 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2389
2390 * source.c: Make global variables current_source_symtab and
2391 current_source_line static.
2392 (list_command): Moved to cli/cli-cmds.c.
2393 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2394 (get_first_line_listed): New accessor function.
2395 (get_lines_to_list): New accessor function.
2396 (get_current_source_symtab_and_line): New function. Retrieves the
2397 position in the source code that we consider current.
2398 (get_current_or_default_source_symtab_and_line): New function.
2399 Like the above but attempts to determine a default position if one
2400 is not currently defined.
2401 (set_current_source_symtab_and_line): New function. Sets the source
2402 code position considered current and returns the previously set one.
2403 (clear_current_source_symtab_and_line): Reset stored information about
2404 a current source line.
2405 (_initialize_source): Remove registration for the "list" command and
2406 its alias.
2407 * source.h: Add declarations for the new functions above.
2408 * symtab.h: Remove declarations for the global variables mentioned
2409 above.
2410 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2411 obtain current source line.
2412 * linespec.c (decode_line_1): Ditto.
2413 * macroscope.c (default_macro_scope): Ditto.
2414 * scm-lang.c (scm_unpac): Ditto.
2415 * stack.c (print_frame_info_base): Ditto.
2416 * symfile.c (clear_symtab_users): Ditto.
2417 * symtab.c (decode_line_spec): Ditto.
2418 * cli/cli-cmds.c (list_command): Moved here from source.c.
2419 (ambiguous_line_spec): Moved here from source.c.
2420 (_init_cli_cmds): Add definition for "list" and its alias.
2421 * Makefile.in: Update dependencies.
2422
2423 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2424
2425 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2426 with what gcc thinks is correct.
2427
2428 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2429
2430 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2431 multiple register push instruction.
2432
2433 2002-09-19 Jim Blandy <jimb@redhat.com>
2434
2435 Add support for distinct host and target character sets.
2436 * charset.c, charset.h: New files.
2437 * c-exp.y: #include "charset.h".
2438 (yylex): Convert character and string literals to the target
2439 character set, before returning them as the semantic value of the
2440 token.
2441 * c-lang.c: #include "charset.h".
2442 (c_emit_char): Use charset-specific methods to recognize
2443 characters with backslash escape forms, to decide which characters
2444 to print literally and which to print using numeric escape
2445 sequences, and to convert target characters to host characters
2446 before printing.
2447 * utils.c: #include "charset.h".
2448 (no_control_char_error): New function.
2449 (parse_escape): Use charset-specific methods to recognize
2450 backslash escapes, parse `control character' notation, and convert
2451 characters from the host character set to the target character set.
2452 * configure.in: Set the default host character set.
2453 Check where to find iconv, and what its argument types might be.
2454 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2455 * Makefile.in (SFILES): List charset.c.
2456 (COMMON_OBS): List charset.o.
2457 (charset.o): New rule.
2458 (charset_h): New header dependency variable.
2459 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2460 (LIBICONV): New variable, set by configure.
2461 (CLIBS): Include $(LIBICONV) here.
2462 * aclocal.m4, config.in, configure: Regenerated.
2463
2464 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2465
2466 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2467 bison 1.35 warning.
2468
2469 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2470
2471 * gdb_mbuild.sh: New file.
2472
2473 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2474
2475 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2476
2477 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2478
2479 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2480 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2481 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2482 valops.c, value.h: Revert previous change.
2483
2484 2002-09-18 Michael Snyder <msnyder@redhat.com>
2485
2486 Preliminary support for Objective-C:
2487 * defs.h (language_objc): New enum value.
2488 (puts_filtered_tabular): Declaration only, exported from utils.c.
2489 (skip_quoted): Delete, declared in completer.h.
2490 * c-exp.y: Include completer.h.
2491 * p-exp.y: Ditto.
2492 * jv-exp.y: Ditto.
2493 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2494 New operator enum values.
2495 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2496 * language.c (binop_result_type): Handle language_objc case.
2497 (integral_type, character_type, string_type, boolean_type,
2498 structured_type, binop_type_check): Ditto.
2499 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2500 (struct objc_specific): Add to general_symbol_info.
2501 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2502 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2503 * parser-defs.h (struct objc_class_str): New struct type.
2504 (start_msglist, end_msglist, add_msglist): Declaration only,
2505 exported from objc-lang.c.
2506 * value.h (value_of_local, value_nsstring,
2507 call_function_by_hand_expecting_type): Exported from valops.c.
2508 * valops.c (find_function_addr): Export.
2509 (call_function_by_hand_expecting_type): New function.
2510 (value_of_local): New function.
2511 * symfile.c (init_filename_language_table): Add ".m" extension
2512 for Objective-C.
2513 * utils.c (puts_filtered_tabular): New function.
2514 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2515 (set/show demangle): Extend help-string to refer to ObjC.
2516 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2517 * stabsread.c (symbol_reference_defined): Objective-C symbols
2518 may contain colons: make allowances when scanning stabs strings
2519 for colons.
2520 (objc_find_colon): New function.
2521 * printcmd.c (address_info): If language == objc then print
2522 "self" instead of "this".
2523 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2524 OP_NSSTRING, and OP_SELF.
2525 (prefixify_subexp): Ditto.
2526 * source.c (print_source_lines): Mention objc in comment.
2527 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2528 method names.
2529
2530 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2531
2532 * complaints.h: Update copyright.
2533 (struct complaints): Declare.
2534 (struct complaint): Make `message' constant.
2535 (internal_complaint): Declare.
2536 (complaint): Declare.
2537 (complaint_root): Delete declaration.
2538 (symfile_complaints): Delete declaration.
2539 (struct complaints): Add opaque declaration.
2540 (clear_complaints): Add a complaints parameter.
2541 * complaints.c: Update copyright.
2542 (enum complaint_series): Define.
2543 (complaint_root): Delete.
2544 (struct complaints): Define.
2545 (complaint_sentinel, symfile_complaint_book): New variables.
2546 (symfile_explanations, symfile_complaints): New variables.
2547 New variables.
2548 (get_complaints): New function.
2549 (vcomplaint): New function.
2550 (complaint): New function.
2551 (internal_complaint): New function.
2552 (complain): Call vcomplain with symfile_complaint.
2553 (clear_complaints): Rewrite.
2554 (_initialize_complaints): Use add_setshow_command.
2555 * Makefile.in (complaints.o): Update dependencies.
2556 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2557 to call to clear_complaints.
2558 (new_symfile_objfile, reread_symbols): Ditto.
2559 (oldsyms_complaint): Delete.
2560 (empty_symtab_complaint, unknown_option_complaint): Delete.
2561 (free_named_symtabs): Use complaint instead of complain.
2562
2563 2002-09-18 Michael Snyder <msnyder@redhat.com>
2564
2565 Contributed by Apple Computer, Inc. Merged with current sources
2566 by Adam Fedor <fedor@doc.com> [cagney].
2567
2568 * objc-lang.c: First clean-up round: comments, indentation.
2569 * objc-lang.h: Ditto.
2570 * objc-lang.y: Ditto.
2571
2572 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2573
2574 * maint.c (maintenance_internal_error): Print the parameter as the
2575 error message.
2576 (maintenance_internal_warning): New function.
2577 (_initialize_maint_cmds): Add command `maint internal-warning'.
2578
2579 * defs.h (internal_warning, internal_vwarning): Declare.
2580 * utils.c (struct internal_problem): Define.
2581 (internal_vproblem): New function.
2582 (internal_warning): New function.
2583 (internal_vwarning): New function.
2584 (internal_warning_problem, internal_error_problem): New variables.
2585 (internal_verror): Just call internal_vproblem.
2586
2587 2002-09-18 Michael Snyder <msnyder@redhat.com>
2588
2589 * objc-lang.c: New file, support for Objective-C.
2590 Preliminary check-in, not yet integrated into gdb.
2591 * objc-lang.h: New file.
2592 * objc-exp.y: New file.
2593
2594 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2595
2596 * infrun.c (signal_stop_update): Convert definition to ISO C.
2597 (signal_print_update): Ditto.
2598 (signal_pass_update): Ditto.
2599 * inflow.c (terminal_save_ours): Ditto.
2600
2601 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2602 comments.
2603
2604 * config/djgpp/fnchange.lst: Handle name clashes between
2605 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2606 bfd/coff-tic80.c.
2607
2608 * i386-linux-tdep.h: Fix tipo.
2609
2610 2002-09-18 Adam Fedor <fedor@gnu.org>
2611
2612 * MAINTAINERS: Add myself to the Write After Approval list.
2613
2614 2002-09-18 Jim Blandy <jimb@redhat.com>
2615
2616 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2617 texthigh and textlow to reader-specific structs caused
2618 objfile_relocate to miss them. This is fixable, but the work that
2619 the change was supposed to prepare GDB for never got done anyway.
2620
2621 2002-09-18 David Carlton <carlton@math.stanford.edu>
2622
2623 * MAINTAINERS: Alphabetize Write After Approval list.
2624
2625 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2626
2627 Fix PR gdb/709
2628 * values.c (value_static_field): Call read_var_value.
2629
2630 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2631
2632 * valops.c (hand_function_call): Align the initial stack pointer
2633 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2634 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2635 return value.
2636 * mips-tdep.c (mips_frame_align): New function.
2637 (mips_gdbarch_init): Set frame_align.
2638 * gdbarch.sh (FRAME_ALIGN): New method.
2639 * gdbarch.h, gdbarch.c: Re-generate.
2640
2641 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2642
2643 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2644 registers.
2645
2646 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2647
2648 * NEWS: Mention that MIPS $fp behavior changed.
2649 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2650 reference to FP_REGNUM.
2651 (mipsnbsd_cannot_store_register): Ditto.
2652 * mips-linux-nat.c: Update copyright.
2653 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2654 (mips_linux_cannot_store_register): Ditto.
2655 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2656 * config/mips/tm-mips.h: Update copyright.
2657 (FP_REGNUM): Delete macro.
2658 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2659 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2660 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2661 (mips_r3041_reg_names, mips_r3051_reg_names)
2662 (mips_r3081_reg_names): Replace "fp" with "".
2663 Fix PR gdb/480.
2664
2665 2002-09-17 Theodore A. Roth <troth@verinet.com>
2666
2667 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2668 generic_read_register_dummy() (PR gdb/703).
2669 (avr_push_return_address): #if 0 out unused vars.
2670 (avr_gdbarch_init): Enable use of avr_push_return_address().
2671
2672 2002-09-17 Michael Snyder <msnyder@redhat.com>
2673
2674 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
2675 RTE will take care of it.
2676
2677 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2678
2679 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2680 invalid, return SP_REGNUM.
2681
2682 2002-09-17 Michael Snyder <msnyder@redhat.com>
2683
2684 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2685 point registers without sign extension.
2686
2687 2002-09-17 Andrew Cagney <cagney@redhat.com>
2688
2689 * blockframe.c (deprecated_read_register_dummy): Rename
2690 generic_read_register_dummy.
2691 * frame.c (frame_unwind_signed_register): New function.
2692 (frame_unwind_unsigned_register): New function.
2693 * frame.h (frame_unwind_signed_register): Declare.
2694 (frame_unwind_unsigned_register): Declare.
2695 (deprecated_read_register_dummy): Rename
2696 generic_read_register_dummy.
2697
2698 * h8300-tdep.c (h8300_frame_chain): Update.
2699 (h8300_frame_saved_pc): Update.
2700 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2701 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2702 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2703 (s390_frame_chain): Update.
2704 * v850-tdep.c (v850_find_callers_reg): Update.
2705 (v850_frame_saved_pc): Update.
2706 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2707 (m32r_find_callers_reg): Update.
2708 (m32r_frame_saved_pc): Update.
2709 * sh-tdep.c (sh_find_callers_reg): Update.
2710 (sh64_get_saved_pr): Update.
2711 (sh_init_extra_frame_info): Update.
2712 (sh_init_extra_frame_info): Update.
2713 (sh64_init_extra_frame_info): Update.
2714 (sh64_init_extra_frame_info): Update.
2715 * mcore-tdep.c (mcore_find_callers_reg): Update.
2716 (mcore_frame_saved_pc): Update.
2717 (mcore_init_extra_frame_info): Update.
2718 * i386-tdep.c (i386_frame_saved_pc): Update.
2719 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2720 (ia64_init_extra_frame_info): Update.
2721 (ia64_init_extra_frame_info): Update.
2722 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2723 * cris-tdep.c (cris_init_extra_frame_info): Update.
2724 * avr-tdep.c (avr_frame_chain): Update.
2725 (avr_init_extra_frame_info): Update.
2726 (avr_frame_saved_pc): Update.
2727 * arm-tdep.c (arm_find_callers_reg): Update.
2728 (arm_init_extra_frame_info): Update.
2729 (arm_frame_saved_pc): Update.
2730
2731 2002-09-17 Tom Tromey <tromey@redhat.com>
2732
2733 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2734 is "'".
2735
2736 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
2737
2738 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2739 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2740 NEXT_PROLOGUE_INSN.
2741 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2742 NEXT_PROLOGUE_INSN.
2743
2744 2002-09-16 Joel Brobecker <brobecker@gnat.com>
2745
2746 * osfsolib.c: Remove file, replaced by solib-osf.c.
2747 * Makefile.in: Remove compilation rules for osfsolib.c.
2748
2749 2002-09-16 David Carlton <carlton@math.stanford.edu>
2750
2751 * cp-valprint.c (cp_print_class_method): Correct args to
2752 check_stub_method_group.
2753
2754 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
2755
2756 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2757 `set architecture'. Unify naming convention of functions.
2758 (h8300_skip_prologue): Improve prologue analysis.
2759 (h8300_push_arguments): Rewritten to more closely match GCC's
2760 bizarre argument-passing behavior, along with the comment describing
2761 said behavior.
2762 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2763 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2764 sim, remote-e7000.c, remote-hms.c and remote.c
2765
2766 2002-09-15 Mark Kettenis <kettenis@gnu.org>
2767
2768 * i386-tdep.c (gdb_print_insn_i386): Removed.
2769 (i386_print_insn): New function.
2770 (i386_gdbarch_init): Set print_insn to i386_print_insns.
2771 (_initialize_i386_tdep): Don't initialize tm_print_insn and
2772 tm_print_insn_info.
2773
2774 2002-09-14 Mark Kettenis <kettenis@gnu.org>
2775
2776 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
2777 zero.
2778
2779 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
2780
2781 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
2782 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
2783 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
2784
2785 2002-09-13 Christopher Faylor <cgf@redhat.com>
2786
2787 * win32-nat.c (child_create_inferior): Honor 'tty' command.
2788
2789 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
2790
2791 * gdbtypes.c (check_stub_method): Make static.
2792 (check_stub_method_group): New function.
2793 * gdbtypes.h: Update prototypes.
2794 * cp-support.c: New file.
2795 * cp-support.h: New file.
2796
2797 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
2798 (update_method_name_from_physname): New function.
2799 (read_member_functions): Correct method names for operators
2800 and v3 constructors/destructors. Separate v2 constructors and
2801 destructors.
2802 * Makefile.in (stabsread.o): Update dependencies.
2803 (SFILES): Add cp-support.c.
2804 (COMMON_OBS): Add cp-support.o.
2805 (cp_support_h, cp-support.o): Add.
2806
2807 * cp-valprint.c (cp_print_class_method): Call
2808 check_stub_method_group instead of check_stub_method. Remove
2809 extraneous QUITs.
2810 * p-valprint.c (pascal_object_print_class_method): Likewise.
2811 * valops.c (search_struct_method): Likewise.
2812 (find_method_list, value_struct_elt_for_reference): Likewise.
2813
2814 2002-09-13 Andrew Cagney <cagney@redhat.com>
2815
2816 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
2817 * gdbarch.h, gdbarch.c: Regenerate.
2818
2819 2002-09-13 Andrew Cagney <ac131313@redhat.com>
2820
2821 * frame.c (find_saved_register): Delete function.
2822 * frame.h (find_saved_register): Delete declaration.
2823 Fix PR gdb/631.
2824
2825 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
2826
2827 * mips-tdep.c (read_next_frame_reg): Re-hack using
2828 frame_register_unwind.
2829
2830 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
2831
2832 * mips-tdep.c (mips_get_saved_register): Re-hack using
2833 frame_register_unwind.
2834
2835 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2836
2837 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
2838 vector. Will be useful for Interix.
2839 * gdbarch.h, gdbarch.c: Regenerate.
2840
2841 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
2842 name of the malloc function by NAME_OF_MALLOC.
2843
2844 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2845
2846 * value.h (find_function_in_inferior): Add const keyword to
2847 one of the parameters. Allows us to invoke this function with
2848 a const char *.
2849 * valops.c (find_function_in_inferior): Likewise.
2850
2851 2002-09-12 Joel Brobecker <brobecker@gnat.com>
2852
2853 * exec.c (xfer_memory): Fix compilation warning with old versions
2854 of GCC.
2855 * tracepoint.c (trace_find_tracepoint_command): Likewise.
2856
2857 2002-09-12 David Carlton <carlton@math.stanford.edu>
2858
2859 * symtab.h: Run through gdb_indent.h.
2860 Add 2002 to Copyright year list.
2861
2862 2002-09-12 Alan Modra <amodra@bigpond.net.au>
2863
2864 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
2865 mach constants.
2866 * MAINTAINERS: Add myself to write after approval list.
2867
2868 2002-09-11 J. Brobecker <brobecker@gnat.com>
2869
2870 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
2871
2872 2002-09-11 J. Brobecker <brobecker@gnat.com>
2873
2874 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
2875 Interix.
2876
2877 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
2878
2879 * procfs.c (do_detach): Clear current signal, not just fault.
2880 Corrects problem with breakpoint trap signal leaking to detached
2881 process on Tru64.
2882
2883 2002-09-10 Michael Snyder <msnyder@redhat.com>
2884
2885 * buildsym.c (finish_block): Protect against null pointer.
2886
2887 2002-09-10 Andrew Cagney <cagney@redhat.com>
2888
2889 * infcmd.c (default_print_registers_info): Send all output to
2890 ``file'' instead of ``gdb_stdout''.
2891
2892 2002-09-10 Michael Snyder <msnyder@redhat.com>
2893
2894 * mips-tdep.c (mips_extract_struct_value_address): Make val a
2895 LONGEST, and use signed register read (addresses are sign-
2896 extended for mips).
2897
2898 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
2899
2900 * event-loop.c (gdb_do_one_event): Make public.
2901 * event-loop.h (gdb_do_one_event): Declare.
2902
2903 2002-09-10 Jeff Law <law@redhat.com>
2904
2905 * infttrace.c (child_resume): Simplify and rework to avoid
2906 TT_PROC_CONTINUE.
2907
2908 2002-09-09 Fred Fish <fnf@intrinsity.com>
2909
2910 * printcmd.c (print_scalar_formatted): "len" is the number of
2911 target bytes, NOT the number of target bits.
2912
2913 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
2914
2915 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
2916 * top.c (init_main): Set rl_terminal_name.
2917
2918 2002-09-08 Aidan Skinner <aidan@velvet.net>
2919
2920 * ada-lang.c (ada_array_bound, ada_type_match,
2921 _initialize_ada_language): Fix K&R definitions.
2922 * ada-tasks.c (get_current_task): Fix K&R definitions.
2923 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
2924
2925 2002-09-07 Christopher Faylor <cgf@redhat.com>
2926
2927 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
2928 Add XP.
2929
2930 2002-09-06 Mark Kettenis <kettenis@gnu.org>
2931
2932 * i386-tdep.c (i386_register_virtual_type,
2933 i386_register_convertible, i386_register_convert_to_virtual,
2934 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
2935 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
2936 (i386_gdbarch_init): Fix comment. Add comments on calls that set
2937 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
2938 Don't set push_arguments twice.
2939
2940 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
2941 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
2942 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
2943 sigtramp_end to NULL.
2944 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
2945 defines.
2946 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
2947
2948 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
2949 whitespace.
2950
2951 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
2952 * gdbarch.h, gdbarch.c: Re-generate.
2953 * blockframe.c (find_pc_sect_partial_function): Convert to use
2954 SIGTRAMP_START_P predicate.
2955
2956 2002-09-05 Michael Snyder <msnyder@redhat.com>
2957
2958 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
2959 generic_dummy_frame method and old method. Also distinguish
2960 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
2961 (arm_extract_return_value): Use new regcache method.
2962
2963 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
2964 adjustment that doesn't conform to the ABI.
2965 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
2966 saved regcache, not from current regcache.
2967
2968 2002-09-05 Andrew Cagney <ac131313@redhat.com>
2969
2970 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
2971 * README: Update.
2972
2973 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
2974
2975 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
2976 if arm_apcs_32 is false.
2977
2978 2002-09-04 Andrew Cagney <ac131313@redhat.com>
2979
2980 GDB 5.3 branch created.
2981
2982 2002-09-03 Theodore A. Roth <troth@verinet.com>
2983
2984 * gdb/avr-tdep.c (avr_gdbarch_init): Use
2985 generic_unwind_get_saved_register.
2986
2987 2002-09-03 David Carlton <carlton@math.stanford.edu>
2988
2989 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
2990 argument (PR gdb/653). Update call to smash_to_method_type.
2991 (read_structure_scope): Update call to dwarf2_add_member_fn.
2992
2993 2002-09-03 Michal Ludvig <mludvig@suse.cz>
2994
2995 * x86-64-linux-tdep.c: Include gdb_string.h
2996 * x86-64-linux-nat.c: Ditto.
2997
2998 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
2999
3000 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3001 when YYDEBUG is set to 1.
3002 * c-exp.y: Likewise.
3003 * f-exp.y: Likewise.
3004 * jv-exp.y: Likewise.
3005 * m2-exp.y: Likewise.
3006 * p-exp.y: Likewise.
3007
3008 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3009
3010 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3011 dependency list.
3012 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3013 solib_svr4_fetch_link_map_offsets to
3014 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3015 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3016 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3017 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3018 solib-svr4.o, and solib-legacy.o.
3019 * config/i386/tm-nbsd.h: Include solib.h.
3020
3021 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3022
3023 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3024 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3025 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3026 comment noting that this needs its own target configuration.
3027 * config/i386/nbsd.mt: New file.
3028 * config/i386/nbsdaout.mt: Remove.
3029 * config/i386/nbsdelf.mt: Ditto.
3030 * config/i386/tm-nbsdaout.h: Ditto.
3031
3032 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3033
3034 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3035 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3036 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3037 tdep->sigtramp_end.
3038 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3039 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3040 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3041
3042 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3043
3044 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3045 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3046 * i386-tdep.h (i386bsd_init_abi): New prototype.
3047 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3048 function declaration.
3049 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3050 for NetBSD-a.out or NetBSD-ELF.
3051 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3052 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3053 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3054 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3055 and nbsd-tdep.h.
3056 (i386nbsd_pc_in_sigtramp): New function.
3057 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3058 i386nbsd_pc_in_sigtramp.
3059 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3060 and i386nbsdelf_init_abi OS ABI handlers.
3061 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3062 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3063
3064 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3065
3066 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3067 registers if the target really has them.
3068
3069 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3070
3071 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3072 than nbsd-tdep.h.
3073
3074 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3075
3076 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3077 list.
3078 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3079 (alphanbsd_skip_sigtramp_frame): New functions.
3080 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3081 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3082 to alphanbsd_sigcontext_addr.
3083
3084 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3085
3086 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3087 list.
3088 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3089 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3090 nbsd_pc_in_sigtramp.
3091 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3092 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3093 * nbsd-tdep.c: Include gdb_string.h.
3094 (nbsd_pc_in_sigtramp): New function.
3095 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3096 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3097 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3098 ppcnbsd_pc_in_sigtramp.
3099 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3100 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3101 shnbsd_pc_in_sigtramp.
3102 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3103 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3104 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3105
3106 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3107
3108 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3109 watchpoints to NULL.
3110 (insert_breakpoints): set val field of watchpoints if NULL.
3111
3112
3113 2002-08-29 Jim Blandy <jimb@redhat.com>
3114
3115 * symtab.c (lookup_symbol_aux): In the cases where we find a
3116 minimal symbol of an appropriate name and use its address to
3117 select a symtab to read and search, use `name' (as passed to us)
3118 as the demangled name when searching the symtab's global and
3119 static blocks, not the minsym's name.
3120
3121 2002-08-29 Keith Seitz <keiths@redhat.com>
3122
3123 * stack.c (print_frame_info_base): Always set current_source_symtab
3124 and current_source_line.
3125
3126 2002-08-29 Donn Terry <donnte@microsoft.com>
3127
3128 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3129
3130 2002-08-28 Keith Seitz <keiths@redhat.com>
3131
3132 * stack.c (select_frame): Add FIXME concerning selected-frame
3133 events.
3134 (select_frame_command): Send selected-frame-level-changed
3135 event notification, but only if the level actually changed.
3136 (up_silently_base): Add selected-frame-level-changed event
3137 notification.
3138 (down_silently_base): Likewise.
3139
3140 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3141
3142 * Makefile.in: Update dependencies for all gdb/*.c files.
3143
3144 2002-08-27 Tom Tromey <tromey@redhat.com>
3145
3146 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3147 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3148 Update dependencies.
3149 * i387-tdep.c: Include gdb_string.h.
3150 * osabi.c: Likewise.
3151 * i386-linux-nat.c: Likewise.
3152 * lin-lwp.c: Likewise.
3153 * ax-gdb.c: Likewise.
3154 * signals/signals.c: Likewise.
3155 * jv-valprint.c: Likewise.
3156 * p-lang.c: Likewise.
3157 * c-valprint.c: Likewise.
3158 * cp-abi.c: Likewise.
3159
3160 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3161
3162 * cli/cli-script.h (copy_command_lines): Export.
3163 * breakpoint.c: Include cli/cli-script.h.
3164 * Makefile.in (breakpoint.o): Update dependencies.
3165
3166 2002-08-26 Michael Snyder <msnyder@redhat.com>
3167
3168 * breakpoint.c (insert_breakpoints): Protect all references
3169 to 'process_warning'. Shorten long lines.
3170
3171 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3172
3173 * cli/cli-script.c (copy_command_lines): New function.
3174 * defs.h (copy_command_lines): Export.
3175 * testsuite/gdb.base/commands.exp: New tests for commands
3176 attached to a temporary breakpoint, and for commands that
3177 delete the breakpoint they are attached to.
3178
3179 2002-08-26 Michael Snyder <msnyder@redhat.com>
3180
3181 * breakpoint.c (bpstat_stop_status): Instead of copying the
3182 pointer to the breakpoint commands struct, make a new copy
3183 of the struct and point to that.
3184 (bpstat_clear): Free the commands struct.
3185 (bpstat_clear_actions): Free the commands struct.
3186 (bpstat_do_actions): Free the command actions. Also execute
3187 the local cleanups, instead of deleting them.
3188 (delete_breakpoint): Leave the commands field of the bpstat
3189 chain alone -- it will be freed later.
3190
3191 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3192
3193 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3194 deleted in 2002-08-20 commit. This function is still used by
3195 ppc-linux-nat.c.
3196
3197 2002-08-26 Keith Seitz <keiths@redhat.com>
3198
3199 * gdb-events.sh: Add selected-frame-level-changed event.
3200 * gdb-events.c: Regenerated.
3201 * gdb-events.h: Regenerated.
3202
3203 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3204
3205 Fix PR gdb/393:
3206 * inflow.c (terminal_save_ours): New function to save terminal
3207 settings.
3208 * inferior.h (terminal_save_ours): Declare.
3209 * target.c (debug_to_terminal_save_ours): New function.
3210 (cleanup_target): Defaults to_terminal_save_ours.
3211 (update_current_target): Inherit to_terminal_save_ours.
3212 (setup_target_debug): Set to_terminal_save_ours.
3213 * target.h (target_terminal_save_ours): New to save terminal settings.
3214 (target_ops): New member to_terminal_save_ours.
3215 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3216 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3217 * inftarg.c (init_child_ops): Likewise.
3218 * m3-nat.c (init_m3_ops): Likewise.
3219 * procfs.c (init_procfs_ops): Likewise.
3220 * wince.c (init_child_ops): Likewise.
3221 * win32-nat.c (init_child_ops): Likewise.
3222 * sol-thread.c (init_sol_thread_ops): Likewise.
3223
3224 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3225
3226 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3227 use regcache_* functions.
3228 (i386_gdbarch_init): Set store_return_value instead of
3229 deprecated_store_return_value.
3230
3231 * regcache.c (regcache_raw_write_signed,
3232 regcache_raw_write_unsigned): New functions.
3233 * regcache.h (regcache_raw_write_signed,
3234 regcache_raw_write_unsigned): New prototypes.
3235
3236 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3237
3238 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3239 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3240 source file dependencies. Cleanup corresponding generator rules.
3241
3242 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3243
3244 * regcache.h (register_offset_hack): Declare.
3245 (regcache_cooked_read_using_offset_hack): Declare.
3246 (regcache_cooked_write_using_offset_hack): Declare.
3247
3248 * regcache.c (register_offset_hack): New function.
3249 (regcache_cooked_read_using_offset_hack): New function.
3250 (regcache_cooked_write_using_offset_hack): New function.
3251 (regcache_dump): Check that the registers, according to their
3252 offset, are packed hard against each other.
3253 (cooked_xfer_using_offset_hack): New function.
3254
3255 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3256
3257 * regcache.c (struct regcache_descr): Add field register_type.
3258 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3259 in as a parameter
3260 (init_regcache_descr): Initialize register_type. Pass the descr
3261 to init_legacy_regcache_descr. Use register_type instead of
3262 REGISTER_VIRTUAL_TYPE.
3263 (register_type): New function.
3264 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3265 * regcache.h (register_type): Declare.
3266
3267 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3268
3269 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3270 instead of deprecated_store_return_value. Fix fallout from
3271 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3272
3273 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3274
3275 * regcache.c (max_register_size): New function.
3276 (init_legacy_regcache_descr): Ensure that max_register_size is
3277 large enough for REGISTER_VIRTUAL_SIZE.
3278 * regcache.h (max_register_size): Declare.
3279
3280 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3281
3282 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3283 store_return_value.
3284 (e500_extract_return_value): Change type of valbuf pointer to
3285 void.
3286
3287 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3288
3289 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3290 workaround.
3291
3292 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3293 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3294 long long) to prevent compiler warning on 64-bit systems.
3295
3296 2002-08-23 Andrew Cagney <cagney@redhat.com>
3297
3298 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3299 (DEPRECATED_STORE_RETURN_VALUE): New method.
3300 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3301 * gdbarch.h, gdbarch.c: Re-generate.
3302
3303 * values.c (set_return_value): Pass current_regcache to
3304 STORE_RETURN_VALUE.
3305 * arch-utils.h (legacy_store_return_value): Declare.
3306 * arch-utils.c (legacy_store_return_value): New function.
3307 (legacy_extract_return_value): Update parameters.
3308
3309 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3310 STORE_RETURN_VALUE.
3311 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3312 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3313 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3314 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3315 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3316 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3317 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3318 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3319 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3320 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3321
3322 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3323 * i386-tdep.c (i386_extract_return_value): Update.
3324 * arch-utils.c (legacy_extract_return_value): Update.
3325 * frv-tdep.c (frv_gdbarch_init): Update.
3326 * cris-tdep.c (cris_gdbarch_init): Update.
3327 * d10v-tdep.c (d10v_gdbarch_init): Update.
3328 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3329 * m68k-tdep.c (m68k_gdbarch_init): Update.
3330 * mcore-tdep.c (mcore_gdbarch_init): Update.
3331 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3332 * s390-tdep.c (s390_gdbarch_init): Update.
3333 * sparc-tdep.c (sparc_gdbarch_init): Update.
3334 * sh-tdep.c (sh_gdbarch_init): Update.
3335 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3336 * v850-tdep.c (v850_gdbarch_init): Update.
3337 * avr-tdep.c (avr_gdbarch_init): Update.
3338 * ia64-tdep.c (ia64_gdbarch_init): Update.
3339 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3340 * vax-tdep.c (vax_gdbarch_init): Update.
3341 * alpha-tdep.c (alpha_gdbarch_init): Update.
3342 * arm-tdep.c (arm_gdbarch_init): Update.
3343 * mips-tdep.c (mips_gdbarch_init): Update.
3344 * i386-tdep.c (i386_gdbarch_init): Update.
3345
3346 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3347
3348 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3349 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3350
3351 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3352
3353 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3354 problems.
3355
3356 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3357
3358 * infrun.c (handle_inferior_event): Move a comment outside of a
3359 function call, in order to avoid indent reformatting this part
3360 of the code in an unreadable way.
3361
3362 2002-08-23 Grace Sainsbury <graces@redhat.com>
3363
3364 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3365 when breakpoints fail. Move general breakpoint error messages to
3366 insert_breakpoints.
3367 * breakpoint.c (insert_breakpoints): Change warnings when
3368 breakpoints are nto inserted to specify the type. Remove call to
3369 memory_error when hardware breakpoints can't be inserted. Remove
3370 multiple calls to warning so all messages are sent to the user at
3371 once.
3372 (delete_breakpoints): Make insert error messsages more explicit.
3373
3374 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3375
3376 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3377 gdbserver/ChangeLog.
3378
3379 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3380
3381 * i386-tdep.c: Include "objfiles.h".
3382 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3383 skip_trampoline_code.
3384 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3385 (CPLUS_MARKER): Define to '.'.
3386
3387 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3388 member.
3389 (linux_corefile_thread_callback): Increase args->num_notes.
3390 (linux_make_note_section): Initialize thread_args.num_notes, and
3391 use it to determine whether notes for any threads were created.
3392
3393 2002-08-23 Donn Terry <donnte@microsoft.com>
3394
3395 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3396 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3397 and PCUNKILL.
3398 (write_with_trace): Conditionalize out the switch branch handling
3399 PCSHOLD if the corresponding macro is not defined. Likewise for
3400 PRSABORT and PRSTOP.
3401 This change will be needed by the Interix port.
3402
3403 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3404
3405 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3406 write_register wherever possible instead of manipulating the
3407 register bytes directly.
3408 Assign VALUE_CONTENTS to a variable and use that.
3409 The GPR numbers are now dependent on the architecture.
3410
3411 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3412
3413 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3414 ev_offset fields.
3415 (skip_prologue): Add support for BookE/e500 instructions.
3416 (e500_extract_return_value): New function.
3417 (frame_get_saved_regs): Add support for saving ev registers and
3418 pseudo gpr's.
3419 (e500_store_return_value): New function.
3420 (rs6000_gdbarch_init): Move up default intializations of
3421 deprecated_extract_return_value and store_return_value. Overwrite
3422 init of store_return_value with e500 specific version.
3423 Set extract_return_value for e500.
3424
3425 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3426
3427 * blockframe.c (generic_call_dummy_register_unwind): Use
3428 regcache_cooked_read to catch cases in which the variable is
3429 stored in a pseudo register.
3430
3431 2002-08-22 Andrew Cagney <cagney@redhat.com>
3432
3433 * NEWS: Mention that the i960 has been made obsolete.
3434 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3435 i960-tdep.c
3436 (remote-nrom.o): Obsolete target.
3437 (remote-nindy.o, i960-tdep.o): Ditto.
3438 * remote-nrom.c: Make file obsolete.
3439 * remote-nindy.c, remote-vx960.c: Ditto.
3440 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3441 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3442 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3443 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3444 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3445 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3446 i960-*-vxworks* obsolete.
3447 * MAINTAINERS: Note that the i960 is obsolete.
3448
3449 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3450
3451 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3452 detach to allow reinitialization.
3453
3454 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3455
3456 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3457 attempt).
3458
3459 2002-08-22 Jim Blandy <jimb@redhat.com>
3460
3461 * coffread.c (coff_symfile_read): Don't try to read the line
3462 number table from disk if the image file doesn't have a symbol
3463 table; we'll never actually look at the info anyway, and Windows
3464 ships DLL's with bogus file offsets for the line number data.
3465
3466 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3467
3468 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3469 an e500 executable.
3470
3471 2002-08-21 Michael Snyder <msnyder@redhat.com>
3472
3473 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3474 (MSYMBOL_SIZE): Replace macro with function.
3475 (DEFAULT_MIPS_TYPE): Delete unused macro.
3476 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3477 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3478
3479 2002-08-21 Jim Blandy <jimb@redhat.com>
3480
3481 * valops.c (value_cast): Simplify and correct logic for doing a
3482 static cast from a pointer to a base class to a pointer to a
3483 derived class.
3484
3485 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3486
3487 * infcmd.c (default_print_registers_info): Replace
3488 do_registers_info.
3489 (registers_info): Use gdbarch_print_registers_info instead of
3490 DO_REGISTERS_INFO.
3491 * inferior.h (default_print_registers_info): Replace
3492 do_registers_info.
3493 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3494 (DO_REGISTERS_INFO): Change to a predicate function.
3495 * gdbarch.h, gdbarch.c: Regenerate.
3496
3497 2002-08-21 Keith Seitz <keiths@redhat.com>
3498
3499 * gdb-events.sh: Add target-changed event.
3500 * gdb-events.c: Regenerated.
3501 * gdb-events.c: Regenerated.
3502 * valops.c (value_assign): Add target-changed event notification
3503 to inlval_register, lval_memory, and lval_reg_frame_relative.
3504
3505 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3506
3507 * NEWS: Add an entry regarding the improvement of the next/step
3508 operation on Alpha Tru64 multi-processor machines.
3509
3510 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3511
3512 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3513 directores.
3514 * Makefile.in: Update all _h macro definitions.
3515 * Makefile.in (install-gdbtk): Move to install section.
3516 (rdi-share/libangsd.a): Move to end of file.
3517
3518 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3519
3520 * frame.c (frame_register_unwind): When a register, set addrp to
3521 the register's byte.
3522
3523 2002-08-20 Michael Snyder <msnyder@redhat.com>
3524
3525 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3526 used locally, so move them from the target machine header to here.
3527 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3528 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3529 Make static.
3530 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3531
3532 2002-08-20 Andrew Cagney <cagney@redhat.com>
3533
3534 * NEWS: Mention that the Apollo line was made obsolete.
3535 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3536 m68*-hp-hpux* obsolete.
3537 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3538 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3539 * buildsym.c (make_blockvector): Make static.
3540 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3541 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3542 (ALLDEPFILES): Remove dstread.c.
3543 (dstread.o): Obsolete make rule.
3544 * dstread.c: Makefile obsolete.
3545 * dst.h: Ditto.
3546 * config/m68k/hp300hpux.mt: Ditto.
3547 * config/m68k/hp300hpux.mh: Ditto.
3548 * config/m68k/hp300bsd.mt: Ditto.
3549 * config/m68k/hp300bsd.mh: Ditto.
3550 * config/m68k/apollo68b.mt: Ditto.
3551 * config/m68k/apollo68v.mh: Ditto.
3552 * config/m68k/apollo68b.mh: Ditto.
3553
3554 2002-08-20 Michael Snyder <msnyder@redhat.com>
3555
3556 * mips-tdep.c (mips_in_return_stub): Make static.
3557 (mips_gdbarch_init): Set in_solib_return_trampoline.
3558 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3559
3560 2002-08-20 Michael Snyder <msnyder@redhat.com>
3561
3562 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3563 * gdbarch.c, gdbarch.h: Regenerate.
3564 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3565 Add.
3566 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3567
3568 2002-08-20 Michael Snyder <msnyder@redhat.com>
3569
3570 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3571 (mips_gdbarch_init): Set skip_trampoline_code,
3572 in_solib_call_trampoline.
3573 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3574 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3575
3576 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3577
3578 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3579
3580 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3581 vector type for ev registers.
3582 (e500_pseudo_register_read): New function.
3583 (e500_pseudo_register_write): New function.
3584 (e500_dwarf2_reg_to_regnum): New function.
3585 (PPC_UISA_NOFP_SPRS): New macro.
3586 (PPC_EV_REGS): New macro.
3587 (PPC_GPRS_PSEUDO_REGS): New macro.
3588 (registers_e500): New register set for e500.
3589 (variants): Add e500 variant.
3590 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3591 before setting architectural dependent variations. Initialize ev
3592 registers numbers. Add case for e500 architecture. Set the
3593 number of pseudo registers.
3594
3595 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3596
3597 * rs6000-tdep.c: Clean up comments.
3598
3599 2002-08-20 Andrew Cagney <cagney@redhat.com>
3600
3601 * h8300-tdep.c: Re-indent file.
3602
3603 2002-08-20 Jim Blandy <jimb@redhat.com>
3604
3605 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3606 default for this.
3607
3608 2002-08-20 Keith Seitz <keiths@redhat.com>
3609
3610 * breakpoints.c (watch_command_1): Use internal breakpoint
3611 when setting a watchpoint_scope breakpoint.
3612
3613 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3614
3615 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3616 (build_builtin_type_vec64i): Ditto.
3617 (build_builtin_type_vec128): Ditto.
3618 (build_builtin_type_vec128i): Ditto.
3619
3620 2002-08-19 Michael Snyder <msnyder@redhat.com>
3621
3622 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3623 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3624 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3625 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3626 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3627 CALL_DUMMY_ADDRESS): Delete.
3628 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3629 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3630 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3631 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3632 push_return_address.
3633 (mips_register_raw_size, mips_eabi_use_struct_convention,
3634 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3635 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3636 mips_init_extra_frame_info, mips_eabi_push_arguments,
3637 mips_n32n64_push_arguments, mips_push_return_address,
3638 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3639 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3640
3641 2002-08-19 Michael Snyder <msnyder@redhat.com>
3642
3643 * mips-tdep.c (mips_frame_num_args): New function.
3644 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3645 frame_saved_pc, frame_args_address, frame_locals_address,
3646 frame_num_args, and frame_args_skip.
3647 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3648 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3649 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3650 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3651
3652 2002-08-20 Michael Snyder <msnyder@redhat.com>
3653
3654 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3655 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3656 * mips-tdep.c (mips_store_struct_return): New function.
3657 (mips_extract_struct_value_address): New function.
3658 (mips_gdbarch_init): Set store_struct_return and
3659 extract_struct_value_address.
3660
3661 2002-08-20 David Carlton <carlton@math.stanford.edu>
3662
3663 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3664 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3665 (read_file_scope): Check that line_header is nonzero before
3666 decoding macro information.
3667
3668 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3669
3670 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3671 flag the general-purpose registers as floating-point on targets
3672 that don't support the floating-point registers.
3673
3674 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3675
3676 * rs6000-tdep.c (altivec_register_p): Delete.
3677 (rs6000_do_altivec_registers): Delete.
3678 (rs6000_altivec_registers_info): Delete.
3679 (rs6000_do_registers_info): Delete.
3680 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3681 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3682
3683 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3684
3685 * infcmd.c (do_registers_info): Print vector registers in hex
3686 format only.
3687 (print_vector_info): Check that printing registers
3688 makes sense.
3689 (print_float_info): Ditto.
3690
3691 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3692
3693 * mips-tdep.c (mips_gdbarch_init): Update.
3694 (mips_o32_extract_return_value): Rewrite.
3695 (mips_o32_store_return_value): Rewrite.
3696 (mips_o32_xfer_return_value): New function.
3697 (mips_xfer_register): Tweak debug print message. Allow for
3698 buf_offset when dumping the value transfered.
3699
3700 2002-08-20 Andrew Cagney <ac131313@redhat.com>
3701
3702 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3703 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3704 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3705 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3706 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3707
3708 2002-08-14 Michael Snyder <msnyder@redhat.com>
3709
3710 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3711
3712 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3713
3714 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3715 register.
3716 (P): New macro to define a register as a pseudo register.
3717 (R, R4, R8, R16, FR32, R64, R0): Updated.
3718 (struct variant): Add new fields for number of pseudo registers
3719 and number of total registers.
3720 (tot_num_registers): New macro replacing....
3721 (num_registers): ...deleted macro.
3722 (num_registers): New function.
3723 (num_pseudo_registers): New function.
3724 (variants): Update all variants to intialize new fields correctly.
3725 Postpone initialization of number of pseudo regs and real regs.
3726 (init_variants): New function.
3727 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3728 registers offsets.
3729
3730 2002-08-19 David Carlton <carlton@math.stanford.edu>
3731
3732 * valops.c (search_struct_field): Change error message to treat
3733 return value of 0 from value_static_field as meaning that field is
3734 optimized out.
3735 (value_struct_elt_for_reference): Ditto.
3736 * values.c (value_static_field): Treat an unresolved location the
3737 same as a nonexistent symbol. Fix PR gdb/635.
3738 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3739 enclosed. Fix PR gdb/574.
3740 * MAINTAINERS: Add self to Write After Approval list.
3741
3742 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3743
3744 * mips-tdep.c (mips_xfer_register): New function.
3745 (mips_n32n64_extract_return_value): Rewrite.
3746 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3747 instead of deprecated_extract_return_value.
3748
3749 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
3750
3751 * rs6000-tdep.c (TDEP): Delete macro.
3752 (branch_dest): Replace use of TDEP macro with its body.
3753 (rs6000_pop_frame): Ditto.
3754 (rs6000_push_arguments): Ditto.
3755 (rs6000_skip_trampoline_code): Ditto.
3756 (rs6000_frame_saved_pc): Ditto.
3757 (rs6000_frame_chain): Ditto.
3758 (rs6000_register_name): Ditto.
3759 (rs6000_register_byte): Ditto.
3760 (rs6000_register_raw_size): Ditto.
3761 (rs6000_register_virtual_type): Ditto.
3762 (rs6000_register_convertible): Ditto.
3763 (rs6000_convert_from_func_ptr_addr): Ditto.
3764
3765 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
3766
3767 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3768 conditionally.
3769 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
3770 MIPS_LINUX_JB_ELEMENT_SIZE.
3771 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
3772 for MAX_REGISTER_RAW_SIZE arrays.
3773 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
3774 MIPS_LINUX_JB_ELEMENT_SIZE.
3775
3776 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
3777
3778 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
3779
3780 2002-08-19 Aidan Skinner <aidan@velvet.net>
3781
3782 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
3783 ada-valprint.c ada-tasks.c.
3784 (YYFILES): Add ada-exp.y.
3785 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
3786 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
3787 (ada-exp.tab.o): New target.
3788
3789 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3790
3791 * regcache.c (regcache_xfer_part): New function.
3792 (regcache_raw_read_part): New function.
3793 (regcache_raw_write_part): New function.
3794 (regcache_cooked_read_part): New function.
3795 (regcache_cooked_write_part): New function.
3796 * regcache.h (regcache_raw_read_part): Declare.
3797 (regcache_raw_write_part): Declare.
3798 (regcache_cooked_read_part): Declare.
3799 (regcache_cooked_write_part): Declare.
3800
3801 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
3802
3803 * remote.c (remote_open_1): Add async_p.
3804 (remote_async_open_1): Delete.
3805 (open_remote_target): Delete.
3806 (remote_open, extended_remote_open): Update calls to remote_open_1.
3807 (remote_async_open, extended_remote_async_open): Call
3808 remote_open_1 instead of remote_async_open_1.
3809
3810 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3811
3812 * blockframe.c: Fix a few coding standard violations.
3813
3814 2002-08-19 Mark Kettenis <kettenis@gnu.org>
3815
3816 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
3817 here from ...
3818 * config/i386/tm-i386sco5.h: ... here. File removed.
3819 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
3820
3821 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
3822 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
3823 (TM_FILE): Set to tm-i386.h.
3824 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
3825 * config/i386/tm-i386v.h: Remove file.
3826 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
3827 instead of "i386/tm-i386v.h".
3828 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3829 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
3830 "i386/tm-i386v.h".
3831 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
3832 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
3833 "i386/tm-i386.h".
3834
3835 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3836
3837 * config/i386/nm-i386v.h: Add protection against
3838 multiple-inclusion.
3839 (i386_register_u_addr): Remove prototype.
3840 (register_u_addr): New prototype.
3841 (REGISTER_U_ADDR): Redefine accordingly.
3842 * i386v-nat.c: Improve several comments.
3843 (i386_register_u_addr): Change signature and rename to
3844 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
3845 ubase variable.
3846
3847 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3848
3849 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
3850 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
3851 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
3852 deprecated_extract_return_value.
3853 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
3854 rename mips_o32o64_push_arguments.
3855 (mips_gdbarch_init): Update.
3856 (mips_extract_return_value): Delete.
3857 (mips_o32_extract_return_value): Clone mips_extract_return_value.
3858 (mips_o64_extract_return_value): Clone mips_extract_return_value.
3859 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
3860 (mips_n32n64_extract_return_value): Clone
3861 mips_extract_return_value.
3862 (mips_store_return_value): Delete.
3863 (mips_o32_store_return_value): Clone mips_store_return_value.
3864 (mips_o64_store_return_value): Clone mips_store_return_value.
3865 (mips_eabi_store_return_value): Clone mips_store_return_value.
3866 (mips_n32n64_store_return_value): Clone mips_store_return_value.
3867
3868 2002-08-18 Aidan Skinner <aidan@velvet.net>
3869
3870 * ada-lang.c: Use gdb_string.h instead of <string.h>.
3871 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
3872
3873 2002-08-18 Aidan Skinner <aidan@velvet.net>
3874
3875 * ada-lang.c: Run through gdb_indent.sh.
3876 * ada-lang.h: Run through gdb_indent.sh.
3877 * ada-tasks.c: Run through gdb_indent.sh.
3878 * ada-typeprint.c: Run through gdb_indent.sh.
3879 * ada-valprint.c: Run through gdb_indent.sh.
3880
3881 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3882
3883 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
3884 ABI.
3885
3886 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3887
3888 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
3889
3890 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
3891 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
3892
3893 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
3894 write_register_gen instead of write_register_bytes.
3895
3896 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
3897 i[3456]-*-osf1mk* configurations have been made obsolete.
3898 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
3899 i[3456]86-*-osf1mk* hosts obsolete.
3900 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
3901 targets obsolete.
3902 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
3903 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
3904 config/i386/i386m3.mt, config/i386/nm-m3.h,
3905 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
3906 config/i386/i386mk.mh, config/i386/i386mk.mt,
3907 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
3908 obsolete.
3909 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
3910 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
3911 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
3912
3913 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3914
3915 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
3916 (hppa_value_returned_from_stack): Declare.
3917 (hppa_extract_return_value): Declare.
3918 * config/pa/hppa.mt: New file.
3919 * configure.tgt: Recognize hppa*-*-*.
3920 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
3921
3922 2002-08-18 Mark Kettenis <kettenis@gnu.org>
3923
3924 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
3925 comment.
3926
3927 2002-08-17 Mark Kettenis <kettenis@gnu.org>
3928
3929 * top.c (gdb_rl_operate_and_get_next): Make sure
3930 operate-and-get-next functions correctly even when the history
3931 list is completely filled.
3932
3933 2002-08-18 Andrew Cagney <ac131313@redhat.com>
3934
3935 * MAINTAINERS (Target Instruction Set Architectures): Rename
3936 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
3937 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
3938 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
3939 already listed under Host/Native.
3940
3941 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
3942 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
3943 mips*-*-*.
3944
3945 2002-08-17 Andrew Cagney <ac131313@redhat.com>
3946
3947 * config/ia64/ia64.mt: New file.
3948 * config/alpha/alpha.mt: New file.
3949 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
3950 ia64-linux-gnu. Mention that ia64-elf is broken.
3951 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
3952
3953 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
3954
3955 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
3956 generic_func_frame_valid instead of func_frame_valid.
3957
3958 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3959
3960 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
3961 procfs appears to be broken when debugging on multi-processor
3962 machines. So enable software single stepping in order to avoid
3963 using the procfs interface to do next/step operations, using
3964 internal breakpoints instead.
3965
3966 * infrun.c (handle_inferior_event): Readjust the stop_pc by
3967 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
3968 make this pc address equal to the value it would have if the
3969 system stepping capability was used. Also set a new flag used
3970 to ensure that we don't readjust the PC one more time later.
3971
3972 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
3973 address by DECR_PC_AFTER_BREAK when software single step is
3974 in use for this architecture, as this has already been taken
3975 care of in handle_inferior_event().
3976
3977 2002-08-16 Joel Brobecker <brobecker@gnat.com>
3978
3979 * infrun.c (handle_inferior_event): Minor reformatting, to make
3980 a rather long condition expression easier to read.
3981
3982 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3983
3984 * Makefile.in (gdbtk.o): Move to end of file.
3985 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
3986 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
3987 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
3988 (gdbtk-wrapper.o, gdbres.o): Ditto.
3989
3990 2002-08-16 Andrew Cagney <ac131313@redhat.com>
3991
3992 * Makefile.in (copying.o): Separate out compile rule.
3993 (hpux-thread.o, procfs.o, signals.o): Ditto.
3994 (v850ice.o, z8k-tdep.o): Ditto.
3995 (tui-file.o): Move to TUI section.
3996 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
3997 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
3998
3999 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4000
4001 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4002 skip_trampoline_code, for better namespace-proofing.
4003
4004 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4005
4006 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4007
4008 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4009
4010 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4011
4012 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4013 signal, check whether we hit a breakpoint before checking for a
4014 single step breakpoint. Otherwise, GDB fails to notice that a
4015 breakpoint has been hit when stepping onto a breakpoint.
4016
4017 2002-08-16 Keith Seitz <keiths@redhat.com>
4018
4019 * gdb-events.sh (clear_gdb_event_hooks): New function.
4020 * gdb-events.c: Regenerate.
4021 * gdb-events.h: Regenerate.
4022
4023 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4024
4025 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4026 not_a_sw_breakpoint.
4027 * breakpoint.h (bpstat_stop_status): Add parameter names.
4028
4029 2002-08-16 Grace Sainsbury <graces@redhat.com>
4030
4031 * remote.c (remote_insert_hw_breakpoint)
4032 (remote_remove_hw_breakpoint): Fix calculation of length field
4033 for Z-packet.
4034
4035 2002-08-15 Michael Snyder <msnyder@redhat.com>
4036
4037 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4038 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4039 (supply_fpregset): Ditto.
4040
4041 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4042 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4043 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4044 (TARGET_READ_SP): Delete.
4045 (DO_REGISTERS_INFO): Delete.
4046 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4047 Delete.
4048 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4049 from macros to functions.
4050
4051 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4052 (mips_register_convertible, mips_register_convert_to_virtual,
4053 mips_register_convert_to_raw): Make static.
4054 (mips_read_sp): New function.
4055 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4056 (mips_do_registers_info): Make static.
4057 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4058 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4059 (mips_register_convert_from_type, mips_register_convert_to_type):
4060 New functions.
4061 (mips_gdbarch_init): Set up function_start_offset,
4062 register_virtual_size, pc_in_sigtramp.
4063
4064 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4065
4066 * infcmd.c (vector_info): New function.
4067 (_initialize_infcmd): Add command "info vector".
4068 (print_vector_info): New function.
4069
4070 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4071 * gdbarch.h, gdbarch.c: Regenerate.
4072
4073 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4074
4075 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4076 ``print_all''. Only print vector registers when ``print_all''.
4077
4078 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4079
4080 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4081 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4082
4083 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4084 Add `args' parameter.
4085 * gdbarch.h, gdbarch.c: Regenerate.
4086
4087 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4088
4089 * infcmd.c (float_info): Call print_float_info.
4090 (print_float_info): New function. By default, print the
4091 floating-point registers.
4092
4093 * arch-utils.h (default_print_float_info): Delete declaration.
4094 * arch-utils.c (default_print_float_info): Delete function.
4095
4096 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4097
4098 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4099 out define.
4100
4101 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4102 FRAME.
4103
4104 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4105 * configure.host: Make i[3456]86-*-aix host obsolete.
4106 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4107 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4108 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4109 config/i386/xm-i386aix.h: Make files obsolete.
4110 * i386aix-nat.c: Make file obsolete.
4111 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4112 (i386aix-nat.o): Make target obsolete.
4113
4114 * config/i386/nm-gnu.h: Removed.
4115 * config/i386/nm-i386gnu.h: New file.
4116 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4117 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4118 Moved here from ...
4119 * config/i386/tm-i386gnu.h: ... here. Removed.
4120 * config/i386/xm-i386gnu.h: Removed.
4121 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4122 (NAT_FILE): Set to nm-i386gnu.h.
4123 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4124 * i386-tdep.c: New file.
4125 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4126 (i386gnu-tdep.o): Specify dependencies.
4127
4128 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4129
4130 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4131 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4132 Adjust a few comments to reflect reality a bit closer.
4133 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4134 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4135 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4136 target_insert_watchpoint, target_remove_watchpoint):
4137 Move defines to ...
4138 * config/i386/nm-i386sco5.h: ... here.
4139 (kernel_u_size): Add prototype. Improve a few comments and add
4140 protection against multiple inclusion.
4141
4142 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4143 out define.
4144
4145 * uw-thread.c (SP_ARG0): Define if not already defined.
4146 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4147
4148 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4149
4150 * config/i386/tm-i386.h: Don't include "regcache.h".
4151
4152 * i387-tdep.h (i387_print_float_info): New prototype.
4153 * i387-tdep.c (print_i387_value, print_i387_ext,
4154 print_i387_status_word, print_i387_control_word): Add `struct
4155 ui_file *' argument and use it for output.
4156 (i387_print_float_info): Renamed from i387_float_info. Add
4157 `struct gdbarch *' and `struct ui_file *' arguments and use the
4158 latter for output.
4159 * i386-tdep.c: Include "i387-tdep.h".
4160 (i386_gdbarch_init): Set print_float_info.
4161 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4162 (FLOAT_INFO): Remove define.
4163
4164 2002-08-13 Michael Snyder <msnyder@redhat.com>
4165
4166 * mips-tdep.c (mips_push_arguments): Rename to
4167 mips_eabi_push_arguments, and tune for EABI.
4168 (MIPS_REGS_HAVE_HOME_P): Delete.
4169 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4170 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4171 Delete references to mips_regs_have_home_p.
4172
4173 2002-08-14 Keith Seitz <keiths@redhat.com>
4174
4175 * Makefile.in (install-gdbtk): Create insight plugin directory.
4176 Install plugins.tcl file.
4177
4178 2002-08-14 Keith Seitz <keiths@redhat.com>
4179
4180 * configure.in: Move SUBDIRS to near top of the file so that
4181 --enable options may add things to it.
4182 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4183 * configure: Regenerate.
4184
4185 2002-08-13 Michael Snyder <msnyder@redhat.com>
4186
4187 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4188 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4189 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4190
4191 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4192
4193 * vax-tdep.c (vax_get_saved_register): Delete function.
4194 (vax_gdbarch_init): Update.
4195 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4196 (ns32k_gdbarch_init): Update.
4197 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4198 (alpha_gdbarch_init): Update.
4199
4200 2002-08-13 Andrew Cagney <cagney@redhat.com>
4201
4202 * regcache.c (init_regcache_descr): Overallocate the
4203 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4204 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4205 nr_raw_registers.
4206 (set_register_cached): Add range checking assertions. Use
4207 current_regcache.
4208
4209 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4210
4211 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4212 numbers for MMX registers.
4213
4214 2002-08-13 Andrew Cagney <cagney@redhat.com>
4215
4216 * i386-tdep.c (i386_gdbarch_init): Use
4217 generic_unwind_get_saved_register.
4218
4219 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4220
4221 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4222 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4223 target vector.
4224 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4225 Delete. Add comment regarding this now-deleted target method.
4226
4227 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4228
4229 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4230 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4231 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4232 real PC and the page number (if it's within the memory bank window).
4233 (m68hc11_pseudo_register_write): Likewise when saving.
4234 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4235 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4236 (m68hc11_register_raw_size): And use 32-bit for it.
4237 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4238 16K memory bank is used by the prog; also use the virtual pc.
4239
4240 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4241
4242 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4243 (m68hc11_gdbarch_init): Install it in gdbarch.
4244 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4245 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4246 (MSYMBOL_SIZE): New for documentation.
4247 (insn_return_kind): Enum to specify how a function returns.
4248 (frame_extra_info): Cleanup and record the return mode.
4249 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4250 register in address computation.
4251 (m68hc11_get_return_insn): New to obtain the return instruction used
4252 by the function.
4253 (m68hc11_frame_init_saved_regs): Take into account the return
4254 instruction used by the function for far and interrupt functions.
4255 (m68hc11_init_extra_frame_info): Take into account page register.
4256 (m68hc11_frame_args_address): Adjust according to the return mode.
4257 (show_regs): Print page register only when it's used.
4258
4259 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4260
4261 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4262 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4263 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4264 registers.
4265 (m68hc11_register_raw_size): Likewise.
4266
4267 2002-08-13 Andrew Cagney <cagney@redhat.com>
4268
4269 * i386-tdep.c (i386_register_name): Handle mmx registers.
4270 (mmx_regnum_p): New function.
4271 (i386_mmx_names): New array.
4272 (mmx_num_regs): New variable.
4273 (i386_pseudo_register_read): New function.
4274 (i386_pseudo_register_write): New function.
4275 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4276
4277 * regcache.c (regcache_raw_read_unsigned): New function.
4278 (regcache_raw_read_signed): New function.
4279 * regcache.h (regcache_raw_read_unsigned): Declare.
4280 (regcache_raw_read_signed): Declare.
4281
4282 2002-08-13 Andrew Cagney <cagney@redhat.com>
4283
4284 * regcache.c (regcache_raw_read_as_address): Delete function.
4285 (regcache_cooked_read_signed): New function.
4286 (regcache_cooked_read_unsigned): New function.
4287 * regcache.h (regcache_cooked_read_signed): Declare.
4288 (regcache_cooked_read_unsigned): Declare.
4289 (regcache_raw_read_as_address): Delete declaration.
4290
4291 * blockframe.c (generic_read_register_dummy): Use
4292 regcache_cooked_read_unsigned.
4293 * i386-tdep.c (i386_extract_struct_value_address): Use
4294 regcache_cooked_read_unsigned.
4295
4296 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4297
4298 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4299 double sizes according to ELF ABI flags.
4300 (gdbarch_tdep): Record elf_flags.
4301
4302 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4303
4304 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4305 (m6812_prolog): They can appear in 68HC12 function prologue.
4306 (m68hc11_frame_chain): Cleanup.
4307
4308 2002-08-12 Andrew Cagney <cagney@redhat.com>
4309
4310 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4311 declarations.
4312 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4313 (i386_linux_register_raw_size): Delete function.
4314 (i386_linux_init_abi): Update.
4315 * i386-tdep.c (i386_register_raw_size): Delete function.
4316 (i386_register_byte): Delete function.
4317 (i386_gdbarch_init): Update.
4318 (i386_register_size): Delete array.
4319 (i386_register_offset): Delete array.
4320
4321 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4322 (REGISTER_RAW_SIZE): Delete macro.
4323 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4324 (REGISTER_BYTE): Delete macro.
4325
4326 2002-08-11 Aidan Skinner <aidan@velvet.net>
4327
4328 * ada-lang.c (ada_lookup_partial_symbol)
4329 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4330 prototype names so that grep ^func works properly.
4331
4332 * ada-lang.c (ada_array_element_type)
4333 (ada_lookup_partial_symbol): Fix typos in parameter list.
4334
4335 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4336 Fix prototype names so that grep ^func works properly.
4337
4338 2002-08-10 Andrew Cagney <cagney@redhat.com>
4339 Elena Zannoni <ezannoni@redhat.com>
4340 Martin M. Hunt <hunt@redhat.com>
4341
4342 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4343 (build_builtin_type_vec128i): Set the vector bit.
4344 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4345 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4346 (build_builtin_type_vec64): New function.
4347 (build_builtin_type_vec64i): New function.
4348 (build_gdbtypes): Initialize builtin_type_vec64 and
4349 builtin_type_vec64i.
4350
4351 2002-08-09 Andrew Cagney <cagney@redhat.com>
4352
4353 * regcache.c (regcache_dump): Compare the register offset
4354 with REGISTER_BYTE.
4355 * arch-utils.c (generic_register_byte): New function.
4356 * arch-utils.h (generic_register_byte): Declare.
4357 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4358 * gdbarch.h, gdbarch.c: Regenerate.
4359
4360 2002-08-09 Andrew Cagney <cagney@redhat.com>
4361
4362 * regcache.c: Include "gdbcmd.h"
4363 (_initialize_regcache): Add commands "maintenance print
4364 registers", "maintenance print raw-registers" and "maintenance
4365 print cooked-registers".
4366 (enum regcache_dump_what): Define.
4367 (dump_endian_bytes): New function.
4368 (regcache_dump): New function.
4369 (regcache_print): New function.
4370 (maintenance_print_registers): New function.
4371 (maintenance_print_raw_registers): New function.
4372 (maintenance_print_cooked_registers): New function.
4373 * Makefile.in (regcache.o): Update dependencies.
4374
4375 2002-08-09 Michael Snyder <msnyder@redhat.com>
4376
4377 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4378 (mips_push_arguments): Correct some comments. Use paddr_nz
4379 for printing addresses in debug output. Replace static
4380 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4381 (mips_n32n64_push_arguments): New function, cloned from
4382 mips_push_arguments and tuned for the n32/n64 ABI.
4383 (mips_push_register): Buffer needs dynamic allocation.
4384 (mips_print_register): Ditto.
4385 (do_gp_register_row): Ditto.
4386 (mips_store_return_value): Ditto.
4387 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4388
4389 2002-08-09 Don Howard <dhoward@redhat.com>
4390
4391 * memattr.c (mem_info_command): Print special case of upper bound
4392 as max CORE_ADDR + 1.
4393
4394 2002-08-08 Michael Snyder <msnyder@redhat.com>
4395
4396 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4397 returns structs by ref if they're too big to fit in two registers.
4398
4399 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4400
4401 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4402 saved regs value.
4403 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4404 mips_find_saved_regs().
4405 (mips_pop_frame): Likewise.
4406
4407 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4408
4409 * blockframe.c (frame_saved_regs_register_unwind): Revise
4410 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4411 frames are in use.
4412
4413 2002-08-09 Grace Sainsbury <graces@redhat.com>
4414
4415 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4416 T-packets; the 'a' is not taken as a register number.
4417 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4418 (remote_stopped_data_address): New functions; add to target
4419 vector.
4420 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4421 prototypes to match other implementations of this
4422 function. replace integer argument with pointer -- the length
4423 field in the Z-packet is the length of what is pointed to or 1 if
4424 pointer is null. Add to target vector.
4425 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4426 target vector.
4427
4428 From Mark Salter:
4429 * remote.c (remote_wait): Add support to extract optional
4430 watchpoint information from T-packet. Ignore unrecognized
4431 optional info in T-packet.
4432 (remote_async_wait): Ditto.
4433
4434 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4435
4436 * cli/cli-dump.c: Change fopen modes to use binary open modes
4437 as defined in include/fopen-bin.h throughout.
4438
4439 2002-08-08 Michael Snyder <msnyder@redhat.com>
4440
4441 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4442
4443 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4444
4445 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4446 assertion failure by returning early after a warning.
4447
4448 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4449
4450 * mips-tdep.c (mips_find_saved_regs): Make static.
4451 (mips_frame_init_saved_regs): New function.
4452 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4453 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4454 (mips_find_saved_regs): Delete declaration.
4455
4456 2002-08-08 Grace Sainsbury <graces@redhat.com>
4457
4458 * remote.c (remote_wait, remote_async_wait): Change
4459 thread_num from int to ULONGEST.
4460 (unpack_varlen_hex): Change result parameter from
4461 int * to ULONGEST *.
4462
4463 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4464
4465 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4466 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4467 powerpc*-*-*.
4468 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4469
4470 2002-08-08 Andrew Cagney <cagney@redhat.com>
4471
4472 * gcore.c (override_derive_stack_segment): Delete variable.
4473 (preempt_derive_stack_segment): Delete function.
4474 (derive_stack_segment): Delete function.
4475 (default_derive_stack_segment): Renamed to derive_stack_segment.
4476 (override_derive_heap_segment): Delete variable.
4477 (preempt_derive_heap_segment): Delete function.
4478 (derive_heap_segment): Delete function.
4479 (default_derive_heap_segment): Rename to derive_heap_segment.
4480
4481 2002-08-06 Michael Snyder <msnyder@redhat.com>
4482
4483 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4484 * mips-tdep.c (mips_EABI_use_struct_convention,
4485 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4486 New functions. (mips_use_struct_convention): Delete.
4487 (mips_gdbarch_init): set use_gdbarch_convention.
4488
4489 2002-08-06 Michael Snyder <msnyder@redhat.com>
4490
4491 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4492 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4493 mips_o32_reg_struct_has_addr): New functions.
4494 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4495
4496 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4497
4498 * regcache.c (pseudo_register): Delete function.
4499 (fetch_register): Delete function.
4500 (store_register): Delete function.
4501 (regcache_raw_read, legacy_read_register_gen): Use
4502 target_fetch_registers instead of fetch_register.
4503 (legacy_write_register_gen, regcache_raw_write): Use
4504 target_store_register instead of store_register.
4505 (write_register_bytes): Ditto.
4506
4507 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4508 (STORE_PSEUDO_REGISTER): Delete.
4509 * gdbarch.h, gdbarch.c: Regenerate.
4510
4511 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4512
4513 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4514 write dump file binary.
4515
4516 2002-08-05 Michael Snyder <msnyder@redhat.com>
4517
4518 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4519 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4520 (mips_gdbarch_init): Set N32 target to be mips64.
4521
4522 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4523
4524 * frame.c (find_saved_register): Break out of loop once saved
4525 register address is found. Don't mention sparc in loop comment
4526 anymore.
4527
4528 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4529
4530 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4531 mips_default_saved_regsize to 8.
4532
4533 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4534
4535 * gcore.c: Do not include <sys/procfs.h>.
4536 * Makefile.in (gcore.o): Update dependencies.
4537
4538 2002-08-06 Andrew Cagney <cagney@redhat.com>
4539
4540 * configure.tgt: Make arc-*-* obsolete.
4541 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4542 * MAINTAINERS: Make arc-elf obsolete.
4543 * arc-tdep.c: Make file obsolete.
4544 * config/arc/arc.mt: Ditto.
4545 * config/arc/tm-arc.h: Ditto.
4546
4547 2002-08-05 Theodore A. Roth <troth@verinet.com>
4548
4549 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4550
4551 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4552
4553 * mcore-tdep.c (mcore_gdbarch_init): Use
4554 generic_unwind_get_saved_register instead of
4555 generic_get_saved_register.
4556 * v850-tdep.c (v850_gdbarch_init): Ditto.
4557 * frv-tdep.c (frv_gdbarch_init): Ditto.
4558 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4559 * s390-tdep.c (s390_gdbarch_init): Ditto.
4560 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4561 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4562 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4563
4564 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4565
4566 * objfiles.h: Add missing #include "symfile.h"
4567
4568 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4569
4570 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4571
4572 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4573 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4574 of FIELD_BITSIZE.
4575
4576 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4577
4578 * NEWS: Cleanup and nitpick.
4579
4580 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4581
4582 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4583
4584 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4585
4586 * Makefile.in (gdbtk-bp.o): Update dependencies.
4587 (gdbtk-register.o): Ditto.
4588 (gdbtk-varobj.o): Ditto.
4589
4590 2002-08-03 Andrew Cagney <cagney@redhat.com>
4591
4592 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4593 m68hc11_fetch_pseudo_register.
4594 (m68hc11_pseudo_register_write): Replace
4595 m68hc11_store_pseudo_register.
4596 (m68hc11_gdbarch_init): Update.
4597
4598 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4599
4600 * gdbarch.sh: Include "gdb_string.h".
4601 * gdbarch.c: Regenerate.
4602
4603 * regcache.c: Include "gdb_string.h".
4604 * ax-general.c: Ditto.
4605 * varobj.c: Ditto.
4606 * std-regs.c: Ditto.
4607 * fbsd-proc.c: Ditto.
4608 * thread.c: Ditto.
4609
4610 * Makefile.in (regcache.o): Update dependencies.
4611 (thread.o, gdbarch.o): Ditto.
4612 (ax-general.o, gdbarch.o): Ditto.
4613 (varobj.o, std-regs.o): Ditto.
4614 (fbsd-proc.o): Specify dependencies.
4615
4616 2002-08-02 Andrew Cagney <cagney@redhat.com>
4617
4618 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4619 regnum.
4620 (regcache_cooked_write): Ditto.
4621
4622 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4623
4624 * regcache.c (regcache_cooked_read): New function.
4625 (regcache_cooked_write): New function.
4626 (read_register_gen): Rewrite using regcache_cooked_read.
4627 (write_register_gen): Rewrite using regcache_cooked_write.
4628
4629 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4630 Declare.
4631
4632 2002-08-02 Andrew Cagney <cagney@redhat.com>
4633
4634 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4635 Replace the architecture methods register_read and register_write.
4636 * gdbarch.h, gdbarch.c: Regenerate.
4637 * regcache.c (init_regcache_descr): Update.
4638 (read_register_gen): Update.
4639 (write_register_gen): Update.
4640 (supply_register): Update comment.
4641
4642 * sh-tdep.c (sh_gdbarch_init): Update.
4643 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4644 `regcache' and `gdbarch' parameters. Make `buffer' a void
4645 pointer. Update code.
4646 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4647 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4648 void pointer. Update code.
4649 (sh64_register_write): Delete.
4650 (sh4_register_read): Delete.
4651 (sh64_register_read): Delete.
4652 (sh4_register_write): Delete.
4653 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4654 void pointer, `to' parameter a void pointer.
4655 (sh_sh64_register_convert_to_raw): Ditto.
4656
4657 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4658
4659 * mips-tdep.c (mips_register_virtual_type): Use architecture
4660 invariant return values.
4661
4662 2002-08-01 Andrew Cagney <cagney@redhat.com>
4663
4664 * linux-proc.c: Include "gdb_string.h".
4665 * Makefile.in (linux-proc.o): Update dependency list.
4666
4667 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4668
4669 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4670 comment.
4671
4672 2002-08-01 Grace Sainsbury <graces@redhat.com>
4673
4674 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4675 to_insert_watchpoint, to_remove_watchpoint,
4676 to_stopped_by_watchpoint, to_stopped_data_address,
4677 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4678 target vecctor. Define their corresponding macros so they call
4679 them.
4680
4681 * target.c: Add default and debug versions of for
4682 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4683 to_insert_watchpoint, to_remove_watchpoint,
4684 to_stopped_by_watchpoint, to_stopped_data_address,
4685 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4686
4687 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4688
4689 * mips-tdep.c (mips_register_virtual_type): New function.
4690 (mips_gdbarch_init): Register mips_register_virtual_type()
4691 with gdbarch machinery.
4692 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4693 this file instead of tm-bigmips.h.
4694 (MIPS_REGSIZE): Delete this macro.
4695 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4696 multiarch version in mips-tdep.c will be found.
4697
4698 2002-08-01 Andrew Cagney <cagney@redhat.com>
4699
4700 * NEWS: Menion that CHILL has been made obsolete.
4701
4702 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
4703 * stabsread.c (read_range_type): Ditto.
4704 * gdbtypes.h: Ditto.
4705 * language.c (binop_type_check): Ditto.
4706 (binop_result_type): Ditto.
4707 (integral_type): Ditto.
4708 (character_type): Ditto.
4709 (string_type): Ditto.
4710 (boolean_type): Ditto.
4711 (structured_type): Ditto.
4712 (lang_bool_type): Ditto.
4713 (binop_type_check): Ditto.
4714 * language.h (_LANG_chill): Ditto.
4715 * dwarfread.c (set_cu_language): Ditto.
4716 * dwarfread.c (CHILL_PRODUCER): Ditto.
4717 * dwarfread.c (handle_producer): Ditto.
4718 * expression.h (enum exp_opcode): Ditto.
4719 * eval.c: Ditto for comments.
4720 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4721 * expprint.c (print_subexp): Ditto.
4722 (print_subexp): Ditto.
4723 * valops.c (value_cast): Ditto.
4724 (search_struct_field): Ditto.
4725 * value.h (COERCE_VARYING_ARRAY): Ditto.
4726 * symfile.c (init_filename_language_table): Ditto.
4727 (add_psymbol_with_dem_name_to_list): Ditto.
4728 * valarith.c (value_binop): Ditto.
4729 (value_neg): Ditto.
4730 * valops.c (value_slice): Ditto.
4731 * symtab.h (union language_specific): Ditto.
4732 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4733 (SYMBOL_DEMANGLED_NAME): Ditto.
4734 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4735 * defs.h (enum language): Ditto.
4736 * symtab.c (got_symtab): Ditto.
4737 * utils.c (fprintf_symbol_filtered): Ditto.
4738
4739 * ch-typeprint.c: Make file obsolete.
4740 * ch-valprint.c: Make file obsolete.
4741 * ch-lang.h: Make file obsolete.
4742 * ch-exp.c: Make file obsolete.
4743 * ch-lang.c: Make file obsolete.
4744
4745 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4746 CHILL_LIB.
4747 (TARGET_FLAGS_TO_PASS): Ditto.
4748 (CHILLFLAGS): Obsolete.
4749 (CHILL): Obsolete.
4750 (CHILL_FOR_TARGET): Obsolete.
4751 (CHILL_LIB): Obsolete.
4752 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4753 ch-valprint.c.
4754 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4755 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4756 ch-lang.o.
4757 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4758 targets.
4759
4760 2002-07-31 Joel Brobecker <brobecker@gnat.com>
4761
4762 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4763 This does not change anything at the moment, but will be helpful
4764 later when full Ada support is integrated.
4765
4766 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4767
4768 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4769 help message.
4770
4771 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4772
4773 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
4774 and save it in a local variable. Use variable in later test.
4775
4776 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4777
4778 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
4779 test. (Thanks to Daniel Jacobowitz.)
4780
4781 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4782
4783 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
4784 (mips_abi_strings): Add "n64".
4785 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
4786
4787 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4788
4789 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
4790 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
4791
4792 2002-07-31 Kevin Buettner <kevinb@redhat.com>
4793
4794 * utils.c (host_pointer_to_address, address_to_host_pointer):
4795 Use gdb_assert() instead of explicit call to internal_error().
4796
4797 2002-07-30 Kevin Buettner <kevinb@redhat.com>
4798
4799 * Makefile.in (rs6000-nat.o): Update dependencies.
4800
4801 From Nicholas Duffek:
4802 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
4803 (aix-thread.o): New rule.
4804 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
4805 * config/powerpc/aix432.mh: New file.
4806
4807 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4808
4809 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
4810 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
4811 (fetch_core_registers, ppc_linux_supply_gregset)
4812 (ppc_linux_supply_fpregset): New functions.
4813 (ppc_linux_regset_core_fns): New.
4814 (_initialize_ppc_linux_tdep): Call add_core_fns.
4815 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
4816 and ppc_linux_supply_gregset.
4817 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
4818 (supply_fpregset): Call ppc_linux_supply_fpregset.
4819 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
4820 corelow.o.
4821 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
4822
4823 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
4824
4825 * symtab.c (lookup_symbol): Demangle before lowercasing.
4826
4827 2002-07-30 Andrew Cagney <ac131313@redhat.com>
4828
4829 * symtab.h: Replace #include "gdb_obstack.h" with opaque
4830 declaration.
4831 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
4832 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
4833 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
4834 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
4835 "gdb_string.h".
4836 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
4837 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
4838 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
4839 (avr-tdep.o, mon960-rom.o): Ditto.
4840 (aout_stabs_gnu_h): Define.
4841 (symtab_h): Remove $(gdb_obstack_h).
4842
4843 2002-07-30 Jim Blandy <jimb@redhat.com>
4844
4845 Patch from David Carlton <carlton@math.stanford.edu>:
4846 * gdbinit.in: Move the `dir' commands that add GDB's own source
4847 directory to the search path to the end, so that the `gdb' source
4848 directory will be searched first.
4849
4850 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4851
4852 * gdb_obstack.h: New file.
4853 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
4854 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
4855 * objfiles.h: Include "gdb_obstack.h".
4856 * Makefile.in (gdb_obstack_h): Define.
4857 (symtab_h): Add $(gdb_obstack_h).
4858 (objfiles_h): Add $(gdb_obstack_h).
4859
4860 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
4861 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
4862 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
4863 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
4864 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
4865 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
4866 * symfile.c, coffread.c, c-typeprint.c: Ditto.
4867 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
4868
4869 * Makefile.in (bcache.o): Update dependencies.
4870 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
4871 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
4872 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
4873 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
4874 (stabsread.o, symfile.o, symmisc.o): Ditto.
4875 (symtab.o, typeprint.o, macroexp.o): Ditto.
4876 (macrotab.o, mdebugread.o): Ditto.
4877 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
4878 (coff_ecoff_h, aout_aout64_h): Define.
4879 (aout_stabs_gnu_h, libaout_h): Define.
4880
4881 2002-07-29 Andrew Cagney <cagney@redhat.com>
4882
4883 * regcache.c (struct regcache_descr): Rename nr_registers to
4884 nr_cooked_registers. Revise comments describing the structure
4885 member fields.
4886 (init_regcache_descr): Update.
4887 (init_legacy_regcache_descr): Update.
4888 (read_register_gen, write_register_gen): When a cooked register in
4889 the raw register range, directly access the value from the raw
4890 register cache.
4891
4892 2002-07-29 Andrew Cagney <ac131313@redhat.com>
4893
4894 * z8k-tdep.c: Do not include "obstack.h".
4895 * h8300-tdep.c, h8500-tdep.c: Ditto.
4896 * m68hc11-tdep.c, sh-tdep.c: Ditto.
4897 * valprint.c, v850-tdep.c: Ditto.
4898 * d10v-tdep.c, mn10300-tdep.c: Ditto.
4899 * mn10200-tdep.c: Ditto.
4900
4901 * Makefile.in (z8k-tdep.o): Update dependencies.
4902 (m68hc11-tdep.o, valprint.o): Ditto.
4903 (v850-tdep.o, d10v-tdep.o): Ditto.
4904 (mn10300-tdep.o, sparc-tdep.o): Ditto.
4905 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
4906 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
4907 (sh_opc_h, gdb_sim_sh_h): Define.
4908 (elf_sh_h, elf_bfd_h): Define.
4909 (opcode_m68hc11_h): Define.
4910 (OPCODES_SRC, OPCODES_DIR): define.
4911 (OPCODES): Use $(OPCODES_DIR).
4912 (gdb_sim_d10v_h): Rename sim_d10v_h.
4913 (gdb_sim_arm_h): Rename sim_arm_h.
4914
4915 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4916
4917 * utils.c (host_pointer_to_address, address_to_host_pointer):
4918 Change internal_error() message to indicate function responsible
4919 for the error.
4920
4921 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4922
4923 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
4924 calls to local_hex_string_custom().
4925
4926 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4927
4928 * irix5-nat.c: Move IRIX shared library support from here...
4929 * solib-irix.c: ...to here. Revised substantially to work with
4930 generic solib framework.
4931
4932 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
4933 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
4934 * mips-irix-tdep.c: New file.
4935
4936 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
4937 (mips-irix-tdep.o, solib-irix.o): New rules.
4938 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
4939 solib-irix.o.
4940 * config/mips/irix6.mt (TDEPFILES): Likewise.
4941 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
4942
4943 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4944
4945 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
4946 disabled (via ``#if 0'') includes.
4947
4948 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4949
4950 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
4951 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
4952 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
4953 Add support for the fpscr register.
4954 * rs6000-nat.c (regmap, fetch_inferior_registers)
4955 (store_inferior_registers, fetch_core_registers): Likewise.
4956
4957 2002-07-26 Kevin Buettner <kevinb@redhat.com>
4958
4959 * rs6000-nat.c (language.h): Include.
4960 (special_regs): Delete this array.
4961 (regmap): New function.
4962 (fetch_register, store_register): Use regmap() to map gdb
4963 register numbers to ptrace register numbers. Also, use
4964 outputs from regmap() to make decisions regarding type of
4965 ptrace() call to make. In particular, don't compare against
4966 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4967 (fetch_inferior_registers, store_inferior_registers): Where
4968 possible, obtain register numbers from tdep struct. Don't
4969 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
4970 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
4971 (LAST_UISA_SP_REGNUM): Delete.
4972
4973 2002-07-25 Kevin Buettner <kevinb@redhat.com>
4974
4975 * rs6000-nat.c (ppc-tdep.h): Include.
4976 (fetch_registers, store_register, fetch_core_registers): Don't
4977 access registers[] directly. Instead, use supply_register() or
4978 regcache_collect() as appropriate.
4979 (find_toc_address): Format hex address with local_hex_string().
4980
4981 2002-07-25 Andrew Cagney <ac131313@redhat.com>
4982
4983 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
4984 bfd/elf32-frv.c.
4985
4986 2002-07-24 Tom Tromey <tromey@redhat.com>
4987
4988 * jv-exp.y: Marked all strings with _().
4989 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
4990 internal_error.
4991 (MethodInvocation, CastExpression, parse_number, yyerror,
4992 java_type_from_name, push_expression_name, yylex): Typo fixes.
4993
4994 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
4995
4996 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
4997 (tee_file_flush, tee_file_write, tee_file_fputs)
4998 (tee_file_isatty): New.
4999 * ui-file.h (tee_file_new): Add prototype.
5000
5001 2002-07-24 Aidan Skinner <aidan@velvet.net>
5002
5003 * ada-lang.c: Change k&r style function definitions to prototyped
5004 form.
5005 * ada-typeprint.c: Change k&r style function definitions to prototyped
5006 form.
5007 * ada-valprint.c: Change k&r style function definitions to prototyped
5008 form.
5009
5010 2002-07-24 Andrew Cagney <cagney@redhat.com>
5011
5012 * README: Remove reference to remote-bug.
5013 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5014 remote-bug.c.
5015 (m88k-nat.o): Delete rule.
5016 (m88k-tdep.o): Delete rule.
5017 (remote-bug.o): Delete rule.
5018 * MAINTAINERS: Mark as obsolete.
5019 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5020 * m88k-tdep.c: Make file obsolete.
5021 * config/m88k/m88k.mh: Ditto.
5022 * config/m88k/delta88v4.mh: Ditto.
5023 * config/m88k/delta88v4.mt: Ditto.
5024 * config/m88k/delta88.mt: Ditto.
5025 * config/m88k/delta88.mh: Ditto.
5026 * remote-bug.c: Ditto.
5027 * config/m88k/tm-delta88.h: Ditto.
5028 * config/m88k/nm-delta88v4.h: Ditto.
5029 * config/m88k/xm-delta88.h: Ditto.
5030 * config/m88k/xm-dgux.h: Ditto.
5031 * config/m88k/tm-m88k.h: Ditto.
5032 * config/m88k/nm-m88k.h: Ditto.
5033 * config/m88k/tm-delta88v4.h: Ditto.
5034 * m88k-nat.c: Ditto.
5035 * cxux-nat.c: Ditto.
5036 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5037 and m88*-*-* obsolete.
5038 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5039 m88*-*-* obsolete.
5040
5041 2002-07-24 Andrew Cagney <cagney@redhat.com>
5042
5043 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5044 constant. Same for local pointer variables.
5045 (extract_signed_integer): Ditto.
5046 * defs.h (extract_unsigned_integer): Update.
5047 (extract_signed_integer): Update.
5048
5049 2002-07-24 Andrew Cagney <cagney@redhat.com>
5050
5051 * regcache.c (regcache_raw_write): Change buf parameter to a
5052 constant void pointer.
5053 (regcache_raw_read): Change buf parameter to a void pointer.
5054 (legacy_write_register_gen): Change myaddr parameter a constant
5055 void pointer.
5056 (supply_register): Change val parameter to a const void pointer.
5057 * regcache.h (regcache_raw_write): Update declaration.
5058 (regcache_raw_read): Update declaration.
5059 (supply_register): Update declaration.
5060
5061 2002-07-24 Tom Tromey <tromey@redhat.com>
5062
5063 * defs.h (gdb_readline_wrapper): Declare.
5064 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5065 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5066 * top.c (gdb_readline_wrapper): New function.
5067 (command_line_input): Use it.
5068
5069 2002-07-24 Andrew Cagney <cagney@redhat.com>
5070
5071 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5072 regcache_read and regcache_write.
5073 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5074 * regcache.c: Update.
5075 * sh-tdep.c (sh64_push_arguments): Update comment.
5076 (sh_pseudo_register_read): Update.
5077 (sh_pseudo_register_write): Update.
5078 (sh4_register_read): Update.
5079 (sh4_register_write): Update.
5080 (sh64_pseudo_register_read): Update.
5081 (sh64_pseudo_register_write): Update.
5082 (sh64_register_read): Update.
5083 (sh64_register_write): Update.
5084 * i386-tdep.c (i386_extract_return_value): Update.
5085 (i386_extract_struct_value_address): Update.
5086 (i386_extract_return_value): Update.
5087 * blockframe.c (generic_read_register_dummy): Update.
5088 (generic_call_dummy_register_unwind): Update
5089 * infrun.c (write_inferior_status_register): Update.
5090
5091 2002-07-23 Jim Blandy <jimb@redhat.com>
5092
5093 * parser-defs.h (expression_context_pc): Make this extern.
5094 (Thanks to Michael Snyder.)
5095
5096 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5097
5098 GDB 5.2.1 released from 5.2 branch.
5099 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5100 * README: Update to mention 5.2.1.
5101
5102 2002-07-23 Mark Salter <msalter@redhat.com>
5103
5104 * remote.c (remote_read_bytes): Fix check for error.
5105
5106 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5107
5108 * aix-thread.c (language.h): Include.
5109 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5110 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5111 Print newlines at end of debug messages.
5112 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5113 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5114
5115 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5116
5117 * aix-thread.c (ppc-tdep.h): Include.
5118 (special_register_p): New function.
5119 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5120 (store_regs_user_thread): Use register number information from
5121 gdbarch_tdep struct instead of hardcoded offsets relative to
5122 FIRST_UISA_SP_REGNUM.
5123 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5124 special_register_p() instead of using FPLAST_REGNUM and
5125 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5126 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5127 will be MQ's register number.
5128
5129 2002-07-22 Michael Snyder <msnyder@redhat.com>
5130
5131 * aix-thread.c (ops): Rename to aix_thread_ops.
5132 (base_ops): Rename to base_target.
5133 (ops_attach): Rename to aix_thread_attach.
5134 (ops_detach): Rename to aix_thread_detach.
5135 (ops_resume): Rename to aix_thread_detach.
5136 (ops_wait): Rename to aix_thread_wait.
5137 (ops_kill): Rename to aix_thread_kill.
5138 (init_ops): Rename to init_aix_thread_ops.
5139 (ops_fetch_register): Rename to aix_thread_fetch_register.
5140 (ops_store_register): Rename to aix_thread_store_register.
5141 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5142 (ops_thread_alive): Rename to aix_thread_thread_alive.
5143 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5144 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5145 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5146 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5147 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5148 (store_regs_lib): Rename to store_regs_user_thread.
5149 (store_regs_kern): Rename to store_regs_kernel_thread.
5150
5151 2002-07-22 Michael Snyder <msnyder@redhat.com>
5152
5153 * aix-thread.c (ops_prepare_to_store): Eliminate.
5154 (init_ops): Don't initialize ops.prepare_to_store.
5155 (store_regs_kern): Pre-fetch register buffers from child,
5156 because some registers may not be in the cache. Copy
5157 regs from register cache only if they are cached.
5158 (store_regs_lib): Copy regs from register cache only
5159 if they are cached.
5160 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5161 fill_gprs64): Ditto.
5162
5163 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5164
5165 * aix-thread.c (gdb_assert.h): Include.
5166 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5167 register sizes (from register cache) match size of buffer holding
5168 register data.
5169 (fill_sprs32): Change parameter types to match those in the ptrace()
5170 buffer.
5171 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5172 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5173
5174 2002-07-22 Michael Snyder <msnyder@redhat.com>
5175
5176 * aix-thread.c (supply_sprs64): Cosmetic change.
5177 (supply_sprs32): Cosmetic change.
5178 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5179 (fill_sprs64): Use regcache_collect instead of read_register.
5180 (store_regs_lib): Use regcache_collect instead of
5181 read_register. Use fill_sprs32 instead of fill_sprs64,
5182 if debugging a 32-bit architecture.
5183 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5184 out of the register cache, instead of passing a pointer into
5185 the register cache directly to ptrace. Use regcache_collect
5186 insteaad of read_register.
5187 (ops_prepare_to_store): Use target_read_registers instead
5188 of read_register_bytes.
5189
5190 2002-07-20 Aidan Skinner <aidan@velvet.net>
5191
5192 * MAINTAINERS: Add self under write after approval.
5193
5194 2002-07-20 Aidan Skinner <aidan@velvet.net>
5195
5196 * ada-tasks.c: Change k&r style function definitions to prototyped
5197 form.
5198
5199 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5200
5201 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5202 * x86-64-tdep.c: Include "objfiles.h".
5203 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5204 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5205
5206 2002-07-17 Michal Ludvig <michal@suse.cz>
5207
5208 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5209 (update_context): Initialise cfa variable.
5210
5211 2002-07-17 Michael Snyder <msnyder@redhat.com>
5212
5213 * aix-thread.c: Shorten some long lines.
5214 Bring comments into line with code spec.
5215
5216 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5217
5218 * infrun.c: Re-indent using gdb_indent.sh.
5219
5220 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5221
5222 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5223 Leave the indentation temporarily untouched, to minimize the diffs.
5224
5225 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5226
5227 * stabsread.c: Make os9k sections of the code obsolete,
5228 for real this time.
5229 * stabsread.h: Make os9k sections of the code obsolete.
5230
5231 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5232
5233 * linux-low.c (regsets_store_inferior_registers): Add free()
5234 at the end of a loop to prevent memory leak.
5235 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5236 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5237 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5238 line a comment.
5239 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5240
5241 2002-07-17 Jim Blandy <jimb@redhat.com>
5242
5243 * macrocmd.c (info_macro_command): Remove newline from error
5244 message.
5245
5246 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5247
5248 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5249 (sh_gdbarch_init): Use it for sh-dsp.
5250
5251 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5252
5253 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5254 64-bit DWARF2 format.
5255
5256 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5257
5258 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5259 <sys/proc.h> when not available.
5260
5261 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5262
5263 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5264 * stabsread.c: Make os9k sections of the code obsolete.
5265 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5266 * config/i386/i386os9k.mt: Make file obsolete.
5267 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5268 (COMMON_OBS): Remove os9kread.o
5269 (SFILES): Remove os9kread.c.
5270 (os9kread.o, remote-os9k.o): Make target obsolete.
5271 * remote-os9k.c: Make file obsolete.
5272 * os9kread.c: Make file obsolete.
5273 * Makefile.in
5274
5275 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5276
5277 * NEWS: Mention that the FR30 has been made obsolete.
5278 * fr30-tdep.c: Make file obsolete.
5279 * config/fr30/tm-fr30.h: Ditto.
5280 * config/fr30/fr30.mt: Ditto.
5281 * configure.tgt: Make fr30-*-elf obsolete.
5282 * MAINTAINERS: Make fr30-elf obsolete.
5283
5284 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5285
5286 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5287 found is not inside a section.
5288
5289 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5290
5291 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5292 strerror().
5293 (pdc_realloc): Use xrealloc() instead of realloc().
5294
5295 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5296
5297 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5298 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5299 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5300 macros.
5301
5302 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5303
5304 * aix-thread.c (ptrace_check): Eliminate goto.
5305 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5306 problem.
5307
5308 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5309
5310 * aix-thread.c (gdbcmd.h): Include.
5311 (DEBUG, DBG, DBG2, dbg): Eliminate.
5312 (debug_aix_thread): New static global.
5313 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5314 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5315 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5316 invocations to DBG and DBG2 macros to test against
5317 ``debug_aix_thread'' and call fprintf_unfiltered().
5318 (_initialize_aix_thread): Add new command "set debug aix-thread".
5319
5320 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5321
5322 From Gerhard Tonn <TON@de.ibm.com>:
5323 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5324 instead of supply_register.
5325
5326 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5327
5328 * dwarf2cfi.c: Include "gdb_assert.h".
5329 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5330 non-NULL.
5331 (update_context): Do not use __func__. Add missing ``break''.
5332 (update_context): Do not use __func__.
5333
5334 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5335
5336 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5337 and its setting. Set gdbarch instruction printing functions
5338 directly. For non-rs6000 case use new function
5339 gdb_print_insn_powerpc.
5340 (gdb_print_insn_powerpc): New function.
5341
5342 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5343
5344 * NEWS: Mention that the d30v has been marked obsolete.
5345 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5346 * configure.tgt: Mark d30v-*-* as obsolete.
5347 * d30v-tdep.c: Mark file as obsolete.
5348 * config/d30v/d30v.mt: Ditto.
5349 * config/d30v/tm-d30v.h: Ditto.
5350
5351 2002-07-13 Aidan Skinner <aidan@velvet.net>
5352
5353 * ada-tasks.c (add_task_entry): replace calls to
5354 malloc() with xmalloc
5355 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5356
5357 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5358 ada_finish_decode_line_1, all_sals_for_line
5359 ada_breakpoint_rewrite): replace calls to free() with xfree()
5360
5361 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5362
5363 From Nicholas Duffek (with minor changes by Martin Hunt,
5364 Louis Hamilton, and Kevin Buettner):
5365 * aix-thread.c: New file.
5366
5367 2002-07-12 Petr Sorfa <petrs@caldera.com>
5368
5369 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5370 complaint for invalid attribute class or form.
5371 (read_func_scope): DW_AT_frame_base
5372 better handling of DW_AT_block*.
5373 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5374 better handling of DW_AT_block*.
5375 (read_common_block): DW_AT_location
5376 better handling of DW_AT_block*.
5377 (read_partial_die): DW_AT_location better handling
5378 of DW_AT_block*.
5379 (new_symbol): DW_AT_external better handling of
5380 DW_AT_block*. Proper initialization of variable
5381 "addr".
5382 (attr_form_is_block): New function that returns true
5383 if the attribute's form is of DW_FORM_block*.
5384
5385 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5386
5387 * valops.c (find_method_list): Remove comment about
5388 removed STATIC_MEMFUNCP argument.
5389 (value_find_oload_method_list): Likewise.
5390
5391 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5392
5393 From Nicholas Duffek:
5394 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5395 target_new_objfile_hook.
5396
5397 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5398
5399 From Nicholas Duffek:
5400 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5401 csect.
5402
5403 2002-07-12 Andrew Cagney <cagney@redhat.com>
5404
5405 * MAINTAINERS: Mention --enable-sim-build-warnings.
5406 (m68hc11-elf): Disable sim build warnings.
5407 (m32r-elf): Mark as broken obsolete candidate.
5408 (x86_64-linux-gnu): Mark as buildable with -Werror.
5409 (arm-elf): Change -w to ``,'' which enables warnings but not
5410 -Werror.
5411
5412 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5413
5414 * bcache.h: Update copyright.
5415 (struct bstring, struct bcache): Move definition to "bcache.c".
5416 Replaced by opaque declaration.
5417 (bcache_xfree): Replace free_bcache.
5418 (bcache_xmalloc, bcache_memory_used): Declare.
5419
5420 * bcache.c: Update copyright.
5421 (struct bstring, struct bcache): Moved to here from "bcache.h".
5422 Update comments.
5423 (bcache_xmalloc, bcache_memory_used): New functions.
5424 (bcache_xfree): Replace function free_bcache.
5425
5426 * Makefile.in (objfiles.o): Add $(bcache_h).
5427 (objfiles_h): Remove $(bcache_h).
5428 (symfile.o): Add $(bcache_h).
5429
5430 * symmisc.c: Update copyright.
5431 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5432 (print_objfile_statistics): Use bcache_memory_used.
5433
5434 * symfile.c: Include "bcache.h".
5435 (reread_symbols): Use bcache_xfree.
5436 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5437 (add_psymbol_to_list): Pass psymbol_cache by value.
5438 (add_psymbol_with_dem_name_to_list): Ditto.
5439
5440 * objfiles.h: Update copyright.
5441 (struct bcache): Declare opaque. Do not include "bcache.h".
5442 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5443 bcache'' pointers.
5444 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5445
5446 * objfiles.c: Include "bcache.h". Update copyright.
5447 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5448 macro_cache.
5449 (free_objfile): Use bcache_xfree.
5450
5451 2002-07-11 Grace Sainsbury <graces@redhat.com>
5452
5453 * monitor.c (monitor_fetch_register): Make name a constant.
5454 (monitor_store_register): Same.
5455
5456 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5457
5458 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5459 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5460 (finish_block) For non-function blocks, hash the symbol table. For
5461 function blocks, mark the symbol table as unhashed.
5462 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5463 (msymbol_hash_iw): Likewise.
5464 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5465 value.
5466 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5467 (lookup_minimal_symbol): Likewise for both.
5468 * symtab.h (struct block): Add `hashtable' flag. Comment the
5469 hashtable.
5470 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5471 (ALL_BLOCK_SYMBOLS): Update.
5472 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5473 (struct symbol): Add `hash_next' pointer.
5474 * symtab.c (lookup_block_symbol): Search using the hash table when
5475 possible.
5476 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5477 (search_symbols, find_addr_symbol): Likewise.
5478
5479 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5480 (read_dst_symtab): Likewise.
5481 * jv-lang.c (get_java_class_symtab): Likewise.
5482 * mdebugread.c: Include "gdb_assert.h".
5483 (shrink_block): Assert that the block being modified is not hashed.
5484 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5485 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5486 symbols.
5487 (dump_symtab): Recognize hashed blocks.
5488 * printcmd.c (print_frame_args): Assert that function blocks do not
5489 have hashed symbol tables.
5490 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5491 (fill_in_ada_prototype, debug_print_block): Likewise.
5492 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5493
5494 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5495
5496 * stack.c (print_frame): Use result of frame_address_in_block()
5497 instead of fi->pc when evaluating symbols.
5498 (backtrace_command_1): Ditto.
5499
5500 2002-07-11 Andrew Cagney <cagney@redhat.com>
5501
5502 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5503 Make static.
5504
5505 * arm-tdep.c (arm_register_name): Make return type constant.
5506
5507 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5508
5509 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5510 prototype.
5511 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5512 * s390-tdep.c (s390_fp_regnum): Ditto.
5513 (s390_read_fp): Ditto.
5514 (s390_pop_frame): Ditto.
5515 (_initialize_s390_tdep): Ditto.
5516 * remote.c (get_remote_state): Ditto.
5517 * procfs.c (mappingflags): Ditto.
5518 * memattr.c (_initialize_mem): Ditto.
5519 * mcore-tdep.c (mcore_pop_frame): Ditto.
5520 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5521 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5522 * language.c (set_case_str): Ditto.
5523 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5524 * frv-tdep.c (new_variant): Ditto.
5525 (frv_stopped_data_address): Ditto.
5526 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5527 (context_alloc): Ditto.
5528 (frame_state_alloc): Ditto.
5529 (unwind_tmp_obstack_init): Ditto.
5530 (unwind_tmp_obstack_free): Ditto.
5531 (cfi_read_fp): Ditto.
5532 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5533 (cris_pop_frame): Ditto.
5534 * c-lang.c (scanning_macro_expansion): Ditto.
5535 (finished_macro_expansion): Ditto.
5536 (c_preprocess_and_parse): Ditto.
5537 * gdbarch.sh: Ditto.
5538 * gdbarch.h, gdbarch.c: Regenerate.
5539 * config/mn10200/tm-mn10200.h: Adjust indentation.
5540 * target.c: Adjust indentation.
5541 * symtab.h: Adjust indentation.
5542 * stabsread.h: Adjust indentation.
5543 * remote-es.c: Adjust indentation.
5544 * os9kread.c: Adjust indentation.
5545
5546 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5547
5548 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5549 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5550
5551 2002-07-10 Grace Sainsbury <graces@redhat.com>
5552
5553 * NEWS: Mention m68k, mcore multi-arching.
5554 * MAINTAINERS: Change status of m68k, mcore to reflect
5555 multi-arching.
5556
5557 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5558
5559 * valops.c (find_overload_match): Free oload_syms.
5560
5561 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5562
5563 Define HAVE_SYS_PROC_H if sys/proc.h exists
5564 * configure.in: Add check for sys/proc.h
5565 * config.in: Regenerate.
5566 * configure: Regenerate.
5567
5568 2002-07-09 Grace Sainsbury <graces@redhat.com>
5569
5570 * config/m68k/tm-m68k.h: Remove macros wrapped in
5571 #if !GDB_MULTI_ARCH.
5572
5573 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5574
5575 * config.in, configure: Regenerate.
5576
5577 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5578
5579 * dwarf2cfi.c: Include "gcore.h".
5580 (execute_stack_op): Fix implementation of the
5581 DW_OP_deref and DW_OP_deref_size operators by letting do their
5582 lookup in the target.
5583
5584 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5585
5586 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5587 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5588 tdep->sc_sp_offset.
5589
5590 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5591
5592 Fix PR gdb/595, gdb/602
5593 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5594 Don't call value_cast, just read the vtable pointer; update comments
5595 to match.
5596
5597 2002-07-05 Grace Sainsbury <graces@redhat.com>
5598
5599 * config/mcore/tm-mcore.h: Remove file.
5600 * config/mcore/mcore.mt: Remove definition of TM_FILE
5601 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5602
5603 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5604
5605 * i386bsd-tdep.c: Include "gdb_string.h".
5606
5607 2002-07-04 Grace Sainsbury <graces@redhat.com>
5608
5609 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5610 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5611 mcore-tdep.
5612 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5613 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5614 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5615 (RETVAL_REGNUM): Move macros from tm-mcore.h
5616 (mcore_reg_struct_has_addr): New function.
5617 (mcore_gdbarch_init): Added initializations for the macros removed
5618 from tm-mcore.h.
5619
5620 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5621
5622 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5623 traditonal string branding within the ELF header.
5624
5625 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5626
5627 * symtab.c (remove_params): New function.
5628 (make_symbol_overload_list): Use it instead of cplus_demangle.
5629 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5630
5631 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5632
5633 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5634
5635 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5636 New variables.
5637 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5638 and tdep->sigtramp_end.
5639 * i386obsd-nat.c: New file.
5640 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5641
5642 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5643 Don't call get_current_frame().
5644
5645 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5646
5647 * i386-nat.c (child_post_startup_inferior): New function
5648 calling i386_cleanup_dregs if
5649 I386_USE_GENERIC_WATCHPOINTS is defined.
5650 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5651 conditional to acknowledge that i386-nat.c has its
5652 own child_post_startup_inferior function.
5653
5654 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5655
5656 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5657 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5658 instead of MAX_REGISTER_RAW_SIZE.
5659 (i386_extract_return_value, i386_extract_struct_value_address):
5660 Convert to use regcache.
5661 (i386_gdbarch_init): Set max_register_raw_size and
5662 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5663 Set extract_return_value and extract_struct_value_address instead
5664 of their deprecated variants.
5665
5666 Convert i386 target to generic dummy frames.
5667 * i386-tdep.c: Include "symfile.h".
5668 (i386_frameless_signal_p): Consider a function to be frameless if
5669 the pc points at the first instruction of the function.
5670 (i386_frame_chain): Handle (generic) call dummies.
5671 (i386_frame_saved_pc): Likewise.
5672 (i386_frame_init_saved_regs): Remove code dealing with call
5673 dummies on the stack.
5674 (i386_push_dummy_frame): Removed.
5675 (i386_call_dummy_words): Removed.
5676 (i386_fix_call_dummy): Removed.
5677 (i386_push_return_address): New function.
5678 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5679 parameter, and don't call get_current_frame.
5680 (i386_pop_frame): New function.
5681 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5682 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5683 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5684 call_dummy_length to 0, set call_dummy_words to NULL, set
5685 sizeof_call_dummy_words to 0, set fix_call_dummy to
5686 generic_fix_call_dummy, set pc_in_call_dummy to
5687 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5688 generic_push_dummy_frame, set push_return_address to
5689 i386_push_return_address and set frame_chain_valid to
5690 generic_file_frame_chain_valid.
5691
5692 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5693
5694 * gdbarch.sh (struct regcache): Add opaque declaration.
5695 (EXTRACT_RETURN_VALUE): New architecture method.
5696 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5697 * gdbarch.h, gdbarch.c: Regenerate.
5698 * arch-utils.c (legacy_extract_return_value): New function.
5699 * arch-utils.h (legacy_extract_return_value): Declare.
5700 * values.c (value_being_returned): Re-enable code handling
5701 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5702 deprecated_grub_regcache_for_registers call to block handling
5703 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5704 (EXTRACT_RETURN_VALUE): Do not define.
5705
5706 2002-07-03 Grace Sainsbury <graces@redhat.com>
5707
5708 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5709 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5710 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5711 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5712 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5713 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5714 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5715 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5716 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5717 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5718 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5719 argument so the function fits the prototype in the architecture
5720 vector.
5721 (mcore_pop_frame): Remove argument so the function fits the
5722 prototype. Use get_current_frame instead of the argument.
5723 (mcore_push_arguments): Change type of struct_return so the
5724 function can be used in the architecture vector.
5725 (mcore_store_struct_return): Add.
5726 (mcore_frame_init_saved_regs): Add.
5727 (mcore_gdbarch_init): Add function calls to replace the macros
5728 removed from tm-mcore.h
5729
5730 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5731
5732 * infcmd.c (print_return_value): Remove compatibility code calling
5733 deprecated_grub_regcache_for_registers.
5734
5735 * values.c: Include "regcache.h".
5736 (value_being_returned): Update. Use
5737 deprecated_grub_regcache_for_registers to extract the register
5738 buffer address.
5739 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5740 ``struct regcache''.
5741 * Makefile.in (values.o): Add dependency on $(regcache_h).
5742
5743 * inferior.h (run_stack_dummy): Change type of second parameter to
5744 a ``struct regcache''.
5745 * valops.c (hand_function_call): Change type of retbuf to ``struct
5746 regcache''. Allocate using regcache_xmalloc, clean using
5747 make_cleanup_regcache_xfree.
5748 * infcmd.c (run_stack_dummy): Update. Use
5749 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5750
5751 * regcache.c (do_regcache_xfree): New function.
5752 (make_cleanup_regcache_xfree): New function.
5753 * regcache.h (make_cleanup_regcache_xfree): Declare.
5754
5755 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5756
5757 * event-top.c (command_line_handler): Don't read past
5758 beginning of buffer.
5759
5760 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5761
5762 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5763 struct frame_id.
5764 (varobj_create): Store frame_id for root.
5765 (varobj_gen_name): Use xasprintf.
5766 (varobj_update): Save and restore frame using get_frame_id() and
5767 frame_find_by_id().
5768 (create_child): Use xasprintf.
5769 (new_root_variable): Initialize frame_id.
5770 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
5771 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
5772 to prevent memory leak.
5773
5774 2002-07-03 Andrew Cagney <ac131313@redhat.com>
5775
5776 * valops.c (hand_function_call): Move declaration of retbuf to
5777 start of function, allocate using malloc, add a cleanup but before
5778 the inf_status cleanup, cleanup the buffer. Rename local variable
5779 old_chain to inf_status_cleanup.
5780
5781 2002-07-03 Martin M. Hunt <hunt@redhat.com>
5782
5783 * top.c (execute_command): Use cmd_func() and cmd_func_p().
5784
5785 * cli/cli-decode.c (cmd_func_p): New function.
5786 (cmd_func): New function.
5787
5788 * command.h: Add cmd_func() and cmd_func_p().
5789
5790 2002-07-03 Grace Sainsbury <graces@redhat.com>
5791
5792 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
5793 (REGISTER_SIZE): Remove.
5794 (MAX_REGISTER_RAW_SIZE): Remove.
5795 (REGISTER_VIRTUAL_TYPE): Remove.
5796 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
5797 (REGISTER_NAME): Remove.
5798 (USE_GENERIC_DUMMY_FRAMES): Remove.
5799 (CALL_DUMMY): Remove.
5800 (CALL_DUMMY_START_OFFSET): Remove.
5801 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
5802 (CALL_DUMMY_LOCATION): Remove.
5803 (FIX_CALL_DUMMY): Remove.
5804 (CALL_DUMMY_ADDRESS): Remove.
5805 (SIZEOF_CALL_DUMMY_WORDS): Remove.
5806 (SAVE_DUMMY_FRAME_TOS): Remove.
5807 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
5808 (mcore_register_virtual_type): New function.
5809 (mcore_register_byte): New function.
5810 (mcore_register_size): New function.
5811 (mcore_register_name): New function.
5812 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
5813 macros removed from tm-mcore.h.
5814 (mcore_dump_tdep): Add.
5815 (_initialize_mcore_tdep): Add gdbarch_register call.
5816
5817 2002-07-03 Mark Kettenis <kettenis@gnu.org>
5818
5819 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
5820 frameless_look_for_prologue, such that we actually call this
5821 function.
5822
5823 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5824
5825 * frame.h (frame_address_in_block): New function.
5826
5827 * blockframe.c (frame_address_in_block): New function extracted
5828 from get_frame_block().
5829 (get_frame_block): Use frame_address_in_block().
5830 (block_innermost_frame): Use frame_address_in_block() to match
5831 the frame pc address against the block boundaries rather than
5832 the frame pc directly. This prevents a failure when a frame pc
5833 is actually a return-address pointing immediately after the end
5834 of the given block.
5835
5836 2002-07-02 Grace Sainsbury <graces@redhat.com>
5837
5838 * MAINTAINERS: Add self under write after approval.
5839
5840 2002-07-02 Grace Sainsbury <graces@redhat.com>
5841
5842 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
5843 used in architecture vector. The default is
5844 m68k_local_breakpoint_from_pc.
5845 (m68k_local_breakpoint_from_pc): Add.
5846 (enum): Add register numbers from tm-m68k.h.
5847 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
5848 vector.
5849 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
5850 GDB_MULTI_ARCH_PARTIAL.
5851 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
5852 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
5853 m68k-tdep.c.
5854 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
5855 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
5856 to enum in m68k-tdep.c
5857
5858 2002-07-02 Joel Brobecker <brobecker@gnat.com>
5859
5860 * solib-osf.c (open_map): Compute the list of shared libraries
5861 loaded by the inferior, rather than the list of libraries loaded
5862 by GDB itself. Otherwise, GDB ends up reading the symbols from
5863 the wrong shared libraries...
5864
5865 2002-07-02 Mark Kettenis <kettenis@gnu.org>
5866
5867 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
5868 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
5869 macros.
5870 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
5871 Remove functions.
5872 (FRAMELESS_SIGNAL): Remove function.
5873 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
5874 i386_linux_saved_pc_after_call): Removed.
5875 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
5876 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
5877 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
5878
5879 * i386-tdep.c (i386_frameless_signal_p): New function.
5880 (i386_frame_chain): Deal with frameless signals.
5881 (i386_sigtramp_saved_sp): New function.
5882 (i386_frame_saved_pc): Deal with frameless signals.
5883 (i386_saved_pc_after_call): Make sure the correct value is
5884 returned just after entry into a sigtramp.
5885 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
5886 i386fbsd4_sc_sp_offset): New variables.
5887 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
5888 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
5889 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
5890 similiar to what we already did for sc_pc_offset.
5891 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
5892 tdep->sc_sp_offset.
5893
5894 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
5895
5896 2002-07-02 Michal Ludvig <mludvig@suse.cz>
5897
5898 * config/i386/tm-x86-64linux.h: New.
5899 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
5900 definitions.
5901 * config/i386/nm-x86-64.h: Rename to ...
5902 * config/i386/nm-x86-64linux.h: ... this one.
5903 * config/i386/x86-64linux.mh: Reflect the above change.
5904
5905 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5906
5907 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
5908 with sigcontext_addr. Add sc_sp_offset.
5909 (i386bsd_sigtramp_saved_pc): Remove prototype.
5910 (i386bsd_sicontext_addr): Add prototype.
5911 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
5912 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
5913 (i386_svr4_sigtramp_saved_pc): Removed.
5914 (i386_svr4_sigcontext_addr): New function.
5915 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5916 Initialize tdep->sigcontext_addr instead. Initialize
5917 tdep->sc_pc_offset and tdep->sc_sp_offset.
5918 (i386_gdbarch_init): Likewise.
5919 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
5920 any more.
5921 (i386bsd_sigtramp_saved_pc): Remove function.
5922 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
5923 Initialize tdep->sigcontext_addr instead. Initialize
5924 tdep->sc_pc_offset.
5925 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
5926 of tdep->sigtramp_saved_pc.
5927 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
5928 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
5929 instead.
5930
5931 * i386-tdep.c (i386_frameless_function_invocation,
5932 i386_frame_num_args, i386_frame_init_saved_regs,
5933 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
5934 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
5935 i386_extract_return_value, i386_store_return_value,
5936 i386_extract_struct_value_address, i386_register_virtual_type,
5937 i386_register_convertible, i386_register_convert_to_virtual,
5938 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
5939 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
5940 static.
5941
5942 2002-07-01 Mark Kettenis <kettenis@gnu.org>
5943
5944 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
5945
5946 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
5947 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
5948 this macro. Include "value.h".
5949
5950 2002-06-30 Aidan Skinner <aidan@velvet.net>
5951
5952 * ada-exp.tab.c: remove as it's a generated file
5953 * ada-lex.c: remove as it's a generated file
5954
5955 2002-06-30 Mark Kettenis <kettenis@gnu.org>
5956
5957 * config/i386/tm-i386.h (struct frame_info, struct
5958 frame_saved_regs, struct value, struct type): Remove forward
5959 declarations.
5960
5961 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
5962 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
5963 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
5964 (FILL_FPXREGSET): Define.
5965
5966 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
5967
5968 * configure.tgt (i[3456]86-*-openbsd*): Fold into
5969 i[3456]86-*-netbsd* case.
5970 * config/i386/tm-obsd.h: Removed.
5971 * config/i386/obsd.mt: Removed.
5972 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
5973 core-aout.o.
5974 (MH_CFLAGS): Add -DYYDEBUG=0.
5975
5976 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
5977 i386nbsd_sc_pc_offset on OpenBSD too.
5978
5979 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
5980 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
5981 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
5982 define.
5983 * i386bsd-tdep.c: Include "arch-utils.h".
5984 (i386bsd_aout_in_solib_call_trampoline): New function.
5985 (i386bsd_init_abi): Set in_solib_call_trampoline to
5986 i386bsd_aout_in_solib_call_trampoline.
5987 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
5988 in_solib_call_trampoline to generic_in_solib_call_trampoline.
5989
5990 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5991
5992 * macrotab.h: Do not include "obstack.h" or "bcache.h".
5993 (struct obstack, struct bcache): Add opaque declarations.
5994 * Makefile.in (macrotab_h): Update
5995
5996 2002-06-28 Andrew Cagney <ac131313@redhat.com>
5997
5998 * blockframe.c (generic_find_dummy_frame): Change return type to
5999 ``struct regcache''.
6000 (struct dummy_frame): Replace field ``registers'' with regcache, a
6001 struct regcache object.
6002 (generic_find_dummy_frame): Update.
6003 (generic_push_dummy_frame): Update. Use regcache_xfree,
6004 regcache_xmalloc and regcache_cpy.
6005 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6006 regcache_xfree.
6007 (deprecated_generic_find_dummy_frame): Update.
6008 (generic_read_register_dummy): Update. Use
6009 regcache_read_as_address.
6010 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6011 (generic_get_saved_register): Update. Use regcache_read.
6012
6013 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6014
6015 * Makefile.in (objfiles_h): Add $(bcache_h).
6016 * objfiles.h: Include "bcache.h".
6017
6018 * Makefile.in (symtab_h): Remove $(bcache_h).
6019 * symtab.h: Do not include "bcache.h".
6020
6021 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6022
6023 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6024 generic_func_frame_chain_valid.
6025
6026 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6027
6028 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6029 * config/i386/tm-fbsd.h: Likewise.
6030
6031 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6032
6033 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6034 generic_unwind_get_saved_register.
6035
6036 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6037
6038 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6039 * regcache.c (supply_register): Add missing argument to
6040 register_buffer call.
6041
6042 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6043
6044 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6045 Solaris /bin/grep does not not like it. From Peter Schauer.
6046
6047 2002-06-26 Tom Tromey <tromey@redhat.com>
6048
6049 * command.h (add_setshow_cmd): Declare.
6050 (add_setshow_cmd_full): Declare.
6051 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6052 returns void. Use add_setshow_cmd_full.
6053 (add_setshow_cmd_full): New function.
6054 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6055 (add_setshow_boolean_cmd): Likewise.
6056
6057 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6058
6059 * config/vax/tm-vax.h: Protect from multiple inclusion.
6060 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6061 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6062 * config/vax/tm-vaxbsd.h: ...here. New file.
6063 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6064
6065 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6066
6067 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6068 (BELIEVE_PCC_PROMOTION): Remove.
6069 (AP_REGNUM): Move to...
6070 * config/vax/nm-vax.h: ...here.
6071 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6072 (vax_breakpoint_from_pc): New function.
6073 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6074 and gdbarch_believe_pcc_promotion.
6075
6076 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6077
6078 * Makefile.in (vax_tdep_h): Define.
6079 (vax-tdep.o): Use $(vax_tdep_h).
6080 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6081 (vax_dump_tdep): New function.
6082 (_initialize_vax_tdep): Register vax_dump_tdep.
6083 * vax-tdep.h: Include osabi.h.
6084 (struct gdbarch_tdep): New.
6085
6086 2002-06-26 Andrew Cagney <cagney@redhat.com>
6087
6088 * frame.h (deprecated_generic_find_dummy_frame): Rename
6089 generic_find_dummy_frame.
6090 * blockframe.c (generic_find_dummy_frame): Make static.
6091 (deprecated_generic_find_dummy_frame): New function.
6092 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6093 generic_find_dummy_frame with deprecated_find_dummy_frame.
6094 (sh64_nofp_frame_init_saved_regs): Ditto.
6095 (sh_fp_frame_init_saved_regs): Ditto.
6096 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6097 (s390_frame_chain): Ditto.
6098 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6099
6100 2002-06-26 Grace Sainsbury <graces@redhat.com>
6101
6102 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6103 gdbarch vector are at the top.
6104 (NUM_REGS): Remove.
6105 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6106 (FRAME_ARGS_ADDRESS): Remove.
6107 (FRAME_LOCALS_ADDRESS): Remove.
6108 (FRAME_NUM_ARGS): Remove.
6109 (FRAME_ARGS_SKIP): Remove.
6110 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6111 (m68k_gdbarch_init): Add gdbarch initializations for macros
6112 undefined in tm-m68k.h
6113
6114 2002-06-26 Grace Sainsbury <graces@redhat.com>
6115
6116 * monitor.h: Add the function regname to monitor_ops
6117 structure. This way NUM_REGS does not have to be a constant.
6118 * monitor.c (monitor_fetch_register): Added support for regname
6119 function. The function is called if the array regnames is NULL.
6120 (monitor_store_register): Same.
6121 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6122 regnames array.
6123 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6124 cpu32bug_cmds.regname to point to new function.
6125 * abug-rom.c (abug_regname): Same as above.
6126 (init_abug_cmds): Same.
6127 * dbug-rom.c (dbug_regname): Same as above.
6128 (init_dbug_cmds): Same.
6129 * remote-est.c (est_regname): Same.
6130 (init_est_cmds): Same.
6131 * rom68k-rom.c (rom68k_regname): Same.
6132 (init_rom68k_cmds): Same.
6133
6134 2002-06-25 Tom Tromey <tromey@redhat.com>
6135
6136 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6137
6138 2002-06-25 Andrew Cagney <cagney@redhat.com>
6139
6140 * infrun.c (stop_registers): Change variable's type to ``struct
6141 regcache'''.
6142 (xmalloc_inferior_status): Delete function.
6143 (free_inferior_status): Delete function.
6144 (normal_stop): Use regcache_cpy.
6145 (struct inferior_status): Change type of fields ``stop_registers''
6146 and ``registers'' to ``struct regcache''.
6147 (write_inferior_status_register): Use regcache_write.
6148 (save_inferior_status): Instead of calling
6149 xmalloc_inferior_status, allocate the inf_status buffer directly.
6150 Use regcache_dup_no_passthrough and regcache_dup to save the
6151 buffers.
6152 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6153 Replace the stop_registers regcache instead of overriding it. Use
6154 regcache_xfree. Instead of calling free_inferior_status, xfree
6155 the buffer directly.
6156 (discard_inferior_status): Use regcache_xfree. Instead of calling
6157 free_inferior_status, xfree the buffer directly.
6158 (build_infrun): Use regcache_xmalloc.
6159 (_initialize_infrun): Delete redundant call to build_infrun.
6160
6161 * Makefile.in (infcmd.o): Add $(regcache_h).
6162
6163 * infcmd.c: Include "regcache.h".
6164 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6165 obtain the address of `stop_registers' register buffer.
6166 (print_return_value): Ditto.
6167
6168 * inferior.h (struct regcache): Add opaque declaration.
6169 (stop_registers): Change variable's declared type to ``struct
6170 regcache''.
6171
6172 2002-06-24 Tom Tromey <tromey@redhat.com>
6173
6174 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6175 * target.c (initialize_targets): Fixed typo in
6176 trust-readonly-sections `show' documentation.
6177
6178 * main.c: Marked all strings with _().
6179
6180 2002-06-24 Don Howard <dhoward@redhat.com>
6181
6182 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6183 that means max CORE_ADDR+1.
6184 (lookup_mem_region): Ditto.
6185 (mem_info_command): Ditto.
6186
6187 2002-06-24 Grace Sainsbury <graces@redhat.com>
6188
6189 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6190 (REGISTER_BYTES_OK): Remove.
6191 (REGISTER_BYTES): Remove.
6192 (STORE_STRUCT_RETURN): Remove.
6193 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6194 (STORE_RETURN_VALUE): Remove.
6195 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6196 (FRAME_CHAIN): Remove.
6197 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6198 (FRAME_SAVED_PC): Remove.
6199 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6200 (m68k_store_struct_return): Add.
6201 (m68k_deprecated_extract_return_value): Add.
6202 (m68k_deprecated_extract_struct_value_address): Add.
6203 (m68k_store_return_value): Add.
6204 (m68k_frame_chain): Add.
6205 (m68k_frameless_function_invocation): Add.
6206 (m68k_frame_saved_pc): Add.
6207 (m68k_gdbarch_init): added set_gdbarch calls for new
6208 functions and deleted macros.
6209
6210 2002-06-23 Tom Tromey <tromey@redhat.com>
6211
6212 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6213 (ALLDEPFILES): Likewise.
6214 (udiheaders): Removed.
6215 (udip2soc.o): Likewise.
6216 (udi2go32.o): Likewise.
6217 (udr.o): Likewise.
6218 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6219
6220 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6221
6222 * infrun.c (_initialize_infrun): Delete unnecessary call to
6223 build_infrun.
6224
6225 * regcache.h: Update comments describing the regcache_cpy family
6226 of functions.
6227 (regcache_save, regcache_restore): Delete declaration.
6228 (regcache_save_no_passthrough): Delete declaration.
6229 (regcache_restore_no_passthrough): Delete declaration.
6230 * regcache.c (regcache_save): Delete function.
6231 (regcache_save_no_passthrough): Delete function.
6232 (regcache_restore): Delete function.
6233 (regcache_restore_no_passthrough): Delete function.
6234
6235 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6236
6237 * config/m68k/tm-m68k.h: Fix typo.
6238 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6239 (m68k_frame_init_saved_regs): Declare.
6240
6241 2002-06-21 Jim Blandy <jimb@redhat.com>
6242
6243 Remove some vestiges of Harris 88k support.
6244 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6245 register numbering quirk.
6246 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6247 odd symbols occurring in Harris 88k ELF targets.
6248
6249 2002-06-21 Tom Tromey <tromey@redhat.com>
6250
6251 * gdb_locale.h: New file.
6252 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6253 (defs_h): Added gdb_locale.h.
6254 * configure, config.in: Rebuilt.
6255 * configure.in (PACKAGE): Define.
6256 * defs.h: Include gdb_locale.h.
6257 * main.c (captured_main): Call setlocale, bindtextdomain,
6258 textdomain.
6259
6260 2002-06-21 Dave Brolley <brolley@redhat.com>
6261
6262 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6263 * config/frv/frv.mt: New file.
6264 * config/frv/tm-frv.h: New file.
6265 * configure.tgt: Support frv-*-*.
6266 * Makefile.in (frv-tdep.o): New target.
6267 * frv-tdep.c: New file.
6268 * NEWS: Mention frv.
6269
6270 2002-06-21 Dave Brolley <brolley@redhat.com>
6271
6272 * MAINTAINERS: Add self to "Write After Approval" list.
6273
6274 2002-06-21 Grace Sainsbury <graces@redhat.com>
6275
6276 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6277 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6278 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6279 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6280 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6281
6282 * m68k-tdep.c: Include arch-utils.h
6283 (m68k_register_raw_size): Add.
6284 (m68k_register_virtual_size): Add.
6285 (m68k_register_virtual_type): Add.
6286 (m68k_register_name): Add.
6287 (m68k_stack_align): Add.
6288 (m68k_register_byte): Add.
6289 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6290 tm-m68k.h.
6291
6292 2002-06-21 Grace Sainsbury <graces@redhat.com>
6293
6294 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6295 m68k_find_saved_regs.
6296 (m68k_pop_frame): Removed saved_regs structure, and replaced
6297 references to it with frame->saved_regs.
6298 (m68k_gdbarch_init): Added function calls to initialize the
6299 gdbarch structure.
6300 (m68k_fix_call_dummy): Add.
6301 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6302 (CALL_DUMMY): Remove.
6303 (CALL_DUMMY_LENGTH): Remove.
6304 (CALL_DUMMY_START_OFFSET): Remove.
6305 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6306 (FIX_CALL_DUMMY): Remove.
6307 (PUSH_DUMMY_FRAME): Remove.
6308 (POP_FRAME): Remove.
6309
6310 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6311
6312 * parse.c (parse_fprintf): New function used to avoid calls to
6313 fprintf in bison parser generated debug code.
6314 * parser-defs.h: Declaration of new parse_fprintf function.
6315 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6316 Set YYDEBUG to 1 by default.
6317 Set YYFPRINTF as parse_fprintf.
6318
6319 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6320
6321 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6322 encoding anymore.
6323 (pointer_encoding, enum ptr_encoding): New.
6324 (execute_cfa_program): Take care about pointer encoding.
6325 (dwarf2_build_frame_info): Only call parse_frame_info for
6326 .debug_frame and .eh_frame.
6327 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6328 fixed augmentation handling, added relative addressing,
6329 ignore duplicate FDEs. Added comments.
6330 * dwarf2cfi.c: Reindented.
6331
6332 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6333
6334 * event-top.c (command_handler): Don't use space_at_cmd_start
6335 unless there is sbrk() on the host. Assign time and space data
6336 to union fields of the appropriate length.
6337
6338 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6339
6340 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6341 x86_64_register_name. Return type changed to 'const char *'.
6342 (x86_64_register_name2nr): Rename to x86_64_register_number.
6343 (x86_64_gdbarch_init): Update to reflect the change.
6344 * x86-64-tdep.h: Ditto.
6345 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6346 (supply_fpregset): Ditto.
6347
6348 2002-06-19 Andrew Cagney <cagney@redhat.com>
6349
6350 * regcache.h: Update copyright.
6351 (struct regcache, struct gdbarch): Add opaque declarations.
6352 (current_regcache): Declare global variable.
6353 (regcache_read, regcache_write): Add gdbarch parameter.
6354 (regcache_save, regcache_save_no_passthrough)
6355 (regcache_restore, regcache_restore_no_passthrough)
6356 (regcache_dup, regcache_dup_no_passthrough)
6357 (regcache_cpy, regcache_cpy_no_passthrough)
6358 (deprecated_grub_regcache_for_registers)
6359 (deprecated_grub_regcache_for_register_valid)
6360 (regcache_valid_p): Add function declarations.
6361
6362 * regcache.c: Update copyright.
6363 (regcache_descr_handle): New global variable.
6364 (struct regcache_descr): Define.
6365 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6366 (regcache_descr, xfree_regcache_descr): New functions.
6367 (struct regcache): Define.
6368 (regcache_xmalloc, regcache_xfree): New functions.
6369 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6370 (regcache_dup, regcache_dup_no_passthrough): New functions.
6371 (regcache_valid_p, regcache_read_as_address): New functions.
6372 (deprecated_grub_regcache_for_registers): New function.
6373 (deprecated_grub_regcache_for_register_valid): New function.
6374 (current_regcache): New global variable.
6375 (register_buffer): Add regcache parameter. Update calls.
6376 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6377 (read_register_gen, write_register_gen): Update register_buffer
6378 call. Test for legacy_p instead of gdbarch_register_read_p or
6379 gdbarch_register_write_p.
6380 (regcache_collect): Update register_buffer call.
6381 (build_regcache): Rewrite. Use deprecated grub functions.
6382 (regcache_save, regcache_save_no_passthrough): New functions.
6383 (regcache_restore, regcache_restore_no_passthrough): New
6384 functions.
6385 (_initialize_regcache): Create the regcache_data_handle. Swap
6386 current_regcache global variable.
6387
6388 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6389 parameter to regcache_read and regcache_write calls.
6390 (sh4_register_read): Ditto.
6391 (sh64_pseudo_register_read): Ditto.
6392 (sh64_register_read): Ditto.
6393 (sh_pseudo_register_write): Ditto.
6394 (sh4_register_write): Ditto.
6395 (sh64_pseudo_register_write): Ditto.
6396 (sh64_register_write): Ditto.
6397
6398 * defs.h (XCALLOC): Define.
6399
6400 2002-06-19 Grace Sainsbury <graces@redhat.com>
6401
6402 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6403 * m68k-tdep.c (m68k_gdbarch_init): Added.
6404 (m68k_dump_tdep): Added.
6405
6406 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6407
6408 * ada-lang.c (fill_in_ada_prototype): Update comment.
6409
6410 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6411
6412 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6413 MIPS_ABI_LAST.
6414 (mips_abi_string, mips_abi_strings): New.
6415 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6416 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6417 tdep->mips_abi_string. Honor mips_abi_string. Default to
6418 O32 if no ABI is found.
6419 (mips_dump_tdep): Use mips_abi_strings.
6420 (mips_abi_update): New function.
6421 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6422 ``set mips abi'' and ``show mips abi''. Check the size of
6423 mips_abi_strings.
6424
6425 2002-06-19 Andrew Cagney <cagney@redhat.com>
6426
6427 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6428 constant.
6429
6430 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6431
6432 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6433 current frame using only the first stack size adjustment. All
6434 subsequent size adjustments are not considered to be part of
6435 the "static" part of the current frame.
6436 Compute the address of the saved registers relative to the
6437 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6438 in use in this frame.
6439
6440 2002-06-18 Don Howard <dhoward@redhat.com>
6441
6442 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6443 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6444 suggesting this solution.
6445
6446 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6447
6448 * config/romp/xm-rtbsd.h: Delete file.
6449 * config/romp/rtbsd.mh: Delete file.
6450
6451 2002-06-18 Keith Seitz <keiths@redhat.com>
6452
6453 * breakpoint.c (condition_command): Post breakpoint_modify
6454 when a condition is added to an existing breakpoint.
6455 (commands_command): Likewise for commands.
6456 (set_ignore_count): Likewise for ignore counts.
6457 If no tty, do not simply return, still need to send event
6458 notification.
6459 (ignore_command): Only print a newline if the command came
6460 from a tty.
6461 Don't call breakpoints_changed, since this is now properly
6462 handled by set_ignore_count.
6463
6464 2002-06-18 Andrew Cagney <cagney@redhat.com>
6465
6466 * MAINTAINERS: Note that cris-elf target can be compiled with
6467 -Werror.
6468 * cris-tdep.c (cris_register_name): Make return type constant.
6469 (cris_breakpoint_from_pc): Ditto.
6470
6471 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6472
6473 * frame.h (struct frame_info): Change type of context to
6474 'struct context'.
6475
6476 2002-06-17 Andrew Cagney <cagney@redhat.com>
6477
6478 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6479 pointer.
6480 * gdbarch.h, gdbarch.c: Regenerate.
6481 * config/mips/tm-mips.h (mips_register_name): Update.
6482 * i386-tdep.h (i386_register_name): Update.
6483 * mips-tdep.c (mips_register_name): Update
6484 * alpha-tdep.c (alpha_register_name): Update.
6485 * arch-utils.c (legacy_register_name): Update.
6486 * arch-utils.h (legacy_register_name): Update.
6487 * avr-tdep.c (avr_register_name): Update.
6488 * ia64-tdep.c (ia64_register_name): Update.
6489 * i386-tdep.c (i386_register_name): Update.
6490 * sparc-tdep.c (sparc32_register_name): Update.
6491 (sparc64_register_name): Update.
6492 (sparclite_register_name): Update.
6493 (sparclet_register_name): Update.
6494 * sh-tdep.c (sh_generic_register_name): Update.
6495 (sh_sh_register_name): Update.
6496 (sh_sh3_register_name): Update.
6497 (sh_sh3e_register_name): Update.
6498 (sh_sh_dsp_register_name): Update.
6499 (sh_sh3_dsp_register_name): Update.
6500 (sh_sh4_register_name): Update.
6501 (sh_sh64_register_name): Update.
6502 * s390-tdep.c (s390_register_name): Update.
6503 * rs6000-tdep.c (rs6000_register_name): Update.
6504 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6505 (ns32k_register_name_32382): Update.
6506 * d10v-tdep.c (d10v_ts2_register_name): Update.
6507 (d10v_ts3_register_name): Update.
6508 * xstormy16-tdep.c (xstormy16_register_name): Update.
6509 * vax-tdep.c (vax_register_name): Update.
6510 * v850-tdep.c (v850_register_name): Update.
6511 * m68hc11-tdep.c (m68hc11_register_name): Update.
6512 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6513 (am33_register_name): Update.
6514
6515 2002-06-17 Grace Sainsbury <graces@redhat.com>
6516
6517 * m68k-tdep.c: Reindented.
6518
6519 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6520
6521 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6522 list of predefined types.
6523
6524 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6525
6526 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6527 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6528 REGISTER_CONVERT_TO_RAW): Remove defines.
6529 (i386_register_virtual_type, i386_register_convertible,
6530 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6531 Remove prototypes.
6532 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6533 macros mentioned above.
6534
6535 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6536 (i386lynx_saved_pc_after_call): Remove prototype.
6537 * i386ly-tdep.c: Include "i386-tdep.h".
6538 (i386lynx_saved_pc_after_call): Make static. Use
6539 read_memory_nobpt instead of read_memory. Use
6540 read_memory_unsigned_integer instead of read_memory_integer.
6541 (i386lynx_init_abi): New function.
6542 (i386lynx_coff_osabi_sniffer): New function.
6543 (_initialize_i386bsd_tdep): New function.
6544
6545 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6546 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6547 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6548 (i386_fix_call_dummy): Remove prototype.
6549 * i386-tdep.c (i386_call_dummy_words): New variable.
6550 (i386_gdbarch_init): Adjust for removal of the
6551 macros mentioned above.
6552
6553 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6554
6555 * command.h (add_setshow_auto_boolean_cmd): Replace
6556 add_set_auto_boolean_cmd.
6557 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6558 add_set_auto_boolean_cmd.
6559 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6560 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6561 mask-address'' command.
6562 (show_mask_address): Add cmd parameter.
6563 * remote.c (add_packet_config_cmd): Update. Change type of
6564 set_func and show_func to cmd_sfunc_ftype.
6565 (_initialize_remote): Update `set remote Z-packet'
6566 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6567 (show_remote_protocol_e_packet_cmd): Ditto.
6568 (show_remote_protocol_E_packet_cmd): Ditto.
6569 (show_remote_protocol_P_packet_cmd): Ditto.
6570 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6571 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6572 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6573 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6574 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6575 (show_remote_protocol_Z_packet_cmd): Ditto.
6576 (show_remote_protocol_binary_download_cmd): Ditto.
6577 (show_remote_cmd): Pass NULL to all of above.
6578
6579 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6580
6581 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6582 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6583 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6584 POP_FRAME): Remove defines.
6585 (i386_push_arguments, i386_store_struct_return,
6586 i386_extract_return_value, i386_store_return_value,
6587 i386_extract_struct_value_address, i386_push_dummy_frame,
6588 i386_pop_frame): Renove prototypes.
6589 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6590 macros mentioned above.
6591
6592 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6593
6594 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6595 add_set_boolean_cmd.
6596 (add_setshow_cmd): New function.
6597 * command.h (add_setshow_boolean_cmd): Replace
6598 add_set_boolean_cmd.
6599 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6600 and ``set rdiromatzero''.
6601 * maint.c (_initialize_maint_cmds): Update commented out code.
6602 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6603 * target.c (initialize_targets): Update `set
6604 trust-readonly-sections'.
6605 * remote.c (_initialize_remote): Update `set remotebreak'.
6606
6607 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6608
6609 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6610 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6611 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6612 fit into multi-arch framework.
6613 (i386_breakpoint_from_pc): New function.
6614 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6615 above.
6616
6617 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6618 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6619 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6620 (i386_frameless_function_invocation, i386_frame_num_args,
6621 i386_frame_init_saved_regs): Remove prototypes.
6622 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6623 macros mentioned above.
6624
6625 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6626
6627 * cli/cli-decode.c (set_cmd_cfunc): Update.
6628 (set_cmd_sfunc): Update.
6629 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6630 (set_cmd_sfunc, set_cmd_cfunc): Update.
6631 * cli/cli-decode.h: Update.
6632
6633 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6634
6635 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6636 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6637
6638 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6639
6640 * defs.h (auto_boolean): Declare enum.
6641 * command.h (cmd_auto_boolean): Delete enum.
6642 * mips-tdep.c (mask_address_var): Update.
6643 (mips_mask_address_p): Update.
6644 (show_mask_address): Update.
6645 * remote.c (struct packet_config): Update.
6646 (update_packet_config): Update.
6647 (show_packet_config_cmd): Update.
6648 (packet_ok): Update.
6649 (add_packet_config_cmd): Update.
6650 (_initialize_remote):
6651 * command.h: Update.
6652 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6653 (do_setshow_command): Update.
6654 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6655 * cli/cli-decode.h: Update.
6656
6657 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6658
6659 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6660 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6661 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6662 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6663 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6664 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6665
6666 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6667 list of DJGPP COFF targets.
6668
6669 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6670 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6671 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6672 (FP0_REGNUM): Remove define.
6673 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6674 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6675 (i386_register_virtual_size): Remove protoype.
6676 * i386-tdep.c (i386_register_virtual_size): Removed.
6677 (i386_extract_return_value, i386_store_return_value): Use
6678 FP0_REGNUM instead of NUM_FREGS to determine whether the
6679 floating-point registers are available.
6680 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6681 Adjust for removal of macros mentioned above.
6682
6683 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6684
6685 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6686 comments.
6687 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6688 Remove prototypes.
6689 (supply_gregset, fill_gregset): Remove use of register keyword and
6690 remove declaration for regmap. Use I386_NUM_GREGS instead of
6691 NUM_REGS and NUM_FREGS.
6692 (FPREGSET_FSAVE_OFFSET): Remove.
6693 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6694 NUM_FREGS to determine whether the floating-point registers are
6695 available.
6696
6697 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6698 gnu_store_registers): Replace usage of NUM_GREGS with
6699 I386_NUM_GREGS.
6700
6701 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6702 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6703 usage of NUM_GREGS with I386_NUM_GREGS.
6704
6705 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6706
6707 * i386bsd-nat.c: Include "i386-tdep.h".
6708 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6709 I386_NUM_GREGS.
6710
6711 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6712 and associated comment. They no longer make any sense, since we
6713 don't use this file anymore on Linux.
6714
6715 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6716 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6717 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6718 elements in these arrays.
6719 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6720 MAX_NUM_REGS.
6721
6722 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6723
6724 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6725 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6726
6727 2002-06-14 Andrew Cagney <cagney@redhat.com>
6728
6729 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6730 EXTRACT_RETURN_VALUE.
6731 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6732 EXTRACT_STRUCT_VALUE_ADDRESS.
6733 * gdbarch.h, gdbarch.c: Regenerate.
6734
6735 * values.c (value_being_returned): Handle
6736 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6737 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6738
6739 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6740 * arm-tdep.c (arm_gdbarch_init): Update.
6741 * avr-tdep.c (avr_gdbarch_init): Update.
6742 * cris-tdep.c (cris_gdbarch_init): Update.
6743 * d10v-tdep.c (d10v_gdbarch_init): Update.
6744 * ia64-tdep.c (ia64_gdbarch_init): Update.
6745 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6746 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6747 * s390-tdep.c (s390_gdbarch_init): Update.
6748 * sh-tdep.c (sh_gdbarch_init): Update.
6749 * s390-tdep.c (s390_gdbarch_init): Update.
6750 * sparc-tdep.c (sparc_gdbarch_init): Update.
6751 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6752 * v850-tdep.c (v850_gdbarch_init): Update.
6753 * vax-tdep.c (vax_gdbarch_init): Update.
6754 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6755 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6756
6757 * config/arc/tm-arc.h: Update.
6758 * config/d30v/tm-d30v.h: Update.
6759 * config/fr30/tm-fr30.h: Update.
6760 * config/h8300/tm-h8300.h: Update.
6761 * config/h8500/tm-h8500.h: Update.
6762 * config/i386/tm-i386.h: Update.
6763 * config/i386/tm-ptx.h: Update.
6764 * config/i386/tm-symmetry.h: Update.
6765 * config/i960/tm-i960.h: Update.
6766 * config/m32r/tm-m32r.h: Update.
6767 * config/m68k/tm-delta68.h: Update.
6768 * config/m68k/tm-linux.h: Update.
6769 * config/m68k/tm-m68k.h: Update.
6770 * config/m88k/tm-m88k.h: Update.
6771 * config/mcore/tm-mcore.h: Update.
6772 * config/mips/tm-mips.h: Update.
6773 * config/mn10200/tm-mn10200.h: Update.
6774 * config/pa/tm-hppa.h: Update.
6775 * config/pa/tm-hppa64.h: Update.
6776 * config/sparc/tm-sp64.h: Update.
6777 * config/sparc/tm-sparc.h: Update.
6778 * config/sparc/tm-sparclet.h: Update.
6779 * config/z8k/tm-z8k.h: Update.
6780
6781 2002-06-14 Andrew Cagney <cagney@redhat.com>
6782
6783 * Makefile.in (i386_linux_tdep_h): Define.
6784 (i386_tdep_h, i387_tdep_h): Define.
6785 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
6786 $(i386_tdep_h) and $(i387_tdep_h).
6787 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6788
6789 2002-06-14 Mark Kettenis <kettenis@gnu.org>
6790
6791 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
6792 Already covered by the default.
6793
6794 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
6795 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
6796 (i386_gdbarch_init): Initialize long_double_format and long_double
6797 bit.
6798
6799 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
6800 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
6801 Move these to ...
6802 * config/i386/i386sol2.mh: ... here.
6803 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
6804 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
6805 (SIGCONTEXT_PC_OFFSET): Remove define.
6806 (IN_SIGTRAMP): Remove define.
6807 * i386-sol2-tdep.c: New file.
6808
6809 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
6810 * config/i386/tm-i386nw.h: Removed.
6811
6812 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
6813 USE_STRUCT_CONVENTION): Remove defines.
6814 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6815 (get_longjmp_target): Remove prototype.
6816 (IN_SIGTRAMP): Remove define.
6817 (i386bsd_in_sigtramp): Remove prototype.
6818 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6819 function. Update comment accordingly
6820 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6821 (FRAME_SAVED_PC): Remove define.
6822 (i386bsd_frame_saved_pc): Remove prototype.
6823 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
6824 GET_LONGJMP_TARGET): Remove defines.
6825 (get_longjmp_target): Remove prototype.
6826 (IN_SIGTRAMP): Remove define.
6827 (i386bsd_in_sigtramp): Remove prototype.
6828 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
6829 function. Update comment accordingly
6830 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
6831 (FRAME_SAVED_PC): Remove define.
6832 (i386bsd_frame_saved_pc): Remove prototype.
6833 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
6834 Remove prototype.
6835 (USE_STRUCT_CONVENTION): Remove prototype.
6836 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
6837 declaration.
6838 (_initialize_i386bsd_nat): Revise logic to determine some
6839 constants at compile time when compiling a native GDB. Warn if
6840 things don't match up with what we expect.
6841 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
6842 Remove variables.
6843 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
6844 to use date stored in `struct gdbarch_tdep'.
6845 (i386bsd_sigcontext_offset): Remove varaible.
6846 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
6847 stored in `struct gdbarch_tdep'.
6848 (i386bsd_frame_saved_pc): Make static.
6849 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
6850 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
6851 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
6852 i386fbsd4_sc_pc_offset): New variables.
6853 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
6854 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
6855 functions.
6856 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
6857 functions.
6858 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
6859 Modify the value of i386fbsd_sigtramp_start and
6860 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
6861 i386fbsd_sigtramp_end.
6862 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
6863 function.
6864
6865 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
6866 define to i386-linux-tdep.h.
6867 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
6868 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
6869 defines.
6870 (i386_linux_register_name, i386_linux_register_byte,
6871 i386_linux_register_raw_size): Remove prototypes.
6872 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
6873 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
6874 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
6875 TARGET_WRITE_PC): Remove defines.
6876 (i386_linux_in_sigtramp, i386_linux_frame_chain,
6877 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
6878 i386_linux_write_pc): Remove prototypes.
6879 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6880 (get_longjmp_target): Remove prototype.
6881 * i386-linux-tdep.h: New file.
6882 * i386-linux-nat.c: Include "i386-linux-tdep.h".
6883 * i386-linux-tdep.c: Include "i386-tdep.h" and
6884 "i386-linux-tdep.h".
6885 (i386_linux_register_name, i386_linux_register_byte,
6886 i386_linux_register_raw_size, i386_linux_in_sigtramp,
6887 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
6888 Make static.
6889 (i386_linux_init_abi): New function.
6890 (_initialize_i386_linux_tdep): New function.
6891
6892 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
6893 (i386_saved_pc_after_call): Remove prototype.
6894 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
6895 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
6896 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
6897 (i386_register_name, i386_stab_reg_to_regnum,
6898 i386_dwarf_reg_to_regnum): Remove prototypes.
6899 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
6900 SIZEOF_SSE_REGS): Remove defines.
6901 (REGISTER_BYTES): Remove define.
6902 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
6903 (i386_register_byte, i386_register_raw_size): Remove prototypes.
6904 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
6905 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
6906 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
6907 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
6908 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
6909 (get_longjmp_target): Remove prototype.
6910 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
6911 (sigtramp_saved_pc): Remove define.
6912 (i386v4_sigtramp_saved_pc): Remove prototype.
6913 * config/i386/tm-go32.h (FRAME_CHAIN,
6914 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
6915 (i386go32_frame_saved_pc): Remove prototype.
6916 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
6917 (get_longjmp_target): Remove prototype.
6918 * i386-tdep.h: Include "osabi.h".
6919 (enum i386_abi): Removed.
6920 (enum struct_return): New enum.
6921 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
6922 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
6923 sc_pc_offset members.
6924 (i386_gdbarch_register_os_abi): Remove prototype.
6925 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
6926 I386_SSE_NUM_REGS): New defines.
6927 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
6928 I386_SSE_SIZEOF_REGS): New defines.
6929 (i386_register_name, i386_register_byte, i386_register_raw_size):
6930 New prototypes.
6931 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
6932 (i386bsd_sigtramp_saved_pc): New prototype.
6933 * i386-tdep.c: Don't include "elf-bfd.h".
6934 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
6935 i386_frame_chain, i386_saved_pc_after_call): Make static.
6936 (i386_frame_saved_pc): Rewrite to call architecture dependent
6937 function to deal with signal handlers. Make static.
6938 (i386go32_frame_saved_pc): Removed.
6939 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
6940 Removed.
6941 (i386_get_longjmp_target): New function.
6942 (default_struct_convention, pcc_struct_convention,
6943 reg_struct_convention, valid_conventions, struct_convention): New
6944 variables.
6945 (i386_use_struct_convention): New function.
6946 (i386v4_sigtramp_saved_pc): Renamed to
6947 i386_svr4_sigtramp_saved_pc. Made static. Moved.
6948 (i386_pc_in_sigtramp): New function.
6949 (i386_abi_names): Removed.
6950 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
6951 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
6952 Removed.
6953 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
6954 i386_gdbarch_register_os_abi): Removed.
6955 (struct i386_abi_handler): Removed.
6956 (i386_abi_handler_list): Removed.
6957 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
6958 functions.
6959 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
6960 i386_nw_init_abi): New functions.
6961 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
6962 Use set_gdbarch_xxx() calls instead of relying on macros for a
6963 number of calls.
6964 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
6965 (_initialize_i386_tdep): Add new 'struct-convcention' command.
6966 Register the various architecture variants defined in this file.
6967
6968 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
6969
6970 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
6971 (struct main_type): Remove arg_types member. Update comments for
6972 struct field.
6973 (TYPE_ARG_TYPES): Remove.
6974 (TYPE_FN_FIELD_ARGS): Update.
6975 (smash_to_method_type): Update prototype.
6976
6977 * c-typeprint.c (cp_type_print_method_args): Take method type
6978 instead of argument list. Use new argument layout. Simplify.
6979 (c_type_print_args): Use new argument layout. Simplify.
6980 (c_type_print_base): Update call to cp_type_print_method_args.
6981 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
6982 argument; use die->type instead. Update call to
6983 smash_to_method_type.
6984 (read_structure_scope): Update call to dwarf2_add_member_fn.
6985 * gdbtypes.c (allocate_stub_method): Update comment.
6986 (smash_to_method_type): Take new NARGS and VARARGS arguments.
6987 Use new argument layout.
6988 (check_stub_method): Use new argument layout. Don't count
6989 void as an argument.
6990 (print_arg_types): Update comments. Use new argument layout.
6991 (recursive_dump_type): Don't print arg_types member.
6992 * hpread.c (hpread_read_struct_type): Use new argument layout.
6993 (fixup_class_method_type): Likewise.
6994 (hpread_type_lookup): Likewise.
6995 * stabsread.c (read_type): Update calls to read_args and
6996 smash_to_method_type.
6997 (read_args): Use new argument layout. Simplify.
6998 * valops.c (typecmp): Use new argument layout. Update parameters
6999 and comments. Simplify.
7000 (hand_function_call): Use new argument layout.
7001 (search_struct_method): Update call to typecmp.
7002 (find_overload_match): Use new argument layout.
7003
7004 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7005
7006 * NEWS: Mention multithreaded debug support for gdbserver.
7007
7008 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7009
7010 * MAINTAINERS: Mention NEWS.
7011
7012 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7013
7014 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7015 (struct mips_objfile_private, compare_pdr_entries): New.
7016 (non_heuristic_proc_desc): Read the ".pdr" section if it
7017 is present.
7018
7019 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7020
7021 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7022 (arm_debug): New static variable.
7023 (_initialize_arm_tdep): Add ``set debug arm'' command.
7024
7025 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7026
7027 * Makefile.in (sim_arm_h): Define.
7028 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7029 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7030 (arm_register_sim_regno): New function, map an internal REGNUM
7031 onto a simulator register number.
7032 (arm_gdbarch_init): Set register_sim_regno.
7033
7034 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7035
7036 * MAINTAINERS: Add self.
7037
7038 2002-06-11 Jim Blandy <jimb@redhat.com>
7039
7040 * source.c (source_info): Mention whether the symtab has
7041 information about preprocessor macros.
7042
7043 Call the command `info macro', not `show macro'.
7044 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7045 Fix error message.
7046 (_initialize_macrocmd): Register `info_macro_command' in
7047 `infolist', not `showlist'.
7048
7049 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7050
7051 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7052 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7053 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7054 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7055 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7056 unconditionally.
7057 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7058 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7059 (_initialize_mips_tdep): Remove dead code.
7060 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7061 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7062 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7063 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7064 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7065 MIPS_LAST_FP_ARG_REGNUM): Remove.
7066
7067 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7068
7069 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7070 (unwind_tmp_obstack_free, parse_frame_info)
7071 (update_context, cfi_read_fp, cfi_write_fp)
7072 (cfi_frame_chain, cfi_init_extra_frame_info)
7073 (cfi_virtual_frame_pointer): Use the above function.
7074 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7075
7076 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7077
7078 * v850-tdep.c (v850_type_is_scalar): New function.
7079 (v850_use_struct_convention): Match current gcc implementation
7080 as close as possible.
7081 (v850_push_arguments): Fix stack_offset handling. Don't write
7082 struct_addr into register. This is done by v850_store_struct_return.
7083 (v850_extract_return_value): Care for structs.
7084 (v850_store_return_value): Ditto.
7085 (v850_store_struct_return): Actually write address.
7086
7087 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7088
7089 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7090 without debug information too.
7091
7092 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7093
7094 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7095 Make multi-arch pure.
7096 * gdbarch.h, gdbarch.c: Re-generate.
7097 * arm-tdep.c (arm_print_float_info): Update.
7098 * arch-utils.h (default_print_float_info): Update.
7099 * arch-utils.c (default_print_float_info): Update.
7100 * infcmd.c (float_info): Update call.
7101
7102 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7103
7104 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7105 the front of the initialize list.
7106
7107 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7108
7109 * infrun.c (struct inferior_status): Replace fields
7110 selected_frame_address and selected_level with field
7111 selected_frame_id.
7112 (save_inferior_status): Update. Use get_frame_id.
7113 (struct restore_selected_frame_args): Delete.
7114 (restore_selected_frame): Update. Use frame_find_by_id.
7115 (restore_inferior_status): Update.
7116
7117 * breakpoint.h (struct breakpoint): Change type of
7118 watchpoint_frame to frame_id.
7119 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7120 call to get_current_frame.
7121 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7122 get_current_frame.
7123 (watchpoint_check): Use frame_find_by_id.
7124
7125 * frame.h (record_selected_frame): Delete declaration.
7126 * stack.c (record_selected_frame): Delete function.
7127
7128 * frame.h (struct frame_id): Define.
7129 (get_frame_id): Declare.
7130 (frame_find_by_id): Declare.
7131 * frame.c (frame_find_by_id): New function.
7132 (get_frame_id): New function.
7133
7134 2002-06-10 Andrey Volkov <avolkov@transas.com>
7135
7136 * ser-e7kpc.c: Fix duplicated define and call of
7137 _initialize_ser_e7000pc
7138
7139 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7140
7141 * signals/signals.c (target_signal_from_host): Fix #ifdef
7142 SIGRTMIN case.
7143 (do_target_signal_to_host): Likewise.
7144
7145 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7146
7147 * mips-tdep.c (mips_find_abi_section): New function.
7148 (mips_gdbarch_init): Call it.
7149
7150 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7151
7152 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7153 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7154 after Andrew's 2002-06-08 gdbarch change.
7155
7156 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7157
7158 * i386-linux-nat.c (suppy_gregset): Don't supply
7159 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7160 register cache.
7161 (fill_gregset): Don't fetch it under the same circumstances.
7162
7163 2002-06-09 Andrew Cagney <cagney@redhat.com>
7164
7165 * Makefile.in (callback_h): Define.
7166 (remote_sim_h): Update path to remote-sim.h.
7167 (remote-rdp.o): Add $(callback_h).
7168 (remote-sim.o): Use $(callback_h).
7169 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7170 * remote-rdp.c: Include "gdb/callback.h".
7171
7172 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7173
7174 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7175 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7176
7177 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7178
7179 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7180 * rdi-share/serpardr.c: Ditto.
7181 * rdi-share/unixcomm.c: Ditto.
7182 * rdi-share/serdrv.c: Ditto.
7183 * rdi-share/hostchan.h: Ditto.
7184 * rdi-share/hostchan.c: Ditto.
7185 * rdi-share/host.h: Ditto.
7186 * rdi-share/devsw.c: Ditto.
7187
7188 * objfiles.h: Change type of obj_private to void pointer.
7189 * pa64solib.c: Update copyright. Don't include "assert.h", use
7190 strcmp instead of STREQ, use LONGEST, do not use PTR
7191 * somsolib.c: Ditto.
7192
7193 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7194 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7195 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7196
7197 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7198
7199 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7200 (default_get_saved_register): Delete function.
7201 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7202 generic_unwind_get_saved_register.
7203 * gdbarch.h, gdbarch.c: Re-generate.
7204
7205 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7206
7207 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7208 generic_func_frame_chain_valid.
7209 * gdbarch.h, gdbarch.c: Re-generate.
7210 * blockframe.c (generic_func_frame_chain_valid): Only check
7211 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7212 passing FP to PC_IN_CALL_DUMMY.
7213 Fix PR gdb/360.
7214
7215 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7216
7217 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7218 (register_gdbarch_data): Initialize init_p.
7219 (gdbarch_data): Initialize data pointer using the init function.
7220 (init_gdbarch_data): Delete function.
7221 (gdbarch_update_p): Update.
7222 (initialize_non_multiarch): Update.
7223 (struct gdbarch): Add field initialized_p.
7224 * gdbarch.h, gdbarch.c: Re-generate.
7225
7226 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7227
7228 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7229 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7230 better do the things actually here.
7231 * x86-64-tdep.c (x86_64_register_name2nr): New.
7232 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7233 (x86_64_gdbarch_init): Respect the above change.
7234 * x86-64-tdep.h (x86_64_register_name2nr)
7235 (x86_64_register_nr2name): Add prototypes.
7236 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7237
7238 2002-06-06 Michael Snyder <msnyder@redhat.com>
7239
7240 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7241 Delete extra braces and re-indent.
7242 (d10v_store_return_value): Char return values
7243 must be shifted over by one byte in R0.
7244 (d10v_extract_return_value): Delete extra braces, re-indent.
7245
7246 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7247
7248 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7249 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7250 (d10v_integer_to_address): Rewrite.
7251 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7252 the d10v specific functions which take care of converting to the
7253 correct space.
7254
7255 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7256
7257 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7258 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7259
7260 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7261
7262 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7263 includes.
7264 * config/tm-linux.h: Ditto.
7265 * config/alpha/tm-alphalinux.h: Ditto.
7266 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7267 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7268 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7269 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7270 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7271 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7272 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7273 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7274 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7275 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7276 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7277 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7278 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7279 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7280 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7281 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7282 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7283 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7284 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7285 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7286 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7287 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7288 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7289 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7290 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7291 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7292 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7293 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7294 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7295 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7296 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7297 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7298 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7299 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7300 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7301 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7302 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7303
7304 2002-05-04 Aidan Skinner <aidan@velvet.net>
7305
7306 * ada-exp.tab.c: New file
7307 * ada-exp.y: New file
7308 * ada-lang.c: New file
7309 * ada-lang.h: New file
7310 * ada-lex.c: New file
7311 * ada-lex.l: New file
7312 * ada-tasks.c: New file
7313 * ada-typeprint.c: New file
7314 * ada-valprint.c: New file
7315
7316 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7317
7318 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7319 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7320
7321 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7322
7323 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7324 insetead of ppc-linux-tdep.o.
7325 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7326 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7327
7328 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7329
7330 2002-05-07 Christian Groessler <chris@groessler.org>
7331 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7332 bit register contents for little endian hosts.
7333
7334 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7335
7336 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7337 any maintainer.
7338
7339 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7340
7341 * gdbarch.h: Regenerate.
7342
7343 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7344
7345 * MAINTAINERS: Add everyone to write-after-approval list.
7346
7347 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7348
7349 * stack.c (frame_info): Use frame_register_unwind instead of
7350 saved_regs. Mention when the SP is on the stack or in a register.
7351
7352 * frame.h (frame_register_unwind_ftype): Define. Document.
7353 (struct frame_info): Add field register_unwind and
7354 register_unwind_cache.
7355 (frame_register_unwind): Declare.
7356 (generic_unwind_get_saved_register): Declare.
7357
7358 * frame.c (frame_register_unwind): New function.
7359 (generic_unwind_get_saved_register): New function.
7360
7361 * blockframe.c (generic_call_dummy_register_unwind): New function.
7362 (frame_saved_regs_register_unwind): New function.
7363 (set_unwind_by_pc): New function.
7364 (create_new_frame): New function.
7365 (get_prev_frame): New function.
7366
7367 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7368
7369 * a29k-share/: Delete directory.
7370 * remote-vx29k.c: Delete file.
7371
7372 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7373
7374 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7375 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7376
7377 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7378
7379 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7380 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7381 (sparc64nbsd-nat.o)
7382 (sparcnbsd-nat.o)
7383 (sparcnbsd-tdep.o): New dependency lists.
7384 * NEWS: Note new UltraSPARC NetBSD native configuration.
7385 * configure.host (sparc64-*-netbsd*): New host.
7386 * configure.tgt (sparc-*-netbsdelf*)
7387 (sparc-*-netbsd*): Set gdb_target to nbsd.
7388 (sparc64-*-netbsd*): New target.
7389 * sparc64nbsd-nat.c: New file.
7390 * sparcnbsd-nat.c: New file.
7391 * sparcnbsd-tdep.c: New file.
7392 * sparcnbsd-tdep.h: New file.
7393 * config/sparc/nbsd.mt: New file.
7394 * config/sparc/nbsd64.mh: New file.
7395 * config/sparc/nbsd64.mt: New file.
7396 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7397 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7398 (HOST_IPC): Remove.
7399 * config/sparc/nbsdaout.mt: Remove.
7400 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7401 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7402 (HOST_IPC): Remove.
7403 * config/sparc/nbsdelf.mt: Remove.
7404 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7405 sparc-nat.c compatiblity defines.
7406 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7407 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7408 * config/sparc/tm-nbsd64.h: New file.
7409 * config/sparc/tm-nbsdaout.h: Remove.
7410 * config/sparc/xm-nbsd.h: Remove.
7411
7412 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7413
7414 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7415 * sparc-tdep.c: Include osabi.h.
7416 (gdbarch_tdep): Add osabi member.
7417 (_initialize_sparc_tdep): Use gdbarch_register.
7418 (sparc_gdbarch_init): Use generic OS ABI framework.
7419 (sparc_dump_tdep): New function.
7420
7421 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7422
7423 * corefile.c (do_captured_read_memory_integer): Return non-zero
7424 result.
7425 (safe_read_memory_integer): Copy result of memory read when
7426 status is non-zero. Also, add comments.
7427
7428 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7429
7430 * Makefile.in (ppc_tdep_h): Define.
7431 (ppc-linux-nat.o)
7432 (ppc-linux-tdep.o)
7433 (rs6000-tdep.o): Use $(ppc_tdep_h).
7434 (ppc-sysv-tdep.o)
7435 (ppcnbsd-nat.o)
7436 (ppcnbsd-tdep.o): New dependency lists.
7437 * ppc-tdep.h: Use generic OS ABI framework.
7438 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7439 (ppc_linux_init_abi): New functions.
7440 (ppc_sysv_abi_broken_use_struct_convention)
7441 (ppc_sysv_abi_use_struct_convention)
7442 (ppc_sysv_abi_push_arguments): Move to...
7443 * ppc-sysv-tdep.c: ...here.
7444 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7445 * rs6000-tdep.c (process_note_abi_tag_sections)
7446 (get_elfosabi): Remove.
7447 (rs6000_gdbarch_init): Use generic OS ABI framework.
7448 (rs6000_dump_tdep): New function.
7449 (_initialize_rs6000_tdep): Use gdbarch_register.
7450 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7451 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7452 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7453 of ppc-linux-tdep.o.
7454 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7455 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7456 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7457 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7458 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7459 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7460
7461 2002-05-29 Jim Blandy <jimb@redhat.com>
7462
7463 * macroscope.c (default_macro_scope): Put `void' in empty argument
7464 list.
7465
7466 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7467
7468 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7469 * arch-utils.c: Include "sim-regno.h".
7470 * gdbarch.sh: Don't include "sim-regno.h".
7471 * gdbarch.h, gdbarch.c: Regenerate.
7472 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7473 here.
7474 * arch-utils.h (legacy_register_sim_regno): To here.
7475 * remote-sim.c (legacy_register_sim_regno): Move function from
7476 here.
7477 * arch-utils.c (legacy_register_sim_regno): To here.
7478
7479 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7480
7481 * sim-regno.h: New file.
7482 * Makefile.in (sim_regno_h): Define.
7483 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7484 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7485 (legacy_register_sim_regno): New function.
7486 (one2one_register_sim_regno): New function.
7487 (gdbsim_fetch_register): Rewrite.
7488 (gdbsim_store_register): Only store a register when
7489 REGISTER_SIM_REGNO is valid.
7490 * d10v-tdep.c: Include "sim-regno.h".
7491 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7492 (d10v_ts3_register_sim_regno): Ditto.
7493 * gdbarch.sh: Include "sim-regno.h".
7494 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7495 * gdbarch.h, gdbarch.c: Regenerate.
7496 * arch-utils.h (default_register_sim_regno): Delete declaration.
7497 * arch-utils.c (default_register_sim_regno): Delete function.
7498
7499 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7500
7501 * ppcnbsd-nat.c: Rewrite.
7502 * ppcnbsd-tdep.c: New file.
7503 * ppcnbsd-tdep.h: New file.
7504 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7505 solib.o, and solib-svr4.o.
7506 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7507 nbsd-tdep.o, and corelow.o.
7508
7509 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7510
7511 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7512 `tr' and `sed'. Mention that `broken' targets are not expected to
7513 build.
7514
7515 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7516
7517 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7518 Let PC point right after the prologue before looking up symbols.
7519
7520 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7521
7522 * i386-tdep.c (i386_register_virtual_type): Return
7523 builtin_type_vec128i for SSE registers.
7524
7525 * gdbtypes.h (builtin_type_vec128i): Declare.
7526
7527 * gdbtypes.c (build_builtin_type_vec128i): New function.
7528 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7529 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7530 (build_gdbtypes): Initialize new builtin vector types.
7531 (_initialize_gdbtypes): Register new vector types with gdbarch.
7532
7533 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7534
7535 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7536 since it has been multi-arch'd.
7537 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7538 Move Alpha and VAX multi-arch news entries to same section
7539 as other multi-arch news.
7540
7541 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7542
7543 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7544 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7545 static. Rename some register numbers to put them in ns32k-tdep
7546 private namespace.
7547 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7548 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7549 functions.
7550 (_initialize_ns32k_tdep): Use gdbarch_register.
7551 * ns32k-tdep.h: New file.
7552 * ns32knbsd-tdep.c: New file.
7553 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7554 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7555 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7556 REGISTER_BYTES, REGISTER_BYTE): Remove.
7557 * config/ns32k/tm-ns32k.h: New file.
7558 * config/ns32k/tm-umax.h: Remove.
7559
7560 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7561
7562 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7563 ns32k_store_struct_return, ns32k_extract_return_value,
7564 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7565 functions.
7566 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7567 ns32k_saved_pc_after_call.
7568 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7569 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7570 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7571 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7572 ns32k_extract_struct_value_address.
7573
7574 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7575
7576 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7577 ns32k_fix_call_dummy): New.
7578 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7579 ns32k_call_dummy_words.
7580 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7581 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7582 CALL_DUMMY_NARGS): Remove.
7583 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7584
7585 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7586
7587 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7588 ns32k_frame_saved_pc, ns32k_frame_args_address,
7589 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7590 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7591 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7592 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7593 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7594 (BREAKPOINT): Remove..
7595 (FRAME_CHAIN): Define as ns32k_frame_chain.
7596 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7597 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7598 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7599 (FRAME_FIND_SAVED_REGS): Remove.
7600 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7601 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7602 (POP_FRAME): Define as ns32k_pop_frame.
7603
7604 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7605
7606 * ns32k-tdep.c (ns32k_register_byte_32082,
7607 ns32k_register_byte_32382, ns32k_register_raw_size,
7608 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7609 functions.
7610 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7611 ns32k_register_byte_32382.
7612 * config/ns32k/tm-umax.h: Update copyright years.
7613 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7614 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7615 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7616 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7617 (ns32k_get_enter_addr): Fix prototype.
7618
7619 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7620
7621 * ns32k-tdep.c: Update copyright years.
7622 (ns32k_register_name_32082): New function.
7623 (ns32k_register_name_32382): Ditto.
7624 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7625 (REGISTER_NAME): Define as ns32k_register_name_32382.
7626 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7627 (REGISTER_NAME): Define as ns32k_register_name_32082.
7628
7629 2002-05-24 Jim Blandy <jimb@redhat.com>
7630
7631 * dwarf2read.c (free_line_header): Use xfree, not free.
7632
7633 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7634
7635 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7636 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7637
7638 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7639
7640 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7641
7642 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7643
7644 From Ross Alexander at NEC Europe:
7645 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7646
7647 2002-05-23 Michael Snyder <msnyder@redhat.com>
7648
7649 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7650 for input, rather than parse_and_eval_address.
7651
7652 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7653
7654 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7655 * Makefile.in (sim_d10v_h): Update definition.
7656
7657 2002-05-24 Andrew Cagney <cagney@redhat.com>
7658
7659 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7660 change `2002-05-22 Michael Snyder' below.
7661 (d10v_push_arguments): Ditto.
7662 (d10v_extract_return_value): Ditto.
7663
7664 2002-05-23 Jim Blandy <jimb@redhat.com>
7665
7666 * macrotab.c (check_for_redefinition): Don't complain if the new
7667 definition is the same as the previous one. Take more arguments
7668 to allow the comparison.
7669 (macro_define_object, macro_define_function): Pass more arguments
7670 to check_for_redefinition.
7671
7672 2002-05-22 Michael Snyder <msnyder@redhat.com>
7673
7674 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7675 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7676 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7677 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7678 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7679 Add a temp variable to save a call (and a memory read).
7680 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7681 if possible (so that PC_IN_CALL_DUMMY will work).
7682
7683 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
7684
7685 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7686
7687 2002-05-22 Michal Ludvig <mludvig@suse.cz>
7688
7689 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7690 fde->cie_ptr.
7691 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7692 (dwarf2_build_frame_info): Add offset to fde->initial_location
7693 so that frames of shared libraries are mapped correctly.
7694 (execute_stack_op): Change type of 'result' from ULONGEST to
7695 CORE_ADDR.
7696
7697 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7698
7699 * config/alpha/tm-nbsd.h: Include solib.h.
7700
7701 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7702
7703 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7704 assumptions about the host's byte order.
7705
7706 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7707
7708 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7709 to dependency list.
7710 * alphanbsd-tdep.c: Include solib-svr4.h.
7711 * shnbsd-tdep.c: Ditto.
7712
7713 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7714
7715 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7716 nbsd-tdep.h to dependency list.
7717 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7718 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7719 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7720 nbsdaout.mh and nbsdelf.mh consistently.
7721 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7722 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7723 nbsdaout.mt and nbsdelf.mh consistently.
7724 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7725 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7726 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7727 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7728 a.out shared library stuff from here...
7729 * config/nm-nbsdaout.h: ...to here.
7730 * config/tm-nbsd.h: Remove.
7731 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7732 * config/arm/nbsd.mh: Remove.
7733 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7734 nbsd-tdep.o.
7735 * config/arm/nbsdaout.mh: New file.
7736 * config/arm/nbsdelf.mh: New file.
7737 * config/arm/nm-nbsdaout.h: New file.
7738 * config/i386/nbsd.mh: Remove.
7739 * config/i386/nbsd.mt: Remove.
7740 * config/i386/nbsdaout.mh: New file.
7741 * config/i386/nbsdaout.mt: New file.
7742 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7743 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7744 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7745 i386_register_u_addr): Remove.
7746 * config/i386/nm-nbsdaout.h: New file.
7747 * config/i386/nm-nbsdelf.h: Remove.
7748 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7749 (USE_STRUCT_CONVENTION): Remove.
7750 * config/i386/tm-nbsdaout.h: New file.
7751 * config/i386/tm-nbsdelf.h: Remove.
7752 * config/m68k/nbsd.mh: Remove.
7753 * config/m68k/nbsd.mt: Remove.
7754 * config/m68k/nbsdaout.mh: New file.
7755 * config/m68k/nbsdaout.mt: New file.
7756 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7757 * config/m68k/nm-nbsdaout.h: New file.
7758 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7759 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7760 * config/ns32k/nbsd.mh: Remove.
7761 * config/ns32k/nbsd.mt: Remove.
7762 * config/ns32k/nbsdaout.mh: New file.
7763 * config/ns32k/nbsdaout.mt: New file.
7764 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7765 * config/ns32k/nm-nbsdaout.h: New file.
7766 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7767 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7768 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7769 (SVR4_SHARED_LIBS): Remove.
7770 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
7771 * config/sparc/nbsd.mh: Remove.
7772 * config/sparc/nbsd.mt: Remove.
7773 * config/sparc/nbsdaout.mh: New file.
7774 * config/sparc/nbsdaout.mt: New file.
7775 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7776 * config/sparc/nbsdelf.mt: New file.
7777 * config/sparc/nm-nbsdaout.h: New file.
7778 * config/sparc/nm-nbsdelf.h: Remove.
7779 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
7780 * config/sparc/tm-nbsdaout.h: New file.
7781
7782 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7783
7784 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
7785 mipsnbsd-tdep.c
7786 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
7787
7788 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7789
7790 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
7791 shnbsd-nat.c.
7792 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
7793
7794 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7795
7796 * NEWS: Note new MIPS NetBSD native configuration.
7797 * configure.host (mips*-*-netbsd*): New host.
7798 * configure.tgt (mips*-*-netbsd*): New target.
7799 * mipsnbsd-nat.c: New file.
7800 * mipsnbsd-tdep.c: New file.
7801 * mipsnbsd-tdep.h: New file.
7802 * config/mips/nbsd.mh: New file.
7803 * config/mips/nbsd.mt: New file.
7804 * config/mips/nm-nbsd.h: New file.
7805 * config/mips/tm-nbsd.h: New file.
7806
7807 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
7808
7809 * Makefile.in (SFILES): Add osabi.c.
7810 (COMMON_OBS): Add osabi.o.
7811 (osabi.o): New dependency list.
7812 * osabi.c: New file.
7813 * osabi.h: New file.
7814 * doc/gdbint.texinfo: Document new generic OS ABI framework.
7815
7816 * Makefile.in (alpha_tdep_h): Define and use instead of
7817 alpha-tdep.h.
7818 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
7819 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
7820 Remove.
7821 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
7822 * alpha-tdep.h: Include osabi.h.
7823 (alpha_abi): Remove.
7824 (gdbarch_tdep): Use generic OS ABI framework.
7825 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
7826 gdbarch_register_osabi.
7827 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
7828 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
7829 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
7830
7831 * Makefile.in (sh_tdep_h): Add osabi.h.
7832 * sh-tdep.h (sh_osabi): Remove.
7833 (gdbarch_tdep): Use generic OS ABI framework.
7834 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
7835 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
7836 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
7837 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
7838
7839 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
7840 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
7841 gdbarch_register_osabi.
7842 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
7843 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
7844 (get_elfosabi): Rename to...
7845 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
7846 ABI framework support routines.
7847 (arm_gdbarch_init): Use generic OS ABI framework.
7848 (arm_dump_tdep): Likewise.
7849 (_initialize_arm_tdep): Likewise.
7850 * arm-tdep.h: Include osabi.h.
7851 (arm_abi): Remove.
7852 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
7853 osabi member.
7854 (arm_gdbarch_register_os_abi): Remove prototype.
7855 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
7856 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
7857
7858 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
7859 * mips-tdep.c: Include osabi.h.
7860 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
7861 OS ABI framework.
7862
7863 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
7864
7865 * h8300-tdep.c: Fix formatting.
7866
7867 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
7868
7869 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
7870 printing vector registers.
7871
7872 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7873
7874 From Fernando Nasser:
7875 * remote.c (remote_async_open_1): Re-throw the exception when the
7876 connection fails.
7877 (remote_cisco_open): Ditto.
7878 (remote_open_1): Ditto.
7879
7880 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7881
7882 * remote.c (remote_start_remote_dummy): Add uiout parameter.
7883 (remote_start_remote): Add uiout parameter. Pass through to
7884 remote_start_remote_dummy.
7885 (remote_open_1): Use catch_exception instead of catch_errors.
7886 (remote_async_open_1): Ditto.
7887 (remote_cisco_open): Ditto.
7888
7889 2002-05-19 Andrew Cagney <ac131313@redhat.com>
7890
7891 * remote.c (remote_start_remote): Replace PTR with void pointer.
7892 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
7893 static.
7894
7895 2002-05-18 Andrew Cagney <ac131313@redhat.com>
7896
7897 * gdb_indent.sh: Allow the script to be run in the sim directory.
7898
7899 2002-05-18 Mark Kettenis <kettenis@gnu.org>
7900
7901 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
7902 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
7903
7904 * corelow.c (core_open): Only call set_gdbarch_from_file if
7905 exec_bfd is NULL.
7906
7907 2002-05-17 Andrey Volkov <avolkov@transas.com>
7908
7909 * h8300-tdep.c: Add support of EXR register
7910 * config/h8300/tm-h8300.h: Ditto.
7911
7912 2002-05-17 Andrey Volkov <avolkov@transas.com>
7913
7914 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
7915
7916 2002-05-17 Andrey Volkov <avolkov@transas.com>
7917
7918 * h8300-tdep.c: Change literal regnums to REGNO.
7919
7920 2002-05-17 Jim Blandy <jimb@redhat.com>
7921
7922 * NEWS: Note addition of macro support.
7923
7924 Expand preprocessor macros in C expressions.
7925 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
7926 (scan_macro_expansion, scanning_macro_expansion,
7927 finished_macro_expansion): New function declarations.
7928 (expression_macro_lookup_func, expression_macro_lookup_baton): New
7929 variable declarations.
7930 * parser-defs.h (expression_context_pc): New declaration.
7931 * parse.c (expression_context_pc): New variable.
7932 (parse_exp_1): Set expression_context_pc, as well as
7933 expression_context_block.
7934 * c-exp.y (yylex): If we're not already reading the result of a
7935 macro expansion, try to macro-expand the next token. When we're
7936 done scanning a macro expansion, switch back to the mainline text.
7937 Commas and `if's in a macro's expansion don't terminate the input.
7938 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
7939 (macro_original_text, macro_expanded_text,
7940 expression_macro_lookup_func, expression_macro_lookup_baton): New
7941 variables.
7942 (scan_macro_expansion, scanning_macro_expansion,
7943 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
7944 c_preprocess_and_parse): New functions.
7945 (c_language_defn, cplus_language_defn, asm_language_defn): Call
7946 c_preprocess_and_parse, instead of c_parse.
7947 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
7948 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
7949
7950 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
7951
7952 * sh-tdep.c (gdb_print_insn_sh64): Delete.
7953 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
7954 (sh_gdbarch_init): Always use gdb_print_insn_sh.
7955
7956 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
7957
7958 * NEWS: Add section for multi-arched targets. Add v850 to that section.
7959
7960 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
7961
7962 * Makefile.in (sh_tdep_h): Define and use.
7963 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
7964 register enum): Move to...
7965 * * sh-tdep.h: ...here.
7966 * sh-tdep.c: Include sh-tdep.h.
7967 * sh3-rom.c: Likewise.
7968 * shnbsd-tdep.c: Likewise.
7969
7970 2002-05-16 Michael Snyder <msnyder@redhat.com>
7971
7972 * arm-tdep.c: Spelling fix in comment.
7973
7974 2002-05-16 Jim Blandy <jimb@redhat.com>
7975
7976 Add commands for manually expanding macros and showing their
7977 definitions.
7978 * macrocmd.c, macroscope.c, macroscope.h: New files.
7979 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
7980 (macroscope_h): New variable.
7981 (HFILES_NO_SRCDIR): Add macroscope.h.
7982 (COMMON_OBS): Add macrocmd.o, macroscope.o.
7983 (macroscope.o, macrocmd.o): New rules.
7984
7985 Teach the Dwarf 2 reader to read macro information.
7986 * dwarf2read.c: #include "macrotab.h".
7987 (dwarf_macinfo_buffer): New variable.
7988 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
7989 dwarf_macinfo_size.
7990 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
7991 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
7992 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
7993 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
7994 dwarf2_macro_spaces_in_definition): New complaints.
7995 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
7996 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
7997 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
7998 the partial symbol table.
7999 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8000 from what's recorded in the partial symbol table.
8001 (read_file_scope): If the compilation unit has a
8002 `DW_AT_macro_info' attribute, read its macro information.
8003 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8004
8005 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8006
8007 Fix PR gdb/546
8008 * ser-tcp.c: Don't include <netinet/udp.h>.
8009
8010 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8011
8012 * MAINTAINERS: Update my email address.
8013
8014 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8015
8016 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8017 include file of the same name.
8018
8019 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8020
8021 * configure.tgt: Mark v850 as multi-arched.
8022 * config/v850/tm-v850.h: Remove file.
8023 * config/v850/v850.mt: Eliminate TM_FILE.
8024
8025 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8026
8027 * v850-tdep.c: Full multi-arch.
8028 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8029 Define GDB_MULTI_ARCH to 2.
8030
8031 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8032
8033 * p-exp.y (current_type): New static variable.
8034 Carries the type of the expression at the position that is parsed.
8035 (push_current_type, pop_current_type): Two new functions. Used
8036 to store/restore current_type in expression on specific tokens.
8037 (search_field): New static variable. Set to one after parsing a point
8038 as at that point only a FIELDNAME token should be searched.
8039 (FIELDNAME): New token. After a point only a token belonging to
8040 current_type type definition is allowed.
8041 (all over token rules): reset and change current_type according
8042 to rules.
8043 (exp '[' rule): insert implicit array index field if
8044 exp is a pascal string type.
8045
8046 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8047
8048 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8049 frame info. Use frame_info's saved_regs instead of matching member
8050 in extra_frame_info throughout.
8051 (v850_frame_init_saved_regs): New function.
8052 (v850_init_extra_frame_info): Move most functionality into
8053 v850_frame_init_saved_regs().
8054 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8055 (v850_frame_find_saved_regs): Remove declaration.
8056 (FRAME_FIND_SAVED_REGS): Remove definition.
8057 (v850_frame_init_saved_regs): Add declaration.
8058 (FRAME_INIT_SAVED_REGS): Add definition.
8059
8060 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8061
8062 * v850-tdep.c: Begin multi-arch'ing v850.
8063 (v850_target_architecture_hook): Remove function.
8064 (v850_gdbarch_init): New function. Add code previously in
8065 v850_target_architecture_hook().
8066 (_initialize_v850_tdep): Don't set target_architecture_hook.
8067 Call register_gdbarch_init() instead.
8068
8069 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8070
8071 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8072 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8073 (fixup_class_method_type): Likewise.
8074
8075 2002-05-15 Jim Blandy <jimb@redhat.com>
8076
8077 Add macro structures to GDB's symbol tables. Nobody puts anything
8078 in them yet.
8079 * symtab.h (struct symtab): New member: `macro_table'.
8080 * buildsym.h (pending_macros): New global variable.
8081 * buildsym.c: #include "macrotab.h".
8082 (buildsym_init): Initialize `pending_macros'.
8083 (end_symtab): If we found macro information while reading a CU's
8084 debugging info, do build a symtab structure for it. Make the
8085 symtab point to the macro information, and clear the
8086 `pending_macros' pointer which held it while we were reading the
8087 debug info.
8088 (really_free_pendings): Free any pending macro table.
8089 * objfiles.h (struct objfile): New member: `macro_cache'.
8090 * objfiles.c (allocate_objfile): Set allocate and free functions
8091 for the macro cache's objstack.
8092 (free_objfile): Empty the macro cache's obstack.
8093 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8094 set new allocate and free functions for it.
8095 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8096 free functions for the macro cache's objstack. (Why is this
8097 function building its own objfile?)
8098 * symmisc.c (print_objfile_statistics): Print statistics on the
8099 macro bcache.
8100 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8101
8102 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8103
8104 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8105 (REGISTER_U_ADDR): Delete definition.
8106 (arm_register_u_addr): Delete declaration.
8107
8108 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8109
8110 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8111 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8112
8113 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8114
8115 * regcache.c (register_valid): Revise comments refering to "Not
8116 available" and "unavailable".
8117 * frame.c (frame_register_read): Ditto.
8118 * findvar.c (value_of_register): Ditto.
8119
8120 2002-05-15 Andrew Cagney <cagney@redhat.com>
8121
8122 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8123 (remote-sim.o): Update dependencies.
8124 (d10v-tdep.o): Specify dependencies.
8125 (sim_d10v_h): Define.
8126
8127 2002-05-14 Jim Blandy <jimb@redhat.com>
8128
8129 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8130 * macrotab.c (macro_lookup_inclusion, find_definition,
8131 new_macro_table): Same.
8132
8133 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8134 not `! strcmp ()'. This is a dubious improvement.
8135 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8136
8137 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8138 although it's not necessary, to avoid a warning.
8139
8140 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8141
8142 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8143 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8144 TYPE_INSTANCE_FLAGS.
8145 (struct main_type): New.
8146 (struct type): Move most members to struct main_type. Change
8147 cv_type and as_type to new type_chain member. Add instance_flags.
8148 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8149 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8150 (finish_cv_type): Remove prototype.
8151 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8152 Set TYPE_CHAIN.
8153 (alloc_type_instance): New function.
8154 (smash_type): New function.
8155 (make_pointer_type, make_reference_type, make_function_type)
8156 (smash_to_member_type, smash_to_method_type): Call smash_type.
8157 (make_qualified_type): New function.
8158 (make_type_with_address_space): Call make_qualified_type.
8159 (make_cv_type): Likewise.
8160 (finish_cv_type): Remove unnecessary function.
8161 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8162 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8163 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8164 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8165 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8166 * hpread.c (hpread_read_struct_type): Likewise.
8167 * stabsread.c (read_struct_type): Likewise.
8168
8169 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8170
8171 * configure.tgt: Add a catch all sh* target, for cases like
8172 sh[2,3,4]-elf and sh-hms.
8173
8174 2002-05-14 Keith Seitz <keiths@redhat.com>
8175
8176 * event-loop.c (create_file_handler): Don't do anything but
8177 update data when we are given a fd which we are already
8178 monitoring.
8179
8180 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8181
8182 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8183 (update_context): Use __func__ in warnings.
8184
8185 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8186
8187 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8188 and tcp_close to net_open and net_close.
8189 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8190 using UDP if requested. Don't try to disable Nagle on UDP
8191 sockets.
8192 * remote.c (remote_serial_open): New function. Warn about UDP.
8193 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8194
8195 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8196
8197 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8198
8199 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8200
8201 * configure.tgt: Remove sh-hms target.
8202 * MAINTAINERS: Don't list sh-hms as a separate target.
8203
8204 2002-05-13 Jim Blandy <jimb@redhat.com>
8205
8206 Add first preprocessor macro-expansion files.
8207 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8208 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8209 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8210 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8211 (COMMON_OBS): Add macrotab.o, macroexp.o.
8212 (macroexp.o, macrotab.o): New rules.
8213
8214 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8215
8216 * config/m88k/tm-m88k.h: Update copyright.
8217 (m88k_target_write_pc): Declare
8218 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8219 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8220 (SHIFT_INST_REGS): Update definition.
8221 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8222 using old definition of TARGET_WRITE_PC.
8223 * regcache.c (generic_target_write_pc): Delete code handling
8224 NNPC_REGNUM.
8225 * gdbarch.sh (NNPC_REGNUM): Delete.
8226 * gdbarch.h, gdbarch.c: Regenerate.
8227
8228 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8229
8230 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8231 builtin reg number.
8232
8233 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8234
8235 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8236 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8237 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8238 access macros.
8239 * c-typeprint.c (cp_type_print_method_args): Likewise.
8240 (c_type_print_args): Likewise.
8241 * d10v-tdep.c (d10v_push_arguments): Likewise.
8242 (d10v_extract_return_value): Likewise.
8243 * expprint.c (print_subexp): Likewise.
8244 * gdbtypes.c (lookup_primitive_typename): Likewise.
8245 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8246 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8247 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8248 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8249 (TYPE_VECTOR): Likewise.
8250 * hpread.c (hpread_read_struct_type)
8251 (fix_static_member_physnames, fixup_class_method_type)
8252 (hpread_type_lookup): Likewise.
8253 * mdebugread.c (parse_symbol, parse_type): Likewise.
8254 * p-lang.c (is_pascal_string_type): Likewise.
8255 * valops.c (hand_function_call): Likewise.
8256 * x86-64-tdep.c (classify_argument): Likewise.
8257
8258 * hpread.c (hpread_read_function_type)
8259 (hpread_read_doc_function_type): Call replace_type.
8260 * dstread.c (create_new_type): Delete.
8261 (decode_dst_structure, process_dst_function): Call alloc_type.
8262 Use type access macros.
8263
8264 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8265
8266 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8267 the're not supported by the current architecture.
8268 (i387_fill_fxsave): Likewise.
8269
8270 2002-05-12 Fred Fish <fnf@redhat.com>
8271
8272 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8273 sect_index_xxx members to index the first slot in section_offsets
8274 if all of the section_offsets are zero.
8275
8276 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8277
8278 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8279 checked in with last change.
8280
8281 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8282
8283 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8284 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8285 config.sub.
8286
8287 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8288
8289 * Makefile.in: Update dependencies.
8290
8291 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8292
8293 * language.c (local_hex_string_custom): Simplify. Do not depend
8294 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8295
8296 * memattr.c (mem_info_command): Replace calls to
8297 longest_local_hex_string and longest_local_hex_string_custom.
8298 * buildsym.c (make_blockvector): Ditto.
8299 * solib.c (info_sharedlibrary_command): Ditto.
8300 * tracepoint.c (tracepoints_info): Ditto.
8301 * symtab.c (print_msymbol_info): Ditto.
8302
8303 * language.c (local_hex_string): Delete.
8304 (local_hex_string_custom): Delete.
8305 (longest_local_hex_string): Rename to local_hex_string.
8306 (longest_local_hex_string_custom): Rename to
8307 local_hex_string_custom.
8308 * language.h (local_hex_string): Change parameter type to LONGEST.
8309 (local_hex_string_custom): Ditto.
8310 (longest_local_hex_string): Delete declaration.
8311 (longest_local_hex_string_custom): Ditto.
8312
8313 * solib.c: Update copyright.
8314 * memattr.c: Update copyright.
8315
8316 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8317
8318 * arch-utils.h (legacy_register_to_value): Declare.
8319 (legacy_value_to_register): Declare.
8320 (legacy_convert_register_p): Declare.
8321 * arch-utils.c (legacy_register_to_value): New function.
8322 (legacy_value_to_register): New function.
8323 (legacy_convert_register_p): New function.
8324
8325 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8326 (VALUE_TO_REGISTER): Define.
8327 (CONVERT_REGISTER_P): Define.
8328 * gdbarch.h, gdbarch.c: Regenerate.
8329
8330 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8331 VALUE_TO_REGISTER.
8332 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8333 CONVERT_REGISTER_P.
8334
8335 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8336 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8337
8338 * Makefile.in: Update dependencies for valops.c.
8339 * valops.c: Include "gdb_assert.h".
8340 (typecmp): Skip THIS parameter to methods.
8341 (find_method_list): Remove static_memfuncp argument,
8342 update callers. Check for stub methods.
8343 (find_value_oload_method_list): Don't set *static_memfuncp.
8344 (find_overload_match): Don't check for stub methods. Assert
8345 that methods are not stubbed. Handle static methods.
8346 (value_find_oload_method_list): Remove static_memfuncp argument.
8347 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8348 to the argument list for static stub methods.
8349 * value.h (value_find_oload_method_list): Update prototype.
8350
8351 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8352
8353 * arch-utils.h (generic_register_size): Declare.
8354 (generic_register_raw_size, generic_register_virtual_size): Delete
8355 declarations.
8356 * arch-utils.c (generic_register_raw_size): Delete.
8357 (generic_register_size): New function.
8358 (generic_register_virtual_size): Delete.
8359
8360 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8361 default generic_register_size.
8362 * gdbarch.h, gdbarch.c: Re-generate.
8363
8364 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8365 register_virtual_size.
8366 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8367 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8368
8369 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8370
8371 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8372 * gdbarch.h, gdbarch.c: Regenerate.
8373 * gnu-v3-abi.c: Update copyright.
8374 (vtable_address_point_offset): Update.
8375 (gnuv3_rtti_type): Update.
8376 (gnuv3_baseclass_offset): Update.
8377 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8378 (init_fetch_link_map_offsets): Update.
8379 * remote.c (get_remote_state): Update.
8380
8381 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8382
8383 * TODO: Remove value_headof/value_from_vtable_info comment.
8384 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8385 * values.c (value_headof, value_from_vtable_info): Delete.
8386 * value.h (value_from_vtable_info): Delete prototype.
8387
8388 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8389
8390 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8391 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8392 $(gdb_regex_h).
8393 (gdb_assert_h): Define.
8394 (gdb_wait_h): Define.
8395 (gdb_regex_h): Define.
8396
8397 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8398
8399 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8400 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8401
8402 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8403
8404 * nbsd-tdep.c: Fix comment.
8405
8406 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8407
8408 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8409 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8410 (nbsd-tdep.o): New dependency list.
8411 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8412 nbsd-tdep.h.
8413 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8414 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8415 * nbsd-tdep.c: New file.
8416 * nbsd-tdep.h: New file.
8417 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8418 nbsd-tdep.h.
8419 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8420 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8421 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8422 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8423
8424 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8425
8426 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8427 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8428 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8429 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8430 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8431 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8432
8433 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8434
8435 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8436 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8437 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8438 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8439 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8440 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8441 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8442
8443 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8444
8445 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8446 fetch_elfcore_registers to...
8447 * i386nbsd-tdep.c: ...here.
8448 (i386nbsd_use_struct_convention): Rename to...
8449 (i386nbsd_aout_use_struct_convention): ...this.
8450 (i386nbsd_supply_reg): New function.
8451 (i386nbsd_fill_reg): New function.
8452 (fetch_core_registers): Use i386nbsd_supply_reg.
8453 (fetch_elfcore_registers): Likewise.
8454 (_initialize_i386nbsd_tdep): New function.
8455 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8456 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8457 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8458 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8459 (i386nbsd_aout_use_struct_convention): ...this.
8460
8461 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8462
8463 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8464 (store_inferior_registers): Use shnbsd_fill_reg.
8465 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8466 sh_nbsd_supply_register): Collapse into...
8467 (shnbsd_supply_reg): ...this.
8468 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8469 (shnbsd_fill_reg): ...this.
8470 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8471 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8472 (fetch_core_registers): Use shnbsd_supply_reg.
8473 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8474 (sh_nbsd_core_fns): Rename to...
8475 (shnbsd_core_fns): ...this.
8476 (sh_nbsd_elfcore_fns): Rename to...
8477 (shnbsd_elfcore_fns): ...this.
8478 (sh_nbsd_init_abi): Rename to...
8479 (shnbsd_init_abi): ...this.
8480 (_initialize_sh_nbsd_tdep): Rename to...
8481 (_initialize_shnbsd_tdep): ...this.
8482 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8483 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8484 sh_nbsd_fill_register): Remove prototypes.
8485 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8486
8487 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8488
8489 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8490 (i387-nat.o): Delete dependency list.
8491 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8492 (x86-64-linux-nat.o): Likewise.
8493 * i387-nat.c: Delete file, moving contents to...
8494 * i387-tdep.c: ...here.
8495 * i387-nat.h: Rename...
8496 * i387-tdep.h: ...to this.
8497 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8498 * i386-linux-nat.c: Likewise.
8499 * i386bsd-nat.c: Likewise.
8500 * i386gnu-nat.c: Likewise.
8501 * i386nbsd-nat.c: Likewise.
8502 * i386v4-nat.c: Likewise.
8503 * x86-64-linux-nat.c: Likewise.
8504 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8505 * config/i386/go32.mh (NATDEPFILES): Likewise.
8506 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8507 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8508 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8509 * config/i386/linux.mh (NATDEPFILES): Likewise.
8510 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8511 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8512 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8513 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8514
8515 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8516
8517 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8518 (alphanbsd-nat.o): Remove dependency list.
8519 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8520 * alphanbsd-nat.c: Delete. Contents moved to...
8521 * alphanbsd-tdep.c: ...here.
8522 (_initialize_alphanbsd_tdep): Register core functions.
8523 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8524
8525 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8526
8527 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8528 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8529 (alphanbsd-nat.o): Likewise.
8530 (alphabsd-tdep.o): New dependency list.
8531 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8532 (fill_gregset): Use alphabsd_fill_reg.
8533 (supply_fpregset): Use alphabsd_supply_fpreg.
8534 (fill_fpregset): Use alphabsd_fill_fpreg.
8535 (fetch_inferior_registers): Use struct reg and struct fpreg
8536 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8537 and alphabsd_supply_fpreg.
8538 (store_inferior_registers): Use struct reg and struct fpreg
8539 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8540 and alphabsd_fill_fpreg.
8541 * alphabsd-tdep.c: New file.
8542 * alphabsd-tdep.h: New file.
8543 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8544 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8545 alphabsd_supply_fpreg.
8546 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8547 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8548
8549 2002-05-11 Eric Christopher <echristo@redhat.com>
8550
8551 * mips-tdep.c (mips_double_register_type): Fix thinko.
8552 (mips_single_register_type): Ditto.
8553 * MAINTAINERS: Add self.
8554
8555 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8556
8557 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8558 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8559 right thing on architectures with different endianness and/or
8560 integer sizes.
8561
8562 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8563
8564 From Christian Limpach <chris@Pin.LU>
8565 * configure.in: Change sed expression which comments out
8566 NATDEPFILES to also comment out continuation lines.
8567 * configure: Regenerate.
8568
8569 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8570
8571 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8572 big patch.
8573
8574 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8575
8576 * sh-tdep.c: Include correct file.
8577
8578 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8579
8580 New support for sh64-elf (sh5) target.
8581
8582 * configure.tgt: For sh64-elf target, default to sh-elf.
8583
8584 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8585 (struct gdbarch_tdep): Add new fields for new registers and ABI
8586 info.
8587
8588 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8589 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8590 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8591 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8592 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8593 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8594 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8595 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8596 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8597 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8598 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8599 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8600 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8601 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8602 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8603 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8604 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8605 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8606 sign_extend, sh64_nofp_frame_init_saved_regs,
8607 sh64_init_extra_frame_info, sh64_get_saved_register,
8608 sh64_extract_struct_value_address, sh64_pop_frame,
8609 sh64_push_arguments, sh64_extract_return_value,
8610 sh64_store_return_value, sh64_show_media_regs,
8611 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8612 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8613 sh_sh64_register_virtual_type,
8614 sh_sh64_register_convert_to_virtual,
8615 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8616 sh64_register_read, sh64_pseudo_register_write,
8617 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8618 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8619 sh64_do_pseudo_register, sh_compact_do_registers_info,
8620 sh64_do_registers_info, sh_gdbarch_init): New functions.
8621
8622 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8623
8624 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8625
8626 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8627
8628 * linespec.c (decode_line_1): Check for a double quote after
8629 a filename correctly.
8630
8631 2002-05-10 Jim Blandy <jimb@redhat.com>
8632
8633 Properly track the size of the current objfile's .debug_line section.
8634 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8635 (DWARF_LINE_SIZE): New macro.
8636 (dwarf2_build_psymtabs_hard): Record the line section's size in
8637 the partial symbol table.
8638 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8639 symbol table.
8640
8641 2002-05-10 Petr Sorfa <petrs@caldera.com>
8642
8643 * ia64-tdep.c: Handle breakpoints on L instruction type
8644 in MLX instruction bundle by moving the breakpoint to
8645 the third slot (X instruction type) as L holds only data.
8646
8647 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8648
8649 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8650 (process_one_symbol): Complain about discarding local symbols
8651 due to a misplaced N_LBRAC entry.
8652
8653 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8654
8655 From Daniel Berlin <dan@cgsoftware.com>
8656 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8657 decrease the depth we are at, in the case of templates.
8658
8659 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8660
8661 * mips-tdep.c (mips_float_register_type): New function.
8662 (mips_double_register_type): New function.
8663 (mips_print_register): Use them.
8664 (do_fp_register_row): Likewise.
8665
8666 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8667
8668 * signals/signals.c (signals): Remove conditional compilation around
8669 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8670 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8671
8672 2002-05-09 Michael Snyder <msnyder@redhat.com>
8673
8674 * remote-rdp.c (remote_rdp_can_run): Remove.
8675
8676 2002-05-09 Tom Tromey <tromey@redhat.com>
8677
8678 * jv-valprint.c (java_val_print): Handle `char' as a special case
8679 of TYPE_CODE_INT.
8680
8681 2002-05-09 Michael Snyder <msnyder@redhat.com>
8682
8683 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8684 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
8685 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
8686 str r(0123),[sp,#nn].
8687 (arm_skip_prologue): Ditto. Also make disassembly
8688 order-independent by placing it in a loop.
8689
8690 2002-05-06 Michael Snyder <msnyder@redhat.com>
8691
8692 * stabsread.c (read_type): Add recognition for new attribute:
8693 "@V;" means that an array type is actually a vector.
8694 This is analogous to the vector flag that's been added to dwarf2.
8695
8696 2002-05-09 Mark Kettenis <kettenis@gnu.org>
8697
8698 * i386-tdep.h (i386_abi): New enum.
8699 (struct gdbarch_tdep): Replace os_ident member with abi.
8700 (i386_gdbarch_register_os_abi): New prototype.
8701 * i386-tdep.c (i386_abi_names): New array.
8702 (process_note_abi_tag_sections): Removed.
8703 (process_note_sections): New function.
8704 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8705 (struct i386_abi_handler): New struct.
8706 (i386_abi_handler_list): New variable.
8707 (i386_gdbarch_register_os_abi): New function.
8708 (i386_gdbarch_init): Adapt for the changes given above.
8709
8710 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
8711
8712 * gregset.h: Say "GNU/Linux".
8713
8714 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
8715
8716 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8717 (build_gdbtypes): Build builtin_type_v2_float.
8718 (_initialize_gdbtypes): Register new builtin type.
8719
8720 2002-05-08 Andrew Cagney <ac131313@redhat.com>
8721
8722 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8723 (clear_gdbarch_swap): New function.
8724 (initialize_non_multiarch): Call.
8725 (gdbarch_update_p): Before calling init(), swap out and clear the
8726 existing architecture.
8727 * gdbarch.c: Regenerate.
8728
8729 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8730
8731 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8732 alphanbsd-tdep.c.
8733
8734 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8735
8736 * sh-nbsd-nat.c: Rename to...
8737 * shnbsd-nat.c: ...this.
8738 * sh-nbsd-tdep.c: Rename to...
8739 * shnbsd-tdep.c: ...this.
8740 * sh-nbsd-tdep.h: Rename to...
8741 * shnbsd-tdep.h: ...this.
8742 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8743 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8744
8745 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
8746
8747 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8748 concatenation for command help messages.
8749
8750 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8751
8752 * NEWS: Note new sh*-*-netbsdelf* configuration.
8753 * configure.host: Set gdb_host_cpu to sh for all sh*.
8754 (sh*-*-netbsdelf*): New host.
8755 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8756 (sh*-*-netbsdelf*): New target.
8757 * sh-nbsd-nat.c: New file.
8758 * sh-nbsd-tdep.c: New file.
8759 * sh-nbsd-tdep.h: New file.
8760 * config/sh/nbsd.mh: New file.
8761 * config/sh/nbsd.mt: New file.
8762 * config/sh/nm-nbsd.h: New file.
8763 * config/sh/tm-nbsd.h: New file.
8764
8765 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8766
8767 * sh-tdep.c (sh_osabi_names): Declare.
8768 (process_note_abi_tag_sections): New function.
8769 (get_elfosabi): Ditto.
8770 (sh_gdbarch_register_os_abi): Ditto.
8771 (sh_dump_tdep): Ditto.
8772 _initialize_sh_tdep): Use gdbarch_register to register
8773 sh_gdbarch_init and sh_dump_tdep.
8774 * config/sh/tm-sh.h (sh_osabi): Declare.
8775 (gdbarch_tdep): Add sh_osabi and osabi_name members.
8776
8777 2002-05-07 Andrew Cagney <ac131313@redhat.com>
8778
8779 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
8780 (thumb_scan_prologue): Ditto.
8781 (arm_find_callers_reg): Ditto.
8782 (arm_frame_chain): Ditto.
8783 (arm_init_extra_frame_info): Ditto.
8784 (arm_frame_saved_pc): Ditto.
8785 (arm_pop_frame): Ditto.
8786 (arm_push_return_address): New function.
8787 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
8788 call_dummy_location, call_dummy_breakpoint_offset_p,
8789 call_dummy_breakpoint_offset, call_dummy_p,
8790 call_dummy_stack_adjust_p, call_dummy_words,
8791 sizeof_call_dummy_words, call_dummy_start_offset,
8792 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
8793 call_dummy_address, push_return_address and push_dummy_frame for
8794 generic dummy frames.
8795
8796 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8797
8798 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
8799 size computation for alloca.
8800 (sh_fp_frame_init_saved_regs): Likewise.
8801
8802 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
8803
8804 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
8805 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
8806 * arm-tdep.c (arm_store_return_value): Use them.
8807 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
8808 * remote-rdp.c (remote_rdp_fetch_register): Use
8809 ARM_MAX_REGISTER_RAW_SIZE.
8810 (remote_rdp_store_register): Likewise.
8811
8812 2002-05-07 Michal Ludvig <mludvig@suse.cz>
8813
8814 * dwarf2cfi.c: Code cleanup, removed unused variables,
8815 added default labels to switch {} statements.
8816 * x86-64-tdep.c: Ditto.
8817 * x86-64-linux-nat.c: Ditto.
8818
8819 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
8820
8821 * solib.h: Protect against multiple inclusion.
8822
8823 2002-05-06 Jim Blandy <jimb@redhat.com>
8824
8825 Add first preprocessor macro-expansion files.
8826 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8827 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8828 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8829 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8830 (COMMON_OBS): Add macrotab.o, macroexp.o.
8831 (macroexp.o, macrotab.o): New rules.
8832
8833 Separate the job of reading the line number info statement program
8834 header (...expialidocious) out into its own function.
8835 * dwarf2read.c (struct line_head, struct filenames, struct
8836 directories): Replace with...
8837 (struct line_header): New structure, containing the full
8838 contents of the statement program header, including the
8839 include directory and file name tables.
8840 (read_file_scope): If we have line number info, instead of just
8841 calling dwarf_decode_lines to do all the work, call
8842 dwarf_decode_line_header first to get a `struct line_header'
8843 containing the data in the statement program header, and then
8844 pass that to dwarf_decode_lines, which will pick up where that
8845 left off. Be sure to clean up the `struct line_header' object.
8846 (dwarf_decode_line_header, free_line_header, add_include_dir,
8847 add_file_name): New functions.
8848 (dwarf_decode_lines): Move all the code to read the statement
8849 program header into dwarf_decode_line_header. Take the line
8850 header it built as the first argument, instead of the offset to
8851 the compilation unit's line number info. Use the new `struct
8852 line_header' type instead of the old structures. No need to do
8853 cleanups here now, since we don't allocate anything.
8854 (dwarf2_statement_list_fits_in_line_number_section,
8855 dwarf2_line_header_too_long): New complaints.
8856
8857 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
8858
8859 * gdbtypes.c (init_vector_type): New function.
8860 (build_builtin_type_vec128): Simplify the representation of SIMD
8861 registers.
8862 (build_gdbtypes): Initialize new builtin vector types.
8863 (_initialize_gdbtypes): Register new vector types with gdbarch.
8864 (builtin_type_v4_float, builtin_type_v4_int32,
8865 builtin_type_v8_int16, builtin_type_v16_int8,
8866 builtin_type_v2_int32, builtin_type_v4_int16,
8867 builtin_type_v8_int8): New (renamed) SIMD types.
8868
8869 2002-05-06 Mark Kettenis <kettenis@gnu.org>
8870
8871 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
8872 (i387_fill_fxsave): Likewise.
8873
8874 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
8875
8876 * alpha-tdep.c (alpha_extract_return_value): Don't use
8877 non-constant array size in prototype.
8878
8879 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8880
8881 From Brian Taylor <briant at model dot com>:
8882 * ui-out.c (ui_out_field_core_addr): Use the function
8883 longest_local_hex_string_custom'to format addresses > 32 bits
8884 wide.
8885
8886 * ui-out.c (ui_out_field_core_addr): Update comment.
8887
8888 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8889
8890 * stack.c (select_and_print_frame): Make static. Delete the
8891 parameter `level'.
8892 (func_command): Update call.
8893 (select_frame_command): Delete code computing the frame level.
8894 * frame.h (select_and_print_frame): Delete declaration.
8895
8896 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8897
8898 * sparc-tdep.c (sparc_get_saved_register): Comment why
8899 get_prev_frame call is safe.
8900
8901 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8902
8903 * frame.h (select_frame): Delete level parameter.
8904 * stack.c (select_frame): Update. Use frame_relative_level to
8905 obtain the frame's level.
8906 (select_and_print_frame): Update call.
8907 (select_frame_command): Ditto.
8908 (up_silently_base): Ditto.
8909 (down_silently_base): Ditto.
8910 * ocd.c (ocd_start_remote): Ditto.
8911 * remote-rdp.c (remote_rdp_open): Ditto.
8912 * remote-mips.c (mips_initialize): Ditto.
8913 (common_open): Ditto.
8914 * remote-e7000.c (e7000_start_remote): Ditto.
8915 * m3-nat.c (select_thread): Ditto.
8916 * hppa-tdep.c (child_get_current_exception_event): Ditto.
8917 (child_get_current_exception_event): Ditto.
8918 * varobj.c (varobj_create): Ditto.
8919 (varobj_update): Ditto.
8920 (c_value_of_root): Ditto.
8921 * tracepoint.c (finish_tfind_command): Ditto.
8922 * corelow.c (core_open): Ditto.
8923 * arch-utils.c (generic_prepare_to_proceed): Ditto.
8924 * thread.c (info_threads_command): Ditto.
8925 (switch_to_thread): Ditto.
8926 * infrun.c (normal_stop): Ditto.
8927 (restore_selected_frame): Ditto.
8928 (restore_inferior_status): Ditto.
8929 * breakpoint.c (insert_breakpoints): Ditto.
8930 (watchpoint_check): Ditto.
8931 (bpstat_stop_status): Ditto.
8932 (do_enable_breakpoint): Ditto.
8933 * blockframe.c (flush_cached_frames): Ditto.
8934 (reinit_frame_cache): Ditto.
8935
8936 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8937
8938 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
8939 maintainer.
8940
8941 2002-05-04 Jim Blandy <jimb@redhat.com>
8942
8943 * gdbtypes.c (replace_type): Doc fix.
8944
8945 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8946
8947 * valprint.c (strcat_longest): Delete commented out function.
8948 Update copyright.
8949
8950 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8951
8952 * MAINTAINERS: Mark a29k as deleted.
8953 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
8954 Move new configurations to the top.
8955 * configure.tgt: Remove a29k.
8956 * config/a29k/tm-vx29k.h: Delete.
8957 * config/a29k/vx29k.mt: Delete.
8958 * config/a29k/tm-a29k.h: Delete.
8959 * config/a29k/a29k-udi.mt: Delete.
8960 * config/a29k/a29k.mt: Delete.
8961 * a29k-tdep.c: Delete.
8962 * remote-udi.c: Delete.
8963 * remote-mm.c: Delete.
8964 * remote-eb.c: Delete.
8965 * remote-adapt.c: Delete.
8966 * Makefile.in: Remove obsolete code.
8967 * config/s390/s390x.mt: Ditto.
8968 * config/s390/s390.mt: Ditto.
8969 * config/sparc/sparclynx.mh: Ditto.
8970 * config/sparc/linux.mh: Ditto.
8971 * config/pa/hppaosf.mh: Ditto.
8972 * config/pa/hppabsd.mh: Ditto.
8973 * config/ns32k/nbsd.mt: Ditto.
8974 * config/mips/vr5000.mt: Ditto.
8975 * config/m68k/sun3os4.mh: Ditto.
8976 * config/m68k/nbsd.mt: Ditto.
8977 * config/m68k/m68klynx.mh: Ditto.
8978 * config/m32r/m32r.mt: Ditto.
8979 * config/i386/x86-64linux.mt: Ditto.
8980 * config/i386/nbsdelf.mt: Ditto.
8981 * config/i386/nbsd.mt: Ditto.
8982 * config/i386/i386lynx.mh: Ditto.
8983
8984 2002-05-04 Andrew Cagney <ac131313@redhat.com>
8985
8986 * target.c (debug_print_register): New function. Handle oversize
8987 registers.
8988 (debug_to_fetch_registers): Call.
8989 (debug_to_store_registers): Call.
8990
8991 2002-05-03 Jim Blandy <jimb@redhat.com>
8992
8993 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
8994 (read_type): Doc fix.
8995 * gdbtypes.c (replace_type): Doc fix.
8996
8997 * stabsread.c (multiply_defined_struct): New complaint.
8998 (read_struct_type): If the type we were passed isn't empty, or
8999 incomplete, don't read the new struct type into it; complain,
9000 and return the original type unchanged. Take a new `type_code'
9001 argument, which is the type code for the new type.
9002 (read_type): Rather than storing the type's type code here, pass
9003 it as an argument to read_struct_type, and let that take care of
9004 storing it. That way, we don't overwrite the original type code,
9005 so read_struct_type can use it to decide whether we're overwriting
9006 something we shouldn't.
9007 (complain_about_struct_wipeout): New function.
9008
9009 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9010
9011 * gdbarch.sh: Assert that gdbarch is non-NULL.
9012 * gdbarch.c: Regenerate.
9013
9014 2002-05-03 Jason Merrill <jason@redhat.com>
9015
9016 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9017 and return NULL.
9018
9019 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9020
9021 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9022 (x86_64_dwarf2gdb_regno_map_length),
9023 (x86_64_dwarf2_reg_to_regnum): Added.
9024 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9025 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9026 (_initialize_x86_64_tdep): Synced with the change above.
9027 (x86_64_skip_prologue): Reformulated message.
9028
9029 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9030
9031 * f-exp.y: Also use new prev_lexptr variable
9032 to improve error reporting. Based on Michael Snyder
9033 2002-04-24 dated patch to c-exp.y.
9034 * jv-exp.y: Likewise.
9035 * m2-exp.y: Likewise.
9036
9037 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9038
9039 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9040 we are dealing with vectors.
9041
9042 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9043
9044 * config/m68k/tm-nbsd.h: Obvious fix,
9045 correct machine name.
9046
9047 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9048
9049 * p-typeprint.c (pascal_type_print_base): Add support
9050 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9051
9052 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9053
9054 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9055 for fondamental pascal 'char' type.
9056
9057 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9058
9059 * p-lang.h (is_pascal_string_type): Declaration changed,
9060 new sixth argument of type char ** added.
9061 * p-lang.c (is_pascal_string_type): Implementation
9062 changed. Args length_pos, length_size, string_pos, char_size
9063 can now be NULL. New argument arrayname set to the field
9064 name of the char array. Return value set to char array
9065 field index plus one.
9066 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9067 is_pascal_string_type function.
9068
9069 2002-05-02 Andrew Cagney <cagney@redhat.com>
9070
9071 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9072 <cagney@redhat.com> change.
9073 * gdbarch.c: Regenerate.
9074
9075 2002-05-02 Andrew Cagney <cagney@redhat.com>
9076
9077 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9078 before probing for a new one. Detect errorenous gdbarch_init
9079 functions.
9080 * gdbarch.c: Regenerate.
9081
9082 2002-05-01 Andrew Cagney <cagney@redhat.com>
9083
9084 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9085 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9086 * config/v850/tm-v850.h: Ditto. Update copyright.
9087
9088 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9089
9090 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9091 current_gdbarch.
9092
9093 2002-04-30 Michael Snyder <msnyder@redhat.com>
9094
9095 * arm-tdep.c: Whitespace clean-ups.
9096 (arm_skip_prologue): Fix thinko; two lines
9097 should have been removed as part of 4/24 change.
9098
9099 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9100
9101 * rs6000-tdep.c: Added comment describing how fpscr register
9102 numbers were chosen.
9103
9104 2002-04-30 Michael Snyder <msnyder@redhat.com>
9105
9106 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9107
9108 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9109
9110 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9111 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9112 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9113
9114 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9115
9116 From Louis Hamilton <hamilton@redhat.com>:
9117 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9118 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9119 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9120 not bfd-private xcoff data, to determine wordsize.
9121 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9122
9123 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9124
9125 GDB 5.2 released from 5.2 branch.
9126
9127 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9128
9129 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9130 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9131 (x86_64_register_info_table): Added comments with register numbers.
9132
9133 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9134
9135 * rs6000-tdep.c (rs6000_extract_return_value,
9136 rs6000_store_return_value): Handle returning vectors.
9137 (rs6000_gdbarch_init): Use
9138 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9139 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9140 New function.
9141 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9142 vectors.
9143 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9144 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9145
9146 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9147
9148 * hpread.c (hpread_psymtab_to_symtab_1,
9149 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9150 with fprintf_unfiltered (gdb_stderr,...).
9151
9152 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9153
9154 * remote-array.c (printf_monitor, write_monitor,
9155 array_insert_breakpoint, array_remove_breakpoint ):
9156 Replace fprintf (stderr,...
9157 with fprintf_unfiltered (gdb_stderr,....
9158 * remote-es.c: Likewise.
9159 * remote-os9k.c: Likewise.
9160 * remote-st.c: Likewise.
9161
9162 2002-04-28 Andreas Schwab <schwab@suse.de>
9163
9164 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9165 linux-proc.o and gcore.o.
9166
9167 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9168
9169 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9170 code without frame pointers.
9171
9172 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9173
9174 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9175 ON_STACK is needed.
9176
9177 2002-04-26 Ben Elliston <bje@redhat.com>
9178
9179 * target.c (do_xfer_memory): Correct reference to the new option
9180 "trust-readonly-sections".
9181
9182 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9183
9184 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9185 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9186 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9187 vectors.
9188 (read_array_type): Record the fact that this array type is really a
9189 vector (i.e. are passed in by value).
9190
9191 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9192
9193 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9194 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9195 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9196 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9197 * alpha-linux-tdep.c: Include frame.h.
9198 (alpha_linux_sigcontext_addr): New function.
9199 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9200 alpha_linux_sigcontext_addr.
9201 * alpha-osf1-tdep.c: Include gdbcore.h.
9202 (alpha_osf1_sigcontext_addr): New function.
9203 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9204 alpha_osf1_sigcontext_addr.
9205 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9206 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9207
9208 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9209
9210 * stack.c (selected_frame_level):
9211 (select_frame): Do not set selected_frame_level.
9212 * frame.h (selected_frame_level): Delete declaration.
9213
9214 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9215
9216 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9217 convert_from_func_ptr-addr when AIX / PowerOpen.
9218
9219 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9220
9221 * valops.c (hand_function_call): Call
9222 generic_save_call_dummy_addr.
9223 * frame.h (generic_save_call_dummy_addr): Declare.
9224 * blockframe.c (struct dummy_frame): Add fields call_lo and
9225 call_hi.
9226 (generic_find_dummy_frame): Check for PC in range call_lo to
9227 call_hi instead of entry_point_address.
9228 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9229 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9230 (generic_save_call_dummy_addr): New function.
9231
9232 2002-04-24 David S. Miller <davem@redhat.com>
9233
9234 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9235 sparc_skip_prologue.
9236 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9237 information to find prologue when possible.
9238 (sparc_prologue_frameless_p): Call examine_prologue directly.
9239 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9240 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9241 second argument.
9242 (SKIP_PROLOGUE): Likewise.
9243
9244 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9245
9246 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9247 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9248 indicate that the condition it was testing is always true.
9249 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9250 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9251 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9252
9253 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9254
9255 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9256 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9257 tdep->jb_pc and tdep->jb_elt_size.
9258 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9259 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9260 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9261 * alpha-nat.c (get_longjmp_target): Remove.
9262 (JB_ELEMENT_SIZE): Ditto.
9263 (JB_PC): Ditto.
9264 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9265 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9266 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9267 to alpha_get_longjmp_target.
9268 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9269 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9270 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9271
9272 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9273
9274 * README: Update to GDB 5.2.
9275
9276 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9277
9278 * gdbarch.sh (LC_ALL): Set to `c'.
9279
9280 2002-04-25 Theodore A. Roth <troth@verinet.com>
9281
9282 * avr-tdep.c: Ran through gdb_indent.sh.
9283
9284 2002-04-25 Theodore A. Roth <troth@verinet.com>
9285
9286 * MAINTAINERS: Add myself as AVR maintainer.
9287 * NEWS: Note new target avr.
9288
9289 2002-04-25 Theodore A. Roth <troth@verinet.com>
9290
9291 * Makefile.in: Add support for AVR target.
9292 * configure.tgt: Add support for AVR target.
9293 * avr-tdep.c: New file
9294 * config/avr/avr.mt: New file.
9295
9296 2002-04-25 Theodore A. Roth <troth@verinet.com>
9297
9298 * MAINTAINERS: Add myself to write-after-approval.
9299
9300 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9301
9302 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9303 with fprintf_unfiltered (gdb_stderr,....
9304
9305 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9306
9307 Fix PR gdb/508.
9308 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9309
9310 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9311
9312 * p-exp.y: Also use new prev_lexptr variable
9313 to improve error reporting. Based on Michael Snyder
9314 2002-04-24 dated patch to c-exp.y.
9315
9316 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9317
9318 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9319 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9320 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9321 to 0.
9322 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9323 and struct value.
9324 (FUNCTION_START_OFFSET): Remove.
9325 (BREAKPOINT): Ditto.
9326
9327 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9328
9329 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9330 * NEWS: Ditto.
9331
9332 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9333
9334 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9335 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9336 alpha_linux_pc_in_sigtramp.
9337 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9338 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9339 alpha_osf1_pc_in_sigtramp.
9340 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9341 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9342 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9343 alphafbsd_pc_in_sigtramp.
9344 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9345 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9346 alphanbsd_pc_in_sigtramp.
9347 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9348 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9349
9350 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9351
9352 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9353
9354 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9355
9356 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9357 alphanbsd-tdep.c.
9358 (alphanbsd-nat.o): New dependency list.
9359 (alphanbsd-tdep.o): Ditto.
9360 * NEWS: Note new native NetBSD/alpha configuration.
9361 * alphanbsd-nat.c: New file.
9362 * alphanbsd-tdep.c: Ditto.
9363 * configure.host (alpha*-*-netbsd*): New host.
9364 * configure.tgt (alpha*-*-netbsd*): New target.
9365 * config/alpha/nbsd.mh: New file.
9366 * config/alpha/nbsd.mt: Ditto.
9367 * config/alpha/nm-nbsd.h: Ditto.
9368 * config/alpha/tm-nbsd.h: Ditto.
9369
9370 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9371
9372 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9373 (alpha-osf1-tdep.o): New dependency list.
9374 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9375 and skip_sigtramp_frame members.
9376 * alpha-linux-tdep.c: Include gdbcore.h.
9377 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9378 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9379 * alpha-osf1-tdep.c: New file.
9380 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9381 alpha-osf1-dep.c.
9382 (alpha_frame_past_sigtramp_frame): New function.
9383 (alpha_dynamic_sigtramp_offset): Ditto.
9384 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9385 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9386 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9387 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9388 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9389 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9390 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9391 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9392 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9393 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9394 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9395 to find_solib_trampoline_target.
9396 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9397 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9398 (SKIP_TRAMPOLINE_CODE): Remove.
9399 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9400 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9401 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9402 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9403 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9404 (PROC_SIGTRAMP_MAGIC): Ditto.
9405 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9406 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9407 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9408 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9409 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9410
9411 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9412
9413 * NEWS: Note that Alpha targets are now multi-arch.
9414
9415 2002-04-24 Michael Snyder <msnyder@redhat.com>
9416
9417 * parser-defs.h (prev_lexptr): New external variable.
9418 * parse.c (parse_exp_1): Set prev_lexptr to null before
9419 calling the language-specific parser.
9420 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9421 (yyerror): Use prev_lexptr in error reporting.
9422
9423 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9424
9425 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9426 * gregset.h: If FILL_FPXREGSET is defined, provide
9427 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9428 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9429 is defined, call fill_fpxregset.
9430
9431 2002-04-24 Roland McGrath <roland@frob.com>
9432
9433 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9434 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9435 (supply_gregset, supply_fpregset): New functions.
9436
9437 * gnu-nat.c (gnu_find_memory_regions): New function.
9438 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9439 (gnu_xfer_memory): Add a cast.
9440
9441 2002-04-24 Michael Snyder <msnyder@redhat.com>
9442
9443 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9444 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9445 of argument regs ("str r(0123), [r11, #-nn"]).
9446 (arm_skip_prologue): Better handling for frameless functions.
9447 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9448 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9449
9450 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9451
9452 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9453 NUM_PSEUDO_REGS can be used.
9454
9455 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9456
9457 * arch-utils.h: Update copyright.
9458
9459 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9460 * gdbarch.h, gdbarch.c: Re-generate.
9461
9462 * inferior.h (IN_SIGTRAMP): Delete definition.
9463 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9464 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9465
9466 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9467 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9468 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9469 (find_proc_framesize): Ditto.
9470 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9471 (alpha_init_extra_frame_info): Ditto.
9472 * infrun.c (handle_inferior_event): Ditto.
9473 (handle_inferior_event): Ditto.
9474 (check_sigtramp2): Ditto.
9475 * blockframe.c (create_new_frame): Ditto.
9476 (get_prev_frame): Ditto.
9477 * ppc-linux-tdep.c: Update comments.
9478 * i386-linux-tdep.c: Update comments.
9479 * breakpoint.c (bpstat_what): Update comment.
9480
9481 2002-04-24 David S. Miller <davem@redhat.com>
9482
9483 * i960-tdep.c (register_in_window_p): New function.
9484 (i960_find_saved_register): Use it instead of
9485 REGISTER_IN_WINDOW_P.
9486 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9487
9488 * symtab.h (find_stab_function_addr): Kill extern.
9489 * minsyms.c (find_stab_function_addr): Remove from here...
9490 * dbxread.c: ... to here, and mark it static.
9491
9492 2002-04-20 David S. Miller <davem@redhat.com>
9493
9494 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9495 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9496
9497 2002-04-21 David S. Miller <davem@redhat.com>
9498
9499 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9500 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9501 (vx_write_register): Likewise.
9502
9503 2002-04-23 J. Brobecker <brobecker@gnat.com>
9504
9505 * source.c (is_regular_file): New function.
9506 (openp): Check wether file to open is a regular file
9507 to avoid opening directories.
9508
9509 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9510
9511 * findvar.c (extract_signed_integer): Cast printf argument
9512 to suppress format warning.
9513 (extract_unsigned_integer): Likewise.
9514 * infcmd.c (registers_info): Likewise.
9515 * top.c (get_prompt_1): Likewise.
9516 * valops.c (value_assign): Likewise.
9517 * valprint.c (print_decimal): Likewise.
9518
9519 2002-04-22 H.J. Lu (hjl@gnu.org)
9520
9521 * c-exp.y (typebase): Support
9522
9523 [long|long long|short] [signed|unsigned] [int|]
9524
9525 and
9526
9527 signed [long|long long|short] int
9528
9529 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9530
9531 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9532 and vax-tdep.h.
9533 * vax-tdep.h: New file.
9534 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9535 Make several routines static.
9536 (vax_get_saved_register): New function.
9537 (vax_gdbarch_init): New function.
9538 (_initialize_vax_tdep): Register vax_gdbarch_init.
9539 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9540 Remove macros now under the control of gdbarch.
9541
9542 2002-04-22 Michael Snyder <msnyder@redhat.com>
9543
9544 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9545 Some whitespace and coding standards tweaks.
9546
9547 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9548
9549 * vax-tdep.c: Include regcache.h.
9550 (vax_call_dummy_words): New.
9551 (sizeof_vax_call_dummy_words): New.
9552 (vax_fix_call_dummy): New function.
9553 (vax_saved_pc_after_call): Ditto.
9554 * config/vax/tm-vax.h: Don't include regcache.h.
9555 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9556 (CALL_DUMMY): Remove.
9557 (CALL_DUMMY_WORDS): Define.
9558 (SIZEOF_CALL_DUMMY_WORDS): Define.
9559 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9560
9561 2002-04-18 Michael Snyder <msnyder@redhat.com>
9562
9563 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9564
9565 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9566
9567 * vax-tdep.c (vax_frame_chain): New function.
9568 (vax_push_dummy_frame): Ditto.
9569 (vax_pop_frame): Ditto.
9570 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9571 (FRAMELESS_FUNCTION_INVOCATION): Use
9572 generic_frameless_function_invocation_not.
9573 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9574 (POP_FRAME): Use vax_pop_frame.
9575
9576 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9577
9578 * vax-tdep.c (vax_store_struct_return): New function.
9579 (vax_extract_return_value): Ditto.
9580 (vax_store_return_value): Ditto.
9581 (vax_extract_struct_value_address): Ditto.
9582 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9583 vax_store_struct_return.
9584 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9585 (STORE_RETURN_VALUE): Use vax_store_return_value.
9586 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9587
9588 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9589
9590 * vax-tdep.c (vax_frame_saved_pc): New function.
9591 (vax_frame_args_address_correct): Ditto.
9592 (vax_frame_args_address): Ditto.
9593 (vax_frame_locals_address): Ditto.
9594 (vax_frame_num_args): Move code to be in proximity to
9595 other frame-related functions.
9596 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9597 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9598 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9599 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9600 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9601
9602 2002-04-22 H.J. Lu (hjl@gnu.org)
9603
9604 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9605 includedir.
9606
9607 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9608
9609 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9610 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9611 (FRAME_INIT_SAVED_REGS): New macro.
9612
9613 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9614
9615 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9616
9617 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9618
9619 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9620 where needed.
9621 (fetch_osf_core_registers): Likewise.
9622 (supply_gregset): Likewise.
9623
9624 2002-04-22 J. Brobecker <brobecker@gnat.com>
9625
9626 * symfile.h (get_section_index): Define.
9627 * symfile.c (get_section_index): New function.
9628 * mdebugread.c (SC_IS_SBSS): New macro.
9629 (SC_IS_BSS): Return true for the scBss storage class only, as
9630 the scSBss storage class refers to the .sbss section.
9631 (parse_partial_symbols): Discard the symbols which associated
9632 section does not exist.
9633 Make sure to use the .sbss section index for symbols which
9634 storage class is scBss, rather than using the .bss section index.
9635
9636 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9637
9638 * vax-tdep.c: Update copyright years.
9639 (vax_register_name): New function.
9640 (vax_register_byte): Ditto.
9641 (vax_register_raw_size): Ditto.
9642 (vax_register_virtual_size): Ditto.
9643 (vax_register_virtual_type): Ditto.
9644 * config/vax/tm-vax.h: Update copyright years.
9645 (REGISTER_NAMES): Remove.
9646 (REGISTER_NAME): Define.
9647 (REGISTER_BYTE): Use vax_register_byte.
9648 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9649 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9650 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9651
9652 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9653
9654 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9655 declaration
9656 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9657
9658 2002-04-21 David S. Miller <davem@redhat.com>
9659
9660 * arch-utils.c (generic_prologue_frameless_p): Kill
9661 SKIP_PROLOGUE_FRAMELESS_P code.
9662 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9663 references.
9664 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9665 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9666 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9667 references.
9668 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9669 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9670 (sparc_gdbarch_init): Pass it to
9671 set_gdbarch_prologue_frameless_p.
9672
9673 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9674
9675 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9676 (alphabsd-nat.o): New dependency list.
9677
9678 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9679
9680 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9681 alphafbsd-tdep.c.
9682 (alpha-linux-tdep.o): New dependency list.
9683 (alphafbsd-tdep.o): Likewise.
9684
9685 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9686
9687 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9688 to here...
9689 * alpha-tdep.c: ...from here.
9690 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9691
9692 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9693
9694 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9695 prototype from here...
9696 * alpha-tdep.h: ...to here.
9697
9698 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9699
9700 * frame.h (selected_frame_level): Document as deprecated.
9701 (frame_relative_level): Declare.
9702 * stack.c (frame_relative_level): New function.
9703 (selected_frame_level): Document as deprecated.
9704 (select_frame): Do not set the selected_frame_level.
9705
9706 * stack.c (frame_info, record_selected_frame): Update.
9707 (frame_command, current_frame_command): Update.
9708 (up_silently_base, up_command, down_silently_base): Update.
9709 (down_command): Update.
9710 * inflow.c (kill_command): Update.
9711 * tracepoint.c (finish_tfind_command): Update.
9712 * corelow.c (core_open): Update.
9713 * thread.c (info_threads_command): Update.
9714 (do_captured_thread_select): Update.
9715 * infcmd.c (finish_command): Update.
9716 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9717
9718 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9719
9720 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9721
9722 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9723
9724 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9725 type const.
9726
9727 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9728
9729 * alphafbsd-tdep.c: Update copyright years. Include
9730 alpha-tdep.h.
9731 (alphafbsd_use_struct_convention): Make static.
9732 (alphafbsd_init_abi): New function.
9733 (_initialize_alphafbsd_tdep): New function.
9734 * config/alpha/tm-fbsd.h: Update copyright years.
9735 (USE_STRUCT_CONVENTION): Remove.
9736
9737 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9738
9739 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9740 an Alpha ABI variant.
9741 (alpha_abi_handler_list): Declare.
9742 (alpha_gdbarch_register_os_abi): New function.
9743 (alpha_gdbarch_init): Give registered ABI variant handlers a
9744 chance to tweak the gdbarch once we have set up defaults.
9745 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9746
9747 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9748
9749 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9750 to standard_coerce_float_to_double.
9751 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9752
9753 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9754
9755 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9756 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9757 from gdbarch_tdep rather than a constant.
9758 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9759 the default text address for all Alpha Unix ABIs.
9760 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9761 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9762
9763 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9764
9765 * alpha-tdep.h: New file. Includes several Alpha target constants
9766 taken from...
9767 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9768 let gdbarch deal with.
9769 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
9770 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
9771 to dependency list.
9772 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
9773 Alpha target register names.
9774 * alphabsd-nat.c: Likewise.
9775 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
9776 Alpha target register names. Make serveral routines static.
9777 (alpha_get_saved_register): New function.
9778 (alpha_abi_names): New.
9779 (process_note_abi_tag_sections): New function.
9780 (get_elfosabi): New function.
9781 (alpha_gdbarch_init): New function.
9782 (alpha_dump_tdep): New function.
9783 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
9784
9785 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9786
9787 * frame.c (find_saved_register): Delete #ifdef
9788 HAVE_REGISTER_WINDOWS code.
9789 * config/sparc/tm-sparc.h: Update comments.
9790 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
9791
9792 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9793
9794 * i960-tdep.c (i960_find_saved_register): New function.
9795 (i960_get_saved_register): New function.
9796 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
9797 (i960_get_saved_register): Declare.
9798 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
9799
9800 2002-04-20 David S. Miller <davem@redhat.com>
9801
9802 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
9803
9804 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9805
9806 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
9807 instead of NUM_PSEUDO_REGS.
9808
9809 2002-04-20 David S. Miller <davem@redhat.com>
9810
9811 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
9812 GDB_MULTI_ARCH_PARTIAL
9813 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
9814 define, let tm-sp64.h do it.
9815
9816 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
9817
9818 * frame.c (find_saved_register): Avoid a NULL pointer
9819 dereference and actually walk the frame list.
9820
9821 2002-04-20 Andrew Cagney <ac131313@redhat.com>
9822
9823 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
9824 sorted in most most-recent-used order. Document.
9825 * gdbarch.h, gdbarch.c: Regenerate.
9826
9827 2002-04-19 Andrew Cagney <ac131313@redhat.com>
9828
9829 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
9830 instead of ->prev.
9831 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
9832 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
9833 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
9834 instead of ->prev.
9835
9836 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
9837
9838 Fix PR gdb/471.
9839 * gdbtypes.c (init_simd_type): Rewrite using new functions.
9840 (build_builtin_type_vec128): Ditto.
9841 (append_composite_type_field): Fix calculation of type length in
9842 union case.
9843
9844 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
9845
9846 * config/djgpp/README: Update.
9847
9848 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
9849 compiler warnings.
9850
9851 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
9852
9853 * alpha-tdep.c (setup_arbitrary_frame): Rename...
9854 (alpha_setup_arbitrary_frame): ...to this.
9855 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
9856 for alpha_setup_arbitrary_frame.
9857
9858 2002-04-18 Andrew Cagney <cagney@redhat.com>
9859
9860 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
9861 * gdbarch.h, gdbarch.c: Regenerate.
9862
9863 * defs.h (breakpoint_from_pc_fn): Delete type definition.
9864 * target.h (memory_breakpoint_from_pc): Update declaration.
9865 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
9866
9867 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
9868 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
9869 * mem-break.c (memory_breakpoint_from_pc): Ditto.
9870 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
9871 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
9872 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
9873 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
9874 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
9875 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
9876 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
9877 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
9878 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
9879
9880 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
9881 const pointer.
9882 * monitor.c (monitor_insert_breakpoint): Ditto.
9883 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
9884
9885 * config/mcore/tm-mcore.h: Update copyright.
9886 * mem-break.c: Ditto.
9887 * xstormy16-tdep.c: Ditto.
9888
9889 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
9890
9891 * p-exp.y: Add precedence rule for '^' token.
9892 This removes the shift/reduce conflicts.
9893 Remove the comment concerning these shift/reduce conflicts.
9894
9895 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
9896
9897 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
9898 (registers_powerpc_nofp): New register set for processors
9899 without floating point unit.
9900
9901 2002-04-18 David S. Miller <davem@redhat.com>
9902
9903 * MAINTAINERS: Add myself to write-after-approval.
9904
9905 2002-04-17 Michael Snyder <msnyder@redhat.com>
9906
9907 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
9908
9909 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9910
9911 * rs6000-tdep.c (frame_initial_stack_address): Use
9912 frame_register_read to read the alloca_reg.
9913
9914 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9915
9916 * frame.c (find_saved_register): Find saved registers in the next
9917 not prev frame.
9918 Fix PR gdb/365.
9919
9920 2002-04-17 Andrew Cagney <ac131313@redhat.com>
9921
9922 * gdbarch.sh (LANG): Set to ``c''.
9923
9924 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9925
9926 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
9927
9928 2002-04-15 Andrew Cagney <ac131313@redhat.com>
9929
9930 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
9931 Update copyright.
9932
9933 * hpread.c (hpread_get_lntt): Add declaration.
9934 Also fix PR gdb/391.
9935
9936 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9937
9938 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
9939 * aclocal.m4, configure: Re-generate.
9940 Fix PR gdb/391.
9941
9942 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9943
9944 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
9945 instead of tm_print_insn.
9946
9947 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
9948
9949 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
9950
9951 2002-04-14 Andrew Cagney <ac131313@redhat.com>
9952
9953 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
9954 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
9955 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
9956
9957 2002-04-12 Don Howard <dhoward@redhat.com>
9958
9959 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
9960 max_user_call_depth.
9961 (init_cmd_lists): Initialize the new value;
9962 * cli/cli-script.c (execute_user_command): Limit the call depth of
9963 user defined commands. This avoids a core-dump when user commands
9964 are infinitly recursive.
9965
9966 2002-04-12 Kevin Buettner <kevinb@redhat.com>
9967
9968 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
9969 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
9970 from tdep struct instead of DEFAULT_LR_SAVE.
9971 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
9972 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
9973 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
9974
9975 2002-04-12 Michael Snyder <msnyder@redhat.com>
9976
9977 * Remote.c: Spelling fix.
9978 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
9979 If no symbol found for "sbrk", try "_sbrk".
9980 (make_output_phdrs): Use bfd_section_name.
9981 (gcore_copy_callback): Use bfd_section_name.
9982 * eval.c: Indentation fix-ups.
9983 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
9984 in case it gets applied to an address that is already
9985 in the instruction space.
9986 * cli/cli-decode.c (help_list): Allow long lines to wrap.
9987 * symfile.c: Fix indentation, long lines.
9988 * source.c: White space fix-up.
9989
9990 2002-04-12 Andrew Cagney <cagney@redhat.com>
9991
9992 * defs.h (read_relative_register_raw_bytes): Delete declaration.
9993 * frame.c (frame_register_read): New function. Return non-zero on
9994 success.
9995 (read_relative_register_raw_bytes_for_frame): Delete.
9996 (read_relative_register_raw_bytes): Delete.
9997 * frame.h (frame_register_read): Declare.
9998 * d30v-tdep.c: Update Copyright. Use frame_register_read.
9999 * sh-tdep.c: Ditto.
10000 * infcmd.c (do_registers_info): Ditto.
10001 * hppa-tdep.c: Ditto.
10002 * rs6000-tdep.c: Ditto.
10003 * h8500-tdep.c: Ditto.
10004 * mips-tdep.c: Ditto.
10005 * h8300-tdep.c: Ditto.
10006 * z8k-tdep.c: Ditto.
10007
10008 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10009
10010 From Jimi X <jimix@watson.ibm.com>:
10011 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10012 64-bit SysV ABI.
10013
10014 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10015
10016 From Jimi X <jimix@watson.ibm.com>:
10017 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10018 bfd info.
10019
10020 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10021
10022 From Jimi X <jimix@watson.ibm.com>:
10023 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10024 register sets for these processor variants.
10025
10026 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10027
10028 * regformats/reg-ppc.dat: Support FPSCR.
10029
10030 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10031
10032 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10033 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10034 Add fpscr as an invalid/unfetchable register.
10035 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10036 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10037 (fill_fpregset): Add support for register fpscr.
10038 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10039 (fill_gregset): Account for the fact that register ``mq'' might
10040 not exist.
10041 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10042 (registers_power): Add fpscr to register set at slot 71.
10043 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10044 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10045
10046 2002-04-11 Michael Snyder <msnyder@redhat.com>
10047
10048 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10049 * configure: Regenerate.
10050 * config.in: Regenerate.
10051 * acconfig.h: Add define for _SYSCALL32.
10052 * core-sol2.c: Remove #define _SYSCALL32.
10053 * solib-legacy.c: Remove #define _SYSCALL32.
10054
10055 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10056
10057 * stack.c (select_frame): Cleanup internal error message, do not
10058 use %p.
10059
10060 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10061
10062 * stack.c (select_frame): Check that selected_frame and the
10063 specified level are as expected.
10064 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10065 Update copyright.
10066 * frame.h (struct frame_info): Add field `level'. Update
10067 copyright.
10068 Work-in-progress PR gdb/464.
10069
10070 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10071
10072 * maint.c (maint_print_section_info): Rename print_section_info.
10073 (print_bfd_section_info, print_objfile_section_info): Update.
10074 * inferior.h (struct gdbarch): Add opaque declaration.
10075 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10076 * gdbarch.h: Regenerate.
10077
10078 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10079
10080 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10081 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10082 (kernel_u_size): Added.
10083 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10084 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10085
10086 2002-04-04 Jim Ingham <jingham@apple.com>
10087
10088 * valarith.c (find_size_for_pointer_math): New function, either returns
10089 the size for a pointer's target, returns 1 for void *, or errors for
10090 incomplete types.
10091 (value_add, value_sub): use find_size_for_pointer_math.
10092
10093 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10094
10095 * linux-low.c (linux_look_up_symbols): New hook.
10096 (linux_target_ops): Add linux_look_up_symbols.
10097 * remote-utils.c (decode_address): New function.
10098 (look_up_one_symbol): New function.
10099 * server.c (handle_query): Call target look_up_symbols hook.
10100 * server.h (look_up_one_symbol): Add prototype.
10101 * target.h (struct target_ops): Add look_up_symbols hook.
10102
10103 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10104
10105 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10106 override FP_REGNUM with frame->fp. Update copyright.
10107 * parse.c (num_std_regs, std_regs): Delete.
10108 (target_map_name_to_register): Do not search std_regs. Update
10109 function description.
10110 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10111 declarations. Update copyright.
10112 Fix PR gdb/251.
10113
10114 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10115
10116 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10117 after the last symbol in a block.
10118
10119 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10120
10121 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10122 is non zero as a found symbol.
10123
10124 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10125
10126 * findvar.c: Include "builtin-regs.h".
10127 (value_of_register): Call value_of_builtin_reg when applicable.
10128 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10129 (target_map_name_to_register): Call
10130 builtin_reg_map_name_to_regnum.
10131 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10132 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10133 (builtin_regs_h): Define.
10134 (builtin-regs.o): New target.
10135 (findvar.o): Add $(builtin_regs_h).
10136 * builtin-regs.c, builtin-regs.h: New files.
10137 * std-regs.c: New file.
10138 Partial fix for PR gdb/251.
10139
10140 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10141
10142 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10143 it's no longer required.
10144
10145 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10146
10147 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10148
10149 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10150
10151 From Jimi X <jimix@watson.ibm.com>:
10152 * rs6000-tdep.c (rs6000_software_single_step): Use
10153 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10154 and size. Use target_insert_breakpoint() and
10155 target_remove_breakpoint() to insert and remove breakpoints
10156 instead of explicit memory reads and writes.
10157
10158 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10159
10160 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10161 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10162 ELF_OBJECT_FORMAT ifdef.
10163
10164 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10165
10166 From Jimi X <jimix@watson.ibm.com>:
10167 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10168
10169 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10170
10171 From Jimi X <jimix@watson.ibm.com>:
10172 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10173 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10174
10175 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10176
10177 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10178 s/asprintf/xasprintf/.
10179 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10180
10181 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10182
10183 I believe Jeff Law denies responsability for this one:
10184 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10185 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10186 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10187 Work-around for PR gdb/366.
10188
10189 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10190
10191 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10192 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10193 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10194
10195 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10196
10197 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10198 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10199 information.
10200
10201 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10202
10203 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10204 maintainer.
10205
10206 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10207
10208 * README (Reporting Bugs in GDB): Document the bug web page as the
10209 prefered way of submitting bugs.
10210 Fix PR gdb/402.
10211
10212 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10213
10214 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10215 -1. Update comment.
10216 * gdbarch.h, gdbarch.c: Re-generate.
10217
10218 2002-04-07 Andreas Schwab <schwab@suse.de>
10219
10220 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10221 buffer to regcache_collect.
10222
10223 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10224
10225 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10226 * gdbarch.c, gdbarch.h: Re-generate.
10227
10228 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10229
10230 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10231 declaration. Fix -Werror.
10232
10233 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10234
10235 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10236 * gdbarch.c: Regenerate.
10237
10238 2002-04-05 Michael Snyder <msnyder@redhat.com>
10239
10240 * breakpoint.c (clear_command): Rewrite middle section to
10241 combine two loops with identical control conditions.
10242 Add a cleanup to eliminate a memory leak.
10243 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10244
10245 2002-04-05 H.J. Lu (hjl@gnu.org)
10246
10247 * solib-svr4.c (bkpt_names): Add "__start".
10248
10249 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10250
10251 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10252 as test for 64 bit target.
10253
10254 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10255
10256 * h8500-tdep.c (h8500_write_fp): Delete function.
10257 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10258 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10259 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10260 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10261 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10262 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10263 (s390_write_fp):
10264 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10265 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10266 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10267 (d10v_write_fp): Delete function.
10268 * inferior.h (write_fp, generic_target_write_fp): Delete
10269 declarations.
10270 * regcache.c (generic_target_write_fp): Delete function.
10271 (write_fp): Delete function.
10272 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10273 * gdbarch.h, gdbarch.c: Regenerate.
10274 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10275 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10276 (sparc64_write_fp): Delete declaration.
10277 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10278 (h8500_write_fp): Delete declaration.
10279
10280 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10281
10282 * sparc-tdep.c (sparc64_write_fp): Delete.
10283 (sparc_push_dummy_frame): Replace write_fp call with code to store
10284 the FP directly.
10285 (sparc_gdbarch_init): Do not initialize write_fp.
10286
10287 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10288
10289 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10290 clause.
10291
10292 2002-03-29 Jim Blandy <jimb@redhat.com>
10293
10294 * stack.c (get_selected_block): Add new argument `addr_in_block',
10295 used to return the exact code address we used to select the block,
10296 not just the block.
10297 * blockframe.c (get_frame_block, get_current_block): Same.
10298 * frame.h (get_frame_block, get_current_block,
10299 get_selected_block): Update declarations.
10300 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10301 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10302
10303 2002-04-05 Michael Snyder <msnyder@redhat.com>
10304
10305 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10306 warning message.
10307
10308 2002-04-05 J. Brobecker <brobecker@gnat.com>
10309
10310 * utils.c (xfullpath): New function.
10311 * defs.h (xfullpath): Add declaration.
10312 * source.c (openp): Use xfullpath in place of gdb_realpath to
10313 avoid resolving the basename part of filenames when the
10314 associated file is a symbolic link. This fixes a potential
10315 inconsistency between the filenames known to GDB and the
10316 filenames it prints in the annotations.
10317 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10318 to be able to match a filename with either the real filename, or
10319 the name of any symbolic link to this file.
10320 (lookup_partial_symtab): Ditto.
10321
10322 2002-04-04 Michael Snyder <msnyder@redhat.com>
10323
10324 * breakpoint.c: Add support for hardware breakpoints in overlays.
10325 (overlay_events_enabled): New state variable.
10326 (insert_breakpoints): Use overlay_events_enabled to decide
10327 whether to attempt to set a breakpoint at the overlay load addr.
10328 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10329 (remove_breakpoint): Use overlay_events_enabled to decide
10330 whether breakpoints need to be removed from overlay load addr.
10331 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10332 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10333 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10334 disable_overlay_breakpoints): Update overlay_events_enabled.
10335
10336 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10337
10338 * dwarf2read.c (struct function_range): New.
10339 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10340 (check_cu_functions): New.
10341 (read_file_scope): Initialize global function lists.
10342 Call dwarf_decode_line after processing children.
10343 (read_func_scope): Add to global function list.
10344 (dwarf_decode_lines): Call check_cu_functions everywhere
10345 record_line is called. Call record_line with a linenumber
10346 of 0 to mark sequence ends.
10347
10348 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10349
10350 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10351 change sync with glibc.
10352
10353 2002-04-03 Jim Blandy <jimb@redhat.com>
10354
10355 * configure.in: Call AC_C_INLINE.
10356 * configure: Regenerated.
10357
10358 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10359
10360 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10361 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10362
10363 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10364
10365 * NEWS: Mention gcore support on FreeBSD/i386.
10366
10367 * fbsd-proc.c: New file.
10368 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10369 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10370
10371 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10372 while statement.
10373
10374 2002-03-29 Jim Blandy <jimb@redhat.com>
10375
10376 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10377 unescaped newlines in string literals, but newer ones don't. So
10378 escape them.
10379
10380 2002-03-26 Michael Snyder <msnyder@redhat.com>
10381 Andrew Cagney <cagney@redhat.com>
10382
10383 * cli/cli-dump.c: New file. Dump memory to file,
10384 restore file to memory.
10385 * cli/cli-dump.h: New file.
10386 * Makefile.in: Add rules, dependencies for cli-dump.o.
10387 * NEWS: Mention new commands.
10388
10389 2002-03-28 Michael Snyder <msnyder@redhat.com>
10390
10391 * symfile.c (symbol_file_add): Move test for null symbols to later.
10392
10393 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10394
10395 From veksler at il.ibm.com:
10396 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10397 the xstrduped original path.
10398 Fix PR gdb/417.
10399
10400 2002-03-27 Michael Snyder <msnyder@redhat.com>
10401
10402 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10403 * infcmd.c (_initialize_infcmd): Ditto.
10404 * language.c (_initialize_language): Ditto.
10405 * symfile.c (_initialize_symfile): Ditto.
10406 * top.c (_init_main): Ditto.
10407 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10408
10409 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10410
10411 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10412 vector registers handling.
10413 (skip_prologue): Handle new AltiVec instructions. Fill in new
10414 fields of frame data.
10415 (frame_get_saved_regs): Fill in information for AltiVec registers.
10416
10417 2002-03-27 Jim Blandy <jimb@redhat.com>
10418
10419 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10420 a function; leave this macro here to invoke that function.
10421 (symbol_init_mangled_name): Declaration for that function.
10422 * symtab.c (symbol_init_mangled_name): New function.
10423
10424 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10425
10426 * valarith.c: Replace strerror with safe_strerror.
10427 * tracepoint.c: Ditto.
10428 * lin-lwp.c: Ditto.
10429 * go32-nat.c: Ditto.
10430 * inflow.c: Ditto.
10431 * gnu-nat.c: Ditto.
10432
10433 2002-03-27 Andreas Schwab <schwab@suse.de>
10434
10435 * event-top.c (command_line_handler): Remove useless if.
10436
10437 2002-03-27 Andreas Jaeger <aj@suse.de>
10438
10439 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10440 comment.
10441
10442 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10443
10444 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10445 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10446 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10447 (x86_64_linux_dr_get_status, supply_gregset),
10448 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10449 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10450 (x86_64_register_info_table): Add.
10451 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10452 (x86_64_register_raw_size, x86_64_register_virtual_type),
10453 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10454 general x86_64_register_info_table.
10455 (i386_gdbarch_init): gdbarch_register_bytes is now set
10456 dynamicaly during initialization.
10457 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10458 * gdbserver/linux-x86-64-low.c: Ditto.
10459
10460 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10461
10462 * gdbserver/server.c (main): Call target_signal_to_host_p
10463 and target_signal_to_host on signals received from the remote.
10464 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10465 target_signal_from_host on signals sent to the remote.
10466 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10467 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10468
10469 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10470
10471 * signals/signals.c: Include "server.h" in gdbserver build.
10472 (target_signal_from_name): Don't use STREQ.
10473 (_initialize_signals): Likewise. Don't include function in
10474 gdbserver build.
10475
10476 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10477
10478 * signals.c: Moved to...
10479 * signals/signals.c: Here.
10480 * Makefile (signals.o): Update.
10481
10482 2002-03-26 Jeff Law (law@redhat.com)
10483
10484 * somread.c (som_symtab_read): Remove some commented out code and
10485 updated related comments. Do not set the minimal symbol table to
10486 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10487 in a dynamic executable.
10488 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10489 where we are unable to find the minimal symbol for the given
10490 PC value.
10491
10492 2002-03-25 Jeff Law (law@redhat.com)
10493
10494 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10495
10496 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10497
10498 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10499
10500 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10501
10502 * command.h: Update copyright.
10503 (struct cmd_list_element): Replace definition with opaque
10504 declaration.
10505 (enum cmd_types): Document that it will eventually be moved to
10506 cli/cli-decode.h
10507 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10508 (MALLOCED_REPLACEMENT): Delete macro.
10509 * Makefile.in (cli_decode_h): Add $(command_h).
10510 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10511 * top.c: Include "cli/cli-decode.h".
10512 * completer.c: Include "cli/cli-decode.h".
10513 * maint.c: Include "cli/cli-decode.h".
10514 * cli/cli-decode.h: Include "command.h".
10515 (enum command_class): Delete.
10516 (enum cmd_types): Comment out.
10517 (enum cmd_auto_boolean): Delete.
10518 (enum var_types): Delete.
10519
10520 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10521
10522 * cli/cli-decode.c: Include "gdb_assert.h".
10523 (add_set_or_show_cmd): New static function.
10524 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10525 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10526 all fields, such as func, from the set command.
10527
10528 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10529
10530 * MAINTAINERS (sh-elf): Change warning flag to -w.
10531
10532 2002-03-23 Andrew Cagney <cagney@redhat.com>
10533
10534 * defs.h (error): Add printf format attribute.
10535 * thread-db.c (thread_from_lwp): Fix error format string.
10536 * stack.c (parse_frame_specification): Ditto.
10537 * cli/cli-decode.c (undef_cmd_error): Ditto.
10538 * scm-lang.c (scm_lookup_name): Ditto.
10539 * tracepoint.c (trace_error): Ditto.
10540 * remote-utils.c (usage): Ditto.
10541 * remote.c (compare_sections_command): Ditto.
10542 Fix PR gdb/328.
10543
10544 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10545
10546 * gdbtypes.c (append_composite_type_field): New function.
10547 (init_composite_type): New function.
10548 * gdbtypes.h (append_composite_type_field): Declare.
10549 (init_composite_type): Ditto.
10550
10551 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10552
10553 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10554 function.
10555 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10556 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10557 structure returning convention for SYSV ABI case, but not
10558 for GNU/Linux, FreeBSD, or NetBSD.
10559
10560 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10561
10562 * symtab.h (lookup_block_symbol): Add mangled_name argument
10563 to prototype.
10564
10565 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10566 with new mangled_name argument.
10567 * linespec.c (decode_line_1): Likewise.
10568 * valops (value_of_this): Likewise.
10569 * symtab.c (lookup_transparent_type): Likewise.
10570 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10571 (lookup_symbol): If we are given a mangled name, pass it down
10572 to lookup_symbol_aux.
10573 (lookup_block_symbol): If we are given a mangled name to check
10574 against, only return symbols which match it.
10575
10576 2002-03-22 Christopher Faylor <cgf@redhat.com>
10577
10578 * win32-nat.c (child_create_inferior): Check for proper shell to use
10579 here, in case the user changes it on the fly.
10580 (_initialize_inftarg): Remove shell path considerations.
10581
10582 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10583
10584 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10585 for gdbarch_max_register_raw_size and max_register_virtual_size.
10586 Adjust copyright year.
10587
10588 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10589
10590 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10591 in a function to cover the entire beginning of the function
10592 as well if it does not already.
10593
10594 2002-03-21 Tom Rix <trix@redhat.com>
10595
10596 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10597 (rs6000_ptrace64): Renamed from ptrace64.
10598
10599 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10600
10601 * gdbserver/remote-utils.c (remote_open): Don't call
10602 getprotobyname, we're all using TCP here so just use
10603 IPPROTO_TCP.
10604 * gdbserver/gdbreplay.c (remote_open): Ditto.
10605
10606 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10607
10608 * regcache.c (_initialize_regcache): No need to call
10609 build_regcache() at this time; it gets called whenever
10610 the gdbarch changes.
10611
10612 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10613
10614 * sparc-nat.c: Include sys/param.h where possible.
10615
10616 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10617
10618 Fix PR gdb/422.
10619 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10620 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10621 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10622 complex types.
10623 * stabsread.c (rs6000_builtin_type): Likewise.
10624 (read_sun_floating_type): Likewise.
10625
10626 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10627
10628 * stabsread.c (read_member_functions): Remove skip code for duplicate
10629 constructor/destructor methods. Use standard parsing for these
10630 methods and just do not chain them to the list of methods after
10631 parsing.
10632
10633 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10634
10635 * coffread.c: Remove redundant static declarations. Replace
10636 occurrences of `PTR' with `void *'.
10637 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10638 * top.h (quit_cover): Likewise.
10639 * defs.h (catch_errors): Likewise.
10640
10641 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10642
10643 * defs.h (XMALLOC): Define.
10644 * gdb-events.sh (XMALLOC): Delete macro.
10645 * gdb-events.c, gdb-events.h: Regenerate.
10646 * gdbarch.sh (XMALLOC): Delete macro.
10647 * gdbarch.c: Regenerate.
10648 * serial.c (XMALLOC): Delete macro.
10649 * ui-file.c (XMALLOC): Ditto.
10650 * ser-unix.h (XMALLOC): Ditto.
10651 * sh-tdep.c (XMALLOC): Ditto.
10652 * ui-out.c (XMALLOC): Ditto.
10653 * utils.c (XMALLOC): Ditto.
10654 * i386-tdep.c (XMALLOC): Ditto.
10655 * gdb-events.c (XMALLOC): Ditto.
10656 * d10v-tdep.c (XMALLOC): Ditto.
10657 * cli-out.c (XMALLOC): Ditto.
10658
10659 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10660 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10661 * ui-file.c, ui-out.c: Ditto.
10662
10663 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10664
10665 * command.h (struct cmd_list_element): Add field context.
10666 (set_cmd_context, get_cmd_context): Declare.
10667 * cli/cli-decode.h: Ditto.
10668 * cli/cli-decode.c (get_cmd_context): New function.
10669 (set_cmd_context): New function.
10670 (add_cmd): Initialize context.
10671 Part of fixing PR gdb/145 and PR gdb/146.
10672
10673 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10674
10675 * cli/cli-decode.c (cmd_type): New function.
10676 * command.h (cmd_type): Declare.
10677 * infrun.c (set_schedlock_func): Call function cmd_type.
10678 * kod.c (kod_set_os): Call cmd_type.
10679 * cris-tdep.c (cris_version_update): Use function cmd_type.
10680 (cris_mode_update, cris_abi_update): Ditto.
10681
10682 * command.h: (execute_cmd_post_hook): Declare.
10683 (execute_cmd_pre_hook): Declare.
10684 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10685 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10686 functions. Execute pre/post hook while ensuring that afterwords
10687 hook_in is cleared.
10688 * top.c (execute_command): Use execute_cmd_post_hook, and
10689 execute_cmd_pre_hook to execute pre/post commands.
10690 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10691 hook_stop_stub.
10692 (hook_stop_stub): Call execute_cmd_pre_hook.
10693
10694 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10695
10696 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10697 set'' and this leads to a core dump. Move xstrdup of
10698 operating_system to after check that it is not NULL.
10699
10700 2002-03-17 Andrew Cagney <ac131313@redhat.com>
10701
10702 * kod.c (kod_set_os): Remove unnecessary check that
10703 ``command->type'' is set_cmd.
10704
10705 * valprint.c (set_input_radix): Use input_radix.
10706 (set_output_radix): Use output_radix.
10707 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10708 isn't reverted.
10709
10710 2002-03-16 Andrew Cagney <ac131313@redhat.com>
10711
10712 * value.h (struct value): Delete field ``substring_addr''. Change
10713 aligner fields to force_doublest_align, force_longest_align,
10714 force_core_addr_align and force_pointer_aligh.
10715
10716 * value.h (struct value): Fix typo in above change.
10717
10718 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10719
10720 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10721 to fix internal_error from ``maintenance print architecture''.
10722
10723 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10724
10725 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10726 for gcc versions after gcc-2.8.1.
10727
10728 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10729
10730 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10731 for method resolution. Restore adjustment of ``this'' pointer after
10732 calling value_struct_elt, which was accidentally removed during the
10733 HP merge.
10734
10735 2002-03-15 Andrew Cagney <ac131313@redhat.com>
10736
10737 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10738 value_of_register.
10739 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10740 get_saved_register.
10741 * value.h (value_of_register): Update.
10742
10743 2002-03-14 Richard Henderson <rth@redhat.com>
10744
10745 * configure.in: Detect declaration for canonicalize_file_name.
10746 * utils.c (canonicalize_file_name): Declare, if needed.
10747 (gdb_realpath): Prefer realpath if available and usable.
10748 * config.in, configure: Rebuild.
10749
10750 2002-03-14 Richard Henderson <rth@redhat.com>
10751
10752 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10753 a constant array bound.
10754
10755 * MAINTAINERS: Add myself to write-after-approval.
10756
10757 2002-03-14 Michael Snyder <msnyder@redhat.com>
10758
10759 * symfile.c (syms_from_objfile): Return immediately if no syms.
10760 (symbol_file_add): Return immediately if no syms.
10761 (find_sym_fns): Return immediately if no syms.
10762
10763 2002-03-13 Michal Ludvig <mludvig@suse.cz>
10764
10765 * gdbserver/remote-util.c (remote_open): Print remote-side's
10766 IP address when remote debugging over the network.
10767
10768 2002-03-12 David O'Brien <obrien@FreeBSD.org>
10769
10770 * config/sparc/fbsd.mh: Fix copyright.
10771 * config/sparc/fbsd.mt: Likewise.
10772
10773 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
10774
10775 * MAINTAINERS: Fix typo in name of gdb warnings option.
10776 (x86-64): Fix formating so that this can be parsed by awk.
10777
10778 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10779
10780 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
10781 * defs.h: Include "gdb/signals.h".
10782 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
10783
10784 2002-03-10 Michal Ludvig <mludvig@suse.cz>
10785
10786 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
10787 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
10788 from x86-64-tdep.h
10789
10790 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
10791 Don Howard <dhoward@redhat.com>
10792
10793 * mips-tdep.c (ST0_FR): Define.
10794 (mips2_fp_compat): New function, temporarily disabled.
10795 (mips_read_fp_register_single): New function.
10796 (mips_read_fp_register_double): New function.
10797 (mips_print_register): Use them.
10798 (do_fp_register_row): Likewise.
10799
10800 2002-03-09 Andrew Cagney <ac131313@redhat.com>
10801
10802 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
10803 approval''.
10804
10805 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10806
10807 * stabsread.c (read_member_functions): Fix is_stub test for
10808 static member functions, improve comment.
10809
10810 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
10811
10812 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
10813 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
10814 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
10815 commands that set boolean values.
10816 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
10817 (arm_rdi_resume): Always initialize PC.
10818 (arm_rdi_open): Don't use rslt as a boolean.
10819 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
10820 (arm_rdi_fetch_registers, arm_rdi_store_registers)
10821 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
10822 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
10823
10824 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
10825
10826 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
10827 * configure: Rebuilt.
10828
10829 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
10830
10831 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
10832 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
10833
10834 2002-03-06 Andrew Cagney <ac131313@redhat.com>
10835
10836 * cli/cli-decode.c (set_cmd_completer): New function.
10837 * command.h (set_cmd_completer): Declare.
10838 * cli/cli-decode.h (set_cmd_completer): Ditto.
10839
10840 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
10841 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10842 * win32-nat.c (_initialize_inftarg): Ditto.
10843 * remote-rdi.c (_initialize_remote_rdi): Ditto.
10844 * proc-api.c (_initialize_proc_api): Ditto.
10845 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
10846 * source.c (_initialize_source): Ditto.
10847 * exec.c (_initialize_exec): Ditto.
10848 * solib.c (_initialize_solib): Ditto.
10849 * top.c (init_main): Ditto.
10850 * tracepoint.c (_initialize_tracepoint): Ditto.
10851 * symfile.c (_initialize_symfile): Ditto.
10852 * printcmd.c (_initialize_printcmd): Ditto.
10853 * infcmd.c (_initialize_infcmd): Ditto.
10854 * corefile.c (_initialize_core): Ditto.
10855
10856 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10857
10858 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
10859
10860 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10861
10862 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
10863
10864 2002-03-05 Andrew Cagney <ac131313@redhat.com>
10865
10866 * NEWS: Update headings, 5.2 has branched.
10867
10868 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
10869
10870 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
10871 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
10872 (register_addr, REGISTER_RAW_SIZE): Likewise.
10873 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
10874 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
10875
10876 2002-03-03 Michal Ludvig <mludvig@suse.cz>
10877
10878 * MAINTAINERS (x86-64): Add myself.
10879 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
10880 changed value_ptr -> struct value *
10881
10882 2002-03-01 David O'Brien <obrien@FreeBSD.org>
10883
10884 * configure.host (sparc64-*-freebsd): Add.
10885 * configure.tgt: Likewise.
10886 * config/sparc/fbsd.mh: New file.
10887 * config/sparc/fbsd.mt: Likewise.
10888 * config/sparc/nm-fbsd.h: Likewise.
10889 * config/sparc/tm-fbsd.h: Likewise.
10890
10891 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
10892
10893 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
10894 regformats/reg-s390x.dat.
10895
10896 2002-03-01 Andrew Cagney <ac131313@redhat.com>
10897
10898 * utils.c: Add FIXME explaining true/false problem.
10899
10900 2002-02-28 Andrew Cagney <ac131313@redhat.com>
10901
10902 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
10903
10904 2002-02-28 Michael Chastain <mec@shout.net>
10905
10906 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
10907
10908 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
10909
10910 * gdbserver/linux-s390-low.c: New file.
10911 * regformats/reg-s390.dat: New file.
10912 * regformats/reg-s390x.dat: New file.
10913 * gdbserver/configure.srv: Add S/390.
10914 * gdbserver/Makefile.in: Add S/390.
10915 * configure.tgt: Enable gdbserver for S/390.
10916
10917 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
10918
10919 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
10920 first line of the doc string for "info dos", except at the end of
10921 the sentence, since the short help stops at the first period.
10922
10923 2002-02-28 Jason Merrill <jason@redhat.com>
10924
10925 * dwarf2read.c (dwarf_cfi_name): Add new codes.
10926
10927 2002-02-27 Fred Fish <fnf@redhat.com>
10928
10929 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
10930 comment (dumy -> dummy).
10931
10932 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10933
10934 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
10935
10936 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
10937
10938 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
10939
10940 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10941
10942 * gdbserver/acconfig.h: New file.
10943 * gdbserver/i387-fp.c: New file.
10944 * gdbserver/i387-fp.h: New file.
10945 * gdbserver/linux-x86-64.c: New file.
10946 * regformats/reg-x86-64.dat: New file.
10947 * configure.tgt: Add x86_64-*-linux* gdbserver support.
10948 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
10949 * gdbserver/configure.in: Add support for regsets.
10950 * gdbserver/config.in: Regenerate.
10951 * gdbserver/configure: Regenerate.
10952 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
10953 * gdbserver/linux-low.h: New file.
10954 * gdbserver/linux-low.c: Include "linux-low.h". Add support
10955 for regsets.
10956 * gdbserver/linux-arm-low.c: Include "linux-low.h".
10957 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
10958 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
10959 * gdbserver/linux-mips-low.c: Include "linux-low.h".
10960 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
10961 * gdbserver/linux-sh-low.c: Include "linux-low.h".
10962 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
10963 "i387-fp.h". Add PTRACE_GETREGS and friends.
10964 * gdbserver/regcache.c (supply_register): New function.
10965 (supply_register_by_name): New function.
10966 (collect_register): New function.
10967 (collect_register_by_name): New function.
10968
10969 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10970
10971 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
10972 (config.status): Add configure.srv dependency.
10973 (server_h): Add config.h dependency.
10974
10975 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
10976
10977 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
10978 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
10979 * gdbserver/configure.srv: Change i386-*-linux* to use
10980 reg-i386-linux.o.
10981
10982 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10983
10984 * x86-64-tdep.c: Re-indent. Update copyright date.
10985
10986 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10987
10988 From Michal Ludvig <mludvig@suse.cz>:
10989 * x86-64-tdep.c (value.h): Delete.
10990 (gdb_assert.h): Include.
10991 (x86_64_register_convert_to_virtual,
10992 x86_64_register_convert_to_raw ): Add check which lets only
10993 floating-point values to be converted.
10994 (value_push): Delete.
10995 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
10996 (i386_gdbarch_init): Number of register_bytes fixed.
10997
10998 2002-02-26 Andrew Cagney <ac131313@redhat.com>
10999
11000 * MAINTAINERS: Add x86-64 target.
11001
11002 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11003
11004 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11005 * osfsolib.c (solib_map_sections): Ditto.
11006 * irix5-nat.c (solib_map_sections): Ditto.
11007 * corelow.c (gdb_check_format): Ditto.
11008 * symfile.c (symfile_bfd_open): Ditto.
11009 * solib.c (solib_map_sections): Ditto.
11010 Fix PR gdb/354.
11011
11012 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11013
11014 * remote.c (_initialize_remote): By default, disable ``e'' and
11015 ``E'' step out-of-range packets.
11016
11017 2002-02-26 Andreas Schwab <schwab@suse.de>
11018
11019 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11020 m68k_linux_frame_saved_pc.
11021 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11022 in_sigtramp.
11023 (SIGCONTEXT_PC_OFFSET): Remove.
11024 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11025 m68k_linux_sigtramp_saved_pc): New functions.
11026 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11027 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11028 (UCONTEXT_PC_OFFSET): Define.
11029 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11030 non-RT and RT signal trampolines.
11031
11032 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11033
11034 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11035 (TARGET_NBPG, STACK_END_ADDR): Delete
11036 (VARIABLES_INSIDE_BLOCK): Delete.
11037
11038 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11039
11040 * utils.c (perror_with_name): Make string parameter constant.
11041 (print_sys_errmsg): Ditto.
11042 (query): Ditto.
11043 * defs.h (perror_with_name): Update.
11044 (print_sys_errmsg): Update.
11045 (query): Update.
11046
11047 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11048
11049 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11050 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11051
11052 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11053
11054 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11055 if it already matches the current architecture from the exec file.
11056 Include arch-utils.h for gdbarch_info_init prototype.
11057 * Makefile.in (rs6000-nat.o): Update dependencies.
11058
11059 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11060
11061 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11062 list of exported variables.
11063
11064 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11065
11066 * gdbserver/configure.srv: New file.
11067 * gdbserver/configure.in: Use configure.srv instead
11068 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11069 from it.
11070 * gdbserver/configure: Regenerated.
11071 * gdbserver/terminal.h: New file.
11072 * gdbserver/Makefile.in: Update for configure changes. Remove
11073 more unneeded include paths.
11074
11075 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11076
11077 From wiz at danbala:
11078 * config/sparc/tm-sp64.h: Fix grammar and typos.
11079 Fix PR gdb/287.
11080
11081 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11082
11083 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11084 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11085 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11086 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11087 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11088 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11089 * s390-tdep.c: Ditto.
11090 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11091 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11092 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11093 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11094 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11095 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11096 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11097 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11098 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11099 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11100 Fix PR gdb/378.
11101
11102 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11103
11104 * lin-thread.c: Delete file.
11105 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11106 to gdb_proc_service.h.
11107 * configure: Re-generate.
11108
11109 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11110 * serial.c (serial_open): Delete check for "ocd".
11111 Fix PR gdb/349.
11112
11113 * Makefile.in (linux-thread.o): Delete target.
11114 * linux-thread.c: Delete file.
11115
11116 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11117 renamed SH files to be consistent.
11118
11119 * symtab.c (sort_search_symbols): Use xfree.
11120
11121 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11122
11123 * arm-linux-tdep.c (arm_linux_init_abi): Register
11124 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11125 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11126 definition with undef, since we don't want the sysvr4 definition.
11127 (SKIP_TRAMPOLINE_CODE): Likewise.
11128
11129 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11130
11131 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11132
11133 * configure.in: (AC_CHECK_FUNCS) Added test for
11134 canonicalize_file_name Regenerated.
11135 * config.in, configure: Regenerated.
11136 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11137 defined use canonicalize_file_name.
11138
11139 2002-02-23 Michael Chastain <mec@shout.net>
11140
11141 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11142
11143 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11144
11145 * README: Remove references to cygnus.com.
11146 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11147 dot com'' form. Remove references to cygnus.com and sourceware.
11148
11149 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11150
11151 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11152 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11153 1003.1-2001 no longer allows "head -1".
11154 * gdb/Makefile.in (version.c): Likewise.
11155 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11156 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11157 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11158
11159 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11160
11161 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11162 * command.h (cmd_cfunc_eq): Declare.
11163 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11164
11165 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11166 ``struct cmd_list_element *''.
11167 * cli/cli-cmds.c (is_complete_command): Update. Use
11168 cmd_cfunc_eq.
11169 * top.c (execute_command): Pass the command to
11170 is_complete_command.
11171 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11172
11173 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11174
11175 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11176 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11177 architecture defines.
11178 * s390-tdep.c (s390_gdbarch_init): Likewise.
11179
11180 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11181
11182 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11183 (arm_linux_push_arguments): Likewise.
11184 (arm_linux_init_abi): Register them. Also register linux-specific
11185 call_dummy_words.
11186 (find_minsym_and_objfile): Use strcmp, not STREQ.
11187 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11188 (arm_linux_call_dummy_words): Delete declaration.
11189 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11190 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11191 declarations.
11192 (LOWEST_PC): Delete.
11193
11194 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11195
11196 * maint.c (print_section_info): Do not prepend `0x' to filepos
11197 output, it will be handled by local_hex_string_custom.
11198
11199 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11200
11201 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11202 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11203 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11204
11205 2002-02-22 Jim Blandy <jimb@redhat.com>
11206
11207 Indicate that the bcache functions don't change the strings
11208 they're passed.
11209 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11210 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11211
11212 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11213
11214 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11215
11216 2002-02-21 Christopher Faylor <cgf@redhat.com>
11217
11218 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11219 find the complete path to a loaded DLL.
11220
11221 2002-02-21 Fred Fish <fnf@redhat.com>
11222
11223 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11224 that marks the end of the range of a function, enter a line number
11225 entry that has a line number of zero and a PC offset that matches
11226 the end of the function. This starts a range of PC's for which no
11227 line number information is known.
11228 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11229 PC's for which no line number info is found (line number is zero)
11230 then we didn't find any valid line information.
11231 * symtab.h: Document use of zero line number entry.
11232
11233 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11234
11235 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11236 (have_ptrace_getvrregs): Define for run time checks.
11237 (gdb_vrregset_t): New type for Altivec register handling.
11238 (fetch_register, store_register): Fetch/store altivec register
11239 when needed.
11240 (fetch_altivec_register, store_altivec_register): New functions.
11241 (supply_vrregset, fill_vrregset): New functions.
11242 (fetch_altivec_registers, store_altivec_registers): New functions.
11243 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11244 registers as well.
11245
11246 2002-02-21 Jiri Smid <smid@suse.cz>
11247
11248 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11249
11250 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11251
11252 * Makefile.in (armnbsd-nat.o): Update dependencies.
11253 * armnbsd-nat.c (supply_gregset): New function. Common code to
11254 supply the integer register set.
11255 (supply_fparegset): New function. Similar for FPA registers.
11256 (fetch_regs, fetch_fp_regs): Use them.
11257 (fetch_core_registers): Likewise.
11258 (fetch_elfcore_registers): New function.
11259 (arm_netbsd_elfcore_fns): New core-file type specification.
11260 (_initialize_arm_netbsd_nat): Register it.
11261
11262 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11263
11264 * armnbsd-nat.c: Include gdbcore.h.
11265 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11266 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11267 'void' to declaration, to shut up ARI.
11268 (fetch_core_registers): Make static. Rewrite using supply_register.
11269 (arm_netbsd_core_fns): New core-file type specification.
11270 (_initialize_arm_netbsd_nat): New function.
11271
11272 2002-02-21 Christopher Faylor <cgf@redhat.com>
11273
11274 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11275 value.
11276
11277 2002-02-20 Christopher Faylor <cgf@redhat.com>
11278
11279 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11280 fails.
11281
11282 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11283
11284 * jv-exp.y (parse_number): Change type of implicit longs
11285 to builtin_type_uint64.
11286
11287 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11288
11289 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11290 to be an integer instead of a `union wait'.
11291
11292 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11293
11294 * mips-linux-nat.c: Call the operating system GNU/Linux.
11295 * mips-linux-tdep.c: Likewise.
11296 * mips-tdep.c: Likewise.
11297
11298 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11299
11300 Fix PR gdb/265.
11301 * jv-exp.y (parse_number): Handle 64-bit integers.
11302
11303 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11304
11305 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11306 AC_STDC_HEADERS to AC_HEADER_STDC.
11307 * gdbserver/configure: Regenerated.
11308
11309 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11310
11311 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11312 is defined.
11313 * sparc-tdep.c (get_longjmp_target): Likewise.
11314
11315 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11316
11317 * News: Add news about ARM and Multi-arch. Mention the new target
11318 arm*-*-netbsd*.
11319
11320 2002-02-19 Jim Blandy <jimb@redhat.com>
11321
11322 * stabsread.c (error_type_complaint): Improve error message.
11323
11324 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11325
11326 * gdbserver/README: Update documentation.
11327 * gdbserver/configure.in: Update configury to match documentation.
11328 * gdbserver/Makefile.in: Likewise.
11329 * gdbserver/configure: Regenerated.
11330 * gdbserver/aclocal.m4: New file, generated by aclocal.
11331 * gdbserver/config.in: New file, generated by autoheader.
11332
11333 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11334
11335 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11336 armnbsd-nat.c.
11337
11338 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11339
11340 * arm-tdep.h (enum arm_float_model): New enum.
11341 (struct gdbarch_tdep): Add fp_model.
11342 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11343 up floating-point conversions until we know the floating-point model
11344 in use by the inferior. Don't complain about being unable to
11345 determine the ABI of the inferior when we don't have one.
11346 (arm_extract_return_value): Support different floating-point models.
11347 (arm_store_return_value): Likewise.
11348 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11349 ARM_FLOAT_SOFT.
11350 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11351
11352 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11353
11354 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11355 of ``current_gdbarch''.
11356
11357 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11358
11359 * armnbsd-nat.c : ANSIfy all function declarations.
11360 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11361 (fetch_inferior_registers): Re-implement in terms of above.
11362 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11363 (store_inferior_registers): Re-implement in terms of above.
11364
11365 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11366
11367 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11368 kernel.
11369 * arm-linux-tdep.c: Likewise.
11370 * config/arm/tm-linux.h: Likewise.
11371
11372 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11373
11374 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11375 * config/arm/nbsd.mt (TM_FILE): Delete.
11376 * config/arm/tm-nbsd.h: Delete.
11377
11378 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11379
11380 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11381 Initialize CALL_DUMMY_LENGTH.
11382
11383 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11384
11385 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11386 function.
11387 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11388 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11389 defines one thing and that is incorrect for this port.
11390 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11391
11392 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11393
11394 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11395
11396 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11397
11398 * win32-nat.c (display_selector): New function. Displays information
11399 about the information returned by GetThreadSelectorEntry API function.
11400 (display_selectors): New function. Displays the infomation of
11401 the selector given as argument, or of CS, DS ans FS selectors
11402 if no argument is given.
11403 ( _initialize_inftarg): Add "w32" as info prefix command.
11404 Add "info w32 selector" as command calling display_selectors.
11405
11406 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11407
11408 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11409 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11410 if not defined.
11411
11412 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11413
11414 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11415
11416 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11417
11418 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11419 (arm_fix_call_dummy): Call it.
11420 (arm_call_dummy_breakpoint_offset): Delete.
11421 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11422 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11423
11424 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11425
11426 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11427 Default to func_frame_chain_valid.
11428 * gdbarch.h, gdbarch.c: Re-generate.
11429 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11430
11431 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11432
11433 * ppc-linux-nat.c: Update copyright.
11434 (fetch_register, store_register): Add tid parameter, don't compute
11435 tid here.
11436 (fetch_ppc_registers, store_ppc_registers): Add tid
11437 parameter. Pass it along to callees.
11438 (fetch_inferior_registers, store_inferior_registers): Compute tid
11439 here, and pass it to calleed functions.
11440 (fill_gregset, supply_fpregset): Clean up formatting.
11441
11442 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11443
11444 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11445 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11446
11447 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11448
11449 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11450 * gdbarch.c gdbarch.h: Regenerate.
11451 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11452 function.
11453 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11454 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11455 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11456
11457 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11458 * arm-tdep.c (arm_get_longjmp_target): New function.
11459 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11460 this to a positive value register arm_get_longjmp_target as the
11461 longjmp handler.
11462 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11463 (arm_linux_init_abi): Set up longjmp description in tdep.
11464 * armnbsd-nat.c (get_longjmp_target): Delete.
11465 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11466 description in tdep.
11467 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11468 (get_longjmp_target): Delete declaration.
11469 (GET_LONGJMP_TARGET): Delete.
11470 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11471 (GET_LONGJMP_TARGET): Delete.
11472
11473 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11474
11475 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11476 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11477 of ``current_gdbarch''.
11478
11479 2002-02-17 Tom Tromey <tromey@redhat.com>
11480
11481 * cli/cli-cmds.c (compare_strings): New function.
11482 (complete_command): Only print each unique item once.
11483 * completer.h (complete_line): Declare.
11484 * completer.c (complete_line): New function.
11485 (line_completion_function): Use it.
11486
11487 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11488
11489 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11490 * gdbarch.h, gdbarch.c: Re-generate.
11491
11492 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11493
11494 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11495
11496 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11497
11498 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11499 * valops.c (value_arg_coerce): Don't take the address of a reference
11500 to convert an argument to a reference.
11501
11502 2002-02-15 Christopher Faylor <cgf@redhat.com>
11503
11504 * win32-nat.c (get_image_name): New function.
11505 (handle_load_dll): Use get_image_name function.
11506 (get_child_debug_event): Avoid registering debug events until possibly
11507 execed process is started.
11508 (child_create_inferior): Allow invocation via shell so that command
11509 line redirection, etc. works ok.
11510 (_initialize_inftarg): Add new command: "set shell" to control whether
11511 a shell is used to start a process.
11512
11513 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11514
11515 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11516 instead of find_register_by_number.
11517 (cannot_store_register): Likewise.
11518
11519 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11520
11521 * dwarf2read.c: Replace fprintf (stderr, ...) by
11522 fprintf_unfiltered (gdb_stderr, ...).
11523
11524 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11525
11526 * gdbserver/gdbserver.1: Document --attach.
11527
11528 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11529
11530 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11531 descriptions.
11532 * arm-tdep.c (arm_default_arm_le_breakpoint)
11533 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11534 (arm_default_thumb_be_breakpoint): New. Initialize them from
11535 traditional breakpoint defines.
11536 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11537 (arm_gdbarch_init): Initialize new breakpoint variables.
11538 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11539 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11540 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11541 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11542 code out to ...
11543 (arm_netbsd_init_abi_common): ... here; new function.
11544 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11545 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11546 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11547 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11548
11549 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11550
11551 * arm-tdep.h (enum arm_abi): New enum.
11552 (struct gdbarch_tdep): New structure.
11553 (LOWEST_PC): Provide a default.
11554 (arm_gdbarch_register_os_abi): Declare new function.
11555 * arm-tdep.c (arm_abi_names): New array.
11556 (process_note_abi_tag_sections): New function.
11557 (get_elfosabi): New function.
11558 (arm_gdbarch_register_os_abi): New function.
11559 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11560 support for that ABI has been built in, then call the appropriate
11561 configuration routine. Use gdbarch_num_regs() to get the number
11562 of registers.
11563 (arm_dump_tdep): New function.
11564 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11565 place-holder functions.
11566 (_initialize_arm_tdep): Register them.
11567 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11568
11569 * armnbsd-tdep.c: New file.
11570 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11571 * config/arm/nbsd.mt (TDEPFILES): Add it.
11572 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11573
11574 * armnbsd-nat.c: Include regcache.h.
11575 * Makefile.in (armnbsd-nat.o): Update dependency list.
11576
11577 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11578
11579 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11580
11581 * gdbserver/Makefile.in: Fix typos in target rules.
11582
11583 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11584
11585 Fix part of PR gdb/267.
11586 * linespec.c (find_methods): Handle constructors specially for now.
11587
11588 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11589
11590 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11591 handling.
11592 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11593 standard_coerce_float_to_double().
11594
11595 2002-02-14 Christopher Faylor <cgf@redhat.com>
11596
11597 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11598 GDBINIT_FILENAME.
11599
11600 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11601
11602 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11603 find_variant_by_name, because it confuses the multiarch
11604 framework. Return NULL if there isn't an architecture with the
11605 user supplied name, instead of forcing a different one without
11606 recording the change with the multiarch machinery.
11607 (find_variant_by_name): Delete.
11608
11609 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11610
11611 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11612 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11613
11614 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11615
11616 * stack.c (print_frame_info_base): When calling
11617 print_frame_info_listing_hook, set current_source_symtab.
11618
11619 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11620
11621 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11622 and remove unused $(INCLUDE_DIR).
11623 Add regcache.c to OBS.
11624 Add generated register protocol files to clean target.
11625 Update dependencies for new objects, obsolete old target code.
11626
11627 * gdbserver/linux-low.c: Remove all platform-specific code to
11628 new files. Remove various dead code. Update to use regcache
11629 functionality.
11630 * gdbserver/remote-utils.c (fromhex): Add return statement
11631 to quiet warning.
11632 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11633 constant.
11634 (input_interrupt): Add integer parameter to match prototype
11635 of a signal handler.
11636 (outreg): Use register_data ().
11637 (prepare_resume_reply): Use gdbserver_expedite_regs.
11638 * gdbserver/server.c (main): Dynamically allocate own_buf because
11639 PBUFSIZ is no longer constant. Use registers_to_string () and
11640 registers_from_string ().
11641 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11642 for error (), fatal (), and warning (). Update definition of
11643 PBUFSIZ to use regcache functionality. Add include guard.
11644 * gdbserver/utils.c (fatal): Add missing ``const''.
11645 (warning): New function.
11646
11647 * regformats/regdat.sh: Include "regcache.h" in generated files.
11648 Provide init_registers () function.
11649 * regformats/regdef.h: Add prototype for set_register_cache ().
11650 Add include guard.
11651
11652 * gdbserver/linux-arm-low.c: New file.
11653 * gdbserver/linux-i386-low.c: New file.
11654 * gdbserver/linux-ia64-low.c: New file.
11655 * gdbserver/linux-m68k-low.c: New file.
11656 * gdbserver/linux-mips-low.c: New file.
11657 * gdbserver/linux-ppc-low.c: New file.
11658 * gdbserver/linux-sh-low.c: New file.
11659
11660 * gdbserver/regcache.c: New file.
11661 * gdbserver/regcache.h: New file.
11662
11663 * gdbserver/low-linux.c: Removed obsolete file.
11664
11665 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11666
11667 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11668 * config/i386/linux.mt: Likewise.
11669 * config/ia64/linux.mt: Likewise.
11670 * config/m68k/linux.mh: Likewise.
11671 * config/powerpc/linux.mh: Likewise.
11672 * config/mips/linux.mt: Likewise.
11673
11674 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11675
11676 * config/i386/i386lynx.mh: Mark gdbserver variables
11677 as (currently) obsolete for this target.
11678 * config/i386/nbsd.mt: Likewise.
11679 * config/i386/nbsdelf.mt: Likewise.
11680 * config/m32r/m32r.mt: Likewise.
11681 * config/m68k/m68klynx.mh: Likewise.
11682 * config/m68k/nbsd.mt: Likewise.
11683 * config/m68k/sun3os4.mh: Likewise.
11684 * config/mips/vr5000.mt: Likewise.
11685 * config/ns32k/nbsd.mt: Likewise.
11686 * config/pa/hppabsd.mh: Likewise.
11687 * config/pa/hppaosf.mh: Likewise.
11688 * config/powerpc/nbsd.mt: Likewise.
11689 * config/rs6000/rs6000lynx.mh: Likewise.
11690 * config/s390/s390.mt: Likewise.
11691 * config/s390/s390x.mt: Likewise.
11692 * config/sparc/sparclynx.mh: Likewise.
11693 * config/sparc/sun4os4.mh: Likewise.
11694 * config/i386/x86-64linux.mt: Likewise.
11695 * config/sparc/linux.mh: Likewise.
11696
11697 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11698
11699 * configure.tgt: Configure gdbserver only for known working
11700 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11701 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11702 SUBDIRS if it is configured. Update comment for ${nativefile}.
11703 * configure: Regenerated.
11704
11705 2002-02-13 Michael Snyder <msnyder@redhat.com>
11706
11707 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11708
11709 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11710 (default_gcore_mach): Just return 0, work around a problem in bfd.
11711 (default_gcore_target): OK to return NULL if exec_bfd is null.
11712 (make_mem_sec): Use a cast, avoid a warning.
11713
11714 * procfs.c (find_memory_regions_callback): Use a cast instead of
11715 calling host_pointer_to_address (which complains if
11716 sizeof (host pointer) != sizeof (target pointer)).
11717 (procfs_make_note_section): Avoid overflow in psargs string.
11718
11719 * procfs.c (procfs_make_note_section): Make the default
11720 implementation return an error.
11721
11722 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
11723
11724 * procfs.c (procfs_make_note_section): Provide a default definition
11725 (for alpha-dec-osf4.0f). Fix typos.
11726
11727 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
11728
11729 * linux-proc.c: Add include of regcache.h.
11730 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11731
11732 2002-02-13 Andrew Cagney <ac131313@redhat.com>
11733
11734 From 2002-01-18 Greg McGary <greg@mcgary.org>:
11735 * memattr.c (create_mem_region): Disallow useless empty region.
11736 Regions are half-open intervals, so allow [A..B) [B..C) as
11737 non-overlapping.
11738
11739 2002-02-13 Michael Chastain <mec@shout.net>
11740
11741 * defs.h: Kill CONST_PTR.
11742 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11743 * c-lang.c (c_builtin_types): Likewise.
11744 * ch-lang.c (ch_builtin_types): Likewise.
11745 * f-lang.c (f_builtin_types): Likewise.
11746 * language.c (unknown_builtin_types): Likewise.
11747 * m2-lang.c (m2_builtin_types): Likewise.
11748 * p-lang.c (pascal_builtin_types): Likewise.
11749 * scm-lang.c (c_builtin_types): Likewise.
11750
11751 2002-02-13 Keith Seitz <keiths@redhat.com>
11752
11753 * arm-tdep.h (arm_get_next_pc): Add declaration.
11754
11755 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
11756
11757 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11758 with other related struct-returning functions.
11759 (arm_extract_struct_value_address): New function.
11760 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11761 initialize float_format, double_format and long_double_format as
11762 appropriate to the endianness of the target.
11763 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11764 (arm_use_struct_convention): Delete declaration.
11765 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11766
11767 2002-02-13 Keith Seitz <keiths@redhat.com>
11768
11769 * defs.h (core_addr_to_string_nz): New function.
11770
11771 2002-02-13 Mark Kettenis <kettenis@gnu.org>
11772
11773 Apply missing bits of 2002-01-15 patch.
11774 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
11775 (fill_fpregset): Use i387_fill_fsave.
11776
11777 2002-02-12 Keith Seitz <keiths@redhat.com>
11778
11779 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
11780 (core_addr_to_string_nz): New function.
11781
11782 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11783
11784 * arm-linux-nat.c: Really include arm-tdep.h.
11785 * config/arm/tm-linux.h (struct type, struct value): Declare.
11786
11787 2002-02-11 Michael Snyder <msnyder@redhat.com>
11788
11789 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
11790 (gcore section): Ifdef for Solaris and Unixware only.
11791 (procfs_do_thread_registers): Unixware needs one lwpstatus
11792 per thread (not one prstatus or pstatus).
11793 (procfs_make_note_section): Iterate only over kernel threads (lwps),
11794 not over all gdb threads. For unixware, call elfcore_write_pstatus
11795 once before iterating over threads.
11796
11797 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11798
11799 * arm-tdep.h: New file.
11800 * arm-tdep.c: Include arm-tdep.h.
11801 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11802 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11803 (arm_print_float_info, arm_register_type, convert_to_extended)
11804 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11805 (arm_extract_return_value, arm_register_name): Make static.
11806 (arm_software_single_step): Similarly. Fix types in declaration.
11807 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
11808 (arm_store_return_value, arm_store_struct_return): New functions.
11809 (arm_gdbarch_init): Register the above functions. Also register
11810 call_dummy_start_offset, sizeof_call_dummy_words,
11811 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
11812 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
11813 max_register_virtual_size, register_size. Set up
11814 prologue_cache.saved_regs here, rather than ...
11815 (_initialize_arm_tdep): ... here.
11816 * config/arm/tm-arm.h (struct type, struct value): Delete forward
11817 declarations.
11818 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
11819 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
11820 (arm_print_float_info, arm_register_type, convert_to_extended)
11821 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
11822 (arm_extract_return_value, arm_register_name): Delete declarations.
11823 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
11824 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
11825 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
11826 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
11827 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
11828 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
11829 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
11830 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
11831 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
11832 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
11833 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
11834 (arm_get_next_pc): No-longer static -- these are needed by the RDI
11835 interface.
11836 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
11837 * remote-rdi.c remote-rdp.c: Likewise.
11838 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
11839 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
11840 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
11841 definition.
11842
11843 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
11844 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
11845 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
11846 from non-ARM_ prefixed definitions.
11847 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
11848 all uses of above.
11849 * remote-rdi.c remote-rdp.c: Likewise.
11850 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
11851
11852 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
11853
11854 * arm-tdep.c (arm_frameless_function_invocation)
11855 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11856 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11857 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11858 (arm_pop_frame, arm_get_next_pc): Make static.
11859 (arm_gdbarch_init): Register above in gdbarch structure.
11860 (arm_read_fp): Renamed from arm_target_read_fp.
11861 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
11862 * config/arm/tm-arm.h (arm_frameless_function_invocation)
11863 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
11864 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
11865 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
11866 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
11867 (arm_pc_is_thumb_dummy): Delete declarations.
11868 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
11869 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
11870 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
11871 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
11872
11873 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
11874
11875 * symtab.c (compare_search_syms): New function.
11876 (sort_search_symbols): New function.
11877 (search_symbols): Sort symbols after searching rather than
11878 before.
11879
11880 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11881
11882 * NEWS: Linux -> GNU/Linux.
11883
11884 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11885
11886 * gdbarch.sh: For for level one methods, disallow a definition
11887 when partially multi-arched. Add comments explaining rationale.
11888 * gdbarch.h: Re-generate.
11889
11890 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11891
11892 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
11893 multi-arch partial.
11894
11895 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11896
11897 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
11898 field. Use diff -u.
11899 * gdbarch.c: Re-generate.
11900
11901 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11902
11903 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
11904 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
11905 partial.
11906
11907 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11908
11909 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
11910 multi-arch partial.
11911 (PUSH_ARGUMENTS): Switch to using predefault.
11912 * gdbarch.c: Regenerate.
11913
11914 2002-02-10 Andrew Cagney <ac131313@redhat.com>
11915
11916 * valops.c (PUSH_ARGUMENTS): Delete definition.
11917 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
11918 partial. Default to default_push_arguments.
11919 * gdbarch.h, gdbarch.c: Regenerate.
11920
11921 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11922
11923 * defs.h (throw_exception): Rename return_to_top_level. Update
11924 comments.
11925 * utils.c (error_stream, internal_verror, quit): Ditto.
11926 * top.c (throw_exception, catcher): Ditto.
11927 * sparclet-rom.c (sparclet_load): Ditto.
11928 * remote.c (interrupt_query, minitelnet): Ditto.
11929 * remote-sds.c (interrupt_query): Ditto.
11930 * remote-mips.c (mips_error, mips_kill): Ditto.
11931 * ocd.c (interrupt_query): Ditto.
11932 * monitor.c (monitor_interrupt_query): Ditto.
11933 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
11934 * target.h: Update comment.
11935
11936 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
11937
11938 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11939
11940 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
11941 default_double_format.
11942 * gdbarch.h, gdbarch.c: Re-generate.
11943 * findvar.c (floatformat_unknown): Delete variable definition.
11944 * doublest.h (floatformat_unknown): Delete variable declaration.
11945
11946 2002-02-09 Jim Blandy <jimb@redhat.com>
11947
11948 * stabsread.c (read_type): Add code to parse Sun's syntax for
11949 prototyped function types.
11950
11951 2002-02-09 Andrew Cagney <ac131313@redhat.com>
11952
11953 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
11954 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
11955
11956 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11957
11958 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
11959 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
11960 now _initialize_xcoffsolib gets called again and overrides the
11961 commands from solib.c in a native configuration.
11962
11963 2002-02-09 Mark Kettenis <kettenis@gnu.org>
11964
11965 * doublest.c (store_typed_floating): Don't try to return a value.
11966 Fixes PR gdb/290.
11967
11968 2002-02-08 Jim Blandy <jimb@redhat.com>
11969
11970 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
11971 is prototyped and has no arguments, print its argument list as
11972 `(void)'.
11973
11974 2002-02-08 Chris Demetriou <cgd@broadcom.com>
11975
11976 * MAINTAINERS (write-after-approval): Add myself.
11977 (paper-trail): I've escaped!
11978
11979 2002-02-08 Christopher Faylor <cgf@redhat.com>
11980
11981 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
11982 changes.
11983 (_initialize_check_for_gdb_ini): Ditto.
11984
11985 2002-02-08 Martin M. Hunt <hunt@redhat.com>
11986
11987 * win32-nat.c (cygwin_pid_to_str): Fix typo.
11988 xaprintf -> xasprintf.
11989
11990 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
11991
11992 * win32-nat.c: Remove use of printf and sprintf functions.
11993
11994 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
11995
11996 * arm-tdep.c (arm_frame_chain_valid): Make static.
11997 (arm_push_arguments): Likewise.
11998 (arm_gdbarch_init): New function.
11999 (_initialize_arm_tdep): Call it.
12000 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12001 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12002 (FRAME_CHAIN_VALID): Delete.
12003 (arm_frame_chain_valid): Delete declaration.
12004 (PUSH_ARGUMENTS): Delete.
12005 (arm_push_arguments): Delete declaration.
12006 (CALL_DUMMY_P): Delete.
12007
12008 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12009 Corinna Vinschen <vinschen@redhat.com>
12010
12011 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12012 on builtin float types.
12013
12014 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12015
12016 * utils.c: Include <curses.h> before "bfd.h".
12017 * tui/tui-hooks.c: Likewise.
12018 * tui/tui.c: Likewise.
12019 * tui/tuiCommand.c: Likewise.
12020 * tui/tuiData.c: Likewise.
12021 * tui/tuiDataWin.c: Likewise.
12022 * tui/tuiDisassem.c: Likewise.
12023 * tui/tuiGeneralWin.c: Likewise.
12024 * tui/tuiIO.c: Likewise.
12025 * tui/tuiLayout.c: Likewise.
12026 * tui/tuiRegs.c: Likewise.
12027 * tui/tuiSource.c: Likewise.
12028 * tui/tuiSourceWin.c: Likewise.
12029 * tui/tuiStack.c: Likewise.
12030 * tui/tuiWin.c: Likewise.
12031
12032 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12033
12034 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12035 to include space for pseudoregs as well. Update loops accordingly.
12036 (sh_fp_frame_init_saved_regs): Ditto.
12037 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12038
12039 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12040
12041 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12042 Add Richard Earnshaw to Arm maintainers.
12043
12044 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12045
12046 * defs.h (warning_begin): Delete declaration.
12047
12048 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12049 Delete macro.
12050
12051 2002-02-07 Michael Snyder <msnyder@redhat.com>
12052
12053 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12054 Logic bug, remove misplaced else.
12055
12056 2002-02-07 Klee Dienes <klee@apple.com>
12057
12058 * fork-inferior.c (fork_inferior): Add '!' to the list of
12059 characters that need to be quoted when building a string for the
12060 shell. Quote '!' specifically with a backslash, since CSH chokes
12061 when trying to evaluate "str!str".
12062
12063 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12064
12065 * rdi-share/host.h: Only provide a typedef for bool if it is not
12066 defined.
12067
12068 2002-02-04 Michael Snyder <msnyder@redhat.com>
12069
12070 * breakpoint.h (enum bptype): Add new overlay event bp type.
12071 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12072
12073 * breakpoint.c (create_internal_breakpoint): New function.
12074 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12075 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12076 (create_thread_event_breakpoint): Ditto.
12077 (create_solib_event_breakpoint): Ditto.
12078 (create_overlay_event_breakpoint): New function.
12079 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12080 (update_breakpoints_after_exec): Delete and re-initialize
12081 overlay event breakpoints after an exec. Add FIXME comment
12082 about longjmp breakpoint.
12083 (print_it_typical): Ignore overlay event breakpoints.
12084 (print_one_breakpoint): Ditto.
12085 (mention): Ditto.
12086 (bpstat_what): Do not stop for overlay event breakpoints.
12087 (delete_breakpoint): Don't delete overlay event breakpoints.
12088 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12089 (breakpoint_re_set): Re-create overlay event breakpoint.
12090
12091 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12092 (overlay_manual_command): Disable overlay breakpoints.
12093 (overlay_off_command): Disable overlay breakpoints.
12094
12095 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12096
12097 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12098 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12099 to here from config/tm-arm.h.
12100 (coff_sym_is_thumb): Make static.
12101 (arm_elf_make_msymbol_special): New function.
12102 (arm_coff_make_msymbol_special): New function.
12103 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12104 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12105 (coff_sym_is_thumb): Delete declaration.
12106 (arm_elf_make_msymbol_special): Declare.
12107 (arm_coff_make_msymbol_special): Declare.
12108 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12109 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12110
12111 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12112
12113 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12114
12115 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12116
12117 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12118 * gdbarch.c gdbarch.h: Regenerate.
12119 * arch-utils.c (default_print_float_info): New function.
12120 * arch-utils.h (default_print_float_info): Prototype it.
12121 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12122 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12123 (PRINT_FLOAT_INFO): Document it.
12124
12125 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12126 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12127 (PRINT_FLOAT_INFO): Define.
12128
12129 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12130
12131 * win32-nat.c (_initialize_check_for_gdb_ini):
12132 Add typecast to sprintf argument to suppress a warning.
12133
12134 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12135
12136 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12137 to allow easier handling of pass state.
12138 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12139 that gives exception name and address.
12140 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12141 and set last_sig value to ourstatus->value.sig. Some missing
12142 exceptions added.
12143 (child_continue): Correctly report continue_status.
12144 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12145 TARGET_SIGNAL_0 (new default value).
12146 (child_resume): consider sig argument passed to decide if
12147 the exception should be passed to debuggee or not.
12148
12149 2002-02-05 Michael Snyder <msnyder@redhat.com>
12150
12151 * regcache.c (fetch_register): Call target_fetch_register
12152 only if we don't call FETCH_PSEUDO_REGISTER.
12153 (store_register): Call target_store_register only if we
12154 don't call STORE_PSEUDO_REGISTER.
12155
12156 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12157
12158 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12159 ELF_MAKE_MSYMBOL_SPECIAL.
12160 * gdbarch.c, gdbarch.h: Regenerate.
12161 * arch-utils.c (default_make_msymbol_special): New function.
12162 * arch-utils.h (default_make_msymbol_special): Export.
12163 * elfread.c (elf_symtab_read): Compile use of
12164 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12165 multiarched.
12166 * coffread.c (coff_symtab_read): Ditto, for
12167 COFF_MAKE_MSYMBOL_SPECIAL.
12168
12169 2002-02-05 Jim Blandy <jimb@redhat.com>
12170
12171 * solib-svr4.c (svr4_truncate_ptr): New function.
12172 (svr4_relocate_section_addresses): Do the address arithmetic with
12173 the appropriate truncation for target addresses, even when
12174 CORE_ADDR is larger than a target address.
12175
12176 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12177
12178 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12179 to (int *).
12180
12181 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12182
12183 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12184 code.
12185
12186 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12187
12188 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12189
12190 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12191
12192 * gdbserver/linux-low.c: Remove unused include files.
12193
12194 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12195
12196 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12197 (read_inferior_memory): Use it.
12198 (write_inferior_memory): Likewise.
12199
12200 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12201
12202 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12203 grubbing through sys_errlist.
12204
12205 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12206
12207 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12208
12209 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12210 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12211
12212 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12213
12214 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12215 (do_sfunc, set_cmd_sfunc): New functions.
12216
12217 * command.h (struct cmd_list_element): Add field func.
12218 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12219 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12220 * cli/cli-decode.h: Ditto.
12221
12222 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12223 (help_all, help_cmd_list): Ditto.
12224 (find_cmd, complete_on_cmdlist): Ditto.
12225 * top.c (execute_command): Ditto.
12226
12227 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12228 function.sfunc.
12229
12230 * infcmd.c (notice_args_read): Fix function signature.
12231
12232 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12233 * cli/cli-decode.c (add_set_cmd): Ditto.
12234 * utils.c (initialize_utils): Ditto.
12235 * maint.c (_initialize_maint_cmds): Ditto.
12236 * infrun.c (_initialize_infrun): Ditto.
12237 * demangle.c (_initialize_demangler): Ditto.
12238 * remote.c (add_packet_config_cmd): Ditto.
12239 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12240 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12241 * proc-api.c (_initialize_proc_api): Ditto.
12242 * kod.c (_initialize_kod): Ditto.
12243 * valprint.c (_initialize_valprint): Ditto.
12244 * top.c (init_main): Ditto.
12245 * infcmd.c (_initialize_infcmd): Ditto.
12246 * corefile.c (_initialize_core): Ditto.
12247 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12248 * arch-utils.c (initialize_current_architecture): Ditto.
12249 (_initialize_gdbarch_utils): Ditto.
12250 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12251
12252 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12253 * wince.c (_initialize_inftarg): Ditto.
12254 * symfile.c (_initialize_symfile): Ditto.
12255 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12256 * language.c (_initialize_language): Ditto.
12257 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12258
12259 2002-02-04 Michael Snyder <msnyder@redhat.com>
12260
12261 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12262
12263 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12264
12265 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12266 Add rules for building the register data files.
12267
12268 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12269
12270 * regformats/regdat.sh: Add braces to the definition of
12271 expedite_regs_${arch}.
12272
12273 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12274
12275 * regformats/regdef.h (struct reg): Add comment describing the
12276 requirements for offset and size fields.
12277
12278 2002-02-04 Andreas Schwab <schwab@suse.de>
12279
12280 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12281 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12282
12283 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12284
12285 * gdbarch.sh (copyright): Update years in generated header.
12286 (SMASH_TEXT_ADDRESS): Add rule.
12287 * gdbarch.h, gdbarch.c: Re-generate.
12288 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12289 * dbxread.c: Likewise.
12290 * dwarfread.c: Likewise.
12291 * elfread.c: Likewise.
12292 * somread.c: Likewise.
12293
12294 * arm-tdep.c (arm_smash_text_address): New function.
12295 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12296
12297 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12298
12299 Add support for hardware watchpoints on win32 native.
12300 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12301 CONTEXT_DEBUG_REGISTERS.
12302 (dr variable): New variable. Static array containing a local copy
12303 of debug registers.
12304 (debug_registers_changed): New variable. Reflects when debug registers
12305 are changed and need to be written to inferior.
12306 (debug_registers_used): New variable. Reflects when any debug register
12307 was set, used when new threads are created.
12308 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12309 i386-nat code.
12310 (thread_rec): Set dr array if id is the thread of current_event .
12311 (child_continue, child_resume): Change the debug registers for all
12312 threads if debug_registers_changed.
12313 (child_add_thread): Change the debug registers if debug_registers_used.
12314 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12315 Link nm.h to new nm-cygwin.h file.
12316 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12317 of hardware registers.
12318
12319 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12320
12321 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12322 Restore behavour broken by 2002-01-20 Andrew Cagney
12323 <ac131313@redhat.com> IEEE_FLOAT removal.
12324
12325 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12326
12327 * c-valprint.c (c_val_print): Pass a proper valaddr to
12328 cp_print_class_method.
12329 * valops.c (search_struct_method): If there is only one method
12330 and args is NULL, return that method.
12331
12332 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12333
12334 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12335 accessing tag_name directly.
12336
12337 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12338
12339 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12340 of accessing tag_name directly.
12341
12342 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12343
12344 PR gdb/280
12345 * gdbtypes.c (replace_type): New function.
12346 * gdbtypes.h (replace_type): Add prototype.
12347 * stabsread.c (read_type): Use replace_type.
12348
12349 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12350
12351 * Makefile.in (memattr.o): Add missing dependencies rule.
12352
12353 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12354
12355 * breakpoint.c (break_at_finish_command): Really export.
12356 (break_at_finish_at_depth_command): Ditto.
12357 (tbreak_at_finish_command): Ditto.
12358 * hppa-tdep.c: Include completer.h.
12359 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12360 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12361
12362 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12363
12364 * utils.c (do_write): New function.
12365 (error_stream): Rewrite combining the code from error_begin and
12366 verror.
12367 (verror): Rewrite using error_stream.
12368 (error_begin): Delete function.
12369
12370 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12371
12372 * utils.c (error_begin): Make static.
12373 * defs.h (error_begin): Delete declaration.
12374
12375 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12376 (decode_line_1): Use cplusplus_error instead of error_begin,
12377 cplusplus_hint and return_to_top_level.
12378 * coffread.c (coff_symfile_read): Use error instead of error_begin
12379 and return_to_top_level.
12380 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12381
12382 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12383
12384 * language.h (type_error, range_error): Make string parameter
12385 constant.
12386 * language.c (warning_pre_print): Delete extern declaration.
12387 * dwarfread.c (warning_pre_print): Ditto.
12388 * language.c (type_error, range_error): Rewrite to use verror and
12389 vwarning instead of warning_begin.
12390
12391 2002-02-01 Michael Snyder <msnyder@redhat.com>
12392
12393 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12394 (set_ignore_count): Move misplaced comment back where it belongs.
12395
12396 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12397
12398 * command.h (NO_FUNCTION): Delete macro.
12399 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12400 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12401 * tracepoint.c (_initialize_tracepoint): Ditto.
12402 * cli/cli-decode.c (add_set_cmd): Ditto.
12403 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12404
12405 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12406
12407 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12408 Update ``this'' pointer when calling virtual functions.
12409
12410 2002-02-01 Michael Snyder <msnyder@redhat.com>
12411
12412 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12413 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12414
12415 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12416
12417 * regformats/reg-arm.dat: New file.
12418 * regformats/reg-i386.dat: New file.
12419 * regformats/reg-ia64.dat: New file.
12420 * regformats/reg-m68k.dat: New file.
12421 * regformats/reg-mips.dat: New file.
12422 * regformats/reg-ppc.dat: New file.
12423 * regformats/reg-sh.dat: New file.
12424 * regformats/regdef.h: New file.
12425 * regformats/regdat.sh: New file.
12426
12427 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12428
12429 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12430 (arm_frame_args_address, arm_frame_locals_address): New functions.
12431 (arm_frame_num_args): New function.
12432 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12433 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12434 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12435
12436 2002-01-31 Michael Snyder <msnyder@redhat.com>
12437
12438 * breakpoint.c (break_at_finish_command): Export.
12439 (break_at_finish_at_depth_command): Export.
12440 (tbreak_at_finish_command): Export.
12441 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12442 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12443 "txbreak" commands, which are HPPA specific.
12444
12445 * printcmd.c (disassemble_command): Remove an ancient
12446 artifact of an old merge.
12447
12448 * symfile.h (enum overlay_debugging_state):
12449 Define enum constant values for overlay mode.
12450 * symfile.c (overlay_debugging): Use enums instead of literals.
12451 (overlay_is_mapped, overlay_auto_command,
12452 overlay_manual_command): Ditto.
12453
12454 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12455 breakpoint_here_p, breakpoint_inserted_here_p,
12456 breakpoint_thread_match, bpstat_stop_status,
12457 describe_other_breakpoints, check_duplicates, clear_command):
12458 Coding standard fixes.
12459
12460 * target.c (target_xfer_memory): Add spaces, coding standard.
12461 (do_xfer_memory): Add missing line to trust-readonly
12462 code: check bfd SEC_READONLY flag for section.
12463
12464 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12465
12466 * PROBLEMS: Fix typo, 5.1->5.1.1.
12467
12468 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12469
12470 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12471 data symbols, since we search based on textlow and texthigh.
12472 (find_pc_sect_symtab): Likewise.
12473
12474 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12475
12476 * defs.h (vwarning): Declare.
12477 * utils.c (vwarning): New function.
12478 (warning): Call vwarning.
12479 (warning_begin): Delete function.
12480
12481 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12482 the warning message.
12483 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12484 warning_begin.
12485
12486 2002-01-30 Michael Snyder <msnyder@redhat.com>
12487
12488 * NEWS: Mention "set trust-readonly-sections" command.
12489 Mention generate-core-file command.
12490
12491 2002-01-15 Michael Snyder <msnyder@redhat.com>
12492
12493 * target.c: New command, "set trust-readonly-sections on".
12494 (do_xfer_memory): Honor the suggestion to trust readonly sections
12495 by reading them from the object file instead of from the target.
12496 (initialize_targets): Register command "set trust-readonly-sections".
12497
12498 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12499
12500 * parse.c (target_map_name_to_register): Simplify, search regs and
12501 pseudo-regs using a single loop.
12502
12503 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12504
12505 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12506
12507 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12508
12509 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12510 * config/i386/i386v42mp.mh: Add i387-nat.o .
12511 * i386v4-nat.c: Include i387-nat.h.
12512 (supply_fpregset): Use i387_supply_fsave.
12513 (fill_fpregset): Use i387_fill_fsave.
12514
12515 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12516
12517 * arm-tdep.c (arm_call_dummy_words): Define.
12518 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12519 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12520 (CALL_DUMMY_WORDS): Define.
12521 (arm_call_dummy_words): Declare.
12522 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12523 (arm_linux_call_dummy_words): Declare.
12524
12525 2002-01-30 Andreas Schwab <schwab@suse.de>
12526
12527 * m68klinux-nat.c: Fix last change to use regcache_collect
12528 instead of referencing registers[] directly.
12529
12530 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12531
12532 * parse.c (target_map_name_to_register): Delete code wrapped in
12533 #ifdef REGISTER_NAME_ALIAS_HOOK.
12534
12535 2002-01-28 Michael Snyder <msnyder@redhat.com>
12536
12537 * regcache.c (legacy_read_register_gen): Need to be able to
12538 read pseudo-register as well as real register.
12539 (legacy_write_register_gen): Ditto.
12540
12541 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12542
12543 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12544 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12545 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12546 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12547 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12548 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12549 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12550 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12551 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12552 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12553 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12554 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12555 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12556 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12557 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12558 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12559 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12560 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12561 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12562 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12563
12564 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12565
12566 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12567 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12568 (initialize_current_architecture): Update target_byte_order using
12569 information from BFD.
12570 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12571 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12572
12573 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12574
12575 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12576 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12577
12578 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12579 #ifdef INVALID_FLOAT.
12580 * infcmd.c (do_registers_info): Ditto.
12581 * values.c (unpack_double): Ditto. Add comment.
12582
12583 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12584 already commented out.
12585
12586 2002-01-26 Andreas Schwab <schwab@suse.de>
12587
12588 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12589 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12590 registers and add support for PTRACE_GETREGS.
12591
12592 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12593
12594 GDB 5.1.1 released from 5.1 branch.
12595 * NEWS: Add 5.1.1 news.
12596 * README: Sync with 5.1 branch.
12597
12598 2002-01-23 Fred Fish <fnf@redhat.com>
12599
12600 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12601 stabstring on initial malloc. Reallocing will copy it for us,
12602 if necessary.
12603
12604 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12605
12606 * Makefile.in (hpread_h): Delete.
12607 (HFILES_NO_SRCDIR): Remove hpread.h.
12608 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12609 (hpread.o): Update dependencies.
12610 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12611
12612 * hp-psymtab-read.c: Remove file.
12613 * hp-symtab-read.c: Remove file.
12614 * hpread.h: Remove file.
12615
12616 * hpread.c: Merge all contents of hp-psymtab-read.c,
12617 hp-symtab-read.c and hpread.h into this file, as it was prior to
12618 January 1999.
12619
12620 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12621 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12622 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12623 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12624
12625 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12626
12627 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12628 fill_gregset): Call gdbarch_tdep() just once, assign result to
12629 variable and use that, instead of calling the function several
12630 times.
12631
12632 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12633
12634 * configure.host: Accept sparcv9 as alias for sparc64.
12635 * configure.tgt: Likewise.
12636
12637 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12638
12639 * solib-aix5.c (build_so_list_from_mapfile)
12640 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12641 arguments is not reversed.
12642 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12643 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12644
12645 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12646
12647 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12648 modified version of obsolete sh_fetch_pseudo_register.
12649 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12650 (sh4_register_read): New function.
12651 (sh_pseudo_register_write): New function. Renamed and modified
12652 version of obsolete sh_store_pseudo_register.
12653 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12654 (sh4_register_write): New function.
12655 (sh_gdbarch_init): Remove setting of gdbarch function
12656 fetch_pseudo_register and store_pseudo_register. Remove setting of
12657 register_convert_to_raw, register_convert_to_virtual,
12658 register_convertible.
12659 (sh_sh4_register_convertible): Delete. No longer needed. All is
12660 taken care by architecture specific functions
12661 register_read/register_write.
12662 (sh_sh4_register_convert_to_virtual): Make static.
12663 (sh_sh4_register_convert_to_raw): Ditto.
12664
12665 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12666
12667 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12668 (floatformat_is_nan, floatformat_mantissa): Ditto.
12669
12670 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12671 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12672 builtin_type_ieee_double_little,
12673 builtin_type_ieee_double_littlebyte_bigword,
12674 builtin_type_m68881_ext, builtin_type_i960_ext,
12675 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12676 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12677 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12678 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12679
12680 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
12681
12682 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12683 parameter. Set frameless flag if it exists and depended of
12684 whether the scanned function is frameless or not.
12685 (xstormy16_skip_prologue): If function is frameless, return
12686 result of xstormy16_scan_prologue().
12687 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12688 call.
12689
12690 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
12691
12692 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12693 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12694 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12695 sh_sh4_register_byte, sh_sh4_register_raw_size,
12696 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12697 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12698 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12699 sh_store_pseudo_register, sh_do_pseudo_register): Call
12700 gdbarch_tdep() just once, assign result to variable and use that,
12701 instead of calling the function several times.
12702
12703 2002-01-20 Mark Kettenis <kettenis@gnu.org>
12704
12705 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12706 macros instead of LAST_FPU_CTRL_REGNUM.
12707 (store_register): Likewise.
12708
12709 2002-01-21 Jim Blandy <jimb@redhat.com>
12710
12711 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12712 is up-to-date before running the program, not just when a program
12713 exits.
12714
12715 2002-01-21 Fred Fish <fnf@redhat.com>
12716
12717 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12718 when we have found all instructions we are looking for.
12719
12720 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12721
12722 * arm-tdep.c (arm_register_name): New function.
12723 (arm_registers_names): Make static.
12724 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12725 (arm_register_name): Declare.
12726 (REGISTER_NAME): Use it.
12727
12728 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
12729 Kevin Buettner <kevinb@redhat.com>
12730
12731 Convert arm targets to new FRAME interface.
12732 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12733 (arm_frame_find_save_regs): Delete.
12734 (arm_frame_init_saved_regs): New.
12735 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12736 Allocate extra_info as required. Convert all uses of fsr.regs
12737 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12738 to use extra_info.
12739 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12740 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12741 (check_prologue_cache, save_prologue_cache): Likewise.
12742 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12743 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12744 (FRAME_FIND_SAVED_REGS): Delete.
12745 (arm_frame_find_saved_regs): Delete prototype.
12746 (arm_frame_init_saved_regs): New prototype.
12747 (FRAME_INIT_SAVED_REGS): Define.
12748
12749 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12750
12751 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12752
12753 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12754
12755 From Jeff Law <law@redhat.com>:
12756 * infttrace.c: Include <sys/pstat.h>.
12757 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12758 exec file if the ttrace equivalent fails.
12759
12760 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12761
12762 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12763 (closeLogFile): Ditto.
12764
12765 2002-01-20 Michael Chastain <mec@shout.net>
12766
12767 * top.c (print_gdb_version): Bump copyright year to 2002.
12768
12769 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12770
12771 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
12772 Zannoni and Eli Zaretskii.
12773
12774 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12775
12776 * buildsym.c: Update copyright years.
12777 * c-typeprint.c: Likewise.
12778 * dwarf2read.c: Likewise.
12779 * f-typeprint.c: Likewise.
12780 * gdbtypes.c: Likewise.
12781 * gdbtypes.h: Likewise.
12782 * hp-symtab-read.c: Likewise.
12783 * hpread.c: Likewise.
12784 * mdebugread.c: Likewise.
12785 * p-typeprint.c: Likewise.
12786
12787 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12788
12789 * remote-sim.c (gdbsim_open): Simplify code testing the macro
12790 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
12791 byte-order selectable.
12792 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
12793 * arch-utils.c: Ditto.
12794 (set_endian): Ditto.
12795 (set_endian_from_file): Ditto.
12796 * gdbserver/low-sim.c (create_inferior): Ditto.
12797 * gdbarch.sh: Ditto.
12798 * gdbarch.h: Re-generate.
12799 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12800 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
12801 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
12802 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12803 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12804 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
12805 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
12806 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
12807 macro definition.
12808 * config/mips/tm-wince.h: Remove #undef of macro
12809 TARGET_BYTE_ORDER_SELECTABLE.
12810 * config/sh/tm-wince.h: Ditto.
12811
12812 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12813
12814 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
12815 member function fields. Add accessor macro
12816 TYPE_FN_FIELD_ARTIFICIAL.
12817 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
12818 * c-typeprint.c (c_type_print_base): Skip artificial member
12819 functions.
12820
12821 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12822
12823 * f-typeprint.c: Delete unused function f_type_print_args.
12824 * p-typeprint.c: Delete unused function pascal_type_print_args.
12825
12826 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
12827
12828 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
12829 comment. Add ``artificial'' to ``union field_location''.
12830
12831 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
12832
12833 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
12834 * mdebugread.c (parse_symbol): Likewise.
12835 * stabsread.c (define_symbol): Likewise.
12836 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
12837 initializing TYPE_FIELD_BITPOS to n (obsolete).
12838 (hpread_doc_function_type): Likewise.
12839 * hpread.c (hpread_function_type): Likewise.
12840
12841 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12842
12843 * configure.in (host_makefile_frag): Only require a host makefile
12844 fragment when a native build.
12845 * configure: Re-generate.
12846
12847 2002-01-20 Andrew Cagney <ac131313@redhat.com>
12848
12849 * doublest.h (floatformat_from_type): Declare.
12850 * doublest.c (floatformat_from_type): New function.
12851 (convert_typed_floating): Use.
12852
12853 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
12854 call to function floatformat_from_type.
12855
12856 * gdbarch.sh (IEEE_FLOAT): Delete.
12857 * gdbarch.h, gdbarch.c: Re-generate.
12858 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
12859 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
12860 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
12861 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
12862 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
12863 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
12864 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
12865 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
12866 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
12867 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
12868 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
12869 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
12870
12871 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
12872 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
12873 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12874 * sh-tdep.c (sh_gdbarch_init): Ditto.
12875 * mips-tdep.c (mips_gdbarch_init): Ditto.
12876 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12877 * cris-tdep.c (cris_gdbarch_init): Ditto.
12878
12879 2002-01-20 Jiri Smid <smid@suse.cz>
12880
12881 * configure.host, configure.tgt: Support x86-64.
12882 * NEWS: Note new target x86-64.
12883
12884 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
12885 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
12886 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
12887 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
12888 x86-64-linux-nat.o): Fix dependencies.
12889
12890 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12891
12892 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
12893 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
12894 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
12895 * config/sparc/xm-sun4os4.h: Delete file.
12896 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
12897
12898 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12899
12900 * config/sparc/sparclynx.mh (XM_FILE): Delete.
12901 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
12902 * config/m68k/m68klynx.mh (XM_FILE): Delete.
12903 * config/i386/i386lynx.mh (XM_FILE): Delete.
12904 * config/rs6000/xm-rs6000ly.h: Delete file.
12905 * config/sparc/xm-sparclynx.h: Delete file.
12906 * config/m68k/xm-m68klynx.h: Delete file.
12907 * config/i386/xm-i386lynx.h: Delete file.
12908 * config/xm-lynx.h: Delete file.
12909 * config/djgpp/fnchange.lst: Update.
12910
12911 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12912
12913 * alpha-tdep.c (alpha_register_byte): New function.
12914 (alpha_register_raw_size): Ditto.
12915 (alpha_register_virtual_size): Ditto.
12916 (alpha_skip_prologue_internal): Renamed from
12917 alpha_skip_prologue.
12918 (alpha_skip_prologue): New version that calls
12919 alpha_skip_prologue_internal.
12920 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
12921 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
12922 second argument from alpha_skip_prologue.
12923 (REGISTER_BYTE): Use alpha_register_byte.
12924 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
12925 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
12926 (FRAMELESS_FUNCTION_INVOCATION): Use
12927 generic_frameless_function_invocation_not.
12928 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
12929 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
12930
12931 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12932
12933 * config/mips/xm-news-mips.h: Delete file.
12934 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
12935
12936 * config/m88k/xm-m88k.h: Delete file.
12937 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
12938 * config/m88k/xm-delta88v4.h: Ditto.
12939 * config/m88k/xm-delta88.h: Ditto.
12940
12941 * config/alpha/xm-fbsd.h: Delete file.
12942 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
12943
12944 * config/sparc/xm-sparc.h: Delete file.
12945 * Makefile.in (xm-sun4os4.h): Delete dependency.
12946 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
12947 * config/sparc/xm-sun4os4.h: Ditto.
12948 * config/sparc/xm-linux.h: Ditto.
12949
12950 * config/i386/xm-windows.h: Delete file.
12951
12952 2002-01-19 Andrew Cagney <ac131313@redhat.com>
12953
12954 * utils.c: Include <sys/param.h> for MAXPATHLEN.
12955 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
12956
12957 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12958
12959 * alpha-tdep.c (alpha_call_dummy_words): New.
12960 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
12961 (CALL_DUMMY_P): Define.
12962 (CALL_DUMMY_WORDS): Define.
12963 (SIZEOF_CALL_DUMMY_WORDS): Define.
12964
12965 2002-01-19 Per Bothner <per@bothner.com>
12966
12967 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
12968 isn't NULL, which can happen with some gcj-3.x-produced code.
12969
12970 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
12971
12972 * alpha-tdep.c (alpha_register_virtual_type): New function.
12973 (alpha_init_frame_pc_first): Ditto.
12974 (alpha_fix_call_dummy): Ditto.
12975 (alpha_store_struct_return): Ditto.
12976 (alpha_extract_struct_value_address): Ditto.
12977 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
12978 alpha_register_virtual_type.
12979 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
12980 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
12981 alpha_extract_struct_value_address.
12982 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
12983 (INIT_FRAME_PC): Use init_frame_pc_noop.
12984 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
12985
12986 2002-01-19 Mark Kettenis <kettenis@gnu.org>
12987
12988 * i386gnu-nat.c: Include "i386-tdep.h".
12989 (fetch_fpregs): Simplify code dealing with uninitialized floating
12990 point states such that it doesn't require FP7_REGNUM.
12991
12992 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
12993
12994 * alpha-tdep.c (frame_extra_info): New.
12995 (alpha_find_saved_regs): Make static. Use
12996 frame->extra_info.
12997 (alpha_frame_init_saved_regs): New function.
12998 (alpha_frame_saved_pc): Use frame->extra_info.
12999 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13000 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13001 (init_extra_frame_info): Rename to...
13002 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13003 (alpha_print_extra_frame_info): New function.
13004 (alpha_frame_locals_address): Ditto.
13005 (alpha_frame_args_address): Ditto.
13006 (alpha_pop_frame): Use frame->extra_info.
13007 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13008 alpha_frame_args_address.
13009 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13010 (alpha_find_saved_regs): Remove prototype.
13011 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13012 (EXTRA_FRAME_INFO): Remove.
13013 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13014 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13015
13016 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13017
13018 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13019 (alpha_cannot_fetch_register): Ditto.
13020 (alpha_cannot_store_register): Ditto.
13021 (alpha_register_convertible): Ditto.
13022 (alpha_use_struct_convention): Ditto.
13023 * config/alpha/tm-alpha.h: Update copyright years.
13024 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13025 (INNER_THAN): Use core_addr_lessthan.
13026 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13027 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13028 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13029 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13030 (FRAME_CHAIN): Remove unnecessary cast.
13031
13032 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13033
13034 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13035 obsolete.
13036
13037 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13038
13039 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13040 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13041 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13042 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13043 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13044 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13045 * x86-64-linux-nat.c: Ditto.
13046
13047 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13048
13049 * alpha-tdep.c (alpha_register_name): New function.
13050 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13051 (REGISTER_NAME): Define.
13052
13053 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13054
13055 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13056
13057 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13058
13059 * alpha-tdep.c: Update copyright years.
13060 (alpha_next_pc): New function.
13061 (alpha_software_single_step): Ditto.
13062 * config/alpha/tm-alpha.h: Add prototype for
13063 alpha_software_single_step.
13064
13065 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13066
13067 * alphabsd-nat.c: Update copyright years.
13068 (fill_gregset): Use regcache_collect.
13069 (fill_fpregset): Likewise.
13070 (fetch_inferior_registers): Only fetch integer registers
13071 if requested to do so.
13072 (store_inferior_registers): Only store integer registers
13073 if requested to do so.
13074
13075 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13076
13077 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13078 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13079 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13080 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13081 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13082 * config/arm/linux.mh (XDEPFILES): Delete.
13083 * config/arm/nbsd.mh (XDEPFILES): Delete.
13084 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13085 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13086 * config/i386/i386m3.mh (XDEPFILES): Delete.
13087 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13088 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13089 * config/i386/fbsd.mh (XDEPFILES): Delete.
13090 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13091 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13092 * config/i386/i386v4.mh (XDEPFILES): Delete.
13093 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13094 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13095 * config/i386/i386aix.mh (XDEPFILES): Delete.
13096 * config/i386/go32.mh (XDEPFILES): Delete.
13097 * config/i386/cygwin.mh (XDEPFILES): Delete.
13098 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13099 * config/i386/i386mach.mh (XDEPFILES): Delete.
13100 * config/i386/i386v32.mh (XDEPFILES): Delete.
13101 * config/i386/linux.mh (XDEPFILES): Delete.
13102 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13103 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13104 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13105 * config/i386/i386sco.mh (XDEPFILES): Delete.
13106 * config/i386/i386v.mh (XDEPFILES): Delete.
13107 * config/i386/nbsd.mh (XDEPFILES): Delete.
13108 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13109 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13110 * config/i386/symmetry.mh (XDEPFILES): Delete.
13111 * config/i386/obsd.mh (XDEPFILES): Delete.
13112 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13113 * config/ia64/linux.mh (XDEPFILES): Delete.
13114 * config/ia64/aix.mh (XDEPFILES): Delete.
13115 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13116 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13117 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13118 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13119 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13120 * config/m68k/linux.mh (XDEPFILES): Delete.
13121 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13122 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13123 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13124 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13125 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13126 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13127 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13128 * config/m88k/delta88.mh (XDEPFILES): Delete.
13129 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13130 * config/m88k/m88k.mh (XDEPFILES): Delete.
13131 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13132 * config/mips/linux.mh (XDEPFILES): Delete.
13133 * config/mips/irix6.mh (XDEPFILES): Delete.
13134 * config/mips/irix5.mh (XDEPFILES): Delete.
13135 * config/mips/irix4.mh (XDEPFILES): Delete.
13136 * config/mips/irix3.mh (XDEPFILES): Delete.
13137 * config/mips/decstation.mh (XDEPFILES): Delete.
13138 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13139 (NATDEPFILES): Move core-aout.o to here.
13140 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13141 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13142 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13143 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13144 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13145 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13146 * config/pa/hpux11.mh (XDEPFILES): Delete.
13147 * config/powerpc/aix.mh (XDEPFILES): Delete.
13148 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13149 * config/powerpc/linux.mh (XDEPFILES): Delete.
13150 * config/romp/rtbsd.mh: Rename XDEPFILES.
13151 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13152 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13153 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13154 * config/s390/s390.mh (XDEPFILES): Delete.
13155 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13156 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13157 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13158 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13159 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13160 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13161 * config/sparc/linux.mh (XDEPFILES): Delete.
13162 * config/vax/vaxult.mh (XDEPFILES): Delete.
13163 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13164 * Makefile.in (DEPFILES): Remove XDEPFILES.
13165
13166 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13167
13168 * utils.c (internal_verror): Fix comments, default is yes not no.
13169 Update queries to match. Default to quit and dump core.
13170
13171 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13172
13173 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13174 copyright.
13175 * defs.h, event-top.c, gdbcmd.h: Ditto.
13176 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13177 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13178 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13179 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13180 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13181 * mi/mi-main.c:Ditto.
13182
13183 * stack.c, symfile.c: Update copyright.
13184
13185 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13186
13187 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13188 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13189 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13190 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13191
13192 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13193
13194 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13195 * gdbserver/low-lynx.c (myattach): Likewise.
13196 * gdbserver/low-nbsd.c (myattach): Likewise.
13197 * gdbserver/low-sim.c (myattach): Likewise.
13198 * gdbserver/low-sparc.c (myattach): Likewise.
13199 * gdbserver/low-sun3.c (myattach): Likewise.
13200
13201 * gdbserver/low-linux.c (myattach): New function.
13202
13203 * gdbserver/server.c (attach_inferior): New function.
13204 (main): Handle "--attach".
13205
13206 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13207
13208 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13209 maintainer.
13210
13211 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13212
13213 * c-typeprint.c (is_type_conversion_operator): Add additional
13214 check for non-conversion operators.
13215
13216 2002-01-15 Michael Snyder <msnyder@redhat.com>
13217
13218 * linux-proc.c: Add "info proc" command, a la procfs.c.
13219 (read_mapping): New function, abstract and re-use code.
13220 (linux_find_memory_regions): Use new func read_mapping.
13221 (linux_info_proc_cmd): New function, implement "info proc".
13222 (_initialize_linux_proc): Add new command "info proc".
13223
13224 2002-01-15 Michael Snyder <msnyder@redhat.com>
13225
13226 * symfile.c (generic_load): Use bfd_map_over_sections method
13227 instead of manipulating bfd structure members directly.
13228 (add_section_size_callback): New function, bfd sections callback
13229 used by generic_load.
13230 (load_sections_callback): New function, bfd sections callback
13231 used by generic_load.
13232
13233 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13234
13235 [Based on work by Jim Blandy]
13236 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13237 (builtin_type_vec128): Export.
13238 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13239 types.
13240 (builtin_type_vec128): New builtin type for 128 bit vector
13241 registers.
13242 (build_gdbtypes): Initialize builtin_type_v16qi and
13243 builtin_type_v8hi. Create the vec128 register builtin type
13244 structure.
13245 (build_builtin_type_vec128): New function.
13246 (_initialize_gdbtypes): Register builtin_type_v16qi and
13247 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13248 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13249 AltiVec register to new builtin type.
13250
13251 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13252
13253 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13254 to make_cv_type.
13255
13256 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13257
13258 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13259 CLEAN_UP_REGISTER_VALUE.
13260 * regcache.c (supply_register): Update only call.
13261
13262 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13263
13264 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13265 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13266 a29k-*-vxworks* targets as obsolete.
13267
13268 2002-01-14 Michael Snyder <msnyder@redhat.com>
13269
13270 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13271 until we can resolve portability issues.
13272 * gregset.h: Remove references to fpxregs.
13273 * gcore.c (gcore_command): Initialize note_sec to NULL.
13274
13275 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13276
13277 * signals.c (target_signal_to_name): Rewrite. Only use
13278 signals[].name when in bounds and non-NULL.
13279
13280 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13281
13282 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13283 * signals.c (target_signal_to_name): Verify that SIG is within the
13284 bounds of the signals array.
13285
13286 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13287
13288 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13289
13290 2002-01-13 Keith Seitz <keiths@redhat.com>
13291
13292 * stack.c (print_frame_info_base): Print the frame's pc
13293 only if when print_frame_info_listing_hook is not defined.
13294
13295 2002-01-13 Keith Seitz <keiths@redhat.com>
13296
13297 * varobj.c (varobj_set_value): Make sure that there were no
13298 errors evaluating the object before attempting to set its
13299 value.
13300 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13301 so this offset adjustment is no longer necessary.
13302 (create_child): Don't set the error flag if the child is
13303 a CPLUS_FAKE_CHILD.
13304 (value_of_child): If value_fetch_lazy fails, return NULL
13305 so that callers will be notified that an error occurred.
13306 (c_value_of_variable): Delay check of variable's validity
13307 until later. We actually want all structs and unions to have
13308 the value "{...}".
13309 Do not return "???" for variables which could not be evaluated.
13310 This error condition must be returned to the caller so that it
13311 can get the error condition from gdb.
13312 (cplus_name_of_child): Adjust index for vptr before figuring
13313 out the name of the child.
13314 (cplus_value_of_child): If a child's (real) parent is not valid,
13315 don't even bother trying to give a value for it. Just return
13316 an error. Change all instances in this function.
13317 (cplus_type_of_child): If our parent is one of the "fake"
13318 parents, we need to get at the type of the real parent, and
13319 derive the child's true type using this information.
13320
13321 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13322
13323 From 2002-01-09 John Marshall <johnm@falch.net>:
13324 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13325 sources.redhat.com, and tweak some related URLs which had
13326 suffered from linkrot.
13327
13328 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13329
13330 From Jeff law:
13331 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13332 structures passed in registers.
13333
13334 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13335
13336 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13337 white space which prevented compilation. Reported by DSK
13338 <dsk@student.unsw.edu.au>.
13339
13340 2002-01-11 Michael Snyder <msnyder@redhat.com>
13341
13342 * symfile.c (build_section_addr_info_from_section_tab):
13343 Use bfd access method instead of manipulating bfd directly.
13344 (syms_from_objfile): Ditto.
13345 (simple_overlay_update_1): Ditto.
13346 (simple_overlay_update): Ditto.
13347 (generic_load): Ditto.
13348 (overlay_unmapped_address): FIXME comment, bfd access methods.
13349 (sections_overlap): FIXME comment, bfd access methods.
13350 (pc_in_mapped_range): FIXME comment, bfd access methods.
13351 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13352 (section_is_mapped): FIXME comment, bfd access methods.
13353 (section_is_overlay): FIXME comment, bfd access methods.
13354
13355 * symfile.c (generic_load): Whitespace and long line cleanups.
13356 Remove duplicate variable, change several local variables to
13357 more appropriate data types.
13358 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13359
13360 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13361
13362 From Peter Schauer:
13363 * language.c (longest_local_hex_string_custom): Use phex_nz to
13364 convert NUM to a hex string.
13365
13366 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13367
13368 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13369 the function.
13370 Update Copyright year.
13371
13372 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13373
13374 * language.c (longest_raw_hex_string): Delete unused function.
13375
13376 2002-01-11 Petr Sorfa <petrs@caldera.com>
13377
13378 * MAINTAINERS (write-after-approval): Add myself.
13379 * dwarf2read.c (read_tag_string_type): Handling of
13380 DW_AT_byte_size.
13381 (read_tag_string_type): FORTRAN fix to prevent propagation of
13382 first string size.
13383 (set_cu_language): Handling of DW_LANG_Fortran95
13384
13385 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13386
13387 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13388 GETPID(inferior_ptid).
13389 (store_inferior_registers): Likewise.
13390
13391 2002-01-10 Jason Merrill <jason@redhat.com>
13392
13393 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13394 Fix DW_OP_minus.
13395
13396 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13397
13398 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13399 and bfd/elf32-sh-nbsd.c.
13400
13401 2002-01-10 Michael Snyder <msnyder@redhat.com>
13402
13403 * NEWS: Mention --pid and corefile/proc-id behavior change.
13404
13405 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13406 * gcore.c: Include cli/cli-decode.h instead of command.h.
13407
13408 * main.c (captured_main): Add new command line option "--pid".
13409 If the second command line argument (following the symbol-file)
13410 begins with a digit, try to attach to it before trying to open
13411 it as a corefile.
13412 (print_gdb_help): Document the "--pid" argument.
13413
13414 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13415
13416 * completer.c (command_completer): New function.
13417
13418 * completer.h <command_completer>: Add prototype.
13419
13420 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13421 completer for the "help" command.
13422
13423 2002-01-09 Jason Merrill <jason@redhat.com>
13424
13425 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13426
13427 2002-01-09 Michael Snyder <msnyder@redhat.com>
13428
13429 * i386-linux-nat.c (fill_fpxregset): Make global.
13430 (store_fpxregset): Ditto.
13431
13432 * gregset.h (gdb_fpxregset_t): Define.
13433 (supply_fpxregset): Prototype.
13434 (fill_fpxregset): Prototype.
13435
13436 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13437
13438 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13439
13440 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13441 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13442 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13443
13444 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13445
13446 * MAINTAINERS: Update target maintainer rules so that any
13447 Maintainer can approve a tested patch for a maintenance-only
13448 target.
13449
13450 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13451
13452 * MAINTAINERS (write-after-approval): Add myself.
13453
13454 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13455 IN_SIGTRAMP.
13456
13457 2002-01-08 Michael Snyder <msnyder@redhat.com>
13458
13459 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13460 real name of the executable, rather than the /proc name.
13461
13462 2002-01-03 Michael Snyder <msnyder@redhat.com>
13463
13464 Implement a "generate-core-file" command in gdb, save target state.
13465 * gcore.c: New file. Implement new command 'generate-core-file'.
13466 Save a corefile image of the current state of the inferior.
13467 * linux-proc.c: Add linux-specific code for saving corefiles.
13468 * target.h (struct target_ops): Add new target vectors for saving
13469 corefiles; to_find_memory_regions and to_make_corefile_notes.
13470 (target_find_memory_regions): New macro.
13471 (target_make_corefile_notes): New macro.
13472 * target.c (update_current_target): Inherit new target methods.
13473 (dummy_find_memory_regions): New place-holder method.
13474 (dummy_make_corefile_notes): New place-holder method.
13475 (init_dummy_target): Initialize new dummy target vectors.
13476 * exec.c (exec_set_find_memory_regions): New function.
13477 Allow the exec_ops vector for memory regions to be taken over.
13478 (exec_make_note_section): New function, target vector method.
13479 * defs.h (exec_set_find_memory_regions): Export prototype.
13480 * procfs.c (proc_find_memory_regions): New function, corefile method.
13481 (procfs_make_note_section): New function, corefile method.
13482 (init_procfs_ops): Set new target vector pointers.
13483 (find_memory_regions_callback): New function.
13484 (procfs_do_thread_registers): New function.
13485 (procfs_corefile_thread_callback): New function.
13486 * sol-thread.c (sol_find_memory_regions): New function.
13487 (sol_make_note_section): New function.
13488 (init_sol_thread_ops): Initialize new target vectors.
13489 * inftarg.c (inftarg_set_find_memory_regions): New function.
13490 Allow to_find_memory_regions vector to be taken over.
13491 (inftarg_set_make_corefile_notes): New function.
13492 Allow to_make_corefile_notes vector to be taken over.
13493 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13494 interface layer if not target_has_execution (may be a corefile).
13495 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13496 * config/sparc/sun4sol2.mh: Ditto.
13497 * config/alpha/alpha-linux.mh: Ditto.
13498 * config/arm/linux.mh: Ditto.
13499 * config/i386/x86-64linux.mh: Ditto.
13500 * config/ia64/linux.mh: Ditto.
13501 * config/m68k/linux.mh: Ditto.
13502 * config/mips/linux.mh: Ditto.
13503 * config/powerpc/linux.mh: Ditto.
13504 * config/sparc/linux.mh: Ditto.
13505
13506 2002-01-07 Michael Snyder <msnyder@redhat.com>
13507
13508 * arm-linux-nat.c: Remove references to regcache.c internal data
13509 (registers[] and register_valid[]).
13510
13511 2002-01-07 Michael Snyder <msnyder@redhat.com>
13512
13513 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13514 so that attaching to a pid will automatically read the process's
13515 symbol file and shlibs.
13516 * Makefile.in: Add rule for linux-proc.o.
13517 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13518 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13519 * config/arm/linux.mh: Ditto.
13520 * config/i386/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
13528 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13529
13530 * win32-nat.c: Add i386-tdep.h dependency.
13531
13532 2002-01-07 Michael Snyder <msnyder@redhat.com>
13533
13534 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13535 instead of bfd_get_arch_size. Don't bail out just because
13536 there's no exec_bfd.
13537
13538 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13539 * p-valprint.c (pascal_object_print_value): Ditto.
13540 * somread.c (som_symtab_read): Ditto.
13541 * symfile.c (simple_free_overlay_region_table): Ditto.
13542 * valops.c (value_assign): Ditto.
13543
13544 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13545 use tilde_expand and strerror for opening save-tracepoints file.
13546
13547 * thread-db.c (thread_db_new_objfile): Indendation fix.
13548
13549 * infptrace.c (GDB_MAX_ALLOCA): New define.
13550 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13551 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13552 can be overridden with whatever value is appropriate to the host).
13553 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13554 alloca to allocate potentially large buffer.
13555 * rs6000-nat.c (child_xfer_memory): Ditto.
13556 * symm-nat.c (child_xfer_memory): Ditto.
13557 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13558
13559 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13560
13561 From Nick Clifton <nickc@redhat.com>
13562 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13563
13564 2002-01-07 Michael Snyder <msnyder@redhat.com>
13565
13566 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13567 Don't use exec_bfd if it's NULL.
13568
13569 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13570
13571 * valops.c (value_arg_coerce): Fix formatting.
13572
13573 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13574
13575 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13576 * gnu-nat.c: Ditto.
13577
13578 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13579
13580 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13581 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13582 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13583 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13584 z8k-coff have not been multi-arched. Update z8k-coff build
13585 status.
13586
13587 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13588
13589 * MAINTAINERS: Mark a29k target as obsolete.
13590 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13591 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13592 comments.
13593 * NEWS: Note that a29k targets are obsolete.
13594 * a29k-tdep.c: Mark as obsolete.
13595 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13596 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13597 a29k-*-vxworks* targets as obsolete.
13598 * remote-adapt.c: Obsolete.
13599 * remote-eb.c: Obsolete.
13600 * remote-mm.c: Obsolete.
13601 * remote-udi.c: Obsolete.
13602 * config/a29k/a29k-udi.mt: Obsolete.
13603 * config/a29k/a29k.mt: Obsolete.
13604 * config/a29k/tm-a29k.h: Obsolete.
13605 * config/a29k/tm-vx29k.h: Obsolete.
13606 * config/a29k/vx29k.mt: Obsolete.
13607
13608 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13609
13610 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13611 with BFD_ENDIAN_BIG.
13612
13613 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13614
13615 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13616 * configure, config.in: Re-generate.
13617 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13618 * defs.h: Do not include <endian.h>.
13619
13620 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13621
13622 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13623 * config.in: Regenerate.
13624 * configure.in: Update copyright years.
13625 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13626 * configure: Regenerate.
13627 * i386bsd-nat.c: Update copyright years.
13628 (fill_gregset): Use regcache_collect.
13629 (fetch_inferior_registers): Only fetch integer registers
13630 if requested to do so. Add support for XMM registers
13631 using PT_GETXMMREGS.
13632 (store_inferior_registers): Only store integer registers
13633 if requested to do so. Add support for XMM registers
13634 using PT_SETXMMREGS.
13635 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13636 (store_inferior_registers): Remove.
13637 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13638 (fetch_elfcore_registers): New function.
13639 (i386nbsd_elfcore_fns): New.
13640 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13641 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13642 i386bsd-nat.o.
13643 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13644 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13645 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13646 * config/i386/tm-nbsd.h: Update copyright years.
13647 (HAVE_SSE_REGS): Define.
13648 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13649 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13650 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13651 (SIGCONTEXT_PC_OFFSET): Remove.
13652 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13653
13654 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13655
13656 * configure.tgt: Remove powerpc-*-macos* target.
13657 * config/m68k/xm-mpw.h: Delete file.
13658 * config/xm-mpw.h: Delete file.
13659 * ser-mac.c: Delete file.
13660 * mpw-make.sed: Delete file.
13661 * mpw-config.in: Delete file.
13662 * mac-xdep.c: Delete file.
13663 * mac-gdb.r: Delete file.
13664 * mac-defs.h: Delete file.
13665 * mac-nat.c: Delete file.
13666 * config/powerpc/macos.mh: Delete file.
13667 * config/powerpc/macos.mt: Delete file.
13668 * config/powerpc/nm-macos.h: Delete file.
13669 * config/powerpc/tm-macos.h: Delete file.
13670 * source.c (openp, open_source_file): Remove obsolete code.
13671 * top.c (gdb_readline): Ditto.
13672 * utils.c (query): Ditto.
13673 * event-top.c (display_gdb_prompt): Ditto.
13674 * Makefile.in (ser-mac.o): Delete obsolete target.
13675 * NEWS: Update.
13676
13677 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13678
13679 * defs.h (BIG_ENDIAN): Delete macro definition.
13680 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13681 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13682 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13683 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13684 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13685 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13686 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13687 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13688 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13689 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13690 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13691 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13692 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13693 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13694 * gdbarch.c: Re-generate.
13695
13696 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13697
13698 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13699 for core files.
13700
13701 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13702
13703 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13704
13705 2002-01-04 Andrew Cagney <ac131313@redhat.com>
13706
13707 * value.h (value_ptr): Delete typedef.
13708
13709 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13710
13711 * i386nbsd-nat.c: Update copyright years.
13712 Include i386-tdep.h.
13713
13714 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
13715
13716 * stabsread.c: Update copyright years.
13717
13718 From Debashis Mahata <debashis.mahata@wipro.com>:
13719 (read_struct_fields): Deal with Sun C compiler erroneous stab
13720 output for structs and unions.
13721 Fix PR gdb/269.
13722
13723 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13724
13725 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13726 prototype.
13727
13728 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13729
13730 * cp-abi.c: Fix whitespace.
13731 (baseclass_offset): New wrapper function.
13732 * cp-abi.h (baseclass_offset): Add prototype.
13733 (struct cp_abi_ops): Add baseclass_offset pointer.
13734
13735 * valops.c (vb_match): Move to...
13736 * gnu-v2-abi.c (vb_match): here.
13737 * valops.c (baseclass_offset): Move to...
13738 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13739
13740 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13741
13742 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13743 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13744 * hpacc-abi.c (init_hpacc_ops): Likewise.
13745
13746 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
13747
13748 * valops.c (find_overload_match): Accept obj as a
13749 reference parameter. Update it before returning.
13750 * value.h (find_overload_match): Update prototype.
13751 * eval.c (evaluate_subexp_standard): Pass object to
13752 find_overload_match by reference.
13753
13754 2002-01-03 Andrew Cagney <ac131313@redhat.com>
13755
13756 * valarith.c: Replace value_ptr with struct value pointer. Remove
13757 register attribute from value declarations.
13758 * valops.c: Ditto.
13759 * value.h: Ditto.
13760 * scm-lang.c (scm_lookup_name): Ditto.
13761
13762 2002-01-03 Michael Snyder <msnyder@redhat.com>
13763
13764 Abstract the functionality of iterating over mapped memory
13765 regions into a general purpose iterator function.
13766 * procfs.c (iterate_over_mappings): New function, general purpose
13767 iterator for memory sections.
13768 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13769 (solib_mappings_callback): New function, callback for above.
13770 (info_proc_mappings): Reimpliment using iterate_over_mappings.
13771 (info_mappings_callback): New function, callback for above.
13772
13773 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
13774
13775 2002-01-01 Mark Kettenis <kettenis@gnu.org>
13776
13777 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
13778 * i386-tdep.c: Include "elf-bfd.h".
13779 (process_note_abi_tag_sections): New function.
13780 (i386_gdbarch_init): Add code to recognize various OS/ABI
13781 combinations.
13782
13783 * maint.c (_initialize_maint_cmds): Add missing \ in
13784 string-literal.
13785
13786 For older changes see ChangeLog-2001
13787 \f
13788 Local Variables:
13789 mode: change-log
13790 left-margin: 8
13791 fill-column: 74
13792 version-control: never
13793 End:
This page took 0.298136 seconds and 5 git commands to generate.