* elfxx-ia64.c (elfNN_ia64_relax_section): Handle PCREL21BI.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a9a9bd0f
DC
12002-12-05 David Carlton <carlton@math.stanford.edu>
2
3 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
4 DW_TAG_member as well as a declaration as being a C++ static data
5 member.
6 (read_structure_scope): Combine tests for DW_TAG_member and
7 DW_TAG_variable.
8
614b3b14
DC
92002-12-05 David Carlton <carlton@math.stanford.edu>
10
11 * linespec.c (decode_compound): New function.
12 (decode_line_1): Move code into decode_compound.
13
e4051eeb
DC
142002-12-05 David Carlton <carlton@math.stanford.edu>
15
16 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
17 argument.
18 (lookup_symbol_aux): Do the 'field_of_this' check before checking
19 the static block. See PR gdb/804.
20
f61e8913
DC
212002-12-05 David Carlton <carlton@math.stanford.edu>
22
23 * symtab.c (lookup_symbol_aux_block): New function.
24 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
25
1e9f55d0
AC
262002-12-05 Andrew Cagney <ac131313@redhat.com>
27
28 * gdbarch.sh: Dump the predicate function and macro values.
29 (read): Print error on standard error.
30 * gdbarch.c: Regenerate.
31
d1973055
KB
322002-12-04 Kevin Buettner <kevinb@redhat.com>
33
34 * Makefile.in (mips_tdep_h): Define.
35 (mips-tdep.o): Add mips_tdep_h to dependency list.
36 * mips-tdep.h: New file.
37 * mips-tdep.c (mips-tdep.h): Include.
38 (enum mips_abi): Move to mips-tdep.h.
39 (mips_abi): New function.
40
f1253c7b
DC
412002-12-04 David Carlton <carlton@math.stanford.edu>
42
43 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
44
406bc4de
DC
452002-12-04 David Carlton <carlton@math.stanford.edu>
46
47 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
48 function.
49 (lookup_symbol_aux_minsyms): New function.
50
2a3750c5
JB
512002-12-04 J. Brobecker <brobecker@gnat.com>
52
53 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
54
961d8652
JB
552002-12-04 J. Brobecker <brobecker@gnat.com>
56
57 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
58 which is an obsolete macro name.
59
38c52d5a
DJ
602002-12-04 Daniel Jacobowitz <drow@mvista.com>
61
62 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
63 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
64
d8ef46f5
DJ
652002-12-03 H.J. Lu (hjl@gnu.org)
66
67 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
68 (create_breakpoints): Make sure the addr_string field is not
69 NULL.
70
02ae7771
AC
712002-12-03 Andrew Cagney <ac131313@redhat.com>
72
73 * sparc-nat.c (fetch_inferior_registers)
74 (store_inferior_registers): Add comment on problem of LWP vs
75 threads.
76
77 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
78 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
79 (lin_lwp_store_registers): Remove.
80 (init_lin_lwp_ops): Use fetch_inferior_registers
81 and store_inferior_registers directly.
82 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
83 (store_inferior_registers): Likewise.
84 Fix PR gdb/725.
85
7a424e99
AC
862002-12-03 Andrew Cagney <ac131313@redhat.com>
87
88 * frame.h (get_frame_id): Convert to a function.
89 (null_frame_id, frame_id_p): Declare.
90 (frame_id_eq, frame_id_inner): Declare.
91 (frame_id_build): New function.
92 * frame.c (get_frame_id): Update. Use null_frame_id.
93 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
94 frame_id_inner.
95 (null_frame_id, frame_id_p): Define.
96 (frame_id_eq, frame_id_inner): Define.
97 (frame_id_build): New function.
98 * varobj.c (varobj_create): Update.
99 (varobj_update): Update.
100 * valops.c (value_assign): Update.
101 (new_root_variable): Update.
102 * infrun.c (save_inferior_status): Update.
103 * breakpoint.c (watch_command_1): Update.
104
891c7f5f
JB
1052002-12-03 J. Brobecker <brobecker@gnat.com>
106
107 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
108 (SNAP2): Likewise.
109
144da3c1
AC
1102002-12-03 Andrew Cagney <cagney@redhat.com>
111
46248966
AC
112 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
113 patch.
114
144da3c1
AC
115 * PROBLEMS: Mention PR gdb/725.
116
03c6228e
AS
1172002-12-03 Andreas Schwab <schwab@suse.de>
118
119 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
120
36e53c63
AF
1212002-12-02 Adam Fedor <fedor@gnu.org>
122 Klee Dienes <kdienes@apple.com>
123
124 * objc-lang.c (objc_printstr): Add width arg to match
125 printstr prototype.
126 (compare_selectors): Add 'const' to arg types.
127 (compare_classes): Likewise.
128 (find_imps): Cast msym pointer to avoid compiler warning.
129 (print_object_command): Validate the address before
130 passing it to the print routine.
131 (find_objc_msgcall_submethod): Change function argument to
132 return an int.
133 * objc-lang.h: Add 'extern' to all function declarations.
134 (value_nsstring): Add declaration.
135
504d5c7e
JB
1362002-12-02 J. Brobecker <brobecker@gnat.com>
137
138 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
139 Fixes a build failure on HP/UX.
140
141 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
142 failure on HP/UX.
143 (hpread_has_name): Advance declaration to avoid a compilation warning.
144 (pst_syms_count): Add missing variable type. By change, the compiler
145 was defaulting to int, which seems a good choice. Fixes a compilation
146 warning.
147 (pst_syms_size): Likewise.
148
59623e27
JB
1492002-12-02 J. Brobecker <brobecker@gnat.com>
150
151 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
152 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
153 later to set the proper gdbarch methods depending on the osabi.
154 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
155
a09a320d
JB
1562002-12-02 J. Brobecker <brobecker@gnat.com>
157
158 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
159 * osabi.c (gdb_osabi_name): Add strings images for the two new
160 enum values.
161 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
162
8a81a99e
AC
1632002-12-02 Andrew Cagney <ac131313@redhat.com>
164
165 * MAINTAINERS (Java): Global maintainers are responible for Java.
166 (Past Maintainers): Mention both Anthony Green and Per Bothner as
167 part Java maintainers.
168
7af35dad
JB
1692002-12-02 J. Brobecker <brobecker@gnat.com>
170
171 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
172 Fixes a compilation failure on AiX.
173
f4ede9bc
JB
1742002-12-02 J. Brobecker <brobecker@gnat.com>
175
176 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
177 why aix-thread.o is not listed.
178
ae45cd16
AC
1792002-12-01 Andrew Cagney <ac131313@redhat.com>
180
181 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
182 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
183 * gdbarch.h, gdbarch.c: Re-generate.
184 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
185 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
186 * config/pa/tm-hppa.h, frame.h: Update.
187 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
188 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
189 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
190 * cris-tdep.c, alpha-tdep.c: Update.
191 * frame.c (set_unwind_by_pc, create_new_frame): Use either
192 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
193 (get_prev_frame): Ditto.
194
020cc13c
AC
1952002-11-30 Andrew Cagney <cagney@redhat.com>
196
197 * exec.c (xfer_memory): Replace boolean with int.
198 * p-exp.y: Use 0 instead of false.
199 * corelow.c (gdb_check_format): Change return type to int from
200 boolean.
201 * utils.c: Don't include <curses.h> or <term.h> first.
202
1d9b2aa8
SC
2032002-11-29 Stephane Carrez <stcarrez@nerim.fr>
204
205 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
206 (m68hc11_register_byte): Remove.
207 (m68hc11_gdbarch_init): Don't set the above.
208
a193e397
AC
2092002-11-29 Andrew Cagney <cagney@redhat.com>
210
211 * remote-mips.c (mips_initialize): Force a selected frame rebuild
212 by calling get_selected_frame.
213 * ocd.c (ocd_start_remote): Use get_selected frame instead of
214 set_current_frame, create_new_frame, select_frame and
215 get_current_frame.
216 * remote-e7000.c (e7000_start_remote): Ditto.
217 * remote-mips.c (common_open): Ditto
218 * remote-rdp.c (remote_rdp_open): Ditto.
219
b5fc49aa
AS
2202002-11-29 Andreas Schwab <schwab@suse.de>
221
222 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
223 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
224 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
225 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
226 read_memory_unsigned_integer instead of read_memory_integer when
227 dealing with addresses and instruction opcodes.
228 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
229 (m68k_linux_frame_saved_pc): Likewise.
230
6e7f8b9c
AC
2312002-11-29 Andrew Cagney <ac131313@redhat.com>
232
233 * stack.c (selected_frame, select_frame): Move from here ...
234 * frame.c (selected_frame, select_frame): ... to here. Include
235 "language.h".
236 * Makefile.in (frame.o): Update dependencies.
237 * frame.c (get_selected_frame): New function.
238 * frame.h (get_selected_frame): Declare.
239 (deprecated_selected_frame): Rename selected_frame.
240 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
241 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
242 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
243 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
244 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
245 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
246 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
247 * z8k-tdep.c, cli/cli-cmds.c: Update.
248
805e2818
AC
2492002-11-29 Andrew Cagney <ac131313@redhat.com>
250
251 * frame.h (get_selected_block): Add comments.
252
1058bca7
AC
2532002-11-28 Andrew Cagney <ac131313@redhat.com>
254
255 * frame.c (pc_notcurrent): New function.
256 (find_frame_sal): New function.
257 * frame.h (find_frame_sal): Declare.
258 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
259 * stack.c (print_frame_info_base): Use find_frame_sal instead of
260 find_pc_line.
1058bca7
AC
261 (frame_info): Ditto.
262 * ada-lang.c (find_printable_frame): Ditto.
263
d92419e5
JB
2642002-11-28 J. Brobecker <brobecker@gnat.com>
265
266 * configure.in: Check that the pthdebug library is recent enough
267 before enabling thread support on native AiX.
268 * configure: Regenerate.
269
270 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
271 from the list of object files as it is now appended by configure
272 if thread support is enabled.
273 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
274 if thread support is enabled.
275
8c69fc49
AC
2762002-11-28 Andrew Cagney <cagney@redhat.com>
277
278 * stack.c (get_selected_block): In-line get_current_block.
279 * frame.h (get_current_block): Delete declaration.
280 * blockframe.c (get_current_block): Delete function.
281
07555a72
AC
2822002-11-28 Andrew Cagney <ac131313@redhat.com>
283
284 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
285 USE_GENERIC_DUMMY_FRAMES.
286 * gdbarch.h, gdbarch.c: Regenerate.
287 * valops.c, frame.c: Update.
288 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
289 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
290 * config/pa/tm-hppa.h, blockframe.c: Update.
291 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
292 * m68k-tdep.c, alpha-tdep.c: Ditto.
293
294 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
295 * mips-tdep.c: Ditto.
296
b99fa2d2
AC
2972002-11-27 Andrew Cagney <ac131313@redhat.com>
298
299 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
300 (USE_GENERIC_DUMMY_FRAMES): Default to true.
301 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
302 * gdbarch.c, gdbarch.h: Re-generate.
303 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
304 (CALL_DUMMY_LOCATION): Delete macro definition.
305 (PC_IN_CALL_DUMMY): Delete macro definitions.
306
307 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
308 default is already generic_pc_in_call_dummy.
309 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
310 * v850-tdep.c (v850_gdbarch_init): Ditto.
311 * sh-tdep.c (sh_gdbarch_init): Ditto.
312 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
313 * mips-tdep.c (mips_gdbarch_init): Ditto.
314 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
315 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
316 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
317 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
318 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
319 * avr-tdep.c (avr_gdbarch_init): Ditto.
320
321 * arm-tdep.c (arm_gdbarch_init): Do not set
322 use_generic_dummy_frames, default is already 1.
323 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
324 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
325 * v850-tdep.c (v850_gdbarch_init): Ditto.
326 * sh-tdep.c (sh_gdbarch_init): Ditto.
327 * s390-tdep.c (s390_gdbarch_init): Ditto.
328 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
329 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
330 * mips-tdep.c (mips_gdbarch_init): Ditto.
331 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
332 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
333 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
334 * i386-tdep.c (i386_gdbarch_init): Ditto.
335 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
336 * frv-tdep.c (frv_gdbarch_init): Ditto.
337 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
338 * cris-tdep.c (cris_gdbarch_init): Ditto.
339 * avr-tdep.c (avr_gdbarch_init): Ditto.
340
341 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
342 call_dummy_location, default is already AT_ENTRY_POINT.
343 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
344 * v850-tdep.c (v850_gdbarch_init): Ditto.
345 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
346 * sh-tdep.c (sh_gdbarch_init): Ditto.
347 * s390-tdep.c (s390_gdbarch_init): Ditto.
348 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
349 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
350 * mips-tdep.c (mips_gdbarch_init): Ditto.
351 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
352 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
353 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
354 * i386-tdep.c (i386_gdbarch_init): Ditto.
355 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
356 * frv-tdep.c (frv_gdbarch_init): Ditto.
357 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
358 * cris-tdep.c (cris_gdbarch_init): Ditto.
359 * avr-tdep.c (avr_gdbarch_init): Ditto.
360 * arm-tdep.c (arm_gdbarch_init): Ditto.
361 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
362
abc0af47
AC
3632002-11-28 Andrew Cagney <cagney@redhat.com>
364
365 * frame.h: Update comments on set_current_frame, create_new_frame,
366 flush_cached_frames, reinit_frame_cache, select_frame and
367 selected_frame.
368
ed5cedc5
AC
3692002-11-27 Andrew Cagney <cagney@redhat.com>
370
371 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
372 deprecated pc_in_call_dummy function.
373 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
374 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
375 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
376 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
377 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
378
b2a1bd4f
MH
3792002-11-26 Martin M. Hunt <hunt@redhat.com>
380
381 * Makefile.in: Remove Tix dependencies.
382 * acinclude.m4: Ditto.
383 * aclocal.m4: Ditto.
384 * configure.in: Ditto.
385 * configure: Regenerated.
386
f09cffaa
AC
3872002-11-26 Andrew Cagney <ac131313@redhat.com>
388
389 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
390 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
391 * gdbarch.c: Re-generate.
392
e92b0cc9
AC
3932002-11-26 Andrew Cagney <ac131313@redhat.com>
394
395 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
396 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
397 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
398 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
399 pc_in_call_dummy_at_entry_point.
400 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
401 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
402 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
403 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
404 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
405 pc_in_call_dummy_on_stack.
406 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
407 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
408 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
409 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
410 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
411
b4b88177
AC
4122002-11-26 Andrew Cagney <ac131313@redhat.com>
413
414 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
415 pc_in_call_dummy_before_text_end
416 (deprecated_pc_in_call_dummy_after_text_end): Rename
417 pc_in_call_dummy_after_text_end.
418 (deprecated_pc_in_call_dummy_on_stack): Rename
419 pc_in_call_dummy_on_stack.
420 (deprecated_pc_in_call_dummy_at_entry_point): Rename
421 pc_in_call_dummy_at_entry_point.
422 * m68k-tdep.c (m68k_gdbarch_init): Update.
423 * s390-tdep.c (s390_gdbarch_init): Update.
424 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
425 * vax-tdep.c (vax_gdbarch_init): Update.
426 * sparc-tdep.c (sparc_gdbarch_init): Update.
427 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
428 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
429 * i386-tdep.c (i386_gdbarch_init): Update.
430 * frv-tdep.c (frv_gdbarch_init): Update.
431 * cris-tdep.c (cris_gdbarch_init): Update.
432 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
433 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
434 (deprecated_pc_in_call_dummy_after_text_end)
435 (deprecated_pc_in_call_dummy_on_stack)
436 (deprecated_pc_in_call_dummy_at_entry_point): Update.
437 * alpha-tdep.c (alpha_gdbarch_init): Update.
438
eb784848
DJ
4392002-11-25 Daniel Jacobowitz <drow@mvista.com>
440
441 * acconfig.h (HAVE_PREAD64): Add.
442 * configure.in: Check for pread64.
443 * config.in: Regenerated.
444 * configure: Regenerated.
445 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
446 * linux-proc.c (linux_proc_xfer_memory): New function.
447 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
448
933c6fe4
DC
4492002-11-25 David Carlton <carlton@math.stanford.edu>
450
451 * dwarf2read.c (scan_partial_symbols): Descend into namespace
452 pdi's with no name.
453
158a8022
AC
4542002-11-25 Andrew Cagney <ac131313@redhat.com>
455
456 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
457 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
458
481d0f41
JB
4592002-11-25 Jim Blandy <jimb@redhat.com>
460
e8289572
JB
461 * symfile.c (init_objfile_sect_indices): New function.
462 (default_symfile_offsets): Move the section-index-initializing
463 stuff into init_objfile_sect_indices, and call that.
464
b29c9944
JB
465 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
466 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
467
13de58df
JB
468 * symfile.c (syms_from_objfile): Adjust indentation.
469
481d0f41
JB
470 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
471 || info_verbose isn't true.
472
7d6a26a7
AC
4732002-11-24 Andrew Cagney <ac131313@redhat.com>
474
475 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
476 default to get_frame_base.
477 * gdbarch.h, gdbarch.c: Regenerate.
478 * arch-utils.c (default_frame_address): Delete function.
479 * arch-utils.h (default_frame_address): Delete declaration
480
6abe1021
PM
4812002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
482
483 * varobj.c (find_frame_addr_in_frame_chain):
484 Use get_frame_base instead of FRAME_FP,
485 obvious fix.
486
c193f6ac
AC
4872002-11-19 Andrew Cagney <ac131313@redhat.com>
488
489 * frame.h (FRAME_FP): Delete macro.
490 (get_frame_base): New function declaration.
491 * frame.c (get_frame_base): New function.
492 (get_frame_id): Use ->frame.
493 (frame_find_by_id): Rewrite to use get_frame_id.
494 * blockframe.c: Use get_frame_base instead of FRAME_FP.
495 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
496 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
497 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
498 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
499 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
500 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
501
e5d2af14
AC
5022002-11-24 Andrew Cagney <ac131313@redhat.com>
503
504 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
505
931d12c6
AC
5062002-11-24 Andrew Cagney <ac131313@redhat.com>
507
508 * frame.c (set_unwind_by_pc): Revert change below, use
509 PC_IN_CALL_DUMMY.
510 (get_prev_frame): Ditto.
511
5e0f933e
AC
5122002-11-24 Andrew Cagney <ac131313@redhat.com>
513
514 * dummy-frame.c (pc_in_dummy_frame): New function.
515 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
516 (find_dummy_frame): Update comment.
517 (generic_pop_current_frame): Use get_frame_type.
518 * dummy-frame.h (pc_in_dummy_frame): Declare.
519 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
520 (create_new_frame): Use pc_in_dummy_frame.
521 (get_prev_frame): Use pc_in_dummy_frame.
522 (frame_saved_regs_register_unwind): Use get_prev_frame.
523 (deprecated_generic_get_saved_register): Use get_prev_frame.
524
7d8547c9
AC
5252002-11-23 Andrew Cagney <ac131313@redhat.com>
526
527 * blockframe.c (find_frame_addr_in_frame_chain): Move function
528 from here ...
529 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
530 (varobj_create): Note that frame ID should be used.
531 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
532
0225421b
AC
5332002-11-23 Andrew Cagney <ac131313@redhat.com>
534
535 * breakpoint.c: Include "gdb_assert.h".
536 (deprecated_frame_in_dummy): Assert that generic dummy frames are
537 not being used.
538 * Makefile.in (breakpoint.o): Update dependencies.
539 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
540 deprecated_frame_in_dummy.
541 * stack.c (print_frame_info_base): Ditto.
542 (frame_info): Ditto.
543 (print_frame_info_base): Ditto. Delete dead code.
544
32eeb91a
AS
5452002-11-23 Andreas Schwab <schwab@suse.de>
546
547 * Makefile.in (m68k_tdep_h): Define.
548 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
549 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
550 * m68k-tdep.c: Move register number enum ...
551 * m68k-tdep.h: ... to this new file and rename the constants from
552 E_* to M68K_*. All uses changed.
553 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
554 * abug-rom.c: Include "m68k-tdep.h". Use
555 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
556 * cpu32bug-rom.c: Likewise.
557 * dbug-rom.c: Likewise.
558 * m68k-tdep.c: Likewise.
559 * m68klinux-nat.c: Likewise.
560 * remote-est.c: Likewise.
561 * rom68k-rom.c: Likewise.
562 * config/m68k/tm-linux.h: Likewise.
563
9648bac8
AC
5642002-11-23 Andrew Cagney <ac131313@redhat.com>
565
566 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
567 dummy frame initialization code.
568 * mips-tdep.c (mips_gdbarch_init): Ditto.
569
91a175b3
CF
5702002-11-22 Christopher Faylor <cgf@redhat.com>
571
572 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
573 attach will hang.
574
f4ded5b1
AC
5752002-11-22 Andrew Cagney <ac131313@redhat.com>
576
577 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
578 to default_frame_address.
579 * gdbarch.h, gdbarch.c: Re-generate.
580
581 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
582 or frame_locals_address to default_frame_address.
583 * m68k-tdep.c (m68k_gdbarch_init): Update.
584 * i386-tdep.c (i386_gdbarch_init): Update.
585 * frv-tdep.c (frv_gdbarch_init): Update.
586 * sh-tdep.c (sh_gdbarch_init): Update.
587 * v850-tdep.c (v850_gdbarch_init): Update.
588 * sparc-tdep.c (sparc_gdbarch_init): Update.
589 * mips-tdep.c (mips_gdbarch_init): Update.
590 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
591 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
592 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
593
594 * cris-tdep.c (cris_frame_args_address): Delete function.
595 (cris_frame_locals_address): Delete function.
596 (cris_gdbarch_init): Do not set frame_args_address or
597 frame_locals_address.
598
f7c1e0f3
MS
5992002-11-22 Michael Snyder <msnyder@redhat.com>
600
601 * thread-db.c (thread_db_load): Tell the user what's going on
602 if dlopen fails on libthread_db.
603
03dac896
AS
6042002-11-23 Andreas Schwab <schwab@suse.de>
605
606 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
607 invariant return values.
608
7a67d0fe
AS
6092002-11-22 Andreas Schwab <schwab@suse.de>
610
611 * valops.c (value_slice): Move declaration of `offset' to avoid
612 warning.
613
5633f842
CF
6142002-11-22 Christopher Faylor <cgf@redhat.com>
615
616 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
617 (struct so_stuff): Add end_addr field.
618 (register_loaded_dll): Calculate and store end address of loaded dll.
619 (solib_address): New function.
620 (child_solib_loaded_library_pathname): Pass carefully constructed
621 section info to safe_symbol_file_add rather than ignoring it.
622 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
623 DLL is loaded.
624 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
625 (child_create_inferior): Fix a compiler warning.
626 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
627 (solib_address): Declare new function.
628
d85fe7f7
AS
6292002-11-22 Andreas Schwab <schwab@suse.de>
630
631 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
632 and FPS registers.
633
8308e54c
DJ
6342002-11-21 Daniel Jacobowitz <drow@mvista.com>
635
636 * maint.c (_initialize_maint_cmds): Fix typo. From
637 Francesco Potorti` <pot@gnu.org>.
638
8997bd5e
AC
6392002-11-21 Andrew Cagney <cagney@redhat.com>
640
641 * mips-tdep.c (mips_dump_tdep): Delete references to
642 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
643 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
644 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
645 * printcmd.c (build_address_symbolic): Delete calls to
646 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
647 (address_info): Ditto.
648 Fix PR gdb/773.
649
4e87b832
KD
6502002-11-19 Klee Dienes <kdienes@apple.com>
651 Adam Fedor <fedor@gnu.org>
652
653 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
654 the ability to explicitly specify the quote characters and word
655 break characters; if NULL is specified for either, use the old
656 behavior of using the characters used by the completer.
657 (skip_chars): New function. Convenience wrapper around
658 skip_quoted_chars to provide the original skip_chars behavior.
659 * completer.h (skip_quoted_chars): Add prototype.
660
9ba8d803
AC
6612002-11-19 Andrew Cagney <ac131313@redhat.com>
662
663 Problems reported by Paul Eggert.
664 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
665
0a595803
AS
6662002-11-19 Andreas Schwab <schwab@suse.de>
667
668 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
669 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
670 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
671 (m68k_linux_frame_saved_pc): Move to ...
672 * m68klinux-tdep.c: ... here. New file.
673 * Makefile.in (m68klinux-tdep.o): Add dependencies.
674 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
675
e8afa4d7
AF
6762002-11-19 Adam Fedor <fedor@gnu.org>
677
678 * objc-exp.y: Revert to old skip_quoted usage.
679
a76c9d72
AF
6802002-11-19 Adam Fedor <fedor@gnu.org>
681
682 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
683 (objc_lang_h): Define.
684 (YYFILES): Add objc-exp.tab.c.
685 (local-maintainer-clean): Remove objc-exp.tab.c.
686 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
687
fd0e9d45
PM
6882002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
689
690 * p-exp.y (typecast rule): Add automatic dereference of
691 pascal classes if needed.
692 (THIS): Set current_type.
693 Automatically dereference pascal classes.
694 (typebase rule): Add ^typebase recognition.
695
82eeeb94
AF
6962002-11-18 Adam Fedor <fedor@gnu.org>
697
698 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
699 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
700 (op_name): Handle OP_OBJC_SELF.
701 * Makefile.in (expprint.o): Add additional depends.
702
646df18d
AF
7032002-11-18 Adam Fedor <fedor@gnu.org>
704
705 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
706 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
707 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
708 * objc-exp.y: Likewise.
709
379b85df
AF
7102002-11-18 Adam Fedor <fedor@gnu.org>
711
712 * gdb/parser-defs.h: (struct objc_class_str): New structure
713 for parsing ObjC classes.
714
85cf597a
AC
7152002-11-18 Andrew Cagney <ac131313@redhat.com>
716
717 * stack.c (frame_relative_level): Copy function from here ...
718 * frame.c (frame_relative_level): ...to here.
719
5a203e44
AC
7202002-11-18 Andrew Cagney <ac131313@redhat.com>
721
722 * frame.h (enum frame_type): Define.
723 (get_frame_type): Declare.
724 (struct frame_info): Add field `type'. Delete field
725 signal_handler_caller.
726 (deprecated_set_frame_signal_handler_caller): Declare.
727 * frame.c (get_frame_type): New function.
728 (deprecated_set_frame_type): New function.
729 (create_new_frame): Set the frame's type.
730 (get_prev_frame): Similar.
731 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
732 * s390-tdep.c: Ditto.
733 * m68klinux-nat.c: Ditto.
734 * ns32k-tdep.c: Ditto.
735 * x86-64-linux-tdep.c: Ditto.
736 * vax-tdep.c: Ditto.
737 * rs6000-tdep.c: Ditto.
738 * ppc-linux-tdep.c: Ditto.
739 * i386-interix-tdep.c: Ditto.
740 * mips-tdep.c: Ditto.
741 * m68k-tdep.c: Ditto.
742 * hppa-tdep.c: Ditto.
743 * ia64-tdep.c: Ditto.
744 * cris-tdep.c: Ditto.
745 * arm-tdep.c: Ditto.
746 * alpha-tdep.c: Ditto.
747 * i386-tdep.c: Ditto.
748 * stack.c: Ditto.
749 * ada-lang.c: Ditto.
750 * blockframe.c: Update.
751 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
752 deprecated_set_frame_type instead of signal_handler_caller.
753 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
754 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
755 * breakpoint.h: Delete FIXME suggesting get_frame_type.
756
bf4ae8b2
KD
7572002-11-18 Klee Dienes <kdienes@apple.com>
758
759 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
760
a672ef13
KD
7612002-11-18 Klee Dienes <kdienes@apple.com>
762
763 * buildsym.c (pop_context): Add comment.
764
0c5e171a
KD
7652002-11-18 Klee Dienes <kdienes@apple.com>
766
767 * buildsym.h (pop_context): Convert to function, defined in
768 buildsym.c.
769 * buildsym.c: Include gdb_assert.h.
770 (pop_context): Implement as C function. Add check for stack
771 underflow.
772 * dbxread.c (process_one_symbol): Complain and stop processing
773 that symbol if we are already at the top of the context stack for
774 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
775 when processing N_RBRAC.
776
8a1f4c4c
DJ
7772002-11-16 Daniel Jacobowitz <drow@mvista.com>
778
779 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
780 define.
781 (struct target_waitstatus): Add opaque definition.
782 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
783 * exec.c (init_exec_ops): Likewise.
784 * fork-child.c (clone_and_follow_inferior): Remove.
785 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
786 * inferior.h (clone_and_follow_inferior): Remove prototype.
787 * infrun.c (follow_fork_mode_both): Remove.
788 (follow_fork_mode_kind_names): Remove commented out "both".
789 (follow_inferior_fork): Remove follow_fork_mode_both support.
790 * inftarg.c (child_clone_and_follow_inferior): Remove.
791 (child_post_follow_inferior_by_clone): Remove.
792 (init_child_ops): Don't set to_clone_and_follow_inferior
793 or to_post_follow_inferior_by_clone.
794 * target.c (default_clone_and_follow_inferior): Remove.
795 (cleanup_target): Don't set to_clone_and_follow_inferior
796 or to_post_follow_inferior_by_clone.
797 (find_default_clone_and_follow_inferior): Remove.
798 (init_dummy_target): Don't set to_clone_and_follow_inferior.
799 (debug_to_clone_and_follow_inferior): Remove.
800 (debug_to_post_follow_inferior_by_clone): Remove.
801 (setup_target_debug): Don't set to_clone_and_follow_inferior
802 or to_post_follow_inferior_by_clone.
803 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
804 and to_post_follow_inferior_by_clone.
805 (child_clone_and_follow_inferior): Remove prototype.
806 (child_post_follow_inferior_by_clone): Remove prototype.
807 (target_clone_and_follow_inferior): Remove macro.
808 (target_post_follow_inferior_by_clone): Remove macro.
809 (find_default_clone_and_follow_inferior): Remove prototype.
810
47932f85
DJ
8112002-11-16 Daniel Jacobowitz <drow@mvista.com>
812
813 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
814 inferior_has_vforked, and inferior_has_execd instead of
815 target_has_forked, target_has_vforked, and target_has_execd.
816 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
817 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
818 (CHILD_WAIT): Define.
819 (child_wait): Add prototype.
820 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
821 Add prototype.
822 (hpux_has_vforked): Likewise, from child_has_vforked.
823 (hpux_has_execd): Likewise, from child_has_execd.
824 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
825 (not_same_real_pid, child_wait): New, copied from inftarg.c.
826 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
827 and hpux_has_syscall_event instead of the target hooks.
828 * infrun.c (inferior_has_forked, inferior_has_vforked)
829 (inferior_has_execd): New functions.
830 * inftarg.c (not_same_real_pid): Remove.
831 (child_wait): Remove references to not_same_real_pid,
832 target_has_forked, target_has_vforked, target_has_execd,
833 and target_has_syscall_event.
834 (child_has_forked, child_has_vforked, child_has_execd)
835 (child_has_syscall_event): Remove.
836 (init_child_ops): Remove references to child_has_forked,
837 child_has_vforked, child_has_execd, and child_has_syscall_event.
838 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
839 (hpux_has_vforked): Likewise, from child_has_vforked.
840 (hpux_has_execd): Likewise, from child_has_execd.
841 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
842 * target.c (cleanup_target): Remove references to
843 to_has_forked, to_has_vforked, to_has_execd, and
844 to_has_syscall_event.
845 (update_current_target): Likewise.
846 (setup_target_debug): Likewise.
847 (debug_to_has_forked): Remove.
848 (debug_to_has_vforked): Remove.
849 (debug_to_has_execd): Remove.
850 (debug_to_has_syscall_event): Remove.
851 * target.h (struct target_ops): Remove to_has_forked.
852 to_has_vforked, to_has_execd, and to_has_syscall_event.
853 (child_has_forked, child_has_vforked, child_has_execd)
854 (child_has_syscall_event): Remove prototypes.
855 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
856 prototypes.
857 (target_has_forked, target_has_vforked, target_has_execd)
858 (target_has_syscall_event): Remove macros.
859
4088142a
DJ
8602002-11-16 Daniel Jacobowitz <drow@mvista.com>
861
862 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
863 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
864 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
865 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
866 * target.c (cleanup_target): Remove reference to
867 to_can_follow_vfork_prior_to_exec.
868 (update_current_target): Likewise.
869 (debug_to_can_follow_vfork_prior_to_exec): Remove.
870 (setup_target_debug): Remove reference to
871 to_can_follow_vfork_prior_to_exec.
872 * target.h (struct target_ops): Remove
873 to_can_follow_vfork_prior_to_exec.
874 (child_can_follow_vfork_prior_to_exec): Remove prototype.
875 (target_can_follow_vfork_prior_to_exec): Remove definition.
876 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
877 define.
878 * infrun.c (follow_vfork_when_exec): Remove.
879 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
880 (follow_exec): Likewise.
881 (handle_inferior_event): Likewise.
882 (keep_going): Likewise.
883
18cde8d5
AC
8842002-11-15 Andrew Cagney <cagney@redhat.com>
885
886 * frame.c (generic_unwind_get_saved_register): Make static.
887 * frame.h (generic_unwind_get_saved_register): Delete declaration.
888 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
889 defaults to generic_unwind_get_saved_register.
890 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
891 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
892 * frv-tdep.c (frv_gdbarch_init): Ditto.
893 * i386-tdep.c (i386_gdbarch_init): Ditto.
894 * s390-tdep.c (s390_gdbarch_init): Ditto.
895 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
896 * v850-tdep.c (v850_gdbarch_init): Ditto.
897 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
898 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
899 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
900
a6b063af
AC
9012002-11-15 Andrew Cagney <cagney@redhat.com>
902
903 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
904 i386-tdep.c.
905
f407986f
AC
9062002-11-15 Andrew Cagney <cagney@redhat.com>
907
908 * frame.h (sigtramp_saved_pc): Delete declaration.
909 * blockframe.c (sigtramp_saved_pc): Delete function.
910 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
911 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
912 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
913 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
914
f18c5a73
AC
9152002-11-15 Andrew Cagney <ac131313@redhat.com>
916
917 * frame.c (frame_pc_unwind): New function.
918 (frame_saved_regs_pc_unwind): New function.
919 (frame_register_unwind): Pass unwind_cache instead of
920 register_unwind_cache.
921 (set_unwind_by_pc): Add unwind_pc parameter, set.
922 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
923 (get_prev_frame): Ditto.
924 * frame.h (frame_pc_unwind_ftype): Declare.
925 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
926 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
927 (frame_pc_unwind): Declare.
928 * dummy-frame.c (dummy_frame_pc_unwind): New function.
929 (struct dummy_frame): Add comment mentioning that values are for
930 previous frame.
931 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
932 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
933 (generic_file_frame_chain_valid): Ditto.
934 * stack.c (frame_info): Ditto.
935
d9285969 9362002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
937
938 * linespec.c (locate_first_half): New function.
939 (decode_line_1): Move code into locate_first_half.
940
d741b867
AC
9412002-11-15 Andrew Cagney <ac131313@redhat.com>
942
943 * complaints.h: Add comment explaining how to eliminate a
944 deprecated_complain call.
24382c5c 945 * complaints.h: Fix spelling errors.
d741b867 946
82d03c99
DC
9472002-11-15 David Carlton <carlton@math.stanford.edu>
948
949 * printcmd.c: Remove #include "disasm.h".
950
c97eb5d9
AC
9512002-11-14 Andrew Cagney <ac131313@redhat.com>
952
953 * frame.h: Move the most relevant interface functions to the start
954 of the file.
955
524d7c18
AC
9562002-11-14 Andrew Cagney <ac131313@redhat.com>
957
958 * regcache.h (deprecated_registers): Rename registers.
959 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
960 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
961 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
962 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
963 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
964 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
965 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
966 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
967 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
968 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
969 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
970 * v850ice.c: Update.
971
6411e720
AC
972Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
973
974 * utils.c (gdb_realpath): Add comment mentioning realpath with a
975 NULL buffer.
976
73937e03
AC
9772002-11-13 Andrew Cagney <cagney@redhat.com>
978
979 * regcache.h (deprecated_read_register_bytes): Rename
980 read_register_bytes.
981 (deprecated_write_register_bytes): Rename write_register_bytes.
982 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
983 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
984 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
985 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
986 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
987 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
988 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
989 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
990 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
991 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
992 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
993 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
994 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
995 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
996
fb0cd46e
JB
9972002-11-13 Jim Blandy <jimb@redhat.com>
998
999 * findvar.c (read_var_value): Doc fix.
1000
2d28509a
AC
10012002-11-13 Andrew Cagney <cagney@redhat.com>
1002
1003 * regcache.c (struct regcache): Replace passthough_p with
1004 readonly_p.
1005 (regcache_xmalloc): Initialize readonly_p.
1006 (build_regcache): Initialize readonly_p.
1007 (regcache_save): New function.
1008 (regcache_restore): New function.
1009 (regcache_cpy): Re-implement using regcache_save and
1010 regcache_restore.
1011 (regcache_raw_read): Update.
1012 (regcache_cooked_read): When a read-only cache, checked for cached
1013 pseudo register values.
1014 (regcache_raw_write): Assert that the cache is not read-only.
1015 Remove code handling a non-passthrough cache.
1016 * regcache.h (regcache_save): Declare.
1017 (regcache_restore): Declare.
1018
067df2e5
AC
10192002-11-13 Andrew Cagney <cagney@redhat.com>
1020
1021 * regcache.c (struct regcache_descr): Add fields
1022 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1023 (init_legacy_regcache_descr): Compute the size of a cooked
1024 register cache and then assign that to sizeof_raw_registers. Set
1025 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1026 (init_legacy_regcache_descr): Ditto.
1027
51b1fe4e
AC
10282002-11-13 Andrew Cagney <cagney@redhat.com>
1029
1030 * regcache.c (register_buffer): Move to near start of file, update
1031 description.
1032 (regcache_raw_read): Use.
1033 (regcache_raw_write): Use.
1034 (struct regcache): Rename raw_registers to registers and
1035 raw_register_valid_p to register_valid_p.
1036 (regcache_xmalloc): Update.
1037 (regcache_xfree): Update.
1038 (register_buffer): Update.
1039 (regcache_cpy): Update.
1040 (regcache_cpy_no_passthrough): Update.
1041 (regcache_valid_p): Update.
1042 (deprecated_grub_regcache_for_registers): Update.
1043 (deprecated_grub_regcache_for_register_valid): Update.
1044 (set_register_cached): Update.
1045 (regcache_raw_write): Update.
1046
80b4c677
PM
10472002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1048
1049 * p-exp.y (name_not_typename): Use copy_name to
1050 set current_type variable for fields of THIS.
1051
0f3fafde
DJ
10522002-11-12 Daniel Jacobowitz <drow@mvista.com>
1053
1054 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1055 * monitor.c (init_base_monitor_ops): Likewise.
1056 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1057 * remote-array.c (init_array_ops): Likewise.
1058 * remote-e7000.c (init_e7000_ops): Likewise.
1059 * remote-es.c (init_es1800_ops): Likewise.
1060 (init_es1800_child_ops): Likewise.
1061 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1062 * remote-sim.c (init_gdbsim_ops): Likewise.
1063 * remote-st.c (init_st2000_ops): Likewise.
1064 * sol-thread.c (init_sol_core_ops): Likewise.
1065 (init_sol_thread_ops): Likewise.
1066 * v850ice.c (init_850ice_ops): Likewise.
1067 * win32-nat.c (init_child_ops): Likewise.
1068 * wince.c (init_child_ops): Likewise.
1069
82c0260e
AC
10702002-11-12 Andrew Cagney <ac131313@redhat.com>
1071
1072 * utils.c (gdb_realpath): Make rp a constant pointer.
1073
70d35819
AC
10742002-11-12 Andrew Cagney <ac131313@redhat.com>
1075
1076 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1077 a constant buffer; cannonicalize_file_name(); realpath() with a
1078 pathconf() defined buffer, xstrdup().
1079
9835a8b0
AC
10802002-11-12 Andrew Cagney <ac131313@redhat.com>
1081
1082 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1083 to hang2.C; hang3.c to hang3.C.
1084
3f47be5c
EZ
10852002-11-11 Elena Zannoni <ezannoni@redhat.com>
1086
1087 * findvar.c (read_var_value): Reenable TLS code.
1088
10892002-11-11 Elena Zannoni <ezannoni@redhat.com>
1090 Jim Blandy <jimb@redhat.com>
1091
1092 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1093 * target.c (update_current_target): Add
1094 to_get_thread_local_address.
1095 * target.h (to_get_thread_local_address): Export.
1096 (target_get_thread_local_address): Define.
1097 (target_get_thread_local_address_p): Define.
1098 * thread-db.c: Include solib-svr4.h.
1099 (td_thr_tls_get_addr_p): Define.
1100 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1101 (thread_db_get_thread_local_address): New function.
1102 (init_thread_db_ops): Initialize to_get_thread_local_address.
1103 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1104 * configure: Regenerate.
1105 * config.in: Regenerate.
1106
636b1a6d
DC
11072002-11-11 David Carlton <carlton@math.stanford.edu>
1108
1109 * linespec.c (set_flags): New function.
1110 (decode_line_1): Move code into set_flags.
1111
44fe14ab
DC
11122002-11-11 David Carlton <carlton@math.stanford.edu>
1113
1114 * linespec.c (decode_line_1): Move chunks of code to separate
1115 functions.
1116 (initialize_defaults): New function.
1117 (decode_indirect): New function.
1118
e6f181f5
AC
11192002-11-11 Andrew Cagney <ac131313@redhat.com>
1120
8971b011
AC
1121 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1122 instead of void_code_ptr.
1123 (sigtramp_saved_pc): Ditto.
1124
e6f181f5
AC
1125 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1126 i386_fp_regnum_p.
1127
01ad7f36
DJ
11282002-11-10 Daniel Jacobowitz <drow@mvista.com>
1129
1130 * gdbtypes.h (struct main_type): Move artificial flag out of
1131 loc. New member of ``struct field'' named static_kind. Reduce
1132 overloaded meaning of bitsize.
1133 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1134 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1135 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1136
1137 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1138 new fields.
1139 (template_to_fixed_record_type, template_to_static_fixed_type)
1140 (to_record_with_fixed_variant_part): Likewise.
1141 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1142 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1143 * dwarfread.c (struct_type, enum_type): Likewise.
1144 * hpread.c (hpread_read_enum_type)
1145 (hpread_read_function_type, hpread_read_doc_function_type)
1146 (hpread_read_struct_type): Likewise.
1147 * mdebugread.c (parse_symbol): Likewise.
1148
bf1e52be
AC
11492002-11-10 Andrew Cagney <ac131313@redhat.com>
1150
1151 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1152 * stack.c (print_frame_info_base): Update.
1153 (print_frame_info_base, frame_info): Update.
1154 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1155 (sparc_frame_saved_pc): Update.
1156 * ada-lang.c (find_printable_frame): Update.
1157 * breakpoint.c (deprecated_frame_in_dummy): Update.
1158
ce556f85
MK
11592002-11-09 Mark Kettenis <kettenis@gnu.org>
1160
1161 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1162 defined.
1163 (regmap): Extend to cover all registers.
1164 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1165 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1166 definitions.
1167 (fetch_register, sore_register): Simplify.
1168 (old_fetch_inferior_registers, old_store_inferior_registers):
1169 Remove functions.
1170 (cannot_fetch_register, cannot_store_register): Change
1171 implementation to use regmap array to decide which registers
1172 cannot be fetched/stored. This removes $orig_eax from the
1173 registers that cannot be fetched/stored.
1174 (fetch_inferior_registers): Call fetch_register directly instead
1175 of calling old_fetch_inferior_registers.
1176 (store_inferior_registers): Call store_register directly instead
1177 of calling old_store_inferior_registers.
1178 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1179 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1180 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1181
932bb524
KD
11822002-11-09 Klee Dienes <kdienes@apple.com>
1183
1184 * i387-tdep.c (i387_supply_register): When called with NULL as a
1185 buffer, mark the register as not provided (to mirror the behavior
1186 of supply_register).
1187 (i387_supply_fxsave): Ditto.
1188 (i387_supply_fsave): Ditto (inherits the behavior from
1189 i387_supply_register).
1190
ebe68b27
KD
11912002-11-09 Klee Dienes <kdienes@apple.com>
1192
1193 * blockframe.c (sigtramp_saved_pc): Use
1194 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1195 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1196 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1197
15220c65
AC
11982002-11-09 Andrew Cagney <ac131313@redhat.com>
1199
1200 * frame.c (get_prev_frame): Test prev_p to identify a previously
1201 unwound frame. Initialize prev_p.
1202 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1203 comment.
1204
95adb866
AC
12052002-11-09 Andrew Cagney <ac131313@redhat.com>
1206
1207 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1208 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1209 more comments. Zap dead code.
1210
e71ecd70
MK
12112002-11-09 Mark Kettenis <kettenis@gnu.org>
1212
1213 * infcmd.c (print_vector_info, print_float_info): Move code that
1214 checks whether the target has any registers and whether there is a
1215 selected frame up, such that it is also used if a target provides
1216 multi-arch definitions of these functions.
1217
c525330d
AC
12182002-11-08 Andrew Cagney <ac131313@redhat.com>
1219
72bdd927
AC
1220 * Makefile.in (DESTDIR): Define.
1221 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1222 prefix.
1223
c525330d
AC
1224 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1225 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1226
38c968cf
AC
12272002-11-08 Andrew Cagney <ac131313@redhat.com>
1228
1229 * i386-linux-tdep.c: Include "reggroups.h".
1230 (i386_linux_register_reggroup_p): New function.
1231 (i386_linux_init_abi): Set register_reggroup_p to
1232 i386_linux_register_reggroup_p.
1233 * i386-tdep.h (i386_register_reggroup_p): Declare.
1234 * i386-tdep.c: Include "reggroups.h".
1235 (i386_init_reggroups): New function.
1236 (i386_add_reggroups): New function.
1237 (i386_register_reggroup_p): New function.
1238 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1239 (_initialize_i386_tdep): Call i386_init_reggroups.
1240 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1241 specific reggroups.
1242
19e33363
MK
12432002-11-09 Mark Kettenis <kettenis@gnu.org>
1244
371a6e84
MK
1245 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1246 request that's available in *BSD.
1247
94ba925a
MK
1248 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1249
19e33363
MK
1250 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1251 FDOFF_REGNUM.
1252
8779790c
AC
12532002-11-08 Andrew Cagney <ac131313@redhat.com>
1254
1255 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1256 * dummy-frame.c (find_dummy_frame): Rename
1257 generic_find_dummy_frame, make static. Return the dummy frame
1258 instead of the regcache.
1259 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1260 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1261 (dummy_frame_register_unwind): Rename
1262 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1263 * dummy-frame.h (dummy_frame_register_unwind): Rename
1264 generic_call_dummy_register_unwind.
1265
8674b74f
MK
12662002-11-08 Mark Kettenis <kettenis@gnu.org>
1267
1268 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1269 except the inclusion of "i386/tm-i386.h", to...
1270 * config/i386/nm-i386v42mp.h: ...here.
1271 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1272
4c1e7e9d
AC
12732002-11-08 Andrew Cagney <ac131313@redhat.com>
1274
1275 * Makefile.in (frame.o): Update dependencies.
1276 * blockframe.c (current_frame, frame_obstack_alloc)
1277 (frame_saved_regs_zalloc, get_current_frame)
1278 (set_current_frame, create_new_frame)
1279 (set_unwind_by_pc, get_next_frame)
1280 (flush_cached_frames, reinit_frame_cache)
1281 (frame_saved_regs_register_unwind)
1282 (deprecated_generic_get_saved_register)
1283 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1284 (_initialize_blockframe): Move frame code from here...
1285 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1286 "annotate.h" and "dummy-frame.h".
1287 (_initialize_frame): New function.
1288
921e78cf
JB
12892002-11-08 Jim Blandy <jimb@redhat.com>
1290
1291 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1292 when we finish a function a context.
1293 * buildsym.h (outermost_context_p): New macro.
1294 (Bug analyzed by David Edelsohn.)
1295
9c1412c1
AC
12962002-11-08 Andrew Cagney <ac131313@redhat.com>
1297
1298 * blockframe.c: Include "dummy-frame.h".
1299 (struct dummy_frame, dummy_frame_stack)
1300 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1301 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1302 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1303 (generic_save_call_dummy_addr, generic_pop_current_frame)
1304 (generic_pop_dummy_frame, generic_fix_call_dummy)
1305 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1306 dummy frame code from here...
1307 * dummy-frame.c: ...to here. New file.
1308 * dummy-frame.h: New file.
1309 (generic_call_dummy_register_unwind): Declare.
1310 (generic_find_dummy_frame): Declare.
1311 * Makefile.in (SFILES): Add dummy-frame.c.
1312 (dummy-frame.o): Specify dependencies.
1313 (dummy_frame_h): Define.
1314 (COMMON_OBS): Add dummy-frame.o.
1315 (blockframe.o): Update dependencies.
1316
208d8187
JB
13172002-11-08 Jim Blandy <jimb@redhat.com>
1318
1319 * dwarf2read.c (read_func_scope): Restore local_symbols and
1320 param_symbols after we finish the function context. (Based on a
1321 patch from David Edelsohn.)
1322
413dad4d
DC
13232002-11-08 David Carlton <carlton@math.stanford.edu>
1324
1325 * linespec.c (symbol_found): New function.
1326 (minsym_found): New function.
1327 (decode_line_1): Separate out some code into separate functions.
1328
5512c44a
JB
13292002-11-08 Joel Brobecker <brobecker@gnat.com>
1330
1331 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1332 the benefit of the interix target.
1333 * i386-tdep.h (i386_frameless_signal_p): Declare.
1334
1b33ef47
AC
13352002-11-08 Andrew Cagney <ac131313@redhat.com>
1336
1337 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1338 declaration that snuck in from change below.
1339
23a34459
AC
13402002-11-06 Andrew Cagney <cagney@redhat.com>
1341
1342 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1343 all callers.
1344 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1345 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1346 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1347 (i386_mxcsr_regnum_p): new function. Use instead of
1348 MXCSR_REGNUM_P.
1349 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1350 (i386_sse_regnum_p): Declare.
1351 (i386_mxcsr_regnum_p): Declare.
1352 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1353 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1354 (IS_FP_REGNUM): Update definition.
1355 (IS_FPU_CTRL_REGNUM): Update definition..
1356 (IS_SSE_REGNUM): Update definition..
1357 * i386v-nat.c (register_u_addr): Update.
1358 * go32-nat.c (fetch_register): Update.
1359 (store_register): Update.
1360
d709c020
JB
13612002-11-07 Joel Brobecker <brobecker@gnat.com>
1362
1363 Preparation work to convert the hppa targets to multiarch partial.
1364
1365 * hppa-tdep.c: Add new functions replacing macro bodies from
1366 config/pa/tm-hppa.h. These function will be used to initialize
1367 the gdbarch structure. Import some comments from tm-hppa.h,
1368 and place them where appropriate, to avoid loosing them when
1369 we cleanup this file.
1370 (hppa_reg_struct_has_addr): New function.
1371 (hppa_inner_than): New function.
1372 (hppa_stack_align): New function.
1373 (hppa_pc_requires_run_before_use): New function.
1374 (hppa_instruction_nullified): New function.
1375 (hppa_register_byte): New function.
1376 (hppa_register_virtual_type): New function.
1377 (hppa_store_struct_return): New function.
1378 (hppa_cannot_store_register): New function.
1379 (hppa_frame_args_address): New function.
1380 (hppa_frame_locals_address): New function.
1381 (hppa_smash_text_address): New function.
1382 (hppa_coerce_float_to_double): New function. Requires the inclusion
1383 of "language.h".
1384
1385 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1386
1387 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1388 gdbarch-eligible macro to a call to the new associated function
1389 created in hppa-tdep.c.
1390 (INNER_THAN): Likewise.
1391 (STACK_ALIGN): Likewise.
1392 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1393 (INSTRUCTION_NULLIFIED): Likewise.
1394 (REGISTER_BYTE): Likewise.
1395 (REGISTER_VIRTUAL_TYPE): Likewise.
1396 (STORE_STRUCT_RETURN): Likewise.
1397 (CANNOT_STORE_REGISTER): Likewise.
1398 (FRAME_ARGS_ADDRESS): Likewise.
1399 (FRAME_LOCALS_ADDRESS): Likewise.
1400 (SMASH_TEXT_ADDRESS): Likewise.
1401 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1402 (ABOUT_TO_RETURN): Delete, as no longer used.
1403
83c31e7d
FN
14042002-11-07 Fernando Nasser <fnasser@redhat.com>
1405
1406 * printcmd.c (disassemble_command): Remove obsolete function.
1407 (_initialize_printcmd): Do not create disassemble command here.
1408 * cli/cli-cmds.c (disassemble_command): New function. Implements
1409 disassemble command.
1410 (init_cli_cmds): Create disassemble command here instead.
1411
0ec30a36
AC
14122002-11-07 Andrew Cagney <ac131313@redhat.com>
1413
1414 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1415
e600bd34
AC
14162002-11-07 Andrew Cagney <ac131313@redhat.com>
1417
1418 * regcache.h (regcache_cooked_read_using_offset_hack)
1419 (regcache_cooked_write_using_offset_hack): Delete declarations.
1420 (register_changed): Delete declaration.
1421 * regcache.c (regcache_cooked_read_using_offset_hack)
1422 (regcache_cooked_write_using_offset_hack): Delete functions.
1423 (cooked_xfer_using_offset_hack): Delete function.
1424 (register_changed): Delete function.
1425
568f8739
JB
14262002-11-07 Jim Blandy <jimb@redhat.com>
1427
1428 * macroscope.c: #include "complaints.h".
1429 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1430 but not in the macro table.
1431 * Makefile.in (macroscope.o): Record dependency.
1432
b0718b7b
JB
14332002-11-07 Joel Brobecker <brobecker@gnat.com>
1434
1435 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1436
2b9e5f3f
AC
14372002-11-07 Andrew Cagney <ac131313@redhat.com>
1438
1439 * regcache.c (deprecated_registers_fetched): Update.
1440 * regcache.h (deprecated_registers_fetched): Rename
1441 registers_fetched.
1442 * remote-vxsparc.c (vx_read_register): Update.
1443 * remote-vxmips.c (vx_read_register): Update.
1444 * remote-vx68.c (vx_read_register): Update.
1445 * irix5-nat.c (fetch_core_registers): Update.
1446 * mipsm3-nat.c (fetch_inferior_registers): Update.
1447 * sun3-nat.c (fetch_inferior_registers): Update.
1448 * symm-nat.c (fetch_inferior_registers): Update.
1449 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1450 (fetch_core_registers): Update.
1451 (fetch_kcore_registers): Update.
1452 * mips-nat.c (fetch_inferior_registers): Update.
1453 * corelow.c (get_core_registers): Update.
1454 * a68v-nat.c (fetch_inferior_registers): Update.
1455
e6e68f1f
JB
14562002-11-06 Joel Brobecker <brobecker@gnat.com>
1457
1458 Put in place the framework necessary for multiarching the hppa targets.
1459 * hppa-tdep.c (hppa_gdbarch_init): New function.
1460 (hppa_dump_tdep): New function.
1461 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1462 tdep structure dumper.
1463 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1464 until the multi-arching conversion has partially been completed.
1465
492254e9
AC
14662002-11-06 Andrew Cagney <ac131313@redhat.com>
1467
1468 * valops.c (value_assign): Merge lval_register case into
1469 lval_reg_frame_relative. Use frame_register and
1470 regcache_cooked_write instead of get_saved_register and
1471 write_register_bytes. After flushing the register cache, try to
1472 re-select the selected frame.
1473
8262ee23
AC
14742002-11-06 Andrew Cagney <ac131313@redhat.com>
1475
1476 * regcache.h (deprecated_register_valid): Rename register_valid.
1477 * regcache.c: Update.
1478 * ia64-aix-nat.c: Update.
1479 * i386gnu-nat.c: Update.
1480 * alpha-nat.c: Update.
1481 * sparc-nat.c: Update.
1482 * lynx-nat.c: Update.
1483 * remote-mips.c: Update.
1484
4facf7e8
JB
14852002-11-06 Joel Brobecker <brobecker@gnat.com>
1486
1487 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1488 to end of file, to be more consistent with the pratice followed
1489 by other targets.
1490
f9418c0f
AC
14912002-11-06 Andrew Cagney <ac131313@redhat.com>
1492
1493 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1494 (print_float_info): Print registers in float_reggroup.
1495 (print_vector_info): Print registers in vector_reggroup.
1496 (default_print_registers_info): When all, print registers in
1497 all_reggroup. Otherwize, print registers in general_reggroup.
1498 (registers_info): Rewrite. Add support for register groups.
1499 Eliminate a goto.
1500
3fe235a7
EZ
15012002-11-06 Elena Zannoni <ezannoni@redhat.com>
1502
1503 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1504 ages.
1505 (symtab_symbol_info): Remove eons old ifdeffed out code.
1506 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1507 command.
1508
ef944135
TR
15092002-11-06 Theodore A. Roth <troth@openavr.org>
1510
1511 * c-exp.y: Add missing semi-colons.
1512 * f-exp.y: Add missing semi-colons.
1513 * m2-exp.y: Add missing semi-colons.
1514 * p-exp.y: Add missing semi-colons.
1515 Add empty action to start rule to avoid a type clash error when
1516 building with bison >= 1.50.
1517
f8302a57
JB
15182002-11-06 Jim Blandy <jimb@redhat.com>
1519
1520 * macrotab.h (struct macro_source_file): Doc fix.
1521
6e382aa3
JJ
15222002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1523
1524 * varobj.c (child_exists, cplus_number_of_children): Change
1525 STREQ macro references to strcmp.
1526 (cplus_name_of_child): Change code to handle the fact that
1527 fields are not necessarily contiguous with regards to their
1528 access control. This is a fix for PR gdb/792.
1529
a216a322
AC
15302002-11-05 Andrew Cagney <ac131313@redhat.com>
1531
1532 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1533 * gdbarch.h, gdbarch.c: Regnerate.
1534 * frame.h (frame_register): Declare.
1535 * frame.c (frame_register): New function.
1536 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1537 GET_SAVED_REGISTER, otherwize call
1538 generic_unwind_get_saved_register.
1539 (frame_register_read): Use frame_register instead of
1540 get_saved_register.
1541
7d5b6fdd
EZ
15422002-11-05 Elena Zannoni <ezannoni@redhat.com>
1543
1544 From Jim Ingham <jingham@apple.com>:
1545 * event-top.c (gdb_disable_readline): New function.
1546 (_initialize_event_loop): Move comment.
1547
b7c64260
EZ
15482002-11-05 Elena Zannoni <ezannoni@redhat.com>
1549
1550 * event-loop.c (start_event_loop): Add comment.
1551 Update copyright.
1552
c2e1b8f2
AC
15532002-11-05 Andrew Cagney <ac131313@redhat.com>
1554
1555 * infcmd.c (default_print_registers_info): Do not call
1556 PRINT_REGISTER_HOOK.
1557
87647bb0
AC
15582002-11-05 Andrew Cagney <ac131313@redhat.com>
1559
1560 * sparc-tdep.c (sparc_print_register_hook): Make static.
1561 (sparc_print_registers_info): New function.
1562 (sparc_do_registers_info): New function.
1563 (sparclet_print_registers_info): New function.
1564 (sparclet_do_registers_info): New function.
1565 (do_sparc_print_registers_info): New function.
1566 (sparc_print_registers): New static function, clone of infcmd.c's
1567 default_print_registers_info.
1568 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1569 (sparclet_do_registers_info): Declare.
1570 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1571 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1572 Re-define.
1573 (sparc_do_registers_info): Declare.
1574 (PRINT_REGISTER_HOOK): Delete macro.
1575 (sparc_print_register_hook): Delete declaration.
1576
8155455b
DC
15772002-11-05 David Carlton <carlton@math.stanford.edu>
1578
1579 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1580 functions.
1581 (lookup_symbol_aux_local): New function.
1582 (lookup_symbol_aux_symtabs): New function.
1583 (lookup_symbol_aux_psymtabs): New function.
1584
29924310
DC
15852002-11-05 David Carlton <carlton@math.stanford.edu>
1586
1587 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1588 previous values of 'objfile' and 'block'.
1589
cc303028
PM
15902002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1591
1592 * values.c (value_change_enclosing_type): Set
1593 enclosing_type field correctly also for the case where
1594 more memory needs to be allocated.
1595
1d70089a
MK
15962002-11-03 Mark Kettenis <kettenis@gnu.org>
1597
f16a25ae
MK
1598 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1599 of puts_filtered.
1600
1d70089a
MK
1601 * i387-tdep.c (i387_print_float_info): Replace calls to
1602 register_read and deprecated_read_register_gen with calls to
1603 frame_register_read, and make the necessary adjustments to the
1604 surrounding code.
1605
7e20f3fb
AC
16062002-11-02 Andrew Cagney <ac131313@redhat.com>
1607
1608 * gdbarch.sh (register_reggroup_p): Allow default value.
1609 * gdbarch.h, gdbarch.c: Regenerate.
1610
192dbe33
AC
16112002-11-02 Andrew Cagney <ac131313@redhat.com>
1612
1613 * regcache.h: Add coment indicating replacements for deprecated
1614 functions.
1615
b59ff9d5
AC
16162002-11-02 Andrew Cagney <cagney@redhat.com>
1617
1618 * reggroups.h, reggroups.c: New files.
1619 * regcache.c: Include "reggroups.h".
1620 (enum regcache_dump_what): Add `regcache_dump_groups'.
1621 (regcache_dump): Contract size of the "Type" column. When
1622 specified, dump the register's groups.
1623 (maintenance_print_register_groups): New function.
1624 (_initialize_regcache): Add command `maint print register-groups'.
1625 * Makefile.in (COMMON_OBS): Add reggroups.o
1626 (SFILES): Add reggroups.c.
1627 (reggroups_h): Define.
1628 (regcache.o, gdbarch.o): Update dependencies.
1629 (reggroups.o): Specify dependencies.
1630 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1631 Add opaque declaration for `struct reggroup' in generated .h file.
1632 Include "reggroups.h" in generated .c file.
1633 gdbarch.h, gdbarch.c: Re-generate.
1634
4caf0990
AC
16352002-11-02 Andrew Cagney <cagney@redhat.com>
1636
1637 * regcache.h (deprecated_read_register_gen): Rename
1638 read_register_gen.
1639 (deprecated_write_register_gen): Rename write_register_gen.
1640 * i387-tdep.c: Update.
1641 * x86-64-linux-nat.c: Update
1642 * wince.c: Update.
1643 * thread-db.c: Update.
1644 * win32-nat.c: Update.
1645 * mips-tdep.c: Update.
1646 * d10v-tdep.c: Update.
1647 * cris-tdep.c: Update.
1648 * remote-sim.c: Update.
1649 * remote-rdi.c: Update.
1650 * remote-rdp.c: Update.
1651 * frame.c: Update.
1652 * target.c: Update.
1653 * blockframe.c: Update.
1654 * x86-64-tdep.c: Update.
1655 * xstormy16-tdep.c: Update.
1656 * sh-tdep.c: Update.
1657 * s390-tdep.c: Update.
1658 * rs6000-tdep.c: Update.
1659 * sparc-tdep.c: Update.
1660 * i386-tdep.c: Update.
1661 * dwarf2cfi.c: Update.
1662 * regcache.c: Update.
1663
7a7adcdf
JB
16642002-11-01 Joel Brobecker <brobecker@gnat.com>
1665
1666 New interix-specific files:
1667 * config/i386/nm-interix.h: New file.
1668 * config/i386/interix.mh: New file.
1669 * config/i386/interix.mt: New file.
1670 * i386-interix-nat.c: New file.
1671 * i386-interix-tdep.c: New file.
1672
bdcdd535
AC
16732002-11-01 Andrew Cagney <cagney@redhat.com>
1674
1675 * frame.h (deprecated_generic_get_saved_register): Rename
1676 generic_get_saved_register.
1677 * blockframe.c (deprecated_generic_get_saved_register): Update.
1678 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1679 (xstormy16_frame_saved_register): Update.
1680 * sh-tdep.c (sh_gdbarch_init): Update.
1681 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1682 * ia64-tdep.c (ia64_get_saved_register): Update.
1683 * cris-tdep.c (cris_gdbarch_init): Update.
1684 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1685 * arm-tdep.c (arm_gdbarch_init): Update.
1686
2a4b7c45
DJ
16872002-10-31 Daniel Jacobowitz <drow@mvista.com>
1688
1689 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1690
ef17e74b
DJ
16912002-10-31 Daniel Jacobowitz <drow@mvista.com>
1692
1693 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1694 trampolines in sigaction.
1695
4904ba5b
AC
16962002-10-31 Andrew Cagney <cagney@redhat.com>
1697
1698 * h8300-tdep.c: Include "gdb_assert.h".
1699 (h8300_print_register): Add gdbarch, file and frame parameters.
1700 Use frame_read_unsigned_register to read the register's value.
1701 Use fprintf_filtered to display output.
1702 (h8300_print_registers_info): Replace h8300_do_registers_info.
1703 (h8300_gdbarch_init): Set print_registers_info.
1704
f908a0eb
AC
17052002-10-31 Andrew Cagney <cagney@redhat.com>
1706
1707 * frame.c (frame_read_unsigned_register): New function.
1708 (frame_read_signed_register): New function.
1709 * frame.h (frame_read_unsigned_register): Declare.
1710 (frame_read_signed_register): Declare.
1711
c5646e11
AC
17122002-10-31 Andrew Cagney <cagney@redhat.com>
1713
1714 * h8500-tdep.c (h8500_print_registers_info): New static function,
1715 clone of infcmd.c's default_print_registers_info.
1716 (h8500_do_registers_info): New funtion.
1717 (h8500_print_register_hook): Rename print_register_hook, make
1718 static.
1719
1720 * config/h8500/tm-h8500.h: Update copyright.
1721 (DEPRECATED_DO_REGISTERS_INFO): Define.
1722 (h8500_do_registers_info: Declare.
1723 (PRINT_REGISTER_HOOK): Delete macro.
1724 (print_register_hook): Delete function.
1725
0bdd672b
AC
17262002-10-31 Andrew Cagney <cagney@redhat.com>
1727
1728 * z8k-tdep.c (z8k_print_register_hook): Make static.
1729 (z8k_print_registers_info): New static function, clone of
1730 infcmd.c's default_print_registers_info.
1731 (z8k_do_registers_info): New function. Wrap
1732 z8k_print_registers_info.
1733 * config/z8k/tm-z8k.h: Update copyright.
1734 (PRINT_REGISTER_HOOK): Delete macro.
1735 (z8k_print_register_hook): Delete declaration.
1736 (DEPRECATED_DO_REGISTERS_INFO): Define.
1737 (z8k_do_registers_info): Declare.
1738
bf9c25dc
JB
17392002-10-30 Joel Brobecker <brobecker@gnat.com>
1740
1741 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1742 as this is already provided by value.h, and was actually causing
1743 a compilation error because of a conflict in parameter type
1744 declaration due to a missing const keyword.
1745 (low_text_segment_addres): Fix a compilation warning.
1746
2c665b51
DJ
17472002-10-29 Daniel Jacobowitz <drow@mvista.com>
1748
1749 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1750 registers without a name.
1751 (mips_linux_cannot_store_register): Don't store registers without
1752 a name.
1753
e70ea697
DC
17542002-10-28 David Carlton <carlton@math.stanford.edu>
1755
1756 * symtab.c (find_addr_symbol): Delete. (It was already commented
1757 out.)
1758 * symtab.h: Delete prototype for find_addr_symbol.
1759
903ad3a6
AC
17602002-10-26 Andrew Cagney <cagney@redhat.com>
1761
1762 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1763 DO_REGISTERS_INFO.
1764 gdbarch.h, gdbarch.c: Re-generate.
1765 * infcmd.c (default_print_registers_info): Update reference.
1766 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1767 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1768 * sh-tdep.c (sh_gdbarch_init): Ditto.
1769 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1770 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1771
ab91194c
MK
17722002-10-26 Mark Kettenis <kettenis@gnu.org>
1773
e3033f15
MK
1774 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1775 cfi_init_extra_frame_info.
1776 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1777 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1778
b83b026c
MK
1779 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1780 target where necessary. Add more comments and remove the ones
1781 that don't provide any useful information.
1782
267bf4bb
MK
1783 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1784 deprecated_read_register_dummy with
1785 frame_unwind_unsigned_register.
1786
751f1375
MK
1787 * i386-tdep.c (i386_extract_struct_value_address): Use
1788 regcache_raw_read_unsigned instead of
1789 regcache_cooked_read_unsigned since we know that the register
1790 we're reading isn't a pseudo register. Rename variable 'val' into
1791 the more descriptive 'addr'.
1792
26abbdc4
MK
1793 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1794 (x86_64_push_return_address): Add comment.
1795 (x86_64_pop_frame): Make static.
1796 (examine_argument): Clarify comment.
1797 (x86_64_skip_prologue): Make prolog_expact variable static.
1798
9f1549cc
MK
1799 * dwarf2cfi.c: Fix some formatting problems.
1800 (context_cpy, read_encoded_pointer): Clarify comments.
1801
ab91194c
MK
1802 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1803 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1804 i386 target back into x86_64_gdbarch_init. Add some comments and
1805 remove meaningless ones.
1806
72367fb4
AC
18072002-10-25 Andrew Cagney <cagney@redhat.com>
1808
1809 * complaints.h (struct deprecated_complaint): Rename `struct
1810 complaint'.
1811 * complaints.c (complain): Update.
1812 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1813 incorrect comment indicating that "symfile.h" was being included
1814 for the `struct complaint' definition.
1815 * remote-vx.c: Update.
1816 * objc-lang.c: Update.
1817 * xcoffread.c: Update.
1818 * hpread.c: Update.
1819 * mdebugread.c: Update.
1820 * stabsread.c: Update.
1821 * dwarf2read.c: Update.
1822 * dwarfread.c: Update.
1823 * elfread.c: Update.
1824 * coffread.c: Update.
1825 * stabsread.h: Update.
1826 * dbxread.c: Update.
1827 * buildsym.c: Update.
1828 * gdbtypes.c: Update.
1829 * macrotab.c: Update.
1830
1f2baacc
MK
18312002-10-25 Mark Kettenis <kettenis@gnu.org>
1832
0c1a73d6
MK
1833 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1834 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1835 (x86_64_init_abi): ...new function.
1836
6aee4d54 1837 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1838 * i386v-nat.c: Include "i386-tdep.h".
1839
8f9cbe01
AC
18402002-10-25 Andrew Cagney <cagney@redhat.com>
1841
5f11f355
AC
1842 * gdbtypes.c (address_space_name_to_int): Update.
1843 (address_space_int_to_name): Update.
1844 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1845 multi-arch predicate.
1846 (address_class_name_to_type_flags): Ditto.
1847 * gdbarch.h, gdbarch.c: Re-generate.
1848
8f9cbe01
AC
1849 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1850
e8d96a5d
MH
18512002-10-24 Martin M. Hunt <hunt@redhat.com>
1852
1853 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1854
fe39c653
EZ
18552002-10-24 Elena Zannoni <ezannoni@redhat.com>
1856
1857 * symtab.h (INIT_SAL): Delete macro.
1858 (init_sal): Export.
1859 * symtab.c (init_sal): New function.
1860
1861 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1862 to init_sal function call.
1863 (find_sal_from_funcs_and_line): Ditto.
1864 (all_sals_for_line): Ditto.
1865 * breakpoint.c (create_internal_breakpoint): Ditto.
1866 (create_fork_vfork_event_catchpoint): Ditto.
1867 (create_exec_event_catchpoint): Ditto.
1868 (parse_breakpoint_sals): Ditto.
1869 (watch_command_1): Ditto.
1870 (handle_gnu_4_16_catch_command): Ditto.
1871 (clear_command): Ditto.
1872 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1873 * infcmd.c (run_stack_dummy): Ditto.
1874 * infrun.c (process_event_stop_test): Ditto.
1875 (check_sigtramp2): Ditto.
1876 (step_over_function): Ditto.
1877 * linespec.c (decode_line_2): Ditto.
1878 (decode_line_1): Ditto.
1879 * source.c (line_info): Ditto.
1880 * symtab.c (find_pc_sect_line): Ditto.
1881
baed091b
ML
18822002-10-24 Michal Ludvig <mludvig@suse.cz>
1883
1884 * dwarf2cfi.c (struct context)
1885 (struct context_reg): Moved to dwarf2cfi.h
1886 (context_alloc, frame_state_alloc, context_cpy):
1887 Made extern instead of static, removed prototypes.
1888 * dwarf2cfi.h (struct context)
1889 (struct context_reg): New, moved from dwarf2cfi.c
1890 (context_alloc, frame_state_alloc, context_cpy):
1891 New prototypes.
1892 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1893 Changed from static to extern.
1894 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1895 (LINUX_SIGCONTEXT_FP_OFFSET)
1896 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1897 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1898 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1899 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1900 set_gdbarch_*() calls now use x86-64 specific functions
1901 instead of DWARF2 CFI ones.
1902 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1903 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1904 (x86_64_init_extra_frame_info): New prototypes.
1905
c38da1af
DC
19062002-10-23 David Carlton <carlton@math.stanford.edu>
1907
1908 * linespec.c: #include "parser-defs.h".
1909 Delete prototype for find_template_name_end.
1910 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1911
fb9b6b35
JJ
19122002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1913
1914 * NEWS: add recent mi fixes.
1915 * varobj.c (struct varobj): Add new "updated" flag.
1916 (new_variable): Default "updated" flag to 0.
1917 (varobj_set_value): Set "updated" flag to 1 if value
1918 changes.
1919 (varobj_update): Check varobj "updated" flag before
1920 comparing old and refreshed values. Fix for
1921 PR gdb/702.
1922
8da065d5
DC
19232002-10-23 David Carlton <carlton@math.stanford.edu>
1924
1925 * parse.c (parse_exp_1): Use BLOCK_START.
1926 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1927 SYMBOL_BLOCK_VALUE.
1928 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1929
87f2f08c
DC
19302002-10-23 David Carlton <carlton@math.stanford.edu>
1931
1932 * symtab.c: Delete cplusplus_hint.
1933 Delete prototype for find_template_name_end.
1934
88cda038
EZ
19352002-10-23 Elena Zannoni <ezannoni@redhat.com>
1936
1937 * symtab.h: Update comment.
1938
2625d86c
MS
19392002-10-23 Michael Snyder <msnyder@redhat.com>
1940
1941 * printcmd.c (address_info): Restore quotes in output.
1942 * valops.c (value_of_local): Restore quotes in error message.
1943
9cc0d196
EZ
19442002-10-23 Elena Zannoni <ezannoni@redhat.com>
1945
1946 * symtab.c (symbol_demangled_name): New function.
1947 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
1948 turning most of it into a function.
1949 (symbol_demangled_name): Export.
1950
19de93d0
MS
19512002-10-23 Michael Snyder <msnyder@redhat.com>
1952
1953 * valops.c (value_of_local): Restore quotes in error message.
1954
89aad1f9
EZ
19552002-10-23 Elena Zannoni <ezannoni@redhat.com>
1956
1957 * symtab.c (symbol_init_language_specific): New function.
1958 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
1959 turning most of it into a function.
1960 (symbol_init_language_specific): Export.
1961
d9fa45fe
DC
19622002-10-23 David Carlton <carlton@math.stanford.edu>
1963
1964 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
1965 (dwarf_attr_name): Ditto.
1966 (dwarf_type_encoding_name): Ditto.
1967 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
1968 (process_die): Handle DW_TAG_namespace,
1969 DW_TAG_imported_declaration, DW_TAG_imported_module.
1970 (read_namespace): New function.
1971
1045b512
JB
19722002-10-22 Joel Brobecker <brobecker@gnat.com>
1973
1974 * configure.in: Define NEW_PROC_API on Interix too.
1975 * configure: Regenerate.
1976
19772002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
1978
1979 * configure: Regenerate using the proper version of autoconf.
1980
3987b9d4
EZ
19812002-10-21 Elena Zannoni <ezannoni@redhat.com>
1982
1983 * findvar.c (read_var_value): Temporarily disable TLS code, until
1984 complete TLS support is added.
1985
9d774e44
EZ
19862002-10-21 Jim Blandy <jimb@redhat.com>
1987 Elena Zannoni <ezannoni@redhat.com>
1988
1989 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
1990 for thread local storage locations.
1991 (struct symbol): Add objfile field.
1992 (SYMBOL_OBJFILE): Define.
1993 * dwarf2read.c (is_thread_local): New static variable.
1994 (new_symbol): If variable is in thread local fill in address class
1995 and objfile appropriately.
1996 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
1997 stack operation.
1998 * printcmd.c (address_info): Print the information for thread
1999 local storage variable.
2000 * findvar.c (read_var_value): In case of thread local variable,
2001 defer to the target vector code to compute address.
2002
bc4a16ae
EZ
20032002-10-21 Elena Zannoni <ezannoni@redhat.com>
2004
2005 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2006 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2007
407caf07
EZ
20082002-10-21 Elena Zannoni <ezannoni@redhat.com>
2009
2010 * symtab.h (address_class): Rename
2011 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2012 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2013 * printcmd.c (address_info): Ditto.
2014 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2015
005328e3
MK
20162002-10-20 Mark Kettenis <kettenis@gnu.org>
2017
afdb036a
MK
2018 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2019 DBREG_DRX macro to acces debug registers.
2020
ca02e098
MK
2021 * Makefile.in (i386obsd-tdep.o): New target.
2022
03cc47f7
MK
2023 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2024 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2025
005328e3
MK
2026 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2027 * config/i386/obsd.mt: New file.
2028 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2029 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2030 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2031 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2032 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2033 * i386obsd-tdep.c: New file.
2034
9c96f9f2
AF
20352002-10-19 Adam Fedor <fedor@gnu.org>
2036
2037 * objc-exp.y (name_not_typename): Fix invalid comment.
2038
ce1ed485
MK
20392002-10-20 Mark Kettenis <kettenis@gnu.org>
2040
2041 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2042 to allocate partial syms and macro byte caches.
2043
1efc7aaa
DC
20442002-10-18 David Carlton <carlton@math.stanford.edu>
2045
2046 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2047
7e1d63ec
AF
20482002-10-18 Adam Fedor <fedor@gnu.org>
2049
2050 * stabsread.c (find_name_end): New function.
2051 (define_symbol): Use it.
2052
6e8d29a9
DJ
20532002-10-18 Daniel Jacobowitz <drow@mvista.com>
2054
2055 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2056 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2057 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2058 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2059
1efc7aaa 20602002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2061
2062 * symfile.h: Add opaque declaration for struct obstack.
2063 Declare obsavestring to take a const char *.
2064 * symfile.c (obsavestring): Make first argument a const char *.
2065
1aeae86e
AF
20662002-10-16 Adam Fedor <fedor@gnu.org>
2067
2068 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2069 names when matching breakpoints in current file.
2070
8b2dbe47
KB
20712002-10-16 Kevin Buettner <kevinb@redhat.com>
2072
2073 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2074 (read_tag_pointer_type): Add address class support.
2075 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2076 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2077 New methods.
2078 * gdbarch.h, gdbarch.c: Regenerate.
2079 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2080 (make_type_with_address_space, recursive_type_dump): Add address
2081 class support.
2082 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2083 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2084 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2085
74451869
KD
20862002-10-16 Klee Dienes <kdienes@apple.com>
2087
2088 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2089 to get the last character of a char[] buffer, not
2090 name[sizeof(vptr_name)-1].
2091
ff4cb3e8
AF
20922002-10-14 Adam Fedor <fedor@gnu.org>
2093
2094 * symtab.h: New objc_specific struct.
2095 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2096 (SYMBOL_DEMANGLED_NAME): Likewise.
2097
da2cf7e0
AF
20982002-10-14 Adam Fedor <fedor@gnu.org>
2099
2100 * symfile.c (init_filename_language_table): Add ObjC file extension.
2101
4a351cef
AF
21022002-10-14 Adam Fedor <fedor@gnu.org>
2103
2104 * utils.c (puts_filtered_tabular): New function.
2105 (fprintf_symbol_filtered): Get ObjC demangled name.
2106 * defs.h (puts_filtered_tabular): Declared.
2107
9750e763
KB
21082002-10-14 Kevin Buettner <kevinb@redhat.com>
2109
2110 * c-lang.h (c_type_print_varspec_prefix): Delete.
2111 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2112 ``need_post_space'' parameter. Adjust all callers.
2113
eee771c1
DJ
21142002-10-14 Daniel Jacobowitz <drow@mvista.com>
2115
2116 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2117 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2118 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2119 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2120
46c82446
AF
21212002-10-13 Adam Fedor <fedor@gnu.org>
2122
2123 * source.c (print_source_lines): Update comments.
2124
d069f99d
AF
21252002-10-13 Adam Fedor <fedor@gnu.org>
2126
2127 * valops.c (value_of_local): New function.
2128 (value_of_this): Use it.
2129 * value.h (value_of_local): Declared.
2130
53c551b7
AF
21312002-10-13 Adam Fedor <fedor@gnu.org>
2132
2133 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2134 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2135
eb392fbf
AF
21362002-10-12 Adam Fedor <fedor@gnu.org>
2137
2138 * language.c (binop_result_type): Add language_objc to case.
2139 (integral_type): Likewise.
2140 (character_type): Likewise.
2141 (string_type): Likewise.
2142 (boolean_type): Likewise.
2143 (structured_type): Likewise.
2144 (binop_type_check): Likewise.
2145
e2b23ee9
AF
21462002-10-11 Adam Fedor <fedor@gnu.org>
2147
2148 * printcmd.c (address_info): Print 'self' for ObjC.
2149
b01ab485
AF
21502002-10-11 Adam Fedor <fedor@gnu.org>
2151
2152 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2153 OP_SELF.
2154
806e6073
AF
21552002-10-11 Adam Fedor <fedor@gnu.org>
2156
2157 * language.h (CAST_IS_CONVERSION): Add language_objc.
2158
50f85cdf
AF
21592002-10-11 Adam Fedor <fedor@gnu.org>
2160
2161 * defs.h (enum language): Add language_objc.
2162
0d540cdf
KD
21632002-10-11 Klee Dienes <kdienes@apple.com>
2164
69266111 2165 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2166 * gdbcore.h (read_memory_typed_address): Add prototype.
2167 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2168 to read a value destined for a CORE_ADDR, not read_memory_integer.
2169 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2170 (f77_get_dynamic_lowerbound): Ditto.
2171
d5dc7960
MH
21722002-10-11 Martin M. Hunt <hunt@redhat.com>
2173
2174 * utils.c (string_to_core_addr): After turning string into
2175 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2176 which will do necessary sign-extension, etc.
2177
8343f86c
DJ
21782002-10-11 Daniel Jacobowitz <drow@mvista.com>
2179
2180 * c-exp.y (THIS): Delete token and grammar rule.
2181 (yylex): Don't return THIS.
2182 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2183 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2184 * demangle.c (cplus_markers): Update comment. Put '$'
2185 first. Remove CPLUS_MARKER.
2186 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2187 * jv-exp.y (THIS): Delete token and grammar rule.
2188 (yylex): Don't return THIS.
2189 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2190 * objc-exp.y (THIS): Delete token and grammar rule.
2191 (yylex): Don't return THIS.
2192 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2193 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2194 (read_member_functions): Likewise for opname.
2195 (read_tilde_fields): Use is_cplus_marker.
2196
2197 * defs.h (CPLUS_MARKER): Don't define.
2198 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2199 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2200 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2201 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2202 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2203
2204 * config/i386/tm-i386v4.h: Delete file.
2205 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2206 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2207 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2208 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2209 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2210 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2211 * config/i386/i386v4.mt (TM_FILE): Likewise.
2212 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2213
967c0d83
MM
22142002-10-10 Marko Mlinar <markom@opencores.org>
2215
2216 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2217 accidentially not commited 2002-10-09
2218 * gdbarch.h, gdbarch.c: Re-generate.
2219
f74fa174
MM
22202002-10-09 Marko Mlinar <markom@opencores.org>
2221
2222 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2223 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2224 * gdbarch.h, gdbarch.c: Re-generate.
2225
57349743
JB
22262002-10-08 Petr Sorfa <petrs@caldera.com>
2227
2228 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2229
2230 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2231 so we can work on more than one compilation unit at a time. This
2232 helps prepare GDB to handle inter-CU die references.
2233 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2234 the code to be defined before struct comp_unit_head.
2235 (comp_unit_head): Added new members - offset, cu_head,
2236 begin_die, next and dwarf2_abbrevs.
2237 (dwarf2_abbrevs): Removed single static var; now member of
2238 struct comp_unit_head.
2239 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2240 members.
2241 (psymtab_to_symtab_1): Changed to work with the new
2242 struct comp_unit_head.
2243 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2244 constructs the dwarf2_abbrevs[] inside the cu_header.
2245 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2246 dwarf2_abbrev table to clean up.
2247 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2248 handling of dwarf2_abbrevs inside the cu_header.
2249 (read_partial_die): Now supports the call to the new
2250 dwarf2_lookup_abbrev.
2251 (read_full_die): Now supports the call to the new
2252 dwarf2_lookup_abbrev.
2253
4092aadb
CF
22542002-10-06 Christopher Faylor <cgf@redhat.com>
2255
2256 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2257 insure that shell variables, such as "transformed_name" are propagated
2258 to later shell statements in rule.
2259
af0b2512
MK
22602002-10-06 Mark Kettenis <kettenis@gnu.org>
2261
2262 * config/i386/nm-i386sco.h: Add protection against
2263 multiple-inclusion. Include "i386/nm-i386v.h".
2264 (REGISTER_U_ADDR): Remove define.
2265 (i386_register_u_addr): Remove prototype.
2266
d6020d45
MS
22672002-10-04 Michael Snyder <msnyder@redhat.com>
2268
2269 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2270 before treating it as a single-step event.
2271
7248f48e
AF
22722002-10-03 Adam Fedor <fedor@gnu.org>
2273
2274 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2275 (objc_demangle): Remove assignment in if statements, Replace
2276 free with xfree.
2277 (add_msglist): Likewise.
2278 (end_msglist): Likewise.
2279 (complare_selectors): Likewise.
2280 (selectors_info): Likewise.
2281 (compare_classes): Likewise.
2282 (classes_info): Likewise.
2283 (print_object_command): Likewise.
2284 (find_objc_msgcall_submethod): Replace PTR with void *.
2285 * objc-lang.h: Remove check for __STDC__.
2286
52c6a6ac
JJ
22872002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2288
2289 * ui-out.h (ui_out_field_fmt_int): New prototype.
2290 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2291 of field width and alignment.
2292 * stack.c (print_frame_info_base): When printing frame level, use
2293 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2294 PR gdb/192
2295
7e3cec17
JJ
22962002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2297
2298 * MAINTAINERS: Add self to Write After Approval list.
2299
a58dd373
EZ
23002002-10-02 Elena Zannoni <ezannoni@redhat.com>
2301
2302 * infcmd.c (interrupt_target_command_wrapper): Delete.
2303 (interrupt_target_command): Make non static.
2304 (nofp_registers_info): Make static.
2305 * stack.c (return_command_wrapper): Delete.
2306 (return_command): Make non static.
2307
cee6ddeb
EZ
23082002-10-02 Elena Zannoni <ezannoni@redhat.com>
2309
2310 * event-top.c (gdb_setup_readline): New function. Code moved from
2311 _initialize_event_loop().
2312 (_initialize_event_loop): Call gdb_setup_readline().
2313
c4ed33b9
AC
23142002-10-02 Andrew Cagney <ac131313@redhat.com>
2315
2316 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2317 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2318 * gdbarch.h, gdbarch.c: Re-generate.
2319
cef4f5dd
DJ
23202002-10-02 Daniel Jacobowitz <drow@mvista.com>
2321
2322 Fix PR gdb/778
2323 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2324 before recursing.
2325 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2326 of fill_in_vptr_fieldno.
2327
36dc181b 23282002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2329
36dc181b
EZ
2330 * inferior.h (registers_info, stepi_command, nexti_command,
2331 continue_command, interrupt_target_command): Export from infcmd.c.
2332 * frame.h (args_info, selected_frame_level_changed_hook,
2333 return_command): Export from stack.c.
2334 * v850ice.c (stepi_command, nexti_command, continue_command): use
2335 prototypes from inferior.h.
2336 * tracepoint.c (registers_info, args_info, locals_info): Use
2337 prototypes from frame.h and inferior.h.
2338 * Makefile.in (mi-main.o): Add dependency on frame.h.
2339
6f99cb26
AC
23402002-10-02 Andrew Cagney <ac131313@redhat.com>
2341
da3eff49
AC
2342 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2343 value in register 3 adjusted by ppc_gp0_regnum.
2344
6f99cb26
AC
2345 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2346
da615bee
MM
23472002-10-02 Marko Mlinar <markom@opencores.org>
2348
2349 * MAINTAINERS: Add myself to the Write After Approval list.
2350
d154bee2
AO
23512002-10-01 Alexandre Oliva <aoliva@redhat.com>
2352
62a49b2c
AO
2353 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2354 of the section for the N64 ABI, fixed.
2355
d154bee2
AO
2356 * config/mips/tm-irix6.h: Include solib.h.
2357
ed348acc
EZ
23582002-10-01 Elena Zannoni <ezannoni@redhat.com>
2359
2360 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2361 GNU operators.
2362
da0f9dcd
AC
23632002-10-01 Andrew Cagney <ac131313@redhat.com>
2364
2365 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2366 and that "mi0" syntax has been removed.
2367
bdf64bac
DC
23682002-09-30 David Carlton <carlton@math.stanford.edu>
2369
2370 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2371 * ppc-sysv-tdep.c: #include "gdb_string.h".
2372 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2373 pacify GCC.
2374
54c2a1e6
AC
23752002-10-01 Andrew Cagney <ac131313@redhat.com>
2376
2377 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2378 "vrsave"'s register number.
2379
cedea778
AC
23802002-09-30 Andrew Cagney <ac131313@redhat.com>
2381
2382 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2383 use frame_unwind_signed_register to obtain the PC.
2384 (mips_frame_chain): Handle a generic dummy frame.
2385 (mips_init_extra_frame_info): When a generic dummy frame, don't
2386 re-compute the frame base.
2387 (mips_pop_frame): Handle generic dummy frames.
2388 (mips_gdbarch_init): When generic dummy frames, set
2389 use_generic_dummy_frames, push_dummy_frame to
2390 generic_push_dummy_frame, pc_in_call_dummy to
2391 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2392 generic_save_dummy_frame_tos.
2393
68315eb8
AC
23942002-09-30 Andrew Cagney <ac131313@redhat.com>
2395
2396 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2397 against TOP when TOP was explictly set.
2398 (generic_push_dummy_frame): Set TOP to zero.
2399
3b8630c3
EZ
24002002-09-30 Elena Zannoni <ezannoni@redhat.com>
2401
2402 * event-loop.c (start_event_loop): Rename variable 'result' to
2403 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2404
28ee05e9
KS
24052002-09-30 Keith Seitz <keiths@redhat.com>
2406
2407 * gdb-events.sh (selected_thread_changed): New event.
2408 * gdb-events.c: Regenerated.
2409 * gdb-events.h: Regenerated.
2410
6eecb1c8
HPN
24112002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2412
2413 * MAINTAINERS: Add self to Write After Approval list.
2414
92df71f0
FN
24152002-09-30 Fernando Nasser <fnasser@redhat.com>
2416
3b8630c3
EZ
2417 * disasm.c: New file.
2418 * disasm.h: New file.
92df71f0
FN
2419 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2420 (compare_lines): Ditto.
2421 (dump_insns): Ditto.
3b8630c3
EZ
2422 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2423 argument.
92df71f0 2424 (do_assembly_only): Ditto.
3b8630c3
EZ
2425 (do_disassembly): Renamed to gdb_disassembly and moved to
2426 disasm.c. Sdded uiout argument.
2427 * Makefile.in: Add new files. Reorder SFILES list. Update
2428 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2429
0c22854d
AC
24302002-09-29 Andrew Cagney <ac131313@redhat.com>
2431
2432 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2433 bfd/elf64-alpha-fbsd.c.
2434
e67f2023
AC
24352002-09-29 Andrew Cagney <ac131313@redhat.com>
2436
2437 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2438 i386gnu-tdep.c.
2439
89396210
AC
24402002-09-29 Andrew Cagney <ac131313@redhat.com>
2441
2442 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2443 __FUNCTION__.
2444 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2445 function name.
2446 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2447 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2448 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2449 (S_msg_sig_post_reply): Ditto.
2450
7079c36c
CV
24512002-09-28 Corinna Vinschen <vinschen@redhat.com>
2452
89396210
AC
2453 * sh-tdep.c (sh_use_struct_convention): Use definition according
2454 to ABI.
7079c36c
CV
2455 (sh_push_arguments): Store in register with correct endianess.
2456 (sh_default_store_return_value): Ditto.
2457 (sh_gdbarch_init): Set sizeof long double to 8.
2458
975ac915
MK
24592002-09-27 Mark Kettenis <kettenis@gnu.org>
2460
2461 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2462 Fix some whitespace problems.
2463
9bbe19fb
DC
24642002-09-27 David Carlton <carlton@math.stanford.edu>
2465
2466 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2467 (mcore-tdep.o): Ditto.
2468 (ns32k-tdep.o): Ditto.
2469 (ns32knbsd-tdep.o): Ditto.
2470 (sh3-rom.o): Ditto.
2471 (vax-tdep.o): Ditto.
2472 * cris-tdep.c: #include "gdb_string.h"
2473 * mcore-tdep.c: Ditto.
2474 * ns32k-tdep.c: Ditto.
2475 * ns32knbsd-tdep.c: Ditto.
2476 * sh3-rom.c: Ditto.
2477 * vax-tdep.c: Ditto.
2478
43b2fdc7
DC
24792002-09-27 David Carlton <carlton@math.stanford.edu>
2480
2481 * config/djgpp/fnchange.lst: Add entries for
2482 gdb/testsuite/gdb.c++/m-static files.
2483
e8cfbbd9
JW
24842002-09-27 Jim Wilson <wilson@redhat.com>
2485
2486 * MAINTAINERS: Add myself to the Write After Approval list.
2487
43b2fdc7 24882002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2489
2490 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2491
2492
9f3b7f07
AC
24932002-09-26 Andrew Cagney <ac131313@redhat.com>
2494
2495 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2496 frame.
2497
11269d7e
AC
24982002-09-26 Andrew Cagney <ac131313@redhat.com>
2499
2500 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2501 (rs6000_struct_return_address): Delete variable.
2502 (rs6000_store_struct_return): Update.
2503 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2504 deprecated_extract_struct_value_address.
2505 (rs6000_frame_align): New function.
2506 (rs6000_gdbarch_init): Set frame_align.
2507
f15ab4a7
AC
25082002-09-26 Andrew Cagney <ac131313@redhat.com>
2509
2510 From Grace Sainsbury <graces@redhat.com>:
2511 * Makefile.in (gdbtk-main.o): New target.
2512 (gdb.o): New target.
2513 (main_h): Define.
2514 (main.o): Update dependencies.
2515 (gdb$(EXEEXT)): Add gdb.o.
2516 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2517 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2518 (SUBDIR_GDBTK_CLEAN): Set.
2519 (install-gdbtk): Install the insight binary.
2520 (uninstall-gdbtk): New target.
2521 (all-gdbtk, clean-gdbtk): New rule.
2522 * top.c (use_windows): Default to zero.
2523 * main.c: Include "main.h".
2524 (main): Delete.
2525 (struct captured_main_args): Delete.
2526 (gdb_main): New function.
2527 * main.h: New file.
2528 * gdb.c: New File.
2529
e36180d7
AC
25302002-09-25 Andrew Cagney <cagney@redhat.com>
2531
2532 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2533 (frame_map_regnum_to_name): New function.
2534 (frame_map_name_to_regnum): New function.
2535 * frame.h (frame_map_name_to_regnum): Declare.
2536 (frame_map_regnum_to_name): Declare.
2537 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2538 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2539 * parse.c: Do not include "builtin-regs.h".
2540 (target_map_name_to_register): Delete function.
2541 (write_dollar_variable): Use frame_map_name_to_regnum.
2542 * parser-defs.h (target_map_name_to_register): Delete declaration.
2543 * expprint.c: Include "frame.h".
2544 (print_subexp): Use frame_map_regnum_to_name.
2545 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2546 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2547
8b69000d
AC
25482002-09-25 Andrew Cagney <ac131313@redhat.com>
2549
2550 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2551 wasn't saved, and the next innermost frame is a dummy, return the
2552 dummy frame's link register.
2553
046ca86a
JB
25542002-09-24 Jim Blandy <jimb@redhat.com>
2555
2556 Fix from Paul Breed:
2557 * main.c (captured_main): Add a `break' after the case for 'b'.
2558
94b66fa7
KS
25592002-09-24 Keith Seitz <keiths@redhat.com>
2560
2561 * varobj.c (c_type_of_child): Use get_target_type instead
2562 of TYPE_TARGET_TYPE.
2563
c214a6fd
FN
25642002-09-22 Fernando Nasser <fnasser@redhat.com>
2565
53cb0458
FN
2566 * source.c (get_current_or_default_source_symtab_and_line): Remove
2567 function.
2568 (set_default_source_symtab_and_line): New function. Attempts to
2569 determine a source file to list lines from if one is not currently
2570 defined.
2571 (get_current_source_symtab_and_line): Initialize sal.pc and
2572 sal.end fields.
2573 (set_current_source_symtab_and_line): Mark argument as const.
2574 * source.h: Update declarations and comments.
2575 * linespec.c (decode_line_1): Replace call to removed routine above.
2576 * stack.c (print_frame_info_base): Ditto.
2577 * cli/cli-cmds.c (edit_command): Ditto.
2578 (list_command): Ditto.
2579
25802002-09-22 Fernando Nasser <fnasser@redhat.com>
2581
d6020d45 2582 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2583 sal.pc and sal.end fields.
c214a6fd
FN
2584 (get_current_or_default_source_symtab_and_line): Ditto.
2585 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2586 so we do not cause a new source symtab to be searched for (reverting an
2587 unintentional change from the 2002-09-20 patch).
2588 * scm-lang.c (scm_unpac): Ditto.
2589
cc3b68a5
AC
25902002-09-21 Andrew Cagney <cagney@redhat.com>
2591
2592 * complaints.c (symfile_explanations): Remove new-line from
2593 ``isolated_message''.
2594 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2595 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2596
5835abe7
NC
25972002-09-20 Nick Clifton <nickc@redhat.com>
2598
2599 * NEWS: Announce that V850EA ISA is no longer supported.
2600 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2601
a15ef5f5
DC
26022002-09-20 David Carlton <carlton@math.stanford.edu>
2603
06ba1b39
DC
2604 * Makefile.in (c-lang.o): Correct dependencies.
2605 (utils.o): Gather dependencies.
2606 (charset.o): Move.
a15ef5f5
DC
2607 * c-lang.c: #include "gdb_string.h"
2608
87885426
FN
26092002-09-20 Fernando Nasser <fnasser@redhat.com>
2610
2611 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2612 * cli/cli-cmds.c (list_command): New function. Implements the new
2613 cli edit command.
2614 (_init_cli_cmds): Add new command definition.
2615 * gdb.1: Document edit command.
2616 * doc/gdb.texinfo: Document edit command.
2617
26182002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2619
2620 * source.c: Make global variables current_source_symtab and
2621 current_source_line static.
2622 (list_command): Moved to cli/cli-cmds.c.
2623 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2624 (get_first_line_listed): New accessor function.
2625 (get_lines_to_list): New accessor function.
2626 (get_current_source_symtab_and_line): New function. Retrieves the
2627 position in the source code that we consider current.
2628 (get_current_or_default_source_symtab_and_line): New function.
2629 Like the above but attempts to determine a default position if one
2630 is not currently defined.
2631 (set_current_source_symtab_and_line): New function. Sets the source
2632 code position considered current and returns the previously set one.
2633 (clear_current_source_symtab_and_line): Reset stored information about
2634 a current source line.
2635 (_initialize_source): Remove registration for the "list" command and
2636 its alias.
2637 * source.h: Add declarations for the new functions above.
2638 * symtab.h: Remove declarations for the global variables mentioned
2639 above.
2640 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2641 obtain current source line.
2642 * linespec.c (decode_line_1): Ditto.
2643 * macroscope.c (default_macro_scope): Ditto.
2644 * scm-lang.c (scm_unpac): Ditto.
2645 * stack.c (print_frame_info_base): Ditto.
2646 * symfile.c (clear_symtab_users): Ditto.
2647 * symtab.c (decode_line_spec): Ditto.
2648 * cli/cli-cmds.c (list_command): Moved here from source.c.
2649 (ambiguous_line_spec): Moved here from source.c.
2650 (_init_cli_cmds): Add definition for "list" and its alias.
2651 * Makefile.in: Update dependencies.
2652
ddd216ea
CV
26532002-09-20 Corinna Vinschen <vinschen@redhat.com>
2654
2655 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2656 with what gcc thinks is correct.
2657
6d305052
CV
26582002-09-20 Corinna Vinschen <vinschen@redhat.com>
2659
2660 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2661 multiple register push instruction.
2662
234b45d4
KB
26632002-09-19 Jim Blandy <jimb@redhat.com>
2664
2665 Add support for distinct host and target character sets.
2666 * charset.c, charset.h: New files.
2667 * c-exp.y: #include "charset.h".
2668 (yylex): Convert character and string literals to the target
2669 character set, before returning them as the semantic value of the
2670 token.
2671 * c-lang.c: #include "charset.h".
2672 (c_emit_char): Use charset-specific methods to recognize
2673 characters with backslash escape forms, to decide which characters
2674 to print literally and which to print using numeric escape
2675 sequences, and to convert target characters to host characters
2676 before printing.
2677 * utils.c: #include "charset.h".
2678 (no_control_char_error): New function.
2679 (parse_escape): Use charset-specific methods to recognize
2680 backslash escapes, parse `control character' notation, and convert
2681 characters from the host character set to the target character set.
2682 * configure.in: Set the default host character set.
2683 Check where to find iconv, and what its argument types might be.
2684 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2685 * Makefile.in (SFILES): List charset.c.
2686 (COMMON_OBS): List charset.o.
2687 (charset.o): New rule.
2688 (charset_h): New header dependency variable.
2689 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2690 (LIBICONV): New variable, set by configure.
2691 (CLIBS): Include $(LIBICONV) here.
2692 * aclocal.m4, config.in, configure: Regenerated.
2693
525d6a61
JB
26942002-09-19 Joel Brobecker <brobecker@gnat.com>
2695
2696 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2697 bison 1.35 warning.
2698
3ed93867
RE
26992002-09-19 Richard Earnshaw <rearnsha@arm.com>
2700
2701 * gdb_mbuild.sh: New file.
2702
437666f8
AC
27032002-09-19 Andrew Cagney <ac131313@redhat.com>
2704
2705 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2706
389e51db
AC
27072002-09-18 Andrew Cagney <ac131313@redhat.com>
2708
2709 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2710 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2711 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2712 valops.c, value.h: Revert previous change.
2713
3b4efeaa
MS
27142002-09-18 Michael Snyder <msnyder@redhat.com>
2715
2716 Preliminary support for Objective-C:
2717 * defs.h (language_objc): New enum value.
2718 (puts_filtered_tabular): Declaration only, exported from utils.c.
2719 (skip_quoted): Delete, declared in completer.h.
2720 * c-exp.y: Include completer.h.
2721 * p-exp.y: Ditto.
2722 * jv-exp.y: Ditto.
2723 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2724 New operator enum values.
2725 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2726 * language.c (binop_result_type): Handle language_objc case.
2727 (integral_type, character_type, string_type, boolean_type,
2728 structured_type, binop_type_check): Ditto.
2729 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2730 (struct objc_specific): Add to general_symbol_info.
2731 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2732 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2733 * parser-defs.h (struct objc_class_str): New struct type.
2734 (start_msglist, end_msglist, add_msglist): Declaration only,
2735 exported from objc-lang.c.
2736 * value.h (value_of_local, value_nsstring,
2737 call_function_by_hand_expecting_type): Exported from valops.c.
2738 * valops.c (find_function_addr): Export.
2739 (call_function_by_hand_expecting_type): New function.
2740 (value_of_local): New function.
2741 * symfile.c (init_filename_language_table): Add ".m" extension
2742 for Objective-C.
2743 * utils.c (puts_filtered_tabular): New function.
2744 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2745 (set/show demangle): Extend help-string to refer to ObjC.
2746 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2747 * stabsread.c (symbol_reference_defined): Objective-C symbols
2748 may contain colons: make allowances when scanning stabs strings
2749 for colons.
2750 (objc_find_colon): New function.
2751 * printcmd.c (address_info): If language == objc then print
2752 "self" instead of "this".
2753 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2754 OP_NSSTRING, and OP_SELF.
2755 (prefixify_subexp): Ditto.
2756 * source.c (print_source_lines): Mention objc in comment.
2757 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2758 method names.
2759
b9caf505
AC
27602002-09-18 Andrew Cagney <ac131313@redhat.com>
2761
2762 * complaints.h: Update copyright.
2763 (struct complaints): Declare.
2764 (struct complaint): Make `message' constant.
2765 (internal_complaint): Declare.
2766 (complaint): Declare.
2767 (complaint_root): Delete declaration.
2768 (symfile_complaints): Delete declaration.
2769 (struct complaints): Add opaque declaration.
2770 (clear_complaints): Add a complaints parameter.
2771 * complaints.c: Update copyright.
2772 (enum complaint_series): Define.
2773 (complaint_root): Delete.
2774 (struct complaints): Define.
2775 (complaint_sentinel, symfile_complaint_book): New variables.
2776 (symfile_explanations, symfile_complaints): New variables.
2777 New variables.
2778 (get_complaints): New function.
2779 (vcomplaint): New function.
2780 (complaint): New function.
2781 (internal_complaint): New function.
2782 (complain): Call vcomplain with symfile_complaint.
2783 (clear_complaints): Rewrite.
2784 (_initialize_complaints): Use add_setshow_command.
2785 * Makefile.in (complaints.o): Update dependencies.
2786 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2787 to call to clear_complaints.
2788 (new_symfile_objfile, reread_symbols): Ditto.
2789 (oldsyms_complaint): Delete.
2790 (empty_symtab_complaint, unknown_option_complaint): Delete.
2791 (free_named_symtabs): Use complaint instead of complain.
2792
d2e6263c
MS
27932002-09-18 Michael Snyder <msnyder@redhat.com>
2794
5fb2031a
AC
2795 Contributed by Apple Computer, Inc. Merged with current sources
2796 by Adam Fedor <fedor@doc.com> [cagney].
2797
d2e6263c
MS
2798 * objc-lang.c: First clean-up round: comments, indentation.
2799 * objc-lang.h: Ditto.
2800 * objc-lang.y: Ditto.
2801
dec43320
AC
28022002-09-18 Andrew Cagney <ac131313@redhat.com>
2803
2804 * maint.c (maintenance_internal_error): Print the parameter as the
2805 error message.
2806 (maintenance_internal_warning): New function.
2807 (_initialize_maint_cmds): Add command `maint internal-warning'.
2808
2809 * defs.h (internal_warning, internal_vwarning): Declare.
2810 * utils.c (struct internal_problem): Define.
2811 (internal_vproblem): New function.
2812 (internal_warning): New function.
2813 (internal_vwarning): New function.
2814 (internal_warning_problem, internal_error_problem): New variables.
2815 (internal_verror): Just call internal_vproblem.
2816
b81654f1
MS
28172002-09-18 Michael Snyder <msnyder@redhat.com>
2818
2819 * objc-lang.c: New file, support for Objective-C.
2820 Preliminary check-in, not yet integrated into gdb.
2821 * objc-lang.h: New file.
2822 * objc-exp.y: New file.
2823
0542c381
AC
28242002-09-18 Andrew Cagney <ac131313@redhat.com>
2825
7bda5e4a
AC
2826 * infrun.c (signal_stop_update): Convert definition to ISO C.
2827 (signal_print_update): Ditto.
2828 (signal_pass_update): Ditto.
2829 * inflow.c (terminal_save_ours): Ditto.
2830
5247b418
AC
2831 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2832 comments.
2833
fc60962c
AC
2834 * config/djgpp/fnchange.lst: Handle name clashes between
2835 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2836 bfd/coff-tic80.c.
2837
0542c381
AC
2838 * i386-linux-tdep.h: Fix tipo.
2839
5b924b9b
AF
28402002-09-18 Adam Fedor <fedor@gnu.org>
2841
2842 * MAINTAINERS: Add myself to the Write After Approval list.
2843
5afc051b
JB
28442002-09-18 Jim Blandy <jimb@redhat.com>
2845
2846 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2847 texthigh and textlow to reader-specific structs caused
2848 objfile_relocate to miss them. This is fixable, but the work that
2849 the change was supposed to prepare GDB for never got done anyway.
2850
eb944380
DC
28512002-09-18 David Carlton <carlton@math.stanford.edu>
2852
2853 * MAINTAINERS: Alphabetize Write After Approval list.
2854
948e66d9
DJ
28552002-09-18 Daniel Jacobowitz <drow@mvista.com>
2856
2857 Fix PR gdb/709
2858 * values.c (value_static_field): Call read_var_value.
2859
dc604539
AC
28602002-09-18 Andrew Cagney <ac131313@redhat.com>
2861
2862 * valops.c (hand_function_call): Align the initial stack pointer
2863 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2864 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2865 return value.
2866 * mips-tdep.c (mips_frame_align): New function.
2867 (mips_gdbarch_init): Set frame_align.
2868 * gdbarch.sh (FRAME_ALIGN): New method.
2869 * gdbarch.h, gdbarch.c: Re-generate.
2870
cb7e422f
ML
28712002-09-18 Michal Ludvig <mludvig@suse.cz>
2872
2873 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2874 registers.
2875
a094c6fb
AC
28762002-09-17 Andrew Cagney <ac131313@redhat.com>
2877
2878 * NEWS: Mention that MIPS $fp behavior changed.
2879 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2880 reference to FP_REGNUM.
2881 (mipsnbsd_cannot_store_register): Ditto.
2882 * mips-linux-nat.c: Update copyright.
2883 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2884 (mips_linux_cannot_store_register): Ditto.
2885 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2886 * config/mips/tm-mips.h: Update copyright.
2887 (FP_REGNUM): Delete macro.
2888 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2889 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2890 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2891 (mips_r3041_reg_names, mips_r3051_reg_names)
2892 (mips_r3081_reg_names): Replace "fp" with "".
2893 Fix PR gdb/480.
2894
45cf40d1
TR
28952002-09-17 Theodore A. Roth <troth@verinet.com>
2896
2897 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2898 generic_read_register_dummy() (PR gdb/703).
2899 (avr_push_return_address): #if 0 out unused vars.
2900 (avr_gdbarch_init): Enable use of avr_push_return_address().
2901
c7e701b5
MS
29022002-09-17 Michael Snyder <msnyder@redhat.com>
2903
d76ba2a5 2904 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2905 RTE will take care of it.
2906
20bcf01c
AC
29072002-09-17 Andrew Cagney <ac131313@redhat.com>
2908
2909 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2910 invalid, return SP_REGNUM.
2911
009a9971 29122002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2913
2914 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2915 point registers without sign extension.
2916
135c175f
AC
29172002-09-17 Andrew Cagney <cagney@redhat.com>
2918
2919 * blockframe.c (deprecated_read_register_dummy): Rename
2920 generic_read_register_dummy.
2921 * frame.c (frame_unwind_signed_register): New function.
2922 (frame_unwind_unsigned_register): New function.
2923 * frame.h (frame_unwind_signed_register): Declare.
2924 (frame_unwind_unsigned_register): Declare.
2925 (deprecated_read_register_dummy): Rename
2926 generic_read_register_dummy.
2927
2928 * h8300-tdep.c (h8300_frame_chain): Update.
2929 (h8300_frame_saved_pc): Update.
2930 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2931 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2932 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2933 (s390_frame_chain): Update.
2934 * v850-tdep.c (v850_find_callers_reg): Update.
2935 (v850_frame_saved_pc): Update.
2936 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2937 (m32r_find_callers_reg): Update.
2938 (m32r_frame_saved_pc): Update.
2939 * sh-tdep.c (sh_find_callers_reg): Update.
2940 (sh64_get_saved_pr): Update.
2941 (sh_init_extra_frame_info): Update.
2942 (sh_init_extra_frame_info): Update.
2943 (sh64_init_extra_frame_info): Update.
2944 (sh64_init_extra_frame_info): Update.
2945 * mcore-tdep.c (mcore_find_callers_reg): Update.
2946 (mcore_frame_saved_pc): Update.
2947 (mcore_init_extra_frame_info): Update.
2948 * i386-tdep.c (i386_frame_saved_pc): Update.
2949 * ia64-tdep.c (ia64_frame_saved_pc): Update.
2950 (ia64_init_extra_frame_info): Update.
2951 (ia64_init_extra_frame_info): Update.
2952 * d10v-tdep.c (d10v_frame_saved_pc): Update.
2953 * cris-tdep.c (cris_init_extra_frame_info): Update.
2954 * avr-tdep.c (avr_frame_chain): Update.
2955 (avr_init_extra_frame_info): Update.
2956 (avr_frame_saved_pc): Update.
2957 * arm-tdep.c (arm_find_callers_reg): Update.
2958 (arm_init_extra_frame_info): Update.
2959 (arm_frame_saved_pc): Update.
2960
a741e514
TT
29612002-09-17 Tom Tromey <tromey@redhat.com>
2962
2963 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
2964 is "'".
2965
d1a8e808
CV
29662002-09-17 Corinna Vinschen <vinschen@redhat.com>
2967
2968 * MAINTAINERS: Remove "non multi-arched" text from h8300.
2969 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
2970 NEXT_PROLOGUE_INSN.
2971 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
2972 NEXT_PROLOGUE_INSN.
2973
d9025a18
JB
29742002-09-16 Joel Brobecker <brobecker@gnat.com>
2975
2976 * osfsolib.c: Remove file, replaced by solib-osf.c.
2977 * Makefile.in: Remove compilation rules for osfsolib.c.
2978
1b2ef1b6
DC
29792002-09-16 David Carlton <carlton@math.stanford.edu>
2980
2981 * cp-valprint.c (cp_print_class_method): Correct args to
2982 check_stub_method_group.
2983
928e48af
CV
29842002-09-16 Corinna Vinschen <vinschen@redhat.com>
2985
2986 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
2987 `set architecture'. Unify naming convention of functions.
2988 (h8300_skip_prologue): Improve prologue analysis.
2989 (h8300_push_arguments): Rewritten to more closely match GCC's
2990 bizarre argument-passing behavior, along with the comment describing
2991 said behavior.
2992 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
2993 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
2994 sim, remote-e7000.c, remote-hms.c and remote.c
2995
5e3397bb
MK
29962002-09-15 Mark Kettenis <kettenis@gnu.org>
2997
2998 * i386-tdep.c (gdb_print_insn_i386): Removed.
2999 (i386_print_insn): New function.
3000 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3001 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3002 tm_print_insn_info.
3003
f710f4fc
MK
30042002-09-14 Mark Kettenis <kettenis@gnu.org>
3005
3006 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3007 zero.
3008
db54fef4
CV
30092002-09-14 Corinna Vinschen <vinschen@redhat.com>
3010
3011 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3012 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3013 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3014
2becadee
CF
30152002-09-13 Christopher Faylor <cgf@redhat.com>
3016
3017 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3018
de17c821
DJ
30192002-09-13 Daniel Jacobowitz <drow@mvista.com>
3020
3021 * gdbtypes.c (check_stub_method): Make static.
3022 (check_stub_method_group): New function.
3023 * gdbtypes.h: Update prototypes.
3024 * cp-support.c: New file.
3025 * cp-support.h: New file.
3026
3027 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3028 (update_method_name_from_physname): New function.
3029 (read_member_functions): Correct method names for operators
3030 and v3 constructors/destructors. Separate v2 constructors and
3031 destructors.
3032 * Makefile.in (stabsread.o): Update dependencies.
3033 (SFILES): Add cp-support.c.
3034 (COMMON_OBS): Add cp-support.o.
3035 (cp_support_h, cp-support.o): Add.
3036
3037 * cp-valprint.c (cp_print_class_method): Call
3038 check_stub_method_group instead of check_stub_method. Remove
3039 extraneous QUITs.
3040 * p-valprint.c (pascal_object_print_class_method): Likewise.
3041 * valops.c (search_struct_method): Likewise.
3042 (find_method_list, value_struct_elt_for_reference): Likewise.
3043
e76cff22
AC
30442002-09-13 Andrew Cagney <cagney@redhat.com>
3045
3046 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3047 * gdbarch.h, gdbarch.c: Regenerate.
3048
905abb3f
AC
30492002-09-13 Andrew Cagney <ac131313@redhat.com>
3050
3051 * frame.c (find_saved_register): Delete function.
3052 * frame.h (find_saved_register): Delete declaration.
3053 Fix PR gdb/631.
3054
64159455
AC
3055Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3056
3057 * mips-tdep.c (read_next_frame_reg): Re-hack using
3058 frame_register_unwind.
3059
795e1e11
AC
3060Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3061
3062 * mips-tdep.c (mips_get_saved_register): Re-hack using
3063 frame_register_unwind.
3064
5720643c
JB
30652002-09-12 Joel Brobecker <brobecker@gnat.com>
3066
3067 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3068 vector. Will be useful for Interix.
3069 * gdbarch.h, gdbarch.c: Regenerate.
3070
3071 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3072 name of the malloc function by NAME_OF_MALLOC.
3073
3bada2a2
JB
30742002-09-12 Joel Brobecker <brobecker@gnat.com>
3075
3076 * value.h (find_function_in_inferior): Add const keyword to
3077 one of the parameters. Allows us to invoke this function with
3078 a const char *.
3079 * valops.c (find_function_in_inferior): Likewise.
3080
3db26b01
JB
30812002-09-12 Joel Brobecker <brobecker@gnat.com>
3082
3083 * exec.c (xfer_memory): Fix compilation warning with old versions
3084 of GCC.
3085 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3086
17c5ed2c
DC
30872002-09-12 David Carlton <carlton@math.stanford.edu>
3088
3089 * symtab.h: Run through gdb_indent.h.
3090 Add 2002 to Copyright year list.
3091
ecd1107e
AM
30922002-09-12 Alan Modra <amodra@bigpond.net.au>
3093
3094 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3095 mach constants.
3096 * MAINTAINERS: Add myself to write after approval list.
3097
e64f66d1
JB
30982002-09-11 J. Brobecker <brobecker@gnat.com>
3099
3100 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3101
f9395794
JB
31022002-09-11 J. Brobecker <brobecker@gnat.com>
3103
3104 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3105 Interix.
3106
1a303dec
MS
31072002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3108
3109 * procfs.c (do_detach): Clear current signal, not just fault.
3110 Corrects problem with breakpoint trap signal leaking to detached
3111 process on Tru64.
3112
c0219d42
MS
31132002-09-10 Michael Snyder <msnyder@redhat.com>
3114
3115 * buildsym.c (finish_block): Protect against null pointer.
3116
9d84ac84
AC
31172002-09-10 Andrew Cagney <cagney@redhat.com>
3118
3119 * infcmd.c (default_print_registers_info): Send all output to
3120 ``file'' instead of ``gdb_stdout''.
3121
77d8f2b4
MS
31222002-09-10 Michael Snyder <msnyder@redhat.com>
3123
3124 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3125 LONGEST, and use signed register read (addresses are sign-
3126 extended for mips).
3127
99656a61
SC
31282002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3129
3130 * event-loop.c (gdb_do_one_event): Make public.
3131 * event-loop.h (gdb_do_one_event): Declare.
3132
da12f4d8
JL
31332002-09-10 Jeff Law <law@redhat.com>
3134
3135 * infttrace.c (child_resume): Simplify and rework to avoid
3136 TT_PROC_CONTINUE.
3137
d0aee0c4
FF
31382002-09-09 Fred Fish <fnf@intrinsity.com>
3139
3140 * printcmd.c (print_scalar_formatted): "len" is the number of
3141 target bytes, NOT the number of target bits.
3142
7cb3ec5e
EZ
31432002-09-09 Elena Zannoni <ezannoni@redhat.com>
3144
3145 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3146 * top.c (init_main): Set rl_terminal_name.
3147
4dc81987
AS
31482002-09-08 Aidan Skinner <aidan@velvet.net>
3149
3150 * ada-lang.c (ada_array_bound, ada_type_match,
3151 _initialize_ada_language): Fix K&R definitions.
3152 * ada-tasks.c (get_current_task): Fix K&R definitions.
3153 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3154
842330b4
CF
31552002-09-07 Christopher Faylor <cgf@redhat.com>
3156
3157 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3158 Add XP.
3159
43156d82
MK
31602002-09-06 Mark Kettenis <kettenis@gnu.org>
3161
66da5fd8
MK
3162 * i386-tdep.c (i386_register_virtual_type,
3163 i386_register_convertible, i386_register_convert_to_virtual,
3164 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3165 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3166 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3167 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3168 Don't set push_arguments twice.
3169
4b218c18
MK
3170 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3171 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3172 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3173 sigtramp_end to NULL.
3174 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3175 defines.
3176 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3177
4cc314d5
MK
3178 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3179 whitespace.
3180
43156d82
MK
3181 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3182 * gdbarch.h, gdbarch.c: Re-generate.
3183 * blockframe.c (find_pc_sect_partial_function): Convert to use
3184 SIGTRAMP_START_P predicate.
3185
6672060b
MS
31862002-09-05 Michael Snyder <msnyder@redhat.com>
3187
a90c3637
MS
3188 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3189 generic_dummy_frame method and old method. Also distinguish
3190 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3191 (arm_extract_return_value): Use new regcache method.
a90c3637 3192
6672060b
MS
3193 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3194 adjustment that doesn't conform to the ABI.
3195 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3196 saved regcache, not from current regcache.
3197
299ffc64
AC
31982002-09-05 Andrew Cagney <ac131313@redhat.com>
3199
3200 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3201 * README: Update.
3202
a3a2ee65
JT
32032002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3204
3205 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3206 if arm_apcs_32 is false.
3207
2bc7eea9
AC
32082002-09-04 Andrew Cagney <ac131313@redhat.com>
3209
3210 GDB 5.3 branch created.
3211
8a55a7c5
TR
32122002-09-03 Theodore A. Roth <troth@verinet.com>
3213
3214 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3215 generic_unwind_get_saved_register.
3216
e26fb1d7
DC
32172002-09-03 David Carlton <carlton@math.stanford.edu>
3218
3219 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3220 argument (PR gdb/653). Update call to smash_to_method_type.
3221 (read_structure_scope): Update call to dwarf2_add_member_fn.
3222
30d52491
ML
32232002-09-03 Michal Ludvig <mludvig@suse.cz>
3224
3225 * x86-64-linux-tdep.c: Include gdb_string.h
3226 * x86-64-linux-nat.c: Ditto.
3227
06891d83
JT
32282002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3229
3230 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3231 when YYDEBUG is set to 1.
3232 * c-exp.y: Likewise.
3233 * f-exp.y: Likewise.
3234 * jv-exp.y: Likewise.
3235 * m2-exp.y: Likewise.
3236 * p-exp.y: Likewise.
3237
7d400e77
JT
32382002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3239
3240 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3241 dependency list.
3242 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3243 solib_svr4_fetch_link_map_offsets to
3244 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3245 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3246 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3247 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3248 solib-svr4.o, and solib-legacy.o.
3249 * config/i386/tm-nbsd.h: Include solib.h.
3250
704a27c4
JT
32512002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3252
3253 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3254 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3255 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3256 comment noting that this needs its own target configuration.
3257 * config/i386/nbsd.mt: New file.
3258 * config/i386/nbsdaout.mt: Remove.
3259 * config/i386/nbsdelf.mt: Ditto.
3260 * config/i386/tm-nbsdaout.h: Ditto.
3261
d66198e1
JT
32622002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3263
3264 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3265 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3266 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3267 tdep->sigtramp_end.
3268 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3269 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3270 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3271
3cac699e
JT
32722002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3273
3274 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3275 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3276 * i386-tdep.h (i386bsd_init_abi): New prototype.
3277 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3278 function declaration.
3279 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3280 for NetBSD-a.out or NetBSD-ELF.
3281 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3282 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3283 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3284 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3285 and nbsd-tdep.h.
3286 (i386nbsd_pc_in_sigtramp): New function.
3287 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3288 i386nbsd_pc_in_sigtramp.
3289 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3290 and i386nbsdelf_init_abi OS ABI handlers.
3291 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3292 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3293
7010ca0a
MK
32942002-09-02 Mark Kettenis <kettenis@gnu.org>
3295
3296 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3297 registers if the target really has them.
3298
6dd93b72
JT
32992002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3300
3301 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3302 than nbsd-tdep.h.
3303
2ca8ae21
JT
33042002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3305
3306 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3307 list.
3308 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3309 (alphanbsd_skip_sigtramp_frame): New functions.
3310 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3311 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3312 to alphanbsd_sigcontext_addr.
3313
3d9b49b0
JT
33142002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3315
3316 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3317 list.
3318 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3319 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3320 nbsd_pc_in_sigtramp.
3321 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3322 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3323 * nbsd-tdep.c: Include gdb_string.h.
3324 (nbsd_pc_in_sigtramp): New function.
3325 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3326 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3327 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3328 ppcnbsd_pc_in_sigtramp.
3329 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3330 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3331 shnbsd_pc_in_sigtramp.
3332 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3333 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3334 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3335
c860120c
PM
33362002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3337
3338 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3339 watchpoints to NULL.
3340 (insert_breakpoints): set val field of watchpoints if NULL.
3341
3342
c7612d53
JB
33432002-08-29 Jim Blandy <jimb@redhat.com>
3344
3345 * symtab.c (lookup_symbol_aux): In the cases where we find a
3346 minimal symbol of an appropriate name and use its address to
3347 select a symtab to read and search, use `name' (as passed to us)
3348 as the demangled name when searching the symtab's global and
3349 static blocks, not the minsym's name.
3350
66609862
KS
33512002-08-29 Keith Seitz <keiths@redhat.com>
3352
3353 * stack.c (print_frame_info_base): Always set current_source_symtab
3354 and current_source_line.
3355
151fefe2
JB
33562002-08-29 Donn Terry <donnte@microsoft.com>
3357
3358 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3359
bfb3754e
KS
33602002-08-28 Keith Seitz <keiths@redhat.com>
3361
3362 * stack.c (select_frame): Add FIXME concerning selected-frame
3363 events.
3364 (select_frame_command): Send selected-frame-level-changed
3365 event notification, but only if the level actually changed.
3366 (up_silently_base): Add selected-frame-level-changed event
3367 notification.
3368 (down_silently_base): Likewise.
3369
e822a2a0
AC
33702002-08-28 Andrew Cagney <ac131313@redhat.com>
3371
3372 * Makefile.in: Update dependencies for all gdb/*.c files.
3373
309367d4
TT
33742002-08-27 Tom Tromey <tromey@redhat.com>
3375
3376 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3377 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3378 Update dependencies.
3379 * i387-tdep.c: Include gdb_string.h.
3380 * osabi.c: Likewise.
3381 * i386-linux-nat.c: Likewise.
3382 * lin-lwp.c: Likewise.
3383 * ax-gdb.c: Likewise.
3384 * signals/signals.c: Likewise.
3385 * jv-valprint.c: Likewise.
3386 * p-lang.c: Likewise.
3387 * c-valprint.c: Likewise.
3388 * cp-abi.c: Likewise.
3389
e1507482
EZ
33902002-08-27 Elena Zannoni <ezannoni@redhat.com>
3391
3392 * cli/cli-script.h (copy_command_lines): Export.
3393 * breakpoint.c: Include cli/cli-script.h.
3394 * Makefile.in (breakpoint.o): Update dependencies.
3395
c6510018
MS
33962002-08-26 Michael Snyder <msnyder@redhat.com>
3397
3398 * breakpoint.c (insert_breakpoints): Protect all references
3399 to 'process_warning'. Shorten long lines.
3400
c2b8ed2c
MS
34012002-08-26 Joel Brobecker <brobecker@gnat.com>
3402
3403 * cli/cli-script.c (copy_command_lines): New function.
3404 * defs.h (copy_command_lines): Export.
3405 * testsuite/gdb.base/commands.exp: New tests for commands
3406 attached to a temporary breakpoint, and for commands that
3407 delete the breakpoint they are attached to.
3408
34092002-08-26 Michael Snyder <msnyder@redhat.com>
3410
3411 * breakpoint.c (bpstat_stop_status): Instead of copying the
3412 pointer to the breakpoint commands struct, make a new copy
3413 of the struct and point to that.
3414 (bpstat_clear): Free the commands struct.
3415 (bpstat_clear_actions): Free the commands struct.
3416 (bpstat_do_actions): Free the command actions. Also execute
3417 the local cleanups, instead of deleting them.
3418 (delete_breakpoint): Leave the commands field of the bpstat
3419 chain alone -- it will be freed later.
3420
64b84175
KB
34212002-08-26 Kevin Buettner <kevinb@redhat.com>
3422
3423 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3424 deleted in 2002-08-20 commit. This function is still used by
3425 ppc-linux-nat.c.
3426
55970da6
KS
34272002-08-26 Keith Seitz <keiths@redhat.com>
3428
3429 * gdb-events.sh: Add selected-frame-level-changed event.
3430 * gdb-events.c: Regenerated.
3431 * gdb-events.h: Regenerated.
3432
a790ad35
SC
34332002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3434
3435 Fix PR gdb/393:
3436 * inflow.c (terminal_save_ours): New function to save terminal
3437 settings.
3438 * inferior.h (terminal_save_ours): Declare.
3439 * target.c (debug_to_terminal_save_ours): New function.
3440 (cleanup_target): Defaults to_terminal_save_ours.
3441 (update_current_target): Inherit to_terminal_save_ours.
3442 (setup_target_debug): Set to_terminal_save_ours.
3443 * target.h (target_terminal_save_ours): New to save terminal settings.
3444 (target_ops): New member to_terminal_save_ours.
3445 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3446 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3447 * inftarg.c (init_child_ops): Likewise.
3448 * m3-nat.c (init_m3_ops): Likewise.
3449 * procfs.c (init_procfs_ops): Likewise.
3450 * wince.c (init_child_ops): Likewise.
3451 * win32-nat.c (init_child_ops): Likewise.
3452 * sol-thread.c (init_sol_thread_ops): Likewise.
3453
c00dcbe9
MK
34542002-08-26 Mark Kettenis <kettenis@gnu.org>
3455
3d7f4f49
MK
3456 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3457 use regcache_* functions.
3458 (i386_gdbarch_init): Set store_return_value instead of
3459 deprecated_store_return_value.
3460
c00dcbe9
MK
3461 * regcache.c (regcache_raw_write_signed,
3462 regcache_raw_write_unsigned): New functions.
3463 * regcache.h (regcache_raw_write_signed,
3464 regcache_raw_write_unsigned): New prototypes.
3465
0e0d15ca
AC
34662002-08-25 Andrew Cagney <ac131313@redhat.com>
3467
3468 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3469 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3470 source file dependencies. Cleanup corresponding generator rules.
3471
d3b22ed5
AC
34722002-08-25 Andrew Cagney <ac131313@redhat.com>
3473
3474 * regcache.h (register_offset_hack): Declare.
3475 (regcache_cooked_read_using_offset_hack): Declare.
3476 (regcache_cooked_write_using_offset_hack): Declare.
3477
3478 * regcache.c (register_offset_hack): New function.
3479 (regcache_cooked_read_using_offset_hack): New function.
3480 (regcache_cooked_write_using_offset_hack): New function.
3481 (regcache_dump): Check that the registers, according to their
3482 offset, are packed hard against each other.
3483 (cooked_xfer_using_offset_hack): New function.
3484
bb425013
AC
34852002-08-25 Andrew Cagney <ac131313@redhat.com>
3486
3487 * regcache.c (struct regcache_descr): Add field register_type.
3488 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3489 in as a parameter
3490 (init_regcache_descr): Initialize register_type. Pass the descr
3491 to init_legacy_regcache_descr. Use register_type instead of
3492 REGISTER_VIRTUAL_TYPE.
3493 (register_type): New function.
3494 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3495 * regcache.h (register_type): Declare.
3496
d0403e00
AC
34972002-08-25 Andrew Cagney <ac131313@redhat.com>
3498
3499 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3500 instead of deprecated_store_return_value. Fix fallout from
3501 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3502
0ed04cce
AC
35032002-08-25 Andrew Cagney <ac131313@redhat.com>
3504
3505 * regcache.c (max_register_size): New function.
3506 (init_legacy_regcache_descr): Ensure that max_register_size is
3507 large enough for REGISTER_VIRTUAL_SIZE.
3508 * regcache.h (max_register_size): Declare.
3509
46d79c04
AC
35102002-08-24 Andrew Cagney <ac131313@redhat.com>
3511
3512 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3513 store_return_value.
3514 (e500_extract_return_value): Change type of valbuf pointer to
3515 void.
3516
853c7bd0
MK
35172002-08-24 Mark Kettenis <kettenis@gnu.org>
3518
cd87e769
MK
3519 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3520 workaround.
3521
853c7bd0
MK
3522 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3523 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3524 long long) to prevent compiler warning on 64-bit systems.
3525
ebba8386
AC
35262002-08-23 Andrew Cagney <cagney@redhat.com>
3527
3528 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3529 (DEPRECATED_STORE_RETURN_VALUE): New method.
3530 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3531 * gdbarch.h, gdbarch.c: Re-generate.
3532
3533 * values.c (set_return_value): Pass current_regcache to
3534 STORE_RETURN_VALUE.
3535 * arch-utils.h (legacy_store_return_value): Declare.
3536 * arch-utils.c (legacy_store_return_value): New function.
3537 (legacy_extract_return_value): Update parameters.
3538
3539 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3540 STORE_RETURN_VALUE.
3541 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3542 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3543 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3544 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3545 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3546 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3547 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3548 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3549 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3550 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3551
3552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3553 * i386-tdep.c (i386_extract_return_value): Update.
3554 * arch-utils.c (legacy_extract_return_value): Update.
3555 * frv-tdep.c (frv_gdbarch_init): Update.
3556 * cris-tdep.c (cris_gdbarch_init): Update.
3557 * d10v-tdep.c (d10v_gdbarch_init): Update.
3558 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3559 * m68k-tdep.c (m68k_gdbarch_init): Update.
3560 * mcore-tdep.c (mcore_gdbarch_init): Update.
3561 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3562 * s390-tdep.c (s390_gdbarch_init): Update.
3563 * sparc-tdep.c (sparc_gdbarch_init): Update.
3564 * sh-tdep.c (sh_gdbarch_init): Update.
3565 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3566 * v850-tdep.c (v850_gdbarch_init): Update.
3567 * avr-tdep.c (avr_gdbarch_init): Update.
3568 * ia64-tdep.c (ia64_gdbarch_init): Update.
3569 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3570 * vax-tdep.c (vax_gdbarch_init): Update.
3571 * alpha-tdep.c (alpha_gdbarch_init): Update.
3572 * arm-tdep.c (arm_gdbarch_init): Update.
3573 * mips-tdep.c (mips_gdbarch_init): Update.
3574 * i386-tdep.c (i386_gdbarch_init): Update.
3575
5bd8c6d0
AC
35762002-08-23 Andrew Cagney <ac131313@redhat.com>
3577
3578 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3579 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3580
e73e1724
MK
35812002-08-24 Mark Kettenis <kettenis@gnu.org>
3582
3583 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3584 problems.
3585
3e6564e1
JB
35862002-08-23 Joel Brobecker <brobecker@gnat.com>
3587
3588 * infrun.c (handle_inferior_event): Move a comment outside of a
3589 function call, in order to avoid indent reformatting this part
3590 of the code in an unreadable way.
3591
81d0cc19
GS
35922002-08-23 Grace Sainsbury <graces@redhat.com>
3593
3594 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3595 when breakpoints fail. Move general breakpoint error messages to
3596 insert_breakpoints.
3597 * breakpoint.c (insert_breakpoints): Change warnings when
3598 breakpoints are nto inserted to specify the type. Remove call to
3599 memory_error when hardware breakpoints can't be inserted. Remove
3600 multiple calls to warning so all messages are sent to the user at
3601 once.
3602 (delete_breakpoints): Make insert error messsages more explicit.
3603
17574093
DJ
36042002-08-23 Daniel Jacobowitz <drow@mvista.com>
3605
3606 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3607 gdbserver/ChangeLog.
3608
8acc2935
MK
36092002-08-23 Mark Kettenis <kettenis@gnu.org>
3610
dfe01d39
MK
3611 * i386-tdep.c: Include "objfiles.h".
3612 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3613 skip_trampoline_code.
3614 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3615 (CPLUS_MARKER): Define to '.'.
3616
8acc2935
MK
3617 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3618 member.
3619 (linux_corefile_thread_callback): Increase args->num_notes.
3620 (linux_make_note_section): Initialize thread_args.num_notes, and
3621 use it to determine whether notes for any threads were created.
3622
151fefe2 36232002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3624
3625 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3626 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3627 and PCUNKILL.
3628 (write_with_trace): Conditionalize out the switch branch handling
3629 PCSHOLD if the corresponding macro is not defined. Likewise for
3630 PRSABORT and PRSTOP.
3631 This change will be needed by the Interix port.
3632
e1507482
EZ
36332002-08-22 Elena Zannoni <ezannoni@redhat.com>
3634
3635 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3636 write_register wherever possible instead of manipulating the
3637 register bytes directly.
3638 Assign VALUE_CONTENTS to a variable and use that.
3639 The GPR numbers are now dependent on the architecture.
3640
96ff0de4
EZ
36412002-08-22 Elena Zannoni <ezannoni@redhat.com>
3642
3643 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3644 ev_offset fields.
3645 (skip_prologue): Add support for BookE/e500 instructions.
3646 (e500_extract_return_value): New function.
3647 (frame_get_saved_regs): Add support for saving ev registers and
3648 pseudo gpr's.
3649 (e500_store_return_value): New function.
3650 (rs6000_gdbarch_init): Move up default intializations of
3651 deprecated_extract_return_value and store_return_value. Overwrite
3652 init of store_return_value with e500 specific version.
3653 Set extract_return_value for e500.
3654
fbefca5b
EZ
36552002-08-22 Elena Zannoni <ezannoni@redhat.com>
3656
3657 * blockframe.c (generic_call_dummy_register_unwind): Use
3658 regcache_cooked_read to catch cases in which the variable is
3659 stored in a pseudo register.
3660
4d210288
AC
36612002-08-22 Andrew Cagney <cagney@redhat.com>
3662
3663 * NEWS: Mention that the i960 has been made obsolete.
3664 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3665 i960-tdep.c
3666 (remote-nrom.o): Obsolete target.
3667 (remote-nindy.o, i960-tdep.o): Ditto.
3668 * remote-nrom.c: Make file obsolete.
3669 * remote-nindy.c, remote-vx960.c: Ditto.
3670 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3671 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3672 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3673 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3674 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3675 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3676 i960-*-vxworks* obsolete.
3677 * MAINTAINERS: Note that the i960 is obsolete.
3678
6c0c456d
CV
36792002-08-21 Corinna Vinschen <vinschen@redhat.com
3680
3681 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3682 detach to allow reinitialization.
3683
9f9d12b3
AC
36842002-08-22 Andrew Cagney <ac131313@redhat.com>
3685
3686 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3687 attempt).
3688
ebeb39fe
JB
36892002-08-22 Jim Blandy <jimb@redhat.com>
3690
3691 * coffread.c (coff_symfile_read): Don't try to read the line
3692 number table from disk if the image file doesn't have a symbol
3693 table; we'll never actually look at the info anyway, and Windows
3694 ships DLL's with bogus file offsets for the line number data.
3695
5bf1c677
EZ
36962002-08-21 Elena Zannoni <ezannoni@redhat.com>
3697
3698 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3699 an e500 executable.
3700
71b8ef93
MS
37012002-08-21 Michael Snyder <msnyder@redhat.com>
3702
3703 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3704 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3705 (DEFAULT_MIPS_TYPE): Delete unused macro.
3706 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3707 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3708
d174216d
JB
37092002-08-21 Jim Blandy <jimb@redhat.com>
3710
3711 * valops.c (value_cast): Simplify and correct logic for doing a
3712 static cast from a pointer to a base class to a pointer to a
3713 derived class.
3714
0ab7a791
AC
37152002-08-21 Andrew Cagney <ac131313@redhat.com>
3716
3717 * infcmd.c (default_print_registers_info): Replace
3718 do_registers_info.
3719 (registers_info): Use gdbarch_print_registers_info instead of
3720 DO_REGISTERS_INFO.
3721 * inferior.h (default_print_registers_info): Replace
3722 do_registers_info.
3723 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3724 (DO_REGISTERS_INFO): Change to a predicate function.
3725 * gdbarch.h, gdbarch.c: Regenerate.
3726
e23792cc
KS
37272002-08-21 Keith Seitz <keiths@redhat.com>
3728
3729 * gdb-events.sh: Add target-changed event.
3730 * gdb-events.c: Regenerated.
3731 * gdb-events.c: Regenerated.
3732 * valops.c (value_assign): Add target-changed event notification
3733 to inlval_register, lval_memory, and lval_reg_frame_relative.
3734
9fb14e79
JB
37352002-08-21 Joel Brobecker <brobecker@gnat.com>
3736
3737 * NEWS: Add an entry regarding the improvement of the next/step
3738 operation on Alpha Tru64 multi-processor machines.
3739
6d39a69f
AC
37402002-08-21 Andrew Cagney <ac131313@redhat.com>
3741
72acd513
AC
3742 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3743 directores.
342af04b 3744 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3745 * Makefile.in (install-gdbtk): Move to install section.
3746 (rdi-share/libangsd.a): Move to end of file.
3747
fa5f27c7
AC
37482002-08-19 Andrew Cagney <ac131313@redhat.com>
3749
3750 * frame.c (frame_register_unwind): When a register, set addrp to
3751 the register's byte.
3752
5a89d8aa
MS
37532002-08-20 Michael Snyder <msnyder@redhat.com>
3754
3755 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3756 used locally, so move them from the target machine header to here.
3757 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3758 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3759 Make static.
3760 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3761
822e978b
AC
37622002-08-20 Andrew Cagney <cagney@redhat.com>
3763
3764 * NEWS: Mention that the Apollo line was made obsolete.
3765 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3766 m68*-hp-hpux* obsolete.
3767 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3768 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3769 * buildsym.c (make_blockvector): Make static.
3770 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3771 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3772 (ALLDEPFILES): Remove dstread.c.
3773 (dstread.o): Obsolete make rule.
3774 * dstread.c: Makefile obsolete.
3775 * dst.h: Ditto.
3776 * config/m68k/hp300hpux.mt: Ditto.
3777 * config/m68k/hp300hpux.mh: Ditto.
3778 * config/m68k/hp300bsd.mt: Ditto.
3779 * config/m68k/hp300bsd.mh: Ditto.
3780 * config/m68k/apollo68b.mt: Ditto.
3781 * config/m68k/apollo68v.mh: Ditto.
3782 * config/m68k/apollo68b.mh: Ditto.
3783
e41b17f0
MS
37842002-08-20 Michael Snyder <msnyder@redhat.com>
3785
3786 * mips-tdep.c (mips_in_return_stub): Make static.
3787 (mips_gdbarch_init): Set in_solib_return_trampoline.
3788 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3789
d50355b6
MS
37902002-08-20 Michael Snyder <msnyder@redhat.com>
3791
3792 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3793 * gdbarch.c, gdbarch.h: Regenerate.
3794 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3795 Add.
3796 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3797
757a7cc6
MS
37982002-08-20 Michael Snyder <msnyder@redhat.com>
3799
3800 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3801 (mips_gdbarch_init): Set skip_trampoline_code,
3802 in_solib_call_trampoline.
3803 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3804 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3805
c8001721
EZ
38062002-08-20 Elena Zannoni <ezannoni@redhat.com>
3807
3808 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3809
3810 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3811 vector type for ev registers.
3812 (e500_pseudo_register_read): New function.
3813 (e500_pseudo_register_write): New function.
3814 (e500_dwarf2_reg_to_regnum): New function.
3815 (PPC_UISA_NOFP_SPRS): New macro.
3816 (PPC_EV_REGS): New macro.
3817 (PPC_GPRS_PSEUDO_REGS): New macro.
3818 (registers_e500): New register set for e500.
3819 (variants): Add e500 variant.
3820 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3821 before setting architectural dependent variations. Initialize ev
3822 registers numbers. Add case for e500 architecture. Set the
3823 number of pseudo registers.
3824
64366f1c
EZ
38252002-08-20 Elena Zannoni <ezannoni@redhat.com>
3826
3827 * rs6000-tdep.c: Clean up comments.
3828
7e78f0ca
AC
38292002-08-20 Andrew Cagney <cagney@redhat.com>
3830
3831 * h8300-tdep.c: Re-indent file.
3832
697f7479
JB
38332002-08-20 Jim Blandy <jimb@redhat.com>
3834
3835 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3836 default for this.
697f7479 3837
e86ae29f
KS
38382002-08-20 Keith Seitz <keiths@redhat.com>
3839
3840 * breakpoints.c (watch_command_1): Use internal breakpoint
3841 when setting a watchpoint_scope breakpoint.
3842
216b504f
EZ
38432002-08-20 Elena Zannoni <ezannoni@redhat.com>
3844
3845 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3846 (build_builtin_type_vec64i): Ditto.
3847 (build_builtin_type_vec128): Ditto.
3848 (build_builtin_type_vec128i): Ditto.
3849
f7ab6ec6
MS
38502002-08-19 Michael Snyder <msnyder@redhat.com>
3851
3852 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3853 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3854 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3855 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3856 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3857 CALL_DUMMY_ADDRESS): Delete.
3858 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3859 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3860 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3861 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3862 push_return_address.
3863 (mips_register_raw_size, mips_eabi_use_struct_convention,
3864 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3865 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3866 mips_init_extra_frame_info, mips_eabi_push_arguments,
3867 mips_n32n64_push_arguments, mips_push_return_address,
3868 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3869 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3870
b5d1566e
MS
38712002-08-19 Michael Snyder <msnyder@redhat.com>
3872
3873 * mips-tdep.c (mips_frame_num_args): New function.
3874 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3875 frame_saved_pc, frame_args_address, frame_locals_address,
3876 frame_num_args, and frame_args_skip.
3877 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3878 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3879 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3880 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3881
2f1488ce
MS
38822002-08-20 Michael Snyder <msnyder@redhat.com>
3883
3884 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3885 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3886 * mips-tdep.c (mips_store_struct_return): New function.
3887 (mips_extract_struct_value_address): New function.
3888 (mips_gdbarch_init): Set store_struct_return and
3889 extract_struct_value_address.
3890
41ff2da1
DC
38912002-08-20 David Carlton <carlton@math.stanford.edu>
3892
3893 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3894 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3895 (read_file_scope): Check that line_header is nonzero before
3896 decoding macro information.
3897
e5451d58
MK
38982002-08-20 Mark Kettenis <kettenis@gnu.org>
3899
3900 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3901 flag the general-purpose registers as floating-point on targets
3902 that don't support the floating-point registers.
3903
4a6daafa
EZ
39042002-08-20 Elena Zannoni <ezannoni@redhat.com>
3905
3906 * rs6000-tdep.c (altivec_register_p): Delete.
3907 (rs6000_do_altivec_registers): Delete.
3908 (rs6000_altivec_registers_info): Delete.
3909 (rs6000_do_registers_info): Delete.
3910 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3911 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3912
ab4327e0
EZ
39132002-08-20 Elena Zannoni <ezannoni@redhat.com>
3914
3915 * infcmd.c (do_registers_info): Print vector registers in hex
3916 format only.
3917 (print_vector_info): Check that printing registers
3918 makes sense.
3919 (print_float_info): Ditto.
3920
cb1d2653
AC
39212002-08-20 Andrew Cagney <ac131313@redhat.com>
3922
3923 * mips-tdep.c (mips_gdbarch_init): Update.
3924 (mips_o32_extract_return_value): Rewrite.
3925 (mips_o32_store_return_value): Rewrite.
3926 (mips_o32_xfer_return_value): New function.
3927 (mips_xfer_register): Tweak debug print message. Allow for
3928 buf_offset when dumping the value transfered.
3929
dfc3d9b2
AC
39302002-08-20 Andrew Cagney <ac131313@redhat.com>
3931
3932 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3933 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3934 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3935 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3936 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3937
7807aa61
MS
39382002-08-14 Michael Snyder <msnyder@redhat.com>
3939
3940 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3941
489461e2
EZ
39422002-08-19 Elena Zannoni <ezannoni@redhat.com>
3943
3944 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3945 register.
3946 (P): New macro to define a register as a pseudo register.
3947 (R, R4, R8, R16, FR32, R64, R0): Updated.
3948 (struct variant): Add new fields for number of pseudo registers
3949 and number of total registers.
3950 (tot_num_registers): New macro replacing....
3951 (num_registers): ...deleted macro.
3952 (num_registers): New function.
3953 (num_pseudo_registers): New function.
3954 (variants): Update all variants to intialize new fields correctly.
3955 Postpone initialization of number of pseudo regs and real regs.
3956 (init_variants): New function.
3957 (rs6000_gdbarch_init): Initialize variants. Update calculation of
3958 registers offsets.
3959
fcaffe4c
DC
39602002-08-19 David Carlton <carlton@math.stanford.edu>
3961
2c2738a0
DC
3962 * valops.c (search_struct_field): Change error message to treat
3963 return value of 0 from value_static_field as meaning that field is
3964 optimized out.
3965 (value_struct_elt_for_reference): Ditto.
3966 * values.c (value_static_field): Treat an unresolved location the
3967 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
3968 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
3969 enclosed. Fix PR gdb/574.
fcaffe4c
DC
3970 * MAINTAINERS: Add self to Write After Approval list.
3971
88658117
AC
39722002-08-19 Andrew Cagney <ac131313@redhat.com>
3973
3974 * mips-tdep.c (mips_xfer_register): New function.
3975 (mips_n32n64_extract_return_value): Rewrite.
3976 (mips_gdbarch_init): For N32 and N64, set extract_return_value
3977 instead of deprecated_extract_return_value.
3978
21283beb
EZ
39792002-08-19 Elena Zannoni <ezannoni@redhat.com>
3980
3981 * rs6000-tdep.c (TDEP): Delete macro.
3982 (branch_dest): Replace use of TDEP macro with its body.
3983 (rs6000_pop_frame): Ditto.
3984 (rs6000_push_arguments): Ditto.
3985 (rs6000_skip_trampoline_code): Ditto.
3986 (rs6000_frame_saved_pc): Ditto.
3987 (rs6000_frame_chain): Ditto.
3988 (rs6000_register_name): Ditto.
3989 (rs6000_register_byte): Ditto.
3990 (rs6000_register_raw_size): Ditto.
3991 (rs6000_register_virtual_type): Ditto.
3992 (rs6000_register_convertible): Ditto.
3993 (rs6000_convert_from_func_ptr_addr): Ditto.
3994
bf072999
DJ
39952002-08-19 Daniel Jacobowitz <drow@mvista.com>
3996
3997 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
3998 conditionally.
3999 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4000 MIPS_LINUX_JB_ELEMENT_SIZE.
4001 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4002 for MAX_REGISTER_RAW_SIZE arrays.
4003 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4004 MIPS_LINUX_JB_ELEMENT_SIZE.
4005
9b949a49
PM
40062002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4007
4008 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4009
6d3e79c6
AS
40102002-08-19 Aidan Skinner <aidan@velvet.net>
4011
4012 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4013 ada-valprint.c ada-tasks.c.
4014 (YYFILES): Add ada-exp.y.
4015 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4016 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4017 (ada-exp.tab.o): New target.
4018
06c0b04e
AC
40192002-08-18 Andrew Cagney <ac131313@redhat.com>
4020
4021 * regcache.c (regcache_xfer_part): New function.
4022 (regcache_raw_read_part): New function.
4023 (regcache_raw_write_part): New function.
4024 (regcache_cooked_read_part): New function.
4025 (regcache_cooked_write_part): New function.
4026 * regcache.h (regcache_raw_read_part): Declare.
4027 (regcache_raw_write_part): Declare.
4028 (regcache_cooked_read_part): Declare.
4029 (regcache_cooked_write_part): Declare.
4030
92d1e331
DJ
40312002-08-18 Daniel Jacobowitz <drow@mvista.com>
4032
4033 * remote.c (remote_open_1): Add async_p.
4034 (remote_async_open_1): Delete.
4035 (open_remote_target): Delete.
4036 (remote_open, extended_remote_open): Update calls to remote_open_1.
4037 (remote_async_open, extended_remote_async_open): Call
4038 remote_open_1 instead of remote_async_open_1.
4039
247055de
MK
40402002-08-19 Mark Kettenis <kettenis@gnu.org>
4041
4042 * blockframe.c: Fix a few coding standard violations.
4043
641eda39
MK
40442002-08-19 Mark Kettenis <kettenis@gnu.org>
4045
0b717710
MK
4046 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4047 here from ...
4048 * config/i386/tm-i386sco5.h: ... here. File removed.
4049 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4050
26d28e12 4051 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4052 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4053 (TM_FILE): Set to tm-i386.h.
4054 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4055 * config/i386/tm-i386v.h: Remove file.
4056 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4057 instead of "i386/tm-i386v.h".
4058 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4059 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4060 "i386/tm-i386v.h".
4061 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4062 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4063 "i386/tm-i386.h".
4064
d4e0bab4
MK
40652002-08-18 Mark Kettenis <kettenis@gnu.org>
4066
4067 * config/i386/nm-i386v.h: Add protection against
4068 multiple-inclusion.
4069 (i386_register_u_addr): Remove prototype.
4070 (register_u_addr): New prototype.
4071 (REGISTER_U_ADDR): Redefine accordingly.
4072 * i386v-nat.c: Improve several comments.
4073 (i386_register_u_addr): Change signature and rename to
4074 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4075 ubase variable.
4076
46cac009
AC
40772002-08-18 Andrew Cagney <ac131313@redhat.com>
4078
4079 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4080 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4081 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4082 deprecated_extract_return_value.
4083 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4084 rename mips_o32o64_push_arguments.
4085 (mips_gdbarch_init): Update.
4086 (mips_extract_return_value): Delete.
4087 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4088 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4089 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4090 (mips_n32n64_extract_return_value): Clone
4091 mips_extract_return_value.
4092 (mips_store_return_value): Delete.
4093 (mips_o32_store_return_value): Clone mips_store_return_value.
4094 (mips_o64_store_return_value): Clone mips_store_return_value.
4095 (mips_eabi_store_return_value): Clone mips_store_return_value.
4096 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4097
d2e4a39e
AS
40982002-08-18 Aidan Skinner <aidan@velvet.net>
4099
0c30c098
AS
4100 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4101 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4102
41032002-08-18 Aidan Skinner <aidan@velvet.net>
4104
4105 * ada-lang.c: Run through gdb_indent.sh.
4106 * ada-lang.h: Run through gdb_indent.sh.
4107 * ada-tasks.c: Run through gdb_indent.sh.
4108 * ada-typeprint.c: Run through gdb_indent.sh.
4109 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4110
01fc4e33
AC
41112002-08-18 Andrew Cagney <ac131313@redhat.com>
4112
4113 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4114 ABI.
4115
d8ee244c
MK
41162002-08-18 Mark Kettenis <kettenis@gnu.org>
4117
c38d8261
MK
4118 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4119
222db64c
MK
4120 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4121 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4122
c2848c82
MK
4123 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4124 write_register_gen instead of write_register_bytes.
4125
d8ee244c
MK
4126 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4127 i[3456]-*-osf1mk* configurations have been made obsolete.
4128 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4129 i[3456]86-*-osf1mk* hosts obsolete.
4130 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4131 targets obsolete.
4132 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4133 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4134 config/i386/i386m3.mt, config/i386/nm-m3.h,
4135 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4136 config/i386/i386mk.mh, config/i386/i386mk.mt,
4137 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4138 obsolete.
4139 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4140 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4141 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4142
61d8d407
AC
41432002-08-18 Andrew Cagney <ac131313@redhat.com>
4144
4145 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4146 (hppa_value_returned_from_stack): Declare.
4147 (hppa_extract_return_value): Declare.
4148 * config/pa/hppa.mt: New file.
4149 * configure.tgt: Recognize hppa*-*-*.
4150 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4151
0c52bd59
MK
41522002-08-18 Mark Kettenis <kettenis@gnu.org>
4153
4154 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4155 comment.
4156
b5686e99
MK
41572002-08-17 Mark Kettenis <kettenis@gnu.org>
4158
4159 * top.c (gdb_rl_operate_and_get_next): Make sure
4160 operate-and-get-next functions correctly even when the history
4161 list is completely filled.
4162
c1bab85b
AC
41632002-08-18 Andrew Cagney <ac131313@redhat.com>
4164
4165 * MAINTAINERS (Target Instruction Set Architectures): Rename
4166 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4167 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4168 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4169 already listed under Host/Native.
4170
4171 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4172 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4173 mips*-*-*.
4174
32089c7c
AC
41752002-08-17 Andrew Cagney <ac131313@redhat.com>
4176
4177 * config/ia64/ia64.mt: New file.
4178 * config/alpha/alpha.mt: New file.
4179 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4180 ia64-linux-gnu. Mention that ia64-elf is broken.
4181 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4182
b4671f85
MK
41832002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4184
4185 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4186 generic_func_frame_valid instead of func_frame_valid.
4187
c8edd8b4
JB
41882002-08-16 Joel Brobecker <brobecker@gnat.com>
4189
4190 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4191 procfs appears to be broken when debugging on multi-processor
4192 machines. So enable software single stepping in order to avoid
4193 using the procfs interface to do next/step operations, using
4194 internal breakpoints instead.
4195
4196 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4197 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4198 make this pc address equal to the value it would have if the
4199 system stepping capability was used. Also set a new flag used
4200 to ensure that we don't readjust the PC one more time later.
4201
4202 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4203 address by DECR_PC_AFTER_BREAK when software single step is
4204 in use for this architecture, as this has already been taken
4205 care of in handle_inferior_event().
4206
238617f6
JB
42072002-08-16 Joel Brobecker <brobecker@gnat.com>
4208
4209 * infrun.c (handle_inferior_event): Minor reformatting, to make
4210 a rather long condition expression easier to read.
4211
541a7aac
AC
42122002-08-16 Andrew Cagney <ac131313@redhat.com>
4213
4214 * Makefile.in (gdbtk.o): Move to end of file.
4215 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4216 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4217 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4218 (gdbtk-wrapper.o, gdbres.o): Ditto.
4219
f92d4a7b
AC
42202002-08-16 Andrew Cagney <ac131313@redhat.com>
4221
4222 * Makefile.in (copying.o): Separate out compile rule.
4223 (hpux-thread.o, procfs.o, signals.o): Ditto.
4224 (v850ice.o, z8k-tdep.o): Ditto.
4225 (tui-file.o): Move to TUI section.
4226 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4227 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4228
1cce71eb
JB
42292002-08-16 Joel Brobecker <brobecker@gnat.com>
4230
4231 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4232 skip_trampoline_code, for better namespace-proofing.
4233
4234 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4235
0851f23d
JB
42362002-08-16 Joel Brobecker <brobecker@gnat.com>
4237
4238 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4239
f8d40ec8
JB
42402002-08-16 Joel Brobecker <brobecker@gnat.com>
4241
4242 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4243 signal, check whether we hit a breakpoint before checking for a
4244 single step breakpoint. Otherwise, GDB fails to notice that a
4245 breakpoint has been hit when stepping onto a breakpoint.
4246
63d022e0
KS
42472002-08-16 Keith Seitz <keiths@redhat.com>
4248
4249 * gdb-events.sh (clear_gdb_event_hooks): New function.
4250 * gdb-events.c: Regenerate.
4251 * gdb-events.h: Regenerate.
4252
6e31adb3
AC
42532002-08-16 Andrew Cagney <ac131313@redhat.com>
4254
4255 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4256 not_a_sw_breakpoint.
4257 * breakpoint.h (bpstat_stop_status): Add parameter names.
4258
c8189ed1
GS
42592002-08-16 Grace Sainsbury <graces@redhat.com>
4260
4261 * remote.c (remote_insert_hw_breakpoint)
4262 (remote_remove_hw_breakpoint): Fix calculation of length field
4263 for Z-packet.
4264
d05285fa
MS
42652002-08-15 Michael Snyder <msnyder@redhat.com>
4266
466d7106
MS
4267 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4268 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4269 (supply_fpregset): Ditto.
4270
d05285fa
MS
4271 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4272 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4273 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4274 (TARGET_READ_SP): Delete.
bf1f5b4c 4275 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4276 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4277 Delete.
4278 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4279 from macros to functions.
bf1f5b4c 4280
d05285fa
MS
4281 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4282 (mips_register_convertible, mips_register_convert_to_virtual,
4283 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4284 (mips_read_sp): New function.
4285 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4286 (mips_do_registers_info): Make static.
4287 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4288 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4289 (mips_register_convert_from_type, mips_register_convert_to_type):
4290 New functions.
4291 (mips_gdbarch_init): Set up function_start_offset,
4292 register_virtual_size, pc_in_sigtramp.
d05285fa 4293
e76f1f2e
AC
42942002-08-15 Andrew Cagney <ac131313@redhat.com>
4295
4296 * infcmd.c (vector_info): New function.
4297 (_initialize_infcmd): Add command "info vector".
4298 (print_vector_info): New function.
4299
4300 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4301 * gdbarch.h, gdbarch.c: Regenerate.
4302
4782dc19
AC
43032002-08-15 Andrew Cagney <ac131313@redhat.com>
4304
4305 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4306 ``print_all''. Only print vector registers when ``print_all''.
4307
23e3a7ac
AC
43082002-08-15 Andrew Cagney <ac131313@redhat.com>
4309
8e186fd6
AC
4310 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4311 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4312
23e3a7ac
AC
4313 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4314 Add `args' parameter.
4315 * gdbarch.h, gdbarch.c: Regenerate.
4316
4317 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4318
4319 * infcmd.c (float_info): Call print_float_info.
4320 (print_float_info): New function. By default, print the
4321 floating-point registers.
4322
4323 * arch-utils.h (default_print_float_info): Delete declaration.
4324 * arch-utils.c (default_print_float_info): Delete function.
4325
e0ca2bb9
MK
43262002-08-16 Mark Kettenis <kettenis@gnu.org>
4327
3f733acc
MK
4328 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4329 out define.
4330
7d8d2918
MK
4331 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4332 FRAME.
4333
1c7cc583
MK
4334 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4335 * configure.host: Make i[3456]86-*-aix host obsolete.
4336 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4337 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4338 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4339 config/i386/xm-i386aix.h: Make files obsolete.
4340 * i386aix-nat.c: Make file obsolete.
4341 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4342 (i386aix-nat.o): Make target obsolete.
4343
e0ca2bb9
MK
4344 * config/i386/nm-gnu.h: Removed.
4345 * config/i386/nm-i386gnu.h: New file.
4346 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4347 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4348 Moved here from ...
4349 * config/i386/tm-i386gnu.h: ... here. Removed.
4350 * config/i386/xm-i386gnu.h: Removed.
4351 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4352 (NAT_FILE): Set to nm-i386gnu.h.
4353 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4354 * i386-tdep.c: New file.
4355 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4356 (i386gnu-tdep.o): Specify dependencies.
4357
16057ec7 43582002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4359
6b99ee2e
MK
4360 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4361 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4362 Adjust a few comments to reflect reality a bit closer.
4363 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4364 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4365 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4366 target_insert_watchpoint, target_remove_watchpoint):
4367 Move defines to ...
4368 * config/i386/nm-i386sco5.h: ... here.
4369 (kernel_u_size): Add prototype. Improve a few comments and add
4370 protection against multiple inclusion.
4371
d9a6f65c
MK
4372 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4373 out define.
4374
047eff6a
MK
4375 * uw-thread.c (SP_ARG0): Define if not already defined.
4376 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4377
dcdb1290
MK
4378 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4379
5d2d0b2a
MK
4380 * config/i386/tm-i386.h: Don't include "regcache.h".
4381
61113f8b
MK
4382 * i387-tdep.h (i387_print_float_info): New prototype.
4383 * i387-tdep.c (print_i387_value, print_i387_ext,
4384 print_i387_status_word, print_i387_control_word): Add `struct
4385 ui_file *' argument and use it for output.
4386 (i387_print_float_info): Renamed from i387_float_info. Add
4387 `struct gdbarch *' and `struct ui_file *' arguments and use the
4388 latter for output.
4389 * i386-tdep.c: Include "i387-tdep.h".
4390 (i386_gdbarch_init): Set print_float_info.
4391 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4392 (FLOAT_INFO): Remove define.
4393
46e0f506
MS
43942002-08-13 Michael Snyder <msnyder@redhat.com>
4395
4396 * mips-tdep.c (mips_push_arguments): Rename to
4397 mips_eabi_push_arguments, and tune for EABI.
4398 (MIPS_REGS_HAVE_HOME_P): Delete.
4399 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4400 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4401 Delete references to mips_regs_have_home_p.
4402
409268de
KS
44032002-08-14 Keith Seitz <keiths@redhat.com>
4404
4405 * Makefile.in (install-gdbtk): Create insight plugin directory.
4406 Install plugins.tcl file.
4407
ffc6a242
KS
44082002-08-14 Keith Seitz <keiths@redhat.com>
4409
4410 * configure.in: Move SUBDIRS to near top of the file so that
4411 --enable options may add things to it.
4412 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4413 * configure: Regenerate.
4414
ebafbe83
MS
44152002-08-13 Michael Snyder <msnyder@redhat.com>
4416
4417 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4418 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4419 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4420
32f6f25d
AC
44212002-08-13 Andrew Cagney <ac131313@redhat.com>
4422
4423 * vax-tdep.c (vax_get_saved_register): Delete function.
4424 (vax_gdbarch_init): Update.
4425 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4426 (ns32k_gdbarch_init): Update.
4427 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4428 (alpha_gdbarch_init): Update.
4429
53826de9
AC
44302002-08-13 Andrew Cagney <cagney@redhat.com>
4431
4432 * regcache.c (init_regcache_descr): Overallocate the
4433 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4434 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4435 nr_raw_registers.
4436 (set_register_cached): Add range checking assertions. Use
4437 current_regcache.
4438
16057ec7 44392002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4440
4441 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4442 numbers for MMX registers.
4443
7b4c2dce
AC
44442002-08-13 Andrew Cagney <cagney@redhat.com>
4445
4446 * i386-tdep.c (i386_gdbarch_init): Use
4447 generic_unwind_get_saved_register.
4448
1e03ad20
KB
44492002-08-13 Kevin Buettner <kevinb@redhat.com>
4450
4451 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4452 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4453 target vector.
4454 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4455 Delete. Add comment regarding this now-deleted target method.
4456
548bcbec
SC
44572002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4458
4459 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4460 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4461 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4462 real PC and the page number (if it's within the memory bank window).
4463 (m68hc11_pseudo_register_write): Likewise when saving.
4464 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4465 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4466 (m68hc11_register_raw_size): And use 32-bit for it.
4467 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4468 16K memory bank is used by the prog; also use the virtual pc.
4469
7df11f59
SC
44702002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4471
4472 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4473 (m68hc11_gdbarch_init): Install it in gdbarch.
4474 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4475 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4476 (MSYMBOL_SIZE): New for documentation.
4477 (insn_return_kind): Enum to specify how a function returns.
4478 (frame_extra_info): Cleanup and record the return mode.
4479 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4480 register in address computation.
4481 (m68hc11_get_return_insn): New to obtain the return instruction used
4482 by the function.
4483 (m68hc11_frame_init_saved_regs): Take into account the return
4484 instruction used by the function for far and interrupt functions.
4485 (m68hc11_init_extra_frame_info): Take into account page register.
4486 (m68hc11_frame_args_address): Adjust according to the return mode.
4487 (show_regs): Print page register only when it's used.
4488
5706502a
SC
44892002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4490
4491 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4492 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4493 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4494 registers.
4495 (m68hc11_register_raw_size): Likewise.
4496
28fc6740
AC
44972002-08-13 Andrew Cagney <cagney@redhat.com>
4498
4499 * i386-tdep.c (i386_register_name): Handle mmx registers.
4500 (mmx_regnum_p): New function.
4501 (i386_mmx_names): New array.
4502 (mmx_num_regs): New variable.
4503 (i386_pseudo_register_read): New function.
4504 (i386_pseudo_register_write): New function.
4505 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4506
4507 * regcache.c (regcache_raw_read_unsigned): New function.
4508 (regcache_raw_read_signed): New function.
4509 * regcache.h (regcache_raw_read_unsigned): Declare.
4510 (regcache_raw_read_signed): Declare.
4511
a378f419
AC
45122002-08-13 Andrew Cagney <cagney@redhat.com>
4513
4514 * regcache.c (regcache_raw_read_as_address): Delete function.
4515 (regcache_cooked_read_signed): New function.
4516 (regcache_cooked_read_unsigned): New function.
4517 * regcache.h (regcache_cooked_read_signed): Declare.
4518 (regcache_cooked_read_unsigned): Declare.
4519 (regcache_raw_read_as_address): Delete declaration.
4520
4521 * blockframe.c (generic_read_register_dummy): Use
4522 regcache_cooked_read_unsigned.
4523 * i386-tdep.c (i386_extract_struct_value_address): Use
4524 regcache_cooked_read_unsigned.
4525
81967506
SC
45262002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4527
4528 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4529 double sizes according to ELF ABI flags.
4530 (gdbarch_tdep): Record elf_flags.
4531
ffe1f3ee
SC
45322002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4533
4534 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4535 (m6812_prolog): They can appear in 68HC12 function prologue.
4536 (m68hc11_frame_chain): Cleanup.
4537
98216c5d
AC
45382002-08-12 Andrew Cagney <cagney@redhat.com>
4539
4540 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4541 declarations.
4542 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4543 (i386_linux_register_raw_size): Delete function.
4544 (i386_linux_init_abi): Update.
4545 * i386-tdep.c (i386_register_raw_size): Delete function.
4546 (i386_register_byte): Delete function.
4547 (i386_gdbarch_init): Update.
4548 (i386_register_size): Delete array.
4549 (i386_register_offset): Delete array.
4550
4551 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4552 (REGISTER_RAW_SIZE): Delete macro.
4553 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4554 (REGISTER_BYTE): Delete macro.
4555
3b19021e
AS
45562002-08-11 Aidan Skinner <aidan@velvet.net>
4557
4558 * ada-lang.c (ada_lookup_partial_symbol)
4559 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4560 prototype names so that grep ^func works properly.
4561
4562 * ada-lang.c (ada_array_element_type)
4563 (ada_lookup_partial_symbol): Fix typos in parameter list.
4564
4565 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4566 Fix prototype names so that grep ^func works properly.
4567
b063e7a2
AC
45682002-08-10 Andrew Cagney <cagney@redhat.com>
4569 Elena Zannoni <ezannoni@redhat.com>
4570 Martin M. Hunt <hunt@redhat.com>
4571
4572 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4573 (build_builtin_type_vec128i): Set the vector bit.
4574 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4575 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4576 (build_builtin_type_vec64): New function.
4577 (build_builtin_type_vec64i): New function.
4578 (build_gdbtypes): Initialize builtin_type_vec64 and
4579 builtin_type_vec64i.
4580
a7e3c2ad
AC
45812002-08-09 Andrew Cagney <cagney@redhat.com>
4582
4583 * regcache.c (regcache_dump): Compare the register offset
4584 with REGISTER_BYTE.
4585 * arch-utils.c (generic_register_byte): New function.
4586 * arch-utils.h (generic_register_byte): Declare.
4587 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4588 * gdbarch.h, gdbarch.c: Regenerate.
4589
af030b9a
AC
45902002-08-09 Andrew Cagney <cagney@redhat.com>
4591
4592 * regcache.c: Include "gdbcmd.h"
4593 (_initialize_regcache): Add commands "maintenance print
4594 registers", "maintenance print raw-registers" and "maintenance
4595 print cooked-registers".
4596 (enum regcache_dump_what): Define.
4597 (dump_endian_bytes): New function.
4598 (regcache_dump): New function.
4599 (regcache_print): New function.
4600 (maintenance_print_registers): New function.
4601 (maintenance_print_raw_registers): New function.
4602 (maintenance_print_cooked_registers): New function.
4603 * Makefile.in (regcache.o): Update dependencies.
4604
cb3d25d1
MS
46052002-08-09 Michael Snyder <msnyder@redhat.com>
4606
4607 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4608 (mips_push_arguments): Correct some comments. Use paddr_nz
4609 for printing addresses in debug output. Replace static
4610 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4611 (mips_n32n64_push_arguments): New function, cloned from
4612 mips_push_arguments and tuned for the n32/n64 ABI.
4613 (mips_push_register): Buffer needs dynamic allocation.
4614 (mips_print_register): Ditto.
4615 (do_gp_register_row): Ditto.
4616 (mips_store_return_value): Ditto.
4617 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4618
2163ab9d
DH
46192002-08-09 Don Howard <dhoward@redhat.com>
4620
4621 * memattr.c (mem_info_command): Print special case of upper bound
4622 as max CORE_ADDR + 1.
4623
b78bcb18
MS
46242002-08-08 Michael Snyder <msnyder@redhat.com>
4625
4626 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4627 returns structs by ref if they're too big to fit in two registers.
4628
ffabd70d
KB
46292002-08-09 Kevin Buettner <kevinb@redhat.com>
4630
4631 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4632 saved regs value.
4633 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4634 mips_find_saved_regs().
4635 (mips_pop_frame): Likewise.
4636
fbcdb4a3
KB
46372002-08-09 Kevin Buettner <kevinb@redhat.com>
4638
4639 * blockframe.c (frame_saved_regs_register_unwind): Revise
4640 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4641 frames are in use.
4642
3c3bea1c
GS
46432002-08-09 Grace Sainsbury <graces@redhat.com>
4644
4645 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4646 T-packets; the 'a' is not taken as a register number.
4647 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4648 (remote_stopped_data_address): New functions; add to target
4649 vector.
4650 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4651 prototypes to match other implementations of this
4652 function. replace integer argument with pointer -- the length
4653 field in the Z-packet is the length of what is pointed to or 1 if
4654 pointer is null. Add to target vector.
4655 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4656 target vector.
4657
4658 From Mark Salter:
4659 * remote.c (remote_wait): Add support to extract optional
4660 watchpoint information from T-packet. Ignore unrecognized
4661 optional info in T-packet.
4662 (remote_async_wait): Ditto.
4663
5d1d95de
CV
46642002-08-09 Corinna Vinschen <vinschen@redhat.com>
4665
4666 * cli/cli-dump.c: Change fopen modes to use binary open modes
4667 as defined in include/fopen-bin.h throughout.
4668
c86b5b38
MS
46692002-08-08 Michael Snyder <msnyder@redhat.com>
4670
4671 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4672
b30590dc
KB
46732002-08-08 Kevin Buettner <kevinb@redhat.com>
4674
4675 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4676 assertion failure by returning early after a warning.
4677
498868ed
KB
46782002-08-08 Kevin Buettner <kevinb@redhat.com>
4679
4680 * mips-tdep.c (mips_find_saved_regs): Make static.
4681 (mips_frame_init_saved_regs): New function.
4682 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4683 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4684 (mips_find_saved_regs): Delete declaration.
4685
b2dd6311
GS
46862002-08-08 Grace Sainsbury <graces@redhat.com>
4687
3c3bea1c
GS
4688 * remote.c (remote_wait, remote_async_wait): Change
4689 thread_num from int to ULONGEST.
4690 (unpack_varlen_hex): Change result parameter from
4691 int * to ULONGEST *.
b2dd6311 4692
ea47855f
AC
46932002-08-08 Andrew Cagney <ac131313@redhat.com>
4694
4695 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4696 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4697 powerpc*-*-*.
4698 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4699
69db8bae
AC
47002002-08-08 Andrew Cagney <cagney@redhat.com>
4701
4702 * gcore.c (override_derive_stack_segment): Delete variable.
4703 (preempt_derive_stack_segment): Delete function.
4704 (derive_stack_segment): Delete function.
4705 (default_derive_stack_segment): Renamed to derive_stack_segment.
4706 (override_derive_heap_segment): Delete variable.
4707 (preempt_derive_heap_segment): Delete function.
4708 (derive_heap_segment): Delete function.
4709 (default_derive_heap_segment): Rename to derive_heap_segment.
4710
cb811fe7
MS
47112002-08-06 Michael Snyder <msnyder@redhat.com>
4712
4713 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4714 * mips-tdep.c (mips_EABI_use_struct_convention,
4715 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4716 New functions. (mips_use_struct_convention): Delete.
4717 (mips_gdbarch_init): set use_gdbarch_convention.
4718
8b389c40
MS
47192002-08-06 Michael Snyder <msnyder@redhat.com>
4720
4721 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4722 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4723 mips_o32_reg_struct_has_addr): New functions.
4724 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4725
5c27f28a
AC
47262002-08-07 Andrew Cagney <ac131313@redhat.com>
4727
4728 * regcache.c (pseudo_register): Delete function.
4729 (fetch_register): Delete function.
4730 (store_register): Delete function.
4731 (regcache_raw_read, legacy_read_register_gen): Use
4732 target_fetch_registers instead of fetch_register.
4733 (legacy_write_register_gen, regcache_raw_write): Use
4734 target_store_register instead of store_register.
4735 (write_register_bytes): Ditto.
4736
4737 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4738 (STORE_PSEUDO_REGISTER): Delete.
4739 * gdbarch.h, gdbarch.c: Regenerate.
4740
5b331675
CV
47412002-08-06 Corinna Vinschen <vinschen@redhat.com>
4742
4743 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4744 write dump file binary.
4745
6acdf5c7
MS
47462002-08-05 Michael Snyder <msnyder@redhat.com>
4747
4748 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4749 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4750 (mips_gdbarch_init): Set N32 target to be mips64.
4751
b2f01c35
KB
47522002-08-06 Kevin Buettner <kevinb@redhat.com>
4753
4754 * frame.c (find_saved_register): Break out of loop once saved
4755 register address is found. Don't mention sparc in loop comment
4756 anymore.
4757
63db5580
KB
47582002-08-06 Kevin Buettner <kevinb@redhat.com>
4759
4760 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4761 mips_default_saved_regsize to 8.
4762
5e34e75e
AC
47632002-08-06 Andrew Cagney <ac131313@redhat.com>
4764
4765 * gcore.c: Do not include <sys/procfs.h>.
4766 * Makefile.in (gcore.o): Update dependencies.
4767
eb4c54a2
AC
47682002-08-06 Andrew Cagney <cagney@redhat.com>
4769
4770 * configure.tgt: Make arc-*-* obsolete.
4771 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4772 * MAINTAINERS: Make arc-elf obsolete.
4773 * arc-tdep.c: Make file obsolete.
4774 * config/arc/arc.mt: Ditto.
4775 * config/arc/tm-arc.h: Ditto.
4776
ced15480
TR
47772002-08-05 Theodore A. Roth <troth@verinet.com>
4778
c1bab85b 4779 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4780
b4743822
AC
47812002-08-05 Andrew Cagney <ac131313@redhat.com>
4782
4783 * mcore-tdep.c (mcore_gdbarch_init): Use
4784 generic_unwind_get_saved_register instead of
4785 generic_get_saved_register.
4786 * v850-tdep.c (v850_gdbarch_init): Ditto.
4787 * frv-tdep.c (frv_gdbarch_init): Ditto.
4788 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4789 * s390-tdep.c (s390_gdbarch_init): Ditto.
4790 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4791 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4792 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4793
3956d554
JB
47942002-08-05 Joel Brobecker <brobecker@gnat.com>
4795
4796 * objfiles.h: Add missing #include "symfile.h"
4797
4798 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4799
8249c0d6
AC
48002002-08-04 Andrew Cagney <ac131313@redhat.com>
4801
4802 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4803 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4804 of FIELD_BITSIZE.
4805
b9d14705
DJ
48062002-08-04 Daniel Jacobowitz <drow@mvista.com>
4807
4808 * NEWS: Cleanup and nitpick.
4809
dd73b9bb
AC
48102002-08-03 Andrew Cagney <ac131313@redhat.com>
4811
4812 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4813
043a27f8
AC
48142002-08-03 Andrew Cagney <ac131313@redhat.com>
4815
4816 * Makefile.in (gdbtk-bp.o): Update dependencies.
4817 (gdbtk-register.o): Ditto.
4818 (gdbtk-varobj.o): Ditto.
4819
46ce284d
AC
48202002-08-03 Andrew Cagney <cagney@redhat.com>
4821
4822 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4823 m68hc11_fetch_pseudo_register.
4824 (m68hc11_pseudo_register_write): Replace
4825 m68hc11_store_pseudo_register.
4826 (m68hc11_gdbarch_init): Update.
4827
b66d6d2e
AC
4828Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4829
4830 * gdbarch.sh: Include "gdb_string.h".
4831 * gdbarch.c: Regenerate.
4832
4833 * regcache.c: Include "gdb_string.h".
4834 * ax-general.c: Ditto.
4835 * varobj.c: Ditto.
4836 * std-regs.c: Ditto.
4837 * fbsd-proc.c: Ditto.
4838 * thread.c: Ditto.
4839
4840 * Makefile.in (regcache.o): Update dependencies.
4841 (thread.o, gdbarch.o): Ditto.
4842 (ax-general.o, gdbarch.o): Ditto.
4843 (varobj.o, std-regs.o): Ditto.
4844 (fbsd-proc.o): Specify dependencies.
4845
29e1842b
AC
48462002-08-02 Andrew Cagney <cagney@redhat.com>
4847
4848 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4849 regnum.
4850 (regcache_cooked_write): Ditto.
4851
68365089
AC
48522002-08-02 Andrew Cagney <ac131313@redhat.com>
4853
4854 * regcache.c (regcache_cooked_read): New function.
4855 (regcache_cooked_write): New function.
4856 (read_register_gen): Rewrite using regcache_cooked_read.
4857 (write_register_gen): Rewrite using regcache_cooked_write.
4858
4859 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4860 Declare.
4861
d8124050
AC
48622002-08-02 Andrew Cagney <cagney@redhat.com>
4863
4864 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4865 Replace the architecture methods register_read and register_write.
4866 * gdbarch.h, gdbarch.c: Regenerate.
4867 * regcache.c (init_regcache_descr): Update.
4868 (read_register_gen): Update.
4869 (write_register_gen): Update.
4870 (supply_register): Update comment.
4871
4872 * sh-tdep.c (sh_gdbarch_init): Update.
4873 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4874 `regcache' and `gdbarch' parameters. Make `buffer' a void
4875 pointer. Update code.
4876 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4877 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4878 void pointer. Update code.
4879 (sh64_register_write): Delete.
4880 (sh4_register_read): Delete.
4881 (sh64_register_read): Delete.
4882 (sh4_register_write): Delete.
4883 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4884 void pointer, `to' parameter a void pointer.
4885 (sh_sh64_register_convert_to_raw): Ditto.
4886
a6425924
KB
48872002-08-01 Kevin Buettner <kevinb@redhat.com>
4888
4889 * mips-tdep.c (mips_register_virtual_type): Use architecture
4890 invariant return values.
4891
ff5922b5
AC
48922002-08-01 Andrew Cagney <cagney@redhat.com>
4893
4894 * linux-proc.c: Include "gdb_string.h".
4895 * Makefile.in (linux-proc.o): Update dependency list.
4896
32a6503c
KB
48972002-08-01 Kevin Buettner <kevinb@redhat.com>
4898
4899 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4900 comment.
4901
ccaa32c7
GS
49022002-08-01 Grace Sainsbury <graces@redhat.com>
4903
4904 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4905 to_insert_watchpoint, to_remove_watchpoint,
4906 to_stopped_by_watchpoint, to_stopped_data_address,
4907 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4908 target vecctor. Define their corresponding macros so they call
4909 them.
4910
4911 * target.c: Add default and debug versions of for
4912 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4913 to_insert_watchpoint, to_remove_watchpoint,
4914 to_stopped_by_watchpoint, to_stopped_data_address,
4915 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4916
78fde5f8
KB
49172002-08-01 Kevin Buettner <kevinb@redhat.com>
4918
4919 * mips-tdep.c (mips_register_virtual_type): New function.
4920 (mips_gdbarch_init): Register mips_register_virtual_type()
4921 with gdbarch machinery.
4922 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4923 this file instead of tm-bigmips.h.
4924 (MIPS_REGSIZE): Delete this macro.
4925 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4926 multiarch version in mips-tdep.c will be found.
4927
db034ac5
AC
49282002-08-01 Andrew Cagney <cagney@redhat.com>
4929
4930 * NEWS: Menion that CHILL has been made obsolete.
4931
4932 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4933 * stabsread.c (read_range_type): Ditto.
4934 * gdbtypes.h: Ditto.
4935 * language.c (binop_type_check): Ditto.
4936 (binop_result_type): Ditto.
4937 (integral_type): Ditto.
4938 (character_type): Ditto.
4939 (string_type): Ditto.
4940 (boolean_type): Ditto.
4941 (structured_type): Ditto.
4942 (lang_bool_type): Ditto.
4943 (binop_type_check): Ditto.
4944 * language.h (_LANG_chill): Ditto.
4945 * dwarfread.c (set_cu_language): Ditto.
4946 * dwarfread.c (CHILL_PRODUCER): Ditto.
4947 * dwarfread.c (handle_producer): Ditto.
4948 * expression.h (enum exp_opcode): Ditto.
4949 * eval.c: Ditto for comments.
4950 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
4951 * expprint.c (print_subexp): Ditto.
4952 (print_subexp): Ditto.
4953 * valops.c (value_cast): Ditto.
4954 (search_struct_field): Ditto.
4955 * value.h (COERCE_VARYING_ARRAY): Ditto.
4956 * symfile.c (init_filename_language_table): Ditto.
4957 (add_psymbol_with_dem_name_to_list): Ditto.
4958 * valarith.c (value_binop): Ditto.
4959 (value_neg): Ditto.
4960 * valops.c (value_slice): Ditto.
4961 * symtab.h (union language_specific): Ditto.
4962 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
4963 (SYMBOL_DEMANGLED_NAME): Ditto.
4964 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4965 * defs.h (enum language): Ditto.
4966 * symtab.c (got_symtab): Ditto.
4967 * utils.c (fprintf_symbol_filtered): Ditto.
4968
4969 * ch-typeprint.c: Make file obsolete.
4970 * ch-valprint.c: Make file obsolete.
4971 * ch-lang.h: Make file obsolete.
4972 * ch-exp.c: Make file obsolete.
4973 * ch-lang.c: Make file obsolete.
4974
4975 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
4976 CHILL_LIB.
4977 (TARGET_FLAGS_TO_PASS): Ditto.
4978 (CHILLFLAGS): Obsolete.
4979 (CHILL): Obsolete.
4980 (CHILL_FOR_TARGET): Obsolete.
4981 (CHILL_LIB): Obsolete.
4982 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
4983 ch-valprint.c.
4984 (HFILES_NO_SRCDIR): Remove ch-lang.h.
4985 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
4986 ch-lang.o.
4987 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
4988 targets.
4989
8aaf0b47
JB
49902002-07-31 Joel Brobecker <brobecker@gnat.com>
4991
4992 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
4993 This does not change anything at the moment, but will be helpful
4994 later when full Ada support is integrated.
4995
f3a7b3a5
KB
49962002-07-31 Kevin Buettner <kevinb@redhat.com>
4997
4998 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
4999 help message.
5000
fb850278
KB
50012002-07-31 Kevin Buettner <kevinb@redhat.com>
5002
5003 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5004 and save it in a local variable. Use variable in later test.
5005
e3bddbfa
KB
50062002-07-31 Kevin Buettner <kevinb@redhat.com>
5007
5008 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5009 test. (Thanks to Daniel Jacobowitz.)
5010
28d169de
KB
50112002-07-31 Kevin Buettner <kevinb@redhat.com>
5012
5013 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5014 (mips_abi_strings): Add "n64".
5015 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5016
7fe7e44e
KB
50172002-07-31 Kevin Buettner <kevinb@redhat.com>
5018
5019 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5020 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5021
c6caf090
KB
50222002-07-31 Kevin Buettner <kevinb@redhat.com>
5023
5024 * utils.c (host_pointer_to_address, address_to_host_pointer):
5025 Use gdb_assert() instead of explicit call to internal_error().
5026
c41669e0
KB
50272002-07-30 Kevin Buettner <kevinb@redhat.com>
5028
5029 * Makefile.in (rs6000-nat.o): Update dependencies.
5030
5031 From Nicholas Duffek:
5032 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5033 (aix-thread.o): New rule.
5034 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5035 * config/powerpc/aix432.mh: New file.
5036
2fda4977
DJ
50372002-07-30 Daniel Jacobowitz <drow@mvista.com>
5038
5039 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5040 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5041 (fetch_core_registers, ppc_linux_supply_gregset)
5042 (ppc_linux_supply_fpregset): New functions.
5043 (ppc_linux_regset_core_fns): New.
5044 (_initialize_ppc_linux_tdep): Call add_core_fns.
5045 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5046 and ppc_linux_supply_gregset.
5047 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5048 (supply_fpregset): Call ppc_linux_supply_fpregset.
5049 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5050 corelow.o.
5051 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5052
729051e6
DJ
50532002-07-30 Daniel Jacobowitz <drow@mvista.com>
5054
5055 * symtab.c (lookup_symbol): Demangle before lowercasing.
5056
5f8a3188
AC
50572002-07-30 Andrew Cagney <ac131313@redhat.com>
5058
5059 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5060 declaration.
5061 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5062 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5063 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5064 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5065 "gdb_string.h".
5066 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5067 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5068 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5069 (avr-tdep.o, mon960-rom.o): Ditto.
5070 (aout_stabs_gnu_h): Define.
5071 (symtab_h): Remove $(gdb_obstack_h).
5072
67f07146
JB
50732002-07-30 Jim Blandy <jimb@redhat.com>
5074
5075 Patch from David Carlton <carlton@math.stanford.edu>:
5076 * gdbinit.in: Move the `dir' commands that add GDB's own source
5077 directory to the search path to the end, so that the `gdb' source
5078 directory will be searched first.
5079
04ea0df1
AC
50802002-07-29 Andrew Cagney <ac131313@redhat.com>
5081
5082 * gdb_obstack.h: New file.
5083 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5084 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5085 * objfiles.h: Include "gdb_obstack.h".
5086 * Makefile.in (gdb_obstack_h): Define.
5087 (symtab_h): Add $(gdb_obstack_h).
5088 (objfiles_h): Add $(gdb_obstack_h).
5089
5090 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5091 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5092 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5093 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5094 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5095 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5096 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5097 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5098
5099 * Makefile.in (bcache.o): Update dependencies.
5100 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5101 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5102 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5103 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5104 (stabsread.o, symfile.o, symmisc.o): Ditto.
5105 (symtab.o, typeprint.o, macroexp.o): Ditto.
5106 (macrotab.o, mdebugread.o): Ditto.
5107 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5108 (coff_ecoff_h, aout_aout64_h): Define.
5109 (aout_stabs_gnu_h, libaout_h): Define.
5110
d138e37a
AC
51112002-07-29 Andrew Cagney <cagney@redhat.com>
5112
5113 * regcache.c (struct regcache_descr): Rename nr_registers to
5114 nr_cooked_registers. Revise comments describing the structure
5115 member fields.
5116 (init_regcache_descr): Update.
5117 (init_legacy_regcache_descr): Update.
5118 (read_register_gen, write_register_gen): When a cooked register in
5119 the raw register range, directly access the value from the raw
5120 register cache.
5121
460e6ec3
AC
51222002-07-29 Andrew Cagney <ac131313@redhat.com>
5123
5124 * z8k-tdep.c: Do not include "obstack.h".
5125 * h8300-tdep.c, h8500-tdep.c: Ditto.
5126 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5127 * valprint.c, v850-tdep.c: Ditto.
5128 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5129 * mn10200-tdep.c: Ditto.
5130
5131 * Makefile.in (z8k-tdep.o): Update dependencies.
5132 (m68hc11-tdep.o, valprint.o): Ditto.
5133 (v850-tdep.o, d10v-tdep.o): Ditto.
5134 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5135 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5136 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5137 (sh_opc_h, gdb_sim_sh_h): Define.
5138 (elf_sh_h, elf_bfd_h): Define.
5139 (opcode_m68hc11_h): Define.
5140 (OPCODES_SRC, OPCODES_DIR): define.
5141 (OPCODES): Use $(OPCODES_DIR).
5142 (gdb_sim_d10v_h): Rename sim_d10v_h.
5143 (gdb_sim_arm_h): Rename sim_arm_h.
5144
790c9cf0
KB
51452002-07-26 Kevin Buettner <kevinb@redhat.com>
5146
5147 * utils.c (host_pointer_to_address, address_to_host_pointer):
5148 Change internal_error() message to indicate function responsible
5149 for the error.
5150
9647fa49
KB
51512002-07-26 Kevin Buettner <kevinb@redhat.com>
5152
5153 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5154 calls to local_hex_string_custom().
5155
dabbe2c0
KB
51562002-07-26 Kevin Buettner <kevinb@redhat.com>
5157
5158 * irix5-nat.c: Move IRIX shared library support from here...
5159 * solib-irix.c: ...to here. Revised substantially to work with
5160 generic solib framework.
5161
b96d0a4e
KB
5162 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5163 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5164 * mips-irix-tdep.c: New file.
5165
313fb2f6
KB
5166 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5167 (mips-irix-tdep.o, solib-irix.o): New rules.
5168 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5169 solib-irix.o.
5170 * config/mips/irix6.mt (TDEPFILES): Likewise.
5171 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5172
ab2eaf26
KB
51732002-07-26 Kevin Buettner <kevinb@redhat.com>
5174
177e4768 5175 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5176 disabled (via ``#if 0'') includes.
5177
7244546a
KB
51782002-07-26 Kevin Buettner <kevinb@redhat.com>
5179
5180 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5181 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5182 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5183 Add support for the fpscr register.
5184 * rs6000-nat.c (regmap, fetch_inferior_registers)
5185 (store_inferior_registers, fetch_core_registers): Likewise.
5186
dd7be90a
KB
51872002-07-26 Kevin Buettner <kevinb@redhat.com>
5188
5189 * rs6000-nat.c (language.h): Include.
5190 (special_regs): Delete this array.
5191 (regmap): New function.
5192 (fetch_register, store_register): Use regmap() to map gdb
5193 register numbers to ptrace register numbers. Also, use
5194 outputs from regmap() to make decisions regarding type of
5195 ptrace() call to make. In particular, don't compare against
5196 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5197 (fetch_inferior_registers, store_inferior_registers): Where
5198 possible, obtain register numbers from tdep struct. Don't
5199 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5200 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5201 (LAST_UISA_SP_REGNUM): Delete.
5202
11bf77db
KB
52032002-07-25 Kevin Buettner <kevinb@redhat.com>
5204
5205 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5206 (fetch_registers, store_register, fetch_core_registers): Don't
5207 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5208 regcache_collect() as appropriate.
5209 (find_toc_address): Format hex address with local_hex_string().
5210
06afebeb
AC
52112002-07-25 Andrew Cagney <ac131313@redhat.com>
5212
5213 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5214 bfd/elf32-frv.c.
5215
8c554d79
TT
52162002-07-24 Tom Tromey <tromey@redhat.com>
5217
5218 * jv-exp.y: Marked all strings with _().
5219 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5220 internal_error.
5221 (MethodInvocation, CastExpression, parse_number, yyerror,
5222 java_type_from_name, push_expression_name, yylex): Typo fixes.
5223
e4c242d9
DJ
52242002-07-24 Daniel Jacobowitz <drow@mvista.com>
5225
5226 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5227 (tee_file_flush, tee_file_write, tee_file_fputs)
5228 (tee_file_isatty): New.
5229 * ui-file.h (tee_file_new): Add prototype.
5230
ebf56fd3
AS
52312002-07-24 Aidan Skinner <aidan@velvet.net>
5232
5233 * ada-lang.c: Change k&r style function definitions to prototyped
5234 form.
5235 * ada-typeprint.c: Change k&r style function definitions to prototyped
5236 form.
5237 * ada-valprint.c: Change k&r style function definitions to prototyped
5238 form.
5239
7fb623f7
AC
52402002-07-24 Andrew Cagney <cagney@redhat.com>
5241
5242 * README: Remove reference to remote-bug.
5243 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5244 remote-bug.c.
5245 (m88k-nat.o): Delete rule.
5246 (m88k-tdep.o): Delete rule.
5247 (remote-bug.o): Delete rule.
5248 * MAINTAINERS: Mark as obsolete.
5249 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5250 * m88k-tdep.c: Make file obsolete.
5251 * config/m88k/m88k.mh: Ditto.
5252 * config/m88k/delta88v4.mh: Ditto.
5253 * config/m88k/delta88v4.mt: Ditto.
5254 * config/m88k/delta88.mt: Ditto.
5255 * config/m88k/delta88.mh: Ditto.
5256 * remote-bug.c: Ditto.
5257 * config/m88k/tm-delta88.h: Ditto.
5258 * config/m88k/nm-delta88v4.h: Ditto.
5259 * config/m88k/xm-delta88.h: Ditto.
5260 * config/m88k/xm-dgux.h: Ditto.
5261 * config/m88k/tm-m88k.h: Ditto.
5262 * config/m88k/nm-m88k.h: Ditto.
5263 * config/m88k/tm-delta88v4.h: Ditto.
5264 * m88k-nat.c: Ditto.
5265 * cxux-nat.c: Ditto.
5266 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5267 and m88*-*-* obsolete.
5268 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5269 m88*-*-* obsolete.
5270
37611a2b
AC
52712002-07-24 Andrew Cagney <cagney@redhat.com>
5272
5273 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5274 constant. Same for local pointer variables.
5275 (extract_signed_integer): Ditto.
5276 * defs.h (extract_unsigned_integer): Update.
5277 (extract_signed_integer): Update.
5278
1aaa5f99
AC
52792002-07-24 Andrew Cagney <cagney@redhat.com>
5280
5281 * regcache.c (regcache_raw_write): Change buf parameter to a
5282 constant void pointer.
5283 (regcache_raw_read): Change buf parameter to a void pointer.
5284 (legacy_write_register_gen): Change myaddr parameter a constant
5285 void pointer.
5286 (supply_register): Change val parameter to a const void pointer.
5287 * regcache.h (regcache_raw_write): Update declaration.
5288 (regcache_raw_read): Update declaration.
5289 (supply_register): Update declaration.
5290
b4f5539f
TT
52912002-07-24 Tom Tromey <tromey@redhat.com>
5292
5293 * defs.h (gdb_readline_wrapper): Declare.
5294 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5295 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5296 * top.c (gdb_readline_wrapper): New function.
5297 (command_line_input): Use it.
5298
0818c12a
AC
52992002-07-24 Andrew Cagney <cagney@redhat.com>
5300
5301 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5302 regcache_read and regcache_write.
5303 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5304 * regcache.c: Update.
5305 * sh-tdep.c (sh64_push_arguments): Update comment.
5306 (sh_pseudo_register_read): Update.
5307 (sh_pseudo_register_write): Update.
5308 (sh4_register_read): Update.
5309 (sh4_register_write): Update.
5310 (sh64_pseudo_register_read): Update.
5311 (sh64_pseudo_register_write): Update.
5312 (sh64_register_read): Update.
5313 (sh64_register_write): Update.
5314 * i386-tdep.c (i386_extract_return_value): Update.
5315 (i386_extract_struct_value_address): Update.
5316 (i386_extract_return_value): Update.
5317 * blockframe.c (generic_read_register_dummy): Update.
5318 (generic_call_dummy_register_unwind): Update
5319 * infrun.c (write_inferior_status_register): Update.
5320
f7321c06
JB
53212002-07-23 Jim Blandy <jimb@redhat.com>
5322
5323 * parser-defs.h (expression_context_pc): Make this extern.
5324 (Thanks to Michael Snyder.)
5325
2037aebb
AC
53262002-07-23 Andrew Cagney <ac131313@redhat.com>
5327
5328 GDB 5.2.1 released from 5.2 branch.
5329 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5330 * README: Update to mention 5.2.1.
5331
66504d44
MS
53322002-07-23 Mark Salter <msalter@redhat.com>
5333
5334 * remote.c (remote_read_bytes): Fix check for error.
5335
27bae383
KB
53362002-07-22 Kevin Buettner <kevinb@redhat.com>
5337
5338 * aix-thread.c (language.h): Include.
5339 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5340 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5341 Print newlines at end of debug messages.
5342 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5343 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5344
53452002-07-22 Kevin Buettner <kevinb@redhat.com>
5346
5347 * aix-thread.c (ppc-tdep.h): Include.
5348 (special_register_p): New function.
5349 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5350 (store_regs_user_thread): Use register number information from
5351 gdbarch_tdep struct instead of hardcoded offsets relative to
5352 FIRST_UISA_SP_REGNUM.
5353 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5354 special_register_p() instead of using FPLAST_REGNUM and
5355 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5356 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5357 will be MQ's register number.
5358
53592002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5360
5361 * aix-thread.c (ops): Rename to aix_thread_ops.
5362 (base_ops): Rename to base_target.
5363 (ops_attach): Rename to aix_thread_attach.
5364 (ops_detach): Rename to aix_thread_detach.
5365 (ops_resume): Rename to aix_thread_detach.
5366 (ops_wait): Rename to aix_thread_wait.
5367 (ops_kill): Rename to aix_thread_kill.
5368 (init_ops): Rename to init_aix_thread_ops.
5369 (ops_fetch_register): Rename to aix_thread_fetch_register.
5370 (ops_store_register): Rename to aix_thread_store_register.
5371 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5372 (ops_thread_alive): Rename to aix_thread_thread_alive.
5373 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5374 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5375 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5376 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5377 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5378 (store_regs_lib): Rename to store_regs_user_thread.
5379 (store_regs_kern): Rename to store_regs_kernel_thread.
5380
27bae383 53812002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5382
5383 * aix-thread.c (ops_prepare_to_store): Eliminate.
5384 (init_ops): Don't initialize ops.prepare_to_store.
5385 (store_regs_kern): Pre-fetch register buffers from child,
5386 because some registers may not be in the cache. Copy
5387 regs from register cache only if they are cached.
5388 (store_regs_lib): Copy regs from register cache only
5389 if they are cached.
5390 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5391 fill_gprs64): Ditto.
5392
61c5da0b
KB
53932002-07-22 Kevin Buettner <kevinb@redhat.com>
5394
5395 * aix-thread.c (gdb_assert.h): Include.
5396 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5397 register sizes (from register cache) match size of buffer holding
5398 register data.
5399 (fill_sprs32): Change parameter types to match those in the ptrace()
5400 buffer.
5401 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5402 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5403
54042002-07-22 Michael Snyder <msnyder@redhat.com>
5405
5406 * aix-thread.c (supply_sprs64): Cosmetic change.
5407 (supply_sprs32): Cosmetic change.
5408 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5409 (fill_sprs64): Use regcache_collect instead of read_register.
5410 (store_regs_lib): Use regcache_collect instead of
5411 read_register. Use fill_sprs32 instead of fill_sprs64,
5412 if debugging a 32-bit architecture.
5413 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5414 out of the register cache, instead of passing a pointer into
5415 the register cache directly to ptrace. Use regcache_collect
5416 insteaad of read_register.
5417 (ops_prepare_to_store): Use target_read_registers instead
5418 of read_register_bytes.
5419
36479eb1
AS
54202002-07-20 Aidan Skinner <aidan@velvet.net>
5421
5422 * MAINTAINERS: Add self under write after approval.
5423
80ae6ee2
AS
54242002-07-20 Aidan Skinner <aidan@velvet.net>
5425
5426 * ada-tasks.c: Change k&r style function definitions to prototyped
5427 form.
5428
8a8ab2b9
AC
54292002-07-19 Andrew Cagney <ac131313@redhat.com>
5430
5431 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5432 * x86-64-tdep.c: Include "objfiles.h".
5433 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5434 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5435
fb16b900
ML
54362002-07-17 Michal Ludvig <michal@suse.cz>
5437
5438 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5439 (update_context): Initialise cfa variable.
5440
0fe7bf7b
MS
54412002-07-17 Michael Snyder <msnyder@redhat.com>
5442
5443 * aix-thread.c: Shorten some long lines.
5444 Bring comments into line with code spec.
5445
488f131b
JB
54462002-07-18 Joel Brobecker <brobecker@gnat.com>
5447
5448 * infrun.c: Re-indent using gdb_indent.sh.
5449
46c415d2
JB
54502002-07-18 Joel Brobecker <brobecker@gnat.com>
5451
5452 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5453 Leave the indentation temporarily untouched, to minimize the diffs.
5454
cdecafbe
EZ
54552002-07-18 Elena Zannoni <ezannoni@redhat.com>
5456
5457 * stabsread.c: Make os9k sections of the code obsolete,
5458 for real this time.
5459 * stabsread.h: Make os9k sections of the code obsolete.
5460
7b6aa020
ML
54612002-07-18 Michal Ludvig <mludvig@suse.cz>
5462
09ec9b38
ML
5463 * linux-low.c (regsets_store_inferior_registers): Add free()
5464 at the end of a loop to prevent memory leak.
5465 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5466 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5467 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5468 line a comment.
4894ac5d 5469 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5470
233282cd
JB
54712002-07-17 Jim Blandy <jimb@redhat.com>
5472
5473 * macrocmd.c (info_macro_command): Remove newline from error
5474 message.
5475
7b6aa020 54762002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5477
5478 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5479 (sh_gdbarch_init): Use it for sh-dsp.
5480
f7ef9339
KB
54812002-07-16 Kevin Buettner <kevinb@redhat.com>
5482
5483 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5484 64-bit DWARF2 format.
5485
8dd72958
JB
54862002-07-16 Joel Brobecker <brobecker@gnat.com>
5487
5488 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5489 <sys/proc.h> when not available.
5490
a99a9e1b
AC
54912002-07-16 Andrew Cagney <ac131313@redhat.com>
5492
5493 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5494 * stabsread.c: Make os9k sections of the code obsolete.
5495 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5496 * config/i386/i386os9k.mt: Make file obsolete.
5497 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5498 (COMMON_OBS): Remove os9kread.o
5499 (SFILES): Remove os9kread.c.
5500 (os9kread.o, remote-os9k.o): Make target obsolete.
5501 * remote-os9k.c: Make file obsolete.
5502 * os9kread.c: Make file obsolete.
5503 * Makefile.in
5504
7a3085c1
AC
55052002-07-16 Andrew Cagney <ac131313@redhat.com>
5506
5507 * NEWS: Mention that the FR30 has been made obsolete.
5508 * fr30-tdep.c: Make file obsolete.
5509 * config/fr30/tm-fr30.h: Ditto.
5510 * config/fr30/fr30.mt: Ditto.
5511 * configure.tgt: Make fr30-*-elf obsolete.
5512 * MAINTAINERS: Make fr30-elf obsolete.
5513
28a93f5a
PM
55142002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5515
5516 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5517 found is not inside a section.
5518
be006b8b
KB
55192002-07-15 Kevin Buettner <kevinb@redhat.com>
5520
5521 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5522 strerror().
5523 (pdc_realloc): Use xrealloc() instead of realloc().
5524
14fa3751
KB
55252002-07-15 Kevin Buettner <kevinb@redhat.com>
5526
5527 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5528 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5529 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5530 macros.
5531
42cc437f
KB
55322002-07-15 Kevin Buettner <kevinb@redhat.com>
5533
5534 * aix-thread.c (ptrace_check): Eliminate goto.
5535 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5536 problem.
5537
8e2c28d4
KB
55382002-07-15 Kevin Buettner <kevinb@redhat.com>
5539
5540 * aix-thread.c (gdbcmd.h): Include.
5541 (DEBUG, DBG, DBG2, dbg): Eliminate.
5542 (debug_aix_thread): New static global.
5543 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5544 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5545 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5546 invocations to DBG and DBG2 macros to test against
5547 ``debug_aix_thread'' and call fprintf_unfiltered().
5548 (_initialize_aix_thread): Add new command "set debug aix-thread".
5549
30413464
AC
55502002-07-15 Andrew Cagney <ac131313@redhat.com>
5551
5552 From Gerhard Tonn <TON@de.ibm.com>:
5553 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5554 instead of supply_register.
5555
7c43edc1
AC
55562002-07-15 Andrew Cagney <ac131313@redhat.com>
5557
5558 * dwarf2cfi.c: Include "gdb_assert.h".
5559 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5560 non-NULL.
5561 (update_context): Do not use __func__. Add missing ``break''.
5562 (update_context): Do not use __func__.
5563
9364a0ef
EZ
55642002-07-15 Elena Zannoni <ezannoni@redhat.com>
5565
5566 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5567 and its setting. Set gdbarch instruction printing functions
5568 directly. For non-rs6000 case use new function
5569 gdb_print_insn_powerpc.
5570 (gdb_print_insn_powerpc): New function.
5571
3fbeef0b
AC
55722002-07-13 Andrew Cagney <ac131313@redhat.com>
5573
92eb23c5 5574 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5575 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5576 * configure.tgt: Mark d30v-*-* as obsolete.
5577 * d30v-tdep.c: Mark file as obsolete.
5578 * config/d30v/d30v.mt: Ditto.
5579 * config/d30v/tm-d30v.h: Ditto.
5580
aacb1f0a
AS
55812002-07-13 Aidan Skinner <aidan@velvet.net>
5582
5583 * ada-tasks.c (add_task_entry): replace calls to
5584 malloc() with xmalloc
5585 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5586
5587 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5588 ada_finish_decode_line_1, all_sals_for_line
5589 ada_breakpoint_rewrite): replace calls to free() with xfree()
5590
c11d79f2
KB
55912002-07-12 Kevin Buettner <kevinb@redhat.com>
5592
5593 From Nicholas Duffek (with minor changes by Martin Hunt,
5594 Louis Hamilton, and Kevin Buettner):
5595 * aix-thread.c: New file.
5596
8e19ed76
PS
55972002-07-12 Petr Sorfa <petrs@caldera.com>
5598
5599 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5600 complaint for invalid attribute class or form.
5601 (read_func_scope): DW_AT_frame_base
5602 better handling of DW_AT_block*.
5603 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5604 better handling of DW_AT_block*.
5605 (read_common_block): DW_AT_location
5606 better handling of DW_AT_block*.
5607 (read_partial_die): DW_AT_location better handling
5608 of DW_AT_block*.
5609 (new_symbol): DW_AT_external better handling of
5610 DW_AT_block*. Proper initialization of variable
5611 "addr".
5612 (attr_form_is_block): New function that returns true
5613 if the attribute's form is of DW_FORM_block*.
5614
295401f7
DJ
56152002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5616
5617 * valops.c (find_method_list): Remove comment about
5618 removed STATIC_MEMFUNCP argument.
5619 (value_find_oload_method_list): Likewise.
5620
e42dc924
KB
56212002-07-12 Kevin Buettner <kevinb@redhat.com>
5622
5623 From Nicholas Duffek:
5624 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5625 target_new_objfile_hook.
5626
6904b546
KB
56272002-07-12 Kevin Buettner <kevinb@redhat.com>
5628
5629 From Nicholas Duffek:
5630 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5631 csect.
5632
53fe9346
AC
56332002-07-12 Andrew Cagney <cagney@redhat.com>
5634
5635 * MAINTAINERS: Mention --enable-sim-build-warnings.
5636 (m68hc11-elf): Disable sim build warnings.
5637 (m32r-elf): Mark as broken obsolete candidate.
5638 (x86_64-linux-gnu): Mark as buildable with -Werror.
5639 (arm-elf): Change -w to ``,'' which enables warnings but not
5640 -Werror.
5641
af5f3db6
AC
56422002-07-12 Andrew Cagney <ac131313@redhat.com>
5643
5644 * bcache.h: Update copyright.
5645 (struct bstring, struct bcache): Move definition to "bcache.c".
5646 Replaced by opaque declaration.
5647 (bcache_xfree): Replace free_bcache.
5648 (bcache_xmalloc, bcache_memory_used): Declare.
5649
5650 * bcache.c: Update copyright.
5651 (struct bstring, struct bcache): Moved to here from "bcache.h".
5652 Update comments.
5653 (bcache_xmalloc, bcache_memory_used): New functions.
5654 (bcache_xfree): Replace function free_bcache.
5655
5656 * Makefile.in (objfiles.o): Add $(bcache_h).
5657 (objfiles_h): Remove $(bcache_h).
5658 (symfile.o): Add $(bcache_h).
5659
5660 * symmisc.c: Update copyright.
5661 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5662 (print_objfile_statistics): Use bcache_memory_used.
5663
5664 * symfile.c: Include "bcache.h".
5665 (reread_symbols): Use bcache_xfree.
5666 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5667 (add_psymbol_to_list): Pass psymbol_cache by value.
5668 (add_psymbol_with_dem_name_to_list): Ditto.
5669
5670 * objfiles.h: Update copyright.
5671 (struct bcache): Declare opaque. Do not include "bcache.h".
5672 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5673 bcache'' pointers.
5674 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5675
5676 * objfiles.c: Include "bcache.h". Update copyright.
5677 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5678 macro_cache.
5679 (free_objfile): Use bcache_xfree.
5680
444199e7
GS
56812002-07-11 Grace Sainsbury <graces@redhat.com>
5682
5683 * monitor.c (monitor_fetch_register): Make name a constant.
5684 (monitor_store_register): Same.
5685
261397f8
DJ
56862002-07-11 Daniel Jacobowitz <drow@mvista.com>
5687
5688 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5689 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5690 (finish_block) For non-function blocks, hash the symbol table. For
5691 function blocks, mark the symbol table as unhashed.
5692 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5693 (msymbol_hash_iw): Likewise.
5694 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5695 value.
5696 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5697 (lookup_minimal_symbol): Likewise for both.
5698 * symtab.h (struct block): Add `hashtable' flag. Comment the
5699 hashtable.
5700 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5701 (ALL_BLOCK_SYMBOLS): Update.
5702 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5703 (struct symbol): Add `hash_next' pointer.
5704 * symtab.c (lookup_block_symbol): Search using the hash table when
5705 possible.
5706 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5707 (search_symbols, find_addr_symbol): Likewise.
5708
5709 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5710 (read_dst_symtab): Likewise.
5711 * jv-lang.c (get_java_class_symtab): Likewise.
5712 * mdebugread.c: Include "gdb_assert.h".
5713 (shrink_block): Assert that the block being modified is not hashed.
5714 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5715 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5716 symbols.
5717 (dump_symtab): Recognize hashed blocks.
5718 * printcmd.c (print_frame_args): Assert that function blocks do not
5719 have hashed symbol tables.
5720 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5721 (fill_in_ada_prototype, debug_print_block): Likewise.
5722 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5723
6f0eaa01
CV
57242002-07-11 Corinna Vinschen <vinschen@redhat.com>
5725
5726 * stack.c (print_frame): Use result of frame_address_in_block()
5727 instead of fi->pc when evaluating symbols.
5728 (backtrace_command_1): Ditto.
5729
a208b0cb
AC
57302002-07-11 Andrew Cagney <cagney@redhat.com>
5731
5732 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5733 Make static.
5734
5735 * arm-tdep.c (arm_register_name): Make return type constant.
5736
a6b6b089
AC
57372002-07-10 Andrew Cagney <ac131313@redhat.com>
5738
5ae5f592
AC
5739 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5740 prototype.
5741 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5742 * s390-tdep.c (s390_fp_regnum): Ditto.
5743 (s390_read_fp): Ditto.
5744 (s390_pop_frame): Ditto.
5745 (_initialize_s390_tdep): Ditto.
5746 * remote.c (get_remote_state): Ditto.
5747 * procfs.c (mappingflags): Ditto.
5748 * memattr.c (_initialize_mem): Ditto.
5749 * mcore-tdep.c (mcore_pop_frame): Ditto.
5750 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5751 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5752 * language.c (set_case_str): Ditto.
5753 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5754 * frv-tdep.c (new_variant): Ditto.
5755 (frv_stopped_data_address): Ditto.
5756 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5757 (context_alloc): Ditto.
5758 (frame_state_alloc): Ditto.
5759 (unwind_tmp_obstack_init): Ditto.
5760 (unwind_tmp_obstack_free): Ditto.
5761 (cfi_read_fp): Ditto.
5762 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5763 (cris_pop_frame): Ditto.
5764 * c-lang.c (scanning_macro_expansion): Ditto.
5765 (finished_macro_expansion): Ditto.
5766 (c_preprocess_and_parse): Ditto.
5767 * gdbarch.sh: Ditto.
5768 * gdbarch.h, gdbarch.c: Regenerate.
5769 * config/mn10200/tm-mn10200.h: Adjust indentation.
5770 * target.c: Adjust indentation.
5771 * symtab.h: Adjust indentation.
5772 * stabsread.h: Adjust indentation.
5773 * remote-es.c: Adjust indentation.
5774 * os9kread.c: Adjust indentation.
5775
57762002-07-10 Andrew Cagney <ac131313@redhat.com>
5777
a6b6b089
AC
5778 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5779 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5780
a1789893
GS
57812002-07-10 Grace Sainsbury <graces@redhat.com>
5782
5783 * NEWS: Mention m68k, mcore multi-arching.
5784 * MAINTAINERS: Change status of m68k, mcore to reflect
5785 multi-arching.
5786
02f0d45d
DJ
57872002-07-10 Daniel Jacobowitz <drow@mvista.com>
5788
5789 * valops.c (find_overload_match): Free oload_syms.
5790
f15f768e
JB
57912002-07-09 Joel Brobecker <brobecker@gnat.com>
5792
5793 Define HAVE_SYS_PROC_H if sys/proc.h exists
5794 * configure.in: Add check for sys/proc.h
5795 * config.in: Regenerate.
5796 * configure: Regenerate.
5797
902a7139
GS
57982002-07-09 Grace Sainsbury <graces@redhat.com>
5799
5800 * config/m68k/tm-m68k.h: Remove macros wrapped in
5801 #if !GDB_MULTI_ARCH.
5802
a534e424
AC
58032002-07-08 Andrew Cagney <ac131313@redhat.com>
5804
5805 * config.in, configure: Regenerate.
5806
9b94f7bf
MK
58072002-07-08 Mark Kettenis <kettenis@gnu.org>
5808
5809 * dwarf2cfi.c: Include "gcore.h".
5810 (execute_stack_op): Fix implementation of the
5811 DW_OP_deref and DW_OP_deref_size operators by letting do their
5812 lookup in the target.
5813
1d34db41
MK
58142002-07-07 Mark Kettenis <kettenis@gnu.org>
5815
5816 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5817 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5818 tdep->sc_sp_offset.
5819
79d5b63a
DJ
58202002-07-05 Daniel Jacobowitz <drow@mvista.com>
5821
5822 Fix PR gdb/595, gdb/602
5823 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5824 Don't call value_cast, just read the vtable pointer; update comments
5825 to match.
5826
3bb912e8
GS
58272002-07-05 Grace Sainsbury <graces@redhat.com>
5828
5829 * config/mcore/tm-mcore.h: Remove file.
5830 * config/mcore/mcore.mt: Remove definition of TM_FILE
5831 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5832
ca39387d
MK
58332002-07-05 Mark Kettenis <kettenis@gnu.org>
5834
5835 * i386bsd-tdep.c: Include "gdb_string.h".
5836
efdc1108
GS
58372002-07-04 Grace Sainsbury <graces@redhat.com>
5838
5839 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5840 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5841 mcore-tdep.
5842 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5843 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5844 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5845 (RETVAL_REGNUM): Move macros from tm-mcore.h
5846 (mcore_reg_struct_has_addr): New function.
5847 (mcore_gdbarch_init): Added initializations for the macros removed
5848 from tm-mcore.h.
5849
bb21884d
MK
58502002-07-04 Mark Kettenis <kettenis@gnu.org>
5851
5852 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5853 traditonal string branding within the ELF header.
5854
228c6d41
DJ
58552002-07-04 Daniel Jacobowitz <drow@mvista.com>
5856
5857 * symtab.c (remove_params): New function.
5858 (make_symbol_overload_list): Use it instead of cplus_demangle.
5859 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5860
2404952e
MK
58612002-07-04 Mark Kettenis <kettenis@gnu.org>
5862
e5e4acad
MK
5863 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5864
baadce09
MK
5865 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5866 New variables.
5867 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5868 and tdep->sigtramp_end.
5869 * i386obsd-nat.c: New file.
5870 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5871
2404952e
MK
5872 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5873 Don't call get_current_frame().
5874
9b4f1ba7
PM
58752002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5876
5877 * i386-nat.c (child_post_startup_inferior): New function
5878 calling i386_cleanup_dregs if
5879 I386_USE_GENERIC_WATCHPOINTS is defined.
5880 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5881 conditional to acknowledge that i386-nat.c has its
5882 own child_post_startup_inferior function.
5883
c0d1d883
MK
58842002-07-04 Mark Kettenis <kettenis@gnu.org>
5885
00f8375e
MK
5886 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5887 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5888 instead of MAX_REGISTER_RAW_SIZE.
5889 (i386_extract_return_value, i386_extract_struct_value_address):
5890 Convert to use regcache.
5891 (i386_gdbarch_init): Set max_register_raw_size and
5892 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5893 Set extract_return_value and extract_struct_value_address instead
5894 of their deprecated variants.
5895
c0d1d883
MK
5896 Convert i386 target to generic dummy frames.
5897 * i386-tdep.c: Include "symfile.h".
5898 (i386_frameless_signal_p): Consider a function to be frameless if
5899 the pc points at the first instruction of the function.
5900 (i386_frame_chain): Handle (generic) call dummies.
5901 (i386_frame_saved_pc): Likewise.
5902 (i386_frame_init_saved_regs): Remove code dealing with call
5903 dummies on the stack.
5904 (i386_push_dummy_frame): Removed.
5905 (i386_call_dummy_words): Removed.
5906 (i386_fix_call_dummy): Removed.
5907 (i386_push_return_address): New function.
5908 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5909 parameter, and don't call get_current_frame.
5910 (i386_pop_frame): New function.
5911 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5912 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5913 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5914 call_dummy_length to 0, set call_dummy_words to NULL, set
5915 sizeof_call_dummy_words to 0, set fix_call_dummy to
5916 generic_fix_call_dummy, set pc_in_call_dummy to
5917 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5918 generic_push_dummy_frame, set push_return_address to
5919 i386_push_return_address and set frame_chain_valid to
5920 generic_file_frame_chain_valid.
5921
049ee0e4
AC
59222002-07-03 Andrew Cagney <ac131313@redhat.com>
5923
5924 * gdbarch.sh (struct regcache): Add opaque declaration.
5925 (EXTRACT_RETURN_VALUE): New architecture method.
5926 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5927 * gdbarch.h, gdbarch.c: Regenerate.
5928 * arch-utils.c (legacy_extract_return_value): New function.
5929 * arch-utils.h (legacy_extract_return_value): Declare.
5930 * values.c (value_being_returned): Re-enable code handling
5931 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5932 deprecated_grub_regcache_for_registers call to block handling
5933 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5934 (EXTRACT_RETURN_VALUE): Do not define.
5935
4e0d9804
GS
59362002-07-03 Grace Sainsbury <graces@redhat.com>
5937
5938 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5939 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5940 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5941 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5942 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5943 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5944 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5945 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5946 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
5947 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
5948 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
5949 argument so the function fits the prototype in the architecture
5950 vector.
5951 (mcore_pop_frame): Remove argument so the function fits the
5952 prototype. Use get_current_frame instead of the argument.
5953 (mcore_push_arguments): Change type of struct_return so the
5954 function can be used in the architecture vector.
5955 (mcore_store_struct_return): Add.
5956 (mcore_frame_init_saved_regs): Add.
5957 (mcore_gdbarch_init): Add function calls to replace the macros
5958 removed from tm-mcore.h
5959
36160dc4
AC
59602002-07-03 Andrew Cagney <ac131313@redhat.com>
5961
5962 * infcmd.c (print_return_value): Remove compatibility code calling
5963 deprecated_grub_regcache_for_registers.
5964
5965 * values.c: Include "regcache.h".
5966 (value_being_returned): Update. Use
5967 deprecated_grub_regcache_for_registers to extract the register
5968 buffer address.
5969 * value.h (value_being_returned): Change ``retbuf'' parameter to a
5970 ``struct regcache''.
5971 * Makefile.in (values.o): Add dependency on $(regcache_h).
5972
5973 * inferior.h (run_stack_dummy): Change type of second parameter to
5974 a ``struct regcache''.
5975 * valops.c (hand_function_call): Change type of retbuf to ``struct
5976 regcache''. Allocate using regcache_xmalloc, clean using
5977 make_cleanup_regcache_xfree.
5978 * infcmd.c (run_stack_dummy): Update. Use
5979 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
5980
5981 * regcache.c (do_regcache_xfree): New function.
5982 (make_cleanup_regcache_xfree): New function.
5983 * regcache.h (make_cleanup_regcache_xfree): Declare.
5984
e64d9b3d
MH
59852002-07-03 Martin M. Hunt <hunt@redhat.com>
5986
4dd79c29
MH
5987 * event-top.c (command_line_handler): Don't read past
5988 beginning of buffer.
e64d9b3d 5989
4dd79c29
MH
59902002-07-03 Martin M. Hunt <hunt@redhat.com>
5991
e64d9b3d
MH
5992 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
5993 struct frame_id.
5994 (varobj_create): Store frame_id for root.
5995 (varobj_gen_name): Use xasprintf.
5996 (varobj_update): Save and restore frame using get_frame_id() and
5997 frame_find_by_id().
5998 (create_child): Use xasprintf.
5999 (new_root_variable): Initialize frame_id.
6000 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6001 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6002 to prevent memory leak.
6003
26e6c56a
AC
60042002-07-03 Andrew Cagney <ac131313@redhat.com>
6005
6006 * valops.c (hand_function_call): Move declaration of retbuf to
6007 start of function, allocate using malloc, add a cleanup but before
6008 the inf_status cleanup, cleanup the buffer. Rename local variable
6009 old_chain to inf_status_cleanup.
6010
f436dd25
MH
60112002-07-03 Martin M. Hunt <hunt@redhat.com>
6012
6013 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6014
6015 * cli/cli-decode.c (cmd_func_p): New function.
6016 (cmd_func): New function.
6017
6018 * command.h: Add cmd_func() and cmd_func_p().
6019
4cfe2084
GS
60202002-07-03 Grace Sainsbury <graces@redhat.com>
6021
6022 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6023 (REGISTER_SIZE): Remove.
6024 (MAX_REGISTER_RAW_SIZE): Remove.
6025 (REGISTER_VIRTUAL_TYPE): Remove.
6026 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6027 (REGISTER_NAME): Remove.
6028 (USE_GENERIC_DUMMY_FRAMES): Remove.
6029 (CALL_DUMMY): Remove.
6030 (CALL_DUMMY_START_OFFSET): Remove.
6031 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6032 (CALL_DUMMY_LOCATION): Remove.
6033 (FIX_CALL_DUMMY): Remove.
6034 (CALL_DUMMY_ADDRESS): Remove.
6035 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6036 (SAVE_DUMMY_FRAME_TOS): Remove.
6037 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6038 (mcore_register_virtual_type): New function.
6039 (mcore_register_byte): New function.
6040 (mcore_register_size): New function.
6041 (mcore_register_name): New function.
6042 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6043 macros removed from tm-mcore.h.
6044 (mcore_dump_tdep): Add.
6045 (_initialize_mcore_tdep): Add gdbarch_register call.
6046
4fd667e9
MK
60472002-07-03 Mark Kettenis <kettenis@gnu.org>
6048
6049 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6050 frameless_look_for_prologue, such that we actually call this
6051 function.
6052
42f99ac2
JB
60532002-07-02 Joel Brobecker <brobecker@gnat.com>
6054
6055 * frame.h (frame_address_in_block): New function.
6056
6057 * blockframe.c (frame_address_in_block): New function extracted
6058 from get_frame_block().
6059 (get_frame_block): Use frame_address_in_block().
6060 (block_innermost_frame): Use frame_address_in_block() to match
6061 the frame pc address against the block boundaries rather than
6062 the frame pc directly. This prevents a failure when a frame pc
6063 is actually a return-address pointing immediately after the end
6064 of the given block.
6065
103a1597 60662002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6067
6068 * MAINTAINERS: Add self under write after approval.
6069
60702002-07-02 Grace Sainsbury <graces@redhat.com>
6071
103a1597
GS
6072 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6073 used in architecture vector. The default is
6074 m68k_local_breakpoint_from_pc.
6075 (m68k_local_breakpoint_from_pc): Add.
6076 (enum): Add register numbers from tm-m68k.h.
6077 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6078 vector.
6079 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6080 GDB_MULTI_ARCH_PARTIAL.
6081 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6082 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6083 m68k-tdep.c.
6084 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6085 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6086 to enum in m68k-tdep.c
6087
7a5a0534
JB
60882002-07-02 Joel Brobecker <brobecker@gnat.com>
6089
6090 * solib-osf.c (open_map): Compute the list of shared libraries
6091 loaded by the inferior, rather than the list of libraries loaded
6092 by GDB itself. Otherwise, GDB ends up reading the symbols from
6093 the wrong shared libraries...
6094
6f558d74
MK
60952002-07-02 Mark Kettenis <kettenis@gnu.org>
6096
b7d15bf7
MK
6097 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6098 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6099 macros.
6100 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6101 Remove functions.
6102 (FRAMELESS_SIGNAL): Remove function.
6103 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6104 i386_linux_saved_pc_after_call): Removed.
6105 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6106 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6107 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6108
6bff26de
MK
6109 * i386-tdep.c (i386_frameless_signal_p): New function.
6110 (i386_frame_chain): Deal with frameless signals.
6111 (i386_sigtramp_saved_sp): New function.
6112 (i386_frame_saved_pc): Deal with frameless signals.
6113 (i386_saved_pc_after_call): Make sure the correct value is
6114 returned just after entry into a sigtramp.
6115 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6116 i386fbsd4_sc_sp_offset): New variables.
6117 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6118 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6119 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6120 similiar to what we already did for sc_pc_offset.
6121 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6122 tdep->sc_sp_offset.
6123
6f558d74
MK
6124 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6125
145564b7
ML
61262002-07-02 Michal Ludvig <mludvig@suse.cz>
6127
6128 * config/i386/tm-x86-64linux.h: New.
6129 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6130 definitions.
6131 * config/i386/nm-x86-64.h: Rename to ...
6132 * config/i386/nm-x86-64linux.h: ... this one.
6133 * config/i386/x86-64linux.mh: Reflect the above change.
6134
3a1e71e3
MK
61352002-07-01 Mark Kettenis <kettenis@gnu.org>
6136
21d0e8a4
MK
6137 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6138 with sigcontext_addr. Add sc_sp_offset.
6139 (i386bsd_sigtramp_saved_pc): Remove prototype.
6140 (i386bsd_sicontext_addr): Add prototype.
6141 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6142 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6143 (i386_svr4_sigtramp_saved_pc): Removed.
6144 (i386_svr4_sigcontext_addr): New function.
6145 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6146 Initialize tdep->sigcontext_addr instead. Initialize
6147 tdep->sc_pc_offset and tdep->sc_sp_offset.
6148 (i386_gdbarch_init): Likewise.
6149 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6150 any more.
6151 (i386bsd_sigtramp_saved_pc): Remove function.
6152 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6153 Initialize tdep->sigcontext_addr instead. Initialize
6154 tdep->sc_pc_offset.
6155 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6156 of tdep->sigtramp_saved_pc.
6157 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6158 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6159 instead.
6160
3a1e71e3
MK
6161 * i386-tdep.c (i386_frameless_function_invocation,
6162 i386_frame_num_args, i386_frame_init_saved_regs,
6163 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6164 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6165 i386_extract_return_value, i386_store_return_value,
6166 i386_extract_struct_value_address, i386_register_virtual_type,
6167 i386_register_convertible, i386_register_convert_to_virtual,
6168 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6169 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6170 static.
6171
52e9098c
MK
61722002-07-01 Mark Kettenis <kettenis@gnu.org>
6173
77b13a25
MK
6174 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6175
52e9098c
MK
6176 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6177 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6178 this macro. Include "value.h".
6179
1b372fff
AS
61802002-06-30 Aidan Skinner <aidan@velvet.net>
6181
6182 * ada-exp.tab.c: remove as it's a generated file
6183 * ada-lex.c: remove as it's a generated file
6184
9c5045b5
MK
61852002-06-30 Mark Kettenis <kettenis@gnu.org>
6186
4a93c5bb
MK
6187 * config/i386/tm-i386.h (struct frame_info, struct
6188 frame_saved_regs, struct value, struct type): Remove forward
6189 declarations.
6190
322d4fe0
MK
6191 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6192 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6193 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6194 (FILL_FPXREGSET): Define.
6195
fdd8263d
MK
6196 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6197
482e577b
MK
6198 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6199 i[3456]86-*-netbsd* case.
6200 * config/i386/tm-obsd.h: Removed.
6201 * config/i386/obsd.mt: Removed.
6202 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6203 core-aout.o.
6204 (MH_CFLAGS): Add -DYYDEBUG=0.
6205
6916549a
MK
6206 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6207 i386nbsd_sc_pc_offset on OpenBSD too.
6208
9c5045b5
MK
6209 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6210 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6211 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6212 define.
6213 * i386bsd-tdep.c: Include "arch-utils.h".
6214 (i386bsd_aout_in_solib_call_trampoline): New function.
6215 (i386bsd_init_abi): Set in_solib_call_trampoline to
6216 i386bsd_aout_in_solib_call_trampoline.
6217 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6218 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6219
aa84d1bb
AC
62202002-06-28 Andrew Cagney <ac131313@redhat.com>
6221
6222 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6223 (struct obstack, struct bcache): Add opaque declarations.
6224 * Makefile.in (macrotab_h): Update
6225
b4d83933
AC
62262002-06-28 Andrew Cagney <ac131313@redhat.com>
6227
6228 * blockframe.c (generic_find_dummy_frame): Change return type to
6229 ``struct regcache''.
6230 (struct dummy_frame): Replace field ``registers'' with regcache, a
6231 struct regcache object.
6232 (generic_find_dummy_frame): Update.
6233 (generic_push_dummy_frame): Update. Use regcache_xfree,
6234 regcache_xmalloc and regcache_cpy.
6235 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6236 regcache_xfree.
6237 (deprecated_generic_find_dummy_frame): Update.
6238 (generic_read_register_dummy): Update. Use
6239 regcache_read_as_address.
6240 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6241 (generic_get_saved_register): Update. Use regcache_read.
6242
08c0b5bc
AC
62432002-06-28 Andrew Cagney <ac131313@redhat.com>
6244
6245 * Makefile.in (objfiles_h): Add $(bcache_h).
6246 * objfiles.h: Include "bcache.h".
6247
6248 * Makefile.in (symtab_h): Remove $(bcache_h).
6249 * symtab.h: Do not include "bcache.h".
6250
1f89801a
AC
62512002-06-28 Andrew Cagney <ac131313@redhat.com>
6252
6253 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6254 generic_func_frame_chain_valid.
6255
b9644b58
DB
62562002-06-28 David O'Brien <obrien@FreeBSD.org>
6257
6258 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6259 * config/i386/tm-fbsd.h: Likewise.
6260
dd486634
AC
62612002-06-28 Andrew Cagney <ac131313@redhat.com>
6262
6263 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6264 generic_unwind_get_saved_register.
6265
0b434a00
AC
62662002-06-27 Andrew Cagney <ac131313@redhat.com>
6267
6268 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6269 * regcache.c (supply_register): Add missing argument to
6270 register_buffer call.
6271
f30e5a77
AC
62722002-06-27 Andrew Cagney <ac131313@redhat.com>
6273
6274 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6275 Solaris /bin/grep does not not like it. From Peter Schauer.
6276
9f064c95
TT
62772002-06-26 Tom Tromey <tromey@redhat.com>
6278
6279 * command.h (add_setshow_cmd): Declare.
6280 (add_setshow_cmd_full): Declare.
6281 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6282 returns void. Use add_setshow_cmd_full.
6283 (add_setshow_cmd_full): New function.
6284 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6285 (add_setshow_boolean_cmd): Likewise.
6286
099c7589
JT
62872002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6288
6289 * config/vax/tm-vax.h: Protect from multiple inclusion.
6290 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6291 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6292 * config/vax/tm-vaxbsd.h: ...here. New file.
6293 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6294
1d049c5e
JT
62952002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6296
6297 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6298 (BELIEVE_PCC_PROMOTION): Remove.
6299 (AP_REGNUM): Move to...
6300 * config/vax/nm-vax.h: ...here.
6301 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6302 (vax_breakpoint_from_pc): New function.
6303 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6304 and gdbarch_believe_pcc_promotion.
6305
4791e091
JT
63062002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6307
6308 * Makefile.in (vax_tdep_h): Define.
6309 (vax-tdep.o): Use $(vax_tdep_h).
6310 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6311 (vax_dump_tdep): New function.
6312 (_initialize_vax_tdep): Register vax_dump_tdep.
6313 * vax-tdep.h: Include osabi.h.
6314 (struct gdbarch_tdep): New.
6315
da130f98
AC
63162002-06-26 Andrew Cagney <cagney@redhat.com>
6317
6318 * frame.h (deprecated_generic_find_dummy_frame): Rename
6319 generic_find_dummy_frame.
6320 * blockframe.c (generic_find_dummy_frame): Make static.
6321 (deprecated_generic_find_dummy_frame): New function.
6322 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6323 generic_find_dummy_frame with deprecated_find_dummy_frame.
6324 (sh64_nofp_frame_init_saved_regs): Ditto.
6325 (sh_fp_frame_init_saved_regs): Ditto.
6326 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6327 (s390_frame_chain): Ditto.
6328 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6329
6300c360
GS
63302002-06-26 Grace Sainsbury <graces@redhat.com>
6331
6332 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6333 gdbarch vector are at the top.
6334 (NUM_REGS): Remove.
6335 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6336 (FRAME_ARGS_ADDRESS): Remove.
6337 (FRAME_LOCALS_ADDRESS): Remove.
6338 (FRAME_NUM_ARGS): Remove.
6339 (FRAME_ARGS_SKIP): Remove.
6340 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6341 (m68k_gdbarch_init): Add gdbarch initializations for macros
6342 undefined in tm-m68k.h
6343
1c617db8
GS
63442002-06-26 Grace Sainsbury <graces@redhat.com>
6345
6346 * monitor.h: Add the function regname to monitor_ops
6347 structure. This way NUM_REGS does not have to be a constant.
6348 * monitor.c (monitor_fetch_register): Added support for regname
6349 function. The function is called if the array regnames is NULL.
6350 (monitor_store_register): Same.
da130f98
AC
6351 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6352 regnames array.
1c617db8
GS
6353 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6354 cpu32bug_cmds.regname to point to new function.
6355 * abug-rom.c (abug_regname): Same as above.
6356 (init_abug_cmds): Same.
6357 * dbug-rom.c (dbug_regname): Same as above.
6358 (init_dbug_cmds): Same.
6359 * remote-est.c (est_regname): Same.
6360 (init_est_cmds): Same.
6361 * rom68k-rom.c (rom68k_regname): Same.
6362 (init_rom68k_cmds): Same.
6363
ea9365bb
TT
63642002-06-25 Tom Tromey <tromey@redhat.com>
6365
6366 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6367
72cec141
AC
63682002-06-25 Andrew Cagney <cagney@redhat.com>
6369
6370 * infrun.c (stop_registers): Change variable's type to ``struct
6371 regcache'''.
6372 (xmalloc_inferior_status): Delete function.
6373 (free_inferior_status): Delete function.
6374 (normal_stop): Use regcache_cpy.
6375 (struct inferior_status): Change type of fields ``stop_registers''
6376 and ``registers'' to ``struct regcache''.
6377 (write_inferior_status_register): Use regcache_write.
6378 (save_inferior_status): Instead of calling
6379 xmalloc_inferior_status, allocate the inf_status buffer directly.
6380 Use regcache_dup_no_passthrough and regcache_dup to save the
6381 buffers.
6382 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6383 Replace the stop_registers regcache instead of overriding it. Use
6384 regcache_xfree. Instead of calling free_inferior_status, xfree
6385 the buffer directly.
6386 (discard_inferior_status): Use regcache_xfree. Instead of calling
6387 free_inferior_status, xfree the buffer directly.
6388 (build_infrun): Use regcache_xmalloc.
6389 (_initialize_infrun): Delete redundant call to build_infrun.
6390
6391 * Makefile.in (infcmd.o): Add $(regcache_h).
6392
6393 * infcmd.c: Include "regcache.h".
6394 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6395 obtain the address of `stop_registers' register buffer.
6396 (print_return_value): Ditto.
6397
6398 * inferior.h (struct regcache): Add opaque declaration.
6399 (stop_registers): Change variable's declared type to ``struct
6400 regcache''.
6401
defc6f8c
TT
64022002-06-24 Tom Tromey <tromey@redhat.com>
6403
c0e624e7
TT
6404 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6405 * target.c (initialize_targets): Fixed typo in
6406 trust-readonly-sections `show' documentation.
6407
defc6f8c
TT
6408 * main.c: Marked all strings with _().
6409
2b236d82
DH
64102002-06-24 Don Howard <dhoward@redhat.com>
6411
6412 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6413 that means max CORE_ADDR+1.
6414 (lookup_mem_region): Ditto.
6415 (mem_info_command): Ditto.
6416
942dc0e9
GS
64172002-06-24 Grace Sainsbury <graces@redhat.com>
6418
6419 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6420 (REGISTER_BYTES_OK): Remove.
6421 (REGISTER_BYTES): Remove.
6422 (STORE_STRUCT_RETURN): Remove.
6423 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6424 (STORE_RETURN_VALUE): Remove.
6425 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6426 (FRAME_CHAIN): Remove.
6427 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6428 (FRAME_SAVED_PC): Remove.
6429 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6430 (m68k_store_struct_return): Add.
6431 (m68k_deprecated_extract_return_value): Add.
6432 (m68k_deprecated_extract_struct_value_address): Add.
6433 (m68k_store_return_value): Add.
6434 (m68k_frame_chain): Add.
6435 (m68k_frameless_function_invocation): Add.
6436 (m68k_frame_saved_pc): Add.
6437 (m68k_gdbarch_init): added set_gdbarch calls for new
6438 functions and deleted macros.
6439
03c30d4d
TT
64402002-06-23 Tom Tromey <tromey@redhat.com>
6441
6442 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6443 (ALLDEPFILES): Likewise.
6444 (udiheaders): Removed.
6445 (udip2soc.o): Likewise.
6446 (udi2go32.o): Likewise.
6447 (udr.o): Likewise.
6448 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6449
37e71372
AC
64502002-06-22 Andrew Cagney <ac131313@redhat.com>
6451
06a6ac57
AC
6452 * infrun.c (_initialize_infrun): Delete unnecessary call to
6453 build_infrun.
6454
37e71372
AC
6455 * regcache.h: Update comments describing the regcache_cpy family
6456 of functions.
6457 (regcache_save, regcache_restore): Delete declaration.
6458 (regcache_save_no_passthrough): Delete declaration.
6459 (regcache_restore_no_passthrough): Delete declaration.
6460 * regcache.c (regcache_save): Delete function.
6461 (regcache_save_no_passthrough): Delete function.
6462 (regcache_restore): Delete function.
6463 (regcache_restore_no_passthrough): Delete function.
6464
78f6d055
AC
64652002-06-21 Andrew Cagney <ac131313@redhat.com>
6466
6467 * config/m68k/tm-m68k.h: Fix typo.
6468 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6469 (m68k_frame_init_saved_regs): Declare.
6470
78b119cb
JB
64712002-06-21 Jim Blandy <jimb@redhat.com>
6472
6473 Remove some vestiges of Harris 88k support.
6474 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6475 register numbering quirk.
6476 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6477 odd symbols occurring in Harris 88k ELF targets.
6478
0fbb3da7
TT
64792002-06-21 Tom Tromey <tromey@redhat.com>
6480
6481 * gdb_locale.h: New file.
6482 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6483 (defs_h): Added gdb_locale.h.
6484 * configure, config.in: Rebuilt.
6485 * configure.in (PACKAGE): Define.
6486 * defs.h: Include gdb_locale.h.
6487 * main.c (captured_main): Call setlocale, bindtextdomain,
6488 textdomain.
6489
456f8b9d
DB
64902002-06-21 Dave Brolley <brolley@redhat.com>
6491
6492 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6493 * config/frv/frv.mt: New file.
6494 * config/frv/tm-frv.h: New file.
6495 * configure.tgt: Support frv-*-*.
6496 * Makefile.in (frv-tdep.o): New target.
6497 * frv-tdep.c: New file.
6498 * NEWS: Mention frv.
6499
cdd463f9
DB
65002002-06-21 Dave Brolley <brolley@redhat.com>
6501
6502 * MAINTAINERS: Add self to "Write After Approval" list.
6503
5d3ed2e3
GS
65042002-06-21 Grace Sainsbury <graces@redhat.com>
6505
6506 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6507 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6508 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6509 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6510 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6511
6512 * m68k-tdep.c: Include arch-utils.h
6513 (m68k_register_raw_size): Add.
6514 (m68k_register_virtual_size): Add.
6515 (m68k_register_virtual_type): Add.
6516 (m68k_register_name): Add.
6517 (m68k_stack_align): Add.
6518 (m68k_register_byte): Add.
6519 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6520 tm-m68k.h.
6521
7f8e7424
GS
65222002-06-21 Grace Sainsbury <graces@redhat.com>
6523
a2c6a6d5 6524 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6525 m68k_find_saved_regs.
6526 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6527 references to it with frame->saved_regs.
7f8e7424
GS
6528 (m68k_gdbarch_init): Added function calls to initialize the
6529 gdbarch structure.
a2c6a6d5
GS
6530 (m68k_fix_call_dummy): Add.
6531 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6532 (CALL_DUMMY): Remove.
6533 (CALL_DUMMY_LENGTH): Remove.
6534 (CALL_DUMMY_START_OFFSET): Remove.
6535 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6536 (FIX_CALL_DUMMY): Remove.
6537 (PUSH_DUMMY_FRAME): Remove.
6538 (POP_FRAME): Remove.
7f8e7424 6539
f461f5cf
PM
65402002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6541
6542 * parse.c (parse_fprintf): New function used to avoid calls to
6543 fprintf in bison parser generated debug code.
6544 * parser-defs.h: Declaration of new parse_fprintf function.
6545 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6546 Set YYDEBUG to 1 by default.
6547 Set YYFPRINTF as parse_fprintf.
6548
7f0c12ed
ML
65492002-06-21 Michal Ludvig <mludvig@suse.cz>
6550
6551 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6552 encoding anymore.
6553 (pointer_encoding, enum ptr_encoding): New.
6554 (execute_cfa_program): Take care about pointer encoding.
6555 (dwarf2_build_frame_info): Only call parse_frame_info for
6556 .debug_frame and .eh_frame.
6557 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6558 fixed augmentation handling, added relative addressing,
6559 ignore duplicate FDEs. Added comments.
19d833a2 6560 * dwarf2cfi.c: Reindented.
7f0c12ed 6561
87c4a039
EZ
65622002-06-20 Elena Zannoni <ezannoni@redhat.com>
6563
6564 * event-top.c (command_handler): Don't use space_at_cmd_start
6565 unless there is sbrk() on the host. Assign time and space data
6566 to union fields of the appropriate length.
6567
1cf877ad
ML
65682002-06-20 Michal Ludvig <mludvig@suse.cz>
6569
6570 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6571 x86_64_register_name. Return type changed to 'const char *'.
6572 (x86_64_register_name2nr): Rename to x86_64_register_number.
6573 (x86_64_gdbarch_init): Update to reflect the change.
6574 * x86-64-tdep.h: Ditto.
6575 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6576 (supply_fpregset): Ditto.
6577
3fadccb3
AC
65782002-06-19 Andrew Cagney <cagney@redhat.com>
6579
6580 * regcache.h: Update copyright.
6581 (struct regcache, struct gdbarch): Add opaque declarations.
6582 (current_regcache): Declare global variable.
6583 (regcache_read, regcache_write): Add gdbarch parameter.
6584 (regcache_save, regcache_save_no_passthrough)
6585 (regcache_restore, regcache_restore_no_passthrough)
6586 (regcache_dup, regcache_dup_no_passthrough)
6587 (regcache_cpy, regcache_cpy_no_passthrough)
6588 (deprecated_grub_regcache_for_registers)
6589 (deprecated_grub_regcache_for_register_valid)
6590 (regcache_valid_p): Add function declarations.
6591
6592 * regcache.c: Update copyright.
6593 (regcache_descr_handle): New global variable.
6594 (struct regcache_descr): Define.
6595 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6596 (regcache_descr, xfree_regcache_descr): New functions.
6597 (struct regcache): Define.
6598 (regcache_xmalloc, regcache_xfree): New functions.
6599 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6600 (regcache_dup, regcache_dup_no_passthrough): New functions.
6601 (regcache_valid_p, regcache_read_as_address): New functions.
6602 (deprecated_grub_regcache_for_registers): New function.
6603 (deprecated_grub_regcache_for_register_valid): New function.
6604 (current_regcache): New global variable.
6605 (register_buffer): Add regcache parameter. Update calls.
6606 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6607 (read_register_gen, write_register_gen): Update register_buffer
6608 call. Test for legacy_p instead of gdbarch_register_read_p or
6609 gdbarch_register_write_p.
6610 (regcache_collect): Update register_buffer call.
6611 (build_regcache): Rewrite. Use deprecated grub functions.
6612 (regcache_save, regcache_save_no_passthrough): New functions.
6613 (regcache_restore, regcache_restore_no_passthrough): New
6614 functions.
6615 (_initialize_regcache): Create the regcache_data_handle. Swap
6616 current_regcache global variable.
6617
6618 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6619 parameter to regcache_read and regcache_write calls.
6620 (sh4_register_read): Ditto.
6621 (sh64_pseudo_register_read): Ditto.
6622 (sh64_register_read): Ditto.
6623 (sh_pseudo_register_write): Ditto.
6624 (sh4_register_write): Ditto.
6625 (sh64_pseudo_register_write): Ditto.
6626 (sh64_register_write): Ditto.
6627
6628 * defs.h (XCALLOC): Define.
6629
152d9db6
GS
66302002-06-19 Grace Sainsbury <graces@redhat.com>
6631
6632 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6633 * m68k-tdep.c (m68k_gdbarch_init): Added.
6634 (m68k_dump_tdep): Added.
6635
170911c7
DJ
66362002-06-19 Daniel Jacobowitz <drow@mvista.com>
6637
6638 * ada-lang.c (fill_in_ada_prototype): Update comment.
6639
2e4ebe70
DJ
66402002-06-19 Daniel Jacobowitz <drow@mvista.com>
6641
6642 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6643 MIPS_ABI_LAST.
6644 (mips_abi_string, mips_abi_strings): New.
6645 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6646 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6647 tdep->mips_abi_string. Honor mips_abi_string. Default to
6648 O32 if no ABI is found.
6649 (mips_dump_tdep): Use mips_abi_strings.
6650 (mips_abi_update): New function.
6651 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6652 ``set mips abi'' and ``show mips abi''. Check the size of
6653 mips_abi_strings.
6654
16775908
AC
66552002-06-19 Andrew Cagney <cagney@redhat.com>
6656
6657 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6658 constant.
6659
5051bfa4 66602002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6661
5051bfa4
JB
6662 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6663 current frame using only the first stack size adjustment. All
6664 subsequent size adjustments are not considered to be part of
6665 the "static" part of the current frame.
6666 Compute the address of the saved registers relative to the
6667 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6668 in use in this frame.
6669
56468235
DH
66702002-06-18 Don Howard <dhoward@redhat.com>
6671
6672 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6673 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6674 suggesting this solution.
6675
0b624158
AC
66762002-06-18 Andrew Cagney <ac131313@redhat.com>
6677
6678 * config/romp/xm-rtbsd.h: Delete file.
6679 * config/romp/rtbsd.mh: Delete file.
6680
221ea385
KS
66812002-06-18 Keith Seitz <keiths@redhat.com>
6682
6683 * breakpoint.c (condition_command): Post breakpoint_modify
6684 when a condition is added to an existing breakpoint.
6685 (commands_command): Likewise for commands.
6686 (set_ignore_count): Likewise for ignore counts.
6687 If no tty, do not simply return, still need to send event
6688 notification.
6689 (ignore_command): Only print a newline if the command came
6690 from a tty.
6691 Don't call breakpoints_changed, since this is now properly
6692 handled by set_ignore_count.
6693
5402eed1
AC
66942002-06-18 Andrew Cagney <cagney@redhat.com>
6695
6696 * MAINTAINERS: Note that cris-elf target can be compiled with
6697 -Werror.
6698 * cris-tdep.c (cris_register_name): Make return type constant.
6699 (cris_breakpoint_from_pc): Ditto.
6700
cc22880b
ML
67012002-06-18 Michal Ludvig <mludvig@suse.cz>
6702
6703 * frame.h (struct frame_info): Change type of context to
6704 'struct context'.
6705
fa88f677
AC
67062002-06-17 Andrew Cagney <cagney@redhat.com>
6707
6708 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6709 pointer.
6710 * gdbarch.h, gdbarch.c: Regenerate.
6711 * config/mips/tm-mips.h (mips_register_name): Update.
6712 * i386-tdep.h (i386_register_name): Update.
6713 * mips-tdep.c (mips_register_name): Update
6714 * alpha-tdep.c (alpha_register_name): Update.
6715 * arch-utils.c (legacy_register_name): Update.
6716 * arch-utils.h (legacy_register_name): Update.
6717 * avr-tdep.c (avr_register_name): Update.
6718 * ia64-tdep.c (ia64_register_name): Update.
6719 * i386-tdep.c (i386_register_name): Update.
6720 * sparc-tdep.c (sparc32_register_name): Update.
6721 (sparc64_register_name): Update.
6722 (sparclite_register_name): Update.
6723 (sparclet_register_name): Update.
6724 * sh-tdep.c (sh_generic_register_name): Update.
6725 (sh_sh_register_name): Update.
6726 (sh_sh3_register_name): Update.
6727 (sh_sh3e_register_name): Update.
6728 (sh_sh_dsp_register_name): Update.
6729 (sh_sh3_dsp_register_name): Update.
6730 (sh_sh4_register_name): Update.
6731 (sh_sh64_register_name): Update.
6732 * s390-tdep.c (s390_register_name): Update.
6733 * rs6000-tdep.c (rs6000_register_name): Update.
6734 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6735 (ns32k_register_name_32382): Update.
6736 * d10v-tdep.c (d10v_ts2_register_name): Update.
6737 (d10v_ts3_register_name): Update.
6738 * xstormy16-tdep.c (xstormy16_register_name): Update.
6739 * vax-tdep.c (vax_register_name): Update.
6740 * v850-tdep.c (v850_register_name): Update.
6741 * m68hc11-tdep.c (m68hc11_register_name): Update.
6742 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6743 (am33_register_name): Update.
6744
ea1e7ef6
GS
67452002-06-17 Grace Sainsbury <graces@redhat.com>
6746
6747 * m68k-tdep.c: Reindented.
6748
9b02dd1b
AC
67492002-06-17 Andrew Cagney <ac131313@redhat.com>
6750
6751 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6752 list of predefined types.
6753
8758dec1
MK
67542002-06-16 Mark Kettenis <kettenis@gnu.org>
6755
b6197528
MK
6756 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6757 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6758 REGISTER_CONVERT_TO_RAW): Remove defines.
6759 (i386_register_virtual_type, i386_register_convertible,
6760 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6761 Remove prototypes.
6762 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6763 macros mentioned above.
6764
82b47e62
MK
6765 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6766 (i386lynx_saved_pc_after_call): Remove prototype.
6767 * i386ly-tdep.c: Include "i386-tdep.h".
6768 (i386lynx_saved_pc_after_call): Make static. Use
6769 read_memory_nobpt instead of read_memory. Use
6770 read_memory_unsigned_integer instead of read_memory_integer.
6771 (i386lynx_init_abi): New function.
6772 (i386lynx_coff_osabi_sniffer): New function.
6773 (_initialize_i386bsd_tdep): New function.
6774
8758dec1
MK
6775 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6776 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6777 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6778 (i386_fix_call_dummy): Remove prototype.
6779 * i386-tdep.c (i386_call_dummy_words): New variable.
6780 (i386_gdbarch_init): Adjust for removal of the
6781 macros mentioned above.
6782
e9e68a56
AC
67832002-06-15 Andrew Cagney <ac131313@redhat.com>
6784
6785 * command.h (add_setshow_auto_boolean_cmd): Replace
6786 add_set_auto_boolean_cmd.
6787 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6788 add_set_auto_boolean_cmd.
6789 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6790 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6791 mask-address'' command.
6792 (show_mask_address): Add cmd parameter.
6793 * remote.c (add_packet_config_cmd): Update. Change type of
6794 set_func and show_func to cmd_sfunc_ftype.
6795 (_initialize_remote): Update `set remote Z-packet'
6796 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6797 (show_remote_protocol_e_packet_cmd): Ditto.
6798 (show_remote_protocol_E_packet_cmd): Ditto.
6799 (show_remote_protocol_P_packet_cmd): Ditto.
6800 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6801 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6802 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6803 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6804 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6805 (show_remote_protocol_Z_packet_cmd): Ditto.
6806 (show_remote_protocol_binary_download_cmd): Ditto.
6807 (show_remote_cmd): Pass NULL to all of above.
6808
fc08ec52
MK
68092002-06-15 Mark Kettenis <kettenis@gnu.org>
6810
6811 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6812 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6813 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6814 POP_FRAME): Remove defines.
6815 (i386_push_arguments, i386_store_struct_return,
6816 i386_extract_return_value, i386_store_return_value,
6817 i386_extract_struct_value_address, i386_push_dummy_frame,
6818 i386_pop_frame): Renove prototypes.
6819 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6820 macros mentioned above.
6821
e707bbc2
AC
68222002-06-15 Andrew Cagney <ac131313@redhat.com>
6823
6824 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6825 add_set_boolean_cmd.
6826 (add_setshow_cmd): New function.
6827 * command.h (add_setshow_boolean_cmd): Replace
6828 add_set_boolean_cmd.
6829 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6830 and ``set rdiromatzero''.
6831 * maint.c (_initialize_maint_cmds): Update commented out code.
6832 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6833 * target.c (initialize_targets): Update `set
6834 trust-readonly-sections'.
6835 * remote.c (_initialize_remote): Update `set remotebreak'.
6836
42fdc8df
MK
68372002-06-15 Mark Kettenis <kettenis@gnu.org>
6838
93924b6b
MK
6839 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6840 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6841 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6842 fit into multi-arch framework.
6843 (i386_breakpoint_from_pc): New function.
6844 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6845 above.
6846
42fdc8df
MK
6847 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6848 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6849 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6850 (i386_frameless_function_invocation, i386_frame_num_args,
6851 i386_frame_init_saved_regs): Remove prototypes.
6852 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6853 macros mentioned above.
6854
9773a94b
AC
68552002-06-15 Andrew Cagney <ac131313@redhat.com>
6856
6857 * cli/cli-decode.c (set_cmd_cfunc): Update.
6858 (set_cmd_sfunc): Update.
6859 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6860 (set_cmd_sfunc, set_cmd_cfunc): Update.
6861 * cli/cli-decode.h: Update.
6862
6e157172
MK
68632002-06-15 Mark Kettenis <kettenis@gnu.org>
6864
6865 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6866 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6867
7f19b9a2
AC
68682002-06-15 Andrew Cagney <ac131313@redhat.com>
6869
6870 * defs.h (auto_boolean): Declare enum.
6871 * command.h (cmd_auto_boolean): Delete enum.
6872 * mips-tdep.c (mask_address_var): Update.
6873 (mips_mask_address_p): Update.
6874 (show_mask_address): Update.
6875 * remote.c (struct packet_config): Update.
6876 (update_packet_config): Update.
6877 (show_packet_config_cmd): Update.
6878 (packet_ok): Update.
6879 (add_packet_config_cmd): Update.
6880 (_initialize_remote):
6881 * command.h: Update.
6882 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6883 (do_setshow_command): Update.
6884 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6885 * cli/cli-decode.h: Update.
6886
1cf88de5
MK
68872002-06-15 Mark Kettenis <kettenis@gnu.org>
6888
22ba8cf2
MK
6889 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6890 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6891 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6892 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6893 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6894 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6895
762c5349
MK
6896 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6897 list of DJGPP COFF targets.
6898
091198bb
MK
6899 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6900 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6901 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6902 (FP0_REGNUM): Remove define.
6903 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6904 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6905 (i386_register_virtual_size): Remove protoype.
6906 * i386-tdep.c (i386_register_virtual_size): Removed.
6907 (i386_extract_return_value, i386_store_return_value): Use
6908 FP0_REGNUM instead of NUM_FREGS to determine whether the
6909 floating-point registers are available.
6910 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6911 Adjust for removal of macros mentioned above.
6912
69132002-06-15 Mark Kettenis <kettenis@gnu.org>
6914
fcc9bf01
MK
6915 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6916 comments.
6917 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6918 Remove prototypes.
6919 (supply_gregset, fill_gregset): Remove use of register keyword and
6920 remove declaration for regmap. Use I386_NUM_GREGS instead of
6921 NUM_REGS and NUM_FREGS.
6922 (FPREGSET_FSAVE_OFFSET): Remove.
6923 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6924 NUM_FREGS to determine whether the floating-point registers are
6925 available.
6926
65e78234
MK
6927 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6928 gnu_store_registers): Replace usage of NUM_GREGS with
6929 I386_NUM_GREGS.
6930
98df6387
MK
6931 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6932 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6933 usage of NUM_GREGS with I386_NUM_GREGS.
6934
099a9414
MK
6935 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6936
57976e88
MK
6937 * i386bsd-nat.c: Include "i386-tdep.h".
6938 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6939 I386_NUM_GREGS.
6940
b335f4a6
MK
6941 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6942 and associated comment. They no longer make any sense, since we
6943 don't use this file anymore on Linux.
6944
1cf88de5
MK
6945 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6946 * i386-tdep.c (i386_register_offset, i386_register_size): Use
6947 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
6948 elements in these arrays.
6949 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
6950 MAX_NUM_REGS.
6951
daa66587
MK
69522002-06-15 Mark Kettenis <kettenis@gnu.org>
6953
6954 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
6955 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
6956
26e9b323
AC
69572002-06-14 Andrew Cagney <cagney@redhat.com>
6958
6959 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
6960 EXTRACT_RETURN_VALUE.
6961 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
6962 EXTRACT_STRUCT_VALUE_ADDRESS.
6963 * gdbarch.h, gdbarch.c: Regenerate.
6964
6965 * values.c (value_being_returned): Handle
6966 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6967 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
6968
6969 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6970 * arm-tdep.c (arm_gdbarch_init): Update.
6971 * avr-tdep.c (avr_gdbarch_init): Update.
6972 * cris-tdep.c (cris_gdbarch_init): Update.
6973 * d10v-tdep.c (d10v_gdbarch_init): Update.
6974 * ia64-tdep.c (ia64_gdbarch_init): Update.
6975 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6976 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6977 * s390-tdep.c (s390_gdbarch_init): Update.
6978 * sh-tdep.c (sh_gdbarch_init): Update.
6979 * s390-tdep.c (s390_gdbarch_init): Update.
6980 * sparc-tdep.c (sparc_gdbarch_init): Update.
6981 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6982 * v850-tdep.c (v850_gdbarch_init): Update.
6983 * vax-tdep.c (vax_gdbarch_init): Update.
6984 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
6985 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6986
6987 * config/arc/tm-arc.h: Update.
6988 * config/d30v/tm-d30v.h: Update.
6989 * config/fr30/tm-fr30.h: Update.
6990 * config/h8300/tm-h8300.h: Update.
6991 * config/h8500/tm-h8500.h: Update.
6992 * config/i386/tm-i386.h: Update.
6993 * config/i386/tm-ptx.h: Update.
6994 * config/i386/tm-symmetry.h: Update.
6995 * config/i960/tm-i960.h: Update.
6996 * config/m32r/tm-m32r.h: Update.
6997 * config/m68k/tm-delta68.h: Update.
6998 * config/m68k/tm-linux.h: Update.
6999 * config/m68k/tm-m68k.h: Update.
7000 * config/m88k/tm-m88k.h: Update.
7001 * config/mcore/tm-mcore.h: Update.
7002 * config/mips/tm-mips.h: Update.
7003 * config/mn10200/tm-mn10200.h: Update.
7004 * config/pa/tm-hppa.h: Update.
7005 * config/pa/tm-hppa64.h: Update.
7006 * config/sparc/tm-sp64.h: Update.
7007 * config/sparc/tm-sparc.h: Update.
7008 * config/sparc/tm-sparclet.h: Update.
7009 * config/z8k/tm-z8k.h: Update.
7010
5179e78f
AC
70112002-06-14 Andrew Cagney <cagney@redhat.com>
7012
7013 * Makefile.in (i386_linux_tdep_h): Define.
7014 (i386_tdep_h, i387_tdep_h): Define.
7015 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7016 $(i386_tdep_h) and $(i387_tdep_h).
7017 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7018
8201327c
MK
70192002-06-14 Mark Kettenis <kettenis@gnu.org>
7020
edf393ac
MK
7021 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7022 Already covered by the default.
7023
896fb97d
MK
7024 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7025 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7026 (i386_gdbarch_init): Initialize long_double_format and long_double
7027 bit.
7028
8201327c
MK
7029 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7030 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7031 Move these to ...
7032 * config/i386/i386sol2.mh: ... here.
7033 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7034 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7035 (SIGCONTEXT_PC_OFFSET): Remove define.
7036 (IN_SIGTRAMP): Remove define.
7037 * i386-sol2-tdep.c: New file.
7038
7039 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7040 * config/i386/tm-i386nw.h: Removed.
7041
7042 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7043 USE_STRUCT_CONVENTION): Remove defines.
7044 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7045 (get_longjmp_target): Remove prototype.
7046 (IN_SIGTRAMP): Remove define.
7047 (i386bsd_in_sigtramp): Remove prototype.
7048 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7049 function. Update comment accordingly
7050 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7051 (FRAME_SAVED_PC): Remove define.
7052 (i386bsd_frame_saved_pc): Remove prototype.
7053 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7054 GET_LONGJMP_TARGET): Remove defines.
7055 (get_longjmp_target): Remove prototype.
7056 (IN_SIGTRAMP): Remove define.
7057 (i386bsd_in_sigtramp): Remove prototype.
7058 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7059 function. Update comment accordingly
7060 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7061 (FRAME_SAVED_PC): Remove define.
7062 (i386bsd_frame_saved_pc): Remove prototype.
7063 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7064 Remove prototype.
7065 (USE_STRUCT_CONVENTION): Remove prototype.
7066 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7067 declaration.
7068 (_initialize_i386bsd_nat): Revise logic to determine some
7069 constants at compile time when compiling a native GDB. Warn if
7070 things don't match up with what we expect.
7071 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7072 Remove variables.
7073 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7074 to use date stored in `struct gdbarch_tdep'.
7075 (i386bsd_sigcontext_offset): Remove varaible.
7076 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7077 stored in `struct gdbarch_tdep'.
7078 (i386bsd_frame_saved_pc): Make static.
7079 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7080 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7081 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7082 i386fbsd4_sc_pc_offset): New variables.
7083 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7084 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7085 functions.
7086 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7087 functions.
7088 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7089 Modify the value of i386fbsd_sigtramp_start and
7090 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7091 i386fbsd_sigtramp_end.
7092 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7093 function.
7094
7095 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7096 define to i386-linux-tdep.h.
7097 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7098 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7099 defines.
7100 (i386_linux_register_name, i386_linux_register_byte,
7101 i386_linux_register_raw_size): Remove prototypes.
7102 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7103 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7104 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7105 TARGET_WRITE_PC): Remove defines.
7106 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7107 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7108 i386_linux_write_pc): Remove prototypes.
7109 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7110 (get_longjmp_target): Remove prototype.
7111 * i386-linux-tdep.h: New file.
7112 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7113 * i386-linux-tdep.c: Include "i386-tdep.h" and
7114 "i386-linux-tdep.h".
7115 (i386_linux_register_name, i386_linux_register_byte,
7116 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7117 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7118 Make static.
7119 (i386_linux_init_abi): New function.
7120 (_initialize_i386_linux_tdep): New function.
7121
7122 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7123 (i386_saved_pc_after_call): Remove prototype.
7124 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7125 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7126 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7127 (i386_register_name, i386_stab_reg_to_regnum,
7128 i386_dwarf_reg_to_regnum): Remove prototypes.
7129 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7130 SIZEOF_SSE_REGS): Remove defines.
7131 (REGISTER_BYTES): Remove define.
7132 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7133 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7134 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7135 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7136 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7137 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7138 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7139 (get_longjmp_target): Remove prototype.
7140 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7141 (sigtramp_saved_pc): Remove define.
7142 (i386v4_sigtramp_saved_pc): Remove prototype.
7143 * config/i386/tm-go32.h (FRAME_CHAIN,
7144 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7145 (i386go32_frame_saved_pc): Remove prototype.
7146 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7147 (get_longjmp_target): Remove prototype.
7148 * i386-tdep.h: Include "osabi.h".
7149 (enum i386_abi): Removed.
7150 (enum struct_return): New enum.
7151 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7152 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7153 sc_pc_offset members.
7154 (i386_gdbarch_register_os_abi): Remove prototype.
7155 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7156 I386_SSE_NUM_REGS): New defines.
7157 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7158 I386_SSE_SIZEOF_REGS): New defines.
7159 (i386_register_name, i386_register_byte, i386_register_raw_size):
7160 New prototypes.
7161 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7162 (i386bsd_sigtramp_saved_pc): New prototype.
7163 * i386-tdep.c: Don't include "elf-bfd.h".
7164 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7165 i386_frame_chain, i386_saved_pc_after_call): Make static.
7166 (i386_frame_saved_pc): Rewrite to call architecture dependent
7167 function to deal with signal handlers. Make static.
7168 (i386go32_frame_saved_pc): Removed.
7169 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7170 Removed.
7171 (i386_get_longjmp_target): New function.
7172 (default_struct_convention, pcc_struct_convention,
7173 reg_struct_convention, valid_conventions, struct_convention): New
7174 variables.
7175 (i386_use_struct_convention): New function.
7176 (i386v4_sigtramp_saved_pc): Renamed to
7177 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7178 (i386_pc_in_sigtramp): New function.
7179 (i386_abi_names): Removed.
7180 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7181 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7182 Removed.
7183 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7184 i386_gdbarch_register_os_abi): Removed.
7185 (struct i386_abi_handler): Removed.
7186 (i386_abi_handler_list): Removed.
7187 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7188 functions.
7189 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7190 i386_nw_init_abi): New functions.
7191 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7192 Use set_gdbarch_xxx() calls instead of relying on macros for a
7193 number of calls.
7194 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7195 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7196 Register the various architecture variants defined in this file.
7197
ad2f7632
DJ
71982002-06-14 Daniel Jacobowitz <drow@mvista.com>
7199
7200 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7201 (struct main_type): Remove arg_types member. Update comments for
7202 struct field.
7203 (TYPE_ARG_TYPES): Remove.
7204 (TYPE_FN_FIELD_ARGS): Update.
7205 (smash_to_method_type): Update prototype.
7206
7207 * c-typeprint.c (cp_type_print_method_args): Take method type
7208 instead of argument list. Use new argument layout. Simplify.
7209 (c_type_print_args): Use new argument layout. Simplify.
7210 (c_type_print_base): Update call to cp_type_print_method_args.
7211 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7212 argument; use die->type instead. Update call to
7213 smash_to_method_type.
7214 (read_structure_scope): Update call to dwarf2_add_member_fn.
7215 * gdbtypes.c (allocate_stub_method): Update comment.
7216 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7217 Use new argument layout.
7218 (check_stub_method): Use new argument layout. Don't count
7219 void as an argument.
7220 (print_arg_types): Update comments. Use new argument layout.
7221 (recursive_dump_type): Don't print arg_types member.
7222 * hpread.c (hpread_read_struct_type): Use new argument layout.
7223 (fixup_class_method_type): Likewise.
7224 (hpread_type_lookup): Likewise.
7225 * stabsread.c (read_type): Update calls to read_args and
7226 smash_to_method_type.
7227 (read_args): Use new argument layout. Simplify.
7228 * valops.c (typecmp): Use new argument layout. Update parameters
7229 and comments. Simplify.
7230 (hand_function_call): Use new argument layout.
7231 (search_struct_method): Update call to typecmp.
7232 (find_overload_match): Use new argument layout.
7233
6da02953
DJ
72342002-06-13 Daniel Jacobowitz <drow@mvista.com>
7235
7236 * NEWS: Mention multithreaded debug support for gdbserver.
7237
519b2366
DJ
72382002-06-13 Daniel Jacobowitz <drow@mvista.com>
7239
7240 * MAINTAINERS: Mention NEWS.
7241
6c0d6680
DJ
72422002-06-13 Daniel Jacobowitz <drow@mvista.com>
7243
7244 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7245 (struct mips_objfile_private, compare_pdr_entries): New.
7246 (non_heuristic_proc_desc): Read the ".pdr" section if it
7247 is present.
7248
6529d2dd
AC
72492002-06-12 Andrew Cagney <ac131313@redhat.com>
7250
7251 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7252 (arm_debug): New static variable.
7253 (_initialize_arm_tdep): Add ``set debug arm'' command.
7254
26216b98
AC
72552002-06-12 Andrew Cagney <ac131313@redhat.com>
7256
7257 * Makefile.in (sim_arm_h): Define.
7258 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7259 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7260 (arm_register_sim_regno): New function, map an internal REGNUM
7261 onto a simulator register number.
7262 (arm_gdbarch_init): Set register_sim_regno.
7263
814b3ba0
AH
72642002-06-09 Aldy Hernandez <aldyh@redhat.com>
7265
7266 * MAINTAINERS: Add self.
7267
475b0867
JB
72682002-06-11 Jim Blandy <jimb@redhat.com>
7269
919d772c
JB
7270 * source.c (source_info): Mention whether the symtab has
7271 information about preprocessor macros.
7272
475b0867
JB
7273 Call the command `info macro', not `show macro'.
7274 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7275 Fix error message.
7276 (_initialize_macrocmd): Register `info_macro_command' in
7277 `infolist', not `showlist'.
7278
9e364162
DJ
72792002-06-11 Daniel Jacobowitz <drow@mvista.com>
7280
7281 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7282 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7283 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7284 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7285 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7286 unconditionally.
7287 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7288 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7289 (_initialize_mips_tdep): Remove dead code.
7290 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7291 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7292 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7293 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7294 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7295 MIPS_LAST_FP_ARG_REGNUM): Remove.
7296
23aa4c72
ML
72972002-06-11 Michal Ludvig <mludvig@suse.cz>
7298
7299 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7300 (unwind_tmp_obstack_free, parse_frame_info)
7301 (update_context, cfi_read_fp, cfi_write_fp)
7302 (cfi_frame_chain, cfi_init_extra_frame_info)
7303 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7304 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7305
70eb15a4
CV
73062002-06-11 Corinna Vinschen <vinschen@redhat.com>
7307
7308 * v850-tdep.c (v850_type_is_scalar): New function.
7309 (v850_use_struct_convention): Match current gcc implementation
7310 as close as possible.
7311 (v850_push_arguments): Fix stack_offset handling. Don't write
7312 struct_addr into register. This is done by v850_store_struct_return.
7313 (v850_extract_return_value): Care for structs.
7314 (v850_store_return_value): Ditto.
7315 (v850_store_struct_return): Actually write address.
7316
482a4d06
ML
73172002-06-11 Michal Ludvig <mludvig@suse.cz>
7318
7319 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7320 without debug information too.
7321
d855c300
AC
73222002-06-10 Andrew Cagney <ac131313@redhat.com>
7323
7324 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7325 Make multi-arch pure.
7326 * gdbarch.h, gdbarch.c: Re-generate.
7327 * arm-tdep.c (arm_print_float_info): Update.
7328 * arch-utils.h (default_print_float_info): Update.
7329 * arch-utils.c (default_print_float_info): Update.
7330 * infcmd.c (float_info): Update call.
7331
dd12a101
AC
73322002-06-10 Andrew Cagney <ac131313@redhat.com>
7333
7334 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7335 the front of the initialize list.
7336
101dcfbe
AC
73372002-06-10 Andrew Cagney <ac131313@redhat.com>
7338
7339 * infrun.c (struct inferior_status): Replace fields
7340 selected_frame_address and selected_level with field
7341 selected_frame_id.
7342 (save_inferior_status): Update. Use get_frame_id.
7343 (struct restore_selected_frame_args): Delete.
7344 (restore_selected_frame): Update. Use frame_find_by_id.
7345 (restore_inferior_status): Update.
7346
7347 * breakpoint.h (struct breakpoint): Change type of
7348 watchpoint_frame to frame_id.
7349 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7350 call to get_current_frame.
7351 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7352 get_current_frame.
7353 (watchpoint_check): Use frame_find_by_id.
7354
7355 * frame.h (record_selected_frame): Delete declaration.
7356 * stack.c (record_selected_frame): Delete function.
7357
7358 * frame.h (struct frame_id): Define.
7359 (get_frame_id): Declare.
7360 (frame_find_by_id): Declare.
7361 * frame.c (frame_find_by_id): New function.
7362 (get_frame_id): New function.
7363
304270b6
AV
73642002-06-10 Andrey Volkov <avolkov@transas.com>
7365
7366 * ser-e7kpc.c: Fix duplicated define and call of
7367 _initialize_ser_e7000pc
7368
2f2cf184
DJ
73692002-06-09 Daniel Jacobowitz <drow@mvista.com>
7370
7371 * signals/signals.c (target_signal_from_host): Fix #ifdef
7372 SIGRTMIN case.
7373 (do_target_signal_to_host): Likewise.
7374
caaa3122
DJ
73752002-06-09 Daniel Jacobowitz <drow@mvista.com>
7376
7377 * mips-tdep.c (mips_find_abi_section): New function.
7378 (mips_gdbarch_init): Call it.
7379
6ac5df3a
MK
73802002-06-09 Mark Kettenis <kettenis@gnu.org>
7381
7382 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7383 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7384 after Andrew's 2002-06-08 gdbarch change.
7385
82ea117a
MK
73862002-06-09 Mark Kettenis <kettenis@gnu.org>
7387
7388 * i386-linux-nat.c (suppy_gregset): Don't supply
7389 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7390 register cache.
7391 (fill_gregset): Don't fetch it under the same circumstances.
7392
3c25f8c7
AC
73932002-06-09 Andrew Cagney <cagney@redhat.com>
7394
7395 * Makefile.in (callback_h): Define.
7396 (remote_sim_h): Update path to remote-sim.h.
7397 (remote-rdp.o): Add $(callback_h).
7398 (remote-sim.o): Use $(callback_h).
7399 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7400 * remote-rdp.c: Include "gdb/callback.h".
7401
1029b7fa
MK
74022002-06-09 Mark Kettenis <kettenis@gnu.org>
7403
7404 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7405 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7406
616675d3
AC
74072002-06-08 Andrew Cagney <ac131313@redhat.com>
7408
a3efda28
AC
7409 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7410 * rdi-share/serpardr.c: Ditto.
7411 * rdi-share/unixcomm.c: Ditto.
7412 * rdi-share/serdrv.c: Ditto.
7413 * rdi-share/hostchan.h: Ditto.
7414 * rdi-share/hostchan.c: Ditto.
7415 * rdi-share/host.h: Ditto.
7416 * rdi-share/devsw.c: Ditto.
7417
c5f10366
AC
7418 * objfiles.h: Change type of obj_private to void pointer.
7419 * pa64solib.c: Update copyright. Don't include "assert.h", use
7420 strcmp instead of STREQ, use LONGEST, do not use PTR
7421 * somsolib.c: Ditto.
7422
616675d3
AC
7423 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7424 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7425 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7426
e4b415d9
AC
74272002-06-08 Andrew Cagney <ac131313@redhat.com>
7428
7429 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7430 (default_get_saved_register): Delete function.
7431 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7432 generic_unwind_get_saved_register.
7433 * gdbarch.h, gdbarch.c: Re-generate.
7434
ca0d0b52
AC
74352002-06-08 Andrew Cagney <ac131313@redhat.com>
7436
7437 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7438 generic_func_frame_chain_valid.
7439 * gdbarch.h, gdbarch.c: Re-generate.
7440 * blockframe.c (generic_func_frame_chain_valid): Only check
7441 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7442 passing FP to PC_IN_CALL_DUMMY.
7443 Fix PR gdb/360.
7444
76860b5f
AC
74452002-06-08 Andrew Cagney <ac131313@redhat.com>
7446
7447 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7448 (register_gdbarch_data): Initialize init_p.
7449 (gdbarch_data): Initialize data pointer using the init function.
7450 (init_gdbarch_data): Delete function.
7451 (gdbarch_update_p): Update.
7452 (initialize_non_multiarch): Update.
7453 (struct gdbarch): Add field initialized_p.
7454 * gdbarch.h, gdbarch.c: Re-generate.
7455
8dda9770
ML
74562002-06-07 Michal Ludvig <mludvig@suse.cz>
7457
7458 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7459 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7460 better do the things actually here.
7461 * x86-64-tdep.c (x86_64_register_name2nr): New.
7462 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7463 (x86_64_gdbarch_init): Respect the above change.
7464 * x86-64-tdep.h (x86_64_register_name2nr)
7465 (x86_64_register_nr2name): Add prototypes.
7466 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7467
3d79a47c
MS
74682002-06-06 Michael Snyder <msnyder@redhat.com>
7469
7bd91a28
MS
7470 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7471 Delete extra braces and re-indent.
7472 (d10v_store_return_value): Char return values
3d79a47c
MS
7473 must be shifted over by one byte in R0.
7474 (d10v_extract_return_value): Delete extra braces, re-indent.
7475
095a4c96
EZ
74762002-06-06 Elena Zannoni <ezannoni@redhat.com>
7477
7478 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7479 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7480 (d10v_integer_to_address): Rewrite.
7481 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7482 the d10v specific functions which take care of converting to the
7483 correct space.
7484
e8a77ca4
EZ
74852002-06-06 Elena Zannoni <ezannoni@redhat.com>
7486
7487 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7488 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7489
4f2e4a4f
AC
74902002-06-02 Andrew Cagney <ac131313@redhat.com>
7491
7492 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7493 includes.
7494 * config/tm-linux.h: Ditto.
7495 * config/alpha/tm-alphalinux.h: Ditto.
7496 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7497 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7498 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7499 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7500 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7501 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7502 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7503 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7504 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7505 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7506 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7507 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7508 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7509 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7510 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7511 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7512 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7513 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7514 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7515 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7516 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7517 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7518 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7519 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7520 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7521 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7522 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7523 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7524 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7525 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7526 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7527 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7528 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7529 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7530 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7531 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7532 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7533
ae2ab2ce
AS
75342002-05-04 Aidan Skinner <aidan@velvet.net>
7535
7536 * ada-exp.tab.c: New file
7537 * ada-exp.y: New file
7538 * ada-lang.c: New file
7539 * ada-lang.h: New file
7540 * ada-lex.c: New file
7541 * ada-lex.l: New file
7542 * ada-tasks.c: New file
7543 * ada-typeprint.c: New file
7544 * ada-valprint.c: New file
7545
0ddd0135
JT
75462002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7547
7548 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7549 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7550
750fbacc
JT
75512002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7552
7553 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7554 insetead of ppc-linux-tdep.o.
7555 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7556 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7557
df94e18a
AC
75582002-06-02 Andrew Cagney <ac131313@redhat.com>
7559
7560 2002-05-07 Christian Groessler <chris@groessler.org>
7561 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7562 bit register contents for little endian hosts.
7563
1a38ab75
AC
75642002-06-01 Andrew Cagney <ac131313@redhat.com>
7565
7566 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7567 any maintainer.
7568
8b1632ac
AC
75692002-06-01 Andrew Cagney <ac131313@redhat.com>
7570
7571 * gdbarch.h: Regenerate.
7572
627054c8
AC
75732002-06-01 Andrew Cagney <ac131313@redhat.com>
7574
7575 * MAINTAINERS: Add everyone to write-after-approval list.
7576
4f460812
AC
75772002-06-01 Andrew Cagney <ac131313@redhat.com>
7578
7579 * stack.c (frame_info): Use frame_register_unwind instead of
7580 saved_regs. Mention when the SP is on the stack or in a register.
7581
7582 * frame.h (frame_register_unwind_ftype): Define. Document.
7583 (struct frame_info): Add field register_unwind and
7584 register_unwind_cache.
7585 (frame_register_unwind): Declare.
7586 (generic_unwind_get_saved_register): Declare.
7587
7588 * frame.c (frame_register_unwind): New function.
7589 (generic_unwind_get_saved_register): New function.
7590
7591 * blockframe.c (generic_call_dummy_register_unwind): New function.
7592 (frame_saved_regs_register_unwind): New function.
7593 (set_unwind_by_pc): New function.
7594 (create_new_frame): New function.
7595 (get_prev_frame): New function.
7596
de888f76
AC
75972002-05-30 Andrew Cagney <ac131313@redhat.com>
7598
7599 * a29k-share/: Delete directory.
7600 * remote-vx29k.c: Delete file.
7601
2f2c3626
JT
76022002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7603
7604 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7605 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7606
9ce5c36a
JT
76072002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7608
7609 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7610 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7611 (sparc64nbsd-nat.o)
7612 (sparcnbsd-nat.o)
7613 (sparcnbsd-tdep.o): New dependency lists.
7614 * NEWS: Note new UltraSPARC NetBSD native configuration.
7615 * configure.host (sparc64-*-netbsd*): New host.
7616 * configure.tgt (sparc-*-netbsdelf*)
7617 (sparc-*-netbsd*): Set gdb_target to nbsd.
7618 (sparc64-*-netbsd*): New target.
7619 * sparc64nbsd-nat.c: New file.
7620 * sparcnbsd-nat.c: New file.
7621 * sparcnbsd-tdep.c: New file.
7622 * sparcnbsd-tdep.h: New file.
7623 * config/sparc/nbsd.mt: New file.
7624 * config/sparc/nbsd64.mh: New file.
7625 * config/sparc/nbsd64.mt: New file.
7626 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7627 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7628 (HOST_IPC): Remove.
7629 * config/sparc/nbsdaout.mt: Remove.
7630 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7631 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7632 (HOST_IPC): Remove.
7633 * config/sparc/nbsdelf.mt: Remove.
7634 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7635 sparc-nat.c compatiblity defines.
7636 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7637 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7638 * config/sparc/tm-nbsd64.h: New file.
7639 * config/sparc/tm-nbsdaout.h: Remove.
7640 * config/sparc/xm-nbsd.h: Remove.
7641
ef3cf062
JT
76422002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7643
7644 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7645 * sparc-tdep.c: Include osabi.h.
7646 (gdbarch_tdep): Add osabi member.
7647 (_initialize_sparc_tdep): Use gdbarch_register.
7648 (sparc_gdbarch_init): Use generic OS ABI framework.
7649 (sparc_dump_tdep): New function.
7650
ee8ff470
KB
76512002-05-30 Kevin Buettner <kevinb@redhat.com>
7652
7653 * corefile.c (do_captured_read_memory_integer): Return non-zero
7654 result.
7655 (safe_read_memory_integer): Copy result of memory read when
7656 status is non-zero. Also, add comments.
7657
7b112f9c
JT
76582002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7659
7660 * Makefile.in (ppc_tdep_h): Define.
7661 (ppc-linux-nat.o)
7662 (ppc-linux-tdep.o)
7663 (rs6000-tdep.o): Use $(ppc_tdep_h).
7664 (ppc-sysv-tdep.o)
7665 (ppcnbsd-nat.o)
7666 (ppcnbsd-tdep.o): New dependency lists.
7667 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7668 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7669 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7670 (ppc_sysv_abi_broken_use_struct_convention)
7671 (ppc_sysv_abi_use_struct_convention)
7672 (ppc_sysv_abi_push_arguments): Move to...
7673 * ppc-sysv-tdep.c: ...here.
7674 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7675 * rs6000-tdep.c (process_note_abi_tag_sections)
7676 (get_elfosabi): Remove.
7677 (rs6000_gdbarch_init): Use generic OS ABI framework.
7678 (rs6000_dump_tdep): New function.
7679 (_initialize_rs6000_tdep): Use gdbarch_register.
7680 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7681 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7682 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7683 of ppc-linux-tdep.o.
7684 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7685 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7686 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7687 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7688 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7689 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7690
480dd42a
JB
76912002-05-29 Jim Blandy <jimb@redhat.com>
7692
7693 * macroscope.c (default_macro_scope): Put `void' in empty argument
7694 list.
7695
4182591f
AC
76962002-05-29 Andrew Cagney <ac131313@redhat.com>
7697
7698 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7699 * arch-utils.c: Include "sim-regno.h".
7700 * gdbarch.sh: Don't include "sim-regno.h".
7701 * gdbarch.h, gdbarch.c: Regenerate.
7702 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7703 here.
7704 * arch-utils.h (legacy_register_sim_regno): To here.
7705 * remote-sim.c (legacy_register_sim_regno): Move function from
7706 here.
7707 * arch-utils.c (legacy_register_sim_regno): To here.
7708
8238d0bf
AC
77092002-05-28 Andrew Cagney <ac131313@redhat.com>
7710
7711 * sim-regno.h: New file.
7712 * Makefile.in (sim_regno_h): Define.
7713 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7714 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7715 (legacy_register_sim_regno): New function.
7716 (one2one_register_sim_regno): New function.
7717 (gdbsim_fetch_register): Rewrite.
7718 (gdbsim_store_register): Only store a register when
7719 REGISTER_SIM_REGNO is valid.
7720 * d10v-tdep.c: Include "sim-regno.h".
7721 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7722 (d10v_ts3_register_sim_regno): Ditto.
7723 * gdbarch.sh: Include "sim-regno.h".
7724 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7725 * gdbarch.h, gdbarch.c: Regenerate.
7726 * arch-utils.h (default_register_sim_regno): Delete declaration.
7727 * arch-utils.c (default_register_sim_regno): Delete function.
7728
485721b1
JT
77292002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7730
7731 * ppcnbsd-nat.c: Rewrite.
7732 * ppcnbsd-tdep.c: New file.
7733 * ppcnbsd-tdep.h: New file.
7734 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7735 solib.o, and solib-svr4.o.
7736 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7737 nbsd-tdep.o, and corelow.o.
7738
697f244d
AC
77392002-05-28 Andrew Cagney <ac131313@redhat.com>
7740
7741 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7742 `tr' and `sed'. Mention that `broken' targets are not expected to
7743 build.
7744
f08caad1 77452002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7746
7747 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7748 Let PC point right after the prologue before looking up symbols.
7749
3139facc
MH
77502002-05-27 Martin M. Hunt <hunt@redhat.com>
7751
7752 * i386-tdep.c (i386_register_virtual_type): Return
7753 builtin_type_vec128i for SSE registers.
7754
7755 * gdbtypes.h (builtin_type_vec128i): Declare.
7756
7757 * gdbtypes.c (build_builtin_type_vec128i): New function.
7758 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7759 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7760 (build_gdbtypes): Initialize new builtin vector types.
7761 (_initialize_gdbtypes): Register new vector types with gdbarch.
7762
6e3ba3b8
JT
77632002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7764
7765 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7766 since it has been multi-arch'd.
7767 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7768 Move Alpha and VAX multi-arch news entries to same section
7769 as other multi-arch news.
7770
93d5585d
JT
77712002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7772
7773 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7774 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7775 static. Rename some register numbers to put them in ns32k-tdep
7776 private namespace.
7777 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7778 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7779 functions.
7780 (_initialize_ns32k_tdep): Use gdbarch_register.
7781 * ns32k-tdep.h: New file.
7782 * ns32knbsd-tdep.c: New file.
7783 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7784 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7785 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7786 REGISTER_BYTES, REGISTER_BYTE): Remove.
7787 * config/ns32k/tm-ns32k.h: New file.
7788 * config/ns32k/tm-umax.h: Remove.
7789
efb2c70e
JT
77902002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7791
7792 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7793 ns32k_store_struct_return, ns32k_extract_return_value,
7794 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7795 functions.
7796 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7797 ns32k_saved_pc_after_call.
7798 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7799 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7800 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7801 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7802 ns32k_extract_struct_value_address.
7803
7bcc927b
JT
78042002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7805
7806 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7807 ns32k_fix_call_dummy): New.
7808 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7809 ns32k_call_dummy_words.
7810 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7811 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7812 CALL_DUMMY_NARGS): Remove.
7813 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7814
78f9d765
JT
78152002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7816
7817 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7818 ns32k_frame_saved_pc, ns32k_frame_args_address,
7819 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7820 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7821 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7822 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7823 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7824 (BREAKPOINT): Remove..
7825 (FRAME_CHAIN): Define as ns32k_frame_chain.
7826 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7827 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7828 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7829 (FRAME_FIND_SAVED_REGS): Remove.
7830 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7831 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7832 (POP_FRAME): Define as ns32k_pop_frame.
7833
f2c762e0
JT
78342002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7835
7836 * ns32k-tdep.c (ns32k_register_byte_32082,
7837 ns32k_register_byte_32382, ns32k_register_raw_size,
7838 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7839 functions.
7840 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7841 ns32k_register_byte_32382.
7842 * config/ns32k/tm-umax.h: Update copyright years.
7843 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7844 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7845 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7846 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7847 (ns32k_get_enter_addr): Fix prototype.
7848
af137673
JT
78492002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7850
7851 * ns32k-tdep.c: Update copyright years.
7852 (ns32k_register_name_32082): New function.
7853 (ns32k_register_name_32382): Ditto.
7854 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7855 (REGISTER_NAME): Define as ns32k_register_name_32382.
7856 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7857 (REGISTER_NAME): Define as ns32k_register_name_32082.
7858
a8bc7b56
JB
78592002-05-24 Jim Blandy <jimb@redhat.com>
7860
7861 * dwarf2read.c (free_line_header): Use xfree, not free.
7862
83a45910
JT
78632002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7864
7865 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7866 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7867
0db71247
AC
78682002-05-23 Andrew Cagney <ac131313@redhat.com>
7869
7870 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7871
b9e5e4dd
AC
78722002-05-23 Andrew Cagney <ac131313@redhat.com>
7873
7874 From Ross Alexander at NEC Europe:
7875 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7876
de530e84
MS
78772002-05-23 Michael Snyder <msnyder@redhat.com>
7878
7879 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7880 for input, rather than parse_and_eval_address.
7881
b91b96f4
AC
78822002-05-23 Andrew Cagney <ac131313@redhat.com>
7883
7884 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7885 * Makefile.in (sim_d10v_h): Update definition.
7886
8b279e7a
AC
78872002-05-24 Andrew Cagney <cagney@redhat.com>
7888
7889 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7890 change `2002-05-22 Michael Snyder' below.
7891 (d10v_push_arguments): Ditto.
7892 (d10v_extract_return_value): Ditto.
7893
0a3d0425
JB
78942002-05-23 Jim Blandy <jimb@redhat.com>
7895
7896 * macrotab.c (check_for_redefinition): Don't complain if the new
7897 definition is the same as the previous one. Take more arguments
7898 to allow the comparison.
7899 (macro_define_object, macro_define_function): Pass more arguments
7900 to check_for_redefinition.
7901
78eac43e
MS
79022002-05-22 Michael Snyder <msnyder@redhat.com>
7903
7904 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7905 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7906 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7907 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7908 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7909 Add a temp variable to save a call (and a memory read).
7910 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7911 if possible (so that PC_IN_CALL_DUMMY will work).
7912
9bc1edb8
CV
79132002-05-22 Corinna Vinschen <vinschen@redhat.com>
7914
7915 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7916
005ef3d2
ML
79172002-05-22 Michal Ludvig <mludvig@suse.cz>
7918
7919 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7920 fde->cie_ptr.
7921 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7922 (dwarf2_build_frame_info): Add offset to fde->initial_location
7923 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7924 (execute_stack_op): Change type of 'result' from ULONGEST to
7925 CORE_ADDR.
005ef3d2 7926
fcf4f891
JT
79272002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7928
7929 * config/alpha/tm-nbsd.h: Include solib.h.
7930
cfef91e4
JT
79312002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7932
7933 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7934 assumptions about the host's byte order.
7935
9964235a
JT
79362002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7937
7938 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7939 to dependency list.
7940 * alphanbsd-tdep.c: Include solib-svr4.h.
7941 * shnbsd-tdep.c: Ditto.
7942
9eeef8ef
JT
79432002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7944
7945 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7946 nbsd-tdep.h to dependency list.
7947 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
7948 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
7949 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
7950 nbsdaout.mh and nbsdelf.mh consistently.
7951 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
7952 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
7953 nbsdaout.mt and nbsdelf.mh consistently.
7954 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
7955 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
7956 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
7957 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
7958 a.out shared library stuff from here...
7959 * config/nm-nbsdaout.h: ...to here.
7960 * config/tm-nbsd.h: Remove.
7961 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
7962 * config/arm/nbsd.mh: Remove.
7963 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
7964 nbsd-tdep.o.
7965 * config/arm/nbsdaout.mh: New file.
7966 * config/arm/nbsdelf.mh: New file.
7967 * config/arm/nm-nbsdaout.h: New file.
7968 * config/i386/nbsd.mh: Remove.
7969 * config/i386/nbsd.mt: Remove.
7970 * config/i386/nbsdaout.mh: New file.
7971 * config/i386/nbsdaout.mt: New file.
7972 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
7973 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
7974 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
7975 i386_register_u_addr): Remove.
7976 * config/i386/nm-nbsdaout.h: New file.
7977 * config/i386/nm-nbsdelf.h: Remove.
7978 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
7979 (USE_STRUCT_CONVENTION): Remove.
7980 * config/i386/tm-nbsdaout.h: New file.
7981 * config/i386/tm-nbsdelf.h: Remove.
7982 * config/m68k/nbsd.mh: Remove.
7983 * config/m68k/nbsd.mt: Remove.
7984 * config/m68k/nbsdaout.mh: New file.
7985 * config/m68k/nbsdaout.mt: New file.
7986 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
7987 * config/m68k/nm-nbsdaout.h: New file.
7988 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7989 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7990 * config/ns32k/nbsd.mh: Remove.
7991 * config/ns32k/nbsd.mt: Remove.
7992 * config/ns32k/nbsdaout.mh: New file.
7993 * config/ns32k/nbsdaout.mt: New file.
7994 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
7995 * config/ns32k/nm-nbsdaout.h: New file.
7996 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
7997 (IN_SOLIB_CALL_TRAMPOLINE): Define.
7998 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
7999 (SVR4_SHARED_LIBS): Remove.
8000 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8001 * config/sparc/nbsd.mh: Remove.
8002 * config/sparc/nbsd.mt: Remove.
8003 * config/sparc/nbsdaout.mh: New file.
8004 * config/sparc/nbsdaout.mt: New file.
8005 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8006 * config/sparc/nbsdelf.mt: New file.
8007 * config/sparc/nm-nbsdaout.h: New file.
8008 * config/sparc/nm-nbsdelf.h: Remove.
8009 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8010 * config/sparc/tm-nbsdaout.h: New file.
8011
257ce470
JT
80122002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8013
8014 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8015 mipsnbsd-tdep.c
8016 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8017
76a6d5fe
JT
80182002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8019
8020 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8021 shnbsd-nat.c.
8022 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8023
45888261
JT
80242002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8025
8026 * NEWS: Note new MIPS NetBSD native configuration.
8027 * configure.host (mips*-*-netbsd*): New host.
8028 * configure.tgt (mips*-*-netbsd*): New target.
8029 * mipsnbsd-nat.c: New file.
8030 * mipsnbsd-tdep.c: New file.
8031 * mipsnbsd-tdep.h: New file.
8032 * config/mips/nbsd.mh: New file.
8033 * config/mips/nbsd.mt: New file.
8034 * config/mips/nm-nbsd.h: New file.
8035 * config/mips/tm-nbsd.h: New file.
8036
70f80edf
JT
80372002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8038
8039 * Makefile.in (SFILES): Add osabi.c.
8040 (COMMON_OBS): Add osabi.o.
8041 (osabi.o): New dependency list.
8042 * osabi.c: New file.
8043 * osabi.h: New file.
8044 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8045
8046 * Makefile.in (alpha_tdep_h): Define and use instead of
8047 alpha-tdep.h.
8048 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8049 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8050 Remove.
8051 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8052 * alpha-tdep.h: Include osabi.h.
8053 (alpha_abi): Remove.
8054 (gdbarch_tdep): Use generic OS ABI framework.
8055 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8056 gdbarch_register_osabi.
8057 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8058 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8059 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8060
8061 * Makefile.in (sh_tdep_h): Add osabi.h.
8062 * sh-tdep.h (sh_osabi): Remove.
8063 (gdbarch_tdep): Use generic OS ABI framework.
8064 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8065 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8066 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8067 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8068
8069 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8070 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8071 gdbarch_register_osabi.
8072 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8073 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8074 (get_elfosabi): Rename to...
8075 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8076 ABI framework support routines.
8077 (arm_gdbarch_init): Use generic OS ABI framework.
8078 (arm_dump_tdep): Likewise.
8079 (_initialize_arm_tdep): Likewise.
8080 * arm-tdep.h: Include osabi.h.
8081 (arm_abi): Remove.
8082 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8083 osabi member.
8084 (arm_gdbarch_register_os_abi): Remove prototype.
8085 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8086 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8087
8088 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8089 * mips-tdep.c: Include osabi.h.
8090 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8091 OS ABI framework.
8092
d194345b
KH
80932002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8094
8095 * h8300-tdep.c: Fix formatting.
8096
70c6b0d1
EZ
80972002-05-20 Elena Zannoni <ezannoni@redhat.com>
8098
8099 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8100 printing vector registers.
8101
165b8e33
AC
81022002-05-19 Andrew Cagney <ac131313@redhat.com>
8103
8104 From Fernando Nasser:
8105 * remote.c (remote_async_open_1): Re-throw the exception when the
8106 connection fails.
8107 (remote_cisco_open): Ditto.
8108 (remote_open_1): Ditto.
8109
36918e70
AC
81102002-05-19 Andrew Cagney <ac131313@redhat.com>
8111
8112 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8113 (remote_start_remote): Add uiout parameter. Pass through to
8114 remote_start_remote_dummy.
8115 (remote_open_1): Use catch_exception instead of catch_errors.
8116 (remote_async_open_1): Ditto.
8117 (remote_cisco_open): Ditto.
8118
ae44c0c4
AC
81192002-05-19 Andrew Cagney <ac131313@redhat.com>
8120
8121 * remote.c (remote_start_remote): Replace PTR with void pointer.
8122 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8123 static.
8124
8efe637d
AC
81252002-05-18 Andrew Cagney <ac131313@redhat.com>
8126
8127 * gdb_indent.sh: Allow the script to be run in the sim directory.
8128
2f1b5984
MK
81292002-05-18 Mark Kettenis <kettenis@gnu.org>
8130
f0f625e2
MK
8131 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8132 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8133
2f1b5984
MK
8134 * corelow.c (core_open): Only call set_gdbarch_from_file if
8135 exec_bfd is NULL.
8136
fc974602
AV
81372002-05-17 Andrey Volkov <avolkov@transas.com>
8138
8139 * h8300-tdep.c: Add support of EXR register
8140 * config/h8300/tm-h8300.h: Ditto.
8141
906709f4
AV
81422002-05-17 Andrey Volkov <avolkov@transas.com>
8143
8144 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8145
6e591d68
AV
81462002-05-17 Andrey Volkov <avolkov@transas.com>
8147
8148 * h8300-tdep.c: Change literal regnums to REGNO.
8149
84f0252a
JB
81502002-05-17 Jim Blandy <jimb@redhat.com>
8151
e0e9281e
JB
8152 * NEWS: Note addition of macro support.
8153
84f0252a
JB
8154 Expand preprocessor macros in C expressions.
8155 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8156 (scan_macro_expansion, scanning_macro_expansion,
8157 finished_macro_expansion): New function declarations.
8158 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8159 variable declarations.
8160 * parser-defs.h (expression_context_pc): New declaration.
8161 * parse.c (expression_context_pc): New variable.
8162 (parse_exp_1): Set expression_context_pc, as well as
8163 expression_context_block.
8164 * c-exp.y (yylex): If we're not already reading the result of a
8165 macro expansion, try to macro-expand the next token. When we're
8166 done scanning a macro expansion, switch back to the mainline text.
8167 Commas and `if's in a macro's expansion don't terminate the input.
8168 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8169 (macro_original_text, macro_expanded_text,
8170 expression_macro_lookup_func, expression_macro_lookup_baton): New
8171 variables.
8172 (scan_macro_expansion, scanning_macro_expansion,
8173 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8174 c_preprocess_and_parse): New functions.
8175 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8176 c_preprocess_and_parse, instead of c_parse.
8177 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8178 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8179
1c509ca8
JR
8180Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8181
8182 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8183 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8184 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8185
2250ee0c
CV
81862002-05-17 Corinna Vinschen <vinschen@redhat.com>
8187
8188 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8189
ab3b8126
JT
81902002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8191
8192 * Makefile.in (sh_tdep_h): Define and use.
8193 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8194 register enum): Move to...
8195 * * sh-tdep.h: ...here.
8196 * sh-tdep.c: Include sh-tdep.h.
8197 * sh3-rom.c: Likewise.
8198 * shnbsd-tdep.c: Likewise.
8199
ed9d4749
MS
82002002-05-16 Michael Snyder <msnyder@redhat.com>
8201
8202 * arm-tdep.c: Spelling fix in comment.
8203
2e276125
JB
82042002-05-16 Jim Blandy <jimb@redhat.com>
8205
6821892e
JB
8206 Add commands for manually expanding macros and showing their
8207 definitions.
8208 * macrocmd.c, macroscope.c, macroscope.h: New files.
8209 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8210 (macroscope_h): New variable.
8211 (HFILES_NO_SRCDIR): Add macroscope.h.
8212 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8213 (macroscope.o, macrocmd.o): New rules.
8214
2e276125
JB
8215 Teach the Dwarf 2 reader to read macro information.
8216 * dwarf2read.c: #include "macrotab.h".
8217 (dwarf_macinfo_buffer): New variable.
8218 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8219 dwarf_macinfo_size.
8220 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8221 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8222 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8223 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8224 dwarf2_macro_spaces_in_definition): New complaints.
8225 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8226 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8227 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8228 the partial symbol table.
8229 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8230 from what's recorded in the partial symbol table.
8231 (read_file_scope): If the compilation unit has a
8232 `DW_AT_macro_info' attribute, read its macro information.
8233 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8234
2f53fe6c
DJ
82352002-05-16 Daniel Jacobowitz <drow@mvista.com>
8236
8237 Fix PR gdb/546
8238 * ser-tcp.c: Don't include <netinet/udp.h>.
8239
2be99286
SC
82402002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8241
8242 * MAINTAINERS: Update my email address.
8243
c9af212b 82442002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8245
8246 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8247 include file of the same name.
8248
bf5f1a52
CV
82492002-05-16 Corinna Vinschen <vinschen@redhat.com>
8250
8251 * configure.tgt: Mark v850 as multi-arched.
8252 * config/v850/tm-v850.h: Remove file.
8253 * config/v850/v850.mt: Eliminate TM_FILE.
8254
435e042a
CV
82552002-05-16 Corinna Vinschen <vinschen@redhat.com>
8256
8257 * v850-tdep.c: Full multi-arch.
8258 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8259 Define GDB_MULTI_ARCH to 2.
8260
9819c6c8
PM
82612002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8262
8263 * p-exp.y (current_type): New static variable.
8264 Carries the type of the expression at the position that is parsed.
8265 (push_current_type, pop_current_type): Two new functions. Used
8266 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8267 (search_field): New static variable. Set to one after parsing a point
8268 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8269 (FIELDNAME): New token. After a point only a token belonging to
8270 current_type type definition is allowed.
8271 (all over token rules): reset and change current_type according
8272 to rules.
8273 (exp '[' rule): insert implicit array index field if
8274 exp is a pascal string type.
8275
3a06899a
CV
82762002-05-16 Corinna Vinschen <vinschen@redhat.com>
8277
8278 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8279 frame info. Use frame_info's saved_regs instead of matching member
8280 in extra_frame_info throughout.
8281 (v850_frame_init_saved_regs): New function.
8282 (v850_init_extra_frame_info): Move most functionality into
8283 v850_frame_init_saved_regs().
8284 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8285 (v850_frame_find_saved_regs): Remove declaration.
8286 (FRAME_FIND_SAVED_REGS): Remove definition.
8287 (v850_frame_init_saved_regs): Add declaration.
8288 (FRAME_INIT_SAVED_REGS): Add definition.
8289
6ed14b0e
CV
82902002-05-16 Corinna Vinschen <vinschen@redhat.com>
8291
8292 * v850-tdep.c: Begin multi-arch'ing v850.
8293 (v850_target_architecture_hook): Remove function.
8294 (v850_gdbarch_init): New function. Add code previously in
8295 v850_target_architecture_hook().
8296 (_initialize_v850_tdep): Don't set target_architecture_hook.
8297 Call register_gdbarch_init() instead.
8298
42725910
DJ
82992002-05-16 Daniel Jacobowitz <drow@mvista.com>
8300
8301 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8302 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8303 (fixup_class_method_type): Likewise.
8304
99d9066e
JB
83052002-05-15 Jim Blandy <jimb@redhat.com>
8306
8307 Add macro structures to GDB's symbol tables. Nobody puts anything
8308 in them yet.
8309 * symtab.h (struct symtab): New member: `macro_table'.
8310 * buildsym.h (pending_macros): New global variable.
8311 * buildsym.c: #include "macrotab.h".
8312 (buildsym_init): Initialize `pending_macros'.
8313 (end_symtab): If we found macro information while reading a CU's
8314 debugging info, do build a symtab structure for it. Make the
8315 symtab point to the macro information, and clear the
8316 `pending_macros' pointer which held it while we were reading the
8317 debug info.
8318 (really_free_pendings): Free any pending macro table.
8319 * objfiles.h (struct objfile): New member: `macro_cache'.
8320 * objfiles.c (allocate_objfile): Set allocate and free functions
8321 for the macro cache's objstack.
8322 (free_objfile): Empty the macro cache's obstack.
8323 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8324 set new allocate and free functions for it.
8325 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8326 free functions for the macro cache's objstack. (Why is this
8327 function building its own objfile?)
8328 * symmisc.c (print_objfile_statistics): Print statistics on the
8329 macro bcache.
8330 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8331
c899585b
RE
83322002-05-15 Richard Earnshaw <rearnsha@arm.com>
8333
8334 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8335 (REGISTER_U_ADDR): Delete definition.
8336 (arm_register_u_addr): Delete declaration.
8337
a6cdd8c5
RE
83382002-05-15 Richard Earnshaw <rearnsha@arm.com>
8339
8340 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8341 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8342
c97dcfc7
AC
83432002-05-14 Andrew Cagney <ac131313@redhat.com>
8344
8345 * regcache.c (register_valid): Revise comments refering to "Not
8346 available" and "unavailable".
8347 * frame.c (frame_register_read): Ditto.
8348 * findvar.c (value_of_register): Ditto.
8349
93021b7d
AC
83502002-05-15 Andrew Cagney <cagney@redhat.com>
8351
8352 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8353 (remote-sim.o): Update dependencies.
8354 (d10v-tdep.o): Specify dependencies.
8355 (sim_d10v_h): Define.
8356
a86bc61c
JB
83572002-05-14 Jim Blandy <jimb@redhat.com>
8358
8359 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8360 * macrotab.c (macro_lookup_inclusion, find_definition,
8361 new_macro_table): Same.
8362
8363 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8364 not `! strcmp ()'. This is a dubious improvement.
8365 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8366
8367 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8368 although it's not necessary, to avoid a warning.
8369
2fdde8f8
DJ
83702002-05-14 Daniel Jacobowitz <drow@mvista.com>
8371
8372 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8373 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8374 TYPE_INSTANCE_FLAGS.
8375 (struct main_type): New.
8376 (struct type): Move most members to struct main_type. Change
8377 cv_type and as_type to new type_chain member. Add instance_flags.
8378 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8379 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8380 (finish_cv_type): Remove prototype.
8381 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8382 Set TYPE_CHAIN.
8383 (alloc_type_instance): New function.
8384 (smash_type): New function.
8385 (make_pointer_type, make_reference_type, make_function_type)
8386 (smash_to_member_type, smash_to_method_type): Call smash_type.
8387 (make_qualified_type): New function.
8388 (make_type_with_address_space): Call make_qualified_type.
8389 (make_cv_type): Likewise.
8390 (finish_cv_type): Remove unnecessary function.
8391 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8392 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8393 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8394 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8395 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8396 * hpread.c (hpread_read_struct_type): Likewise.
8397 * stabsread.c (read_struct_type): Likewise.
8398
843fedf4
EZ
83992002-05-14 Elena Zannoni <ezannoni@redhat.com>
8400
8401 * configure.tgt: Add a catch all sh* target, for cases like
8402 sh[2,3,4]-elf and sh-hms.
8403
05a6c72c
KS
84042002-05-14 Keith Seitz <keiths@redhat.com>
8405
8406 * event-loop.c (create_file_handler): Don't do anything but
8407 update data when we are given a fd which we are already
8408 monitoring.
8409
5d085aaf
ML
84102002-05-14 Michal Ludvig <mludvig@suse.cz>
8411
8412 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8413 (update_context): Use __func__ in warnings.
8414
9db8d71f
DJ
84152002-05-14 Daniel Jacobowitz <drow@mvista.com>
8416
8417 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8418 and tcp_close to net_open and net_close.
8419 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8420 using UDP if requested. Don't try to disable Nagle on UDP
8421 sockets.
8422 * remote.c (remote_serial_open): New function. Warn about UDP.
8423 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8424
5dbc6baa
EZ
84252002-05-13 Elena Zannoni <ezannoni@redhat.com>
8426
8427 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8428
cc3023f7
EZ
84292002-05-13 Elena Zannoni <ezannoni@redhat.com>
8430
8431 * configure.tgt: Remove sh-hms target.
8432 * MAINTAINERS: Don't list sh-hms as a separate target.
8433
ec2bcbe7
JB
84342002-05-13 Jim Blandy <jimb@redhat.com>
8435
8436 Add first preprocessor macro-expansion files.
8437 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8438 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8439 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8440 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8441 (COMMON_OBS): Add macrotab.o, macroexp.o.
8442 (macroexp.o, macrotab.o): New rules.
8443
6d531722
AC
84442002-05-13 Andrew Cagney <ac131313@redhat.com>
8445
8446 * config/m88k/tm-m88k.h: Update copyright.
8447 (m88k_target_write_pc): Declare
8448 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8449 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8450 (SHIFT_INST_REGS): Update definition.
8451 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8452 using old definition of TARGET_WRITE_PC.
8453 * regcache.c (generic_target_write_pc): Delete code handling
8454 NNPC_REGNUM.
8455 * gdbarch.sh (NNPC_REGNUM): Delete.
8456 * gdbarch.h, gdbarch.c: Regenerate.
8457
3e3f2739
RE
84582002-05-13 Richard Earnshaw <rearnsha@arm.com>
8459
8460 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8461 builtin reg number.
8462
0004e5a2
DJ
84632002-05-13 Daniel Jacobowitz <drow@mvista.com>
8464
8465 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8466 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8467 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8468 access macros.
8469 * c-typeprint.c (cp_type_print_method_args): Likewise.
8470 (c_type_print_args): Likewise.
8471 * d10v-tdep.c (d10v_push_arguments): Likewise.
8472 (d10v_extract_return_value): Likewise.
8473 * expprint.c (print_subexp): Likewise.
8474 * gdbtypes.c (lookup_primitive_typename): Likewise.
8475 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8476 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8477 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8478 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8479 (TYPE_VECTOR): Likewise.
8480 * hpread.c (hpread_read_struct_type)
8481 (fix_static_member_physnames, fixup_class_method_type)
8482 (hpread_type_lookup): Likewise.
8483 * mdebugread.c (parse_symbol, parse_type): Likewise.
8484 * p-lang.c (is_pascal_string_type): Likewise.
8485 * valops.c (hand_function_call): Likewise.
8486 * x86-64-tdep.c (classify_argument): Likewise.
8487
8488 * hpread.c (hpread_read_function_type)
8489 (hpread_read_doc_function_type): Call replace_type.
8490 * dstread.c (create_new_type): Delete.
8491 (decode_dst_structure, process_dst_function): Call alloc_type.
8492 Use type access macros.
8493
dff95cc7
MK
84942002-05-12 Mark Kettenis <kettenis@gnu.org>
8495
8496 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8497 the're not supported by the current architecture.
8498 (i387_fill_fxsave): Likewise.
8499
bbcd32ad
FF
85002002-05-12 Fred Fish <fnf@redhat.com>
8501
8502 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8503 sect_index_xxx members to index the first slot in section_offsets
8504 if all of the section_offsets are zero.
8505
89cf4787
MK
85062002-05-12 Mark Kettenis <kettenis@gnu.org>
8507
8508 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8509 checked in with last change.
8510
1f77ffc5
MK
85112002-05-12 Mark Kettenis <kettenis@gnu.org>
8512
8513 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8514 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8515 config.sub.
8516
89b8b4a9
DJ
85172002-05-12 Daniel Jacobowitz <drow@mvista.com>
8518
8519 * Makefile.in: Update dependencies.
8520
14a5e767
AC
85212002-05-11 Andrew Cagney <ac131313@redhat.com>
8522
8523 * language.c (local_hex_string_custom): Simplify. Do not depend
8524 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8525
8526 * memattr.c (mem_info_command): Replace calls to
8527 longest_local_hex_string and longest_local_hex_string_custom.
8528 * buildsym.c (make_blockvector): Ditto.
8529 * solib.c (info_sharedlibrary_command): Ditto.
8530 * tracepoint.c (tracepoints_info): Ditto.
8531 * symtab.c (print_msymbol_info): Ditto.
8532
8533 * language.c (local_hex_string): Delete.
8534 (local_hex_string_custom): Delete.
8535 (longest_local_hex_string): Rename to local_hex_string.
8536 (longest_local_hex_string_custom): Rename to
8537 local_hex_string_custom.
8538 * language.h (local_hex_string): Change parameter type to LONGEST.
8539 (local_hex_string_custom): Ditto.
8540 (longest_local_hex_string): Delete declaration.
8541 (longest_local_hex_string_custom): Ditto.
8542
8543 * solib.c: Update copyright.
8544 * memattr.c: Update copyright.
8545
13d01224
AC
85462002-05-11 Andrew Cagney <ac131313@redhat.com>
8547
8548 * arch-utils.h (legacy_register_to_value): Declare.
8549 (legacy_value_to_register): Declare.
8550 (legacy_convert_register_p): Declare.
8551 * arch-utils.c (legacy_register_to_value): New function.
8552 (legacy_value_to_register): New function.
8553 (legacy_convert_register_p): New function.
8554
8555 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8556 (VALUE_TO_REGISTER): Define.
8557 (CONVERT_REGISTER_P): Define.
8558 * gdbarch.h, gdbarch.c: Regenerate.
8559
8560 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8561 VALUE_TO_REGISTER.
8562 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8563 CONVERT_REGISTER_P.
8564
4a1970e4
DJ
85652005-05-11 Daniel Jacobowitz <drow@mvista.com>
8566 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8567
8568 * Makefile.in: Update dependencies for valops.c.
8569 * valops.c: Include "gdb_assert.h".
8570 (typecmp): Skip THIS parameter to methods.
8571 (find_method_list): Remove static_memfuncp argument,
8572 update callers. Check for stub methods.
8573 (find_value_oload_method_list): Don't set *static_memfuncp.
8574 (find_overload_match): Don't check for stub methods. Assert
8575 that methods are not stubbed. Handle static methods.
8576 (value_find_oload_method_list): Remove static_memfuncp argument.
8577 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8578 to the argument list for static stub methods.
8579 * value.h (value_find_oload_method_list): Update prototype.
8580
b2e75d78
AC
85812002-05-11 Andrew Cagney <ac131313@redhat.com>
8582
8583 * arch-utils.h (generic_register_size): Declare.
8584 (generic_register_raw_size, generic_register_virtual_size): Delete
8585 declarations.
8586 * arch-utils.c (generic_register_raw_size): Delete.
8587 (generic_register_size): New function.
8588 (generic_register_virtual_size): Delete.
8589
8590 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8591 default generic_register_size.
8592 * gdbarch.h, gdbarch.c: Re-generate.
8593
8594 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8595 register_virtual_size.
8596 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8597 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8598
451fbdda
AC
85992002-05-11 Andrew Cagney <ac131313@redhat.com>
8600
8601 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8602 * gdbarch.h, gdbarch.c: Regenerate.
8603 * gnu-v3-abi.c: Update copyright.
8604 (vtable_address_point_offset): Update.
8605 (gnuv3_rtti_type): Update.
8606 (gnuv3_baseclass_offset): Update.
8607 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8608 (init_fetch_link_map_offsets): Update.
8609 * remote.c (get_remote_state): Update.
8610
6d2f5cea
DJ
86112002-05-11 Daniel Jacobowitz <drow@mvista.com>
8612
8613 * TODO: Remove value_headof/value_from_vtable_info comment.
8614 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8615 * values.c (value_headof, value_from_vtable_info): Delete.
8616 * value.h (value_from_vtable_info): Delete prototype.
8617
d2324da4
AC
86182002-05-11 Andrew Cagney <ac131313@redhat.com>
8619
8620 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8621 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8622 $(gdb_regex_h).
8623 (gdb_assert_h): Define.
8624 (gdb_wait_h): Define.
8625 (gdb_regex_h): Define.
8626
5c717440
DJ
86272002-05-11 Daniel Jacobowitz <drow@mvista.com>
8628
8629 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8630 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8631
6c7861b3
JT
86322002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8633
8634 * nbsd-tdep.c: Fix comment.
8635
ea5bc2a6
JT
86362002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8637
8638 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8639 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8640 (nbsd-tdep.o): New dependency list.
8641 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8642 nbsd-tdep.h.
8643 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8644 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8645 * nbsd-tdep.c: New file.
8646 * nbsd-tdep.h: New file.
8647 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8648 nbsd-tdep.h.
8649 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8650 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8651 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8652 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8653
b28da865
JT
86542002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8655
8656 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8657 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8658 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8659 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8660 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8661 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8662
4b8ff1fa
JT
86632002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8664
8665 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8666 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8667 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8668 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8669 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8670 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8671 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8672
dfe6eb1f
JT
86732002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8674
8675 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8676 fetch_elfcore_registers to...
8677 * i386nbsd-tdep.c: ...here.
8678 (i386nbsd_use_struct_convention): Rename to...
8679 (i386nbsd_aout_use_struct_convention): ...this.
8680 (i386nbsd_supply_reg): New function.
8681 (i386nbsd_fill_reg): New function.
8682 (fetch_core_registers): Use i386nbsd_supply_reg.
8683 (fetch_elfcore_registers): Likewise.
8684 (_initialize_i386nbsd_tdep): New function.
8685 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8686 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8687 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8688 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8689 (i386nbsd_aout_use_struct_convention): ...this.
8690
20cb8cda
JT
86912002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8692
8693 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8694 (store_inferior_registers): Use shnbsd_fill_reg.
8695 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8696 sh_nbsd_supply_register): Collapse into...
8697 (shnbsd_supply_reg): ...this.
8698 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8699 (shnbsd_fill_reg): ...this.
8700 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8701 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8702 (fetch_core_registers): Use shnbsd_supply_reg.
8703 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8704 (sh_nbsd_core_fns): Rename to...
8705 (shnbsd_core_fns): ...this.
8706 (sh_nbsd_elfcore_fns): Rename to...
8707 (shnbsd_elfcore_fns): ...this.
8708 (sh_nbsd_init_abi): Rename to...
8709 (shnbsd_init_abi): ...this.
8710 (_initialize_sh_nbsd_tdep): Rename to...
8711 (_initialize_shnbsd_tdep): ...this.
8712 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8713 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8714 sh_nbsd_fill_register): Remove prototypes.
8715 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8716
e750d25e
JT
87172002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8718
8719 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8720 (i387-nat.o): Delete dependency list.
8721 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8722 (x86-64-linux-nat.o): Likewise.
8723 * i387-nat.c: Delete file, moving contents to...
8724 * i387-tdep.c: ...here.
8725 * i387-nat.h: Rename...
8726 * i387-tdep.h: ...to this.
8727 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8728 * i386-linux-nat.c: Likewise.
8729 * i386bsd-nat.c: Likewise.
8730 * i386gnu-nat.c: Likewise.
8731 * i386nbsd-nat.c: Likewise.
8732 * i386v4-nat.c: Likewise.
8733 * x86-64-linux-nat.c: Likewise.
8734 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8735 * config/i386/go32.mh (NATDEPFILES): Likewise.
8736 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8737 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8738 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8739 * config/i386/linux.mh (NATDEPFILES): Likewise.
8740 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8741 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8742 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8743 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8744
1aee598a
JT
87452002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8746
8747 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8748 (alphanbsd-nat.o): Remove dependency list.
8749 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8750 * alphanbsd-nat.c: Delete. Contents moved to...
8751 * alphanbsd-tdep.c: ...here.
8752 (_initialize_alphanbsd_tdep): Register core functions.
8753 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8754
12bcb0fe
JT
87552002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8756
8757 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8758 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8759 (alphanbsd-nat.o): Likewise.
8760 (alphabsd-tdep.o): New dependency list.
8761 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8762 (fill_gregset): Use alphabsd_fill_reg.
8763 (supply_fpregset): Use alphabsd_supply_fpreg.
8764 (fill_fpregset): Use alphabsd_fill_fpreg.
8765 (fetch_inferior_registers): Use struct reg and struct fpreg
8766 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8767 and alphabsd_supply_fpreg.
8768 (store_inferior_registers): Use struct reg and struct fpreg
8769 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8770 and alphabsd_fill_fpreg.
8771 * alphabsd-tdep.c: New file.
8772 * alphabsd-tdep.h: New file.
8773 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8774 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8775 alphabsd_supply_fpreg.
8776 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8777 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8778
361d1df0
EC
87792002-05-11 Eric Christopher <echristo@redhat.com>
8780
8781 * mips-tdep.c (mips_double_register_type): Fix thinko.
8782 (mips_single_register_type): Ditto.
8783 * MAINTAINERS: Add self.
8784
92dd7cee
MK
87852002-05-11 Mark Kettenis <kettenis@gnu.org>
8786
8787 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8788 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8789 right thing on architectures with different endianness and/or
8790 integer sizes.
8791
e27da16d
JT
87922002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8793
8794 From Christian Limpach <chris@Pin.LU>
8795 * configure.in: Change sed expression which comments out
8796 NATDEPFILES to also comment out continuation lines.
8797 * configure: Regenerate.
8798
ddde02bd
EZ
87992002-05-10 Elena Zannoni <ezannoni@redhat.com>
8800
8801 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8802 big patch.
8803
1c922164
EZ
88042002-05-10 Elena Zannoni <ezannoni@redhat.com>
8805
8806 * sh-tdep.c: Include correct file.
8807
283150cd
EZ
88082002-05-10 Elena Zannoni <ezannoni@redhat.com>
8809
8810 New support for sh64-elf (sh5) target.
8811
8812 * configure.tgt: For sh64-elf target, default to sh-elf.
8813
8814 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8815 (struct gdbarch_tdep): Add new fields for new registers and ABI
8816 info.
361d1df0 8817
283150cd
EZ
8818 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8819 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8820 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8821 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8822 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8823 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8824 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8825 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8826 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8827 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8828 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8829 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8830 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8831 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8832 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8833 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8834 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8835 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8836 sign_extend, sh64_nofp_frame_init_saved_regs,
8837 sh64_init_extra_frame_info, sh64_get_saved_register,
8838 sh64_extract_struct_value_address, sh64_pop_frame,
8839 sh64_push_arguments, sh64_extract_return_value,
8840 sh64_store_return_value, sh64_show_media_regs,
8841 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8842 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8843 sh_sh64_register_virtual_type,
8844 sh_sh64_register_convert_to_virtual,
8845 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8846 sh64_register_read, sh64_pseudo_register_write,
8847 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8848 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8849 sh64_do_pseudo_register, sh_compact_do_registers_info,
8850 sh64_do_registers_info, sh_gdbarch_init): New functions.
8851
3117ed25
EZ
88522002-05-10 Elena Zannoni <ezannoni@redhat.com>
8853
8854 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8855
2654e6d4
DJ
88562002-05-10 Daniel Jacobowitz <drow@mvista.com>
8857
8858 * linespec.c (decode_line_1): Check for a double quote after
8859 a filename correctly.
8860
9ab3e532
JB
88612002-05-10 Jim Blandy <jimb@redhat.com>
8862
8863 Properly track the size of the current objfile's .debug_line section.
8864 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8865 (DWARF_LINE_SIZE): New macro.
8866 (dwarf2_build_psymtabs_hard): Record the line section's size in
8867 the partial symbol table.
8868 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8869 symbol table.
8870
126fa72d
PS
88712002-05-10 Petr Sorfa <petrs@caldera.com>
8872
8873 * ia64-tdep.c: Handle breakpoints on L instruction type
8874 in MLX instruction bundle by moving the breakpoint to
8875 the third slot (X instruction type) as L holds only data.
8876
1f077a3e
KB
88772002-05-10 Kevin Buettner <kevinb@redhat.com>
8878
8879 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8880 (process_one_symbol): Complain about discarding local symbols
8881 due to a misplaced N_LBRAC entry.
8882
8120c9d5 88832002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8884
8885 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8886 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8887 decrease the depth we are at, in the case of templates.
361d1df0 8888
67b2c998
DJ
88892002-05-09 Daniel Jacobowitz <drow@mvista.com>
8890
8891 * mips-tdep.c (mips_float_register_type): New function.
8892 (mips_double_register_type): New function.
8893 (mips_print_register): Use them.
8894 (do_fp_register_row): Likewise.
8895
fd326606
DJ
88962002-05-09 Daniel Jacobowitz <drow@mvista.com>
8897
6609d9af 8898 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8899 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8900 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8901
bef35864
MS
89022002-05-09 Michael Snyder <msnyder@redhat.com>
8903
8904 * remote-rdp.c (remote_rdp_can_run): Remove.
8905
c55a3f73
TT
89062002-05-09 Tom Tromey <tromey@redhat.com>
8907
8908 * jv-valprint.c (java_val_print): Handle `char' as a special case
8909 of TYPE_CODE_INT.
8910
b8d5e71d
MS
89112002-05-09 Michael Snyder <msnyder@redhat.com>
8912
8913 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8914 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8915 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8916 str r(0123),[sp,#nn].
361d1df0 8917 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8918 order-independent by placing it in a loop.
8919
e2cd42dd
MS
89202002-05-06 Michael Snyder <msnyder@redhat.com>
8921
8922 * stabsread.c (read_type): Add recognition for new attribute:
8923 "@V;" means that an array type is actually a vector.
8924 This is analogous to the vector flag that's been added to dwarf2.
8925
3ce1502b
MK
89262002-05-09 Mark Kettenis <kettenis@gnu.org>
8927
8928 * i386-tdep.h (i386_abi): New enum.
8929 (struct gdbarch_tdep): Replace os_ident member with abi.
8930 (i386_gdbarch_register_os_abi): New prototype.
8931 * i386-tdep.c (i386_abi_names): New array.
8932 (process_note_abi_tag_sections): Removed.
8933 (process_note_sections): New function.
8934 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8935 (struct i386_abi_handler): New struct.
8936 (i386_abi_handler_list): New variable.
8937 (i386_gdbarch_register_os_abi): New function.
8938 (i386_gdbarch_init): Adapt for the changes given above.
8939
084c156a
DJ
89402002-05-08 Daniel Jacobowitz <drow@mvista.com>
8941
8942 * gregset.h: Say "GNU/Linux".
8943
6599f021
EZ
89442002-05-08 Elena Zannoni <ezannoni@redhat.com>
8945
8946 * gdbtypes.c : Add new builtin type for 64 bit vectors.
8947 (build_gdbtypes): Build builtin_type_v2_float.
8948 (_initialize_gdbtypes): Register new builtin type.
8949
40af4b0c
AC
89502002-05-08 Andrew Cagney <ac131313@redhat.com>
8951
8952 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
8953 (clear_gdbarch_swap): New function.
8954 (initialize_non_multiarch): Call.
8955 (gdbarch_update_p): Before calling init(), swap out and clear the
8956 existing architecture.
8957 * gdbarch.c: Regenerate.
8958
4fe84f46
JT
89592002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8960
8961 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
8962 alphanbsd-tdep.c.
8963
4015edd1
JT
89642002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8965
8966 * sh-nbsd-nat.c: Rename to...
8967 * shnbsd-nat.c: ...this.
8968 * sh-nbsd-tdep.c: Rename to...
8969 * shnbsd-tdep.c: ...this.
8970 * sh-nbsd-tdep.h: Rename to...
8971 * shnbsd-tdep.h: ...this.
8972 * config/sh/nbsd.mh: Use shnbsd-nat.o.
8973 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
8974
0e2bd219
RE
89752002-05-08 Richard Earnshaw <rearnsha@arm.com>
8976
8977 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
8978 concatenation for command help messages.
8979
13a38d45
JT
89802002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8981
8982 * NEWS: Note new sh*-*-netbsdelf* configuration.
8983 * configure.host: Set gdb_host_cpu to sh for all sh*.
8984 (sh*-*-netbsdelf*): New host.
8985 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
8986 (sh*-*-netbsdelf*): New target.
8987 * sh-nbsd-nat.c: New file.
8988 * sh-nbsd-tdep.c: New file.
8989 * sh-nbsd-tdep.h: New file.
8990 * config/sh/nbsd.mh: New file.
8991 * config/sh/nbsd.mt: New file.
8992 * config/sh/nm-nbsd.h: New file.
8993 * config/sh/tm-nbsd.h: New file.
8994
d658f924
JT
89952002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
8996
8997 * sh-tdep.c (sh_osabi_names): Declare.
8998 (process_note_abi_tag_sections): New function.
8999 (get_elfosabi): Ditto.
9000 (sh_gdbarch_register_os_abi): Ditto.
9001 (sh_dump_tdep): Ditto.
9002 _initialize_sh_tdep): Use gdbarch_register to register
9003 sh_gdbarch_init and sh_dump_tdep.
9004 * config/sh/tm-sh.h (sh_osabi): Declare.
9005 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9006
848cfffb
AC
90072002-05-07 Andrew Cagney <ac131313@redhat.com>
9008
9009 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9010 (thumb_scan_prologue): Ditto.
9011 (arm_find_callers_reg): Ditto.
9012 (arm_frame_chain): Ditto.
9013 (arm_init_extra_frame_info): Ditto.
9014 (arm_frame_saved_pc): Ditto.
9015 (arm_pop_frame): Ditto.
9016 (arm_push_return_address): New function.
9017 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9018 call_dummy_location, call_dummy_breakpoint_offset_p,
9019 call_dummy_breakpoint_offset, call_dummy_p,
9020 call_dummy_stack_adjust_p, call_dummy_words,
9021 sizeof_call_dummy_words, call_dummy_start_offset,
9022 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9023 call_dummy_address, push_return_address and push_dummy_frame for
9024 generic dummy frames.
9025
e7d717c0
JT
90262002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9027
9028 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9029 size computation for alloca.
9030 (sh_fp_frame_init_saved_regs): Likewise.
9031
7bbcf283
RE
90322002-05-07 Richard Earnshaw <rearnsha@arm.com>
9033
9034 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9035 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9036 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9037 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9038 * remote-rdp.c (remote_rdp_fetch_register): Use
9039 ARM_MAX_REGISTER_RAW_SIZE.
9040 (remote_rdp_store_register): Likewise.
9041
4657573b
ML
90422002-05-07 Michal Ludvig <mludvig@suse.cz>
9043
361d1df0 9044 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9045 added default labels to switch {} statements.
9046 * x86-64-tdep.c: Ditto.
9047 * x86-64-linux-nat.c: Ditto.
9048
010f3b2f
JT
90492002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9050
9051 * solib.h: Protect against multiple inclusion.
9052
debd256d
JB
90532002-05-06 Jim Blandy <jimb@redhat.com>
9054
9ab3e532
JB
9055 Add first preprocessor macro-expansion files.
9056 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9057 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9058 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9059 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9060 (COMMON_OBS): Add macrotab.o, macroexp.o.
9061 (macroexp.o, macrotab.o): New rules.
9062
debd256d
JB
9063 Separate the job of reading the line number info statement program
9064 header (...expialidocious) out into its own function.
9065 * dwarf2read.c (struct line_head, struct filenames, struct
9066 directories): Replace with...
9067 (struct line_header): New structure, containing the full
9068 contents of the statement program header, including the
9069 include directory and file name tables.
9070 (read_file_scope): If we have line number info, instead of just
9071 calling dwarf_decode_lines to do all the work, call
9072 dwarf_decode_line_header first to get a `struct line_header'
9073 containing the data in the statement program header, and then
9074 pass that to dwarf_decode_lines, which will pick up where that
9075 left off. Be sure to clean up the `struct line_header' object.
9076 (dwarf_decode_line_header, free_line_header, add_include_dir,
9077 add_file_name): New functions.
9078 (dwarf_decode_lines): Move all the code to read the statement
9079 program header into dwarf_decode_line_header. Take the line
9080 header it built as the first argument, instead of the offset to
9081 the compilation unit's line number info. Use the new `struct
9082 line_header' type instead of the old structures. No need to do
9083 cleanups here now, since we don't allocate anything.
9084 (dwarf2_statement_list_fits_in_line_number_section,
9085 dwarf2_line_header_too_long): New complaints.
9086
ac3aafc7
EZ
90872002-05-06 Elena Zannoni <ezannoni@redhat.com>
9088
9089 * gdbtypes.c (init_vector_type): New function.
9090 (build_builtin_type_vec128): Simplify the representation of SIMD
9091 registers.
9092 (build_gdbtypes): Initialize new builtin vector types.
9093 (_initialize_gdbtypes): Register new vector types with gdbarch.
9094 (builtin_type_v4_float, builtin_type_v4_int32,
9095 builtin_type_v8_int16, builtin_type_v16_int8,
9096 builtin_type_v2_int32, builtin_type_v4_int16,
9097 builtin_type_v8_int8): New (renamed) SIMD types.
9098
13e49980
MK
90992002-05-06 Mark Kettenis <kettenis@gnu.org>
9100
9101 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9102 (i387_fill_fxsave): Likewise.
9103
997b20b8
AO
91042002-05-05 Alexandre Oliva <aoliva@redhat.com>
9105
9106 * alpha-tdep.c (alpha_extract_return_value): Don't use
9107 non-constant array size in prototype.
9108
535c96ce
AC
91092002-05-04 Andrew Cagney <ac131313@redhat.com>
9110
9111 From Brian Taylor <briant at model dot com>:
9112 * ui-out.c (ui_out_field_core_addr): Use the function
9113 longest_local_hex_string_custom'to format addresses > 32 bits
9114 wide.
9115
9116 * ui-out.c (ui_out_field_core_addr): Update comment.
9117
bedfa57b
AC
91182002-05-04 Andrew Cagney <ac131313@redhat.com>
9119
9120 * stack.c (select_and_print_frame): Make static. Delete the
9121 parameter `level'.
9122 (func_command): Update call.
9123 (select_frame_command): Delete code computing the frame level.
9124 * frame.h (select_and_print_frame): Delete declaration.
9125
f621c63e
AC
91262002-05-04 Andrew Cagney <ac131313@redhat.com>
9127
9128 * sparc-tdep.c (sparc_get_saved_register): Comment why
9129 get_prev_frame call is safe.
9130
0f7d239c
AC
91312002-05-04 Andrew Cagney <ac131313@redhat.com>
9132
9133 * frame.h (select_frame): Delete level parameter.
9134 * stack.c (select_frame): Update. Use frame_relative_level to
9135 obtain the frame's level.
9136 (select_and_print_frame): Update call.
9137 (select_frame_command): Ditto.
9138 (up_silently_base): Ditto.
9139 (down_silently_base): Ditto.
9140 * ocd.c (ocd_start_remote): Ditto.
9141 * remote-rdp.c (remote_rdp_open): Ditto.
9142 * remote-mips.c (mips_initialize): Ditto.
9143 (common_open): Ditto.
9144 * remote-e7000.c (e7000_start_remote): Ditto.
9145 * m3-nat.c (select_thread): Ditto.
9146 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9147 (child_get_current_exception_event): Ditto.
9148 * varobj.c (varobj_create): Ditto.
9149 (varobj_update): Ditto.
9150 (c_value_of_root): Ditto.
9151 * tracepoint.c (finish_tfind_command): Ditto.
9152 * corelow.c (core_open): Ditto.
9153 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9154 * thread.c (info_threads_command): Ditto.
9155 (switch_to_thread): Ditto.
9156 * infrun.c (normal_stop): Ditto.
9157 (restore_selected_frame): Ditto.
9158 (restore_inferior_status): Ditto.
9159 * breakpoint.c (insert_breakpoints): Ditto.
9160 (watchpoint_check): Ditto.
9161 (bpstat_stop_status): Ditto.
9162 (do_enable_breakpoint): Ditto.
9163 * blockframe.c (flush_cached_frames): Ditto.
9164 (reinit_frame_cache): Ditto.
9165
71d6c7b1
AC
91662002-05-04 Andrew Cagney <ac131313@redhat.com>
9167
9168 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9169 maintainer.
9170
cda6c68a
JB
91712002-05-04 Jim Blandy <jimb@redhat.com>
9172
9173 * gdbtypes.c (replace_type): Doc fix.
9174
5c1c87f0
AC
91752002-05-04 Andrew Cagney <ac131313@redhat.com>
9176
9177 * valprint.c (strcat_longest): Delete commented out function.
9178 Update copyright.
9179
cd9bfe15
AC
91802002-05-04 Andrew Cagney <ac131313@redhat.com>
9181
9182 * MAINTAINERS: Mark a29k as deleted.
9183 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9184 Move new configurations to the top.
9185 * configure.tgt: Remove a29k.
9186 * config/a29k/tm-vx29k.h: Delete.
9187 * config/a29k/vx29k.mt: Delete.
9188 * config/a29k/tm-a29k.h: Delete.
9189 * config/a29k/a29k-udi.mt: Delete.
9190 * config/a29k/a29k.mt: Delete.
9191 * a29k-tdep.c: Delete.
9192 * remote-udi.c: Delete.
9193 * remote-mm.c: Delete.
9194 * remote-eb.c: Delete.
9195 * remote-adapt.c: Delete.
9196 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9197 * config/s390/s390x.mt: Ditto.
9198 * config/s390/s390.mt: Ditto.
9199 * config/sparc/sparclynx.mh: Ditto.
9200 * config/sparc/linux.mh: Ditto.
9201 * config/pa/hppaosf.mh: Ditto.
9202 * config/pa/hppabsd.mh: Ditto.
9203 * config/ns32k/nbsd.mt: Ditto.
9204 * config/mips/vr5000.mt: Ditto.
9205 * config/m68k/sun3os4.mh: Ditto.
9206 * config/m68k/nbsd.mt: Ditto.
9207 * config/m68k/m68klynx.mh: Ditto.
9208 * config/m32r/m32r.mt: Ditto.
9209 * config/i386/x86-64linux.mt: Ditto.
9210 * config/i386/nbsdelf.mt: Ditto.
9211 * config/i386/nbsd.mt: Ditto.
9212 * config/i386/i386lynx.mh: Ditto.
9213
bf0c5130
AC
92142002-05-04 Andrew Cagney <ac131313@redhat.com>
9215
9216 * target.c (debug_print_register): New function. Handle oversize
9217 registers.
9218 (debug_to_fetch_registers): Call.
9219 (debug_to_store_registers): Call.
9220
2ae1c2d2
JB
92212002-05-03 Jim Blandy <jimb@redhat.com>
9222
13a393b0
JB
9223 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9224 (read_type): Doc fix.
9225 * gdbtypes.c (replace_type): Doc fix.
9226
2ae1c2d2
JB
9227 * stabsread.c (multiply_defined_struct): New complaint.
9228 (read_struct_type): If the type we were passed isn't empty, or
9229 incomplete, don't read the new struct type into it; complain,
9230 and return the original type unchanged. Take a new `type_code'
9231 argument, which is the type code for the new type.
9232 (read_type): Rather than storing the type's type code here, pass
9233 it as an argument to read_struct_type, and let that take care of
9234 storing it. That way, we don't overwrite the original type code,
9235 so read_struct_type can use it to decide whether we're overwriting
9236 something we shouldn't.
9237 (complain_about_struct_wipeout): New function.
9238
8de9bdc4
AC
92392002-05-03 Andrew Cagney <ac131313@redhat.com>
9240
9241 * gdbarch.sh: Assert that gdbarch is non-NULL.
9242 * gdbarch.c: Regenerate.
9243
f773fdbb
JM
92442002-05-03 Jason Merrill <jason@redhat.com>
9245
9246 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9247 and return NULL.
9248
0e04a514
ML
92492002-05-03 Michal Ludvig <mludvig@suse.cz>
9250
9251 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9252 (x86_64_dwarf2gdb_regno_map_length),
9253 (x86_64_dwarf2_reg_to_regnum): Added.
9254 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9255 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9256 (_initialize_x86_64_tdep): Synced with the change above.
9257 (x86_64_skip_prologue): Reformulated message.
9258
065432a8
PM
92592002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9260
9261 * f-exp.y: Also use new prev_lexptr variable
9262 to improve error reporting. Based on Michael Snyder
9263 2002-04-24 dated patch to c-exp.y.
9264 * jv-exp.y: Likewise.
9265 * m2-exp.y: Likewise.
9266
a3162708
EZ
92672002-05-02 Elena Zannoni <ezannoni@redhat.com>
9268
9269 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9270 we are dealing with vectors.
9271
03620c38
PM
92722002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9273
9274 * config/m68k/tm-nbsd.h: Obvious fix,
9275 correct machine name.
9276
6604db2e
PM
92772002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9278
9279 * p-typeprint.c (pascal_type_print_base): Add support
9280 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9281
0906b739
PM
92822002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9283
9284 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9285 for fondamental pascal 'char' type.
9286
e2625b33
PM
92872002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9288
9289 * p-lang.h (is_pascal_string_type): Declaration changed,
9290 new sixth argument of type char ** added.
361d1df0 9291 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9292 changed. Args length_pos, length_size, string_pos, char_size
9293 can now be NULL. New argument arrayname set to the field
9294 name of the char array. Return value set to char array
9295 field index plus one.
361d1df0 9296 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9297 is_pascal_string_type function.
9298
cf17c188
AC
92992002-05-02 Andrew Cagney <cagney@redhat.com>
9300
9301 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9302 <cagney@redhat.com> change.
9303 * gdbarch.c: Regenerate.
9304
52bca491
AC
93052002-05-02 Andrew Cagney <cagney@redhat.com>
9306
9307 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9308 before probing for a new one. Detect errorenous gdbarch_init
9309 functions.
9310 * gdbarch.c: Regenerate.
9311
d5e72505
AC
93122002-05-01 Andrew Cagney <cagney@redhat.com>
9313
9314 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9315 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9316 * config/v850/tm-v850.h: Ditto. Update copyright.
9317
af566d9f
AC
93182002-04-30 Andrew Cagney <ac131313@redhat.com>
9319
9320 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9321 current_gdbarch.
9322
880d85fa
MS
93232002-04-30 Michael Snyder <msnyder@redhat.com>
9324
94c30b78
MS
9325 * arm-tdep.c: Whitespace clean-ups.
9326 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9327 should have been removed as part of 4/24 change.
9328
6f5987a6
KB
93292002-04-30 Kevin Buettner <kevinb@redhat.com>
9330
9331 * rs6000-tdep.c: Added comment describing how fpscr register
9332 numbers were chosen.
9333
1a113c93
MS
93342002-04-30 Michael Snyder <msnyder@redhat.com>
9335
9336 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9337
9a6f53fe
EZ
93382002-04-29 Elena Zannoni <ezannoni@redhat.com>
9339
9340 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9341 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9342 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9343
11ed25ac
KB
93442002-04-29 Kevin Buettner <kevinb@redhat.com>
9345
9346 From Louis Hamilton <hamilton@redhat.com>:
9347 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9348 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9349 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9350 not bfd-private xcoff data, to determine wordsize.
9351 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9352
ae232405
AC
93532002-04-29 Andrew Cagney <ac131313@redhat.com>
9354
9355 GDB 5.2 released from 5.2 branch.
9356
91fd20f7
ML
93572002-04-29 Michal Ludvig <mludvig@suse.cz>
9358
9359 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9360 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9361 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9362
2dc5091b
EZ
93632002-04-29 Elena Zannoni <ezannoni@redhat.com>
9364
9365 * rs6000-tdep.c (rs6000_extract_return_value,
9366 rs6000_store_return_value): Handle returning vectors.
9367 (rs6000_gdbarch_init): Use
9368 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9369 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9370 New function.
9371 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9372 vectors.
9373 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9374 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9375
2b9848d8
PM
93762002-04-24 Pierre Muller <ics.u-strasbg.fr>
9377
9378 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9379 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9380 with fprintf_unfiltered (gdb_stderr,...).
9381
f8d17dc5
PM
93822002-04-24 Pierre Muller <ics.u-strasbg.fr>
9383
9384 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9385 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9386 Replace fprintf (stderr,...
9387 with fprintf_unfiltered (gdb_stderr,....
9388 * remote-es.c: Likewise.
9389 * remote-os9k.c: Likewise.
9390 * remote-st.c: Likewise.
9391
2f2f1ad1
AS
93922002-04-28 Andreas Schwab <schwab@suse.de>
9393
9394 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9395 linux-proc.o and gcore.o.
9396
b6779aa2
AC
93972002-04-26 Michal Ludvig <mludvig@suse.cz>
9398
9399 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9400 code without frame pointers.
9401
7e57f5f4
AC
94022002-04-26 Andrew Cagney <ac131313@redhat.com>
9403
9404 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9405 ON_STACK is needed.
9406
2ceb85d0
BE
94072002-04-26 Ben Elliston <bje@redhat.com>
9408
9409 * target.c (do_xfer_memory): Correct reference to the new option
9410 "trust-readonly-sections".
9411
f5f8a009
EZ
94122002-04-26 Elena Zannoni <ezannoni@redhat.com>
9413
9414 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9415 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9416 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9417 vectors.
9418 (read_array_type): Record the fact that this array type is really a
9419 vector (i.e. are passed in by value).
9420
5868c862
JT
94212002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9422
9423 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9424 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9425 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9426 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9427 * alpha-linux-tdep.c: Include frame.h.
9428 (alpha_linux_sigcontext_addr): New function.
9429 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9430 alpha_linux_sigcontext_addr.
9431 * alpha-osf1-tdep.c: Include gdbcore.h.
9432 (alpha_osf1_sigcontext_addr): New function.
9433 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9434 alpha_osf1_sigcontext_addr.
9435 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9436 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9437
bfb01f37
AC
94382002-04-26 Andrew Cagney <ac131313@redhat.com>
9439
361d1df0 9440 * stack.c (selected_frame_level):
bfb01f37
AC
9441 (select_frame): Do not set selected_frame_level.
9442 * frame.h (selected_frame_level): Delete declaration.
9443
15813d3f
AC
94442002-04-26 Andrew Cagney <ac131313@redhat.com>
9445
9446 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9447 convert_from_func_ptr-addr when AIX / PowerOpen.
9448
6096c27a
AC
94492002-04-25 Andrew Cagney <ac131313@redhat.com>
9450
9451 * valops.c (hand_function_call): Call
9452 generic_save_call_dummy_addr.
9453 * frame.h (generic_save_call_dummy_addr): Declare.
9454 * blockframe.c (struct dummy_frame): Add fields call_lo and
9455 call_hi.
9456 (generic_find_dummy_frame): Check for PC in range call_lo to
9457 call_hi instead of entry_point_address.
9458 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9459 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9460 (generic_save_call_dummy_addr): New function.
9461
f510d44e
DM
94622002-04-24 David S. Miller <davem@redhat.com>
9463
9464 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9465 sparc_skip_prologue.
9466 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9467 information to find prologue when possible.
9468 (sparc_prologue_frameless_p): Call examine_prologue directly.
9469 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9470 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9471 second argument.
9472 (SKIP_PROLOGUE): Likewise.
9473
15d72a92
JT
94742002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9475
9476 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9477 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9478 indicate that the condition it was testing is always true.
9479 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9480 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9481 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9482
accc6d1f
JT
94832002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9484
9485 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9486 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9487 tdep->jb_pc and tdep->jb_elt_size.
9488 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9489 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9490 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9491 * alpha-nat.c (get_longjmp_target): Remove.
9492 (JB_ELEMENT_SIZE): Ditto.
9493 (JB_PC): Ditto.
9494 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9495 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9496 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9497 to alpha_get_longjmp_target.
9498 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9499 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9500 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9501
1bfdc549
AC
95022002-04-25 Andrew Cagney <ac131313@redhat.com>
9503
9504 * README: Update to GDB 5.2.
9505
1bd316f0
AC
95062002-04-25 Andrew Cagney <ac131313@redhat.com>
9507
9508 * gdbarch.sh (LC_ALL): Set to `c'.
9509
2e5ff58c
TR
95102002-04-25 Theodore A. Roth <troth@verinet.com>
9511
9512 * avr-tdep.c: Ran through gdb_indent.sh.
9513
e33ce519
TR
95142002-04-25 Theodore A. Roth <troth@verinet.com>
9515
9516 * MAINTAINERS: Add myself as AVR maintainer.
9517 * NEWS: Note new target avr.
9518
8818c391
TR
95192002-04-25 Theodore A. Roth <troth@verinet.com>
9520
9521 * Makefile.in: Add support for AVR target.
9522 * configure.tgt: Add support for AVR target.
9523 * avr-tdep.c: New file
9524 * config/avr/avr.mt: New file.
9525
79509c2d
TR
95262002-04-25 Theodore A. Roth <troth@verinet.com>
9527
9528 * MAINTAINERS: Add myself to write-after-approval.
9529
dac8068e
PM
95302002-04-24 Pierre Muller <ics.u-strasbg.fr>
9531
9532 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9533 with fprintf_unfiltered (gdb_stderr,....
9534
25bf3106
PM
95352002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9536
9537 Fix PR gdb/508.
9538 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9539
24467a86
PM
95402002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9541
9542 * p-exp.y: Also use new prev_lexptr variable
9543 to improve error reporting. Based on Michael Snyder
9544 2002-04-24 dated patch to c-exp.y.
9545
95b80706
JT
95462002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9547
9548 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9549 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9550 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9551 to 0.
9552 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9553 and struct value.
9554 (FUNCTION_START_OFFSET): Remove.
9555 (BREAKPOINT): Ditto.
9556
e90cc612
JT
95572002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9558
9559 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9560 * NEWS: Ditto.
9561
6c72f9f9
JT
95622002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9563
9564 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9565 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9566 alpha_linux_pc_in_sigtramp.
9567 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9568 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9569 alpha_osf1_pc_in_sigtramp.
9570 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9571 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9572 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9573 alphafbsd_pc_in_sigtramp.
9574 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9575 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9576 alphanbsd_pc_in_sigtramp.
9577 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9578 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9579
5e4f3379
JT
95802002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9581
9582 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9583
da8ca43d
JT
95842002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9585
9586 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9587 alphanbsd-tdep.c.
9588 (alphanbsd-nat.o): New dependency list.
9589 (alphanbsd-tdep.o): Ditto.
9590 * NEWS: Note new native NetBSD/alpha configuration.
9591 * alphanbsd-nat.c: New file.
9592 * alphanbsd-tdep.c: Ditto.
9593 * configure.host (alpha*-*-netbsd*): New host.
9594 * configure.tgt (alpha*-*-netbsd*): New target.
9595 * config/alpha/nbsd.mh: New file.
9596 * config/alpha/nbsd.mt: Ditto.
9597 * config/alpha/nm-nbsd.h: Ditto.
9598 * config/alpha/tm-nbsd.h: Ditto.
9599
36a6271d
JT
96002002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9601
9602 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9603 (alpha-osf1-tdep.o): New dependency list.
9604 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9605 and skip_sigtramp_frame members.
9606 * alpha-linux-tdep.c: Include gdbcore.h.
9607 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9608 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9609 * alpha-osf1-tdep.c: New file.
9610 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9611 alpha-osf1-dep.c.
9612 (alpha_frame_past_sigtramp_frame): New function.
9613 (alpha_dynamic_sigtramp_offset): Ditto.
9614 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9615 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9616 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9617 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9618 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9619 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9620 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9621 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9622 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9623 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9624 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9625 to find_solib_trampoline_target.
9626 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9627 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9628 (SKIP_TRAMPOLINE_CODE): Remove.
9629 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9630 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9631 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9632 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9633 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9634 (PROC_SIGTRAMP_MAGIC): Ditto.
9635 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9636 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9637 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9638 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9639 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9640
2f4bc57b
JT
96412002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9642
9643 * NEWS: Note that Alpha targets are now multi-arch.
9644
665132f9
MS
96452002-04-24 Michael Snyder <msnyder@redhat.com>
9646
9647 * parser-defs.h (prev_lexptr): New external variable.
9648 * parse.c (parse_exp_1): Set prev_lexptr to null before
9649 calling the language-specific parser.
9650 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9651 (yyerror): Use prev_lexptr in error reporting.
9652
32872fa7
DJ
96532002-04-24 Daniel Jacobowitz <drow@mvista.com>
9654
9655 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9656 * gregset.h: If FILL_FPXREGSET is defined, provide
9657 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9658 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9659 is defined, call fill_fpxregset.
9660
57e76fac
MS
96612002-04-24 Roland McGrath <roland@frob.com>
9662
9663 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9664 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9665 (supply_gregset, supply_fpregset): New functions.
9666
9667 * gnu-nat.c (gnu_find_memory_regions): New function.
9668 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9669 (gnu_xfer_memory): Add a cast.
9670
f43845b3
MS
96712002-04-24 Michael Snyder <msnyder@redhat.com>
9672
361d1df0 9673 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9674 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9675 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9676 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9677 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9678 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9679
a0abec03
AC
9680Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9681
9682 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9683 NUM_PSEUDO_REGS can be used.
9684
d7bd68ca
AC
96852002-04-24 Andrew Cagney <ac131313@redhat.com>
9686
9687 * arch-utils.h: Update copyright.
9688
9689 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9690 * gdbarch.h, gdbarch.c: Re-generate.
9691
9692 * inferior.h (IN_SIGTRAMP): Delete definition.
9693 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9694 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9695
9696 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9697 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9698 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9699 (find_proc_framesize): Ditto.
9700 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9701 (alpha_init_extra_frame_info): Ditto.
9702 * infrun.c (handle_inferior_event): Ditto.
9703 (handle_inferior_event): Ditto.
9704 (check_sigtramp2): Ditto.
9705 * blockframe.c (create_new_frame): Ditto.
9706 (get_prev_frame): Ditto.
9707 * ppc-linux-tdep.c: Update comments.
9708 * i386-linux-tdep.c: Update comments.
9709 * breakpoint.c (bpstat_what): Update comment.
9710
4867e41e
DM
97112002-04-24 David S. Miller <davem@redhat.com>
9712
21d83aa5
DM
9713 * i960-tdep.c (register_in_window_p): New function.
9714 (i960_find_saved_register): Use it instead of
9715 REGISTER_IN_WINDOW_P.
9716 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9717
4867e41e
DM
9718 * symtab.h (find_stab_function_addr): Kill extern.
9719 * minsyms.c (find_stab_function_addr): Remove from here...
9720 * dbxread.c: ... to here, and mark it static.
9721
69cdf6a2
DM
97222002-04-20 David S. Miller <davem@redhat.com>
9723
9724 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9725 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9726
5a595886
DM
97272002-04-21 David S. Miller <davem@redhat.com>
9728
9729 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9730 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9731 (vx_write_register): Likewise.
9732
1da1a192
JB
97332002-04-23 J. Brobecker <brobecker@gnat.com>
9734
9735 * source.c (is_regular_file): New function.
9736 (openp): Check wether file to open is a regular file
9737 to avoid opening directories.
9738
baa6f10b
JT
97392002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9740
9741 * findvar.c (extract_signed_integer): Cast printf argument
9742 to suppress format warning.
9743 (extract_unsigned_integer): Likewise.
9744 * infcmd.c (registers_info): Likewise.
9745 * top.c (get_prompt_1): Likewise.
9746 * valops.c (value_assign): Likewise.
9747 * valprint.c (print_decimal): Likewise.
9748
b2c4da81
L
97492002-04-22 H.J. Lu (hjl@gnu.org)
9750
9751 * c-exp.y (typebase): Support
361d1df0 9752
b2c4da81
L
9753 [long|long long|short] [signed|unsigned] [int|]
9754
9755 and
9756
9757 signed [long|long long|short] int
9758
f267bd6a
JT
97592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9760
9761 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9762 and vax-tdep.h.
9763 * vax-tdep.h: New file.
9764 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9765 Make several routines static.
9766 (vax_get_saved_register): New function.
9767 (vax_gdbarch_init): New function.
9768 (_initialize_vax_tdep): Register vax_gdbarch_init.
9769 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9770 Remove macros now under the control of gdbarch.
9771
da3c6d4a
MS
97722002-04-22 Michael Snyder <msnyder@redhat.com>
9773
11d3b27d
MS
9774 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9775 Some whitespace and coding standards tweaks.
da3c6d4a 9776
a33f7558
JT
97772002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9778
9779 * vax-tdep.c: Include regcache.h.
9780 (vax_call_dummy_words): New.
9781 (sizeof_vax_call_dummy_words): New.
9782 (vax_fix_call_dummy): New function.
9783 (vax_saved_pc_after_call): Ditto.
9784 * config/vax/tm-vax.h: Don't include regcache.h.
9785 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9786 (CALL_DUMMY): Remove.
9787 (CALL_DUMMY_WORDS): Define.
9788 (SIZEOF_CALL_DUMMY_WORDS): Define.
9789 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9790
47a73475
MS
97912002-04-18 Michael Snyder <msnyder@redhat.com>
9792
9793 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9794
52efde73
JT
97952002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9796
9797 * vax-tdep.c (vax_frame_chain): New function.
9798 (vax_push_dummy_frame): Ditto.
9799 (vax_pop_frame): Ditto.
9800 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9801 (FRAMELESS_FUNCTION_INVOCATION): Use
9802 generic_frameless_function_invocation_not.
9803 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9804 (POP_FRAME): Use vax_pop_frame.
9805
ea74468c
JT
98062002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9807
9808 * vax-tdep.c (vax_store_struct_return): New function.
9809 (vax_extract_return_value): Ditto.
9810 (vax_store_return_value): Ditto.
9811 (vax_extract_struct_value_address): Ditto.
9812 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9813 vax_store_struct_return.
9814 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9815 (STORE_RETURN_VALUE): Use vax_store_return_value.
9816 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9817
5516aa92
JT
98182002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9819
9820 * vax-tdep.c (vax_frame_saved_pc): New function.
9821 (vax_frame_args_address_correct): Ditto.
9822 (vax_frame_args_address): Ditto.
9823 (vax_frame_locals_address): Ditto.
9824 (vax_frame_num_args): Move code to be in proximity to
9825 other frame-related functions.
9826 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9827 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9828 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9829 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9830 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9831
36af0b35
L
98322002-04-22 H.J. Lu (hjl@gnu.org)
9833
9834 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9835 includedir.
9836
ab62c900
JT
98372002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9838
9839 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9840 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9841 (FRAME_INIT_SAVED_REGS): New macro.
9842
7232b100
JT
98432002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9844
9845 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9846
b70d2aee
JT
98472002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9848
9849 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9850 where needed.
9851 (fetch_osf_core_registers): Likewise.
9852 (supply_gregset): Likewise.
9853
a0e8a2d1 98542002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9855
a0e8a2d1
JB
9856 * symfile.h (get_section_index): Define.
9857 * symfile.c (get_section_index): New function.
9858 * mdebugread.c (SC_IS_SBSS): New macro.
9859 (SC_IS_BSS): Return true for the scBss storage class only, as
9860 the scSBss storage class refers to the .sbss section.
9861 (parse_partial_symbols): Discard the symbols which associated
9862 section does not exist.
9863 Make sure to use the .sbss section index for symbols which
9864 storage class is scBss, rather than using the .bss section index.
9865
51eb8b08
JT
98662002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9867
9868 * vax-tdep.c: Update copyright years.
9869 (vax_register_name): New function.
9870 (vax_register_byte): Ditto.
9871 (vax_register_raw_size): Ditto.
9872 (vax_register_virtual_size): Ditto.
9873 (vax_register_virtual_type): Ditto.
9874 * config/vax/tm-vax.h: Update copyright years.
9875 (REGISTER_NAMES): Remove.
9876 (REGISTER_NAME): Define.
9877 (REGISTER_BYTE): Use vax_register_byte.
9878 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9879 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9880 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9881
6cc1c0a8
AC
98822002-04-21 Andrew Cagney <ac131313@redhat.com>
9883
9884 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9885 declaration
9886 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9887
9319a2fe
DM
98882002-04-21 David S. Miller <davem@redhat.com>
9889
9890 * arch-utils.c (generic_prologue_frameless_p): Kill
9891 SKIP_PROLOGUE_FRAMELESS_P code.
9892 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9893 references.
9894 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9895 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9896 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9897 references.
9898 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9899 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9900 (sparc_gdbarch_init): Pass it to
9901 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9902
e9ed6d01
JT
99032002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9904
9905 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9906 (alphabsd-nat.o): New dependency list.
9907
36012033
JT
99082002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9909
9910 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9911 alphafbsd-tdep.c.
9912 (alpha-linux-tdep.o): New dependency list.
9913 (alphafbsd-tdep.o): Likewise.
9914
3379287a
JT
99152002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9916
9917 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9918 to here...
9919 * alpha-tdep.c: ...from here.
9920 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9921
4bcbd6cb
JT
99222002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9923
9924 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9925 prototype from here...
9926 * alpha-tdep.h: ...to here.
9927
b31da25e
AC
99282002-04-21 Andrew Cagney <ac131313@redhat.com>
9929
9930 * frame.h (selected_frame_level): Document as deprecated.
9931 (frame_relative_level): Declare.
9932 * stack.c (frame_relative_level): New function.
9933 (selected_frame_level): Document as deprecated.
9934 (select_frame): Do not set the selected_frame_level.
9935
9936 * stack.c (frame_info, record_selected_frame): Update.
9937 (frame_command, current_frame_command): Update.
9938 (up_silently_base, up_command, down_silently_base): Update.
9939 (down_command): Update.
9940 * inflow.c (kill_command): Update.
9941 * tracepoint.c (finish_tfind_command): Update.
9942 * corelow.c (core_open): Update.
9943 * thread.c (info_threads_command): Update.
9944 (do_captured_thread_select): Update.
9945 * infcmd.c (finish_command): Update.
9946 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
9947
9c1d6fe5
JT
99482002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9949
9950 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
9951
ab89facf
AC
99522002-04-21 Andrew Cagney <ac131313@redhat.com>
9953
9954 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
9955 type const.
9956
82a4efa1
JT
99572002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9958
9959 * alphafbsd-tdep.c: Update copyright years. Include
9960 alpha-tdep.h.
9961 (alphafbsd_use_struct_convention): Make static.
9962 (alphafbsd_init_abi): New function.
9963 (_initialize_alphafbsd_tdep): New function.
9964 * config/alpha/tm-fbsd.h: Update copyright years.
9965 (USE_STRUCT_CONVENTION): Remove.
9966
44dffaac
JT
99672002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9968
9969 * alpha-tdep.c (alpha_abi_handler): New structure to describe
9970 an Alpha ABI variant.
9971 (alpha_abi_handler_list): Declare.
9972 (alpha_gdbarch_register_os_abi): New function.
9973 (alpha_gdbarch_init): Give registered ABI variant handlers a
9974 chance to tweak the gdbarch once we have set up defaults.
9975 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
9976
65585be4
JT
99772002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9978
9979 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
9980 to standard_coerce_float_to_double.
9981 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
9982
d9b023cc
JT
99832002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9984
9985 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
9986 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
9987 from gdbarch_tdep rather than a constant.
9988 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
9989 the default text address for all Alpha Unix ABIs.
9990 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
9991 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
9992
dc129d82
JT
99932002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9994
9995 * alpha-tdep.h: New file. Includes several Alpha target constants
9996 taken from...
9997 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
9998 let gdbarch deal with.
9999 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10000 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10001 to dependency list.
10002 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10003 Alpha target register names.
10004 * alphabsd-nat.c: Likewise.
10005 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10006 Alpha target register names. Make serveral routines static.
10007 (alpha_get_saved_register): New function.
10008 (alpha_abi_names): New.
10009 (process_note_abi_tag_sections): New function.
10010 (get_elfosabi): New function.
10011 (alpha_gdbarch_init): New function.
10012 (alpha_dump_tdep): New function.
10013 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10014
d49d1e0a
AC
100152002-04-21 Andrew Cagney <ac131313@redhat.com>
10016
10017 * frame.c (find_saved_register): Delete #ifdef
10018 HAVE_REGISTER_WINDOWS code.
10019 * config/sparc/tm-sparc.h: Update comments.
10020 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10021
92e8c9ed
AC
100222002-04-21 Andrew Cagney <ac131313@redhat.com>
10023
10024 * i960-tdep.c (i960_find_saved_register): New function.
10025 (i960_get_saved_register): New function.
10026 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10027 (i960_get_saved_register): Declare.
10028 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10029
e1925118
DM
100302002-04-20 David S. Miller <davem@redhat.com>
10031
10032 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10033
29673b29
AC
100342002-04-20 Andrew Cagney <ac131313@redhat.com>
10035
10036 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10037 instead of NUM_PSEUDO_REGS.
10038
6c86dcd5
DM
100392002-04-20 David S. Miller <davem@redhat.com>
10040
10041 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10042 GDB_MULTI_ARCH_PARTIAL
10043 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10044 define, let tm-sp64.h do it.
10045
aa40ec90
JT
100462002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10047
10048 * frame.c (find_saved_register): Avoid a NULL pointer
10049 dereference and actually walk the frame list.
10050
0f79675b
AC
100512002-04-20 Andrew Cagney <ac131313@redhat.com>
10052
10053 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10054 sorted in most most-recent-used order. Document.
10055 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10056
f91305dd 100572002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10058
10059 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10060 instead of ->prev.
10061 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10062 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10063 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10064 instead of ->prev.
10065
73d322b1
EZ
100662002-04-19 Elena Zannoni <ezannoni@redhat.com>
10067
10068 Fix PR gdb/471.
10069 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10070 (build_builtin_type_vec128): Ditto.
10071 (append_composite_type_field): Fix calculation of type length in
10072 union case.
10073
ccd9a834
EZ
100742002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10075
10076 * config/djgpp/README: Update.
10077
10078 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10079 compiler warnings.
10080
a57f9e49
JT
100812002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10082
10083 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10084 (alpha_setup_arbitrary_frame): ...to this.
10085 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10086 for alpha_setup_arbitrary_frame.
10087
f4f9705a
AC
100882002-04-18 Andrew Cagney <cagney@redhat.com>
10089
10090 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10091 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10092
f4f9705a
AC
10093 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10094 * target.h (memory_breakpoint_from_pc): Update declaration.
10095 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10096
10097 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10098 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10099 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10100 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10101 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10102 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10103 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10104 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10105 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10106 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10107 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10108 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10109
10110 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10111 const pointer.
10112 * monitor.c (monitor_insert_breakpoint): Ditto.
10113 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10114
10115 * config/mcore/tm-mcore.h: Update copyright.
10116 * mem-break.c: Ditto.
10117 * xstormy16-tdep.c: Ditto.
10118
29f319b8
PM
101192002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10120
10121 * p-exp.y: Add precedence rule for '^' token.
10122 This removes the shift/reduce conflicts.
10123 Remove the comment concerning these shift/reduce conflicts.
10124
ebeac11a
EZ
101252002-04-18 Elena Zannoni <ezannoni@redhat.com>
10126
10127 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10128 (registers_powerpc_nofp): New register set for processors
10129 without floating point unit.
10130
27c31547
DM
101312002-04-18 David S. Miller <davem@redhat.com>
10132
10133 * MAINTAINERS: Add myself to write-after-approval.
10134
47a73475
MS
101352002-04-17 Michael Snyder <msnyder@redhat.com>
10136
10137 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10138
953836b2
AC
101392002-04-17 Andrew Cagney <ac131313@redhat.com>
10140
10141 * rs6000-tdep.c (frame_initial_stack_address): Use
10142 frame_register_read to read the alloca_reg.
10143
8b0d4340
AC
101442002-04-17 Andrew Cagney <ac131313@redhat.com>
10145
10146 * frame.c (find_saved_register): Find saved registers in the next
10147 not prev frame.
10148 Fix PR gdb/365.
10149
d8864532
AC
101502002-04-17 Andrew Cagney <ac131313@redhat.com>
10151
10152 * gdbarch.sh (LANG): Set to ``c''.
10153
36cc83a3 101542002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10155
36cc83a3 10156 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10157
2f4150cc 101582002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10159
10160 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10161 Update copyright.
10162
628703c6 10163 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10164 Also fix PR gdb/391.
361d1df0 10165
56157b4a
AC
101662002-04-14 Andrew Cagney <ac131313@redhat.com>
10167
10168 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10169 * aclocal.m4, configure: Re-generate.
10170 Fix PR gdb/391.
361d1df0 10171
6d1e3329
EZ
101722002-04-14 Elena Zannoni <ezannoni@redhat.com>
10173
10174 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10175 instead of tm_print_insn.
10176
cb06fa07
EZ
101772002-04-14 Elena Zannoni <ezannoni@redhat.com>
10178
10179 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10180
f208ba17
AC
101812002-04-14 Andrew Cagney <ac131313@redhat.com>
10182
10183 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10184 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10185 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10186
20f01a46
DH
101872002-04-12 Don Howard <dhoward@redhat.com>
10188
10189 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10190 max_user_call_depth.
10191 (init_cmd_lists): Initialize the new value;
10192 * cli/cli-script.c (execute_user_command): Limit the call depth of
10193 user defined commands. This avoids a core-dump when user commands
10194 are infinitly recursive.
10195
a88376a3
KB
101962002-04-12 Kevin Buettner <kevinb@redhat.com>
10197
10198 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10199 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10200 from tdep struct instead of DEFAULT_LR_SAVE.
10201 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10202 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10203 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10204
f2172603
MS
102052002-04-12 Michael Snyder <msnyder@redhat.com>
10206
694f61fb 10207 * Remote.c: Spelling fix.
20fe79c8
MS
10208 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10209 If no symbol found for "sbrk", try "_sbrk".
10210 (make_output_phdrs): Use bfd_section_name.
10211 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10212 * eval.c: Indentation fix-ups.
169a7369
MS
10213 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10214 in case it gets applied to an address that is already
10215 in the instruction space.
de74f71f
MS
10216 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10217 * symfile.c: Fix indentation, long lines.
f2172603
MS
10218 * source.c: White space fix-up.
10219
cda5a58a
AC
102202002-04-12 Andrew Cagney <cagney@redhat.com>
10221
10222 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10223 * frame.c (frame_register_read): New function. Return non-zero on
10224 success.
10225 (read_relative_register_raw_bytes_for_frame): Delete.
10226 (read_relative_register_raw_bytes): Delete.
10227 * frame.h (frame_register_read): Declare.
10228 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10229 * sh-tdep.c: Ditto.
10230 * infcmd.c (do_registers_info): Ditto.
10231 * hppa-tdep.c: Ditto.
10232 * rs6000-tdep.c: Ditto.
10233 * h8500-tdep.c: Ditto.
10234 * mips-tdep.c: Ditto.
10235 * h8300-tdep.c: Ditto.
10236 * z8k-tdep.c: Ditto.
10237
2ea5f656
KB
102382002-04-12 Kevin Buettner <kevinb@redhat.com>
10239
10240 From Jimi X <jimix@watson.ibm.com>:
10241 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10242 64-bit SysV ABI.
10243
27b15785
KB
102442002-04-12 Kevin Buettner <kevinb@redhat.com>
10245
10246 From Jimi X <jimix@watson.ibm.com>:
10247 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10248 bfd info.
10249
5d57ee30
KB
102502002-04-12 Kevin Buettner <kevinb@redhat.com>
10251
10252 From Jimi X <jimix@watson.ibm.com>:
10253 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10254 register sets for these processor variants.
10255
bc1e36ca
DJ
102562002-04-11 Daniel Jacobowitz <drow@mvista.com>
10257
bc1e36ca
DJ
10258 * regformats/reg-ppc.dat: Support FPSCR.
10259
e3f36dbd
KB
102602002-04-11 Kevin Buettner <kevinb@redhat.com>
10261
10262 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10263 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10264 Add fpscr as an invalid/unfetchable register.
10265 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10266 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10267 (fill_fpregset): Add support for register fpscr.
10268 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10269 (fill_gregset): Account for the fact that register ``mq'' might
10270 not exist.
10271 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10272 (registers_power): Add fpscr to register set at slot 71.
10273 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10274 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10275
943c9c25
MS
102762002-04-11 Michael Snyder <msnyder@redhat.com>
10277
10278 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10279 * configure: Regenerate.
10280 * config.in: Regenerate.
10281 * acconfig.h: Add define for _SYSCALL32.
10282 * core-sol2.c: Remove #define _SYSCALL32.
10283 * solib-legacy.c: Remove #define _SYSCALL32.
10284
d8c0a2e7
AC
102852002-04-10 Andrew Cagney <ac131313@redhat.com>
10286
10287 * stack.c (select_frame): Cleanup internal error message, do not
10288 use %p.
10289
7cc19214
AC
102902002-04-10 Andrew Cagney <ac131313@redhat.com>
10291
10292 * stack.c (select_frame): Check that selected_frame and the
10293 specified level are as expected.
10294 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10295 Update copyright.
10296 * frame.h (struct frame_info): Add field `level'. Update
10297 copyright.
10298 Work-in-progress PR gdb/464.
10299
67a2b77e
AC
103002002-04-10 Andrew Cagney <ac131313@redhat.com>
10301
10302 * maint.c (maint_print_section_info): Rename print_section_info.
10303 (print_bfd_section_info, print_objfile_section_info): Update.
10304 * inferior.h (struct gdbarch): Add opaque declaration.
10305 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10306 * gdbarch.h: Regenerate.
10307
8cfda98c
ML
103082002-04-10 Michal Ludvig <mludvig@suse.cz>
10309
10310 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10311 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10312 (kernel_u_size): Added.
10313 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10314 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10315
ca439ad2 103162002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10317
ca439ad2
JI
10318 * valarith.c (find_size_for_pointer_math): New function, either returns
10319 the size for a pointer's target, returns 1 for void *, or errors for
10320 incomplete types.
10321 (value_add, value_sub): use find_size_for_pointer_math.
10322
2f2893d9
DJ
103232002-04-09 Daniel Jacobowitz <drow@mvista.com>
10324
10325 * linux-low.c (linux_look_up_symbols): New hook.
10326 (linux_target_ops): Add linux_look_up_symbols.
10327 * remote-utils.c (decode_address): New function.
10328 (look_up_one_symbol): New function.
10329 * server.c (handle_query): Call target look_up_symbols hook.
10330 * server.h (look_up_one_symbol): Add prototype.
10331 * target.h (struct target_ops): Add look_up_symbols hook.
10332
96cb11df
AC
103332002-04-09 Andrew Cagney <ac131313@redhat.com>
10334
10335 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10336 override FP_REGNUM with frame->fp. Update copyright.
10337 * parse.c (num_std_regs, std_regs): Delete.
10338 (target_map_name_to_register): Do not search std_regs. Update
10339 function description.
10340 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10341 declarations. Update copyright.
10342 Fix PR gdb/251.
361d1df0 10343
97658e92
DJ
103442002-04-09 Daniel Jacobowitz <drow@mvista.com>
10345
10346 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10347 after the last symbol in a block.
10348
6044e3eb
PM
103492002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10350
10351 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10352 is non zero as a found symbol.
10353
0406ec40
AC
103542002-04-08 Andrew Cagney <ac131313@redhat.com>
10355
10356 * findvar.c: Include "builtin-regs.h".
10357 (value_of_register): Call value_of_builtin_reg when applicable.
10358 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10359 (target_map_name_to_register): Call
10360 builtin_reg_map_name_to_regnum.
10361 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10362 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10363 (builtin_regs_h): Define.
10364 (builtin-regs.o): New target.
10365 (findvar.o): Add $(builtin_regs_h).
10366 * builtin-regs.c, builtin-regs.h: New files.
10367 * std-regs.c: New file.
10368 Partial fix for PR gdb/251.
10369
56a6dfb9
KB
103702002-04-08 Kevin Buettner <kevinb@redhat.com>
10371
10372 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10373 it's no longer required.
10374
3a808432
AC
103752002-04-08 Andrew Cagney <ac131313@redhat.com>
10376
10377 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10378
7c40d541
KB
103792002-04-08 Kevin Buettner <kevinb@redhat.com>
10380
10381 From Jimi X <jimix@watson.ibm.com>:
10382 * rs6000-tdep.c (rs6000_software_single_step): Use
10383 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10384 and size. Use target_insert_breakpoint() and
10385 target_remove_breakpoint() to insert and remove breakpoints
10386 instead of explicit memory reads and writes.
10387
cc9836a8
KB
103882002-04-08 Kevin Buettner <kevinb@redhat.com>
10389
10390 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10391 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10392 ELF_OBJECT_FORMAT ifdef.
10393
7495d1dc
KB
103942002-04-08 Kevin Buettner <kevinb@redhat.com>
10395
10396 From Jimi X <jimix@watson.ibm.com>:
10397 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10398
4288e836
KB
103992002-04-08 Kevin Buettner <kevinb@redhat.com>
10400
10401 From Jimi X <jimix@watson.ibm.com>:
10402 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10403 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10404
a4e4e501
MK
104052002-04-07 Mark Kettenis <kettenis@gnu.org>
10406
10407 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10408 s/asprintf/xasprintf/.
10409 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10410
006defba
AC
104112002-04-07 Andrew Cagney <ac131313@redhat.com>
10412
10413 I believe Jeff Law denies responsability for this one:
10414 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10415 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10416 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10417 Work-around for PR gdb/366.
10418
7aa83cac
EZ
104192002-04-07 Elena Zannoni <ezannoni@redhat.com>
10420
10421 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10422 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10423 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10424
cf1fcca1
EZ
104252002-04-07 Elena Zannoni <ezannoni@redhat.com>
10426
10427 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10428 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10429 information.
10430
3f289e6f
AC
104312002-04-07 Andrew Cagney <ac131313@redhat.com>
10432
10433 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10434 maintainer.
10435
129188f6
AC
104362002-04-07 Andrew Cagney <ac131313@redhat.com>
10437
10438 * README (Reporting Bugs in GDB): Document the bug web page as the
10439 prefered way of submitting bugs.
10440 Fix PR gdb/402.
10441
1200cd6e
AC
104422002-04-06 Andrew Cagney <ac131313@redhat.com>
10443
10444 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10445 -1. Update comment.
10446 * gdbarch.h, gdbarch.c: Re-generate.
10447
2853c33c
AS
104482002-04-07 Andreas Schwab <schwab@suse.de>
10449
10450 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10451 buffer to regcache_collect.
10452
c2169756
AC
104532002-04-06 Andrew Cagney <ac131313@redhat.com>
10454
10455 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10456 * gdbarch.c, gdbarch.h: Re-generate.
10457
25f1b008
AC
104582002-04-06 Andrew Cagney <ac131313@redhat.com>
10459
10460 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10461 declaration. Fix -Werror.
10462
59263426
DJ
104632002-04-05 Daniel Jacobowitz <drow@mvista.com>
10464
10465 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10466 * gdbarch.c: Regenerate.
10467
f5db4da3
MS
104682002-04-05 Michael Snyder <msnyder@redhat.com>
10469
80f8a6eb
MS
10470 * breakpoint.c (clear_command): Rewrite middle section to
10471 combine two loops with identical control conditions.
10472 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10473 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10474
ad3dcc5c
L
104752002-04-05 H.J. Lu (hjl@gnu.org)
10476
10477 * solib-svr4.c (bkpt_names): Add "__start".
10478
f32e7a74
AC
104792002-04-04 Andrew Cagney <ac131313@redhat.com>
10480
10481 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10482 as test for 64 bit target.
10483
8227c0ff
AC
104842002-04-05 Andrew Cagney <ac131313@redhat.com>
10485
10486 * h8500-tdep.c (h8500_write_fp): Delete function.
10487 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10488 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10489 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10490 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10491 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10492 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10493 (s390_write_fp):
10494 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10495 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10496 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10497 (d10v_write_fp): Delete function.
10498 * inferior.h (write_fp, generic_target_write_fp): Delete
10499 declarations.
10500 * regcache.c (generic_target_write_fp): Delete function.
10501 (write_fp): Delete function.
10502 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10503 * gdbarch.h, gdbarch.c: Regenerate.
10504 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10505 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10506 (sparc64_write_fp): Delete declaration.
10507 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10508 (h8500_write_fp): Delete declaration.
10509
2757dd86
AC
105102002-04-04 Andrew Cagney <ac131313@redhat.com>
10511
10512 * sparc-tdep.c (sparc64_write_fp): Delete.
10513 (sparc_push_dummy_frame): Replace write_fp call with code to store
10514 the FP directly.
10515 (sparc_gdbarch_init): Do not initialize write_fp.
10516
c69255e1
KB
105172002-04-05 Kevin Buettner <kevinb@redhat.com>
10518
10519 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10520 clause.
10521
ae767bfb
JB
105222002-03-29 Jim Blandy <jimb@redhat.com>
10523
10524 * stack.c (get_selected_block): Add new argument `addr_in_block',
10525 used to return the exact code address we used to select the block,
10526 not just the block.
10527 * blockframe.c (get_frame_block, get_current_block): Same.
10528 * frame.h (get_frame_block, get_current_block,
10529 get_selected_block): Update declarations.
10530 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10531 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10532
84d2ac95
MS
105332002-04-05 Michael Snyder <msnyder@redhat.com>
10534
10535 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10536 warning message.
10537
596aa3bf
JB
105382002-04-05 J. Brobecker <brobecker@gnat.com>
10539
10540 * utils.c (xfullpath): New function.
10541 * defs.h (xfullpath): Add declaration.
10542 * source.c (openp): Use xfullpath in place of gdb_realpath to
10543 avoid resolving the basename part of filenames when the
10544 associated file is a symbolic link. This fixes a potential
10545 inconsistency between the filenames known to GDB and the
10546 filenames it prints in the annotations.
10547 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10548 to be able to match a filename with either the real filename, or
10549 the name of any symbolic link to this file.
10550 (lookup_partial_symtab): Ditto.
10551
c02f5703
MS
105522002-04-04 Michael Snyder <msnyder@redhat.com>
10553
10554 * breakpoint.c: Add support for hardware breakpoints in overlays.
10555 (overlay_events_enabled): New state variable.
10556 (insert_breakpoints): Use overlay_events_enabled to decide
10557 whether to attempt to set a breakpoint at the overlay load addr.
10558 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10559 (remove_breakpoint): Use overlay_events_enabled to decide
10560 whether breakpoints need to be removed from overlay load addr.
10561 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10562 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10563 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10564 disable_overlay_breakpoints): Update overlay_events_enabled.
10565
5fb290d7
DJ
105662002-04-04 Daniel Jacobowitz <drow@mvista.com>
10567
10568 * dwarf2read.c (struct function_range): New.
10569 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10570 (check_cu_functions): New.
10571 (read_file_scope): Initialize global function lists.
10572 Call dwarf_decode_line after processing children.
10573 (read_func_scope): Add to global function list.
10574 (dwarf_decode_lines): Call check_cu_functions everywhere
10575 record_line is called. Call record_line with a linenumber
10576 of 0 to mark sequence ends.
10577
7b3fabf0
ML
105782002-04-04 Michal Ludvig <mludvig@suse.cz>
10579
361d1df0 10580 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10581 change sync with glibc.
10582
bce58c09
JB
105832002-04-03 Jim Blandy <jimb@redhat.com>
10584
10585 * configure.in: Call AC_C_INLINE.
10586 * configure: Regenerated.
361d1df0 10587
2fccf04a
DJ
105882002-04-01 Daniel Jacobowitz <drow@mvista.com>
10589
10590 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10591 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10592
2d1bfe2e
MK
105932002-03-31 Mark Kettenis <kettenis@gnu.org>
10594
a5941fbf
MK
10595 * NEWS: Mention gcore support on FreeBSD/i386.
10596
a90cd31d
MK
10597 * fbsd-proc.c: New file.
10598 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10599 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10600
2d1bfe2e
MK
10601 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10602 while statement.
10603
9eb6e5a1
JB
106042002-03-29 Jim Blandy <jimb@redhat.com>
10605
10606 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10607 unescaped newlines in string literals, but newer ones don't. So
10608 escape them.
10609
f02df580
MS
106102002-03-26 Michael Snyder <msnyder@redhat.com>
10611 Andrew Cagney <cagney@redhat.com>
10612
361d1df0 10613 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10614 restore file to memory.
10615 * cli/cli-dump.h: New file.
10616 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10617 * NEWS: Mention new commands.
f02df580 10618
109f874e
MS
106192002-03-28 Michael Snyder <msnyder@redhat.com>
10620
10621 * symfile.c (symbol_file_add): Move test for null symbols to later.
10622
520f6ade
AC
106232002-03-27 Andrew Cagney <ac131313@redhat.com>
10624
10625 From veksler at il.ibm.com:
10626 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10627 the xstrduped original path.
10628 Fix PR gdb/417.
10629
d4654627
MS
106302002-03-27 Michael Snyder <msnyder@redhat.com>
10631
10632 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10633 * infcmd.c (_initialize_infcmd): Ditto.
10634 * language.c (_initialize_language): Ditto.
10635 * symfile.c (_initialize_symfile): Ditto.
10636 * top.c (_init_main): Ditto.
10637 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10638
6be8bc0c
EZ
106392002-03-27 Elena Zannoni <ezannoni@redhat.com>
10640
10641 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10642 vector registers handling.
10643 (skip_prologue): Handle new AltiVec instructions. Fill in new
10644 fields of frame data.
10645 (frame_get_saved_regs): Fill in information for AltiVec registers.
10646
12af6855
JB
106472002-03-27 Jim Blandy <jimb@redhat.com>
10648
10649 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10650 a function; leave this macro here to invoke that function.
10651 (symbol_init_mangled_name): Declaration for that function.
10652 * symtab.c (symbol_init_mangled_name): New function.
10653
dc672865
AC
106542002-03-27 Andrew Cagney <ac131313@redhat.com>
10655
10656 * valarith.c: Replace strerror with safe_strerror.
10657 * tracepoint.c: Ditto.
10658 * lin-lwp.c: Ditto.
10659 * go32-nat.c: Ditto.
10660 * inflow.c: Ditto.
10661 * gnu-nat.c: Ditto.
10662
d96429cd
AS
106632002-03-27 Andreas Schwab <schwab@suse.de>
10664
10665 * event-top.c (command_line_handler): Remove useless if.
10666
7e336ba1
AJ
106672002-03-27 Andreas Jaeger <aj@suse.de>
10668
10669 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10670 comment.
10671
de220d0f
ML
106722002-03-27 Michal Ludvig <mludvig@suse.cz>
10673
10674 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10675 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10676 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10677 (x86_64_linux_dr_get_status, supply_gregset),
10678 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10679 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10680 (x86_64_register_info_table): Add.
10681 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10682 (x86_64_register_raw_size, x86_64_register_virtual_type),
10683 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10684 general x86_64_register_info_table.
10685 (i386_gdbarch_init): gdbarch_register_bytes is now set
10686 dynamicaly during initialization.
10687 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10688 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10689
0e98d0a7
DJ
106902002-03-27 Daniel Jacobowitz <drow@mvista.com>
10691
10692 * gdbserver/server.c (main): Call target_signal_to_host_p
10693 and target_signal_to_host on signals received from the remote.
10694 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10695 target_signal_from_host on signals sent to the remote.
10696 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10697 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10698
3130066b
DJ
106992002-03-27 Daniel Jacobowitz <drow@mvista.com>
10700
10701 * signals/signals.c: Include "server.h" in gdbserver build.
10702 (target_signal_from_name): Don't use STREQ.
10703 (_initialize_signals): Likewise. Don't include function in
10704 gdbserver build.
10705
9aedf4f4
DJ
107062002-03-27 Daniel Jacobowitz <drow@mvista.com>
10707
10708 * signals.c: Moved to...
10709 * signals/signals.c: Here.
7e336ba1 10710 * Makefile (signals.o): Update.
9aedf4f4 10711
3fa41cdb
JL
107122002-03-26 Jeff Law (law@redhat.com)
10713
10714 * somread.c (som_symtab_read): Remove some commented out code and
10715 updated related comments. Do not set the minimal symbol table to
10716 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10717 in a dynamic executable.
10718 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10719 where we are unable to find the minimal symbol for the given
10720 PC value.
10721
ee677e8d
MS
107222002-03-25 Jeff Law (law@redhat.com)
10723
10724 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10725
e76e1718
ML
107262002-03-25 Michal Ludvig <mludvig@suse.cz>
10727
10728 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10729
18a642a1
AC
107302002-03-23 Andrew Cagney <ac131313@redhat.com>
10731
10732 * command.h: Update copyright.
10733 (struct cmd_list_element): Replace definition with opaque
10734 declaration.
10735 (enum cmd_types): Document that it will eventually be moved to
10736 cli/cli-decode.h
10737 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10738 (MALLOCED_REPLACEMENT): Delete macro.
10739 * Makefile.in (cli_decode_h): Add $(command_h).
10740 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10741 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10742 * completer.c: Include "cli/cli-decode.h".
10743 * maint.c: Include "cli/cli-decode.h".
10744 * cli/cli-decode.h: Include "command.h".
10745 (enum command_class): Delete.
10746 (enum cmd_types): Comment out.
10747 (enum cmd_auto_boolean): Delete.
10748 (enum var_types): Delete.
10749
b2875cc0
AC
107502002-03-23 Andrew Cagney <ac131313@redhat.com>
10751
10752 * cli/cli-decode.c: Include "gdb_assert.h".
10753 (add_set_or_show_cmd): New static function.
10754 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10755 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10756 all fields, such as func, from the set command.
10757
3b45974e
AC
107582002-03-23 Andrew Cagney <ac131313@redhat.com>
10759
10760 * MAINTAINERS (sh-elf): Change warning flag to -w.
10761
823ca731
AC
107622002-03-23 Andrew Cagney <cagney@redhat.com>
10763
10764 * defs.h (error): Add printf format attribute.
10765 * thread-db.c (thread_from_lwp): Fix error format string.
10766 * stack.c (parse_frame_specification): Ditto.
10767 * cli/cli-decode.c (undef_cmd_error): Ditto.
10768 * scm-lang.c (scm_lookup_name): Ditto.
10769 * tracepoint.c (trace_error): Ditto.
10770 * remote-utils.c (usage): Ditto.
10771 * remote.c (compare_sections_command): Ditto.
10772 Fix PR gdb/328.
10773
0e101458
AC
107742002-03-22 Andrew Cagney <ac131313@redhat.com>
10775
10776 * gdbtypes.c (append_composite_type_field): New function.
10777 (init_composite_type): New function.
10778 * gdbtypes.h (append_composite_type_field): Declare.
10779 (init_composite_type): Ditto.
10780
8e0662df
EZ
107812002-03-22 Elena Zannoni <ezannoni@redhat.com>
10782
10783 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10784 function.
8e0662df
EZ
10785 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10786 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10787 structure returning convention for SYSV ABI case, but not
10788 for GNU/Linux, FreeBSD, or NetBSD.
10789
3121eff0
DJ
107902002-03-22 Daniel Jacobowitz <drow@mvista.com>
10791
10792 * symtab.h (lookup_block_symbol): Add mangled_name argument
10793 to prototype.
10794
10795 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10796 with new mangled_name argument.
10797 * linespec.c (decode_line_1): Likewise.
10798 * valops (value_of_this): Likewise.
10799 * symtab.c (lookup_transparent_type): Likewise.
10800 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10801 (lookup_symbol): If we are given a mangled name, pass it down
10802 to lookup_symbol_aux.
10803 (lookup_block_symbol): If we are given a mangled name to check
10804 against, only return symbols which match it.
10805
349b409f
CF
108062002-03-22 Christopher Faylor <cgf@redhat.com>
10807
10808 * win32-nat.c (child_create_inferior): Check for proper shell to use
10809 here, in case the user changes it on the fly.
10810 (_initialize_inftarg): Remove shell path considerations.
10811
2a873819
EZ
108122002-03-21 Elena Zannoni <ezannoni@redhat.com>
10813
10814 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10815 for gdbarch_max_register_raw_size and max_register_virtual_size.
10816 Adjust copyright year.
10817
a1b9830c
DJ
108182002-03-21 Daniel Jacobowitz <drow@mvista.com>
10819
10820 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10821 in a function to cover the entire beginning of the function
10822 as well if it does not already.
10823
8b5790f2
TR
108242002-03-21 Tom Rix <trix@redhat.com>
10825
10826 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10827 (rs6000_ptrace64): Renamed from ptrace64.
10828
bdbe5747
MH
108292002-03-20 Martin M. Hunt <hunt@redhat.com>
10830
10831 * gdbserver/remote-utils.c (remote_open): Don't call
10832 getprotobyname, we're all using TCP here so just use
10833 IPPROTO_TCP.
7e336ba1 10834 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10835
108362002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10837
bdbe5747
MH
10838 * regcache.c (_initialize_regcache): No need to call
10839 build_regcache() at this time; it gets called whenever
10840 the gdbarch changes.
10841
7781cd62
DB
108422002-03-20 David O'Brien <obrien@FreeBSD.org>
10843
10844 * sparc-nat.c: Include sys/param.h where possible.
10845
f65ca430
DJ
108462002-03-20 Daniel Jacobowitz <drow@mvista.com>
10847
10848 Fix PR gdb/422.
10849 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10850 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10851 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10852 complex types.
10853 * stabsread.c (rs6000_builtin_type): Likewise.
10854 (read_sun_floating_type): Likewise.
10855
0c867556
PS
108562002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10857
10858 * stabsread.c (read_member_functions): Remove skip code for duplicate
10859 constructor/destructor methods. Use standard parsing for these
10860 methods and just do not chain them to the list of methods after
10861 parsing.
10862
12b9c64f
AO
108632002-03-19 Alexandre Oliva <aoliva@redhat.com>
10864
10865 * coffread.c: Remove redundant static declarations. Replace
10866 occurrences of `PTR' with `void *'.
10867 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10868 * top.h (quit_cover): Likewise.
10869 * defs.h (catch_errors): Likewise.
10870
349c5d5f
AC
108712002-03-18 Andrew Cagney <ac131313@redhat.com>
10872
10873 * defs.h (XMALLOC): Define.
10874 * gdb-events.sh (XMALLOC): Delete macro.
10875 * gdb-events.c, gdb-events.h: Regenerate.
10876 * gdbarch.sh (XMALLOC): Delete macro.
10877 * gdbarch.c: Regenerate.
10878 * serial.c (XMALLOC): Delete macro.
10879 * ui-file.c (XMALLOC): Ditto.
10880 * ser-unix.h (XMALLOC): Ditto.
10881 * sh-tdep.c (XMALLOC): Ditto.
10882 * ui-out.c (XMALLOC): Ditto.
10883 * utils.c (XMALLOC): Ditto.
10884 * i386-tdep.c (XMALLOC): Ditto.
10885 * gdb-events.c (XMALLOC): Ditto.
10886 * d10v-tdep.c (XMALLOC): Ditto.
10887 * cli-out.c (XMALLOC): Ditto.
10888
10889 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10890 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10891 * ui-file.c, ui-out.c: Ditto.
10892
7d0766f3
AC
108932002-03-18 Andrew Cagney <ac131313@redhat.com>
10894
10895 * command.h (struct cmd_list_element): Add field context.
10896 (set_cmd_context, get_cmd_context): Declare.
10897 * cli/cli-decode.h: Ditto.
10898 * cli/cli-decode.c (get_cmd_context): New function.
10899 (set_cmd_context): New function.
10900 (add_cmd): Initialize context.
10901 Part of fixing PR gdb/145 and PR gdb/146.
10902
5913bcb0
AC
109032002-03-17 Andrew Cagney <ac131313@redhat.com>
10904
1868c04e
AC
10905 * cli/cli-decode.c (cmd_type): New function.
10906 * command.h (cmd_type): Declare.
10907 * infrun.c (set_schedlock_func): Call function cmd_type.
10908 * kod.c (kod_set_os): Call cmd_type.
10909 * cris-tdep.c (cris_version_update): Use function cmd_type.
10910 (cris_mode_update, cris_abi_update): Ditto.
10911
5913bcb0
AC
10912 * command.h: (execute_cmd_post_hook): Declare.
10913 (execute_cmd_pre_hook): Declare.
10914 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10915 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10916 functions. Execute pre/post hook while ensuring that afterwords
10917 hook_in is cleared.
10918 * top.c (execute_command): Use execute_cmd_post_hook, and
10919 execute_cmd_pre_hook to execute pre/post commands.
10920 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10921 hook_stop_stub.
10922 (hook_stop_stub): Call execute_cmd_pre_hook.
10923
b51450c9
AC
109242002-03-17 Andrew Cagney <ac131313@redhat.com>
10925
10926 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10927 set'' and this leads to a core dump. Move xstrdup of
10928 operating_system to after check that it is not NULL.
10929
f66c9f11
AC
109302002-03-17 Andrew Cagney <ac131313@redhat.com>
10931
8e694ecf
AC
10932 * kod.c (kod_set_os): Remove unnecessary check that
10933 ``command->type'' is set_cmd.
10934
f66c9f11
AC
10935 * valprint.c (set_input_radix): Use input_radix.
10936 (set_output_radix): Use output_radix.
10937 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10938 isn't reverted.
10939
9d01611c
AC
109402002-03-16 Andrew Cagney <ac131313@redhat.com>
10941
10942 * value.h (struct value): Delete field ``substring_addr''. Change
10943 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10944 force_core_addr_align and force_pointer_aligh.
10945
10946 * value.h (struct value): Fix typo in above change.
9d01611c 10947
4156bb53
PS
109482002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10949
10950 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
10951 to fix internal_error from ``maintenance print architecture''.
10952
0e5e3ea6
PS
109532002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10954
10955 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
10956 for gcc versions after gcc-2.8.1.
10957
9b013045
PS
109582002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10959
10960 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
10961 for method resolution. Restore adjustment of ``this'' pointer after
10962 calling value_struct_elt, which was accidentally removed during the
10963 HP merge.
10964
376c9600
AC
109652002-03-15 Andrew Cagney <ac131313@redhat.com>
10966
10967 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
10968 value_of_register.
10969 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
10970 get_saved_register.
10971 * value.h (value_of_register): Update.
10972
a4db0f07
RH
109732002-03-14 Richard Henderson <rth@redhat.com>
10974
10975 * configure.in: Detect declaration for canonicalize_file_name.
10976 * utils.c (canonicalize_file_name): Declare, if needed.
10977 (gdb_realpath): Prefer realpath if available and usable.
10978 * config.in, configure: Rebuild.
10979
96383835
RH
109802002-03-14 Richard Henderson <rth@redhat.com>
10981
10982 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
10983 a constant array bound.
10984
10985 * MAINTAINERS: Add myself to write-after-approval.
10986
75245b24
MS
109872002-03-14 Michael Snyder <msnyder@redhat.com>
10988
10989 * symfile.c (syms_from_objfile): Return immediately if no syms.
10990 (symbol_file_add): Return immediately if no syms.
10991 (find_sym_fns): Return immediately if no syms.
10992
e641a1ca
ML
109932002-03-13 Michal Ludvig <mludvig@suse.cz>
10994
10995 * gdbserver/remote-util.c (remote_open): Print remote-side's
10996 IP address when remote debugging over the network.
7e336ba1 10997
df08bfec
DB
109982002-03-12 David O'Brien <obrien@FreeBSD.org>
10999
11000 * config/sparc/fbsd.mh: Fix copyright.
11001 * config/sparc/fbsd.mt: Likewise.
11002
9a57864f
RE
110032002-03-11 Richard Earnshaw <rearnsha@arm.com>
11004
11005 * MAINTAINERS: Fix typo in name of gdb warnings option.
11006 (x86-64): Fix formating so that this can be parsed by awk.
11007
dd7bf85e
DJ
110082002-03-10 Daniel Jacobowitz <drow@mvista.com>
11009
11010 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11011 * defs.h: Include "gdb/signals.h".
11012 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11013
33a0a2ac
ML
110142002-03-10 Michal Ludvig <mludvig@suse.cz>
11015
11016 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11017 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11018 from x86-64-tdep.h
11019
dd824b04
DJ
110202002-03-10 Daniel Jacobowitz <drow@mvista.com>
11021 Don Howard <dhoward@redhat.com>
11022
11023 * mips-tdep.c (ST0_FR): Define.
11024 (mips2_fp_compat): New function, temporarily disabled.
11025 (mips_read_fp_register_single): New function.
11026 (mips_read_fp_register_double): New function.
11027 (mips_print_register): Use them.
11028 (do_fp_register_row): Likewise.
11029
6a41ff59
AC
110302002-03-09 Andrew Cagney <ac131313@redhat.com>
11031
11032 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11033 approval''.
11034
4ea09c10
PS
110352002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11036
11037 * stabsread.c (read_member_functions): Fix is_stub test for
11038 static member functions, improve comment.
11039
6ccc741d
RE
110402002-03-07 Richard Earnshaw <rearnsha@arm.com>
11041
11042 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11043 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11044 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11045 commands that set boolean values.
11046 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11047 (arm_rdi_resume): Always initialize PC.
11048 (arm_rdi_open): Don't use rslt as a boolean.
11049 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11050 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11051 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11052 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11053
438013df
AO
110542002-03-06 Alexandre Oliva <aoliva@redhat.com>
11055
11056 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11057 * configure: Rebuilt.
11058
70ed8774
SC
110592002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11060
11061 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11062 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11063
5ba2abeb
AC
110642002-03-06 Andrew Cagney <ac131313@redhat.com>
11065
11066 * cli/cli-decode.c (set_cmd_completer): New function.
11067 * command.h (set_cmd_completer): Declare.
11068 * cli/cli-decode.h (set_cmd_completer): Ditto.
11069
11070 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11071 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11072 * win32-nat.c (_initialize_inftarg): Ditto.
11073 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11074 * proc-api.c (_initialize_proc_api): Ditto.
11075 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11076 * source.c (_initialize_source): Ditto.
11077 * exec.c (_initialize_exec): Ditto.
11078 * solib.c (_initialize_solib): Ditto.
11079 * top.c (init_main): Ditto.
11080 * tracepoint.c (_initialize_tracepoint): Ditto.
11081 * symfile.c (_initialize_symfile): Ditto.
11082 * printcmd.c (_initialize_printcmd): Ditto.
11083 * infcmd.c (_initialize_infcmd): Ditto.
11084 * corefile.c (_initialize_core): Ditto.
11085
f779ca99
AC
110862002-03-05 Andrew Cagney <ac131313@redhat.com>
11087
11088 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11089
01a3934b
AC
110902002-03-05 Andrew Cagney <ac131313@redhat.com>
11091
11092 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11093
37057839
AC
110942002-03-05 Andrew Cagney <ac131313@redhat.com>
11095
11096 * NEWS: Update headings, 5.2 has branched.
11097
c6ecbae5
DJ
110982002-03-04 Daniel Jacobowitz <drow@mvista.com>
11099
11100 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11101 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11102 (register_addr, REGISTER_RAW_SIZE): Likewise.
11103 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11104 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11105
e9f30c21
ML
111062002-03-03 Michal Ludvig <mludvig@suse.cz>
11107
11108 * MAINTAINERS (x86-64): Add myself.
11109 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11110 changed value_ptr -> struct value *
11111
54394ac3
DB
111122002-03-01 David O'Brien <obrien@FreeBSD.org>
11113
11114 * configure.host (sparc64-*-freebsd): Add.
11115 * configure.tgt: Likewise.
11116 * config/sparc/fbsd.mh: New file.
11117 * config/sparc/fbsd.mt: Likewise.
11118 * config/sparc/nm-fbsd.h: Likewise.
11119 * config/sparc/tm-fbsd.h: Likewise.
11120
bfe95955
DJ
111212002-03-01 Daniel Jacobowitz <drow@mvista.com>
11122
11123 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11124 regformats/reg-s390x.dat.
11125
f33c6cbf
AC
111262002-03-01 Andrew Cagney <ac131313@redhat.com>
11127
11128 * utils.c: Add FIXME explaining true/false problem.
11129
5ecaa7dd
AC
111302002-02-28 Andrew Cagney <ac131313@redhat.com>
11131
11132 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11133
2a251cc2
MC
111342002-02-28 Michael Chastain <mec@shout.net>
11135
11136 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11137
6a8031a3 111382002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11139
11140 * gdbserver/linux-s390-low.c: New file.
11141 * regformats/reg-s390.dat: New file.
11142 * regformats/reg-s390x.dat: New file.
11143 * gdbserver/configure.srv: Add S/390.
11144 * gdbserver/Makefile.in: Add S/390.
11145 * configure.tgt: Enable gdbserver for S/390.
11146
ac469903
EZ
111472002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11148
11149 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11150 first line of the doc string for "info dos", except at the end of
11151 the sentence, since the short help stops at the first period.
11152
985cb1a3
JM
111532002-02-28 Jason Merrill <jason@redhat.com>
11154
11155 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11156
c570663e
FF
111572002-02-27 Fred Fish <fnf@redhat.com>
11158
11159 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11160 comment (dumy -> dummy).
11161
43630227
PS
111622002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11163
11164 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11165
b84911e8
RB
111662002-02-27 Rodney Brown <rbrown64@csc.com.au>
11167
11168 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11169
58caa3dc
DJ
111702002-02-27 Daniel Jacobowitz <drow@mvista.com>
11171
11172 * gdbserver/acconfig.h: New file.
11173 * gdbserver/i387-fp.c: New file.
11174 * gdbserver/i387-fp.h: New file.
11175 * gdbserver/linux-x86-64.c: New file.
11176 * regformats/reg-x86-64.dat: New file.
11177 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11178 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11179 * gdbserver/configure.in: Add support for regsets.
11180 * gdbserver/config.in: Regenerate.
11181 * gdbserver/configure: Regenerate.
11182 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11183 * gdbserver/linux-low.h: New file.
11184 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11185 for regsets.
11186 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11187 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11188 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11189 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11190 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11191 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11192 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11193 "i387-fp.h". Add PTRACE_GETREGS and friends.
11194 * gdbserver/regcache.c (supply_register): New function.
11195 (supply_register_by_name): New function.
11196 (collect_register): New function.
11197 (collect_register_by_name): New function.
11198
93652174
DJ
111992002-02-27 Daniel Jacobowitz <drow@mvista.com>
11200
11201 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11202 (config.status): Add configure.srv dependency.
11203 (server_h): Add config.h dependency.
11204
a02e4a61
DJ
112052002-02-27 Daniel Jacobowitz <drow@mvista.com>
11206
11207 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11208 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11209 * gdbserver/configure.srv: Change i386-*-linux* to use
11210 reg-i386-linux.o.
11211
ce0eebec
AC
112122002-02-26 Andrew Cagney <ac131313@redhat.com>
11213
11214 * x86-64-tdep.c: Re-indent. Update copyright date.
11215
82dbc5f7
AC
112162002-02-26 Andrew Cagney <ac131313@redhat.com>
11217
11218 From Michal Ludvig <mludvig@suse.cz>:
11219 * x86-64-tdep.c (value.h): Delete.
11220 (gdb_assert.h): Include.
11221 (x86_64_register_convert_to_virtual,
11222 x86_64_register_convert_to_raw ): Add check which lets only
11223 floating-point values to be converted.
11224 (value_push): Delete.
11225 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11226 (i386_gdbarch_init): Number of register_bytes fixed.
11227
e4621584
AC
112282002-02-26 Andrew Cagney <ac131313@redhat.com>
11229
11230 * MAINTAINERS: Add x86-64 target.
11231
81a9a963
AC
112322002-02-26 Andrew Cagney <ac131313@redhat.com>
11233
11234 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11235 * osfsolib.c (solib_map_sections): Ditto.
11236 * irix5-nat.c (solib_map_sections): Ditto.
11237 * corelow.c (gdb_check_format): Ditto.
11238 * symfile.c (symfile_bfd_open): Ditto.
11239 * solib.c (solib_map_sections): Ditto.
11240 Fix PR gdb/354.
7e336ba1 11241
0f017ab9
AC
112422002-02-26 Andrew Cagney <ac131313@redhat.com>
11243
11244 * remote.c (_initialize_remote): By default, disable ``e'' and
11245 ``E'' step out-of-range packets.
11246
75738c29
AS
112472002-02-26 Andreas Schwab <schwab@suse.de>
11248
11249 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11250 m68k_linux_frame_saved_pc.
11251 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11252 in_sigtramp.
11253 (SIGCONTEXT_PC_OFFSET): Remove.
11254 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11255 m68k_linux_sigtramp_saved_pc): New functions.
11256 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11257 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11258 (UCONTEXT_PC_OFFSET): Define.
11259 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11260 non-RT and RT signal trampolines.
11261
7e8ed687
RE
112622002-02-26 Richard Earnshaw <rearnsha@arm.com>
11263
11264 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11265 (TARGET_NBPG, STACK_END_ADDR): Delete
11266 (VARIABLES_INSIDE_BLOCK): Delete.
11267
6972bc8b
AC
112682002-02-25 Andrew Cagney <ac131313@redhat.com>
11269
11270 * utils.c (perror_with_name): Make string parameter constant.
11271 (print_sys_errmsg): Ditto.
11272 (query): Ditto.
11273 * defs.h (perror_with_name): Update.
11274 (print_sys_errmsg): Update.
11275 (query): Update.
11276
aa32f823
DJ
112772002-02-25 Daniel Jacobowitz <drow@mvista.com>
11278
11279 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11280 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11281
19caaa45
PS
112822002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11283
11284 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11285 if it already matches the current architecture from the exec file.
11286 Include arch-utils.h for gdbarch_info_init prototype.
11287 * Makefile.in (rs6000-nat.o): Update dependencies.
11288
d951901f
EZ
112892002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11290
11291 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11292 list of exported variables.
11293
7ea81414
DJ
112942002-02-24 Daniel Jacobowitz <drow@mvista.com>
11295
11296 * gdbserver/configure.srv: New file.
11297 * gdbserver/configure.in: Use configure.srv instead
11298 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11299 from it.
11300 * gdbserver/configure: Regenerated.
11301 * gdbserver/terminal.h: New file.
11302 * gdbserver/Makefile.in: Update for configure changes. Remove
11303 more unneeded include paths.
11304
080fe24b
AC
113052002-02-24 Andrew Cagney <ac131313@redhat.com>
11306
11307 From wiz at danbala:
11308 * config/sparc/tm-sp64.h: Fix grammar and typos.
11309 Fix PR gdb/287.
11310
8605d56e
AC
113112002-02-24 Andrew Cagney <ac131313@redhat.com>
11312
11313 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11314 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11315 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11316 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11317 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11318 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11319 * s390-tdep.c: Ditto.
92362027
AC
11320 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11321 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11322 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11323 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11324 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11325 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11326 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11327 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11328 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11329 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11330 Fix PR gdb/378.
7e336ba1 11331
8ed32cc0
AC
113322002-02-23 Andrew Cagney <ac131313@redhat.com>
11333
a3007b6f
AC
11334 * lin-thread.c: Delete file.
11335 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11336 to gdb_proc_service.h.
11337 * configure: Re-generate.
11338
50a9e2f1
AC
11339 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11340 * serial.c (serial_open): Delete check for "ocd".
11341 Fix PR gdb/349.
11342
8b6e7932
AC
11343 * Makefile.in (linux-thread.o): Delete target.
11344 * linux-thread.c: Delete file.
11345
d155c46b
AC
11346 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11347 renamed SH files to be consistent.
11348
8ed32cc0
AC
11349 * symtab.c (sort_search_symbols): Use xfree.
11350
0e18d038
RE
113512002-02-23 Richard Earnshaw <rearnsha@arm.com>
11352
11353 * arm-linux-tdep.c (arm_linux_init_abi): Register
11354 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11355 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11356 definition with undef, since we don't want the sysvr4 definition.
11357 (SKIP_TRAMPOLINE_CODE): Likewise.
11358
27aac7ff
AC
113592002-02-23 Andrew Cagney <ac131313@redhat.com>
11360
11361 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11362
11363 * configure.in: (AC_CHECK_FUNCS) Added test for
11364 canonicalize_file_name Regenerated.
11365 * config.in, configure: Regenerated.
11366 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11367 defined use canonicalize_file_name.
7e336ba1 11368
65a6e0ee
MC
113692002-02-23 Michael Chastain <mec@shout.net>
11370
11371 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11372
47b95330
AC
113732002-02-23 Andrew Cagney <ac131313@redhat.com>
11374
11375 * README: Remove references to cygnus.com.
11376 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11377 dot com'' form. Remove references to cygnus.com and sourceware.
11378
696f451b
AC
113792002-02-23 Andrew Cagney <ac131313@redhat.com>
11380
11381 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11382 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11383 1003.1-2001 no longer allows "head -1".
11384 * gdb/Makefile.in (version.c): Likewise.
11385 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11386 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11387 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11388
bbaca940
AC
113892002-02-23 Andrew Cagney <ac131313@redhat.com>
11390
11391 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11392 * command.h (cmd_cfunc_eq): Declare.
11393 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11394
11395 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11396 ``struct cmd_list_element *''.
11397 * cli/cli-cmds.c (is_complete_command): Update. Use
11398 cmd_cfunc_eq.
11399 * top.c (execute_command): Pass the command to
11400 is_complete_command.
11401 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11402
b8b8b047
AC
114032002-02-23 Andrew Cagney <ac131313@redhat.com>
11404
11405 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11406 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11407 architecture defines.
11408 * s390-tdep.c (s390_gdbarch_init): Likewise.
11409
19d3fc80
RE
114102002-02-23 Richard Earnshaw <rearnsha@arm.com>
11411
11412 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11413 (arm_linux_push_arguments): Likewise.
11414 (arm_linux_init_abi): Register them. Also register linux-specific
11415 call_dummy_words.
11416 (find_minsym_and_objfile): Use strcmp, not STREQ.
11417 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11418 (arm_linux_call_dummy_words): Delete declaration.
11419 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11420 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11421 declarations.
11422 (LOWEST_PC): Delete.
11423
3ab13650
PS
114242002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11425
11426 * maint.c (print_section_info): Do not prepend `0x' to filepos
11427 output, it will be handled by local_hex_string_custom.
11428
19d3fc80 114292002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11430
11431 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11432 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11433 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11434
d85a5daf
JB
114352002-02-22 Jim Blandy <jimb@redhat.com>
11436
11437 Indicate that the bcache functions don't change the strings
11438 they're passed.
11439 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11440 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11441
eeb25b8a
PM
114422002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11443
11444 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11445
6badb179
CF
114462002-02-21 Christopher Faylor <cgf@redhat.com>
11447
11448 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11449 find the complete path to a loaded DLL.
11450
e8717518
FF
114512002-02-21 Fred Fish <fnf@redhat.com>
11452
11453 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11454 that marks the end of the range of a function, enter a line number
11455 entry that has a line number of zero and a PC offset that matches
11456 the end of the function. This starts a range of PC's for which no
11457 line number information is known.
11458 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11459 PC's for which no line number info is found (line number is zero)
11460 then we didn't find any valid line information.
11461 * symtab.h: Document use of zero line number entry.
11462
9abe5450
EZ
114632002-02-21 Elena Zannoni <ezannoni@redhat.com>
11464
11465 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11466 (have_ptrace_getvrregs): Define for run time checks.
11467 (gdb_vrregset_t): New type for Altivec register handling.
11468 (fetch_register, store_register): Fetch/store altivec register
11469 when needed.
11470 (fetch_altivec_register, store_altivec_register): New functions.
11471 (supply_vrregset, fill_vrregset): New functions.
11472 (fetch_altivec_registers, store_altivec_registers): New functions.
11473 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11474 registers as well.
11475
aaa38bb5
AJ
114762002-02-21 Jiri Smid <smid@suse.cz>
11477
11478 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11479
b34db576
RE
114802002-02-21 Richard Earnshaw <rearnsha@arm.com>
11481
11482 * Makefile.in (armnbsd-nat.o): Update dependencies.
11483 * armnbsd-nat.c (supply_gregset): New function. Common code to
11484 supply the integer register set.
11485 (supply_fparegset): New function. Similar for FPA registers.
11486 (fetch_regs, fetch_fp_regs): Use them.
11487 (fetch_core_registers): Likewise.
11488 (fetch_elfcore_registers): New function.
11489 (arm_netbsd_elfcore_fns): New core-file type specification.
11490 (_initialize_arm_netbsd_nat): Register it.
11491
3e56fc4b
RE
114922002-02-21 Richard Earnshaw <rearnsha@arm.com>
11493
11494 * armnbsd-nat.c: Include gdbcore.h.
11495 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11496 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11497 'void' to declaration, to shut up ARI.
11498 (fetch_core_registers): Make static. Rewrite using supply_register.
11499 (arm_netbsd_core_fns): New core-file type specification.
11500 (_initialize_arm_netbsd_nat): New function.
11501
097f6b0b
CF
115022002-02-21 Christopher Faylor <cgf@redhat.com>
11503
11504 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11505 value.
11506
c914e0cc
CF
115072002-02-20 Christopher Faylor <cgf@redhat.com>
11508
11509 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11510 fails.
11511
385fa495
DJ
115122002-02-20 Daniel Jacobowitz <drow@mvista.com>
11513
11514 * jv-exp.y (parse_number): Change type of implicit longs
11515 to builtin_type_uint64.
11516
e5f1222d
DJ
115172002-02-20 Daniel Jacobowitz <drow@mvista.com>
11518
11519 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11520 to be an integer instead of a `union wait'.
11521
75c9abc6
DJ
115222002-02-20 Daniel Jacobowitz <drow@mvista.com>
11523
11524 * mips-linux-nat.c: Call the operating system GNU/Linux.
11525 * mips-linux-tdep.c: Likewise.
11526 * mips-tdep.c: Likewise.
11527
551792a5
DJ
115282002-02-20 Daniel Jacobowitz <drow@mvista.com>
11529
11530 Fix PR gdb/265.
11531 * jv-exp.y (parse_number): Handle 64-bit integers.
11532
ee6e2b82
DJ
115332002-02-20 Daniel Jacobowitz <drow@mvista.com>
11534
11535 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11536 AC_STDC_HEADERS to AC_HEADER_STDC.
11537 * gdbserver/configure: Regenerated.
11538
a48442a0
RE
115392002-02-20 Richard Earnshaw <rearnsha@arm.com>
11540
11541 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11542 is defined.
11543 * sparc-tdep.c (get_longjmp_target): Likewise.
11544
fe419ffc
RE
115452002-02-20 Richard Earnshaw <rearnsha@arm.com>
11546
11547 * News: Add news about ARM and Multi-arch. Mention the new target
11548 arm*-*-netbsd*.
11549
5832ed7e
JB
115502002-02-19 Jim Blandy <jimb@redhat.com>
11551
11552 * stabsread.c (error_type_complaint): Improve error message.
11553
84563040
DJ
115542002-02-19 Daniel Jacobowitz <drow@mvista.com>
11555
11556 * gdbserver/README: Update documentation.
11557 * gdbserver/configure.in: Update configury to match documentation.
11558 * gdbserver/Makefile.in: Likewise.
11559 * gdbserver/configure: Regenerated.
11560 * gdbserver/aclocal.m4: New file, generated by aclocal.
11561 * gdbserver/config.in: New file, generated by autoheader.
11562
375fd65b
RE
115632002-02-19 Richard Earnshaw <rearnsha@arm.com>
11564
11565 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11566 armnbsd-nat.c.
11567
08216dd7
RE
115682002-02-19 Richard Earnshaw <rearnsha@arm.com>
11569
11570 * arm-tdep.h (enum arm_float_model): New enum.
11571 (struct gdbarch_tdep): Add fp_model.
11572 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11573 up floating-point conversions until we know the floating-point model
11574 in use by the inferior. Don't complain about being unable to
11575 determine the ABI of the inferior when we don't have one.
11576 (arm_extract_return_value): Support different floating-point models.
11577 (arm_store_return_value): Likewise.
aaa38bb5 11578 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11579 ARM_FLOAT_SOFT.
11580 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11581
65d6d66a
PS
115822002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11583
11584 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11585 of ``current_gdbarch''.
11586
47221191
RE
115872002-02-19 Richard Earnshaw <rearnsha@arm.com>
11588
11589 * armnbsd-nat.c : ANSIfy all function declarations.
11590 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11591 (fetch_inferior_registers): Re-implement in terms of above.
11592 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11593 (store_inferior_registers): Re-implement in terms of above.
11594
fdf39c9a
RE
115952002-02-19 Richard Earnshaw <rearnsha@arm.com>
11596
aaa38bb5 11597 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11598 kernel.
11599 * arm-linux-tdep.c: Likewise.
11600 * config/arm/tm-linux.h: Likewise.
11601
93247f88
RE
116022002-02-19 Richard Earnshaw <rearnsha@arm.com>
11603
11604 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11605 * config/arm/nbsd.mt (TM_FILE): Delete.
11606 * config/arm/tm-nbsd.h: Delete.
11607
d7b486e7
RE
116082002-02-19 Richard Earnshaw <rearnsha@arm.com>
11609
11610 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11611 Initialize CALL_DUMMY_LENGTH.
11612
41d39a95
RE
116132002-02-19 Richard Earnshaw <rearnsha@arm.com>
11614
11615 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11616 function.
11617 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11618 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11619 defines one thing and that is incorrect for this port.
11620 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11621
e1195560
PM
116222002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11623
11624 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11625
c1748f97
PM
116262002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11627
11628 * win32-nat.c (display_selector): New function. Displays information
11629 about the information returned by GetThreadSelectorEntry API function.
11630 (display_selectors): New function. Displays the infomation of
11631 the selector given as argument, or of CS, DS ans FS selectors
11632 if no argument is given.
11633 ( _initialize_inftarg): Add "w32" as info prefix command.
11634 Add "info w32 selector" as command calling display_selectors.
11635
e41e6bbf
PM
116362002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11637
11638 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11639 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11640 if not defined.
11641
0d3a9f48
RE
116422002-02-18 Richard Earnshaw <rearnsha@arm.com>
11643
11644 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11645
3fb4b924
RE
116462002-02-18 Richard Earnshaw <rearnsha@arm.com>
11647
11648 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11649 (arm_fix_call_dummy): Call it.
11650 (arm_call_dummy_breakpoint_offset): Delete.
11651 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11652 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11653
7f55af32
AC
116542002-02-18 Andrew Cagney <ac131313@redhat.com>
11655
11656 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11657 Default to func_frame_chain_valid.
11658 * gdbarch.h, gdbarch.c: Re-generate.
11659 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11660
05f13b9c
EZ
116612002-02-18 Elena Zannoni <ezannoni@redhat.com>
11662
11663 * ppc-linux-nat.c: Update copyright.
11664 (fetch_register, store_register): Add tid parameter, don't compute
11665 tid here.
11666 (fetch_ppc_registers, store_ppc_registers): Add tid
11667 parameter. Pass it along to callees.
11668 (fetch_inferior_registers, store_inferior_registers): Compute tid
11669 here, and pass it to calleed functions.
11670 (fill_gregset, supply_fpregset): Clean up formatting.
11671
d7afb4c9
RE
116722002-02-18 Richard Earnshaw <rearnsha@arm.com>
11673
11674 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11675 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11676
9df628e0
RE
116772002-02-18 Richard Earnshaw <rearnsha@arm.com>
11678
11679 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11680 * gdbarch.c gdbarch.h: Regenerate.
11681 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11682 function.
11683 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11684 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11685 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11686
11687 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11688 * arm-tdep.c (arm_get_longjmp_target): New function.
11689 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11690 this to a positive value register arm_get_longjmp_target as the
11691 longjmp handler.
11692 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11693 (arm_linux_init_abi): Set up longjmp description in tdep.
11694 * armnbsd-nat.c (get_longjmp_target): Delete.
11695 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11696 description in tdep.
11697 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11698 (get_longjmp_target): Delete declaration.
11699 (GET_LONGJMP_TARGET): Delete.
11700 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11701 (GET_LONGJMP_TARGET): Delete.
11702
57bc8964
KB
117032002-02-17 Kevin Buettner <kevinb@redhat.com>
11704
11705 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11706 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11707 of ``current_gdbarch''.
11708
83d31a92
TT
117092002-02-17 Tom Tromey <tromey@redhat.com>
11710
11711 * cli/cli-cmds.c (compare_strings): New function.
11712 (complete_command): Only print each unique item once.
11713 * completer.h (complete_line): Declare.
11714 * completer.c (complete_line): New function.
11715 (line_completion_function): Use it.
11716
17ef5d92
AC
117172002-02-16 Andrew Cagney <ac131313@redhat.com>
11718
11719 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11720 * gdbarch.h, gdbarch.c: Re-generate.
11721
491b8946
DJ
117222002-02-16 Daniel Jacobowitz <drow@mvista.com>
11723
11724 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11725
117262002-02-16 Daniel Jacobowitz <drow@mvista.com>
11727
11728 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11729 * valops.c (value_arg_coerce): Don't take the address of a reference
11730 to convert an argument to a reference.
11731
dfe7f3ac
CF
117322002-02-15 Christopher Faylor <cgf@redhat.com>
11733
11734 * win32-nat.c (get_image_name): New function.
11735 (handle_load_dll): Use get_image_name function.
11736 (get_child_debug_event): Avoid registering debug events until possibly
11737 execed process is started.
11738 (child_create_inferior): Allow invocation via shell so that command
11739 line redirection, etc. works ok.
11740 (_initialize_inftarg): Add new command: "set shell" to control whether
11741 a shell is used to start a process.
11742
1d33e73a
DJ
117432002-02-15 Daniel Jacobowitz <drow@mvista.com>
11744
11745 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11746 instead of find_register_by_number.
11747 (cannot_store_register): Likewise.
11748
48cd0caa
PM
117492002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11750
aaa38bb5 11751 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11752 fprintf_unfiltered (gdb_stderr, ...).
11753
8656e7d8
DJ
117542002-02-15 Daniel Jacobowitz <drow@mvista.com>
11755
11756 * gdbserver/gdbserver.1: Document --attach.
11757
66e810cd
RE
117582002-02-15 Richard Earnshaw <rearnsha@arm.com>
11759
11760 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11761 descriptions.
11762 * arm-tdep.c (arm_default_arm_le_breakpoint)
11763 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11764 (arm_default_thumb_be_breakpoint): New. Initialize them from
11765 traditional breakpoint defines.
11766 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11767 (arm_gdbarch_init): Initialize new breakpoint variables.
11768 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11769 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11770 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11771 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11772 code out to ...
11773 (arm_netbsd_init_abi_common): ... here; new function.
11774 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11775 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11776 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11777 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11778
97e03143
RE
117792002-02-15 Richard Earnshaw <rearnsha@arm.com>
11780
11781 * arm-tdep.h (enum arm_abi): New enum.
11782 (struct gdbarch_tdep): New structure.
11783 (LOWEST_PC): Provide a default.
11784 (arm_gdbarch_register_os_abi): Declare new function.
11785 * arm-tdep.c (arm_abi_names): New array.
11786 (process_note_abi_tag_sections): New function.
11787 (get_elfosabi): New function.
11788 (arm_gdbarch_register_os_abi): New function.
11789 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11790 support for that ABI has been built in, then call the appropriate
11791 configuration routine. Use gdbarch_num_regs() to get the number
11792 of registers.
11793 (arm_dump_tdep): New function.
11794 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11795 place-holder functions.
11796 (_initialize_arm_tdep): Register them.
11797 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11798
11799 * armnbsd-tdep.c: New file.
11800 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11801 * config/arm/nbsd.mt (TDEPFILES): Add it.
11802 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11803
11804 * armnbsd-nat.c: Include regcache.h.
11805 * Makefile.in (armnbsd-nat.o): Update dependency list.
11806
11807 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11808
ad68be46
DJ
118092002-02-14 Daniel Jacobowitz <drow@mvista.com>
11810
11811 * gdbserver/Makefile.in: Fix typos in target rules.
11812
003d6d1d
DJ
118132002-02-14 Daniel Jacobowitz <drow@mvista.com>
11814
aaa38bb5 11815 Fix part of PR gdb/267.
003d6d1d
DJ
11816 * linespec.c (find_methods): Handle constructors specially for now.
11817
6b230f1b
CV
118182002-02-14 Corinna Vinschen <vinschen@redhat.com>
11819
11820 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11821 handling.
11822 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11823 standard_coerce_float_to_double().
11824
1ea98d12
CF
118252002-02-14 Christopher Faylor <cgf@redhat.com>
11826
11827 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11828 GDBINIT_FILENAME.
11829
dd47e6fd
EZ
118302002-02-14 Elena Zannoni <ezannoni@redhat.com>
11831
11832 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11833 find_variant_by_name, because it confuses the multiarch
11834 framework. Return NULL if there isn't an architecture with the
11835 user supplied name, instead of forcing a different one without
11836 recording the change with the multiarch machinery.
11837 (find_variant_by_name): Delete.
11838
d7e39b9e
PS
118392002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11840
11841 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11842 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11843
76e42a4f
MH
118442002-02-13 Martin M. Hunt <hunt@redhat.com>
11845
aaa38bb5 11846 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11847 print_frame_info_listing_hook, set current_source_symtab.
11848
0a30fbc4
DJ
118492002-02-14 Daniel Jacobowitz <drow@mvista.com>
11850
11851 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11852 and remove unused $(INCLUDE_DIR).
11853 Add regcache.c to OBS.
11854 Add generated register protocol files to clean target.
11855 Update dependencies for new objects, obsolete old target code.
11856
11857 * gdbserver/linux-low.c: Remove all platform-specific code to
11858 new files. Remove various dead code. Update to use regcache
11859 functionality.
11860 * gdbserver/remote-utils.c (fromhex): Add return statement
11861 to quiet warning.
11862 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11863 constant.
11864 (input_interrupt): Add integer parameter to match prototype
11865 of a signal handler.
11866 (outreg): Use register_data ().
11867 (prepare_resume_reply): Use gdbserver_expedite_regs.
11868 * gdbserver/server.c (main): Dynamically allocate own_buf because
11869 PBUFSIZ is no longer constant. Use registers_to_string () and
11870 registers_from_string ().
11871 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11872 for error (), fatal (), and warning (). Update definition of
11873 PBUFSIZ to use regcache functionality. Add include guard.
11874 * gdbserver/utils.c (fatal): Add missing ``const''.
11875 (warning): New function.
11876
11877 * regformats/regdat.sh: Include "regcache.h" in generated files.
11878 Provide init_registers () function.
11879 * regformats/regdef.h: Add prototype for set_register_cache ().
11880 Add include guard.
11881
11882 * gdbserver/linux-arm-low.c: New file.
11883 * gdbserver/linux-i386-low.c: New file.
11884 * gdbserver/linux-ia64-low.c: New file.
11885 * gdbserver/linux-m68k-low.c: New file.
11886 * gdbserver/linux-mips-low.c: New file.
11887 * gdbserver/linux-ppc-low.c: New file.
11888 * gdbserver/linux-sh-low.c: New file.
11889
11890 * gdbserver/regcache.c: New file.
11891 * gdbserver/regcache.h: New file.
11892
11893 * gdbserver/low-linux.c: Removed obsolete file.
11894
4cc841d0
DJ
118952002-02-14 Daniel Jacobowitz <drow@mvista.com>
11896
11897 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11898 * config/i386/linux.mt: Likewise.
11899 * config/ia64/linux.mt: Likewise.
11900 * config/m68k/linux.mh: Likewise.
11901 * config/powerpc/linux.mh: Likewise.
11902 * config/mips/linux.mt: Likewise.
11903
11904 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11905
11906 * config/i386/i386lynx.mh: Mark gdbserver variables
11907 as (currently) obsolete for this target.
11908 * config/i386/nbsd.mt: Likewise.
11909 * config/i386/nbsdelf.mt: Likewise.
11910 * config/m32r/m32r.mt: Likewise.
11911 * config/m68k/m68klynx.mh: Likewise.
11912 * config/m68k/nbsd.mt: Likewise.
11913 * config/m68k/sun3os4.mh: Likewise.
11914 * config/mips/vr5000.mt: Likewise.
11915 * config/ns32k/nbsd.mt: Likewise.
11916 * config/pa/hppabsd.mh: Likewise.
11917 * config/pa/hppaosf.mh: Likewise.
11918 * config/powerpc/nbsd.mt: Likewise.
11919 * config/rs6000/rs6000lynx.mh: Likewise.
11920 * config/s390/s390.mt: Likewise.
11921 * config/s390/s390x.mt: Likewise.
11922 * config/sparc/sparclynx.mh: Likewise.
11923 * config/sparc/sun4os4.mh: Likewise.
11924 * config/i386/x86-64linux.mt: Likewise.
11925 * config/sparc/linux.mh: Likewise.
11926
a85f51e7
DJ
119272002-02-14 Daniel Jacobowitz <drow@mvista.com>
11928
11929 * configure.tgt: Configure gdbserver only for known working
11930 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11931 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11932 SUBDIRS if it is configured. Update comment for ${nativefile}.
11933 * configure: Regenerated.
11934
65554fef
MS
119352002-02-13 Michael Snyder <msnyder@redhat.com>
11936
670a52db
MS
11937 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11938
6dbdc4a3
MS
11939 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11940 (default_gcore_mach): Just return 0, work around a problem in bfd.
11941 (default_gcore_target): OK to return NULL if exec_bfd is null.
11942 (make_mem_sec): Use a cast, avoid a warning.
11943
11944 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11945 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11946 sizeof (host pointer) != sizeof (target pointer)).
11947 (procfs_make_note_section): Avoid overflow in psargs string.
11948
aaa38bb5 11949 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
11950 implementation return an error.
11951
119522002-02-13 Rodney Brown <rbrown64@csc.com.au>
11953
11954 * procfs.c (procfs_make_note_section): Provide a default definition
11955 (for alpha-dec-osf4.0f). Fix typos.
11956
1e4d76e7
EZ
119572002-02-13 Elena Zannoni <ezannoni@redhat.com>
11958
11959 * linux-proc.c: Add include of regcache.h.
11960 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
11961
b6d1a1d5
AC
119622002-02-13 Andrew Cagney <ac131313@redhat.com>
11963
11964 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
11965 * memattr.c (create_mem_region): Disallow useless empty region.
11966 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 11967 non-overlapping.
b6d1a1d5 11968
6c6ea35e
MC
119692002-02-13 Michael Chastain <mec@shout.net>
11970
11971 * defs.h: Kill CONST_PTR.
11972 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
11973 * c-lang.c (c_builtin_types): Likewise.
11974 * ch-lang.c (ch_builtin_types): Likewise.
11975 * f-lang.c (f_builtin_types): Likewise.
11976 * language.c (unknown_builtin_types): Likewise.
11977 * m2-lang.c (m2_builtin_types): Likewise.
11978 * p-lang.c (pascal_builtin_types): Likewise.
11979 * scm-lang.c (c_builtin_types): Likewise.
11980
3e0b0f48
KS
119812002-02-13 Keith Seitz <keiths@redhat.com>
11982
11983 * arm-tdep.h (arm_get_next_pc): Add declaration.
11984
67255d04
RE
119852002-02-13 Richard Earnshaw <rearnsha@arm.com>
11986
11987 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
11988 with other related struct-returning functions.
11989 (arm_extract_struct_value_address): New function.
11990 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
11991 initialize float_format, double_format and long_double_format as
11992 appropriate to the endianness of the target.
11993 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
11994 (arm_use_struct_convention): Delete declaration.
11995 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
11996
079777f6
KS
119972002-02-13 Keith Seitz <keiths@redhat.com>
11998
11999 * defs.h (core_addr_to_string_nz): New function.
12000
34588f23
MK
120012002-02-13 Mark Kettenis <kettenis@gnu.org>
12002
12003 Apply missing bits of 2002-01-15 patch.
12004 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12005 (fill_fpregset): Use i387_fill_fsave.
12006
49b563f9
KS
120072002-02-12 Keith Seitz <keiths@redhat.com>
12008
49b563f9
KS
12009 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12010 (core_addr_to_string_nz): New function.
12011
aeb98c60
RE
120122002-02-11 Richard Earnshaw <rearnsha@arm.com>
12013
12014 * arm-linux-nat.c: Really include arm-tdep.h.
12015 * config/arm/tm-linux.h (struct type, struct value): Declare.
12016
65554fef
MS
120172002-02-11 Michael Snyder <msnyder@redhat.com>
12018
12019 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12020 (gcore section): Ifdef for Solaris and Unixware only.
12021 (procfs_do_thread_registers): Unixware needs one lwpstatus
12022 per thread (not one prstatus or pstatus).
12023 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12024 not over all gdb threads. For unixware, call elfcore_write_pstatus
12025 once before iterating over threads.
12026
34e8f22d
RE
120272002-02-11 Richard Earnshaw <rearnsha@arm.com>
12028
12029 * arm-tdep.h: New file.
12030 * arm-tdep.c: Include arm-tdep.h.
12031 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12032 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12033 (arm_print_float_info, arm_register_type, convert_to_extended)
12034 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12035 (arm_extract_return_value, arm_register_name): Make static.
12036 (arm_software_single_step): Similarly. Fix types in declaration.
12037 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12038 (arm_store_return_value, arm_store_struct_return): New functions.
12039 (arm_gdbarch_init): Register the above functions. Also register
12040 call_dummy_start_offset, sizeof_call_dummy_words,
12041 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12042 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12043 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12044 prologue_cache.saved_regs here, rather than ...
12045 (_initialize_arm_tdep): ... here.
12046 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12047 declarations.
12048 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12049 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12050 (arm_print_float_info, arm_register_type, convert_to_extended)
12051 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12052 (arm_extract_return_value, arm_register_name): Delete declarations.
12053 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12054 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12055 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12056 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12057 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12058 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12059 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12060 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12061 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12062 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12063 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12064 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12065 interface.
12066 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12067 * remote-rdi.c remote-rdp.c: Likewise.
12068 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12069 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12070 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12071 definition.
12072
12073 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12074 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12075 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12076 from non-ARM_ prefixed definitions.
12077 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12078 all uses of above.
12079 * remote-rdi.c remote-rdp.c: Likewise.
12080 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12081
148754e5
RE
120822002-02-11 Richard Earnshaw <rearnsha@arm.com>
12083
12084 * arm-tdep.c (arm_frameless_function_invocation)
12085 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12086 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12087 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12088 (arm_pop_frame, arm_get_next_pc): Make static.
12089 (arm_gdbarch_init): Register above in gdbarch structure.
12090 (arm_read_fp): Renamed from arm_target_read_fp.
12091 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12092 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12093 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12094 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12095 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12096 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12097 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12098 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12099 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12100 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12101 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12102
434d2d4f
DJ
121032002-02-10 Daniel Jacobowitz <drow@mvista.com>
12104
12105 * symtab.c (compare_search_syms): New function.
12106 (sort_search_symbols): New function.
12107 (search_symbols): Sort symbols after searching rather than
12108 before.
12109
55241689
AC
121102002-02-10 Andrew Cagney <ac131313@redhat.com>
12111
12112 * NEWS: Linux -> GNU/Linux.
12113
028c194b
AC
121142002-02-10 Andrew Cagney <ac131313@redhat.com>
12115
12116 * gdbarch.sh: For for level one methods, disallow a definition
12117 when partially multi-arched. Add comments explaining rationale.
12118 * gdbarch.h: Re-generate.
12119
6acf50cd
AC
121202002-02-10 Andrew Cagney <ac131313@redhat.com>
12121
12122 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12123 multi-arch partial.
aaa38bb5 12124
50248794
AC
121252002-02-10 Andrew Cagney <ac131313@redhat.com>
12126
12127 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12128 field. Use diff -u.
12129 * gdbarch.c: Re-generate.
12130
c30e0066
AC
121312002-02-10 Andrew Cagney <ac131313@redhat.com>
12132
9b56c5f3 12133 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12134 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12135 partial.
12136
6e6d6484
AC
121372002-02-10 Andrew Cagney <ac131313@redhat.com>
12138
12139 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12140 multi-arch partial.
12141 (PUSH_ARGUMENTS): Switch to using predefault.
12142 * gdbarch.c: Regenerate.
12143
c203844d
AC
121442002-02-10 Andrew Cagney <ac131313@redhat.com>
12145
12146 * valops.c (PUSH_ARGUMENTS): Delete definition.
12147 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12148 partial. Default to default_push_arguments.
12149 * gdbarch.h, gdbarch.c: Regenerate.
12150
b5a2688f
AC
121512002-02-09 Andrew Cagney <ac131313@redhat.com>
12152
12153 * defs.h (throw_exception): Rename return_to_top_level. Update
12154 comments.
12155 * utils.c (error_stream, internal_verror, quit): Ditto.
12156 * top.c (throw_exception, catcher): Ditto.
12157 * sparclet-rom.c (sparclet_load): Ditto.
12158 * remote.c (interrupt_query, minitelnet): Ditto.
12159 * remote-sds.c (interrupt_query): Ditto.
12160 * remote-mips.c (mips_error, mips_kill): Ditto.
12161 * ocd.c (interrupt_query): Ditto.
12162 * monitor.c (monitor_interrupt_query): Ditto.
12163 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12164 * target.h: Update comment.
aaa38bb5 12165
b5a2688f 12166 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12167
2fa5c1e0
AC
121682002-02-09 Andrew Cagney <ac131313@redhat.com>
12169
12170 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12171 default_double_format.
12172 * gdbarch.h, gdbarch.c: Re-generate.
12173 * findvar.c (floatformat_unknown): Delete variable definition.
12174 * doublest.h (floatformat_unknown): Delete variable declaration.
12175
da966255
JB
121762002-02-09 Jim Blandy <jimb@redhat.com>
12177
12178 * stabsread.c (read_type): Add code to parse Sun's syntax for
12179 prototyped function types.
12180
123a4891
AC
121812002-02-09 Andrew Cagney <ac131313@redhat.com>
12182
12183 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12184 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12185
fb39c8f3
PS
121862002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12187
12188 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12189 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12190 now _initialize_xcoffsolib gets called again and overrides the
12191 commands from solib.c in a native configuration.
12192
0b87a11d
MK
121932002-02-09 Mark Kettenis <kettenis@gnu.org>
12194
12195 * doublest.c (store_typed_floating): Don't try to return a value.
12196 Fixes PR gdb/290.
12197
bdc2fc72
JB
121982002-02-08 Jim Blandy <jimb@redhat.com>
12199
12200 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12201 is prototyped and has no arguments, print its argument list as
12202 `(void)'.
12203
da69bbcf
CD
122042002-02-08 Chris Demetriou <cgd@broadcom.com>
12205
12206 * MAINTAINERS (write-after-approval): Add myself.
12207 (paper-trail): I've escaped!
aaa38bb5 12208
b69571f5
CF
122092002-02-08 Christopher Faylor <cgf@redhat.com>
12210
12211 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12212 changes.
12213 (_initialize_check_for_gdb_ini): Ditto.
12214
f6871398
MH
122152002-02-08 Martin M. Hunt <hunt@redhat.com>
12216
12217 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12218 xaprintf -> xasprintf.
12219
4e52d31c
PM
122202002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12221
12222 * win32-nat.c: Remove use of printf and sprintf functions.
12223
39bbf761
RE
122242002-02-08 Richard Earnshaw <rearnsha@arm.com>
12225
12226 * arm-tdep.c (arm_frame_chain_valid): Make static.
12227 (arm_push_arguments): Likewise.
12228 (arm_gdbarch_init): New function.
12229 (_initialize_arm_tdep): Call it.
12230 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12231 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12232 (FRAME_CHAIN_VALID): Delete.
12233 (arm_frame_chain_valid): Delete declaration.
12234 (PUSH_ARGUMENTS): Delete.
12235 (arm_push_arguments): Delete declaration.
12236 (CALL_DUMMY_P): Delete.
12237
9c9532c9
CV
122382002-02-08 Andrew Cagney <ac131313@redhat.com>
12239 Corinna Vinschen <vinschen@redhat.com>
12240
12241 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12242 on builtin float types.
12243
4e8f7a8b
DJ
122442002-02-08 Daniel Jacobowitz <drow@mvista.com>
12245
12246 * utils.c: Include <curses.h> before "bfd.h".
12247 * tui/tui-hooks.c: Likewise.
12248 * tui/tui.c: Likewise.
12249 * tui/tuiCommand.c: Likewise.
12250 * tui/tuiData.c: Likewise.
12251 * tui/tuiDataWin.c: Likewise.
12252 * tui/tuiDisassem.c: Likewise.
12253 * tui/tuiGeneralWin.c: Likewise.
12254 * tui/tuiIO.c: Likewise.
12255 * tui/tuiLayout.c: Likewise.
12256 * tui/tuiRegs.c: Likewise.
12257 * tui/tuiSource.c: Likewise.
12258 * tui/tuiSourceWin.c: Likewise.
12259 * tui/tuiStack.c: Likewise.
12260 * tui/tuiWin.c: Likewise.
12261
cd4bffcf
EZ
122622002-02-07 Elena Zannoni <ezannoni@redhat.com>
12263
12264 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12265 to include space for pseudoregs as well. Update loops accordingly.
12266 (sh_fp_frame_init_saved_regs): Ditto.
12267 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12268
26806ce2
AC
122692002-02-07 Andrew Cagney <ac131313@redhat.com>
12270
12271 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12272 Add Richard Earnshaw to Arm maintainers.
12273
97fdab62
AC
122742002-02-07 Andrew Cagney <ac131313@redhat.com>
12275
a6b98203
AC
12276 * defs.h (warning_begin): Delete declaration.
12277
97fdab62
AC
12278 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12279 Delete macro.
12280
78b29b40
MS
122812002-02-07 Michael Snyder <msnyder@redhat.com>
12282
aaa38bb5 12283 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12284 Logic bug, remove misplaced else.
12285
d8849953
KD
122862002-02-07 Klee Dienes <klee@apple.com>
12287
12288 * fork-inferior.c (fork_inferior): Add '!' to the list of
12289 characters that need to be quoted when building a string for the
12290 shell. Quote '!' specifically with a backslash, since CSH chokes
12291 when trying to evaluate "str!str".
aaa38bb5 12292
095778a0
NC
122932002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12294
12295 * rdi-share/host.h: Only provide a typedef for bool if it is not
12296 defined.
12297
1900040c
MS
122982002-02-04 Michael Snyder <msnyder@redhat.com>
12299
12300 * breakpoint.h (enum bptype): Add new overlay event bp type.
12301 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12302
1900040c
MS
12303 * breakpoint.c (create_internal_breakpoint): New function.
12304 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12305 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12306 (create_thread_event_breakpoint): Ditto.
12307 (create_solib_event_breakpoint): Ditto.
12308 (create_overlay_event_breakpoint): New function.
12309 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12310 (update_breakpoints_after_exec): Delete and re-initialize
12311 overlay event breakpoints after an exec. Add FIXME comment
12312 about longjmp breakpoint.
12313 (print_it_typical): Ignore overlay event breakpoints.
12314 (print_one_breakpoint): Ditto.
12315 (mention): Ditto.
12316 (bpstat_what): Do not stop for overlay event breakpoints.
12317 (delete_breakpoint): Don't delete overlay event breakpoints.
12318 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12319 (breakpoint_re_set): Re-create overlay event breakpoint.
12320
12321 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12322 (overlay_manual_command): Disable overlay breakpoints.
12323 (overlay_off_command): Disable overlay breakpoints.
12324
082fc60d
RE
123252002-02-06 Richard Earnshaw <rearnsha@arm.com>
12326
12327 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12328 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12329 to here from config/tm-arm.h.
12330 (coff_sym_is_thumb): Make static.
12331 (arm_elf_make_msymbol_special): New function.
12332 (arm_coff_make_msymbol_special): New function.
12333 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12334 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12335 (coff_sym_is_thumb): Delete declaration.
12336 (arm_elf_make_msymbol_special): Declare.
12337 (arm_coff_make_msymbol_special): Declare.
12338 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12339 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12340
039c5766
RE
123412002-02-06 Richard Earnshaw <rearnsha@arm.com>
12342
12343 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12344
123452002-02-06 Richard Earnshaw <rearnsha@arm.com>
12346
12347 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12348 * gdbarch.c gdbarch.h: Regenerate.
12349 * arch-utils.c (default_print_float_info): New function.
12350 * arch-utils.h (default_print_float_info): Prototype it.
12351 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12352 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12353 (PRINT_FLOAT_INFO): Document it.
12354
12355 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12356 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12357 (PRINT_FLOAT_INFO): Define.
12358
58fa08f0
PM
123592002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12360
aaa38bb5 12361 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12362 Add typecast to sprintf argument to suppress a warning.
12363
7393af7c
PM
123642002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12365
58fa08f0 12366 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12367 to allow easier handling of pass state.
12368 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12369 that gives exception name and address.
12370 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12371 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12372 exceptions added.
aaa38bb5
AJ
12373 (child_continue): Correctly report continue_status.
12374 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12375 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12376 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12377 the exception should be passed to debuggee or not.
12378
6af4589c
MS
123792002-02-05 Michael Snyder <msnyder@redhat.com>
12380
12381 * regcache.c (fetch_register): Call target_fetch_register
12382 only if we don't call FETCH_PSEUDO_REGISTER.
12383 (store_register): Call target_store_register only if we
12384 don't call STORE_PSEUDO_REGISTER.
12385
a2cf933a
EZ
123862002-02-05 Elena Zannoni <ezannoni@redhat.com>
12387
12388 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12389 ELF_MAKE_MSYMBOL_SPECIAL.
12390 * gdbarch.c, gdbarch.h: Regenerate.
12391 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12392 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12393 * elfread.c (elf_symtab_read): Compile use of
12394 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12395 multiarched.
12396 * coffread.c (coff_symtab_read): Ditto, for
12397 COFF_MAKE_MSYMBOL_SPECIAL.
12398
6bb7be43
JB
123992002-02-05 Jim Blandy <jimb@redhat.com>
12400
12401 * solib-svr4.c (svr4_truncate_ptr): New function.
12402 (svr4_relocate_section_addresses): Do the address arithmetic with
12403 the appropriate truncation for target addresses, even when
12404 CORE_ADDR is larger than a target address.
12405
e18651ec
DJ
124062002-02-05 Daniel Jacobowitz <drow@mvista.com>
12407
12408 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12409 to (int *).
12410
6b2725be
DJ
124112002-02-05 Daniel Jacobowitz <drow@mvista.com>
12412
12413 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12414 code.
12415
fca9e603
DJ
124162002-02-05 Daniel Jacobowitz <drow@mvista.com>
12417
12418 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12419
6c537a52
DJ
124202002-02-05 Daniel Jacobowitz <drow@mvista.com>
12421
12422 * gdbserver/linux-low.c: Remove unused include files.
12423
d844cde6
DJ
124242002-02-05 Daniel Jacobowitz <drow@mvista.com>
12425
12426 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12427 (read_inferior_memory): Use it.
12428 (write_inferior_memory): Likewise.
12429
d07c63e7
DJ
124302002-02-05 Daniel Jacobowitz <drow@mvista.com>
12431
12432 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12433 grubbing through sys_errlist.
12434
da6d8c04
DJ
124352002-02-05 Daniel Jacobowitz <drow@mvista.com>
12436
12437 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12438
5b421780
PM
124392002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12440 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12441
9f60d481
AC
124422002-02-04 Andrew Cagney <ac131313@redhat.com>
12443
12444 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12445 (do_sfunc, set_cmd_sfunc): New functions.
12446
12447 * command.h (struct cmd_list_element): Add field func.
12448 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12449 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12450 * cli/cli-decode.h: Ditto.
12451
12452 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12453 (help_all, help_cmd_list): Ditto.
12454 (find_cmd, complete_on_cmdlist): Ditto.
12455 * top.c (execute_command): Ditto.
12456
12457 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12458 function.sfunc.
12459
12460 * infcmd.c (notice_args_read): Fix function signature.
12461
12462 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12463 * cli/cli-decode.c (add_set_cmd): Ditto.
12464 * utils.c (initialize_utils): Ditto.
12465 * maint.c (_initialize_maint_cmds): Ditto.
12466 * infrun.c (_initialize_infrun): Ditto.
12467 * demangle.c (_initialize_demangler): Ditto.
12468 * remote.c (add_packet_config_cmd): Ditto.
12469 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12470 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12471 * proc-api.c (_initialize_proc_api): Ditto.
12472 * kod.c (_initialize_kod): Ditto.
12473 * valprint.c (_initialize_valprint): Ditto.
12474 * top.c (init_main): Ditto.
12475 * infcmd.c (_initialize_infcmd): Ditto.
12476 * corefile.c (_initialize_core): Ditto.
12477 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12478 * arch-utils.c (initialize_current_architecture): Ditto.
12479 (_initialize_gdbarch_utils): Ditto.
12480 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12481
12482 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12483 * wince.c (_initialize_inftarg): Ditto.
12484 * symfile.c (_initialize_symfile): Ditto.
12485 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12486 * language.c (_initialize_language): Ditto.
12487 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12488
f9ba0717
MS
124892002-02-04 Michael Snyder <msnyder@redhat.com>
12490
12491 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12492
0c74b2a7
DJ
124932002-02-04 Daniel Jacobowitz <drow@mvista.com>
12494
12495 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12496 Add rules for building the register data files.
12497
c638789f
DJ
124982002-02-04 Daniel Jacobowitz <drow@mvista.com>
12499
12500 * regformats/regdat.sh: Add braces to the definition of
12501 expedite_regs_${arch}.
12502
db253027
DJ
125032002-02-04 Daniel Jacobowitz <drow@mvista.com>
12504
12505 * regformats/regdef.h (struct reg): Add comment describing the
12506 requirements for offset and size fields.
12507
206be19c
AS
125082002-02-04 Andreas Schwab <schwab@suse.de>
12509
12510 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12511 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12512
181c1381
RE
125132002-02-04 Richard Earnshaw <rearnsha@arm.com>
12514
12515 * gdbarch.sh (copyright): Update years in generated header.
12516 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12517 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12518 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12519 * dbxread.c: Likewise.
12520 * dwarfread.c: Likewise.
12521 * elfread.c: Likewise.
12522 * somread.c: Likewise.
12523
12524 * arm-tdep.c (arm_smash_text_address): New function.
12525 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12526
fa4ba8da
PM
125272002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12528
12529 Add support for hardware watchpoints on win32 native.
aaa38bb5 12530 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12531 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12532 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12533 of debug registers.
12534 (debug_registers_changed): New variable. Reflects when debug registers
12535 are changed and need to be written to inferior.
aaa38bb5 12536 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12537 was set, used when new threads are created.
12538 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12539 i386-nat code.
12540 (thread_rec): Set dr array if id is the thread of current_event .
12541 (child_continue, child_resume): Change the debug registers for all
12542 threads if debug_registers_changed.
12543 (child_add_thread): Change the debug registers if debug_registers_used.
12544 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12545 Link nm.h to new nm-cygwin.h file.
12546 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12547 of hardware registers.
12548
a73c86fb
AC
125492002-02-03 Andrew Cagney <ac131313@redhat.com>
12550
12551 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12552 Restore behavour broken by 2002-01-20 Andrew Cagney
12553 <ac131313@redhat.com> IEEE_FLOAT removal.
12554
acf5ed49
DJ
125552002-02-03 Daniel Jacobowitz <drow@mvista.com>
12556
12557 * c-valprint.c (c_val_print): Pass a proper valaddr to
12558 cp_print_class_method.
12559 * valops.c (search_struct_method): If there is only one method
12560 and args is NULL, return that method.
12561
493d28d5
DJ
125622002-02-03 Daniel Jacobowitz <drow@mvista.com>
12563
12564 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12565 accessing tag_name directly.
12566
7495dfdb
DJ
125672002-02-03 Daniel Jacobowitz <drow@mvista.com>
12568
12569 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12570 of accessing tag_name directly.
12571
dd6bda65
DJ
125722002-02-03 Daniel Jacobowitz <drow@mvista.com>
12573
12574 PR gdb/280
12575 * gdbtypes.c (replace_type): New function.
12576 * gdbtypes.h (replace_type): Add prototype.
12577 * stabsread.c (read_type): Use replace_type.
12578
88fe217c
RE
125792002-02-03 Richard Earnshaw <rearnsha@arm.com>
12580
12581 * Makefile.in (memattr.o): Add missing dependencies rule.
12582
e5d66720
PS
125832002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12584
12585 * breakpoint.c (break_at_finish_command): Really export.
12586 (break_at_finish_at_depth_command): Ditto.
12587 (tbreak_at_finish_command): Ditto.
12588 * hppa-tdep.c: Include completer.h.
12589 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12590 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12591
fffee0be
AC
125922002-02-01 Andrew Cagney <ac131313@redhat.com>
12593
12594 * utils.c (do_write): New function.
12595 (error_stream): Rewrite combining the code from error_begin and
12596 verror.
12597 (verror): Rewrite using error_stream.
12598 (error_begin): Delete function.
12599
255e7dbf
AC
126002002-02-01 Andrew Cagney <ac131313@redhat.com>
12601
12602 * utils.c (error_begin): Make static.
12603 * defs.h (error_begin): Delete declaration.
12604
12605 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12606 (decode_line_1): Use cplusplus_error instead of error_begin,
12607 cplusplus_hint and return_to_top_level.
12608 * coffread.c (coff_symfile_read): Use error instead of error_begin
12609 and return_to_top_level.
12610 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12611
ddfe3c15
AC
126122002-02-01 Andrew Cagney <ac131313@redhat.com>
12613
12614 * language.h (type_error, range_error): Make string parameter
12615 constant.
12616 * language.c (warning_pre_print): Delete extern declaration.
12617 * dwarfread.c (warning_pre_print): Ditto.
12618 * language.c (type_error, range_error): Rewrite to use verror and
12619 vwarning instead of warning_begin.
12620
03ac34d5
MS
126212002-02-01 Michael Snyder <msnyder@redhat.com>
12622
261c4ca2
MS
12623 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12624 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12625
e00d1dc8
AC
126262002-02-01 Andrew Cagney <ac131313@redhat.com>
12627
12628 * command.h (NO_FUNCTION): Delete macro.
12629 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12630 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12631 * tracepoint.c (_initialize_tracepoint): Ditto.
12632 * cli/cli-decode.c (add_set_cmd): Ditto.
12633 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12634
76b79d6e
DJ
126352002-02-01 Daniel Jacobowitz <drow@mvista.com>
12636
12637 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12638 Update ``this'' pointer when calling virtual functions.
12639
799f9e91
MS
126402002-02-01 Michael Snyder <msnyder@redhat.com>
12641
c7bd442c 12642 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12643 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12644
3cf384d4
DJ
126452002-02-01 Daniel Jacobowitz <drow@mvista.com>
12646
12647 * regformats/reg-arm.dat: New file.
12648 * regformats/reg-i386.dat: New file.
12649 * regformats/reg-ia64.dat: New file.
12650 * regformats/reg-m68k.dat: New file.
12651 * regformats/reg-mips.dat: New file.
12652 * regformats/reg-ppc.dat: New file.
12653 * regformats/reg-sh.dat: New file.
12654 * regformats/regdef.h: New file.
12655 * regformats/regdat.sh: New file.
12656
0defa245
RE
126572002-02-01 Richard Earnshaw <reanrsha@arm.com>
12658
12659 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12660 (arm_frame_args_address, arm_frame_locals_address): New functions.
12661 (arm_frame_num_args): New function.
12662 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12663 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12664 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12665
405f26e6
MS
126662002-01-31 Michael Snyder <msnyder@redhat.com>
12667
502fd408
MS
12668 * breakpoint.c (break_at_finish_command): Export.
12669 (break_at_finish_at_depth_command): Export.
12670 (tbreak_at_finish_command): Export.
d6020d45 12671 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12672 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12673 "txbreak" commands, which are HPPA specific.
502fd408 12674
7d35e135
MS
12675 * printcmd.c (disassemble_command): Remove an ancient
12676 artifact of an old merge.
12677
aaa38bb5 12678 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12679 Define enum constant values for overlay mode.
12680 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12681 (overlay_is_mapped, overlay_auto_command,
12682 overlay_manual_command): Ditto.
d874f1e2 12683
aaa38bb5
AJ
12684 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12685 breakpoint_here_p, breakpoint_inserted_here_p,
12686 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12687 describe_other_breakpoints, check_duplicates, clear_command):
12688 Coding standard fixes.
12689
8add0441 12690 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12691 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12692 code: check bfd SEC_READONLY flag for section.
12693
e351066e
AC
126942002-01-31 Andrew Cagney <ac131313@redhat.com>
12695
7d35e135 12696 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12697
8a48e967
DJ
126982002-01-30 Daniel Jacobowitz <drow@mvista.com>
12699
12700 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12701 data symbols, since we search based on textlow and texthigh.
12702 (find_pc_sect_symtab): Likewise.
12703
f5a96129
AC
127042002-01-30 Andrew Cagney <ac131313@redhat.com>
12705
12706 * defs.h (vwarning): Declare.
f5a96129
AC
12707 * utils.c (vwarning): New function.
12708 (warning): Call vwarning.
12709 (warning_begin): Delete function.
12710
12711 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12712 the warning message.
12713 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12714 warning_begin.
12715
cefd4ef5
MS
127162002-01-30 Michael Snyder <msnyder@redhat.com>
12717
1a703748
MS
12718 * NEWS: Mention "set trust-readonly-sections" command.
12719 Mention generate-core-file command.
cefd4ef5 12720
3a11626d
MS
127212002-01-15 Michael Snyder <msnyder@redhat.com>
12722
12723 * target.c: New command, "set trust-readonly-sections on".
12724 (do_xfer_memory): Honor the suggestion to trust readonly sections
12725 by reading them from the object file instead of from the target.
12726 (initialize_targets): Register command "set trust-readonly-sections".
12727
d1c7e53b
AC
127282002-01-29 Andrew Cagney <ac131313@redhat.com>
12729
12730 * parse.c (target_map_name_to_register): Simplify, search regs and
12731 pseudo-regs using a single loop.
12732
e2c9a72c
AC
127332002-01-30 Andrew Cagney <ac131313@redhat.com>
12734
12735 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12736
69824b4e
MK
127372002-01-15 Rodney Brown <rbrown64@csc.com.au>
12738
12739 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12740 * config/i386/i386v42mp.mh: Add i387-nat.o .
12741 * i386v4-nat.c: Include i387-nat.h.
12742 (supply_fpregset): Use i387_supply_fsave.
12743 (fill_fpregset): Use i387_fill_fsave.
12744
6eb69eab
RE
127452002-01-30 Richard Earnshaw <rearnsha@arm.com>
12746
12747 * arm-tdep.c (arm_call_dummy_words): Define.
12748 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12749 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12750 (CALL_DUMMY_WORDS): Define.
12751 (arm_call_dummy_words): Declare.
12752 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12753 (arm_linux_call_dummy_words): Declare.
12754
9852326a
AS
127552002-01-30 Andreas Schwab <schwab@suse.de>
12756
12757 * m68klinux-nat.c: Fix last change to use regcache_collect
12758 instead of referencing registers[] directly.
12759
977a3030
AC
127602002-01-29 Andrew Cagney <ac131313@redhat.com>
12761
12762 * parse.c (target_map_name_to_register): Delete code wrapped in
12763 #ifdef REGISTER_NAME_ALIAS_HOOK.
12764
2076c72b
MS
127652002-01-28 Michael Snyder <msnyder@redhat.com>
12766
12767 * regcache.c (legacy_read_register_gen): Need to be able to
12768 read pseudo-register as well as real register.
12769 (legacy_write_register_gen): Ditto.
12770
8fcc723b
AC
127712002-01-28 Andrew Cagney <ac131313@redhat.com>
12772
12773 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12774 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12775 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12776 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12777 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12778 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12779 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12780 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12781 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12782 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12783 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12784 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12785 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12786 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12787 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12788 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12789 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12790 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12791 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12792 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12793
afe64c1a
AC
127942002-01-28 Andrew Cagney <ac131313@redhat.com>
12795
12796 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12797 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12798 (initialize_current_architecture): Update target_byte_order using
12799 information from BFD.
aaa38bb5 12800 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12801 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12802
75bc7ddf
AC
128032002-01-28 Andrew Cagney <ac131313@redhat.com>
12804
12805 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12806 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12807
12808 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12809 #ifdef INVALID_FLOAT.
12810 * infcmd.c (do_registers_info): Ditto.
12811 * values.c (unpack_double): Ditto. Add comment.
12812
12813 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12814 already commented out.
12815
0280a90a
AS
128162002-01-26 Andreas Schwab <schwab@suse.de>
12817
12818 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12819 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12820 registers and add support for PTRACE_GETREGS.
12821
7072a954
AC
128222002-01-24 Andrew Cagney <ac131313@redhat.com>
12823
12824 GDB 5.1.1 released from 5.1 branch.
12825 * NEWS: Add 5.1.1 news.
12826 * README: Sync with 5.1 branch.
12827
86f902e0
FF
128282002-01-23 Fred Fish <fnf@redhat.com>
12829
12830 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12831 stabstring on initial malloc. Reallocing will copy it for us,
12832 if necessary.
12833
8af51c36
EZ
128342002-01-23 Elena Zannoni <ezannoni@redhat.com>
12835
aaa38bb5 12836 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12837 (HFILES_NO_SRCDIR): Remove hpread.h.
12838 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12839 (hpread.o): Update dependencies.
12840 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12841
12842 * hp-psymtab-read.c: Remove file.
12843 * hp-symtab-read.c: Remove file.
12844 * hpread.h: Remove file.
12845
12846 * hpread.c: Merge all contents of hp-psymtab-read.c,
12847 hp-symtab-read.c and hpread.h into this file, as it was prior to
12848 January 1999.
12849
12850 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12851 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12852 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12853 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12854
dc5cfeb6
EZ
128552002-01-23 Elena Zannoni <ezannoni@redhat.com>
12856
12857 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12858 fill_gregset): Call gdbarch_tdep() just once, assign result to
12859 variable and use that, instead of calling the function several
12860 times.
12861
ea87b71b
AO
128622002-01-24 Alexandre Oliva <aoliva@redhat.com>
12863
12864 * configure.host: Accept sparcv9 as alias for sparc64.
12865 * configure.tgt: Likewise.
12866
13fc0c2f
KB
128672002-01-22 Kevin Buettner <kevinb@redhat.com>
12868
12869 * solib-aix5.c (build_so_list_from_mapfile)
12870 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12871 arguments is not reversed.
12872 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12873 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12874
7bd872fe
EZ
128752002-01-22 Elena Zannoni <ezannoni@redhat.com>
12876
12877 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12878 modified version of obsolete sh_fetch_pseudo_register.
12879 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12880 (sh4_register_read): New function.
12881 (sh_pseudo_register_write): New function. Renamed and modified
12882 version of obsolete sh_store_pseudo_register.
12883 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12884 (sh4_register_write): New function.
12885 (sh_gdbarch_init): Remove setting of gdbarch function
12886 fetch_pseudo_register and store_pseudo_register. Remove setting of
12887 register_convert_to_raw, register_convert_to_virtual,
12888 register_convertible.
12889 (sh_sh4_register_convertible): Delete. No longer needed. All is
12890 taken care by architecture specific functions
12891 register_read/register_write.
12892 (sh_sh4_register_convert_to_virtual): Make static.
12893 (sh_sh4_register_convert_to_raw): Ditto.
12894
069e84fd
AC
128952002-01-22 Andrew Cagney <ac131313@redhat.com>
12896
12897 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12898 (floatformat_is_nan, floatformat_mantissa): Ditto.
12899
12900 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12901 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12902 builtin_type_ieee_double_little,
12903 builtin_type_ieee_double_littlebyte_bigword,
12904 builtin_type_m68881_ext, builtin_type_i960_ext,
12905 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12906 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12907 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12908 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12909
211a4f69
CV
129102002-01-22 Corinna Vinschen <vinschen@redhat.com>
12911
12912 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12913 parameter. Set frameless flag if it exists and depended of
12914 whether the scanned function is frameless or not.
12915 (xstormy16_skip_prologue): If function is frameless, return
12916 result of xstormy16_scan_prologue().
12917 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12918 call.
12919
f81353e4
EZ
129202002-01-21 Elena Zannoni <ezannoni@redhat.com>
12921
12922 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12923 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12924 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12925 sh_sh4_register_byte, sh_sh4_register_raw_size,
12926 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12927 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12928 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12929 sh_store_pseudo_register, sh_do_pseudo_register): Call
12930 gdbarch_tdep() just once, assign result to variable and use that,
12931 instead of calling the function several times.
12932
63c73a17
MK
129332002-01-20 Mark Kettenis <kettenis@gnu.org>
12934
12935 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12936 macros instead of LAST_FPU_CTRL_REGNUM.
12937 (store_register): Likewise.
12938
39ad761d
JB
129392002-01-21 Jim Blandy <jimb@redhat.com>
12940
12941 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12942 is up-to-date before running the program, not just when a program
12943 exits.
12944
3d74b771
FF
129452002-01-21 Fred Fish <fnf@redhat.com>
12946
12947 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
12948 when we have found all instructions we are looking for.
12949
966fbf70
RE
129502002-01-21 Richard Earnshaw <rearnsha@arm.com>
12951
12952 * arm-tdep.c (arm_register_name): New function.
12953 (arm_registers_names): Make static.
12954 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
12955 (arm_register_name): Declare.
12956 (REGISTER_NAME): Use it.
12957
c3b4394c
RE
129582002-01-21 Richard Earnshaw <rearnsha@arm.com>
12959 Kevin Buettner <kevinb@redhat.com>
12960
12961 Convert arm targets to new FRAME interface.
12962 * arm-tdep.c (struct frame_extra_info): Remove fsr.
12963 (arm_frame_find_save_regs): Delete.
12964 (arm_frame_init_saved_regs): New.
12965 (arm_init_extra_frame_info): Alloacte saved_regs as required.
12966 Allocate extra_info as required. Convert all uses of fsr.regs
12967 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
12968 to use extra_info.
12969 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
12970 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
12971 (check_prologue_cache, save_prologue_cache): Likewise.
12972 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
12973 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
12974 (FRAME_FIND_SAVED_REGS): Delete.
12975 (arm_frame_find_saved_regs): Delete prototype.
12976 (arm_frame_init_saved_regs): New prototype.
12977 (FRAME_INIT_SAVED_REGS): Define.
12978
61d99182
AC
129792002-01-20 Andrew Cagney <ac131313@redhat.com>
12980
12981 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
12982
6aaea291
AC
129832002-01-20 Andrew Cagney <ac131313@redhat.com>
12984
12985 From Jeff Law <law@redhat.com>:
12986 * infttrace.c: Include <sys/pstat.h>.
12987 (child_pid_to_exec_file): Revamp. Use pstat call to get the
12988 exec file if the ttrace equivalent fails.
12989
15f698d2
AC
129902002-01-20 Andrew Cagney <ac131313@redhat.com>
12991
12992 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
12993 (closeLogFile): Ditto.
12994
f86ddd7c
MC
129952002-01-20 Michael Chastain <mec@shout.net>
12996
12997 * top.c (print_gdb_version): Bump copyright year to 2002.
12998
904507ce
AC
129992002-01-20 Andrew Cagney <ac131313@redhat.com>
13000
13001 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13002 Zannoni and Eli Zaretskii.
13003
d7f0b9ce
DJ
130042002-01-20 Daniel Jacobowitz <drow@mvista.com>
13005
13006 * buildsym.c: Update copyright years.
13007 * c-typeprint.c: Likewise.
13008 * dwarf2read.c: Likewise.
13009 * f-typeprint.c: Likewise.
13010 * gdbtypes.c: Likewise.
13011 * gdbtypes.h: Likewise.
13012 * hp-symtab-read.c: Likewise.
13013 * hpread.c: Likewise.
13014 * mdebugread.c: Likewise.
13015 * p-typeprint.c: Likewise.
13016
3fd3d7d2
AC
130172002-01-20 Andrew Cagney <ac131313@redhat.com>
13018
13019 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13020 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13021 byte-order selectable.
13022 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13023 * arch-utils.c: Ditto.
13024 (set_endian): Ditto.
13025 (set_endian_from_file): Ditto.
13026 * gdbserver/low-sim.c (create_inferior): Ditto.
13027 * gdbarch.sh: Ditto.
13028 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13029 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13030 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13031 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13032 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13033 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13034 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13035 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13036 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13037 macro definition.
13038 * config/mips/tm-wince.h: Remove #undef of macro
13039 TARGET_BYTE_ORDER_SELECTABLE.
13040 * config/sh/tm-wince.h: Ditto.
13041
b02dede2
DJ
130422002-01-20 Daniel Jacobowitz <drow@mvista.com>
13043
13044 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13045 member function fields. Add accessor macro
13046 TYPE_FN_FIELD_ARTIFICIAL.
13047 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13048 * c-typeprint.c (c_type_print_base): Skip artificial member
13049 functions.
13050
c3643761
DJ
130512002-01-20 Daniel Jacobowitz <drow@mvista.com>
13052
13053 * f-typeprint.c: Delete unused function f_type_print_args.
13054 * p-typeprint.c: Delete unused function pascal_type_print_args.
13055
8176bb6d
DJ
130562002-01-20 Daniel Jacobowitz <drow@mvista.com>
13057
13058 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13059 comment. Add ``artificial'' to ``union field_location''.
13060
13061 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13062
13063 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13064 * mdebugread.c (parse_symbol): Likewise.
13065 * stabsread.c (define_symbol): Likewise.
13066 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13067 initializing TYPE_FIELD_BITPOS to n (obsolete).
13068 (hpread_doc_function_type): Likewise.
13069 * hpread.c (hpread_function_type): Likewise.
13070
7fd60527
AC
130712002-01-20 Andrew Cagney <ac131313@redhat.com>
13072
13073 * configure.in (host_makefile_frag): Only require a host makefile
13074 fragment when a native build.
13075 * configure: Re-generate.
13076
c2f05ac9
AC
130772002-01-20 Andrew Cagney <ac131313@redhat.com>
13078
13079 * doublest.h (floatformat_from_type): Declare.
13080 * doublest.c (floatformat_from_type): New function.
13081 (convert_typed_floating): Use.
13082
13083 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13084 call to function floatformat_from_type.
13085
13086 * gdbarch.sh (IEEE_FLOAT): Delete.
13087 * gdbarch.h, gdbarch.c: Re-generate.
13088 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13089 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13090 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13091 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13092 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13093 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13094 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13095 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13096 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13097 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13098 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13099 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13100
13101 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13102 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13103 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13104 * sh-tdep.c (sh_gdbarch_init): Ditto.
13105 * mips-tdep.c (mips_gdbarch_init): Ditto.
13106 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13107 * cris-tdep.c (cris_gdbarch_init): Ditto.
13108
abf22e64
AJ
131092002-01-20 Jiri Smid <smid@suse.cz>
13110
13111 * configure.host, configure.tgt: Support x86-64.
13112 * NEWS: Note new target x86-64.
13113
b7c4cbf8
AJ
13114 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13115 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13116 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13117 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13118 x86-64-linux-nat.o): Fix dependencies.
13119
82600034
AC
131202002-01-19 Andrew Cagney <ac131313@redhat.com>
13121
13122 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13123 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13124 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13125 * config/sparc/xm-sun4os4.h: Delete file.
13126 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13127
bbe5c628
AC
131282002-01-19 Andrew Cagney <ac131313@redhat.com>
13129
13130 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13131 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13132 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13133 * config/i386/i386lynx.mh (XM_FILE): Delete.
13134 * config/rs6000/xm-rs6000ly.h: Delete file.
13135 * config/sparc/xm-sparclynx.h: Delete file.
13136 * config/m68k/xm-m68klynx.h: Delete file.
13137 * config/i386/xm-i386lynx.h: Delete file.
13138 * config/xm-lynx.h: Delete file.
13139 * config/djgpp/fnchange.lst: Update.
13140
f8453e34
JT
131412002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13142
13143 * alpha-tdep.c (alpha_register_byte): New function.
13144 (alpha_register_raw_size): Ditto.
13145 (alpha_register_virtual_size): Ditto.
13146 (alpha_skip_prologue_internal): Renamed from
13147 alpha_skip_prologue.
13148 (alpha_skip_prologue): New version that calls
13149 alpha_skip_prologue_internal.
13150 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13151 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13152 second argument from alpha_skip_prologue.
13153 (REGISTER_BYTE): Use alpha_register_byte.
13154 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13155 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13156 (FRAMELESS_FUNCTION_INVOCATION): Use
13157 generic_frameless_function_invocation_not.
13158 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13159 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13160
52d9e613
AC
131612002-01-19 Andrew Cagney <ac131313@redhat.com>
13162
13163 * config/mips/xm-news-mips.h: Delete file.
13164 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13165
13166 * config/m88k/xm-m88k.h: Delete file.
13167 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13168 * config/m88k/xm-delta88v4.h: Ditto.
13169 * config/m88k/xm-delta88.h: Ditto.
13170
13171 * config/alpha/xm-fbsd.h: Delete file.
13172 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13173
13174 * config/sparc/xm-sparc.h: Delete file.
13175 * Makefile.in (xm-sun4os4.h): Delete dependency.
13176 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13177 * config/sparc/xm-sun4os4.h: Ditto.
13178 * config/sparc/xm-linux.h: Ditto.
13179
13180 * config/i386/xm-windows.h: Delete file.
13181
2d1b2124
AC
131822002-01-19 Andrew Cagney <ac131313@redhat.com>
13183
13184 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13185 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13186
ee1f65f0
JT
131872002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13188
13189 * alpha-tdep.c (alpha_call_dummy_words): New.
13190 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13191 (CALL_DUMMY_P): Define.
13192 (CALL_DUMMY_WORDS): Define.
13193 (SIZEOF_CALL_DUMMY_WORDS): Define.
13194
98081e55
PB
131952002-01-19 Per Bothner <per@bothner.com>
13196
13197 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13198 isn't NULL, which can happen with some gcj-3.x-produced code.
13199
0d056799
JT
132002002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13201
13202 * alpha-tdep.c (alpha_register_virtual_type): New function.
13203 (alpha_init_frame_pc_first): Ditto.
13204 (alpha_fix_call_dummy): Ditto.
13205 (alpha_store_struct_return): Ditto.
13206 (alpha_extract_struct_value_address): Ditto.
13207 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13208 alpha_register_virtual_type.
13209 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13210 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13211 alpha_extract_struct_value_address.
13212 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13213 (INIT_FRAME_PC): Use init_frame_pc_noop.
13214 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13215
4604bcad
MK
132162002-01-19 Mark Kettenis <kettenis@gnu.org>
13217
13218 * i386gnu-nat.c: Include "i386-tdep.h".
13219 (fetch_fpregs): Simplify code dealing with uninitialized floating
13220 point states such that it doesn't require FP7_REGNUM.
13221
140f9984
JT
132222002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13223
abf22e64
AJ
13224 * alpha-tdep.c (frame_extra_info): New.
13225 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13226 frame->extra_info.
13227 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13228 (alpha_frame_saved_pc): Use frame->extra_info.
13229 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13230 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13231 (init_extra_frame_info): Rename to...
13232 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13233 (alpha_print_extra_frame_info): New function.
140f9984
JT
13234 (alpha_frame_locals_address): Ditto.
13235 (alpha_frame_args_address): Ditto.
abf22e64 13236 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13237 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13238 alpha_frame_args_address.
abf22e64 13239 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13240 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13241 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13242 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13243 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13244 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13245
d734c450
JT
132462002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13247
13248 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13249 (alpha_cannot_fetch_register): Ditto.
13250 (alpha_cannot_store_register): Ditto.
13251 (alpha_register_convertible): Ditto.
13252 (alpha_use_struct_convention): Ditto.
13253 * config/alpha/tm-alpha.h: Update copyright years.
13254 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13255 (INNER_THAN): Use core_addr_lessthan.
13256 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13257 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13258 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13259 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13260 (FRAME_CHAIN): Remove unnecessary cast.
13261
b4ceaee6
AC
132622002-01-18 Andrew Cagney <ac131313@redhat.com>
13263
13264 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13265 obsolete.
13266
0a65a603
AC
132672002-01-18 Andrew Cagney <ac131313@redhat.com>
13268
13269 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13270 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13271 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13272 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13273 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13274 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13275 * x86-64-linux-nat.c: Ditto.
13276
636a6dfc
JT
132772002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13278
abf22e64 13279 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13280 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13281 (REGISTER_NAME): Define.
13282
acceddb6
JT
132832002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13284
13285 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13286
ec32e4be
JT
132872002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13288
13289 * alpha-tdep.c: Update copyright years.
13290 (alpha_next_pc): New function.
13291 (alpha_software_single_step): Ditto.
13292 * config/alpha/tm-alpha.h: Add prototype for
13293 alpha_software_single_step.
13294
e771a871
JT
132952002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13296
13297 * alphabsd-nat.c: Update copyright years.
13298 (fill_gregset): Use regcache_collect.
13299 (fill_fpregset): Likewise.
13300 (fetch_inferior_registers): Only fetch integer registers
13301 if requested to do so.
13302 (store_inferior_registers): Only store integer registers
13303 if requested to do so.
13304
7708fa01
AC
133052002-01-17 Andrew Cagney <ac131313@redhat.com>
13306
13307 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13308 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13309 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13310 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13311 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13312 * config/arm/linux.mh (XDEPFILES): Delete.
13313 * config/arm/nbsd.mh (XDEPFILES): Delete.
13314 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13315 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13316 * config/i386/i386m3.mh (XDEPFILES): Delete.
13317 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13318 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13319 * config/i386/fbsd.mh (XDEPFILES): Delete.
13320 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13321 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13322 * config/i386/i386v4.mh (XDEPFILES): Delete.
13323 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13324 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13325 * config/i386/i386aix.mh (XDEPFILES): Delete.
13326 * config/i386/go32.mh (XDEPFILES): Delete.
13327 * config/i386/cygwin.mh (XDEPFILES): Delete.
13328 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13329 * config/i386/i386mach.mh (XDEPFILES): Delete.
13330 * config/i386/i386v32.mh (XDEPFILES): Delete.
13331 * config/i386/linux.mh (XDEPFILES): Delete.
13332 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13333 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13334 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13335 * config/i386/i386sco.mh (XDEPFILES): Delete.
13336 * config/i386/i386v.mh (XDEPFILES): Delete.
13337 * config/i386/nbsd.mh (XDEPFILES): Delete.
13338 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13339 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13340 * config/i386/symmetry.mh (XDEPFILES): Delete.
13341 * config/i386/obsd.mh (XDEPFILES): Delete.
13342 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13343 * config/ia64/linux.mh (XDEPFILES): Delete.
13344 * config/ia64/aix.mh (XDEPFILES): Delete.
13345 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13346 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13347 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13348 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13349 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13350 * config/m68k/linux.mh (XDEPFILES): Delete.
13351 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13352 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13353 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13354 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13355 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13356 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13357 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13358 * config/m88k/delta88.mh (XDEPFILES): Delete.
13359 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13360 * config/m88k/m88k.mh (XDEPFILES): Delete.
13361 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13362 * config/mips/linux.mh (XDEPFILES): Delete.
13363 * config/mips/irix6.mh (XDEPFILES): Delete.
13364 * config/mips/irix5.mh (XDEPFILES): Delete.
13365 * config/mips/irix4.mh (XDEPFILES): Delete.
13366 * config/mips/irix3.mh (XDEPFILES): Delete.
13367 * config/mips/decstation.mh (XDEPFILES): Delete.
13368 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13369 (NATDEPFILES): Move core-aout.o to here.
13370 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13371 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13372 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13373 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13374 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13375 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13376 * config/pa/hpux11.mh (XDEPFILES): Delete.
13377 * config/powerpc/aix.mh (XDEPFILES): Delete.
13378 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13379 * config/powerpc/linux.mh (XDEPFILES): Delete.
13380 * config/romp/rtbsd.mh: Rename XDEPFILES.
13381 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13382 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13383 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13384 * config/s390/s390.mh (XDEPFILES): Delete.
13385 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13386 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13387 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13388 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13389 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13390 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13391 * config/sparc/linux.mh (XDEPFILES): Delete.
13392 * config/vax/vaxult.mh (XDEPFILES): Delete.
13393 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13394 * Makefile.in (DEPFILES): Remove XDEPFILES.
13395
375fc983
AC
133962002-01-17 Andrew Cagney <ac131313@redhat.com>
13397
13398 * utils.c (internal_verror): Fix comments, default is yes not no.
13399 Update queries to match. Default to quit and dump core.
13400
8926118c
AC
134012002-01-17 Andrew Cagney <ac131313@redhat.com>
13402
13403 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13404 copyright.
13405 * defs.h, event-top.c, gdbcmd.h: Ditto.
13406 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13407 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13408 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13409 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13410 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13411 * mi/mi-main.c:Ditto.
13412
13413 * stack.c, symfile.c: Update copyright.
13414
45b7b345
DJ
134152002-01-17 Daniel Jacobowitz <drow@mvista.com>
13416
db728ff7
DJ
13417 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13418 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13419 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13420 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13421
db728ff7
DJ
134222002-01-17 Daniel Jacobowitz <drow@mvista.com>
13423
13424 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13425 * gdbserver/low-lynx.c (myattach): Likewise.
13426 * gdbserver/low-nbsd.c (myattach): Likewise.
13427 * gdbserver/low-sim.c (myattach): Likewise.
13428 * gdbserver/low-sparc.c (myattach): Likewise.
13429 * gdbserver/low-sun3.c (myattach): Likewise.
13430
13431 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13432
db728ff7 13433 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13434 (main): Handle "--attach".
13435
8de3c354
AC
134362002-01-16 Andrew Cagney <ac131313@redhat.com>
13437
13438 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13439 maintainer.
13440
b0129042
DJ
134412002-01-15 Daniel Jacobowitz <drow@mvista.com>
13442
13443 * c-typeprint.c (is_type_conversion_operator): Add additional
13444 check for non-conversion operators.
13445
ba8679fb 134462002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13447
13448 * linux-proc.c: Add "info proc" command, a la procfs.c.
13449 (read_mapping): New function, abstract and re-use code.
13450 (linux_find_memory_regions): Use new func read_mapping.
13451 (linux_info_proc_cmd): New function, implement "info proc".
13452 (_initialize_linux_proc): Add new command "info proc".
13453
e4f9b4d5
MS
134542002-01-15 Michael Snyder <msnyder@redhat.com>
13455
13456 * symfile.c (generic_load): Use bfd_map_over_sections method
13457 instead of manipulating bfd structure members directly.
13458 (add_section_size_callback): New function, bfd sections callback
13459 used by generic_load.
13460 (load_sections_callback): New function, bfd sections callback
13461 used by generic_load.
13462
08cf96df
EZ
134632002-01-15 Elena Zannoni <ezannoni@redhat.com>
13464
abf22e64 13465 [Based on work by Jim Blandy]
08cf96df
EZ
13466 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13467 (builtin_type_vec128): Export.
13468 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13469 types.
13470 (builtin_type_vec128): New builtin type for 128 bit vector
13471 registers.
13472 (build_gdbtypes): Initialize builtin_type_v16qi and
13473 builtin_type_v8hi. Create the vec128 register builtin type
13474 structure.
13475 (build_builtin_type_vec128): New function.
abf22e64 13476 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13477 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13478 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13479 AltiVec register to new builtin type.
13480
d7242108
DJ
134812001-01-15 Daniel Jacobowitz <drow@mvista.com>
13482
13483 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13484 to make_cv_type.
13485
4ee3352d
AC
134862002-01-14 Andrew Cagney <ac131313@redhat.com>
13487
13488 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13489 CLEAN_UP_REGISTER_VALUE.
13490 * regcache.c (supply_register): Update only call.
13491
f015b2e7
AC
134922002-01-14 Andrew Cagney <ac131313@redhat.com>
13493
13494 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13495 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13496 a29k-*-vxworks* targets as obsolete.
13497
356ae49d
MS
134982002-01-14 Michael Snyder <msnyder@redhat.com>
13499
13500 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13501 until we can resolve portability issues.
13502 * gregset.h: Remove references to fpxregs.
13503 * gcore.c (gcore_command): Initialize note_sec to NULL.
13504
ade8f45e
AC
135052002-01-13 Andrew Cagney <ac131313@redhat.com>
13506
13507 * signals.c (target_signal_to_name): Rewrite. Only use
13508 signals[].name when in bounds and non-NULL.
abf22e64 13509
89c49e7a
AC
135102002-01-13 Andrew Cagney <ac131313@redhat.com>
13511
13512 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13513 * signals.c (target_signal_to_name): Verify that SIG is within the
13514 bounds of the signals array.
13515
4daa9f9f
AC
135162002-01-13 Andrew Cagney <ac131313@redhat.com>
13517
13518 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13519
ba4bbdcb
KS
135202002-01-13 Keith Seitz <keiths@redhat.com>
13521
13522 * stack.c (print_frame_info_base): Print the frame's pc
13523 only if when print_frame_info_listing_hook is not defined.
13524
575bbeb6
KS
135252002-01-13 Keith Seitz <keiths@redhat.com>
13526
13527 * varobj.c (varobj_set_value): Make sure that there were no
13528 errors evaluating the object before attempting to set its
13529 value.
13530 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13531 so this offset adjustment is no longer necessary.
13532 (create_child): Don't set the error flag if the child is
13533 a CPLUS_FAKE_CHILD.
13534 (value_of_child): If value_fetch_lazy fails, return NULL
13535 so that callers will be notified that an error occurred.
13536 (c_value_of_variable): Delay check of variable's validity
13537 until later. We actually want all structs and unions to have
13538 the value "{...}".
13539 Do not return "???" for variables which could not be evaluated.
13540 This error condition must be returned to the caller so that it
13541 can get the error condition from gdb.
13542 (cplus_name_of_child): Adjust index for vptr before figuring
13543 out the name of the child.
13544 (cplus_value_of_child): If a child's (real) parent is not valid,
13545 don't even bother trying to give a value for it. Just return
13546 an error. Change all instances in this function.
13547 (cplus_type_of_child): If our parent is one of the "fake"
13548 parents, we need to get at the type of the real parent, and
13549 derive the child's true type using this information.
13550
b76898ab
AC
135512002-01-13 Andrew Cagney <ac131313@redhat.com>
13552
13553 From 2002-01-09 John Marshall <johnm@falch.net>:
13554 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13555 sources.redhat.com, and tweak some related URLs which had
13556 suffered from linkrot.
13557
b6649e88
AC
135582002-01-13 Andrew Cagney <ac131313@redhat.com>
13559
13560 From Jeff law:
13561 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13562 structures passed in registers.
13563
82cc5033
EZ
135642002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13565
13566 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13567 white space which prevented compilation. Reported by DSK
13568 <dsk@student.unsw.edu.au>.
13569
ba5f2f8a
MS
135702002-01-11 Michael Snyder <msnyder@redhat.com>
13571
fbd35540
MS
13572 * symfile.c (build_section_addr_info_from_section_tab):
13573 Use bfd access method instead of manipulating bfd directly.
13574 (syms_from_objfile): Ditto.
13575 (simple_overlay_update_1): Ditto.
13576 (simple_overlay_update): Ditto.
13577 (generic_load): Ditto.
13578 (overlay_unmapped_address): FIXME comment, bfd access methods.
13579 (sections_overlap): FIXME comment, bfd access methods.
13580 (pc_in_mapped_range): FIXME comment, bfd access methods.
13581 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13582 (section_is_mapped): FIXME comment, bfd access methods.
13583 (section_is_overlay): FIXME comment, bfd access methods.
13584
ba5f2f8a
MS
13585 * symfile.c (generic_load): Whitespace and long line cleanups.
13586 Remove duplicate variable, change several local variables to
13587 more appropriate data types.
13588 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13589
17df2af6
AC
135902002-01-12 Andrew Cagney <ac131313@redhat.com>
13591
13592 From Peter Schauer:
13593 * language.c (longest_local_hex_string_custom): Use phex_nz to
13594 convert NUM to a hex string.
13595
ec920329
EZ
135962002-01-12 Elena Zannoni <ezannoni@redhat.com>
13597
13598 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13599 the function.
538a76d6 13600 Update Copyright year.
ec920329 13601
3abd2e01
AC
136022002-01-12 Andrew Cagney <ac131313@redhat.com>
13603
13604 * language.c (longest_raw_hex_string): Delete unused function.
13605
b21b22e0
PS
136062002-01-11 Petr Sorfa <petrs@caldera.com>
13607
13608 * MAINTAINERS (write-after-approval): Add myself.
13609 * dwarf2read.c (read_tag_string_type): Handling of
13610 DW_AT_byte_size.
13611 (read_tag_string_type): FORTRAN fix to prevent propagation of
13612 first string size.
13613 (set_cu_language): Handling of DW_LANG_Fortran95
13614
747fe712
RE
136152002-01-11 Richard Earnshaw <rearnsha@arm.com>
13616
13617 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13618 GETPID(inferior_ptid).
13619 (store_inferior_registers): Likewise.
13620
f1bea926
JM
136212002-01-10 Jason Merrill <jason@redhat.com>
13622
13623 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13624 Fix DW_OP_minus.
13625
ae940673
AC
136262002-01-10 Andrew Cagney <ac131313@redhat.com>
13627
13628 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13629 and bfd/elf32-sh-nbsd.c.
13630
00546b04
MS
136312002-01-10 Michael Snyder <msnyder@redhat.com>
13632
352ed7b4
MS
13633 * NEWS: Mention --pid and corefile/proc-id behavior change.
13634
c18be923
MS
13635 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13636 * gcore.c: Include cli/cli-decode.h instead of command.h.
13637
00546b04
MS
13638 * main.c (captured_main): Add new command line option "--pid".
13639 If the second command line argument (following the symbol-file)
13640 begins with a digit, try to attach to it before trying to open
13641 it as a corefile.
13642 (print_gdb_help): Document the "--pid" argument.
13643
db60ec62
EZ
136442002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13645
13646 * completer.c (command_completer): New function.
13647
13648 * completer.h <command_completer>: Add prototype.
13649
13650 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13651 completer for the "help" command.
13652
39c22d1a
JM
136532002-01-09 Jason Merrill <jason@redhat.com>
13654
13655 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13656
c564377f
MS
136572002-01-09 Michael Snyder <msnyder@redhat.com>
13658
975aec09
MS
13659 * i386-linux-nat.c (fill_fpxregset): Make global.
13660 (store_fpxregset): Ditto.
13661
db4a10fa
MS
13662 * gregset.h (gdb_fpxregset_t): Define.
13663 (supply_fpxregset): Prototype.
13664 (fill_fpxregset): Prototype.
13665
c564377f
MS
13666 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13667
c3d45d70
RE
136682002-01-09 Richard Earnshaw <rearnsha@arm.com>
13669
13670 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13671 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13672 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13673
fcc87af1
AC
136742002-01-09 Andrew Cagney <ac131313@redhat.com>
13675
13676 * MAINTAINERS: Update target maintainer rules so that any
13677 Maintainer can approve a tested patch for a maintenance-only
13678 target.
13679
dd96c05b
RE
136802002-01-09 Richard Earnshaw <rearnsha@arm.com>
13681
d4297db9 13682 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13683
d4297db9 13684 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13685 IN_SIGTRAMP.
13686
145fdc6e
MS
136872002-01-08 Michael Snyder <msnyder@redhat.com>
13688
13689 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13690 real name of the executable, rather than the /proc name.
13691
be4d1333
MS
136922002-01-03 Michael Snyder <msnyder@redhat.com>
13693
13694 Implement a "generate-core-file" command in gdb, save target state.
13695 * gcore.c: New file. Implement new command 'generate-core-file'.
13696 Save a corefile image of the current state of the inferior.
13697 * linux-proc.c: Add linux-specific code for saving corefiles.
13698 * target.h (struct target_ops): Add new target vectors for saving
13699 corefiles; to_find_memory_regions and to_make_corefile_notes.
13700 (target_find_memory_regions): New macro.
13701 (target_make_corefile_notes): New macro.
13702 * target.c (update_current_target): Inherit new target methods.
13703 (dummy_find_memory_regions): New place-holder method.
13704 (dummy_make_corefile_notes): New place-holder method.
13705 (init_dummy_target): Initialize new dummy target vectors.
13706 * exec.c (exec_set_find_memory_regions): New function.
13707 Allow the exec_ops vector for memory regions to be taken over.
13708 (exec_make_note_section): New function, target vector method.
13709 * defs.h (exec_set_find_memory_regions): Export prototype.
13710 * procfs.c (proc_find_memory_regions): New function, corefile method.
13711 (procfs_make_note_section): New function, corefile method.
13712 (init_procfs_ops): Set new target vector pointers.
13713 (find_memory_regions_callback): New function.
13714 (procfs_do_thread_registers): New function.
13715 (procfs_corefile_thread_callback): New function.
13716 * sol-thread.c (sol_find_memory_regions): New function.
13717 (sol_make_note_section): New function.
13718 (init_sol_thread_ops): Initialize new target vectors.
13719 * inftarg.c (inftarg_set_find_memory_regions): New function.
13720 Allow to_find_memory_regions vector to be taken over.
13721 (inftarg_set_make_corefile_notes): New function.
13722 Allow to_make_corefile_notes vector to be taken over.
13723 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13724 interface layer if not target_has_execution (may be a corefile).
13725 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13726 * config/sparc/sun4sol2.mh: Ditto.
13727 * config/alpha/alpha-linux.mh: Ditto.
13728 * config/arm/linux.mh: Ditto.
13729 * config/i386/x86-64linux.mh: Ditto.
13730 * config/ia64/linux.mh: Ditto.
13731 * config/m68k/linux.mh: Ditto.
13732 * config/mips/linux.mh: Ditto.
13733 * config/powerpc/linux.mh: Ditto.
13734 * config/sparc/linux.mh: Ditto.
13735
c6b92abd
MS
137362002-01-07 Michael Snyder <msnyder@redhat.com>
13737
13738 * arm-linux-nat.c: Remove references to regcache.c internal data
13739 (registers[] and register_valid[]).
13740
4b09dc8c
MS
137412002-01-07 Michael Snyder <msnyder@redhat.com>
13742
abf22e64
AJ
13743 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13744 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13745 symbol file and shlibs.
13746 * Makefile.in: Add rule for linux-proc.o.
13747 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13748 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13749 * config/arm/linux.mh: Ditto.
13750 * config/i386/linux.mh: Ditto.
13751 * config/i386/x86-64linux.mh: Ditto.
13752 * config/ia64/linux.mh: Ditto.
13753 * config/m68k/linux.mh: Ditto.
13754 * config/mips/linux.mh: Ditto.
13755 * config/powerpc/linux.mh: Ditto.
13756 * config/sparc/linux.mh: Ditto.
13757
c25b74ac
PM
137582002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13759
13760 * win32-nat.c: Add i386-tdep.h dependency.
13761
94cd915f
MS
137622002-01-07 Michael Snyder <msnyder@redhat.com>
13763
c7cccb76
MS
13764 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13765 instead of bfd_get_arch_size. Don't bail out just because
13766 there's no exec_bfd.
abf22e64 13767
34c0bd93
MS
13768 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13769 * p-valprint.c (pascal_object_print_value): Ditto.
13770 * somread.c (som_symtab_read): Ditto.
13771 * symfile.c (simple_free_overlay_region_table): Ditto.
13772 * valops.c (value_assign): Ditto.
13773
21c1c920
MS
13774 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13775 use tilde_expand and strerror for opening save-tracepoints file.
13776
5bbd998e
MS
13777 * thread-db.c (thread_db_new_objfile): Indendation fix.
13778
94cd915f
MS
13779 * infptrace.c (GDB_MAX_ALLOCA): New define.
13780 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13781 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13782 can be overridden with whatever value is appropriate to the host).
13783 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13784 alloca to allocate potentially large buffer.
13785 * rs6000-nat.c (child_xfer_memory): Ditto.
13786 * symm-nat.c (child_xfer_memory): Ditto.
13787 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13788
494e8a93
JSC
137892002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13790
13791 From Nick Clifton <nickc@redhat.com>
13792 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13793
d0e1d48e
MS
137942002-01-07 Michael Snyder <msnyder@redhat.com>
13795
abf22e64 13796 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13797 Don't use exec_bfd if it's NULL.
13798
290b2c7a
MK
137992002-01-06 Mark Kettenis <kettenis@gnu.org>
13800
abf22e64 13801 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13802
aef21287
AC
138032002-01-06 Andrew Cagney <ac131313@redhat.com>
13804
13805 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13806 * gnu-nat.c: Ditto.
13807
30efa627
AC
138082002-01-06 Andrew Cagney <ac131313@redhat.com>
13809
13810 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13811 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13812 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13813 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13814 z8k-coff have not been multi-arched. Update z8k-coff build
13815 status.
13816
9b4ff276
AC
138172002-01-06 Andrew Cagney <ac131313@redhat.com>
13818
13819 * MAINTAINERS: Mark a29k target as obsolete.
13820 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13821 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13822 comments.
13823 * NEWS: Note that a29k targets are obsolete.
13824 * a29k-tdep.c: Mark as obsolete.
13825 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13826 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13827 a29k-*-vxworks* targets as obsolete.
13828 * remote-adapt.c: Obsolete.
13829 * remote-eb.c: Obsolete.
13830 * remote-mm.c: Obsolete.
13831 * remote-udi.c: Obsolete.
13832 * config/a29k/a29k-udi.mt: Obsolete.
13833 * config/a29k/a29k.mt: Obsolete.
13834 * config/a29k/tm-a29k.h: Obsolete.
13835 * config/a29k/tm-vx29k.h: Obsolete.
13836 * config/a29k/vx29k.mt: Obsolete.
13837
a9011d31
AC
138382002-01-05 Andrew Cagney <ac131313@redhat.com>
13839
13840 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13841 with BFD_ENDIAN_BIG.
13842
9299404e
AC
138432002-01-05 Andrew Cagney <ac131313@redhat.com>
13844
13845 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13846 * configure, config.in: Re-generate.
13847 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13848 * defs.h: Do not include <endian.h>.
13849
7e89e357
JT
138502002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13851
13852 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13853 * config.in: Regenerate.
13854 * configure.in: Update copyright years.
13855 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13856 * configure: Regenerate.
13857 * i386bsd-nat.c: Update copyright years.
13858 (fill_gregset): Use regcache_collect.
13859 (fetch_inferior_registers): Only fetch integer registers
13860 if requested to do so. Add support for XMM registers
13861 using PT_GETXMMREGS.
13862 (store_inferior_registers): Only store integer registers
13863 if requested to do so. Add support for XMM registers
13864 using PT_SETXMMREGS.
13865 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13866 (store_inferior_registers): Remove.
13867 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13868 (fetch_elfcore_registers): New function.
13869 (i386nbsd_elfcore_fns): New.
13870 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13871 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13872 i386bsd-nat.o.
13873 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13874 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13875 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13876 * config/i386/tm-nbsd.h: Update copyright years.
13877 (HAVE_SSE_REGS): Define.
13878 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13879 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13880 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13881 (SIGCONTEXT_PC_OFFSET): Remove.
13882 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13883
a752853e
AC
138842002-01-05 Andrew Cagney <ac131313@redhat.com>
13885
13886 * configure.tgt: Remove powerpc-*-macos* target.
13887 * config/m68k/xm-mpw.h: Delete file.
13888 * config/xm-mpw.h: Delete file.
13889 * ser-mac.c: Delete file.
13890 * mpw-make.sed: Delete file.
13891 * mpw-config.in: Delete file.
13892 * mac-xdep.c: Delete file.
13893 * mac-gdb.r: Delete file.
13894 * mac-defs.h: Delete file.
13895 * mac-nat.c: Delete file.
13896 * config/powerpc/macos.mh: Delete file.
13897 * config/powerpc/macos.mt: Delete file.
13898 * config/powerpc/nm-macos.h: Delete file.
13899 * config/powerpc/tm-macos.h: Delete file.
13900 * source.c (openp, open_source_file): Remove obsolete code.
13901 * top.c (gdb_readline): Ditto.
13902 * utils.c (query): Ditto.
13903 * event-top.c (display_gdb_prompt): Ditto.
13904 * Makefile.in (ser-mac.o): Delete obsolete target.
13905 * NEWS: Update.
13906
d7449b42
AC
139072002-01-04 Andrew Cagney <ac131313@redhat.com>
13908
13909 * defs.h (BIG_ENDIAN): Delete macro definition.
13910 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13911 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13912 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13913 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13914 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13915 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13916 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13917 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13918 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13919 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13920 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13921 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13922 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13923 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13924 * gdbarch.c: Re-generate.
13925
356374e8
DJ
139262002-01-04 Daniel Jacobowitz <drow@mvista.com>
13927
13928 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13929 for core files.
13930
a2b8f8f8
JT
139312002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13932
13933 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13934
12466af9
AC
139352002-01-04 Andrew Cagney <ac131313@redhat.com>
13936
13937 * value.h (value_ptr): Delete typedef.
13938
3549ab40
JT
139392002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13940
13941 * i386nbsd-nat.c: Update copyright years.
13942 Include i386-tdep.h.
13943
fedbd091
EZ
139442002-01-04 Elena Zannoni <ezannoni@redhat.com>
13945
13946 * stabsread.c: Update copyright years.
13947
13948 From Debashis Mahata <debashis.mahata@wipro.com>:
13949 (read_struct_fields): Deal with Sun C compiler erroneous stab
13950 output for structs and unions.
fec8b34f 13951 Fix PR gdb/269.
fedbd091 13952
eb43544b
DJ
139532002-01-04 Daniel Jacobowitz <drow@mvista.com>
13954
13955 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
13956 prototype.
13957
1514d34e
DJ
139582002-01-04 Daniel Jacobowitz <drow@mvista.com>
13959
13960 * cp-abi.c: Fix whitespace.
13961 (baseclass_offset): New wrapper function.
13962 * cp-abi.h (baseclass_offset): Add prototype.
13963 (struct cp_abi_ops): Add baseclass_offset pointer.
13964
13965 * valops.c (vb_match): Move to...
13966 * gnu-v2-abi.c (vb_match): here.
13967 * valops.c (baseclass_offset): Move to...
13968 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
13969
13970 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
13971
13972 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
13973 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
13974 * hpacc-abi.c (init_hpacc_ops): Likewise.
13975
7f8c9282
DJ
139762002-01-04 Daniel Jacobowitz <drow@mvista.com>
13977
13978 * valops.c (find_overload_match): Accept obj as a
13979 reference parameter. Update it before returning.
13980 * value.h (find_overload_match): Update prototype.
13981 * eval.c (evaluate_subexp_standard): Pass object to
13982 find_overload_match by reference.
13983
f23631e4
AC
139842002-01-03 Andrew Cagney <ac131313@redhat.com>
13985
13986 * valarith.c: Replace value_ptr with struct value pointer. Remove
13987 register attribute from value declarations.
13988 * valops.c: Ditto.
13989 * value.h: Ditto.
13990 * scm-lang.c (scm_lookup_name): Ditto.
13991
79e10fab 139922002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 13993
79e10fab
AC
13994 Abstract the functionality of iterating over mapped memory
13995 regions into a general purpose iterator function.
abf22e64 13996 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
13997 iterator for memory sections.
13998 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
13999 (solib_mappings_callback): New function, callback for above.
14000 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14001 (info_mappings_callback): New function, callback for above.
14002
14003 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14004
c5ad026a
MK
140052002-01-01 Mark Kettenis <kettenis@gnu.org>
14006
d2a7c97a
MK
14007 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14008 * i386-tdep.c: Include "elf-bfd.h".
14009 (process_note_abi_tag_sections): New function.
14010 (i386_gdbarch_init): Add code to recognize various OS/ABI
14011 combinations.
14012
c5ad026a
MK
14013 * maint.c (_initialize_maint_cmds): Add missing \ in
14014 string-literal.
14015
a1a5b71e 14016For older changes see ChangeLog-2001
c906108c
SS
14017\f
14018Local Variables:
14019mode: change-log
14020left-margin: 8
14021fill-column: 74
14022version-control: never
14023End:
This page took 0.975179 seconds and 4 git commands to generate.