2002-12-08 H.J. Lu <hjl@gnu.org>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3442dad6 12002-12-08 Elena Zannoni <ezannoni@redhat.com>
57725d84
EZ
2
3 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
4 -Werror on this file.
5
52f87c51
AC
62002-12-07 Andrew Cagney <ac131313@redhat.com>
7
8 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
9 the format name.
10 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
11 * gdbarch.c: Regenerate.
12
2ca6c561
AC
132002-12-06 Andrew Cagney <ac131313@redhat.com>
14
15 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
16 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
17 provide a default value.
18 * gdbarch.h, gdbarch.c: Regenerate.
19 * frame.c (get_prev_frame): Update. Check
20 DEPRECATED_INIT_FRAME_PC_FIRST_P.
21 * s390-tdep.c (s390_gdbarch_init): Update.
22 * mips-tdep.c (mips_gdbarch_init): Update.
23 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
24 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
25 * alpha-tdep.c (alpha_gdbarch_init): Update.
26
e162d11b
EZ
272002-12-06 Elena Zannoni <ezannoni@redhat.com>
28
29 * ia64-linux-nat.c: Include gdb_string.h.
30 * alpha-nat.c: Ditto.
2b298b5d
EZ
31 * ppc-linux-nat.c: Ditto.
32 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
33 Update dependencies.
e162d11b 34
aa0cd9c1
AC
352002-12-05 Andrew Cagney <ac131313@redhat.com>
36
37 * gdbthread.h: Include "frame.h".
38 (struct thread_info): Replace step_frame_address with
39 step_frame_id.
40 * inferior.h: Include "frame.h".
41 (step_frame_id): Replace external variable step_frame_address.
42 * gdbthread.h (save_infrun_state): Replace step_frame_address
43 parameter with step_frame_id parameter.
44 (load_infrun_state): Ditto.
45 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
46 * infcmd.c (step_frame_id, step_1, step_once): Update.
47 * thread.c (load_infrun_state, save_infrun_state): Update.
48 * infrun.c (clear_proceed_status, save_inferior_status): Update.
49 (handle_inferior_event, step_over_function): Update.
50 (normal_stop, context_switch, restore_inferior_status): Update.
51 (struct inferior_status): Replace step_frame_address with
52 step_frame_id.
53
a9a9bd0f
DC
542002-12-05 David Carlton <carlton@math.stanford.edu>
55
56 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
57 DW_TAG_member as well as a declaration as being a C++ static data
58 member.
59 (read_structure_scope): Combine tests for DW_TAG_member and
60 DW_TAG_variable.
61
614b3b14
DC
622002-12-05 David Carlton <carlton@math.stanford.edu>
63
64 * linespec.c (decode_compound): New function.
65 (decode_line_1): Move code into decode_compound.
66
e4051eeb
DC
672002-12-05 David Carlton <carlton@math.stanford.edu>
68
69 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
70 argument.
71 (lookup_symbol_aux): Do the 'field_of_this' check before checking
72 the static block. See PR gdb/804.
73
f61e8913
DC
742002-12-05 David Carlton <carlton@math.stanford.edu>
75
76 * symtab.c (lookup_symbol_aux_block): New function.
77 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
78
1e9f55d0
AC
792002-12-05 Andrew Cagney <ac131313@redhat.com>
80
81 * gdbarch.sh: Dump the predicate function and macro values.
82 (read): Print error on standard error.
83 * gdbarch.c: Regenerate.
84
d1973055
KB
852002-12-04 Kevin Buettner <kevinb@redhat.com>
86
87 * Makefile.in (mips_tdep_h): Define.
88 (mips-tdep.o): Add mips_tdep_h to dependency list.
89 * mips-tdep.h: New file.
90 * mips-tdep.c (mips-tdep.h): Include.
91 (enum mips_abi): Move to mips-tdep.h.
92 (mips_abi): New function.
93
f1253c7b
DC
942002-12-04 David Carlton <carlton@math.stanford.edu>
95
96 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
97
406bc4de
DC
982002-12-04 David Carlton <carlton@math.stanford.edu>
99
100 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
101 function.
102 (lookup_symbol_aux_minsyms): New function.
103
2a3750c5
JB
1042002-12-04 J. Brobecker <brobecker@gnat.com>
105
106 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
107
961d8652
JB
1082002-12-04 J. Brobecker <brobecker@gnat.com>
109
110 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
111 which is an obsolete macro name.
112
38c52d5a
DJ
1132002-12-04 Daniel Jacobowitz <drow@mvista.com>
114
115 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
116 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
117
d8ef46f5
DJ
1182002-12-03 H.J. Lu (hjl@gnu.org)
119
120 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
121 (create_breakpoints): Make sure the addr_string field is not
122 NULL.
123
02ae7771
AC
1242002-12-03 Andrew Cagney <ac131313@redhat.com>
125
126 * sparc-nat.c (fetch_inferior_registers)
127 (store_inferior_registers): Add comment on problem of LWP vs
128 threads.
129
130 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
131 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
132 (lin_lwp_store_registers): Remove.
133 (init_lin_lwp_ops): Use fetch_inferior_registers
134 and store_inferior_registers directly.
135 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
136 (store_inferior_registers): Likewise.
137 Fix PR gdb/725.
138
7a424e99
AC
1392002-12-03 Andrew Cagney <ac131313@redhat.com>
140
141 * frame.h (get_frame_id): Convert to a function.
142 (null_frame_id, frame_id_p): Declare.
143 (frame_id_eq, frame_id_inner): Declare.
144 (frame_id_build): New function.
145 * frame.c (get_frame_id): Update. Use null_frame_id.
146 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
147 frame_id_inner.
148 (null_frame_id, frame_id_p): Define.
149 (frame_id_eq, frame_id_inner): Define.
150 (frame_id_build): New function.
151 * varobj.c (varobj_create): Update.
152 (varobj_update): Update.
153 * valops.c (value_assign): Update.
154 (new_root_variable): Update.
155 * infrun.c (save_inferior_status): Update.
156 * breakpoint.c (watch_command_1): Update.
157
891c7f5f
JB
1582002-12-03 J. Brobecker <brobecker@gnat.com>
159
160 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
161 (SNAP2): Likewise.
162
144da3c1
AC
1632002-12-03 Andrew Cagney <cagney@redhat.com>
164
46248966
AC
165 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
166 patch.
167
144da3c1
AC
168 * PROBLEMS: Mention PR gdb/725.
169
03c6228e
AS
1702002-12-03 Andreas Schwab <schwab@suse.de>
171
172 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
173
36e53c63
AF
1742002-12-02 Adam Fedor <fedor@gnu.org>
175 Klee Dienes <kdienes@apple.com>
176
177 * objc-lang.c (objc_printstr): Add width arg to match
178 printstr prototype.
179 (compare_selectors): Add 'const' to arg types.
180 (compare_classes): Likewise.
181 (find_imps): Cast msym pointer to avoid compiler warning.
182 (print_object_command): Validate the address before
183 passing it to the print routine.
184 (find_objc_msgcall_submethod): Change function argument to
185 return an int.
186 * objc-lang.h: Add 'extern' to all function declarations.
187 (value_nsstring): Add declaration.
188
504d5c7e
JB
1892002-12-02 J. Brobecker <brobecker@gnat.com>
190
191 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
192 Fixes a build failure on HP/UX.
193
194 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
195 failure on HP/UX.
196 (hpread_has_name): Advance declaration to avoid a compilation warning.
197 (pst_syms_count): Add missing variable type. By change, the compiler
198 was defaulting to int, which seems a good choice. Fixes a compilation
199 warning.
200 (pst_syms_size): Likewise.
201
59623e27
JB
2022002-12-02 J. Brobecker <brobecker@gnat.com>
203
204 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
205 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
206 later to set the proper gdbarch methods depending on the osabi.
207 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
208
a09a320d
JB
2092002-12-02 J. Brobecker <brobecker@gnat.com>
210
211 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
212 * osabi.c (gdb_osabi_name): Add strings images for the two new
213 enum values.
214 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
215
8a81a99e
AC
2162002-12-02 Andrew Cagney <ac131313@redhat.com>
217
218 * MAINTAINERS (Java): Global maintainers are responible for Java.
219 (Past Maintainers): Mention both Anthony Green and Per Bothner as
220 part Java maintainers.
221
7af35dad
JB
2222002-12-02 J. Brobecker <brobecker@gnat.com>
223
224 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
225 Fixes a compilation failure on AiX.
226
f4ede9bc
JB
2272002-12-02 J. Brobecker <brobecker@gnat.com>
228
229 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
230 why aix-thread.o is not listed.
231
ae45cd16
AC
2322002-12-01 Andrew Cagney <ac131313@redhat.com>
233
234 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
235 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
236 * gdbarch.h, gdbarch.c: Re-generate.
237 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
238 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
239 * config/pa/tm-hppa.h, frame.h: Update.
240 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
241 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
242 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
243 * cris-tdep.c, alpha-tdep.c: Update.
244 * frame.c (set_unwind_by_pc, create_new_frame): Use either
245 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
246 (get_prev_frame): Ditto.
247
020cc13c
AC
2482002-11-30 Andrew Cagney <cagney@redhat.com>
249
250 * exec.c (xfer_memory): Replace boolean with int.
251 * p-exp.y: Use 0 instead of false.
252 * corelow.c (gdb_check_format): Change return type to int from
253 boolean.
254 * utils.c: Don't include <curses.h> or <term.h> first.
255
1d9b2aa8
SC
2562002-11-29 Stephane Carrez <stcarrez@nerim.fr>
257
258 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
259 (m68hc11_register_byte): Remove.
260 (m68hc11_gdbarch_init): Don't set the above.
261
a193e397
AC
2622002-11-29 Andrew Cagney <cagney@redhat.com>
263
264 * remote-mips.c (mips_initialize): Force a selected frame rebuild
265 by calling get_selected_frame.
266 * ocd.c (ocd_start_remote): Use get_selected frame instead of
267 set_current_frame, create_new_frame, select_frame and
268 get_current_frame.
269 * remote-e7000.c (e7000_start_remote): Ditto.
270 * remote-mips.c (common_open): Ditto
271 * remote-rdp.c (remote_rdp_open): Ditto.
272
b5fc49aa
AS
2732002-11-29 Andreas Schwab <schwab@suse.de>
274
275 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
276 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
277 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
278 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
279 read_memory_unsigned_integer instead of read_memory_integer when
280 dealing with addresses and instruction opcodes.
281 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
282 (m68k_linux_frame_saved_pc): Likewise.
283
6e7f8b9c
AC
2842002-11-29 Andrew Cagney <ac131313@redhat.com>
285
286 * stack.c (selected_frame, select_frame): Move from here ...
287 * frame.c (selected_frame, select_frame): ... to here. Include
288 "language.h".
289 * Makefile.in (frame.o): Update dependencies.
290 * frame.c (get_selected_frame): New function.
291 * frame.h (get_selected_frame): Declare.
292 (deprecated_selected_frame): Rename selected_frame.
293 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
294 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
295 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
296 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
297 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
298 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
299 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
300 * z8k-tdep.c, cli/cli-cmds.c: Update.
301
805e2818
AC
3022002-11-29 Andrew Cagney <ac131313@redhat.com>
303
304 * frame.h (get_selected_block): Add comments.
305
1058bca7
AC
3062002-11-28 Andrew Cagney <ac131313@redhat.com>
307
308 * frame.c (pc_notcurrent): New function.
309 (find_frame_sal): New function.
310 * frame.h (find_frame_sal): Declare.
311 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
312 * stack.c (print_frame_info_base): Use find_frame_sal instead of
313 find_pc_line.
1058bca7
AC
314 (frame_info): Ditto.
315 * ada-lang.c (find_printable_frame): Ditto.
316
d92419e5
JB
3172002-11-28 J. Brobecker <brobecker@gnat.com>
318
319 * configure.in: Check that the pthdebug library is recent enough
320 before enabling thread support on native AiX.
321 * configure: Regenerate.
322
323 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
324 from the list of object files as it is now appended by configure
325 if thread support is enabled.
326 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
327 if thread support is enabled.
328
8c69fc49
AC
3292002-11-28 Andrew Cagney <cagney@redhat.com>
330
331 * stack.c (get_selected_block): In-line get_current_block.
332 * frame.h (get_current_block): Delete declaration.
333 * blockframe.c (get_current_block): Delete function.
334
07555a72
AC
3352002-11-28 Andrew Cagney <ac131313@redhat.com>
336
337 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
338 USE_GENERIC_DUMMY_FRAMES.
339 * gdbarch.h, gdbarch.c: Regenerate.
340 * valops.c, frame.c: Update.
341 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
342 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
343 * config/pa/tm-hppa.h, blockframe.c: Update.
344 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
345 * m68k-tdep.c, alpha-tdep.c: Ditto.
346
347 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
348 * mips-tdep.c: Ditto.
349
b99fa2d2
AC
3502002-11-27 Andrew Cagney <ac131313@redhat.com>
351
352 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
353 (USE_GENERIC_DUMMY_FRAMES): Default to true.
354 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
355 * gdbarch.c, gdbarch.h: Re-generate.
356 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
357 (CALL_DUMMY_LOCATION): Delete macro definition.
358 (PC_IN_CALL_DUMMY): Delete macro definitions.
359
360 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
361 default is already generic_pc_in_call_dummy.
362 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
363 * v850-tdep.c (v850_gdbarch_init): Ditto.
364 * sh-tdep.c (sh_gdbarch_init): Ditto.
365 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
366 * mips-tdep.c (mips_gdbarch_init): Ditto.
367 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
368 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
369 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
370 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
371 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
372 * avr-tdep.c (avr_gdbarch_init): Ditto.
373
374 * arm-tdep.c (arm_gdbarch_init): Do not set
375 use_generic_dummy_frames, default is already 1.
376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
377 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
378 * v850-tdep.c (v850_gdbarch_init): Ditto.
379 * sh-tdep.c (sh_gdbarch_init): Ditto.
380 * s390-tdep.c (s390_gdbarch_init): Ditto.
381 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
382 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
383 * mips-tdep.c (mips_gdbarch_init): Ditto.
384 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
385 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
386 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
387 * i386-tdep.c (i386_gdbarch_init): Ditto.
388 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
389 * frv-tdep.c (frv_gdbarch_init): Ditto.
390 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
391 * cris-tdep.c (cris_gdbarch_init): Ditto.
392 * avr-tdep.c (avr_gdbarch_init): Ditto.
393
394 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
395 call_dummy_location, default is already AT_ENTRY_POINT.
396 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
397 * v850-tdep.c (v850_gdbarch_init): Ditto.
398 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
399 * sh-tdep.c (sh_gdbarch_init): Ditto.
400 * s390-tdep.c (s390_gdbarch_init): Ditto.
401 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
402 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
403 * mips-tdep.c (mips_gdbarch_init): Ditto.
404 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
405 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
406 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
407 * i386-tdep.c (i386_gdbarch_init): Ditto.
408 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
409 * frv-tdep.c (frv_gdbarch_init): Ditto.
410 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
411 * cris-tdep.c (cris_gdbarch_init): Ditto.
412 * avr-tdep.c (avr_gdbarch_init): Ditto.
413 * arm-tdep.c (arm_gdbarch_init): Ditto.
414 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
415
abc0af47
AC
4162002-11-28 Andrew Cagney <cagney@redhat.com>
417
418 * frame.h: Update comments on set_current_frame, create_new_frame,
419 flush_cached_frames, reinit_frame_cache, select_frame and
420 selected_frame.
421
ed5cedc5
AC
4222002-11-27 Andrew Cagney <cagney@redhat.com>
423
424 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
425 deprecated pc_in_call_dummy function.
426 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
427 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
428 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
429 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
430 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
431
b2a1bd4f
MH
4322002-11-26 Martin M. Hunt <hunt@redhat.com>
433
434 * Makefile.in: Remove Tix dependencies.
435 * acinclude.m4: Ditto.
436 * aclocal.m4: Ditto.
437 * configure.in: Ditto.
438 * configure: Regenerated.
439
f09cffaa
AC
4402002-11-26 Andrew Cagney <ac131313@redhat.com>
441
442 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
443 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
444 * gdbarch.c: Re-generate.
445
e92b0cc9
AC
4462002-11-26 Andrew Cagney <ac131313@redhat.com>
447
448 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
449 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
450 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
451 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
452 pc_in_call_dummy_at_entry_point.
453 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
454 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
455 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
456 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
457 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
458 pc_in_call_dummy_on_stack.
459 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
460 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
461 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
462 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
463 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
464
b4b88177
AC
4652002-11-26 Andrew Cagney <ac131313@redhat.com>
466
467 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
468 pc_in_call_dummy_before_text_end
469 (deprecated_pc_in_call_dummy_after_text_end): Rename
470 pc_in_call_dummy_after_text_end.
471 (deprecated_pc_in_call_dummy_on_stack): Rename
472 pc_in_call_dummy_on_stack.
473 (deprecated_pc_in_call_dummy_at_entry_point): Rename
474 pc_in_call_dummy_at_entry_point.
475 * m68k-tdep.c (m68k_gdbarch_init): Update.
476 * s390-tdep.c (s390_gdbarch_init): Update.
477 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
478 * vax-tdep.c (vax_gdbarch_init): Update.
479 * sparc-tdep.c (sparc_gdbarch_init): Update.
480 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
481 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
482 * i386-tdep.c (i386_gdbarch_init): Update.
483 * frv-tdep.c (frv_gdbarch_init): Update.
484 * cris-tdep.c (cris_gdbarch_init): Update.
485 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
486 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
487 (deprecated_pc_in_call_dummy_after_text_end)
488 (deprecated_pc_in_call_dummy_on_stack)
489 (deprecated_pc_in_call_dummy_at_entry_point): Update.
490 * alpha-tdep.c (alpha_gdbarch_init): Update.
491
eb784848
DJ
4922002-11-25 Daniel Jacobowitz <drow@mvista.com>
493
494 * acconfig.h (HAVE_PREAD64): Add.
495 * configure.in: Check for pread64.
496 * config.in: Regenerated.
497 * configure: Regenerated.
498 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
499 * linux-proc.c (linux_proc_xfer_memory): New function.
500 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
501
933c6fe4
DC
5022002-11-25 David Carlton <carlton@math.stanford.edu>
503
504 * dwarf2read.c (scan_partial_symbols): Descend into namespace
505 pdi's with no name.
506
158a8022
AC
5072002-11-25 Andrew Cagney <ac131313@redhat.com>
508
509 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
510 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
511
481d0f41
JB
5122002-11-25 Jim Blandy <jimb@redhat.com>
513
e8289572
JB
514 * symfile.c (init_objfile_sect_indices): New function.
515 (default_symfile_offsets): Move the section-index-initializing
516 stuff into init_objfile_sect_indices, and call that.
517
b29c9944
JB
518 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
519 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
520
13de58df
JB
521 * symfile.c (syms_from_objfile): Adjust indentation.
522
481d0f41
JB
523 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
524 || info_verbose isn't true.
525
7d6a26a7
AC
5262002-11-24 Andrew Cagney <ac131313@redhat.com>
527
528 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
529 default to get_frame_base.
530 * gdbarch.h, gdbarch.c: Regenerate.
531 * arch-utils.c (default_frame_address): Delete function.
532 * arch-utils.h (default_frame_address): Delete declaration
533
6abe1021
PM
5342002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
535
536 * varobj.c (find_frame_addr_in_frame_chain):
537 Use get_frame_base instead of FRAME_FP,
538 obvious fix.
539
c193f6ac
AC
5402002-11-19 Andrew Cagney <ac131313@redhat.com>
541
542 * frame.h (FRAME_FP): Delete macro.
543 (get_frame_base): New function declaration.
544 * frame.c (get_frame_base): New function.
545 (get_frame_id): Use ->frame.
546 (frame_find_by_id): Rewrite to use get_frame_id.
547 * blockframe.c: Use get_frame_base instead of FRAME_FP.
548 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
549 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
550 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
551 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
552 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
553 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
554
e5d2af14
AC
5552002-11-24 Andrew Cagney <ac131313@redhat.com>
556
557 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
558
931d12c6
AC
5592002-11-24 Andrew Cagney <ac131313@redhat.com>
560
561 * frame.c (set_unwind_by_pc): Revert change below, use
562 PC_IN_CALL_DUMMY.
563 (get_prev_frame): Ditto.
564
5e0f933e
AC
5652002-11-24 Andrew Cagney <ac131313@redhat.com>
566
567 * dummy-frame.c (pc_in_dummy_frame): New function.
568 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
569 (find_dummy_frame): Update comment.
570 (generic_pop_current_frame): Use get_frame_type.
571 * dummy-frame.h (pc_in_dummy_frame): Declare.
572 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
573 (create_new_frame): Use pc_in_dummy_frame.
574 (get_prev_frame): Use pc_in_dummy_frame.
575 (frame_saved_regs_register_unwind): Use get_prev_frame.
576 (deprecated_generic_get_saved_register): Use get_prev_frame.
577
7d8547c9
AC
5782002-11-23 Andrew Cagney <ac131313@redhat.com>
579
580 * blockframe.c (find_frame_addr_in_frame_chain): Move function
581 from here ...
582 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
583 (varobj_create): Note that frame ID should be used.
584 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
585
0225421b
AC
5862002-11-23 Andrew Cagney <ac131313@redhat.com>
587
588 * breakpoint.c: Include "gdb_assert.h".
589 (deprecated_frame_in_dummy): Assert that generic dummy frames are
590 not being used.
591 * Makefile.in (breakpoint.o): Update dependencies.
592 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
593 deprecated_frame_in_dummy.
594 * stack.c (print_frame_info_base): Ditto.
595 (frame_info): Ditto.
596 (print_frame_info_base): Ditto. Delete dead code.
597
32eeb91a
AS
5982002-11-23 Andreas Schwab <schwab@suse.de>
599
600 * Makefile.in (m68k_tdep_h): Define.
601 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
602 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
603 * m68k-tdep.c: Move register number enum ...
604 * m68k-tdep.h: ... to this new file and rename the constants from
605 E_* to M68K_*. All uses changed.
606 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
607 * abug-rom.c: Include "m68k-tdep.h". Use
608 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
609 * cpu32bug-rom.c: Likewise.
610 * dbug-rom.c: Likewise.
611 * m68k-tdep.c: Likewise.
612 * m68klinux-nat.c: Likewise.
613 * remote-est.c: Likewise.
614 * rom68k-rom.c: Likewise.
615 * config/m68k/tm-linux.h: Likewise.
616
9648bac8
AC
6172002-11-23 Andrew Cagney <ac131313@redhat.com>
618
619 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
620 dummy frame initialization code.
621 * mips-tdep.c (mips_gdbarch_init): Ditto.
622
91a175b3
CF
6232002-11-22 Christopher Faylor <cgf@redhat.com>
624
625 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
626 attach will hang.
627
f4ded5b1
AC
6282002-11-22 Andrew Cagney <ac131313@redhat.com>
629
630 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
631 to default_frame_address.
632 * gdbarch.h, gdbarch.c: Re-generate.
633
634 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
635 or frame_locals_address to default_frame_address.
636 * m68k-tdep.c (m68k_gdbarch_init): Update.
637 * i386-tdep.c (i386_gdbarch_init): Update.
638 * frv-tdep.c (frv_gdbarch_init): Update.
639 * sh-tdep.c (sh_gdbarch_init): Update.
640 * v850-tdep.c (v850_gdbarch_init): Update.
641 * sparc-tdep.c (sparc_gdbarch_init): Update.
642 * mips-tdep.c (mips_gdbarch_init): Update.
643 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
644 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
645 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
646
647 * cris-tdep.c (cris_frame_args_address): Delete function.
648 (cris_frame_locals_address): Delete function.
649 (cris_gdbarch_init): Do not set frame_args_address or
650 frame_locals_address.
651
f7c1e0f3
MS
6522002-11-22 Michael Snyder <msnyder@redhat.com>
653
654 * thread-db.c (thread_db_load): Tell the user what's going on
655 if dlopen fails on libthread_db.
656
03dac896
AS
6572002-11-23 Andreas Schwab <schwab@suse.de>
658
659 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
660 invariant return values.
661
7a67d0fe
AS
6622002-11-22 Andreas Schwab <schwab@suse.de>
663
664 * valops.c (value_slice): Move declaration of `offset' to avoid
665 warning.
666
5633f842
CF
6672002-11-22 Christopher Faylor <cgf@redhat.com>
668
669 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
670 (struct so_stuff): Add end_addr field.
671 (register_loaded_dll): Calculate and store end address of loaded dll.
672 (solib_address): New function.
673 (child_solib_loaded_library_pathname): Pass carefully constructed
674 section info to safe_symbol_file_add rather than ignoring it.
675 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
676 DLL is loaded.
677 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
678 (child_create_inferior): Fix a compiler warning.
679 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
680 (solib_address): Declare new function.
681
d85fe7f7
AS
6822002-11-22 Andreas Schwab <schwab@suse.de>
683
684 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
685 and FPS registers.
686
8308e54c
DJ
6872002-11-21 Daniel Jacobowitz <drow@mvista.com>
688
689 * maint.c (_initialize_maint_cmds): Fix typo. From
690 Francesco Potorti` <pot@gnu.org>.
691
8997bd5e
AC
6922002-11-21 Andrew Cagney <cagney@redhat.com>
693
694 * mips-tdep.c (mips_dump_tdep): Delete references to
695 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
696 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
697 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
698 * printcmd.c (build_address_symbolic): Delete calls to
699 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
700 (address_info): Ditto.
701 Fix PR gdb/773.
702
4e87b832
KD
7032002-11-19 Klee Dienes <kdienes@apple.com>
704 Adam Fedor <fedor@gnu.org>
705
706 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
707 the ability to explicitly specify the quote characters and word
708 break characters; if NULL is specified for either, use the old
709 behavior of using the characters used by the completer.
710 (skip_chars): New function. Convenience wrapper around
711 skip_quoted_chars to provide the original skip_chars behavior.
712 * completer.h (skip_quoted_chars): Add prototype.
713
9ba8d803
AC
7142002-11-19 Andrew Cagney <ac131313@redhat.com>
715
716 Problems reported by Paul Eggert.
717 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
718
0a595803
AS
7192002-11-19 Andreas Schwab <schwab@suse.de>
720
721 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
722 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
723 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
724 (m68k_linux_frame_saved_pc): Move to ...
725 * m68klinux-tdep.c: ... here. New file.
726 * Makefile.in (m68klinux-tdep.o): Add dependencies.
727 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
728
e8afa4d7
AF
7292002-11-19 Adam Fedor <fedor@gnu.org>
730
731 * objc-exp.y: Revert to old skip_quoted usage.
732
a76c9d72
AF
7332002-11-19 Adam Fedor <fedor@gnu.org>
734
735 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
736 (objc_lang_h): Define.
737 (YYFILES): Add objc-exp.tab.c.
738 (local-maintainer-clean): Remove objc-exp.tab.c.
739 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
740
fd0e9d45
PM
7412002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
742
743 * p-exp.y (typecast rule): Add automatic dereference of
744 pascal classes if needed.
745 (THIS): Set current_type.
746 Automatically dereference pascal classes.
747 (typebase rule): Add ^typebase recognition.
748
82eeeb94
AF
7492002-11-18 Adam Fedor <fedor@gnu.org>
750
751 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
752 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
753 (op_name): Handle OP_OBJC_SELF.
754 * Makefile.in (expprint.o): Add additional depends.
755
646df18d
AF
7562002-11-18 Adam Fedor <fedor@gnu.org>
757
758 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
759 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
760 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
761 * objc-exp.y: Likewise.
762
379b85df
AF
7632002-11-18 Adam Fedor <fedor@gnu.org>
764
765 * gdb/parser-defs.h: (struct objc_class_str): New structure
766 for parsing ObjC classes.
767
85cf597a
AC
7682002-11-18 Andrew Cagney <ac131313@redhat.com>
769
770 * stack.c (frame_relative_level): Copy function from here ...
771 * frame.c (frame_relative_level): ...to here.
772
5a203e44
AC
7732002-11-18 Andrew Cagney <ac131313@redhat.com>
774
775 * frame.h (enum frame_type): Define.
776 (get_frame_type): Declare.
777 (struct frame_info): Add field `type'. Delete field
778 signal_handler_caller.
779 (deprecated_set_frame_signal_handler_caller): Declare.
780 * frame.c (get_frame_type): New function.
781 (deprecated_set_frame_type): New function.
782 (create_new_frame): Set the frame's type.
783 (get_prev_frame): Similar.
784 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
785 * s390-tdep.c: Ditto.
786 * m68klinux-nat.c: Ditto.
787 * ns32k-tdep.c: Ditto.
788 * x86-64-linux-tdep.c: Ditto.
789 * vax-tdep.c: Ditto.
790 * rs6000-tdep.c: Ditto.
791 * ppc-linux-tdep.c: Ditto.
792 * i386-interix-tdep.c: Ditto.
793 * mips-tdep.c: Ditto.
794 * m68k-tdep.c: Ditto.
795 * hppa-tdep.c: Ditto.
796 * ia64-tdep.c: Ditto.
797 * cris-tdep.c: Ditto.
798 * arm-tdep.c: Ditto.
799 * alpha-tdep.c: Ditto.
800 * i386-tdep.c: Ditto.
801 * stack.c: Ditto.
802 * ada-lang.c: Ditto.
803 * blockframe.c: Update.
804 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
805 deprecated_set_frame_type instead of signal_handler_caller.
806 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
807 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
808 * breakpoint.h: Delete FIXME suggesting get_frame_type.
809
bf4ae8b2
KD
8102002-11-18 Klee Dienes <kdienes@apple.com>
811
812 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
813
a672ef13
KD
8142002-11-18 Klee Dienes <kdienes@apple.com>
815
816 * buildsym.c (pop_context): Add comment.
817
0c5e171a
KD
8182002-11-18 Klee Dienes <kdienes@apple.com>
819
820 * buildsym.h (pop_context): Convert to function, defined in
821 buildsym.c.
822 * buildsym.c: Include gdb_assert.h.
823 (pop_context): Implement as C function. Add check for stack
824 underflow.
825 * dbxread.c (process_one_symbol): Complain and stop processing
826 that symbol if we are already at the top of the context stack for
827 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
828 when processing N_RBRAC.
829
8a1f4c4c
DJ
8302002-11-16 Daniel Jacobowitz <drow@mvista.com>
831
832 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
833 define.
834 (struct target_waitstatus): Add opaque definition.
835 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
836 * exec.c (init_exec_ops): Likewise.
837 * fork-child.c (clone_and_follow_inferior): Remove.
838 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
839 * inferior.h (clone_and_follow_inferior): Remove prototype.
840 * infrun.c (follow_fork_mode_both): Remove.
841 (follow_fork_mode_kind_names): Remove commented out "both".
842 (follow_inferior_fork): Remove follow_fork_mode_both support.
843 * inftarg.c (child_clone_and_follow_inferior): Remove.
844 (child_post_follow_inferior_by_clone): Remove.
845 (init_child_ops): Don't set to_clone_and_follow_inferior
846 or to_post_follow_inferior_by_clone.
847 * target.c (default_clone_and_follow_inferior): Remove.
848 (cleanup_target): Don't set to_clone_and_follow_inferior
849 or to_post_follow_inferior_by_clone.
850 (find_default_clone_and_follow_inferior): Remove.
851 (init_dummy_target): Don't set to_clone_and_follow_inferior.
852 (debug_to_clone_and_follow_inferior): Remove.
853 (debug_to_post_follow_inferior_by_clone): Remove.
854 (setup_target_debug): Don't set to_clone_and_follow_inferior
855 or to_post_follow_inferior_by_clone.
856 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
857 and to_post_follow_inferior_by_clone.
858 (child_clone_and_follow_inferior): Remove prototype.
859 (child_post_follow_inferior_by_clone): Remove prototype.
860 (target_clone_and_follow_inferior): Remove macro.
861 (target_post_follow_inferior_by_clone): Remove macro.
862 (find_default_clone_and_follow_inferior): Remove prototype.
863
47932f85
DJ
8642002-11-16 Daniel Jacobowitz <drow@mvista.com>
865
866 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
867 inferior_has_vforked, and inferior_has_execd instead of
868 target_has_forked, target_has_vforked, and target_has_execd.
869 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
870 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
871 (CHILD_WAIT): Define.
872 (child_wait): Add prototype.
873 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
874 Add prototype.
875 (hpux_has_vforked): Likewise, from child_has_vforked.
876 (hpux_has_execd): Likewise, from child_has_execd.
877 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
878 (not_same_real_pid, child_wait): New, copied from inftarg.c.
879 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
880 and hpux_has_syscall_event instead of the target hooks.
881 * infrun.c (inferior_has_forked, inferior_has_vforked)
882 (inferior_has_execd): New functions.
883 * inftarg.c (not_same_real_pid): Remove.
884 (child_wait): Remove references to not_same_real_pid,
885 target_has_forked, target_has_vforked, target_has_execd,
886 and target_has_syscall_event.
887 (child_has_forked, child_has_vforked, child_has_execd)
888 (child_has_syscall_event): Remove.
889 (init_child_ops): Remove references to child_has_forked,
890 child_has_vforked, child_has_execd, and child_has_syscall_event.
891 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
892 (hpux_has_vforked): Likewise, from child_has_vforked.
893 (hpux_has_execd): Likewise, from child_has_execd.
894 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
895 * target.c (cleanup_target): Remove references to
896 to_has_forked, to_has_vforked, to_has_execd, and
897 to_has_syscall_event.
898 (update_current_target): Likewise.
899 (setup_target_debug): Likewise.
900 (debug_to_has_forked): Remove.
901 (debug_to_has_vforked): Remove.
902 (debug_to_has_execd): Remove.
903 (debug_to_has_syscall_event): Remove.
904 * target.h (struct target_ops): Remove to_has_forked.
905 to_has_vforked, to_has_execd, and to_has_syscall_event.
906 (child_has_forked, child_has_vforked, child_has_execd)
907 (child_has_syscall_event): Remove prototypes.
908 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
909 prototypes.
910 (target_has_forked, target_has_vforked, target_has_execd)
911 (target_has_syscall_event): Remove macros.
912
4088142a
DJ
9132002-11-16 Daniel Jacobowitz <drow@mvista.com>
914
915 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
916 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
917 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
918 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
919 * target.c (cleanup_target): Remove reference to
920 to_can_follow_vfork_prior_to_exec.
921 (update_current_target): Likewise.
922 (debug_to_can_follow_vfork_prior_to_exec): Remove.
923 (setup_target_debug): Remove reference to
924 to_can_follow_vfork_prior_to_exec.
925 * target.h (struct target_ops): Remove
926 to_can_follow_vfork_prior_to_exec.
927 (child_can_follow_vfork_prior_to_exec): Remove prototype.
928 (target_can_follow_vfork_prior_to_exec): Remove definition.
929 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
930 define.
931 * infrun.c (follow_vfork_when_exec): Remove.
932 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
933 (follow_exec): Likewise.
934 (handle_inferior_event): Likewise.
935 (keep_going): Likewise.
936
18cde8d5
AC
9372002-11-15 Andrew Cagney <cagney@redhat.com>
938
939 * frame.c (generic_unwind_get_saved_register): Make static.
940 * frame.h (generic_unwind_get_saved_register): Delete declaration.
941 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
942 defaults to generic_unwind_get_saved_register.
943 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
944 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
945 * frv-tdep.c (frv_gdbarch_init): Ditto.
946 * i386-tdep.c (i386_gdbarch_init): Ditto.
947 * s390-tdep.c (s390_gdbarch_init): Ditto.
948 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
949 * v850-tdep.c (v850_gdbarch_init): Ditto.
950 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
951 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
952 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
953
a6b063af
AC
9542002-11-15 Andrew Cagney <cagney@redhat.com>
955
956 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
957 i386-tdep.c.
958
f407986f
AC
9592002-11-15 Andrew Cagney <cagney@redhat.com>
960
961 * frame.h (sigtramp_saved_pc): Delete declaration.
962 * blockframe.c (sigtramp_saved_pc): Delete function.
963 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
964 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
965 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
966 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
967
f18c5a73
AC
9682002-11-15 Andrew Cagney <ac131313@redhat.com>
969
970 * frame.c (frame_pc_unwind): New function.
971 (frame_saved_regs_pc_unwind): New function.
972 (frame_register_unwind): Pass unwind_cache instead of
973 register_unwind_cache.
974 (set_unwind_by_pc): Add unwind_pc parameter, set.
975 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
976 (get_prev_frame): Ditto.
977 * frame.h (frame_pc_unwind_ftype): Declare.
978 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
979 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
980 (frame_pc_unwind): Declare.
981 * dummy-frame.c (dummy_frame_pc_unwind): New function.
982 (struct dummy_frame): Add comment mentioning that values are for
983 previous frame.
984 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
985 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
986 (generic_file_frame_chain_valid): Ditto.
987 * stack.c (frame_info): Ditto.
988
d9285969 9892002-11-15 David Carlton <carlton@math.stanford.edu>
0960f083
DC
990
991 * linespec.c (locate_first_half): New function.
992 (decode_line_1): Move code into locate_first_half.
993
d741b867
AC
9942002-11-15 Andrew Cagney <ac131313@redhat.com>
995
996 * complaints.h: Add comment explaining how to eliminate a
997 deprecated_complain call.
24382c5c 998 * complaints.h: Fix spelling errors.
d741b867 999
82d03c99
DC
10002002-11-15 David Carlton <carlton@math.stanford.edu>
1001
1002 * printcmd.c: Remove #include "disasm.h".
1003
c97eb5d9
AC
10042002-11-14 Andrew Cagney <ac131313@redhat.com>
1005
1006 * frame.h: Move the most relevant interface functions to the start
1007 of the file.
1008
524d7c18
AC
10092002-11-14 Andrew Cagney <ac131313@redhat.com>
1010
1011 * regcache.h (deprecated_registers): Rename registers.
1012 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1013 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1014 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1015 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1016 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1017 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1018 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1019 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1020 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1021 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1022 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1023 * v850ice.c: Update.
1024
6411e720
AC
1025Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1026
1027 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1028 NULL buffer.
1029
73937e03
AC
10302002-11-13 Andrew Cagney <cagney@redhat.com>
1031
1032 * regcache.h (deprecated_read_register_bytes): Rename
1033 read_register_bytes.
1034 (deprecated_write_register_bytes): Rename write_register_bytes.
1035 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1036 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1037 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1038 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1039 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1040 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1041 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1042 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1043 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1044 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1045 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1046 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1047 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1048 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1049
fb0cd46e
JB
10502002-11-13 Jim Blandy <jimb@redhat.com>
1051
1052 * findvar.c (read_var_value): Doc fix.
1053
2d28509a
AC
10542002-11-13 Andrew Cagney <cagney@redhat.com>
1055
1056 * regcache.c (struct regcache): Replace passthough_p with
1057 readonly_p.
1058 (regcache_xmalloc): Initialize readonly_p.
1059 (build_regcache): Initialize readonly_p.
1060 (regcache_save): New function.
1061 (regcache_restore): New function.
1062 (regcache_cpy): Re-implement using regcache_save and
1063 regcache_restore.
1064 (regcache_raw_read): Update.
1065 (regcache_cooked_read): When a read-only cache, checked for cached
1066 pseudo register values.
1067 (regcache_raw_write): Assert that the cache is not read-only.
1068 Remove code handling a non-passthrough cache.
1069 * regcache.h (regcache_save): Declare.
1070 (regcache_restore): Declare.
1071
067df2e5
AC
10722002-11-13 Andrew Cagney <cagney@redhat.com>
1073
1074 * regcache.c (struct regcache_descr): Add fields
1075 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1076 (init_legacy_regcache_descr): Compute the size of a cooked
1077 register cache and then assign that to sizeof_raw_registers. Set
1078 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1079 (init_legacy_regcache_descr): Ditto.
1080
51b1fe4e
AC
10812002-11-13 Andrew Cagney <cagney@redhat.com>
1082
1083 * regcache.c (register_buffer): Move to near start of file, update
1084 description.
1085 (regcache_raw_read): Use.
1086 (regcache_raw_write): Use.
1087 (struct regcache): Rename raw_registers to registers and
1088 raw_register_valid_p to register_valid_p.
1089 (regcache_xmalloc): Update.
1090 (regcache_xfree): Update.
1091 (register_buffer): Update.
1092 (regcache_cpy): Update.
1093 (regcache_cpy_no_passthrough): Update.
1094 (regcache_valid_p): Update.
1095 (deprecated_grub_regcache_for_registers): Update.
1096 (deprecated_grub_regcache_for_register_valid): Update.
1097 (set_register_cached): Update.
1098 (regcache_raw_write): Update.
1099
80b4c677
PM
11002002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1101
1102 * p-exp.y (name_not_typename): Use copy_name to
1103 set current_type variable for fields of THIS.
1104
0f3fafde
DJ
11052002-11-12 Daniel Jacobowitz <drow@mvista.com>
1106
1107 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1108 * monitor.c (init_base_monitor_ops): Likewise.
1109 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1110 * remote-array.c (init_array_ops): Likewise.
1111 * remote-e7000.c (init_e7000_ops): Likewise.
1112 * remote-es.c (init_es1800_ops): Likewise.
1113 (init_es1800_child_ops): Likewise.
1114 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1115 * remote-sim.c (init_gdbsim_ops): Likewise.
1116 * remote-st.c (init_st2000_ops): Likewise.
1117 * sol-thread.c (init_sol_core_ops): Likewise.
1118 (init_sol_thread_ops): Likewise.
1119 * v850ice.c (init_850ice_ops): Likewise.
1120 * win32-nat.c (init_child_ops): Likewise.
1121 * wince.c (init_child_ops): Likewise.
1122
82c0260e
AC
11232002-11-12 Andrew Cagney <ac131313@redhat.com>
1124
1125 * utils.c (gdb_realpath): Make rp a constant pointer.
1126
70d35819
AC
11272002-11-12 Andrew Cagney <ac131313@redhat.com>
1128
1129 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1130 a constant buffer; cannonicalize_file_name(); realpath() with a
1131 pathconf() defined buffer, xstrdup().
1132
9835a8b0
AC
11332002-11-12 Andrew Cagney <ac131313@redhat.com>
1134
1135 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1136 to hang2.C; hang3.c to hang3.C.
1137
3f47be5c
EZ
11382002-11-11 Elena Zannoni <ezannoni@redhat.com>
1139
1140 * findvar.c (read_var_value): Reenable TLS code.
1141
11422002-11-11 Elena Zannoni <ezannoni@redhat.com>
1143 Jim Blandy <jimb@redhat.com>
1144
1145 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1146 * target.c (update_current_target): Add
1147 to_get_thread_local_address.
1148 * target.h (to_get_thread_local_address): Export.
1149 (target_get_thread_local_address): Define.
1150 (target_get_thread_local_address_p): Define.
1151 * thread-db.c: Include solib-svr4.h.
1152 (td_thr_tls_get_addr_p): Define.
1153 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1154 (thread_db_get_thread_local_address): New function.
1155 (init_thread_db_ops): Initialize to_get_thread_local_address.
1156 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1157 * configure: Regenerate.
1158 * config.in: Regenerate.
1159
636b1a6d
DC
11602002-11-11 David Carlton <carlton@math.stanford.edu>
1161
1162 * linespec.c (set_flags): New function.
1163 (decode_line_1): Move code into set_flags.
1164
44fe14ab
DC
11652002-11-11 David Carlton <carlton@math.stanford.edu>
1166
1167 * linespec.c (decode_line_1): Move chunks of code to separate
1168 functions.
1169 (initialize_defaults): New function.
1170 (decode_indirect): New function.
1171
e6f181f5
AC
11722002-11-11 Andrew Cagney <ac131313@redhat.com>
1173
8971b011
AC
1174 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1175 instead of void_code_ptr.
1176 (sigtramp_saved_pc): Ditto.
1177
e6f181f5
AC
1178 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1179 i386_fp_regnum_p.
1180
01ad7f36
DJ
11812002-11-10 Daniel Jacobowitz <drow@mvista.com>
1182
1183 * gdbtypes.h (struct main_type): Move artificial flag out of
1184 loc. New member of ``struct field'' named static_kind. Reduce
1185 overloaded meaning of bitsize.
1186 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1187 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1188 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1189
1190 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1191 new fields.
1192 (template_to_fixed_record_type, template_to_static_fixed_type)
1193 (to_record_with_fixed_variant_part): Likewise.
1194 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1195 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1196 * dwarfread.c (struct_type, enum_type): Likewise.
1197 * hpread.c (hpread_read_enum_type)
1198 (hpread_read_function_type, hpread_read_doc_function_type)
1199 (hpread_read_struct_type): Likewise.
1200 * mdebugread.c (parse_symbol): Likewise.
1201
bf1e52be
AC
12022002-11-10 Andrew Cagney <ac131313@redhat.com>
1203
1204 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1205 * stack.c (print_frame_info_base): Update.
1206 (print_frame_info_base, frame_info): Update.
1207 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1208 (sparc_frame_saved_pc): Update.
1209 * ada-lang.c (find_printable_frame): Update.
1210 * breakpoint.c (deprecated_frame_in_dummy): Update.
1211
ce556f85
MK
12122002-11-09 Mark Kettenis <kettenis@gnu.org>
1213
1214 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1215 defined.
1216 (regmap): Extend to cover all registers.
1217 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1218 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1219 definitions.
1220 (fetch_register, sore_register): Simplify.
1221 (old_fetch_inferior_registers, old_store_inferior_registers):
1222 Remove functions.
1223 (cannot_fetch_register, cannot_store_register): Change
1224 implementation to use regmap array to decide which registers
1225 cannot be fetched/stored. This removes $orig_eax from the
1226 registers that cannot be fetched/stored.
1227 (fetch_inferior_registers): Call fetch_register directly instead
1228 of calling old_fetch_inferior_registers.
1229 (store_inferior_registers): Call store_register directly instead
1230 of calling old_store_inferior_registers.
1231 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1232 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1233 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1234
932bb524
KD
12352002-11-09 Klee Dienes <kdienes@apple.com>
1236
1237 * i387-tdep.c (i387_supply_register): When called with NULL as a
1238 buffer, mark the register as not provided (to mirror the behavior
1239 of supply_register).
1240 (i387_supply_fxsave): Ditto.
1241 (i387_supply_fsave): Ditto (inherits the behavior from
1242 i387_supply_register).
1243
ebe68b27
KD
12442002-11-09 Klee Dienes <kdienes@apple.com>
1245
1246 * blockframe.c (sigtramp_saved_pc): Use
1247 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1248 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1249 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1250
15220c65
AC
12512002-11-09 Andrew Cagney <ac131313@redhat.com>
1252
1253 * frame.c (get_prev_frame): Test prev_p to identify a previously
1254 unwound frame. Initialize prev_p.
1255 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1256 comment.
1257
95adb866
AC
12582002-11-09 Andrew Cagney <ac131313@redhat.com>
1259
1260 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1261 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1262 more comments. Zap dead code.
1263
e71ecd70
MK
12642002-11-09 Mark Kettenis <kettenis@gnu.org>
1265
1266 * infcmd.c (print_vector_info, print_float_info): Move code that
1267 checks whether the target has any registers and whether there is a
1268 selected frame up, such that it is also used if a target provides
1269 multi-arch definitions of these functions.
1270
c525330d
AC
12712002-11-08 Andrew Cagney <ac131313@redhat.com>
1272
72bdd927
AC
1273 * Makefile.in (DESTDIR): Define.
1274 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1275 prefix.
1276
c525330d
AC
1277 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1278 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1279
38c968cf
AC
12802002-11-08 Andrew Cagney <ac131313@redhat.com>
1281
1282 * i386-linux-tdep.c: Include "reggroups.h".
1283 (i386_linux_register_reggroup_p): New function.
1284 (i386_linux_init_abi): Set register_reggroup_p to
1285 i386_linux_register_reggroup_p.
1286 * i386-tdep.h (i386_register_reggroup_p): Declare.
1287 * i386-tdep.c: Include "reggroups.h".
1288 (i386_init_reggroups): New function.
1289 (i386_add_reggroups): New function.
1290 (i386_register_reggroup_p): New function.
1291 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1292 (_initialize_i386_tdep): Call i386_init_reggroups.
1293 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1294 specific reggroups.
1295
19e33363
MK
12962002-11-09 Mark Kettenis <kettenis@gnu.org>
1297
371a6e84
MK
1298 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1299 request that's available in *BSD.
1300
94ba925a
MK
1301 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1302
19e33363
MK
1303 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1304 FDOFF_REGNUM.
1305
8779790c
AC
13062002-11-08 Andrew Cagney <ac131313@redhat.com>
1307
1308 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1309 * dummy-frame.c (find_dummy_frame): Rename
1310 generic_find_dummy_frame, make static. Return the dummy frame
1311 instead of the regcache.
1312 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1313 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1314 (dummy_frame_register_unwind): Rename
1315 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1316 * dummy-frame.h (dummy_frame_register_unwind): Rename
1317 generic_call_dummy_register_unwind.
1318
8674b74f
MK
13192002-11-08 Mark Kettenis <kettenis@gnu.org>
1320
1321 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1322 except the inclusion of "i386/tm-i386.h", to...
1323 * config/i386/nm-i386v42mp.h: ...here.
1324 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1325
4c1e7e9d
AC
13262002-11-08 Andrew Cagney <ac131313@redhat.com>
1327
1328 * Makefile.in (frame.o): Update dependencies.
1329 * blockframe.c (current_frame, frame_obstack_alloc)
1330 (frame_saved_regs_zalloc, get_current_frame)
1331 (set_current_frame, create_new_frame)
1332 (set_unwind_by_pc, get_next_frame)
1333 (flush_cached_frames, reinit_frame_cache)
1334 (frame_saved_regs_register_unwind)
1335 (deprecated_generic_get_saved_register)
1336 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1337 (_initialize_blockframe): Move frame code from here...
1338 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1339 "annotate.h" and "dummy-frame.h".
1340 (_initialize_frame): New function.
1341
921e78cf
JB
13422002-11-08 Jim Blandy <jimb@redhat.com>
1343
1344 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1345 when we finish a function a context.
1346 * buildsym.h (outermost_context_p): New macro.
1347 (Bug analyzed by David Edelsohn.)
1348
9c1412c1
AC
13492002-11-08 Andrew Cagney <ac131313@redhat.com>
1350
1351 * blockframe.c: Include "dummy-frame.h".
1352 (struct dummy_frame, dummy_frame_stack)
1353 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1354 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1355 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1356 (generic_save_call_dummy_addr, generic_pop_current_frame)
1357 (generic_pop_dummy_frame, generic_fix_call_dummy)
1358 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1359 dummy frame code from here...
1360 * dummy-frame.c: ...to here. New file.
1361 * dummy-frame.h: New file.
1362 (generic_call_dummy_register_unwind): Declare.
1363 (generic_find_dummy_frame): Declare.
1364 * Makefile.in (SFILES): Add dummy-frame.c.
1365 (dummy-frame.o): Specify dependencies.
1366 (dummy_frame_h): Define.
1367 (COMMON_OBS): Add dummy-frame.o.
1368 (blockframe.o): Update dependencies.
1369
208d8187
JB
13702002-11-08 Jim Blandy <jimb@redhat.com>
1371
1372 * dwarf2read.c (read_func_scope): Restore local_symbols and
1373 param_symbols after we finish the function context. (Based on a
1374 patch from David Edelsohn.)
1375
413dad4d
DC
13762002-11-08 David Carlton <carlton@math.stanford.edu>
1377
1378 * linespec.c (symbol_found): New function.
1379 (minsym_found): New function.
1380 (decode_line_1): Separate out some code into separate functions.
1381
5512c44a
JB
13822002-11-08 Joel Brobecker <brobecker@gnat.com>
1383
1384 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1385 the benefit of the interix target.
1386 * i386-tdep.h (i386_frameless_signal_p): Declare.
1387
1b33ef47
AC
13882002-11-08 Andrew Cagney <ac131313@redhat.com>
1389
1390 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1391 declaration that snuck in from change below.
1392
23a34459
AC
13932002-11-06 Andrew Cagney <cagney@redhat.com>
1394
1395 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1396 all callers.
1397 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1398 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1399 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1400 (i386_mxcsr_regnum_p): new function. Use instead of
1401 MXCSR_REGNUM_P.
1402 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1403 (i386_sse_regnum_p): Declare.
1404 (i386_mxcsr_regnum_p): Declare.
1405 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1406 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1407 (IS_FP_REGNUM): Update definition.
1408 (IS_FPU_CTRL_REGNUM): Update definition..
1409 (IS_SSE_REGNUM): Update definition..
1410 * i386v-nat.c (register_u_addr): Update.
1411 * go32-nat.c (fetch_register): Update.
1412 (store_register): Update.
1413
d709c020
JB
14142002-11-07 Joel Brobecker <brobecker@gnat.com>
1415
1416 Preparation work to convert the hppa targets to multiarch partial.
1417
1418 * hppa-tdep.c: Add new functions replacing macro bodies from
1419 config/pa/tm-hppa.h. These function will be used to initialize
1420 the gdbarch structure. Import some comments from tm-hppa.h,
1421 and place them where appropriate, to avoid loosing them when
1422 we cleanup this file.
1423 (hppa_reg_struct_has_addr): New function.
1424 (hppa_inner_than): New function.
1425 (hppa_stack_align): New function.
1426 (hppa_pc_requires_run_before_use): New function.
1427 (hppa_instruction_nullified): New function.
1428 (hppa_register_byte): New function.
1429 (hppa_register_virtual_type): New function.
1430 (hppa_store_struct_return): New function.
1431 (hppa_cannot_store_register): New function.
1432 (hppa_frame_args_address): New function.
1433 (hppa_frame_locals_address): New function.
1434 (hppa_smash_text_address): New function.
1435 (hppa_coerce_float_to_double): New function. Requires the inclusion
1436 of "language.h".
1437
1438 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1439
1440 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1441 gdbarch-eligible macro to a call to the new associated function
1442 created in hppa-tdep.c.
1443 (INNER_THAN): Likewise.
1444 (STACK_ALIGN): Likewise.
1445 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1446 (INSTRUCTION_NULLIFIED): Likewise.
1447 (REGISTER_BYTE): Likewise.
1448 (REGISTER_VIRTUAL_TYPE): Likewise.
1449 (STORE_STRUCT_RETURN): Likewise.
1450 (CANNOT_STORE_REGISTER): Likewise.
1451 (FRAME_ARGS_ADDRESS): Likewise.
1452 (FRAME_LOCALS_ADDRESS): Likewise.
1453 (SMASH_TEXT_ADDRESS): Likewise.
1454 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1455 (ABOUT_TO_RETURN): Delete, as no longer used.
1456
83c31e7d
FN
14572002-11-07 Fernando Nasser <fnasser@redhat.com>
1458
1459 * printcmd.c (disassemble_command): Remove obsolete function.
1460 (_initialize_printcmd): Do not create disassemble command here.
1461 * cli/cli-cmds.c (disassemble_command): New function. Implements
1462 disassemble command.
1463 (init_cli_cmds): Create disassemble command here instead.
1464
0ec30a36
AC
14652002-11-07 Andrew Cagney <ac131313@redhat.com>
1466
1467 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1468
e600bd34
AC
14692002-11-07 Andrew Cagney <ac131313@redhat.com>
1470
1471 * regcache.h (regcache_cooked_read_using_offset_hack)
1472 (regcache_cooked_write_using_offset_hack): Delete declarations.
1473 (register_changed): Delete declaration.
1474 * regcache.c (regcache_cooked_read_using_offset_hack)
1475 (regcache_cooked_write_using_offset_hack): Delete functions.
1476 (cooked_xfer_using_offset_hack): Delete function.
1477 (register_changed): Delete function.
1478
568f8739
JB
14792002-11-07 Jim Blandy <jimb@redhat.com>
1480
1481 * macroscope.c: #include "complaints.h".
1482 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1483 but not in the macro table.
1484 * Makefile.in (macroscope.o): Record dependency.
1485
b0718b7b
JB
14862002-11-07 Joel Brobecker <brobecker@gnat.com>
1487
1488 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1489
2b9e5f3f
AC
14902002-11-07 Andrew Cagney <ac131313@redhat.com>
1491
1492 * regcache.c (deprecated_registers_fetched): Update.
1493 * regcache.h (deprecated_registers_fetched): Rename
1494 registers_fetched.
1495 * remote-vxsparc.c (vx_read_register): Update.
1496 * remote-vxmips.c (vx_read_register): Update.
1497 * remote-vx68.c (vx_read_register): Update.
1498 * irix5-nat.c (fetch_core_registers): Update.
1499 * mipsm3-nat.c (fetch_inferior_registers): Update.
1500 * sun3-nat.c (fetch_inferior_registers): Update.
1501 * symm-nat.c (fetch_inferior_registers): Update.
1502 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1503 (fetch_core_registers): Update.
1504 (fetch_kcore_registers): Update.
1505 * mips-nat.c (fetch_inferior_registers): Update.
1506 * corelow.c (get_core_registers): Update.
1507 * a68v-nat.c (fetch_inferior_registers): Update.
1508
e6e68f1f
JB
15092002-11-06 Joel Brobecker <brobecker@gnat.com>
1510
1511 Put in place the framework necessary for multiarching the hppa targets.
1512 * hppa-tdep.c (hppa_gdbarch_init): New function.
1513 (hppa_dump_tdep): New function.
1514 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1515 tdep structure dumper.
1516 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1517 until the multi-arching conversion has partially been completed.
1518
492254e9
AC
15192002-11-06 Andrew Cagney <ac131313@redhat.com>
1520
1521 * valops.c (value_assign): Merge lval_register case into
1522 lval_reg_frame_relative. Use frame_register and
1523 regcache_cooked_write instead of get_saved_register and
1524 write_register_bytes. After flushing the register cache, try to
1525 re-select the selected frame.
1526
8262ee23
AC
15272002-11-06 Andrew Cagney <ac131313@redhat.com>
1528
1529 * regcache.h (deprecated_register_valid): Rename register_valid.
1530 * regcache.c: Update.
1531 * ia64-aix-nat.c: Update.
1532 * i386gnu-nat.c: Update.
1533 * alpha-nat.c: Update.
1534 * sparc-nat.c: Update.
1535 * lynx-nat.c: Update.
1536 * remote-mips.c: Update.
1537
4facf7e8
JB
15382002-11-06 Joel Brobecker <brobecker@gnat.com>
1539
1540 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1541 to end of file, to be more consistent with the pratice followed
1542 by other targets.
1543
f9418c0f
AC
15442002-11-06 Andrew Cagney <ac131313@redhat.com>
1545
1546 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1547 (print_float_info): Print registers in float_reggroup.
1548 (print_vector_info): Print registers in vector_reggroup.
1549 (default_print_registers_info): When all, print registers in
1550 all_reggroup. Otherwize, print registers in general_reggroup.
1551 (registers_info): Rewrite. Add support for register groups.
1552 Eliminate a goto.
1553
3fe235a7
EZ
15542002-11-06 Elena Zannoni <ezannoni@redhat.com>
1555
1556 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1557 ages.
1558 (symtab_symbol_info): Remove eons old ifdeffed out code.
1559 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1560 command.
1561
ef944135
TR
15622002-11-06 Theodore A. Roth <troth@openavr.org>
1563
1564 * c-exp.y: Add missing semi-colons.
1565 * f-exp.y: Add missing semi-colons.
1566 * m2-exp.y: Add missing semi-colons.
1567 * p-exp.y: Add missing semi-colons.
1568 Add empty action to start rule to avoid a type clash error when
1569 building with bison >= 1.50.
1570
f8302a57
JB
15712002-11-06 Jim Blandy <jimb@redhat.com>
1572
1573 * macrotab.h (struct macro_source_file): Doc fix.
1574
6e382aa3
JJ
15752002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1576
1577 * varobj.c (child_exists, cplus_number_of_children): Change
1578 STREQ macro references to strcmp.
1579 (cplus_name_of_child): Change code to handle the fact that
1580 fields are not necessarily contiguous with regards to their
1581 access control. This is a fix for PR gdb/792.
1582
a216a322
AC
15832002-11-05 Andrew Cagney <ac131313@redhat.com>
1584
1585 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1586 * gdbarch.h, gdbarch.c: Regnerate.
1587 * frame.h (frame_register): Declare.
1588 * frame.c (frame_register): New function.
1589 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1590 GET_SAVED_REGISTER, otherwize call
1591 generic_unwind_get_saved_register.
1592 (frame_register_read): Use frame_register instead of
1593 get_saved_register.
1594
7d5b6fdd
EZ
15952002-11-05 Elena Zannoni <ezannoni@redhat.com>
1596
1597 From Jim Ingham <jingham@apple.com>:
1598 * event-top.c (gdb_disable_readline): New function.
1599 (_initialize_event_loop): Move comment.
1600
b7c64260
EZ
16012002-11-05 Elena Zannoni <ezannoni@redhat.com>
1602
1603 * event-loop.c (start_event_loop): Add comment.
1604 Update copyright.
1605
c2e1b8f2
AC
16062002-11-05 Andrew Cagney <ac131313@redhat.com>
1607
1608 * infcmd.c (default_print_registers_info): Do not call
1609 PRINT_REGISTER_HOOK.
1610
87647bb0
AC
16112002-11-05 Andrew Cagney <ac131313@redhat.com>
1612
1613 * sparc-tdep.c (sparc_print_register_hook): Make static.
1614 (sparc_print_registers_info): New function.
1615 (sparc_do_registers_info): New function.
1616 (sparclet_print_registers_info): New function.
1617 (sparclet_do_registers_info): New function.
1618 (do_sparc_print_registers_info): New function.
1619 (sparc_print_registers): New static function, clone of infcmd.c's
1620 default_print_registers_info.
1621 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1622 (sparclet_do_registers_info): Declare.
1623 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1624 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1625 Re-define.
1626 (sparc_do_registers_info): Declare.
1627 (PRINT_REGISTER_HOOK): Delete macro.
1628 (sparc_print_register_hook): Delete declaration.
1629
8155455b
DC
16302002-11-05 David Carlton <carlton@math.stanford.edu>
1631
1632 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1633 functions.
1634 (lookup_symbol_aux_local): New function.
1635 (lookup_symbol_aux_symtabs): New function.
1636 (lookup_symbol_aux_psymtabs): New function.
1637
29924310
DC
16382002-11-05 David Carlton <carlton@math.stanford.edu>
1639
1640 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1641 previous values of 'objfile' and 'block'.
1642
cc303028
PM
16432002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1644
1645 * values.c (value_change_enclosing_type): Set
1646 enclosing_type field correctly also for the case where
1647 more memory needs to be allocated.
1648
1d70089a
MK
16492002-11-03 Mark Kettenis <kettenis@gnu.org>
1650
f16a25ae
MK
1651 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1652 of puts_filtered.
1653
1d70089a
MK
1654 * i387-tdep.c (i387_print_float_info): Replace calls to
1655 register_read and deprecated_read_register_gen with calls to
1656 frame_register_read, and make the necessary adjustments to the
1657 surrounding code.
1658
7e20f3fb
AC
16592002-11-02 Andrew Cagney <ac131313@redhat.com>
1660
1661 * gdbarch.sh (register_reggroup_p): Allow default value.
1662 * gdbarch.h, gdbarch.c: Regenerate.
1663
192dbe33
AC
16642002-11-02 Andrew Cagney <ac131313@redhat.com>
1665
1666 * regcache.h: Add coment indicating replacements for deprecated
1667 functions.
1668
b59ff9d5
AC
16692002-11-02 Andrew Cagney <cagney@redhat.com>
1670
1671 * reggroups.h, reggroups.c: New files.
1672 * regcache.c: Include "reggroups.h".
1673 (enum regcache_dump_what): Add `regcache_dump_groups'.
1674 (regcache_dump): Contract size of the "Type" column. When
1675 specified, dump the register's groups.
1676 (maintenance_print_register_groups): New function.
1677 (_initialize_regcache): Add command `maint print register-groups'.
1678 * Makefile.in (COMMON_OBS): Add reggroups.o
1679 (SFILES): Add reggroups.c.
1680 (reggroups_h): Define.
1681 (regcache.o, gdbarch.o): Update dependencies.
1682 (reggroups.o): Specify dependencies.
1683 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1684 Add opaque declaration for `struct reggroup' in generated .h file.
1685 Include "reggroups.h" in generated .c file.
1686 gdbarch.h, gdbarch.c: Re-generate.
1687
4caf0990
AC
16882002-11-02 Andrew Cagney <cagney@redhat.com>
1689
1690 * regcache.h (deprecated_read_register_gen): Rename
1691 read_register_gen.
1692 (deprecated_write_register_gen): Rename write_register_gen.
1693 * i387-tdep.c: Update.
1694 * x86-64-linux-nat.c: Update
1695 * wince.c: Update.
1696 * thread-db.c: Update.
1697 * win32-nat.c: Update.
1698 * mips-tdep.c: Update.
1699 * d10v-tdep.c: Update.
1700 * cris-tdep.c: Update.
1701 * remote-sim.c: Update.
1702 * remote-rdi.c: Update.
1703 * remote-rdp.c: Update.
1704 * frame.c: Update.
1705 * target.c: Update.
1706 * blockframe.c: Update.
1707 * x86-64-tdep.c: Update.
1708 * xstormy16-tdep.c: Update.
1709 * sh-tdep.c: Update.
1710 * s390-tdep.c: Update.
1711 * rs6000-tdep.c: Update.
1712 * sparc-tdep.c: Update.
1713 * i386-tdep.c: Update.
1714 * dwarf2cfi.c: Update.
1715 * regcache.c: Update.
1716
7a7adcdf
JB
17172002-11-01 Joel Brobecker <brobecker@gnat.com>
1718
1719 New interix-specific files:
1720 * config/i386/nm-interix.h: New file.
1721 * config/i386/interix.mh: New file.
1722 * config/i386/interix.mt: New file.
1723 * i386-interix-nat.c: New file.
1724 * i386-interix-tdep.c: New file.
1725
bdcdd535
AC
17262002-11-01 Andrew Cagney <cagney@redhat.com>
1727
1728 * frame.h (deprecated_generic_get_saved_register): Rename
1729 generic_get_saved_register.
1730 * blockframe.c (deprecated_generic_get_saved_register): Update.
1731 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1732 (xstormy16_frame_saved_register): Update.
1733 * sh-tdep.c (sh_gdbarch_init): Update.
1734 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1735 * ia64-tdep.c (ia64_get_saved_register): Update.
1736 * cris-tdep.c (cris_gdbarch_init): Update.
1737 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1738 * arm-tdep.c (arm_gdbarch_init): Update.
1739
2a4b7c45
DJ
17402002-10-31 Daniel Jacobowitz <drow@mvista.com>
1741
1742 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1743
ef17e74b
DJ
17442002-10-31 Daniel Jacobowitz <drow@mvista.com>
1745
1746 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1747 trampolines in sigaction.
1748
4904ba5b
AC
17492002-10-31 Andrew Cagney <cagney@redhat.com>
1750
1751 * h8300-tdep.c: Include "gdb_assert.h".
1752 (h8300_print_register): Add gdbarch, file and frame parameters.
1753 Use frame_read_unsigned_register to read the register's value.
1754 Use fprintf_filtered to display output.
1755 (h8300_print_registers_info): Replace h8300_do_registers_info.
1756 (h8300_gdbarch_init): Set print_registers_info.
1757
f908a0eb
AC
17582002-10-31 Andrew Cagney <cagney@redhat.com>
1759
1760 * frame.c (frame_read_unsigned_register): New function.
1761 (frame_read_signed_register): New function.
1762 * frame.h (frame_read_unsigned_register): Declare.
1763 (frame_read_signed_register): Declare.
1764
c5646e11
AC
17652002-10-31 Andrew Cagney <cagney@redhat.com>
1766
1767 * h8500-tdep.c (h8500_print_registers_info): New static function,
1768 clone of infcmd.c's default_print_registers_info.
1769 (h8500_do_registers_info): New funtion.
1770 (h8500_print_register_hook): Rename print_register_hook, make
1771 static.
1772
1773 * config/h8500/tm-h8500.h: Update copyright.
1774 (DEPRECATED_DO_REGISTERS_INFO): Define.
1775 (h8500_do_registers_info: Declare.
1776 (PRINT_REGISTER_HOOK): Delete macro.
1777 (print_register_hook): Delete function.
1778
0bdd672b
AC
17792002-10-31 Andrew Cagney <cagney@redhat.com>
1780
1781 * z8k-tdep.c (z8k_print_register_hook): Make static.
1782 (z8k_print_registers_info): New static function, clone of
1783 infcmd.c's default_print_registers_info.
1784 (z8k_do_registers_info): New function. Wrap
1785 z8k_print_registers_info.
1786 * config/z8k/tm-z8k.h: Update copyright.
1787 (PRINT_REGISTER_HOOK): Delete macro.
1788 (z8k_print_register_hook): Delete declaration.
1789 (DEPRECATED_DO_REGISTERS_INFO): Define.
1790 (z8k_do_registers_info): Declare.
1791
bf9c25dc
JB
17922002-10-30 Joel Brobecker <brobecker@gnat.com>
1793
1794 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1795 as this is already provided by value.h, and was actually causing
1796 a compilation error because of a conflict in parameter type
1797 declaration due to a missing const keyword.
1798 (low_text_segment_addres): Fix a compilation warning.
1799
2c665b51
DJ
18002002-10-29 Daniel Jacobowitz <drow@mvista.com>
1801
1802 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1803 registers without a name.
1804 (mips_linux_cannot_store_register): Don't store registers without
1805 a name.
1806
e70ea697
DC
18072002-10-28 David Carlton <carlton@math.stanford.edu>
1808
1809 * symtab.c (find_addr_symbol): Delete. (It was already commented
1810 out.)
1811 * symtab.h: Delete prototype for find_addr_symbol.
1812
903ad3a6
AC
18132002-10-26 Andrew Cagney <cagney@redhat.com>
1814
1815 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1816 DO_REGISTERS_INFO.
1817 gdbarch.h, gdbarch.c: Re-generate.
1818 * infcmd.c (default_print_registers_info): Update reference.
1819 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1820 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1821 * sh-tdep.c (sh_gdbarch_init): Ditto.
1822 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1823 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1824
ab91194c
MK
18252002-10-26 Mark Kettenis <kettenis@gnu.org>
1826
e3033f15
MK
1827 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1828 cfi_init_extra_frame_info.
1829 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1830 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1831
b83b026c
MK
1832 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1833 target where necessary. Add more comments and remove the ones
1834 that don't provide any useful information.
1835
267bf4bb
MK
1836 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1837 deprecated_read_register_dummy with
1838 frame_unwind_unsigned_register.
1839
751f1375
MK
1840 * i386-tdep.c (i386_extract_struct_value_address): Use
1841 regcache_raw_read_unsigned instead of
1842 regcache_cooked_read_unsigned since we know that the register
1843 we're reading isn't a pseudo register. Rename variable 'val' into
1844 the more descriptive 'addr'.
1845
26abbdc4
MK
1846 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1847 (x86_64_push_return_address): Add comment.
1848 (x86_64_pop_frame): Make static.
1849 (examine_argument): Clarify comment.
1850 (x86_64_skip_prologue): Make prolog_expact variable static.
1851
9f1549cc
MK
1852 * dwarf2cfi.c: Fix some formatting problems.
1853 (context_cpy, read_encoded_pointer): Clarify comments.
1854
ab91194c
MK
1855 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1856 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1857 i386 target back into x86_64_gdbarch_init. Add some comments and
1858 remove meaningless ones.
1859
72367fb4
AC
18602002-10-25 Andrew Cagney <cagney@redhat.com>
1861
1862 * complaints.h (struct deprecated_complaint): Rename `struct
1863 complaint'.
1864 * complaints.c (complain): Update.
1865 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1866 incorrect comment indicating that "symfile.h" was being included
1867 for the `struct complaint' definition.
1868 * remote-vx.c: Update.
1869 * objc-lang.c: Update.
1870 * xcoffread.c: Update.
1871 * hpread.c: Update.
1872 * mdebugread.c: Update.
1873 * stabsread.c: Update.
1874 * dwarf2read.c: Update.
1875 * dwarfread.c: Update.
1876 * elfread.c: Update.
1877 * coffread.c: Update.
1878 * stabsread.h: Update.
1879 * dbxread.c: Update.
1880 * buildsym.c: Update.
1881 * gdbtypes.c: Update.
1882 * macrotab.c: Update.
1883
1f2baacc
MK
18842002-10-25 Mark Kettenis <kettenis@gnu.org>
1885
0c1a73d6
MK
1886 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1887 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1888 (x86_64_init_abi): ...new function.
1889
6aee4d54 1890 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
1891 * i386v-nat.c: Include "i386-tdep.h".
1892
8f9cbe01
AC
18932002-10-25 Andrew Cagney <cagney@redhat.com>
1894
5f11f355
AC
1895 * gdbtypes.c (address_space_name_to_int): Update.
1896 (address_space_int_to_name): Update.
1897 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1898 multi-arch predicate.
1899 (address_class_name_to_type_flags): Ditto.
1900 * gdbarch.h, gdbarch.c: Re-generate.
1901
8f9cbe01
AC
1902 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1903
e8d96a5d
MH
19042002-10-24 Martin M. Hunt <hunt@redhat.com>
1905
1906 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1907
fe39c653
EZ
19082002-10-24 Elena Zannoni <ezannoni@redhat.com>
1909
1910 * symtab.h (INIT_SAL): Delete macro.
1911 (init_sal): Export.
1912 * symtab.c (init_sal): New function.
1913
1914 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1915 to init_sal function call.
1916 (find_sal_from_funcs_and_line): Ditto.
1917 (all_sals_for_line): Ditto.
1918 * breakpoint.c (create_internal_breakpoint): Ditto.
1919 (create_fork_vfork_event_catchpoint): Ditto.
1920 (create_exec_event_catchpoint): Ditto.
1921 (parse_breakpoint_sals): Ditto.
1922 (watch_command_1): Ditto.
1923 (handle_gnu_4_16_catch_command): Ditto.
1924 (clear_command): Ditto.
1925 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1926 * infcmd.c (run_stack_dummy): Ditto.
1927 * infrun.c (process_event_stop_test): Ditto.
1928 (check_sigtramp2): Ditto.
1929 (step_over_function): Ditto.
1930 * linespec.c (decode_line_2): Ditto.
1931 (decode_line_1): Ditto.
1932 * source.c (line_info): Ditto.
1933 * symtab.c (find_pc_sect_line): Ditto.
1934
baed091b
ML
19352002-10-24 Michal Ludvig <mludvig@suse.cz>
1936
1937 * dwarf2cfi.c (struct context)
1938 (struct context_reg): Moved to dwarf2cfi.h
1939 (context_alloc, frame_state_alloc, context_cpy):
1940 Made extern instead of static, removed prototypes.
1941 * dwarf2cfi.h (struct context)
1942 (struct context_reg): New, moved from dwarf2cfi.c
1943 (context_alloc, frame_state_alloc, context_cpy):
1944 New prototypes.
1945 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1946 Changed from static to extern.
1947 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1948 (LINUX_SIGCONTEXT_FP_OFFSET)
1949 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1950 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1951 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1952 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1953 set_gdbarch_*() calls now use x86-64 specific functions
1954 instead of DWARF2 CFI ones.
1955 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
1956 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
1957 (x86_64_init_extra_frame_info): New prototypes.
1958
c38da1af
DC
19592002-10-23 David Carlton <carlton@math.stanford.edu>
1960
1961 * linespec.c: #include "parser-defs.h".
1962 Delete prototype for find_template_name_end.
1963 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
1964
fb9b6b35
JJ
19652002-10-23 Jeff Johnston <jjohnstn@redhat.com>
1966
1967 * NEWS: add recent mi fixes.
1968 * varobj.c (struct varobj): Add new "updated" flag.
1969 (new_variable): Default "updated" flag to 0.
1970 (varobj_set_value): Set "updated" flag to 1 if value
1971 changes.
1972 (varobj_update): Check varobj "updated" flag before
1973 comparing old and refreshed values. Fix for
1974 PR gdb/702.
1975
8da065d5
DC
19762002-10-23 David Carlton <carlton@math.stanford.edu>
1977
1978 * parse.c (parse_exp_1): Use BLOCK_START.
1979 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
1980 SYMBOL_BLOCK_VALUE.
1981 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
1982
87f2f08c
DC
19832002-10-23 David Carlton <carlton@math.stanford.edu>
1984
1985 * symtab.c: Delete cplusplus_hint.
1986 Delete prototype for find_template_name_end.
1987
88cda038
EZ
19882002-10-23 Elena Zannoni <ezannoni@redhat.com>
1989
1990 * symtab.h: Update comment.
1991
2625d86c
MS
19922002-10-23 Michael Snyder <msnyder@redhat.com>
1993
1994 * printcmd.c (address_info): Restore quotes in output.
1995 * valops.c (value_of_local): Restore quotes in error message.
1996
9cc0d196
EZ
19972002-10-23 Elena Zannoni <ezannoni@redhat.com>
1998
1999 * symtab.c (symbol_demangled_name): New function.
2000 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2001 turning most of it into a function.
2002 (symbol_demangled_name): Export.
2003
19de93d0
MS
20042002-10-23 Michael Snyder <msnyder@redhat.com>
2005
2006 * valops.c (value_of_local): Restore quotes in error message.
2007
89aad1f9
EZ
20082002-10-23 Elena Zannoni <ezannoni@redhat.com>
2009
2010 * symtab.c (symbol_init_language_specific): New function.
2011 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2012 turning most of it into a function.
2013 (symbol_init_language_specific): Export.
2014
d9fa45fe
DC
20152002-10-23 David Carlton <carlton@math.stanford.edu>
2016
2017 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2018 (dwarf_attr_name): Ditto.
2019 (dwarf_type_encoding_name): Ditto.
2020 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2021 (process_die): Handle DW_TAG_namespace,
2022 DW_TAG_imported_declaration, DW_TAG_imported_module.
2023 (read_namespace): New function.
2024
1045b512
JB
20252002-10-22 Joel Brobecker <brobecker@gnat.com>
2026
2027 * configure.in: Define NEW_PROC_API on Interix too.
2028 * configure: Regenerate.
2029
20302002-10-21 Joel Brobecker <brobecker@gnat.com>
8ec41317
JB
2031
2032 * configure: Regenerate using the proper version of autoconf.
2033
3987b9d4
EZ
20342002-10-21 Elena Zannoni <ezannoni@redhat.com>
2035
2036 * findvar.c (read_var_value): Temporarily disable TLS code, until
2037 complete TLS support is added.
2038
9d774e44
EZ
20392002-10-21 Jim Blandy <jimb@redhat.com>
2040 Elena Zannoni <ezannoni@redhat.com>
2041
2042 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2043 for thread local storage locations.
2044 (struct symbol): Add objfile field.
2045 (SYMBOL_OBJFILE): Define.
2046 * dwarf2read.c (is_thread_local): New static variable.
2047 (new_symbol): If variable is in thread local fill in address class
2048 and objfile appropriately.
2049 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2050 stack operation.
2051 * printcmd.c (address_info): Print the information for thread
2052 local storage variable.
2053 * findvar.c (read_var_value): In case of thread local variable,
2054 defer to the target vector code to compute address.
2055
bc4a16ae
EZ
20562002-10-21 Elena Zannoni <ezannoni@redhat.com>
2057
2058 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2059 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2060
407caf07
EZ
20612002-10-21 Elena Zannoni <ezannoni@redhat.com>
2062
2063 * symtab.h (address_class): Rename
2064 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2065 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2066 * printcmd.c (address_info): Ditto.
2067 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2068
005328e3
MK
20692002-10-20 Mark Kettenis <kettenis@gnu.org>
2070
afdb036a
MK
2071 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2072 DBREG_DRX macro to acces debug registers.
2073
ca02e098
MK
2074 * Makefile.in (i386obsd-tdep.o): New target.
2075
03cc47f7
MK
2076 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2077 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2078
005328e3
MK
2079 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2080 * config/i386/obsd.mt: New file.
2081 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2082 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2083 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2084 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2085 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2086 * i386obsd-tdep.c: New file.
2087
9c96f9f2
AF
20882002-10-19 Adam Fedor <fedor@gnu.org>
2089
2090 * objc-exp.y (name_not_typename): Fix invalid comment.
2091
ce1ed485
MK
20922002-10-20 Mark Kettenis <kettenis@gnu.org>
2093
2094 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2095 to allocate partial syms and macro byte caches.
2096
1efc7aaa
DC
20972002-10-18 David Carlton <carlton@math.stanford.edu>
2098
2099 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2100
7e1d63ec
AF
21012002-10-18 Adam Fedor <fedor@gnu.org>
2102
2103 * stabsread.c (find_name_end): New function.
2104 (define_symbol): Use it.
2105
6e8d29a9
DJ
21062002-10-18 Daniel Jacobowitz <drow@mvista.com>
2107
2108 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2109 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2110 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2111 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2112
1efc7aaa 21132002-10-17 David Carlton <carlton@math.stanford.edu>
63ca651f
DC
2114
2115 * symfile.h: Add opaque declaration for struct obstack.
2116 Declare obsavestring to take a const char *.
2117 * symfile.c (obsavestring): Make first argument a const char *.
2118
1aeae86e
AF
21192002-10-16 Adam Fedor <fedor@gnu.org>
2120
2121 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2122 names when matching breakpoints in current file.
2123
8b2dbe47
KB
21242002-10-16 Kevin Buettner <kevinb@redhat.com>
2125
2126 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2127 (read_tag_pointer_type): Add address class support.
2128 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2129 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2130 New methods.
2131 * gdbarch.h, gdbarch.c: Regenerate.
2132 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2133 (make_type_with_address_space, recursive_type_dump): Add address
2134 class support.
2135 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2136 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2137 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2138
74451869
KD
21392002-10-16 Klee Dienes <kdienes@apple.com>
2140
2141 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2142 to get the last character of a char[] buffer, not
2143 name[sizeof(vptr_name)-1].
2144
ff4cb3e8
AF
21452002-10-14 Adam Fedor <fedor@gnu.org>
2146
2147 * symtab.h: New objc_specific struct.
2148 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2149 (SYMBOL_DEMANGLED_NAME): Likewise.
2150
da2cf7e0
AF
21512002-10-14 Adam Fedor <fedor@gnu.org>
2152
2153 * symfile.c (init_filename_language_table): Add ObjC file extension.
2154
4a351cef
AF
21552002-10-14 Adam Fedor <fedor@gnu.org>
2156
2157 * utils.c (puts_filtered_tabular): New function.
2158 (fprintf_symbol_filtered): Get ObjC demangled name.
2159 * defs.h (puts_filtered_tabular): Declared.
2160
9750e763
KB
21612002-10-14 Kevin Buettner <kevinb@redhat.com>
2162
2163 * c-lang.h (c_type_print_varspec_prefix): Delete.
2164 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2165 ``need_post_space'' parameter. Adjust all callers.
2166
eee771c1
DJ
21672002-10-14 Daniel Jacobowitz <drow@mvista.com>
2168
2169 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2170 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2171 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2172 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2173
46c82446
AF
21742002-10-13 Adam Fedor <fedor@gnu.org>
2175
2176 * source.c (print_source_lines): Update comments.
2177
d069f99d
AF
21782002-10-13 Adam Fedor <fedor@gnu.org>
2179
2180 * valops.c (value_of_local): New function.
2181 (value_of_this): Use it.
2182 * value.h (value_of_local): Declared.
2183
53c551b7
AF
21842002-10-13 Adam Fedor <fedor@gnu.org>
2185
2186 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2187 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2188
eb392fbf
AF
21892002-10-12 Adam Fedor <fedor@gnu.org>
2190
2191 * language.c (binop_result_type): Add language_objc to case.
2192 (integral_type): Likewise.
2193 (character_type): Likewise.
2194 (string_type): Likewise.
2195 (boolean_type): Likewise.
2196 (structured_type): Likewise.
2197 (binop_type_check): Likewise.
2198
e2b23ee9
AF
21992002-10-11 Adam Fedor <fedor@gnu.org>
2200
2201 * printcmd.c (address_info): Print 'self' for ObjC.
2202
b01ab485
AF
22032002-10-11 Adam Fedor <fedor@gnu.org>
2204
2205 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2206 OP_SELF.
2207
806e6073
AF
22082002-10-11 Adam Fedor <fedor@gnu.org>
2209
2210 * language.h (CAST_IS_CONVERSION): Add language_objc.
2211
50f85cdf
AF
22122002-10-11 Adam Fedor <fedor@gnu.org>
2213
2214 * defs.h (enum language): Add language_objc.
2215
0d540cdf
KD
22162002-10-11 Klee Dienes <kdienes@apple.com>
2217
69266111 2218 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2219 * gdbcore.h (read_memory_typed_address): Add prototype.
2220 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2221 to read a value destined for a CORE_ADDR, not read_memory_integer.
2222 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2223 (f77_get_dynamic_lowerbound): Ditto.
2224
d5dc7960
MH
22252002-10-11 Martin M. Hunt <hunt@redhat.com>
2226
2227 * utils.c (string_to_core_addr): After turning string into
2228 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2229 which will do necessary sign-extension, etc.
2230
8343f86c
DJ
22312002-10-11 Daniel Jacobowitz <drow@mvista.com>
2232
2233 * c-exp.y (THIS): Delete token and grammar rule.
2234 (yylex): Don't return THIS.
2235 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2236 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2237 * demangle.c (cplus_markers): Update comment. Put '$'
2238 first. Remove CPLUS_MARKER.
2239 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2240 * jv-exp.y (THIS): Delete token and grammar rule.
2241 (yylex): Don't return THIS.
2242 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2243 * objc-exp.y (THIS): Delete token and grammar rule.
2244 (yylex): Don't return THIS.
2245 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2246 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2247 (read_member_functions): Likewise for opname.
2248 (read_tilde_fields): Use is_cplus_marker.
2249
2250 * defs.h (CPLUS_MARKER): Don't define.
2251 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2252 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2253 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2254 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2255 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2256
2257 * config/i386/tm-i386v4.h: Delete file.
2258 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2259 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2260 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2261 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2262 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2263 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2264 * config/i386/i386v4.mt (TM_FILE): Likewise.
2265 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2266
967c0d83
MM
22672002-10-10 Marko Mlinar <markom@opencores.org>
2268
2269 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2270 accidentially not commited 2002-10-09
2271 * gdbarch.h, gdbarch.c: Re-generate.
2272
f74fa174
MM
22732002-10-09 Marko Mlinar <markom@opencores.org>
2274
2275 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2276 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2277 * gdbarch.h, gdbarch.c: Re-generate.
2278
57349743
JB
22792002-10-08 Petr Sorfa <petrs@caldera.com>
2280
2281 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2282
2283 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2284 so we can work on more than one compilation unit at a time. This
2285 helps prepare GDB to handle inter-CU die references.
2286 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2287 the code to be defined before struct comp_unit_head.
2288 (comp_unit_head): Added new members - offset, cu_head,
2289 begin_die, next and dwarf2_abbrevs.
2290 (dwarf2_abbrevs): Removed single static var; now member of
2291 struct comp_unit_head.
2292 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2293 members.
2294 (psymtab_to_symtab_1): Changed to work with the new
2295 struct comp_unit_head.
2296 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2297 constructs the dwarf2_abbrevs[] inside the cu_header.
2298 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2299 dwarf2_abbrev table to clean up.
2300 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2301 handling of dwarf2_abbrevs inside the cu_header.
2302 (read_partial_die): Now supports the call to the new
2303 dwarf2_lookup_abbrev.
2304 (read_full_die): Now supports the call to the new
2305 dwarf2_lookup_abbrev.
2306
4092aadb
CF
23072002-10-06 Christopher Faylor <cgf@redhat.com>
2308
2309 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2310 insure that shell variables, such as "transformed_name" are propagated
2311 to later shell statements in rule.
2312
af0b2512
MK
23132002-10-06 Mark Kettenis <kettenis@gnu.org>
2314
2315 * config/i386/nm-i386sco.h: Add protection against
2316 multiple-inclusion. Include "i386/nm-i386v.h".
2317 (REGISTER_U_ADDR): Remove define.
2318 (i386_register_u_addr): Remove prototype.
2319
d6020d45
MS
23202002-10-04 Michael Snyder <msnyder@redhat.com>
2321
2322 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2323 before treating it as a single-step event.
2324
7248f48e
AF
23252002-10-03 Adam Fedor <fedor@gnu.org>
2326
2327 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2328 (objc_demangle): Remove assignment in if statements, Replace
2329 free with xfree.
2330 (add_msglist): Likewise.
2331 (end_msglist): Likewise.
2332 (complare_selectors): Likewise.
2333 (selectors_info): Likewise.
2334 (compare_classes): Likewise.
2335 (classes_info): Likewise.
2336 (print_object_command): Likewise.
2337 (find_objc_msgcall_submethod): Replace PTR with void *.
2338 * objc-lang.h: Remove check for __STDC__.
2339
52c6a6ac
JJ
23402002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2341
2342 * ui-out.h (ui_out_field_fmt_int): New prototype.
2343 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2344 of field width and alignment.
2345 * stack.c (print_frame_info_base): When printing frame level, use
2346 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2347 PR gdb/192
2348
7e3cec17
JJ
23492002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2350
2351 * MAINTAINERS: Add self to Write After Approval list.
2352
a58dd373
EZ
23532002-10-02 Elena Zannoni <ezannoni@redhat.com>
2354
2355 * infcmd.c (interrupt_target_command_wrapper): Delete.
2356 (interrupt_target_command): Make non static.
2357 (nofp_registers_info): Make static.
2358 * stack.c (return_command_wrapper): Delete.
2359 (return_command): Make non static.
2360
cee6ddeb
EZ
23612002-10-02 Elena Zannoni <ezannoni@redhat.com>
2362
2363 * event-top.c (gdb_setup_readline): New function. Code moved from
2364 _initialize_event_loop().
2365 (_initialize_event_loop): Call gdb_setup_readline().
2366
c4ed33b9
AC
23672002-10-02 Andrew Cagney <ac131313@redhat.com>
2368
2369 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2370 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2371 * gdbarch.h, gdbarch.c: Re-generate.
2372
cef4f5dd
DJ
23732002-10-02 Daniel Jacobowitz <drow@mvista.com>
2374
2375 Fix PR gdb/778
2376 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2377 before recursing.
2378 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2379 of fill_in_vptr_fieldno.
2380
36dc181b 23812002-10-02 Elena Zannoni <ezannoni@redhat.com>
cee6ddeb 2382
36dc181b
EZ
2383 * inferior.h (registers_info, stepi_command, nexti_command,
2384 continue_command, interrupt_target_command): Export from infcmd.c.
2385 * frame.h (args_info, selected_frame_level_changed_hook,
2386 return_command): Export from stack.c.
2387 * v850ice.c (stepi_command, nexti_command, continue_command): use
2388 prototypes from inferior.h.
2389 * tracepoint.c (registers_info, args_info, locals_info): Use
2390 prototypes from frame.h and inferior.h.
2391 * Makefile.in (mi-main.o): Add dependency on frame.h.
2392
6f99cb26
AC
23932002-10-02 Andrew Cagney <ac131313@redhat.com>
2394
da3eff49
AC
2395 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2396 value in register 3 adjusted by ppc_gp0_regnum.
2397
6f99cb26
AC
2398 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2399
da615bee
MM
24002002-10-02 Marko Mlinar <markom@opencores.org>
2401
2402 * MAINTAINERS: Add myself to the Write After Approval list.
2403
d154bee2
AO
24042002-10-01 Alexandre Oliva <aoliva@redhat.com>
2405
62a49b2c
AO
2406 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2407 of the section for the N64 ABI, fixed.
2408
d154bee2
AO
2409 * config/mips/tm-irix6.h: Include solib.h.
2410
ed348acc
EZ
24112002-10-01 Elena Zannoni <ezannoni@redhat.com>
2412
2413 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2414 GNU operators.
2415
da0f9dcd
AC
24162002-10-01 Andrew Cagney <ac131313@redhat.com>
2417
2418 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2419 and that "mi0" syntax has been removed.
2420
bdf64bac
DC
24212002-09-30 David Carlton <carlton@math.stanford.edu>
2422
2423 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2424 * ppc-sysv-tdep.c: #include "gdb_string.h".
2425 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2426 pacify GCC.
2427
54c2a1e6
AC
24282002-10-01 Andrew Cagney <ac131313@redhat.com>
2429
2430 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2431 "vrsave"'s register number.
2432
cedea778
AC
24332002-09-30 Andrew Cagney <ac131313@redhat.com>
2434
2435 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2436 use frame_unwind_signed_register to obtain the PC.
2437 (mips_frame_chain): Handle a generic dummy frame.
2438 (mips_init_extra_frame_info): When a generic dummy frame, don't
2439 re-compute the frame base.
2440 (mips_pop_frame): Handle generic dummy frames.
2441 (mips_gdbarch_init): When generic dummy frames, set
2442 use_generic_dummy_frames, push_dummy_frame to
2443 generic_push_dummy_frame, pc_in_call_dummy to
2444 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2445 generic_save_dummy_frame_tos.
2446
68315eb8
AC
24472002-09-30 Andrew Cagney <ac131313@redhat.com>
2448
2449 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2450 against TOP when TOP was explictly set.
2451 (generic_push_dummy_frame): Set TOP to zero.
2452
3b8630c3
EZ
24532002-09-30 Elena Zannoni <ezannoni@redhat.com>
2454
2455 * event-loop.c (start_event_loop): Rename variable 'result' to
2456 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2457
28ee05e9
KS
24582002-09-30 Keith Seitz <keiths@redhat.com>
2459
2460 * gdb-events.sh (selected_thread_changed): New event.
2461 * gdb-events.c: Regenerated.
2462 * gdb-events.h: Regenerated.
2463
6eecb1c8
HPN
24642002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2465
2466 * MAINTAINERS: Add self to Write After Approval list.
2467
92df71f0
FN
24682002-09-30 Fernando Nasser <fnasser@redhat.com>
2469
3b8630c3
EZ
2470 * disasm.c: New file.
2471 * disasm.h: New file.
92df71f0
FN
2472 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2473 (compare_lines): Ditto.
2474 (dump_insns): Ditto.
3b8630c3
EZ
2475 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2476 argument.
92df71f0 2477 (do_assembly_only): Ditto.
3b8630c3
EZ
2478 (do_disassembly): Renamed to gdb_disassembly and moved to
2479 disasm.c. Sdded uiout argument.
2480 * Makefile.in: Add new files. Reorder SFILES list. Update
2481 dependencies. Include libgdb.a later in the insight executable.
92df71f0 2482
0c22854d
AC
24832002-09-29 Andrew Cagney <ac131313@redhat.com>
2484
2485 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2486 bfd/elf64-alpha-fbsd.c.
2487
e67f2023
AC
24882002-09-29 Andrew Cagney <ac131313@redhat.com>
2489
2490 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2491 i386gnu-tdep.c.
2492
89396210
AC
24932002-09-29 Andrew Cagney <ac131313@redhat.com>
2494
2495 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2496 __FUNCTION__.
2497 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2498 function name.
2499 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2500 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2501 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2502 (S_msg_sig_post_reply): Ditto.
2503
7079c36c
CV
25042002-09-28 Corinna Vinschen <vinschen@redhat.com>
2505
89396210
AC
2506 * sh-tdep.c (sh_use_struct_convention): Use definition according
2507 to ABI.
7079c36c
CV
2508 (sh_push_arguments): Store in register with correct endianess.
2509 (sh_default_store_return_value): Ditto.
2510 (sh_gdbarch_init): Set sizeof long double to 8.
2511
975ac915
MK
25122002-09-27 Mark Kettenis <kettenis@gnu.org>
2513
2514 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2515 Fix some whitespace problems.
2516
9bbe19fb
DC
25172002-09-27 David Carlton <carlton@math.stanford.edu>
2518
2519 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2520 (mcore-tdep.o): Ditto.
2521 (ns32k-tdep.o): Ditto.
2522 (ns32knbsd-tdep.o): Ditto.
2523 (sh3-rom.o): Ditto.
2524 (vax-tdep.o): Ditto.
2525 * cris-tdep.c: #include "gdb_string.h"
2526 * mcore-tdep.c: Ditto.
2527 * ns32k-tdep.c: Ditto.
2528 * ns32knbsd-tdep.c: Ditto.
2529 * sh3-rom.c: Ditto.
2530 * vax-tdep.c: Ditto.
2531
43b2fdc7
DC
25322002-09-27 David Carlton <carlton@math.stanford.edu>
2533
2534 * config/djgpp/fnchange.lst: Add entries for
2535 gdb/testsuite/gdb.c++/m-static files.
2536
e8cfbbd9
JW
25372002-09-27 Jim Wilson <wilson@redhat.com>
2538
2539 * MAINTAINERS: Add myself to the Write After Approval list.
2540
43b2fdc7 25412002-09-26 Martin M. Hunt <hunt@redhat.com>
4e0df2df
MH
2542
2543 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2544
2545
9f3b7f07
AC
25462002-09-26 Andrew Cagney <ac131313@redhat.com>
2547
2548 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2549 frame.
2550
11269d7e
AC
25512002-09-26 Andrew Cagney <ac131313@redhat.com>
2552
2553 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2554 (rs6000_struct_return_address): Delete variable.
2555 (rs6000_store_struct_return): Update.
2556 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2557 deprecated_extract_struct_value_address.
2558 (rs6000_frame_align): New function.
2559 (rs6000_gdbarch_init): Set frame_align.
2560
f15ab4a7
AC
25612002-09-26 Andrew Cagney <ac131313@redhat.com>
2562
2563 From Grace Sainsbury <graces@redhat.com>:
2564 * Makefile.in (gdbtk-main.o): New target.
2565 (gdb.o): New target.
2566 (main_h): Define.
2567 (main.o): Update dependencies.
2568 (gdb$(EXEEXT)): Add gdb.o.
2569 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2570 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2571 (SUBDIR_GDBTK_CLEAN): Set.
2572 (install-gdbtk): Install the insight binary.
2573 (uninstall-gdbtk): New target.
2574 (all-gdbtk, clean-gdbtk): New rule.
2575 * top.c (use_windows): Default to zero.
2576 * main.c: Include "main.h".
2577 (main): Delete.
2578 (struct captured_main_args): Delete.
2579 (gdb_main): New function.
2580 * main.h: New file.
2581 * gdb.c: New File.
2582
e36180d7
AC
25832002-09-25 Andrew Cagney <cagney@redhat.com>
2584
2585 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2586 (frame_map_regnum_to_name): New function.
2587 (frame_map_name_to_regnum): New function.
2588 * frame.h (frame_map_name_to_regnum): Declare.
2589 (frame_map_regnum_to_name): Declare.
2590 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2591 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2592 * parse.c: Do not include "builtin-regs.h".
2593 (target_map_name_to_register): Delete function.
2594 (write_dollar_variable): Use frame_map_name_to_regnum.
2595 * parser-defs.h (target_map_name_to_register): Delete declaration.
2596 * expprint.c: Include "frame.h".
2597 (print_subexp): Use frame_map_regnum_to_name.
2598 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2599 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2600
8b69000d
AC
26012002-09-25 Andrew Cagney <ac131313@redhat.com>
2602
2603 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2604 wasn't saved, and the next innermost frame is a dummy, return the
2605 dummy frame's link register.
2606
046ca86a
JB
26072002-09-24 Jim Blandy <jimb@redhat.com>
2608
2609 Fix from Paul Breed:
2610 * main.c (captured_main): Add a `break' after the case for 'b'.
2611
94b66fa7
KS
26122002-09-24 Keith Seitz <keiths@redhat.com>
2613
2614 * varobj.c (c_type_of_child): Use get_target_type instead
2615 of TYPE_TARGET_TYPE.
2616
c214a6fd
FN
26172002-09-22 Fernando Nasser <fnasser@redhat.com>
2618
53cb0458
FN
2619 * source.c (get_current_or_default_source_symtab_and_line): Remove
2620 function.
2621 (set_default_source_symtab_and_line): New function. Attempts to
2622 determine a source file to list lines from if one is not currently
2623 defined.
2624 (get_current_source_symtab_and_line): Initialize sal.pc and
2625 sal.end fields.
2626 (set_current_source_symtab_and_line): Mark argument as const.
2627 * source.h: Update declarations and comments.
2628 * linespec.c (decode_line_1): Replace call to removed routine above.
2629 * stack.c (print_frame_info_base): Ditto.
2630 * cli/cli-cmds.c (edit_command): Ditto.
2631 (list_command): Ditto.
2632
26332002-09-22 Fernando Nasser <fnasser@redhat.com>
2634
d6020d45 2635 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 2636 sal.pc and sal.end fields.
c214a6fd
FN
2637 (get_current_or_default_source_symtab_and_line): Ditto.
2638 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2639 so we do not cause a new source symtab to be searched for (reverting an
2640 unintentional change from the 2002-09-20 patch).
2641 * scm-lang.c (scm_unpac): Ditto.
2642
cc3b68a5
AC
26432002-09-21 Andrew Cagney <cagney@redhat.com>
2644
2645 * complaints.c (symfile_explanations): Remove new-line from
2646 ``isolated_message''.
2647 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2648 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2649
5835abe7
NC
26502002-09-20 Nick Clifton <nickc@redhat.com>
2651
2652 * NEWS: Announce that V850EA ISA is no longer supported.
2653 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2654
a15ef5f5
DC
26552002-09-20 David Carlton <carlton@math.stanford.edu>
2656
06ba1b39
DC
2657 * Makefile.in (c-lang.o): Correct dependencies.
2658 (utils.o): Gather dependencies.
2659 (charset.o): Move.
a15ef5f5
DC
2660 * c-lang.c: #include "gdb_string.h"
2661
87885426
FN
26622002-09-20 Fernando Nasser <fnasser@redhat.com>
2663
2664 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2665 * cli/cli-cmds.c (list_command): New function. Implements the new
2666 cli edit command.
2667 (_init_cli_cmds): Add new command definition.
2668 * gdb.1: Document edit command.
2669 * doc/gdb.texinfo: Document edit command.
2670
26712002-09-20 Fernando Nasser <fnasser@redhat.com>
0378c332
FN
2672
2673 * source.c: Make global variables current_source_symtab and
2674 current_source_line static.
2675 (list_command): Moved to cli/cli-cmds.c.
2676 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2677 (get_first_line_listed): New accessor function.
2678 (get_lines_to_list): New accessor function.
2679 (get_current_source_symtab_and_line): New function. Retrieves the
2680 position in the source code that we consider current.
2681 (get_current_or_default_source_symtab_and_line): New function.
2682 Like the above but attempts to determine a default position if one
2683 is not currently defined.
2684 (set_current_source_symtab_and_line): New function. Sets the source
2685 code position considered current and returns the previously set one.
2686 (clear_current_source_symtab_and_line): Reset stored information about
2687 a current source line.
2688 (_initialize_source): Remove registration for the "list" command and
2689 its alias.
2690 * source.h: Add declarations for the new functions above.
2691 * symtab.h: Remove declarations for the global variables mentioned
2692 above.
2693 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2694 obtain current source line.
2695 * linespec.c (decode_line_1): Ditto.
2696 * macroscope.c (default_macro_scope): Ditto.
2697 * scm-lang.c (scm_unpac): Ditto.
2698 * stack.c (print_frame_info_base): Ditto.
2699 * symfile.c (clear_symtab_users): Ditto.
2700 * symtab.c (decode_line_spec): Ditto.
2701 * cli/cli-cmds.c (list_command): Moved here from source.c.
2702 (ambiguous_line_spec): Moved here from source.c.
2703 (_init_cli_cmds): Add definition for "list" and its alias.
2704 * Makefile.in: Update dependencies.
2705
ddd216ea
CV
27062002-09-20 Corinna Vinschen <vinschen@redhat.com>
2707
2708 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2709 with what gcc thinks is correct.
2710
6d305052
CV
27112002-09-20 Corinna Vinschen <vinschen@redhat.com>
2712
2713 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2714 multiple register push instruction.
2715
234b45d4
KB
27162002-09-19 Jim Blandy <jimb@redhat.com>
2717
2718 Add support for distinct host and target character sets.
2719 * charset.c, charset.h: New files.
2720 * c-exp.y: #include "charset.h".
2721 (yylex): Convert character and string literals to the target
2722 character set, before returning them as the semantic value of the
2723 token.
2724 * c-lang.c: #include "charset.h".
2725 (c_emit_char): Use charset-specific methods to recognize
2726 characters with backslash escape forms, to decide which characters
2727 to print literally and which to print using numeric escape
2728 sequences, and to convert target characters to host characters
2729 before printing.
2730 * utils.c: #include "charset.h".
2731 (no_control_char_error): New function.
2732 (parse_escape): Use charset-specific methods to recognize
2733 backslash escapes, parse `control character' notation, and convert
2734 characters from the host character set to the target character set.
2735 * configure.in: Set the default host character set.
2736 Check where to find iconv, and what its argument types might be.
2737 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2738 * Makefile.in (SFILES): List charset.c.
2739 (COMMON_OBS): List charset.o.
2740 (charset.o): New rule.
2741 (charset_h): New header dependency variable.
2742 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2743 (LIBICONV): New variable, set by configure.
2744 (CLIBS): Include $(LIBICONV) here.
2745 * aclocal.m4, config.in, configure: Regenerated.
2746
525d6a61
JB
27472002-09-19 Joel Brobecker <brobecker@gnat.com>
2748
2749 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2750 bison 1.35 warning.
2751
3ed93867
RE
27522002-09-19 Richard Earnshaw <rearnsha@arm.com>
2753
2754 * gdb_mbuild.sh: New file.
2755
437666f8
AC
27562002-09-19 Andrew Cagney <ac131313@redhat.com>
2757
2758 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2759
389e51db
AC
27602002-09-18 Andrew Cagney <ac131313@redhat.com>
2761
2762 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2763 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2764 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2765 valops.c, value.h: Revert previous change.
2766
3b4efeaa
MS
27672002-09-18 Michael Snyder <msnyder@redhat.com>
2768
2769 Preliminary support for Objective-C:
2770 * defs.h (language_objc): New enum value.
2771 (puts_filtered_tabular): Declaration only, exported from utils.c.
2772 (skip_quoted): Delete, declared in completer.h.
2773 * c-exp.y: Include completer.h.
2774 * p-exp.y: Ditto.
2775 * jv-exp.y: Ditto.
2776 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2777 New operator enum values.
2778 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2779 * language.c (binop_result_type): Handle language_objc case.
2780 (integral_type, character_type, string_type, boolean_type,
2781 structured_type, binop_type_check): Ditto.
2782 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2783 (struct objc_specific): Add to general_symbol_info.
2784 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2785 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2786 * parser-defs.h (struct objc_class_str): New struct type.
2787 (start_msglist, end_msglist, add_msglist): Declaration only,
2788 exported from objc-lang.c.
2789 * value.h (value_of_local, value_nsstring,
2790 call_function_by_hand_expecting_type): Exported from valops.c.
2791 * valops.c (find_function_addr): Export.
2792 (call_function_by_hand_expecting_type): New function.
2793 (value_of_local): New function.
2794 * symfile.c (init_filename_language_table): Add ".m" extension
2795 for Objective-C.
2796 * utils.c (puts_filtered_tabular): New function.
2797 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2798 (set/show demangle): Extend help-string to refer to ObjC.
2799 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2800 * stabsread.c (symbol_reference_defined): Objective-C symbols
2801 may contain colons: make allowances when scanning stabs strings
2802 for colons.
2803 (objc_find_colon): New function.
2804 * printcmd.c (address_info): If language == objc then print
2805 "self" instead of "this".
2806 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2807 OP_NSSTRING, and OP_SELF.
2808 (prefixify_subexp): Ditto.
2809 * source.c (print_source_lines): Mention objc in comment.
2810 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2811 method names.
2812
b9caf505
AC
28132002-09-18 Andrew Cagney <ac131313@redhat.com>
2814
2815 * complaints.h: Update copyright.
2816 (struct complaints): Declare.
2817 (struct complaint): Make `message' constant.
2818 (internal_complaint): Declare.
2819 (complaint): Declare.
2820 (complaint_root): Delete declaration.
2821 (symfile_complaints): Delete declaration.
2822 (struct complaints): Add opaque declaration.
2823 (clear_complaints): Add a complaints parameter.
2824 * complaints.c: Update copyright.
2825 (enum complaint_series): Define.
2826 (complaint_root): Delete.
2827 (struct complaints): Define.
2828 (complaint_sentinel, symfile_complaint_book): New variables.
2829 (symfile_explanations, symfile_complaints): New variables.
2830 New variables.
2831 (get_complaints): New function.
2832 (vcomplaint): New function.
2833 (complaint): New function.
2834 (internal_complaint): New function.
2835 (complain): Call vcomplain with symfile_complaint.
2836 (clear_complaints): Rewrite.
2837 (_initialize_complaints): Use add_setshow_command.
2838 * Makefile.in (complaints.o): Update dependencies.
2839 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2840 to call to clear_complaints.
2841 (new_symfile_objfile, reread_symbols): Ditto.
2842 (oldsyms_complaint): Delete.
2843 (empty_symtab_complaint, unknown_option_complaint): Delete.
2844 (free_named_symtabs): Use complaint instead of complain.
2845
d2e6263c
MS
28462002-09-18 Michael Snyder <msnyder@redhat.com>
2847
5fb2031a
AC
2848 Contributed by Apple Computer, Inc. Merged with current sources
2849 by Adam Fedor <fedor@doc.com> [cagney].
2850
d2e6263c
MS
2851 * objc-lang.c: First clean-up round: comments, indentation.
2852 * objc-lang.h: Ditto.
2853 * objc-lang.y: Ditto.
2854
dec43320
AC
28552002-09-18 Andrew Cagney <ac131313@redhat.com>
2856
2857 * maint.c (maintenance_internal_error): Print the parameter as the
2858 error message.
2859 (maintenance_internal_warning): New function.
2860 (_initialize_maint_cmds): Add command `maint internal-warning'.
2861
2862 * defs.h (internal_warning, internal_vwarning): Declare.
2863 * utils.c (struct internal_problem): Define.
2864 (internal_vproblem): New function.
2865 (internal_warning): New function.
2866 (internal_vwarning): New function.
2867 (internal_warning_problem, internal_error_problem): New variables.
2868 (internal_verror): Just call internal_vproblem.
2869
b81654f1
MS
28702002-09-18 Michael Snyder <msnyder@redhat.com>
2871
2872 * objc-lang.c: New file, support for Objective-C.
2873 Preliminary check-in, not yet integrated into gdb.
2874 * objc-lang.h: New file.
2875 * objc-exp.y: New file.
2876
0542c381
AC
28772002-09-18 Andrew Cagney <ac131313@redhat.com>
2878
7bda5e4a
AC
2879 * infrun.c (signal_stop_update): Convert definition to ISO C.
2880 (signal_print_update): Ditto.
2881 (signal_pass_update): Ditto.
2882 * inflow.c (terminal_save_ours): Ditto.
2883
5247b418
AC
2884 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2885 comments.
2886
fc60962c
AC
2887 * config/djgpp/fnchange.lst: Handle name clashes between
2888 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2889 bfd/coff-tic80.c.
2890
0542c381
AC
2891 * i386-linux-tdep.h: Fix tipo.
2892
5b924b9b
AF
28932002-09-18 Adam Fedor <fedor@gnu.org>
2894
2895 * MAINTAINERS: Add myself to the Write After Approval list.
2896
5afc051b
JB
28972002-09-18 Jim Blandy <jimb@redhat.com>
2898
2899 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2900 texthigh and textlow to reader-specific structs caused
2901 objfile_relocate to miss them. This is fixable, but the work that
2902 the change was supposed to prepare GDB for never got done anyway.
2903
eb944380
DC
29042002-09-18 David Carlton <carlton@math.stanford.edu>
2905
2906 * MAINTAINERS: Alphabetize Write After Approval list.
2907
948e66d9
DJ
29082002-09-18 Daniel Jacobowitz <drow@mvista.com>
2909
2910 Fix PR gdb/709
2911 * values.c (value_static_field): Call read_var_value.
2912
dc604539
AC
29132002-09-18 Andrew Cagney <ac131313@redhat.com>
2914
2915 * valops.c (hand_function_call): Align the initial stack pointer
2916 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2917 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2918 return value.
2919 * mips-tdep.c (mips_frame_align): New function.
2920 (mips_gdbarch_init): Set frame_align.
2921 * gdbarch.sh (FRAME_ALIGN): New method.
2922 * gdbarch.h, gdbarch.c: Re-generate.
2923
cb7e422f
ML
29242002-09-18 Michal Ludvig <mludvig@suse.cz>
2925
2926 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2927 registers.
2928
a094c6fb
AC
29292002-09-17 Andrew Cagney <ac131313@redhat.com>
2930
2931 * NEWS: Mention that MIPS $fp behavior changed.
2932 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2933 reference to FP_REGNUM.
2934 (mipsnbsd_cannot_store_register): Ditto.
2935 * mips-linux-nat.c: Update copyright.
2936 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2937 (mips_linux_cannot_store_register): Ditto.
2938 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2939 * config/mips/tm-mips.h: Update copyright.
2940 (FP_REGNUM): Delete macro.
2941 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2942 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2943 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2944 (mips_r3041_reg_names, mips_r3051_reg_names)
2945 (mips_r3081_reg_names): Replace "fp" with "".
2946 Fix PR gdb/480.
2947
45cf40d1
TR
29482002-09-17 Theodore A. Roth <troth@verinet.com>
2949
2950 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2951 generic_read_register_dummy() (PR gdb/703).
2952 (avr_push_return_address): #if 0 out unused vars.
2953 (avr_gdbarch_init): Enable use of avr_push_return_address().
2954
c7e701b5
MS
29552002-09-17 Michael Snyder <msnyder@redhat.com>
2956
d76ba2a5 2957 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
2958 RTE will take care of it.
2959
20bcf01c
AC
29602002-09-17 Andrew Cagney <ac131313@redhat.com>
2961
2962 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
2963 invalid, return SP_REGNUM.
2964
009a9971 29652002-09-17 Michael Snyder <msnyder@redhat.com>
21f87145
MS
2966
2967 * mips-tdep.c (mips_pop_frame): Read saved values of floating
2968 point registers without sign extension.
2969
135c175f
AC
29702002-09-17 Andrew Cagney <cagney@redhat.com>
2971
2972 * blockframe.c (deprecated_read_register_dummy): Rename
2973 generic_read_register_dummy.
2974 * frame.c (frame_unwind_signed_register): New function.
2975 (frame_unwind_unsigned_register): New function.
2976 * frame.h (frame_unwind_signed_register): Declare.
2977 (frame_unwind_unsigned_register): Declare.
2978 (deprecated_read_register_dummy): Rename
2979 generic_read_register_dummy.
2980
2981 * h8300-tdep.c (h8300_frame_chain): Update.
2982 (h8300_frame_saved_pc): Update.
2983 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
2984 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2985 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
2986 (s390_frame_chain): Update.
2987 * v850-tdep.c (v850_find_callers_reg): Update.
2988 (v850_frame_saved_pc): Update.
2989 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
2990 (m32r_find_callers_reg): Update.
2991 (m32r_frame_saved_pc): Update.
2992 * sh-tdep.c (sh_find_callers_reg): Update.
2993 (sh64_get_saved_pr): Update.
2994 (sh_init_extra_frame_info): Update.
2995 (sh_init_extra_frame_info): Update.
2996 (sh64_init_extra_frame_info): Update.
2997 (sh64_init_extra_frame_info): Update.
2998 * mcore-tdep.c (mcore_find_callers_reg): Update.
2999 (mcore_frame_saved_pc): Update.
3000 (mcore_init_extra_frame_info): Update.
3001 * i386-tdep.c (i386_frame_saved_pc): Update.
3002 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3003 (ia64_init_extra_frame_info): Update.
3004 (ia64_init_extra_frame_info): Update.
3005 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3006 * cris-tdep.c (cris_init_extra_frame_info): Update.
3007 * avr-tdep.c (avr_frame_chain): Update.
3008 (avr_init_extra_frame_info): Update.
3009 (avr_frame_saved_pc): Update.
3010 * arm-tdep.c (arm_find_callers_reg): Update.
3011 (arm_init_extra_frame_info): Update.
3012 (arm_frame_saved_pc): Update.
3013
a741e514
TT
30142002-09-17 Tom Tromey <tromey@redhat.com>
3015
3016 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3017 is "'".
3018
d1a8e808
CV
30192002-09-17 Corinna Vinschen <vinschen@redhat.com>
3020
3021 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3022 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3023 NEXT_PROLOGUE_INSN.
3024 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3025 NEXT_PROLOGUE_INSN.
3026
d9025a18
JB
30272002-09-16 Joel Brobecker <brobecker@gnat.com>
3028
3029 * osfsolib.c: Remove file, replaced by solib-osf.c.
3030 * Makefile.in: Remove compilation rules for osfsolib.c.
3031
1b2ef1b6
DC
30322002-09-16 David Carlton <carlton@math.stanford.edu>
3033
3034 * cp-valprint.c (cp_print_class_method): Correct args to
3035 check_stub_method_group.
3036
928e48af
CV
30372002-09-16 Corinna Vinschen <vinschen@redhat.com>
3038
3039 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3040 `set architecture'. Unify naming convention of functions.
3041 (h8300_skip_prologue): Improve prologue analysis.
3042 (h8300_push_arguments): Rewritten to more closely match GCC's
3043 bizarre argument-passing behavior, along with the comment describing
3044 said behavior.
3045 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3046 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3047 sim, remote-e7000.c, remote-hms.c and remote.c
3048
5e3397bb
MK
30492002-09-15 Mark Kettenis <kettenis@gnu.org>
3050
3051 * i386-tdep.c (gdb_print_insn_i386): Removed.
3052 (i386_print_insn): New function.
3053 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3054 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3055 tm_print_insn_info.
3056
f710f4fc
MK
30572002-09-14 Mark Kettenis <kettenis@gnu.org>
3058
3059 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3060 zero.
3061
db54fef4
CV
30622002-09-14 Corinna Vinschen <vinschen@redhat.com>
3063
3064 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3065 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3066 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3067
2becadee
CF
30682002-09-13 Christopher Faylor <cgf@redhat.com>
3069
3070 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3071
de17c821
DJ
30722002-09-13 Daniel Jacobowitz <drow@mvista.com>
3073
3074 * gdbtypes.c (check_stub_method): Make static.
3075 (check_stub_method_group): New function.
3076 * gdbtypes.h: Update prototypes.
3077 * cp-support.c: New file.
3078 * cp-support.h: New file.
3079
3080 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3081 (update_method_name_from_physname): New function.
3082 (read_member_functions): Correct method names for operators
3083 and v3 constructors/destructors. Separate v2 constructors and
3084 destructors.
3085 * Makefile.in (stabsread.o): Update dependencies.
3086 (SFILES): Add cp-support.c.
3087 (COMMON_OBS): Add cp-support.o.
3088 (cp_support_h, cp-support.o): Add.
3089
3090 * cp-valprint.c (cp_print_class_method): Call
3091 check_stub_method_group instead of check_stub_method. Remove
3092 extraneous QUITs.
3093 * p-valprint.c (pascal_object_print_class_method): Likewise.
3094 * valops.c (search_struct_method): Likewise.
3095 (find_method_list, value_struct_elt_for_reference): Likewise.
3096
e76cff22
AC
30972002-09-13 Andrew Cagney <cagney@redhat.com>
3098
3099 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3100 * gdbarch.h, gdbarch.c: Regenerate.
3101
905abb3f
AC
31022002-09-13 Andrew Cagney <ac131313@redhat.com>
3103
3104 * frame.c (find_saved_register): Delete function.
3105 * frame.h (find_saved_register): Delete declaration.
3106 Fix PR gdb/631.
3107
64159455
AC
3108Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3109
3110 * mips-tdep.c (read_next_frame_reg): Re-hack using
3111 frame_register_unwind.
3112
795e1e11
AC
3113Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3114
3115 * mips-tdep.c (mips_get_saved_register): Re-hack using
3116 frame_register_unwind.
3117
5720643c
JB
31182002-09-12 Joel Brobecker <brobecker@gnat.com>
3119
3120 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3121 vector. Will be useful for Interix.
3122 * gdbarch.h, gdbarch.c: Regenerate.
3123
3124 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3125 name of the malloc function by NAME_OF_MALLOC.
3126
3bada2a2
JB
31272002-09-12 Joel Brobecker <brobecker@gnat.com>
3128
3129 * value.h (find_function_in_inferior): Add const keyword to
3130 one of the parameters. Allows us to invoke this function with
3131 a const char *.
3132 * valops.c (find_function_in_inferior): Likewise.
3133
3db26b01
JB
31342002-09-12 Joel Brobecker <brobecker@gnat.com>
3135
3136 * exec.c (xfer_memory): Fix compilation warning with old versions
3137 of GCC.
3138 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3139
17c5ed2c
DC
31402002-09-12 David Carlton <carlton@math.stanford.edu>
3141
3142 * symtab.h: Run through gdb_indent.h.
3143 Add 2002 to Copyright year list.
3144
ecd1107e
AM
31452002-09-12 Alan Modra <amodra@bigpond.net.au>
3146
3147 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3148 mach constants.
3149 * MAINTAINERS: Add myself to write after approval list.
3150
e64f66d1
JB
31512002-09-11 J. Brobecker <brobecker@gnat.com>
3152
3153 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3154
f9395794
JB
31552002-09-11 J. Brobecker <brobecker@gnat.com>
3156
3157 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3158 Interix.
3159
1a303dec
MS
31602002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3161
3162 * procfs.c (do_detach): Clear current signal, not just fault.
3163 Corrects problem with breakpoint trap signal leaking to detached
3164 process on Tru64.
3165
c0219d42
MS
31662002-09-10 Michael Snyder <msnyder@redhat.com>
3167
3168 * buildsym.c (finish_block): Protect against null pointer.
3169
9d84ac84
AC
31702002-09-10 Andrew Cagney <cagney@redhat.com>
3171
3172 * infcmd.c (default_print_registers_info): Send all output to
3173 ``file'' instead of ``gdb_stdout''.
3174
77d8f2b4
MS
31752002-09-10 Michael Snyder <msnyder@redhat.com>
3176
3177 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3178 LONGEST, and use signed register read (addresses are sign-
3179 extended for mips).
3180
99656a61
SC
31812002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3182
3183 * event-loop.c (gdb_do_one_event): Make public.
3184 * event-loop.h (gdb_do_one_event): Declare.
3185
da12f4d8
JL
31862002-09-10 Jeff Law <law@redhat.com>
3187
3188 * infttrace.c (child_resume): Simplify and rework to avoid
3189 TT_PROC_CONTINUE.
3190
d0aee0c4
FF
31912002-09-09 Fred Fish <fnf@intrinsity.com>
3192
3193 * printcmd.c (print_scalar_formatted): "len" is the number of
3194 target bytes, NOT the number of target bits.
3195
7cb3ec5e
EZ
31962002-09-09 Elena Zannoni <ezannoni@redhat.com>
3197
3198 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3199 * top.c (init_main): Set rl_terminal_name.
3200
4dc81987
AS
32012002-09-08 Aidan Skinner <aidan@velvet.net>
3202
3203 * ada-lang.c (ada_array_bound, ada_type_match,
3204 _initialize_ada_language): Fix K&R definitions.
3205 * ada-tasks.c (get_current_task): Fix K&R definitions.
3206 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3207
842330b4
CF
32082002-09-07 Christopher Faylor <cgf@redhat.com>
3209
3210 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3211 Add XP.
3212
43156d82
MK
32132002-09-06 Mark Kettenis <kettenis@gnu.org>
3214
66da5fd8
MK
3215 * i386-tdep.c (i386_register_virtual_type,
3216 i386_register_convertible, i386_register_convert_to_virtual,
3217 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3218 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3219 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3220 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3221 Don't set push_arguments twice.
3222
4b218c18
MK
3223 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3224 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3225 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3226 sigtramp_end to NULL.
3227 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3228 defines.
3229 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3230
4cc314d5
MK
3231 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3232 whitespace.
3233
43156d82
MK
3234 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3235 * gdbarch.h, gdbarch.c: Re-generate.
3236 * blockframe.c (find_pc_sect_partial_function): Convert to use
3237 SIGTRAMP_START_P predicate.
3238
6672060b
MS
32392002-09-05 Michael Snyder <msnyder@redhat.com>
3240
a90c3637
MS
3241 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3242 generic_dummy_frame method and old method. Also distinguish
3243 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3244 (arm_extract_return_value): Use new regcache method.
a90c3637 3245
6672060b
MS
3246 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3247 adjustment that doesn't conform to the ABI.
3248 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3249 saved regcache, not from current regcache.
3250
299ffc64
AC
32512002-09-05 Andrew Cagney <ac131313@redhat.com>
3252
3253 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3254 * README: Update.
3255
a3a2ee65
JT
32562002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3257
3258 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3259 if arm_apcs_32 is false.
3260
2bc7eea9
AC
32612002-09-04 Andrew Cagney <ac131313@redhat.com>
3262
3263 GDB 5.3 branch created.
3264
8a55a7c5
TR
32652002-09-03 Theodore A. Roth <troth@verinet.com>
3266
3267 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3268 generic_unwind_get_saved_register.
3269
e26fb1d7
DC
32702002-09-03 David Carlton <carlton@math.stanford.edu>
3271
3272 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3273 argument (PR gdb/653). Update call to smash_to_method_type.
3274 (read_structure_scope): Update call to dwarf2_add_member_fn.
3275
30d52491
ML
32762002-09-03 Michal Ludvig <mludvig@suse.cz>
3277
3278 * x86-64-linux-tdep.c: Include gdb_string.h
3279 * x86-64-linux-nat.c: Ditto.
3280
06891d83
JT
32812002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3282
3283 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3284 when YYDEBUG is set to 1.
3285 * c-exp.y: Likewise.
3286 * f-exp.y: Likewise.
3287 * jv-exp.y: Likewise.
3288 * m2-exp.y: Likewise.
3289 * p-exp.y: Likewise.
3290
7d400e77
JT
32912002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3292
3293 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3294 dependency list.
3295 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3296 solib_svr4_fetch_link_map_offsets to
3297 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3298 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3299 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3300 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3301 solib-svr4.o, and solib-legacy.o.
3302 * config/i386/tm-nbsd.h: Include solib.h.
3303
704a27c4
JT
33042002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3305
3306 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3307 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3308 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3309 comment noting that this needs its own target configuration.
3310 * config/i386/nbsd.mt: New file.
3311 * config/i386/nbsdaout.mt: Remove.
3312 * config/i386/nbsdelf.mt: Ditto.
3313 * config/i386/tm-nbsdaout.h: Ditto.
3314
d66198e1
JT
33152002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3316
3317 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3318 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3319 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3320 tdep->sigtramp_end.
3321 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3322 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3323 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3324
3cac699e
JT
33252002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3326
3327 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3328 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3329 * i386-tdep.h (i386bsd_init_abi): New prototype.
3330 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3331 function declaration.
3332 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3333 for NetBSD-a.out or NetBSD-ELF.
3334 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3335 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3336 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3337 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3338 and nbsd-tdep.h.
3339 (i386nbsd_pc_in_sigtramp): New function.
3340 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3341 i386nbsd_pc_in_sigtramp.
3342 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3343 and i386nbsdelf_init_abi OS ABI handlers.
3344 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3345 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3346
7010ca0a
MK
33472002-09-02 Mark Kettenis <kettenis@gnu.org>
3348
3349 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3350 registers if the target really has them.
3351
6dd93b72
JT
33522002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3353
3354 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3355 than nbsd-tdep.h.
3356
2ca8ae21
JT
33572002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3358
3359 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3360 list.
3361 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3362 (alphanbsd_skip_sigtramp_frame): New functions.
3363 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3364 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3365 to alphanbsd_sigcontext_addr.
3366
3d9b49b0
JT
33672002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3368
3369 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3370 list.
3371 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3372 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3373 nbsd_pc_in_sigtramp.
3374 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3375 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3376 * nbsd-tdep.c: Include gdb_string.h.
3377 (nbsd_pc_in_sigtramp): New function.
3378 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3379 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3380 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3381 ppcnbsd_pc_in_sigtramp.
3382 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3383 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3384 shnbsd_pc_in_sigtramp.
3385 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3386 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3387 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3388
c860120c
PM
33892002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3390
3391 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3392 watchpoints to NULL.
3393 (insert_breakpoints): set val field of watchpoints if NULL.
3394
3395
c7612d53
JB
33962002-08-29 Jim Blandy <jimb@redhat.com>
3397
3398 * symtab.c (lookup_symbol_aux): In the cases where we find a
3399 minimal symbol of an appropriate name and use its address to
3400 select a symtab to read and search, use `name' (as passed to us)
3401 as the demangled name when searching the symtab's global and
3402 static blocks, not the minsym's name.
3403
66609862
KS
34042002-08-29 Keith Seitz <keiths@redhat.com>
3405
3406 * stack.c (print_frame_info_base): Always set current_source_symtab
3407 and current_source_line.
3408
151fefe2
JB
34092002-08-29 Donn Terry <donnte@microsoft.com>
3410
3411 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3412
bfb3754e
KS
34132002-08-28 Keith Seitz <keiths@redhat.com>
3414
3415 * stack.c (select_frame): Add FIXME concerning selected-frame
3416 events.
3417 (select_frame_command): Send selected-frame-level-changed
3418 event notification, but only if the level actually changed.
3419 (up_silently_base): Add selected-frame-level-changed event
3420 notification.
3421 (down_silently_base): Likewise.
3422
e822a2a0
AC
34232002-08-28 Andrew Cagney <ac131313@redhat.com>
3424
3425 * Makefile.in: Update dependencies for all gdb/*.c files.
3426
309367d4
TT
34272002-08-27 Tom Tromey <tromey@redhat.com>
3428
3429 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3430 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3431 Update dependencies.
3432 * i387-tdep.c: Include gdb_string.h.
3433 * osabi.c: Likewise.
3434 * i386-linux-nat.c: Likewise.
3435 * lin-lwp.c: Likewise.
3436 * ax-gdb.c: Likewise.
3437 * signals/signals.c: Likewise.
3438 * jv-valprint.c: Likewise.
3439 * p-lang.c: Likewise.
3440 * c-valprint.c: Likewise.
3441 * cp-abi.c: Likewise.
3442
e1507482
EZ
34432002-08-27 Elena Zannoni <ezannoni@redhat.com>
3444
3445 * cli/cli-script.h (copy_command_lines): Export.
3446 * breakpoint.c: Include cli/cli-script.h.
3447 * Makefile.in (breakpoint.o): Update dependencies.
3448
c6510018
MS
34492002-08-26 Michael Snyder <msnyder@redhat.com>
3450
3451 * breakpoint.c (insert_breakpoints): Protect all references
3452 to 'process_warning'. Shorten long lines.
3453
c2b8ed2c
MS
34542002-08-26 Joel Brobecker <brobecker@gnat.com>
3455
3456 * cli/cli-script.c (copy_command_lines): New function.
3457 * defs.h (copy_command_lines): Export.
3458 * testsuite/gdb.base/commands.exp: New tests for commands
3459 attached to a temporary breakpoint, and for commands that
3460 delete the breakpoint they are attached to.
3461
34622002-08-26 Michael Snyder <msnyder@redhat.com>
3463
3464 * breakpoint.c (bpstat_stop_status): Instead of copying the
3465 pointer to the breakpoint commands struct, make a new copy
3466 of the struct and point to that.
3467 (bpstat_clear): Free the commands struct.
3468 (bpstat_clear_actions): Free the commands struct.
3469 (bpstat_do_actions): Free the command actions. Also execute
3470 the local cleanups, instead of deleting them.
3471 (delete_breakpoint): Leave the commands field of the bpstat
3472 chain alone -- it will be freed later.
3473
64b84175
KB
34742002-08-26 Kevin Buettner <kevinb@redhat.com>
3475
3476 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3477 deleted in 2002-08-20 commit. This function is still used by
3478 ppc-linux-nat.c.
3479
55970da6
KS
34802002-08-26 Keith Seitz <keiths@redhat.com>
3481
3482 * gdb-events.sh: Add selected-frame-level-changed event.
3483 * gdb-events.c: Regenerated.
3484 * gdb-events.h: Regenerated.
3485
a790ad35
SC
34862002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3487
3488 Fix PR gdb/393:
3489 * inflow.c (terminal_save_ours): New function to save terminal
3490 settings.
3491 * inferior.h (terminal_save_ours): Declare.
3492 * target.c (debug_to_terminal_save_ours): New function.
3493 (cleanup_target): Defaults to_terminal_save_ours.
3494 (update_current_target): Inherit to_terminal_save_ours.
3495 (setup_target_debug): Set to_terminal_save_ours.
3496 * target.h (target_terminal_save_ours): New to save terminal settings.
3497 (target_ops): New member to_terminal_save_ours.
3498 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3499 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3500 * inftarg.c (init_child_ops): Likewise.
3501 * m3-nat.c (init_m3_ops): Likewise.
3502 * procfs.c (init_procfs_ops): Likewise.
3503 * wince.c (init_child_ops): Likewise.
3504 * win32-nat.c (init_child_ops): Likewise.
3505 * sol-thread.c (init_sol_thread_ops): Likewise.
3506
c00dcbe9
MK
35072002-08-26 Mark Kettenis <kettenis@gnu.org>
3508
3d7f4f49
MK
3509 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3510 use regcache_* functions.
3511 (i386_gdbarch_init): Set store_return_value instead of
3512 deprecated_store_return_value.
3513
c00dcbe9
MK
3514 * regcache.c (regcache_raw_write_signed,
3515 regcache_raw_write_unsigned): New functions.
3516 * regcache.h (regcache_raw_write_signed,
3517 regcache_raw_write_unsigned): New prototypes.
3518
0e0d15ca
AC
35192002-08-25 Andrew Cagney <ac131313@redhat.com>
3520
3521 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3522 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3523 source file dependencies. Cleanup corresponding generator rules.
3524
d3b22ed5
AC
35252002-08-25 Andrew Cagney <ac131313@redhat.com>
3526
3527 * regcache.h (register_offset_hack): Declare.
3528 (regcache_cooked_read_using_offset_hack): Declare.
3529 (regcache_cooked_write_using_offset_hack): Declare.
3530
3531 * regcache.c (register_offset_hack): New function.
3532 (regcache_cooked_read_using_offset_hack): New function.
3533 (regcache_cooked_write_using_offset_hack): New function.
3534 (regcache_dump): Check that the registers, according to their
3535 offset, are packed hard against each other.
3536 (cooked_xfer_using_offset_hack): New function.
3537
bb425013
AC
35382002-08-25 Andrew Cagney <ac131313@redhat.com>
3539
3540 * regcache.c (struct regcache_descr): Add field register_type.
3541 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3542 in as a parameter
3543 (init_regcache_descr): Initialize register_type. Pass the descr
3544 to init_legacy_regcache_descr. Use register_type instead of
3545 REGISTER_VIRTUAL_TYPE.
3546 (register_type): New function.
3547 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3548 * regcache.h (register_type): Declare.
3549
d0403e00
AC
35502002-08-25 Andrew Cagney <ac131313@redhat.com>
3551
3552 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3553 instead of deprecated_store_return_value. Fix fallout from
3554 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3555
0ed04cce
AC
35562002-08-25 Andrew Cagney <ac131313@redhat.com>
3557
3558 * regcache.c (max_register_size): New function.
3559 (init_legacy_regcache_descr): Ensure that max_register_size is
3560 large enough for REGISTER_VIRTUAL_SIZE.
3561 * regcache.h (max_register_size): Declare.
3562
46d79c04
AC
35632002-08-24 Andrew Cagney <ac131313@redhat.com>
3564
3565 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3566 store_return_value.
3567 (e500_extract_return_value): Change type of valbuf pointer to
3568 void.
3569
853c7bd0
MK
35702002-08-24 Mark Kettenis <kettenis@gnu.org>
3571
cd87e769
MK
3572 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3573 workaround.
3574
853c7bd0
MK
3575 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3576 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3577 long long) to prevent compiler warning on 64-bit systems.
3578
ebba8386
AC
35792002-08-23 Andrew Cagney <cagney@redhat.com>
3580
3581 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3582 (DEPRECATED_STORE_RETURN_VALUE): New method.
3583 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3584 * gdbarch.h, gdbarch.c: Re-generate.
3585
3586 * values.c (set_return_value): Pass current_regcache to
3587 STORE_RETURN_VALUE.
3588 * arch-utils.h (legacy_store_return_value): Declare.
3589 * arch-utils.c (legacy_store_return_value): New function.
3590 (legacy_extract_return_value): Update parameters.
3591
3592 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3593 STORE_RETURN_VALUE.
3594 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3595 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3596 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3597 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3598 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3599 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3600 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3601 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3602 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3603 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3604
3605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3606 * i386-tdep.c (i386_extract_return_value): Update.
3607 * arch-utils.c (legacy_extract_return_value): Update.
3608 * frv-tdep.c (frv_gdbarch_init): Update.
3609 * cris-tdep.c (cris_gdbarch_init): Update.
3610 * d10v-tdep.c (d10v_gdbarch_init): Update.
3611 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3612 * m68k-tdep.c (m68k_gdbarch_init): Update.
3613 * mcore-tdep.c (mcore_gdbarch_init): Update.
3614 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3615 * s390-tdep.c (s390_gdbarch_init): Update.
3616 * sparc-tdep.c (sparc_gdbarch_init): Update.
3617 * sh-tdep.c (sh_gdbarch_init): Update.
3618 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3619 * v850-tdep.c (v850_gdbarch_init): Update.
3620 * avr-tdep.c (avr_gdbarch_init): Update.
3621 * ia64-tdep.c (ia64_gdbarch_init): Update.
3622 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3623 * vax-tdep.c (vax_gdbarch_init): Update.
3624 * alpha-tdep.c (alpha_gdbarch_init): Update.
3625 * arm-tdep.c (arm_gdbarch_init): Update.
3626 * mips-tdep.c (mips_gdbarch_init): Update.
3627 * i386-tdep.c (i386_gdbarch_init): Update.
3628
5bd8c6d0
AC
36292002-08-23 Andrew Cagney <ac131313@redhat.com>
3630
3631 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3632 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3633
e73e1724
MK
36342002-08-24 Mark Kettenis <kettenis@gnu.org>
3635
3636 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3637 problems.
3638
3e6564e1
JB
36392002-08-23 Joel Brobecker <brobecker@gnat.com>
3640
3641 * infrun.c (handle_inferior_event): Move a comment outside of a
3642 function call, in order to avoid indent reformatting this part
3643 of the code in an unreadable way.
3644
81d0cc19
GS
36452002-08-23 Grace Sainsbury <graces@redhat.com>
3646
3647 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3648 when breakpoints fail. Move general breakpoint error messages to
3649 insert_breakpoints.
3650 * breakpoint.c (insert_breakpoints): Change warnings when
3651 breakpoints are nto inserted to specify the type. Remove call to
3652 memory_error when hardware breakpoints can't be inserted. Remove
3653 multiple calls to warning so all messages are sent to the user at
3654 once.
3655 (delete_breakpoints): Make insert error messsages more explicit.
3656
17574093
DJ
36572002-08-23 Daniel Jacobowitz <drow@mvista.com>
3658
3659 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3660 gdbserver/ChangeLog.
3661
8acc2935
MK
36622002-08-23 Mark Kettenis <kettenis@gnu.org>
3663
dfe01d39
MK
3664 * i386-tdep.c: Include "objfiles.h".
3665 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3666 skip_trampoline_code.
3667 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3668 (CPLUS_MARKER): Define to '.'.
3669
8acc2935
MK
3670 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3671 member.
3672 (linux_corefile_thread_callback): Increase args->num_notes.
3673 (linux_make_note_section): Initialize thread_args.num_notes, and
3674 use it to determine whether notes for any threads were created.
3675
151fefe2 36762002-08-23 Donn Terry <donnte@microsoft.com>
640b227f
JB
3677
3678 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3679 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3680 and PCUNKILL.
3681 (write_with_trace): Conditionalize out the switch branch handling
3682 PCSHOLD if the corresponding macro is not defined. Likewise for
3683 PRSABORT and PRSTOP.
3684 This change will be needed by the Interix port.
3685
e1507482
EZ
36862002-08-22 Elena Zannoni <ezannoni@redhat.com>
3687
3688 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3689 write_register wherever possible instead of manipulating the
3690 register bytes directly.
3691 Assign VALUE_CONTENTS to a variable and use that.
3692 The GPR numbers are now dependent on the architecture.
3693
96ff0de4
EZ
36942002-08-22 Elena Zannoni <ezannoni@redhat.com>
3695
3696 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3697 ev_offset fields.
3698 (skip_prologue): Add support for BookE/e500 instructions.
3699 (e500_extract_return_value): New function.
3700 (frame_get_saved_regs): Add support for saving ev registers and
3701 pseudo gpr's.
3702 (e500_store_return_value): New function.
3703 (rs6000_gdbarch_init): Move up default intializations of
3704 deprecated_extract_return_value and store_return_value. Overwrite
3705 init of store_return_value with e500 specific version.
3706 Set extract_return_value for e500.
3707
fbefca5b
EZ
37082002-08-22 Elena Zannoni <ezannoni@redhat.com>
3709
3710 * blockframe.c (generic_call_dummy_register_unwind): Use
3711 regcache_cooked_read to catch cases in which the variable is
3712 stored in a pseudo register.
3713
4d210288
AC
37142002-08-22 Andrew Cagney <cagney@redhat.com>
3715
3716 * NEWS: Mention that the i960 has been made obsolete.
3717 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3718 i960-tdep.c
3719 (remote-nrom.o): Obsolete target.
3720 (remote-nindy.o, i960-tdep.o): Ditto.
3721 * remote-nrom.c: Make file obsolete.
3722 * remote-nindy.c, remote-vx960.c: Ditto.
3723 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3724 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3725 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3726 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3727 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3728 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3729 i960-*-vxworks* obsolete.
3730 * MAINTAINERS: Note that the i960 is obsolete.
3731
6c0c456d
CV
37322002-08-21 Corinna Vinschen <vinschen@redhat.com
3733
3734 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3735 detach to allow reinitialization.
3736
9f9d12b3
AC
37372002-08-22 Andrew Cagney <ac131313@redhat.com>
3738
3739 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3740 attempt).
3741
ebeb39fe
JB
37422002-08-22 Jim Blandy <jimb@redhat.com>
3743
3744 * coffread.c (coff_symfile_read): Don't try to read the line
3745 number table from disk if the image file doesn't have a symbol
3746 table; we'll never actually look at the info anyway, and Windows
3747 ships DLL's with bogus file offsets for the line number data.
3748
5bf1c677
EZ
37492002-08-21 Elena Zannoni <ezannoni@redhat.com>
3750
3751 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3752 an e500 executable.
3753
71b8ef93
MS
37542002-08-21 Michael Snyder <msnyder@redhat.com>
3755
3756 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3757 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
3758 (DEFAULT_MIPS_TYPE): Delete unused macro.
3759 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3760 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 3761
d174216d
JB
37622002-08-21 Jim Blandy <jimb@redhat.com>
3763
3764 * valops.c (value_cast): Simplify and correct logic for doing a
3765 static cast from a pointer to a base class to a pointer to a
3766 derived class.
3767
0ab7a791
AC
37682002-08-21 Andrew Cagney <ac131313@redhat.com>
3769
3770 * infcmd.c (default_print_registers_info): Replace
3771 do_registers_info.
3772 (registers_info): Use gdbarch_print_registers_info instead of
3773 DO_REGISTERS_INFO.
3774 * inferior.h (default_print_registers_info): Replace
3775 do_registers_info.
3776 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3777 (DO_REGISTERS_INFO): Change to a predicate function.
3778 * gdbarch.h, gdbarch.c: Regenerate.
3779
e23792cc
KS
37802002-08-21 Keith Seitz <keiths@redhat.com>
3781
3782 * gdb-events.sh: Add target-changed event.
3783 * gdb-events.c: Regenerated.
3784 * gdb-events.c: Regenerated.
3785 * valops.c (value_assign): Add target-changed event notification
3786 to inlval_register, lval_memory, and lval_reg_frame_relative.
3787
9fb14e79
JB
37882002-08-21 Joel Brobecker <brobecker@gnat.com>
3789
3790 * NEWS: Add an entry regarding the improvement of the next/step
3791 operation on Alpha Tru64 multi-processor machines.
3792
6d39a69f
AC
37932002-08-21 Andrew Cagney <ac131313@redhat.com>
3794
72acd513
AC
3795 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3796 directores.
342af04b 3797 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
3798 * Makefile.in (install-gdbtk): Move to install section.
3799 (rdi-share/libangsd.a): Move to end of file.
3800
fa5f27c7
AC
38012002-08-19 Andrew Cagney <ac131313@redhat.com>
3802
3803 * frame.c (frame_register_unwind): When a register, set addrp to
3804 the register's byte.
3805
5a89d8aa
MS
38062002-08-20 Michael Snyder <msnyder@redhat.com>
3807
3808 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3809 used locally, so move them from the target machine header to here.
3810 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3811 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3812 Make static.
3813 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3814
822e978b
AC
38152002-08-20 Andrew Cagney <cagney@redhat.com>
3816
3817 * NEWS: Mention that the Apollo line was made obsolete.
3818 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3819 m68*-hp-hpux* obsolete.
3820 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3821 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3822 * buildsym.c (make_blockvector): Make static.
3823 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3824 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3825 (ALLDEPFILES): Remove dstread.c.
3826 (dstread.o): Obsolete make rule.
3827 * dstread.c: Makefile obsolete.
3828 * dst.h: Ditto.
3829 * config/m68k/hp300hpux.mt: Ditto.
3830 * config/m68k/hp300hpux.mh: Ditto.
3831 * config/m68k/hp300bsd.mt: Ditto.
3832 * config/m68k/hp300bsd.mh: Ditto.
3833 * config/m68k/apollo68b.mt: Ditto.
3834 * config/m68k/apollo68v.mh: Ditto.
3835 * config/m68k/apollo68b.mh: Ditto.
3836
e41b17f0
MS
38372002-08-20 Michael Snyder <msnyder@redhat.com>
3838
3839 * mips-tdep.c (mips_in_return_stub): Make static.
3840 (mips_gdbarch_init): Set in_solib_return_trampoline.
3841 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3842
d50355b6
MS
38432002-08-20 Michael Snyder <msnyder@redhat.com>
3844
3845 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3846 * gdbarch.c, gdbarch.h: Regenerate.
3847 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3848 Add.
3849 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3850
757a7cc6
MS
38512002-08-20 Michael Snyder <msnyder@redhat.com>
3852
3853 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3854 (mips_gdbarch_init): Set skip_trampoline_code,
3855 in_solib_call_trampoline.
3856 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3857 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3858
c8001721
EZ
38592002-08-20 Elena Zannoni <ezannoni@redhat.com>
3860
3861 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3862
3863 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3864 vector type for ev registers.
3865 (e500_pseudo_register_read): New function.
3866 (e500_pseudo_register_write): New function.
3867 (e500_dwarf2_reg_to_regnum): New function.
3868 (PPC_UISA_NOFP_SPRS): New macro.
3869 (PPC_EV_REGS): New macro.
3870 (PPC_GPRS_PSEUDO_REGS): New macro.
3871 (registers_e500): New register set for e500.
3872 (variants): Add e500 variant.
3873 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3874 before setting architectural dependent variations. Initialize ev
3875 registers numbers. Add case for e500 architecture. Set the
3876 number of pseudo registers.
3877
64366f1c
EZ
38782002-08-20 Elena Zannoni <ezannoni@redhat.com>
3879
3880 * rs6000-tdep.c: Clean up comments.
3881
7e78f0ca
AC
38822002-08-20 Andrew Cagney <cagney@redhat.com>
3883
3884 * h8300-tdep.c: Re-indent file.
3885
697f7479
JB
38862002-08-20 Jim Blandy <jimb@redhat.com>
3887
3888 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3889 default for this.
697f7479 3890
e86ae29f
KS
38912002-08-20 Keith Seitz <keiths@redhat.com>
3892
3893 * breakpoints.c (watch_command_1): Use internal breakpoint
3894 when setting a watchpoint_scope breakpoint.
3895
216b504f
EZ
38962002-08-20 Elena Zannoni <ezannoni@redhat.com>
3897
3898 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3899 (build_builtin_type_vec64i): Ditto.
3900 (build_builtin_type_vec128): Ditto.
3901 (build_builtin_type_vec128i): Ditto.
3902
f7ab6ec6
MS
39032002-08-19 Michael Snyder <msnyder@redhat.com>
3904
3905 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3906 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3907 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3908 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3909 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3910 CALL_DUMMY_ADDRESS): Delete.
3911 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3912 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3913 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3914 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3915 push_return_address.
3916 (mips_register_raw_size, mips_eabi_use_struct_convention,
3917 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3918 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3919 mips_init_extra_frame_info, mips_eabi_push_arguments,
3920 mips_n32n64_push_arguments, mips_push_return_address,
3921 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3922 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3923
b5d1566e
MS
39242002-08-19 Michael Snyder <msnyder@redhat.com>
3925
3926 * mips-tdep.c (mips_frame_num_args): New function.
3927 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3928 frame_saved_pc, frame_args_address, frame_locals_address,
3929 frame_num_args, and frame_args_skip.
3930 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3931 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3932 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3933 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3934
2f1488ce
MS
39352002-08-20 Michael Snyder <msnyder@redhat.com>
3936
3937 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3938 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3939 * mips-tdep.c (mips_store_struct_return): New function.
3940 (mips_extract_struct_value_address): New function.
3941 (mips_gdbarch_init): Set store_struct_return and
3942 extract_struct_value_address.
3943
41ff2da1
DC
39442002-08-20 David Carlton <carlton@math.stanford.edu>
3945
3946 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3947 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3948 (read_file_scope): Check that line_header is nonzero before
3949 decoding macro information.
3950
e5451d58
MK
39512002-08-20 Mark Kettenis <kettenis@gnu.org>
3952
3953 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3954 flag the general-purpose registers as floating-point on targets
3955 that don't support the floating-point registers.
3956
4a6daafa
EZ
39572002-08-20 Elena Zannoni <ezannoni@redhat.com>
3958
3959 * rs6000-tdep.c (altivec_register_p): Delete.
3960 (rs6000_do_altivec_registers): Delete.
3961 (rs6000_altivec_registers_info): Delete.
3962 (rs6000_do_registers_info): Delete.
3963 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
3964 (rs6000_gdbarch_init): Remove setting of do_registers_info.
3965
ab4327e0
EZ
39662002-08-20 Elena Zannoni <ezannoni@redhat.com>
3967
3968 * infcmd.c (do_registers_info): Print vector registers in hex
3969 format only.
3970 (print_vector_info): Check that printing registers
3971 makes sense.
3972 (print_float_info): Ditto.
3973
cb1d2653
AC
39742002-08-20 Andrew Cagney <ac131313@redhat.com>
3975
3976 * mips-tdep.c (mips_gdbarch_init): Update.
3977 (mips_o32_extract_return_value): Rewrite.
3978 (mips_o32_store_return_value): Rewrite.
3979 (mips_o32_xfer_return_value): New function.
3980 (mips_xfer_register): Tweak debug print message. Allow for
3981 buf_offset when dumping the value transfered.
3982
dfc3d9b2
AC
39832002-08-20 Andrew Cagney <ac131313@redhat.com>
3984
3985 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
3986 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
3987 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
3988 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
3989 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
3990
7807aa61
MS
39912002-08-14 Michael Snyder <msnyder@redhat.com>
3992
3993 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
3994
489461e2
EZ
39952002-08-19 Elena Zannoni <ezannoni@redhat.com>
3996
3997 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
3998 register.
3999 (P): New macro to define a register as a pseudo register.
4000 (R, R4, R8, R16, FR32, R64, R0): Updated.
4001 (struct variant): Add new fields for number of pseudo registers
4002 and number of total registers.
4003 (tot_num_registers): New macro replacing....
4004 (num_registers): ...deleted macro.
4005 (num_registers): New function.
4006 (num_pseudo_registers): New function.
4007 (variants): Update all variants to intialize new fields correctly.
4008 Postpone initialization of number of pseudo regs and real regs.
4009 (init_variants): New function.
4010 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4011 registers offsets.
4012
fcaffe4c
DC
40132002-08-19 David Carlton <carlton@math.stanford.edu>
4014
2c2738a0
DC
4015 * valops.c (search_struct_field): Change error message to treat
4016 return value of 0 from value_static_field as meaning that field is
4017 optimized out.
4018 (value_struct_elt_for_reference): Ditto.
4019 * values.c (value_static_field): Treat an unresolved location the
4020 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4021 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4022 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4023 * MAINTAINERS: Add self to Write After Approval list.
4024
88658117
AC
40252002-08-19 Andrew Cagney <ac131313@redhat.com>
4026
4027 * mips-tdep.c (mips_xfer_register): New function.
4028 (mips_n32n64_extract_return_value): Rewrite.
4029 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4030 instead of deprecated_extract_return_value.
4031
21283beb
EZ
40322002-08-19 Elena Zannoni <ezannoni@redhat.com>
4033
4034 * rs6000-tdep.c (TDEP): Delete macro.
4035 (branch_dest): Replace use of TDEP macro with its body.
4036 (rs6000_pop_frame): Ditto.
4037 (rs6000_push_arguments): Ditto.
4038 (rs6000_skip_trampoline_code): Ditto.
4039 (rs6000_frame_saved_pc): Ditto.
4040 (rs6000_frame_chain): Ditto.
4041 (rs6000_register_name): Ditto.
4042 (rs6000_register_byte): Ditto.
4043 (rs6000_register_raw_size): Ditto.
4044 (rs6000_register_virtual_type): Ditto.
4045 (rs6000_register_convertible): Ditto.
4046 (rs6000_convert_from_func_ptr_addr): Ditto.
4047
bf072999
DJ
40482002-08-19 Daniel Jacobowitz <drow@mvista.com>
4049
4050 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4051 conditionally.
4052 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4053 MIPS_LINUX_JB_ELEMENT_SIZE.
4054 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4055 for MAX_REGISTER_RAW_SIZE arrays.
4056 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4057 MIPS_LINUX_JB_ELEMENT_SIZE.
4058
9b949a49
PM
40592002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4060
4061 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4062
6d3e79c6
AS
40632002-08-19 Aidan Skinner <aidan@velvet.net>
4064
4065 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4066 ada-valprint.c ada-tasks.c.
4067 (YYFILES): Add ada-exp.y.
4068 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4069 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4070 (ada-exp.tab.o): New target.
4071
06c0b04e
AC
40722002-08-18 Andrew Cagney <ac131313@redhat.com>
4073
4074 * regcache.c (regcache_xfer_part): New function.
4075 (regcache_raw_read_part): New function.
4076 (regcache_raw_write_part): New function.
4077 (regcache_cooked_read_part): New function.
4078 (regcache_cooked_write_part): New function.
4079 * regcache.h (regcache_raw_read_part): Declare.
4080 (regcache_raw_write_part): Declare.
4081 (regcache_cooked_read_part): Declare.
4082 (regcache_cooked_write_part): Declare.
4083
92d1e331
DJ
40842002-08-18 Daniel Jacobowitz <drow@mvista.com>
4085
4086 * remote.c (remote_open_1): Add async_p.
4087 (remote_async_open_1): Delete.
4088 (open_remote_target): Delete.
4089 (remote_open, extended_remote_open): Update calls to remote_open_1.
4090 (remote_async_open, extended_remote_async_open): Call
4091 remote_open_1 instead of remote_async_open_1.
4092
247055de
MK
40932002-08-19 Mark Kettenis <kettenis@gnu.org>
4094
4095 * blockframe.c: Fix a few coding standard violations.
4096
641eda39
MK
40972002-08-19 Mark Kettenis <kettenis@gnu.org>
4098
0b717710
MK
4099 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4100 here from ...
4101 * config/i386/tm-i386sco5.h: ... here. File removed.
4102 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4103
26d28e12 4104 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4105 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4106 (TM_FILE): Set to tm-i386.h.
4107 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4108 * config/i386/tm-i386v.h: Remove file.
4109 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4110 instead of "i386/tm-i386v.h".
4111 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4112 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4113 "i386/tm-i386v.h".
4114 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4115 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4116 "i386/tm-i386.h".
4117
d4e0bab4
MK
41182002-08-18 Mark Kettenis <kettenis@gnu.org>
4119
4120 * config/i386/nm-i386v.h: Add protection against
4121 multiple-inclusion.
4122 (i386_register_u_addr): Remove prototype.
4123 (register_u_addr): New prototype.
4124 (REGISTER_U_ADDR): Redefine accordingly.
4125 * i386v-nat.c: Improve several comments.
4126 (i386_register_u_addr): Change signature and rename to
4127 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4128 ubase variable.
4129
46cac009
AC
41302002-08-18 Andrew Cagney <ac131313@redhat.com>
4131
4132 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4133 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4134 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4135 deprecated_extract_return_value.
4136 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4137 rename mips_o32o64_push_arguments.
4138 (mips_gdbarch_init): Update.
4139 (mips_extract_return_value): Delete.
4140 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4141 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4142 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4143 (mips_n32n64_extract_return_value): Clone
4144 mips_extract_return_value.
4145 (mips_store_return_value): Delete.
4146 (mips_o32_store_return_value): Clone mips_store_return_value.
4147 (mips_o64_store_return_value): Clone mips_store_return_value.
4148 (mips_eabi_store_return_value): Clone mips_store_return_value.
4149 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4150
d2e4a39e
AS
41512002-08-18 Aidan Skinner <aidan@velvet.net>
4152
0c30c098
AS
4153 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4154 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4155
41562002-08-18 Aidan Skinner <aidan@velvet.net>
4157
4158 * ada-lang.c: Run through gdb_indent.sh.
4159 * ada-lang.h: Run through gdb_indent.sh.
4160 * ada-tasks.c: Run through gdb_indent.sh.
4161 * ada-typeprint.c: Run through gdb_indent.sh.
4162 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4163
01fc4e33
AC
41642002-08-18 Andrew Cagney <ac131313@redhat.com>
4165
4166 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4167 ABI.
4168
d8ee244c
MK
41692002-08-18 Mark Kettenis <kettenis@gnu.org>
4170
c38d8261
MK
4171 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4172
222db64c
MK
4173 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4174 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4175
c2848c82
MK
4176 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4177 write_register_gen instead of write_register_bytes.
4178
d8ee244c
MK
4179 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4180 i[3456]-*-osf1mk* configurations have been made obsolete.
4181 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4182 i[3456]86-*-osf1mk* hosts obsolete.
4183 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4184 targets obsolete.
4185 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4186 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4187 config/i386/i386m3.mt, config/i386/nm-m3.h,
4188 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4189 config/i386/i386mk.mh, config/i386/i386mk.mt,
4190 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4191 obsolete.
4192 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4193 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4194 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4195
61d8d407
AC
41962002-08-18 Andrew Cagney <ac131313@redhat.com>
4197
4198 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4199 (hppa_value_returned_from_stack): Declare.
4200 (hppa_extract_return_value): Declare.
4201 * config/pa/hppa.mt: New file.
4202 * configure.tgt: Recognize hppa*-*-*.
4203 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4204
0c52bd59
MK
42052002-08-18 Mark Kettenis <kettenis@gnu.org>
4206
4207 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4208 comment.
4209
b5686e99
MK
42102002-08-17 Mark Kettenis <kettenis@gnu.org>
4211
4212 * top.c (gdb_rl_operate_and_get_next): Make sure
4213 operate-and-get-next functions correctly even when the history
4214 list is completely filled.
4215
c1bab85b
AC
42162002-08-18 Andrew Cagney <ac131313@redhat.com>
4217
4218 * MAINTAINERS (Target Instruction Set Architectures): Rename
4219 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4220 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4221 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4222 already listed under Host/Native.
4223
4224 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4225 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4226 mips*-*-*.
4227
32089c7c
AC
42282002-08-17 Andrew Cagney <ac131313@redhat.com>
4229
4230 * config/ia64/ia64.mt: New file.
4231 * config/alpha/alpha.mt: New file.
4232 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4233 ia64-linux-gnu. Mention that ia64-elf is broken.
4234 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4235
b4671f85
MK
42362002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4237
4238 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4239 generic_func_frame_valid instead of func_frame_valid.
4240
c8edd8b4
JB
42412002-08-16 Joel Brobecker <brobecker@gnat.com>
4242
4243 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4244 procfs appears to be broken when debugging on multi-processor
4245 machines. So enable software single stepping in order to avoid
4246 using the procfs interface to do next/step operations, using
4247 internal breakpoints instead.
4248
4249 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4250 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4251 make this pc address equal to the value it would have if the
4252 system stepping capability was used. Also set a new flag used
4253 to ensure that we don't readjust the PC one more time later.
4254
4255 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4256 address by DECR_PC_AFTER_BREAK when software single step is
4257 in use for this architecture, as this has already been taken
4258 care of in handle_inferior_event().
4259
238617f6
JB
42602002-08-16 Joel Brobecker <brobecker@gnat.com>
4261
4262 * infrun.c (handle_inferior_event): Minor reformatting, to make
4263 a rather long condition expression easier to read.
4264
541a7aac
AC
42652002-08-16 Andrew Cagney <ac131313@redhat.com>
4266
4267 * Makefile.in (gdbtk.o): Move to end of file.
4268 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4269 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4270 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4271 (gdbtk-wrapper.o, gdbres.o): Ditto.
4272
f92d4a7b
AC
42732002-08-16 Andrew Cagney <ac131313@redhat.com>
4274
4275 * Makefile.in (copying.o): Separate out compile rule.
4276 (hpux-thread.o, procfs.o, signals.o): Ditto.
4277 (v850ice.o, z8k-tdep.o): Ditto.
4278 (tui-file.o): Move to TUI section.
4279 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4280 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4281
1cce71eb
JB
42822002-08-16 Joel Brobecker <brobecker@gnat.com>
4283
4284 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4285 skip_trampoline_code, for better namespace-proofing.
4286
4287 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4288
0851f23d
JB
42892002-08-16 Joel Brobecker <brobecker@gnat.com>
4290
4291 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4292
f8d40ec8
JB
42932002-08-16 Joel Brobecker <brobecker@gnat.com>
4294
4295 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4296 signal, check whether we hit a breakpoint before checking for a
4297 single step breakpoint. Otherwise, GDB fails to notice that a
4298 breakpoint has been hit when stepping onto a breakpoint.
4299
63d022e0
KS
43002002-08-16 Keith Seitz <keiths@redhat.com>
4301
4302 * gdb-events.sh (clear_gdb_event_hooks): New function.
4303 * gdb-events.c: Regenerate.
4304 * gdb-events.h: Regenerate.
4305
6e31adb3
AC
43062002-08-16 Andrew Cagney <ac131313@redhat.com>
4307
4308 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4309 not_a_sw_breakpoint.
4310 * breakpoint.h (bpstat_stop_status): Add parameter names.
4311
c8189ed1
GS
43122002-08-16 Grace Sainsbury <graces@redhat.com>
4313
4314 * remote.c (remote_insert_hw_breakpoint)
4315 (remote_remove_hw_breakpoint): Fix calculation of length field
4316 for Z-packet.
4317
d05285fa
MS
43182002-08-15 Michael Snyder <msnyder@redhat.com>
4319
466d7106
MS
4320 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4321 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4322 (supply_fpregset): Ditto.
4323
d05285fa
MS
4324 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4325 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4326 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4327 (TARGET_READ_SP): Delete.
bf1f5b4c 4328 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4329 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4330 Delete.
4331 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4332 from macros to functions.
bf1f5b4c 4333
d05285fa
MS
4334 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4335 (mips_register_convertible, mips_register_convert_to_virtual,
4336 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4337 (mips_read_sp): New function.
4338 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4339 (mips_do_registers_info): Make static.
4340 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4341 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4342 (mips_register_convert_from_type, mips_register_convert_to_type):
4343 New functions.
4344 (mips_gdbarch_init): Set up function_start_offset,
4345 register_virtual_size, pc_in_sigtramp.
d05285fa 4346
e76f1f2e
AC
43472002-08-15 Andrew Cagney <ac131313@redhat.com>
4348
4349 * infcmd.c (vector_info): New function.
4350 (_initialize_infcmd): Add command "info vector".
4351 (print_vector_info): New function.
4352
4353 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4354 * gdbarch.h, gdbarch.c: Regenerate.
4355
4782dc19
AC
43562002-08-15 Andrew Cagney <ac131313@redhat.com>
4357
4358 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4359 ``print_all''. Only print vector registers when ``print_all''.
4360
23e3a7ac
AC
43612002-08-15 Andrew Cagney <ac131313@redhat.com>
4362
8e186fd6
AC
4363 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4364 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4365
23e3a7ac
AC
4366 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4367 Add `args' parameter.
4368 * gdbarch.h, gdbarch.c: Regenerate.
4369
4370 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4371
4372 * infcmd.c (float_info): Call print_float_info.
4373 (print_float_info): New function. By default, print the
4374 floating-point registers.
4375
4376 * arch-utils.h (default_print_float_info): Delete declaration.
4377 * arch-utils.c (default_print_float_info): Delete function.
4378
e0ca2bb9
MK
43792002-08-16 Mark Kettenis <kettenis@gnu.org>
4380
3f733acc
MK
4381 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4382 out define.
4383
7d8d2918
MK
4384 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4385 FRAME.
4386
1c7cc583
MK
4387 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4388 * configure.host: Make i[3456]86-*-aix host obsolete.
4389 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4390 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4391 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4392 config/i386/xm-i386aix.h: Make files obsolete.
4393 * i386aix-nat.c: Make file obsolete.
4394 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4395 (i386aix-nat.o): Make target obsolete.
4396
e0ca2bb9
MK
4397 * config/i386/nm-gnu.h: Removed.
4398 * config/i386/nm-i386gnu.h: New file.
4399 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4400 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4401 Moved here from ...
4402 * config/i386/tm-i386gnu.h: ... here. Removed.
4403 * config/i386/xm-i386gnu.h: Removed.
4404 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4405 (NAT_FILE): Set to nm-i386gnu.h.
4406 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4407 * i386-tdep.c: New file.
4408 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4409 (i386gnu-tdep.o): Specify dependencies.
4410
16057ec7 44112002-08-15 Mark Kettenis <kettenis@gnu.org>
61113f8b 4412
6b99ee2e
MK
4413 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4414 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4415 Adjust a few comments to reflect reality a bit closer.
4416 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4417 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4418 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4419 target_insert_watchpoint, target_remove_watchpoint):
4420 Move defines to ...
4421 * config/i386/nm-i386sco5.h: ... here.
4422 (kernel_u_size): Add prototype. Improve a few comments and add
4423 protection against multiple inclusion.
4424
d9a6f65c
MK
4425 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4426 out define.
4427
047eff6a
MK
4428 * uw-thread.c (SP_ARG0): Define if not already defined.
4429 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4430
dcdb1290
MK
4431 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4432
5d2d0b2a
MK
4433 * config/i386/tm-i386.h: Don't include "regcache.h".
4434
61113f8b
MK
4435 * i387-tdep.h (i387_print_float_info): New prototype.
4436 * i387-tdep.c (print_i387_value, print_i387_ext,
4437 print_i387_status_word, print_i387_control_word): Add `struct
4438 ui_file *' argument and use it for output.
4439 (i387_print_float_info): Renamed from i387_float_info. Add
4440 `struct gdbarch *' and `struct ui_file *' arguments and use the
4441 latter for output.
4442 * i386-tdep.c: Include "i387-tdep.h".
4443 (i386_gdbarch_init): Set print_float_info.
4444 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4445 (FLOAT_INFO): Remove define.
4446
46e0f506
MS
44472002-08-13 Michael Snyder <msnyder@redhat.com>
4448
4449 * mips-tdep.c (mips_push_arguments): Rename to
4450 mips_eabi_push_arguments, and tune for EABI.
4451 (MIPS_REGS_HAVE_HOME_P): Delete.
4452 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4453 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4454 Delete references to mips_regs_have_home_p.
4455
409268de
KS
44562002-08-14 Keith Seitz <keiths@redhat.com>
4457
4458 * Makefile.in (install-gdbtk): Create insight plugin directory.
4459 Install plugins.tcl file.
4460
ffc6a242
KS
44612002-08-14 Keith Seitz <keiths@redhat.com>
4462
4463 * configure.in: Move SUBDIRS to near top of the file so that
4464 --enable options may add things to it.
4465 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4466 * configure: Regenerate.
4467
ebafbe83
MS
44682002-08-13 Michael Snyder <msnyder@redhat.com>
4469
4470 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4471 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4472 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4473
32f6f25d
AC
44742002-08-13 Andrew Cagney <ac131313@redhat.com>
4475
4476 * vax-tdep.c (vax_get_saved_register): Delete function.
4477 (vax_gdbarch_init): Update.
4478 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4479 (ns32k_gdbarch_init): Update.
4480 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4481 (alpha_gdbarch_init): Update.
4482
53826de9
AC
44832002-08-13 Andrew Cagney <cagney@redhat.com>
4484
4485 * regcache.c (init_regcache_descr): Overallocate the
4486 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4487 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4488 nr_raw_registers.
4489 (set_register_cached): Add range checking assertions. Use
4490 current_regcache.
4491
16057ec7 44922002-08-13 Mark Kettenis <kettenis@gnu.org>
7d12f766
MK
4493
4494 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4495 numbers for MMX registers.
4496
7b4c2dce
AC
44972002-08-13 Andrew Cagney <cagney@redhat.com>
4498
4499 * i386-tdep.c (i386_gdbarch_init): Use
4500 generic_unwind_get_saved_register.
4501
1e03ad20
KB
45022002-08-13 Kevin Buettner <kevinb@redhat.com>
4503
4504 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4505 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4506 target vector.
4507 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4508 Delete. Add comment regarding this now-deleted target method.
4509
548bcbec
SC
45102002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4511
4512 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4513 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4514 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4515 real PC and the page number (if it's within the memory bank window).
4516 (m68hc11_pseudo_register_write): Likewise when saving.
4517 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4518 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4519 (m68hc11_register_raw_size): And use 32-bit for it.
4520 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4521 16K memory bank is used by the prog; also use the virtual pc.
4522
7df11f59
SC
45232002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4524
4525 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4526 (m68hc11_gdbarch_init): Install it in gdbarch.
4527 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4528 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4529 (MSYMBOL_SIZE): New for documentation.
4530 (insn_return_kind): Enum to specify how a function returns.
4531 (frame_extra_info): Cleanup and record the return mode.
4532 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4533 register in address computation.
4534 (m68hc11_get_return_insn): New to obtain the return instruction used
4535 by the function.
4536 (m68hc11_frame_init_saved_regs): Take into account the return
4537 instruction used by the function for far and interrupt functions.
4538 (m68hc11_init_extra_frame_info): Take into account page register.
4539 (m68hc11_frame_args_address): Adjust according to the return mode.
4540 (show_regs): Print page register only when it's used.
4541
5706502a
SC
45422002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4543
4544 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4545 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4546 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4547 registers.
4548 (m68hc11_register_raw_size): Likewise.
4549
28fc6740
AC
45502002-08-13 Andrew Cagney <cagney@redhat.com>
4551
4552 * i386-tdep.c (i386_register_name): Handle mmx registers.
4553 (mmx_regnum_p): New function.
4554 (i386_mmx_names): New array.
4555 (mmx_num_regs): New variable.
4556 (i386_pseudo_register_read): New function.
4557 (i386_pseudo_register_write): New function.
4558 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4559
4560 * regcache.c (regcache_raw_read_unsigned): New function.
4561 (regcache_raw_read_signed): New function.
4562 * regcache.h (regcache_raw_read_unsigned): Declare.
4563 (regcache_raw_read_signed): Declare.
4564
a378f419
AC
45652002-08-13 Andrew Cagney <cagney@redhat.com>
4566
4567 * regcache.c (regcache_raw_read_as_address): Delete function.
4568 (regcache_cooked_read_signed): New function.
4569 (regcache_cooked_read_unsigned): New function.
4570 * regcache.h (regcache_cooked_read_signed): Declare.
4571 (regcache_cooked_read_unsigned): Declare.
4572 (regcache_raw_read_as_address): Delete declaration.
4573
4574 * blockframe.c (generic_read_register_dummy): Use
4575 regcache_cooked_read_unsigned.
4576 * i386-tdep.c (i386_extract_struct_value_address): Use
4577 regcache_cooked_read_unsigned.
4578
81967506
SC
45792002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4580
4581 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4582 double sizes according to ELF ABI flags.
4583 (gdbarch_tdep): Record elf_flags.
4584
ffe1f3ee
SC
45852002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4586
4587 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4588 (m6812_prolog): They can appear in 68HC12 function prologue.
4589 (m68hc11_frame_chain): Cleanup.
4590
98216c5d
AC
45912002-08-12 Andrew Cagney <cagney@redhat.com>
4592
4593 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4594 declarations.
4595 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4596 (i386_linux_register_raw_size): Delete function.
4597 (i386_linux_init_abi): Update.
4598 * i386-tdep.c (i386_register_raw_size): Delete function.
4599 (i386_register_byte): Delete function.
4600 (i386_gdbarch_init): Update.
4601 (i386_register_size): Delete array.
4602 (i386_register_offset): Delete array.
4603
4604 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4605 (REGISTER_RAW_SIZE): Delete macro.
4606 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4607 (REGISTER_BYTE): Delete macro.
4608
3b19021e
AS
46092002-08-11 Aidan Skinner <aidan@velvet.net>
4610
4611 * ada-lang.c (ada_lookup_partial_symbol)
4612 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4613 prototype names so that grep ^func works properly.
4614
4615 * ada-lang.c (ada_array_element_type)
4616 (ada_lookup_partial_symbol): Fix typos in parameter list.
4617
4618 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4619 Fix prototype names so that grep ^func works properly.
4620
b063e7a2
AC
46212002-08-10 Andrew Cagney <cagney@redhat.com>
4622 Elena Zannoni <ezannoni@redhat.com>
4623 Martin M. Hunt <hunt@redhat.com>
4624
4625 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4626 (build_builtin_type_vec128i): Set the vector bit.
4627 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4628 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4629 (build_builtin_type_vec64): New function.
4630 (build_builtin_type_vec64i): New function.
4631 (build_gdbtypes): Initialize builtin_type_vec64 and
4632 builtin_type_vec64i.
4633
a7e3c2ad
AC
46342002-08-09 Andrew Cagney <cagney@redhat.com>
4635
4636 * regcache.c (regcache_dump): Compare the register offset
4637 with REGISTER_BYTE.
4638 * arch-utils.c (generic_register_byte): New function.
4639 * arch-utils.h (generic_register_byte): Declare.
4640 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4641 * gdbarch.h, gdbarch.c: Regenerate.
4642
af030b9a
AC
46432002-08-09 Andrew Cagney <cagney@redhat.com>
4644
4645 * regcache.c: Include "gdbcmd.h"
4646 (_initialize_regcache): Add commands "maintenance print
4647 registers", "maintenance print raw-registers" and "maintenance
4648 print cooked-registers".
4649 (enum regcache_dump_what): Define.
4650 (dump_endian_bytes): New function.
4651 (regcache_dump): New function.
4652 (regcache_print): New function.
4653 (maintenance_print_registers): New function.
4654 (maintenance_print_raw_registers): New function.
4655 (maintenance_print_cooked_registers): New function.
4656 * Makefile.in (regcache.o): Update dependencies.
4657
cb3d25d1
MS
46582002-08-09 Michael Snyder <msnyder@redhat.com>
4659
4660 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4661 (mips_push_arguments): Correct some comments. Use paddr_nz
4662 for printing addresses in debug output. Replace static
4663 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4664 (mips_n32n64_push_arguments): New function, cloned from
4665 mips_push_arguments and tuned for the n32/n64 ABI.
4666 (mips_push_register): Buffer needs dynamic allocation.
4667 (mips_print_register): Ditto.
4668 (do_gp_register_row): Ditto.
4669 (mips_store_return_value): Ditto.
4670 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4671
2163ab9d
DH
46722002-08-09 Don Howard <dhoward@redhat.com>
4673
4674 * memattr.c (mem_info_command): Print special case of upper bound
4675 as max CORE_ADDR + 1.
4676
b78bcb18
MS
46772002-08-08 Michael Snyder <msnyder@redhat.com>
4678
4679 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4680 returns structs by ref if they're too big to fit in two registers.
4681
ffabd70d
KB
46822002-08-09 Kevin Buettner <kevinb@redhat.com>
4683
4684 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4685 saved regs value.
4686 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4687 mips_find_saved_regs().
4688 (mips_pop_frame): Likewise.
4689
fbcdb4a3
KB
46902002-08-09 Kevin Buettner <kevinb@redhat.com>
4691
4692 * blockframe.c (frame_saved_regs_register_unwind): Revise
4693 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4694 frames are in use.
4695
3c3bea1c
GS
46962002-08-09 Grace Sainsbury <graces@redhat.com>
4697
4698 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4699 T-packets; the 'a' is not taken as a register number.
4700 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4701 (remote_stopped_data_address): New functions; add to target
4702 vector.
4703 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4704 prototypes to match other implementations of this
4705 function. replace integer argument with pointer -- the length
4706 field in the Z-packet is the length of what is pointed to or 1 if
4707 pointer is null. Add to target vector.
4708 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4709 target vector.
4710
4711 From Mark Salter:
4712 * remote.c (remote_wait): Add support to extract optional
4713 watchpoint information from T-packet. Ignore unrecognized
4714 optional info in T-packet.
4715 (remote_async_wait): Ditto.
4716
5d1d95de
CV
47172002-08-09 Corinna Vinschen <vinschen@redhat.com>
4718
4719 * cli/cli-dump.c: Change fopen modes to use binary open modes
4720 as defined in include/fopen-bin.h throughout.
4721
c86b5b38
MS
47222002-08-08 Michael Snyder <msnyder@redhat.com>
4723
4724 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4725
b30590dc
KB
47262002-08-08 Kevin Buettner <kevinb@redhat.com>
4727
4728 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4729 assertion failure by returning early after a warning.
4730
498868ed
KB
47312002-08-08 Kevin Buettner <kevinb@redhat.com>
4732
4733 * mips-tdep.c (mips_find_saved_regs): Make static.
4734 (mips_frame_init_saved_regs): New function.
4735 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4736 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4737 (mips_find_saved_regs): Delete declaration.
4738
b2dd6311
GS
47392002-08-08 Grace Sainsbury <graces@redhat.com>
4740
3c3bea1c
GS
4741 * remote.c (remote_wait, remote_async_wait): Change
4742 thread_num from int to ULONGEST.
4743 (unpack_varlen_hex): Change result parameter from
4744 int * to ULONGEST *.
b2dd6311 4745
ea47855f
AC
47462002-08-08 Andrew Cagney <ac131313@redhat.com>
4747
4748 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4749 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4750 powerpc*-*-*.
4751 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4752
69db8bae
AC
47532002-08-08 Andrew Cagney <cagney@redhat.com>
4754
4755 * gcore.c (override_derive_stack_segment): Delete variable.
4756 (preempt_derive_stack_segment): Delete function.
4757 (derive_stack_segment): Delete function.
4758 (default_derive_stack_segment): Renamed to derive_stack_segment.
4759 (override_derive_heap_segment): Delete variable.
4760 (preempt_derive_heap_segment): Delete function.
4761 (derive_heap_segment): Delete function.
4762 (default_derive_heap_segment): Rename to derive_heap_segment.
4763
cb811fe7
MS
47642002-08-06 Michael Snyder <msnyder@redhat.com>
4765
4766 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4767 * mips-tdep.c (mips_EABI_use_struct_convention,
4768 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4769 New functions. (mips_use_struct_convention): Delete.
4770 (mips_gdbarch_init): set use_gdbarch_convention.
4771
8b389c40
MS
47722002-08-06 Michael Snyder <msnyder@redhat.com>
4773
4774 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4775 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4776 mips_o32_reg_struct_has_addr): New functions.
4777 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4778
5c27f28a
AC
47792002-08-07 Andrew Cagney <ac131313@redhat.com>
4780
4781 * regcache.c (pseudo_register): Delete function.
4782 (fetch_register): Delete function.
4783 (store_register): Delete function.
4784 (regcache_raw_read, legacy_read_register_gen): Use
4785 target_fetch_registers instead of fetch_register.
4786 (legacy_write_register_gen, regcache_raw_write): Use
4787 target_store_register instead of store_register.
4788 (write_register_bytes): Ditto.
4789
4790 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4791 (STORE_PSEUDO_REGISTER): Delete.
4792 * gdbarch.h, gdbarch.c: Regenerate.
4793
5b331675
CV
47942002-08-06 Corinna Vinschen <vinschen@redhat.com>
4795
4796 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4797 write dump file binary.
4798
6acdf5c7
MS
47992002-08-05 Michael Snyder <msnyder@redhat.com>
4800
4801 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4802 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4803 (mips_gdbarch_init): Set N32 target to be mips64.
4804
b2f01c35
KB
48052002-08-06 Kevin Buettner <kevinb@redhat.com>
4806
4807 * frame.c (find_saved_register): Break out of loop once saved
4808 register address is found. Don't mention sparc in loop comment
4809 anymore.
4810
63db5580
KB
48112002-08-06 Kevin Buettner <kevinb@redhat.com>
4812
4813 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4814 mips_default_saved_regsize to 8.
4815
5e34e75e
AC
48162002-08-06 Andrew Cagney <ac131313@redhat.com>
4817
4818 * gcore.c: Do not include <sys/procfs.h>.
4819 * Makefile.in (gcore.o): Update dependencies.
4820
eb4c54a2
AC
48212002-08-06 Andrew Cagney <cagney@redhat.com>
4822
4823 * configure.tgt: Make arc-*-* obsolete.
4824 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4825 * MAINTAINERS: Make arc-elf obsolete.
4826 * arc-tdep.c: Make file obsolete.
4827 * config/arc/arc.mt: Ditto.
4828 * config/arc/tm-arc.h: Ditto.
4829
ced15480
TR
48302002-08-05 Theodore A. Roth <troth@verinet.com>
4831
c1bab85b 4832 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 4833
b4743822
AC
48342002-08-05 Andrew Cagney <ac131313@redhat.com>
4835
4836 * mcore-tdep.c (mcore_gdbarch_init): Use
4837 generic_unwind_get_saved_register instead of
4838 generic_get_saved_register.
4839 * v850-tdep.c (v850_gdbarch_init): Ditto.
4840 * frv-tdep.c (frv_gdbarch_init): Ditto.
4841 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4842 * s390-tdep.c (s390_gdbarch_init): Ditto.
4843 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4844 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4845 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4846
3956d554
JB
48472002-08-05 Joel Brobecker <brobecker@gnat.com>
4848
4849 * objfiles.h: Add missing #include "symfile.h"
4850
4851 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4852
8249c0d6
AC
48532002-08-04 Andrew Cagney <ac131313@redhat.com>
4854
4855 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4856 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4857 of FIELD_BITSIZE.
4858
b9d14705
DJ
48592002-08-04 Daniel Jacobowitz <drow@mvista.com>
4860
4861 * NEWS: Cleanup and nitpick.
4862
dd73b9bb
AC
48632002-08-03 Andrew Cagney <ac131313@redhat.com>
4864
4865 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4866
043a27f8
AC
48672002-08-03 Andrew Cagney <ac131313@redhat.com>
4868
4869 * Makefile.in (gdbtk-bp.o): Update dependencies.
4870 (gdbtk-register.o): Ditto.
4871 (gdbtk-varobj.o): Ditto.
4872
46ce284d
AC
48732002-08-03 Andrew Cagney <cagney@redhat.com>
4874
4875 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4876 m68hc11_fetch_pseudo_register.
4877 (m68hc11_pseudo_register_write): Replace
4878 m68hc11_store_pseudo_register.
4879 (m68hc11_gdbarch_init): Update.
4880
b66d6d2e
AC
4881Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4882
4883 * gdbarch.sh: Include "gdb_string.h".
4884 * gdbarch.c: Regenerate.
4885
4886 * regcache.c: Include "gdb_string.h".
4887 * ax-general.c: Ditto.
4888 * varobj.c: Ditto.
4889 * std-regs.c: Ditto.
4890 * fbsd-proc.c: Ditto.
4891 * thread.c: Ditto.
4892
4893 * Makefile.in (regcache.o): Update dependencies.
4894 (thread.o, gdbarch.o): Ditto.
4895 (ax-general.o, gdbarch.o): Ditto.
4896 (varobj.o, std-regs.o): Ditto.
4897 (fbsd-proc.o): Specify dependencies.
4898
29e1842b
AC
48992002-08-02 Andrew Cagney <cagney@redhat.com>
4900
4901 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4902 regnum.
4903 (regcache_cooked_write): Ditto.
4904
68365089
AC
49052002-08-02 Andrew Cagney <ac131313@redhat.com>
4906
4907 * regcache.c (regcache_cooked_read): New function.
4908 (regcache_cooked_write): New function.
4909 (read_register_gen): Rewrite using regcache_cooked_read.
4910 (write_register_gen): Rewrite using regcache_cooked_write.
4911
4912 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4913 Declare.
4914
d8124050
AC
49152002-08-02 Andrew Cagney <cagney@redhat.com>
4916
4917 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4918 Replace the architecture methods register_read and register_write.
4919 * gdbarch.h, gdbarch.c: Regenerate.
4920 * regcache.c (init_regcache_descr): Update.
4921 (read_register_gen): Update.
4922 (write_register_gen): Update.
4923 (supply_register): Update comment.
4924
4925 * sh-tdep.c (sh_gdbarch_init): Update.
4926 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4927 `regcache' and `gdbarch' parameters. Make `buffer' a void
4928 pointer. Update code.
4929 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4930 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4931 void pointer. Update code.
4932 (sh64_register_write): Delete.
4933 (sh4_register_read): Delete.
4934 (sh64_register_read): Delete.
4935 (sh4_register_write): Delete.
4936 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4937 void pointer, `to' parameter a void pointer.
4938 (sh_sh64_register_convert_to_raw): Ditto.
4939
a6425924
KB
49402002-08-01 Kevin Buettner <kevinb@redhat.com>
4941
4942 * mips-tdep.c (mips_register_virtual_type): Use architecture
4943 invariant return values.
4944
ff5922b5
AC
49452002-08-01 Andrew Cagney <cagney@redhat.com>
4946
4947 * linux-proc.c: Include "gdb_string.h".
4948 * Makefile.in (linux-proc.o): Update dependency list.
4949
32a6503c
KB
49502002-08-01 Kevin Buettner <kevinb@redhat.com>
4951
4952 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4953 comment.
4954
ccaa32c7
GS
49552002-08-01 Grace Sainsbury <graces@redhat.com>
4956
4957 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4958 to_insert_watchpoint, to_remove_watchpoint,
4959 to_stopped_by_watchpoint, to_stopped_data_address,
4960 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
4961 target vecctor. Define their corresponding macros so they call
4962 them.
4963
4964 * target.c: Add default and debug versions of for
4965 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
4966 to_insert_watchpoint, to_remove_watchpoint,
4967 to_stopped_by_watchpoint, to_stopped_data_address,
4968 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
4969
78fde5f8
KB
49702002-08-01 Kevin Buettner <kevinb@redhat.com>
4971
4972 * mips-tdep.c (mips_register_virtual_type): New function.
4973 (mips_gdbarch_init): Register mips_register_virtual_type()
4974 with gdbarch machinery.
4975 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
4976 this file instead of tm-bigmips.h.
4977 (MIPS_REGSIZE): Delete this macro.
4978 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
4979 multiarch version in mips-tdep.c will be found.
4980
db034ac5
AC
49812002-08-01 Andrew Cagney <cagney@redhat.com>
4982
4983 * NEWS: Menion that CHILL has been made obsolete.
4984
4985 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
4986 * stabsread.c (read_range_type): Ditto.
4987 * gdbtypes.h: Ditto.
4988 * language.c (binop_type_check): Ditto.
4989 (binop_result_type): Ditto.
4990 (integral_type): Ditto.
4991 (character_type): Ditto.
4992 (string_type): Ditto.
4993 (boolean_type): Ditto.
4994 (structured_type): Ditto.
4995 (lang_bool_type): Ditto.
4996 (binop_type_check): Ditto.
4997 * language.h (_LANG_chill): Ditto.
4998 * dwarfread.c (set_cu_language): Ditto.
4999 * dwarfread.c (CHILL_PRODUCER): Ditto.
5000 * dwarfread.c (handle_producer): Ditto.
5001 * expression.h (enum exp_opcode): Ditto.
5002 * eval.c: Ditto for comments.
5003 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5004 * expprint.c (print_subexp): Ditto.
5005 (print_subexp): Ditto.
5006 * valops.c (value_cast): Ditto.
5007 (search_struct_field): Ditto.
5008 * value.h (COERCE_VARYING_ARRAY): Ditto.
5009 * symfile.c (init_filename_language_table): Ditto.
5010 (add_psymbol_with_dem_name_to_list): Ditto.
5011 * valarith.c (value_binop): Ditto.
5012 (value_neg): Ditto.
5013 * valops.c (value_slice): Ditto.
5014 * symtab.h (union language_specific): Ditto.
5015 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5016 (SYMBOL_DEMANGLED_NAME): Ditto.
5017 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5018 * defs.h (enum language): Ditto.
5019 * symtab.c (got_symtab): Ditto.
5020 * utils.c (fprintf_symbol_filtered): Ditto.
5021
5022 * ch-typeprint.c: Make file obsolete.
5023 * ch-valprint.c: Make file obsolete.
5024 * ch-lang.h: Make file obsolete.
5025 * ch-exp.c: Make file obsolete.
5026 * ch-lang.c: Make file obsolete.
5027
5028 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5029 CHILL_LIB.
5030 (TARGET_FLAGS_TO_PASS): Ditto.
5031 (CHILLFLAGS): Obsolete.
5032 (CHILL): Obsolete.
5033 (CHILL_FOR_TARGET): Obsolete.
5034 (CHILL_LIB): Obsolete.
5035 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5036 ch-valprint.c.
5037 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5038 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5039 ch-lang.o.
5040 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5041 targets.
5042
8aaf0b47
JB
50432002-07-31 Joel Brobecker <brobecker@gnat.com>
5044
5045 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5046 This does not change anything at the moment, but will be helpful
5047 later when full Ada support is integrated.
5048
f3a7b3a5
KB
50492002-07-31 Kevin Buettner <kevinb@redhat.com>
5050
5051 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5052 help message.
5053
fb850278
KB
50542002-07-31 Kevin Buettner <kevinb@redhat.com>
5055
5056 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5057 and save it in a local variable. Use variable in later test.
5058
e3bddbfa
KB
50592002-07-31 Kevin Buettner <kevinb@redhat.com>
5060
5061 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5062 test. (Thanks to Daniel Jacobowitz.)
5063
28d169de
KB
50642002-07-31 Kevin Buettner <kevinb@redhat.com>
5065
5066 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5067 (mips_abi_strings): Add "n64".
5068 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5069
7fe7e44e
KB
50702002-07-31 Kevin Buettner <kevinb@redhat.com>
5071
5072 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5073 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5074
c6caf090
KB
50752002-07-31 Kevin Buettner <kevinb@redhat.com>
5076
5077 * utils.c (host_pointer_to_address, address_to_host_pointer):
5078 Use gdb_assert() instead of explicit call to internal_error().
5079
c41669e0
KB
50802002-07-30 Kevin Buettner <kevinb@redhat.com>
5081
5082 * Makefile.in (rs6000-nat.o): Update dependencies.
5083
5084 From Nicholas Duffek:
5085 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5086 (aix-thread.o): New rule.
5087 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5088 * config/powerpc/aix432.mh: New file.
5089
2fda4977
DJ
50902002-07-30 Daniel Jacobowitz <drow@mvista.com>
5091
5092 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5093 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5094 (fetch_core_registers, ppc_linux_supply_gregset)
5095 (ppc_linux_supply_fpregset): New functions.
5096 (ppc_linux_regset_core_fns): New.
5097 (_initialize_ppc_linux_tdep): Call add_core_fns.
5098 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5099 and ppc_linux_supply_gregset.
5100 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5101 (supply_fpregset): Call ppc_linux_supply_fpregset.
5102 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5103 corelow.o.
5104 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5105
729051e6
DJ
51062002-07-30 Daniel Jacobowitz <drow@mvista.com>
5107
5108 * symtab.c (lookup_symbol): Demangle before lowercasing.
5109
5f8a3188
AC
51102002-07-30 Andrew Cagney <ac131313@redhat.com>
5111
5112 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5113 declaration.
5114 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5115 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5116 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5117 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5118 "gdb_string.h".
5119 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5120 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5121 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5122 (avr-tdep.o, mon960-rom.o): Ditto.
5123 (aout_stabs_gnu_h): Define.
5124 (symtab_h): Remove $(gdb_obstack_h).
5125
67f07146
JB
51262002-07-30 Jim Blandy <jimb@redhat.com>
5127
5128 Patch from David Carlton <carlton@math.stanford.edu>:
5129 * gdbinit.in: Move the `dir' commands that add GDB's own source
5130 directory to the search path to the end, so that the `gdb' source
5131 directory will be searched first.
5132
04ea0df1
AC
51332002-07-29 Andrew Cagney <ac131313@redhat.com>
5134
5135 * gdb_obstack.h: New file.
5136 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5137 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5138 * objfiles.h: Include "gdb_obstack.h".
5139 * Makefile.in (gdb_obstack_h): Define.
5140 (symtab_h): Add $(gdb_obstack_h).
5141 (objfiles_h): Add $(gdb_obstack_h).
5142
5143 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5144 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5145 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5146 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5147 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5148 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5149 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5150 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5151
5152 * Makefile.in (bcache.o): Update dependencies.
5153 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5154 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5155 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5156 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5157 (stabsread.o, symfile.o, symmisc.o): Ditto.
5158 (symtab.o, typeprint.o, macroexp.o): Ditto.
5159 (macrotab.o, mdebugread.o): Ditto.
5160 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5161 (coff_ecoff_h, aout_aout64_h): Define.
5162 (aout_stabs_gnu_h, libaout_h): Define.
5163
d138e37a
AC
51642002-07-29 Andrew Cagney <cagney@redhat.com>
5165
5166 * regcache.c (struct regcache_descr): Rename nr_registers to
5167 nr_cooked_registers. Revise comments describing the structure
5168 member fields.
5169 (init_regcache_descr): Update.
5170 (init_legacy_regcache_descr): Update.
5171 (read_register_gen, write_register_gen): When a cooked register in
5172 the raw register range, directly access the value from the raw
5173 register cache.
5174
460e6ec3
AC
51752002-07-29 Andrew Cagney <ac131313@redhat.com>
5176
5177 * z8k-tdep.c: Do not include "obstack.h".
5178 * h8300-tdep.c, h8500-tdep.c: Ditto.
5179 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5180 * valprint.c, v850-tdep.c: Ditto.
5181 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5182 * mn10200-tdep.c: Ditto.
5183
5184 * Makefile.in (z8k-tdep.o): Update dependencies.
5185 (m68hc11-tdep.o, valprint.o): Ditto.
5186 (v850-tdep.o, d10v-tdep.o): Ditto.
5187 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5188 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5189 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5190 (sh_opc_h, gdb_sim_sh_h): Define.
5191 (elf_sh_h, elf_bfd_h): Define.
5192 (opcode_m68hc11_h): Define.
5193 (OPCODES_SRC, OPCODES_DIR): define.
5194 (OPCODES): Use $(OPCODES_DIR).
5195 (gdb_sim_d10v_h): Rename sim_d10v_h.
5196 (gdb_sim_arm_h): Rename sim_arm_h.
5197
790c9cf0
KB
51982002-07-26 Kevin Buettner <kevinb@redhat.com>
5199
5200 * utils.c (host_pointer_to_address, address_to_host_pointer):
5201 Change internal_error() message to indicate function responsible
5202 for the error.
5203
9647fa49
KB
52042002-07-26 Kevin Buettner <kevinb@redhat.com>
5205
5206 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5207 calls to local_hex_string_custom().
5208
dabbe2c0
KB
52092002-07-26 Kevin Buettner <kevinb@redhat.com>
5210
5211 * irix5-nat.c: Move IRIX shared library support from here...
5212 * solib-irix.c: ...to here. Revised substantially to work with
5213 generic solib framework.
5214
b96d0a4e
KB
5215 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5216 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5217 * mips-irix-tdep.c: New file.
5218
313fb2f6
KB
5219 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5220 (mips-irix-tdep.o, solib-irix.o): New rules.
5221 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5222 solib-irix.o.
5223 * config/mips/irix6.mt (TDEPFILES): Likewise.
5224 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5225
ab2eaf26
KB
52262002-07-26 Kevin Buettner <kevinb@redhat.com>
5227
177e4768 5228 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5229 disabled (via ``#if 0'') includes.
5230
7244546a
KB
52312002-07-26 Kevin Buettner <kevinb@redhat.com>
5232
5233 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5234 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5235 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5236 Add support for the fpscr register.
5237 * rs6000-nat.c (regmap, fetch_inferior_registers)
5238 (store_inferior_registers, fetch_core_registers): Likewise.
5239
dd7be90a
KB
52402002-07-26 Kevin Buettner <kevinb@redhat.com>
5241
5242 * rs6000-nat.c (language.h): Include.
5243 (special_regs): Delete this array.
5244 (regmap): New function.
5245 (fetch_register, store_register): Use regmap() to map gdb
5246 register numbers to ptrace register numbers. Also, use
5247 outputs from regmap() to make decisions regarding type of
5248 ptrace() call to make. In particular, don't compare against
5249 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5250 (fetch_inferior_registers, store_inferior_registers): Where
5251 possible, obtain register numbers from tdep struct. Don't
5252 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5253 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5254 (LAST_UISA_SP_REGNUM): Delete.
5255
11bf77db
KB
52562002-07-25 Kevin Buettner <kevinb@redhat.com>
5257
5258 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5259 (fetch_registers, store_register, fetch_core_registers): Don't
5260 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5261 regcache_collect() as appropriate.
5262 (find_toc_address): Format hex address with local_hex_string().
5263
06afebeb
AC
52642002-07-25 Andrew Cagney <ac131313@redhat.com>
5265
5266 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5267 bfd/elf32-frv.c.
5268
8c554d79
TT
52692002-07-24 Tom Tromey <tromey@redhat.com>
5270
5271 * jv-exp.y: Marked all strings with _().
5272 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5273 internal_error.
5274 (MethodInvocation, CastExpression, parse_number, yyerror,
5275 java_type_from_name, push_expression_name, yylex): Typo fixes.
5276
e4c242d9
DJ
52772002-07-24 Daniel Jacobowitz <drow@mvista.com>
5278
5279 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5280 (tee_file_flush, tee_file_write, tee_file_fputs)
5281 (tee_file_isatty): New.
5282 * ui-file.h (tee_file_new): Add prototype.
5283
ebf56fd3
AS
52842002-07-24 Aidan Skinner <aidan@velvet.net>
5285
5286 * ada-lang.c: Change k&r style function definitions to prototyped
5287 form.
5288 * ada-typeprint.c: Change k&r style function definitions to prototyped
5289 form.
5290 * ada-valprint.c: Change k&r style function definitions to prototyped
5291 form.
5292
7fb623f7
AC
52932002-07-24 Andrew Cagney <cagney@redhat.com>
5294
5295 * README: Remove reference to remote-bug.
5296 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5297 remote-bug.c.
5298 (m88k-nat.o): Delete rule.
5299 (m88k-tdep.o): Delete rule.
5300 (remote-bug.o): Delete rule.
5301 * MAINTAINERS: Mark as obsolete.
5302 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5303 * m88k-tdep.c: Make file obsolete.
5304 * config/m88k/m88k.mh: Ditto.
5305 * config/m88k/delta88v4.mh: Ditto.
5306 * config/m88k/delta88v4.mt: Ditto.
5307 * config/m88k/delta88.mt: Ditto.
5308 * config/m88k/delta88.mh: Ditto.
5309 * remote-bug.c: Ditto.
5310 * config/m88k/tm-delta88.h: Ditto.
5311 * config/m88k/nm-delta88v4.h: Ditto.
5312 * config/m88k/xm-delta88.h: Ditto.
5313 * config/m88k/xm-dgux.h: Ditto.
5314 * config/m88k/tm-m88k.h: Ditto.
5315 * config/m88k/nm-m88k.h: Ditto.
5316 * config/m88k/tm-delta88v4.h: Ditto.
5317 * m88k-nat.c: Ditto.
5318 * cxux-nat.c: Ditto.
5319 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5320 and m88*-*-* obsolete.
5321 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5322 m88*-*-* obsolete.
5323
37611a2b
AC
53242002-07-24 Andrew Cagney <cagney@redhat.com>
5325
5326 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5327 constant. Same for local pointer variables.
5328 (extract_signed_integer): Ditto.
5329 * defs.h (extract_unsigned_integer): Update.
5330 (extract_signed_integer): Update.
5331
1aaa5f99
AC
53322002-07-24 Andrew Cagney <cagney@redhat.com>
5333
5334 * regcache.c (regcache_raw_write): Change buf parameter to a
5335 constant void pointer.
5336 (regcache_raw_read): Change buf parameter to a void pointer.
5337 (legacy_write_register_gen): Change myaddr parameter a constant
5338 void pointer.
5339 (supply_register): Change val parameter to a const void pointer.
5340 * regcache.h (regcache_raw_write): Update declaration.
5341 (regcache_raw_read): Update declaration.
5342 (supply_register): Update declaration.
5343
b4f5539f
TT
53442002-07-24 Tom Tromey <tromey@redhat.com>
5345
5346 * defs.h (gdb_readline_wrapper): Declare.
5347 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5348 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5349 * top.c (gdb_readline_wrapper): New function.
5350 (command_line_input): Use it.
5351
0818c12a
AC
53522002-07-24 Andrew Cagney <cagney@redhat.com>
5353
5354 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5355 regcache_read and regcache_write.
5356 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5357 * regcache.c: Update.
5358 * sh-tdep.c (sh64_push_arguments): Update comment.
5359 (sh_pseudo_register_read): Update.
5360 (sh_pseudo_register_write): Update.
5361 (sh4_register_read): Update.
5362 (sh4_register_write): Update.
5363 (sh64_pseudo_register_read): Update.
5364 (sh64_pseudo_register_write): Update.
5365 (sh64_register_read): Update.
5366 (sh64_register_write): Update.
5367 * i386-tdep.c (i386_extract_return_value): Update.
5368 (i386_extract_struct_value_address): Update.
5369 (i386_extract_return_value): Update.
5370 * blockframe.c (generic_read_register_dummy): Update.
5371 (generic_call_dummy_register_unwind): Update
5372 * infrun.c (write_inferior_status_register): Update.
5373
f7321c06
JB
53742002-07-23 Jim Blandy <jimb@redhat.com>
5375
5376 * parser-defs.h (expression_context_pc): Make this extern.
5377 (Thanks to Michael Snyder.)
5378
2037aebb
AC
53792002-07-23 Andrew Cagney <ac131313@redhat.com>
5380
5381 GDB 5.2.1 released from 5.2 branch.
5382 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5383 * README: Update to mention 5.2.1.
5384
66504d44
MS
53852002-07-23 Mark Salter <msalter@redhat.com>
5386
5387 * remote.c (remote_read_bytes): Fix check for error.
5388
27bae383
KB
53892002-07-22 Kevin Buettner <kevinb@redhat.com>
5390
5391 * aix-thread.c (language.h): Include.
5392 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5393 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5394 Print newlines at end of debug messages.
5395 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5396 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5397
53982002-07-22 Kevin Buettner <kevinb@redhat.com>
5399
5400 * aix-thread.c (ppc-tdep.h): Include.
5401 (special_register_p): New function.
5402 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5403 (store_regs_user_thread): Use register number information from
5404 gdbarch_tdep struct instead of hardcoded offsets relative to
5405 FIRST_UISA_SP_REGNUM.
5406 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5407 special_register_p() instead of using FPLAST_REGNUM and
5408 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5409 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5410 will be MQ's register number.
5411
54122002-07-22 Michael Snyder <msnyder@redhat.com>
206d3d3c
KB
5413
5414 * aix-thread.c (ops): Rename to aix_thread_ops.
5415 (base_ops): Rename to base_target.
5416 (ops_attach): Rename to aix_thread_attach.
5417 (ops_detach): Rename to aix_thread_detach.
5418 (ops_resume): Rename to aix_thread_detach.
5419 (ops_wait): Rename to aix_thread_wait.
5420 (ops_kill): Rename to aix_thread_kill.
5421 (init_ops): Rename to init_aix_thread_ops.
5422 (ops_fetch_register): Rename to aix_thread_fetch_register.
5423 (ops_store_register): Rename to aix_thread_store_register.
5424 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5425 (ops_thread_alive): Rename to aix_thread_thread_alive.
5426 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5427 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5428 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5429 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5430 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5431 (store_regs_lib): Rename to store_regs_user_thread.
5432 (store_regs_kern): Rename to store_regs_kernel_thread.
5433
27bae383 54342002-07-22 Michael Snyder <msnyder@redhat.com>
cbe92db4
KB
5435
5436 * aix-thread.c (ops_prepare_to_store): Eliminate.
5437 (init_ops): Don't initialize ops.prepare_to_store.
5438 (store_regs_kern): Pre-fetch register buffers from child,
5439 because some registers may not be in the cache. Copy
5440 regs from register cache only if they are cached.
5441 (store_regs_lib): Copy regs from register cache only
5442 if they are cached.
5443 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5444 fill_gprs64): Ditto.
5445
61c5da0b
KB
54462002-07-22 Kevin Buettner <kevinb@redhat.com>
5447
5448 * aix-thread.c (gdb_assert.h): Include.
5449 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5450 register sizes (from register cache) match size of buffer holding
5451 register data.
5452 (fill_sprs32): Change parameter types to match those in the ptrace()
5453 buffer.
5454 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5455 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5456
54572002-07-22 Michael Snyder <msnyder@redhat.com>
5458
5459 * aix-thread.c (supply_sprs64): Cosmetic change.
5460 (supply_sprs32): Cosmetic change.
5461 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5462 (fill_sprs64): Use regcache_collect instead of read_register.
5463 (store_regs_lib): Use regcache_collect instead of
5464 read_register. Use fill_sprs32 instead of fill_sprs64,
5465 if debugging a 32-bit architecture.
5466 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5467 out of the register cache, instead of passing a pointer into
5468 the register cache directly to ptrace. Use regcache_collect
5469 insteaad of read_register.
5470 (ops_prepare_to_store): Use target_read_registers instead
5471 of read_register_bytes.
5472
36479eb1
AS
54732002-07-20 Aidan Skinner <aidan@velvet.net>
5474
5475 * MAINTAINERS: Add self under write after approval.
5476
80ae6ee2
AS
54772002-07-20 Aidan Skinner <aidan@velvet.net>
5478
5479 * ada-tasks.c: Change k&r style function definitions to prototyped
5480 form.
5481
8a8ab2b9
AC
54822002-07-19 Andrew Cagney <ac131313@redhat.com>
5483
5484 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5485 * x86-64-tdep.c: Include "objfiles.h".
5486 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5487 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5488
fb16b900
ML
54892002-07-17 Michal Ludvig <michal@suse.cz>
5490
5491 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5492 (update_context): Initialise cfa variable.
5493
0fe7bf7b
MS
54942002-07-17 Michael Snyder <msnyder@redhat.com>
5495
5496 * aix-thread.c: Shorten some long lines.
5497 Bring comments into line with code spec.
5498
488f131b
JB
54992002-07-18 Joel Brobecker <brobecker@gnat.com>
5500
5501 * infrun.c: Re-indent using gdb_indent.sh.
5502
46c415d2
JB
55032002-07-18 Joel Brobecker <brobecker@gnat.com>
5504
5505 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5506 Leave the indentation temporarily untouched, to minimize the diffs.
5507
cdecafbe
EZ
55082002-07-18 Elena Zannoni <ezannoni@redhat.com>
5509
5510 * stabsread.c: Make os9k sections of the code obsolete,
5511 for real this time.
5512 * stabsread.h: Make os9k sections of the code obsolete.
5513
7b6aa020
ML
55142002-07-18 Michal Ludvig <mludvig@suse.cz>
5515
09ec9b38
ML
5516 * linux-low.c (regsets_store_inferior_registers): Add free()
5517 at the end of a loop to prevent memory leak.
5518 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5519 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
5520 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5521 line a comment.
4894ac5d 5522 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 5523
233282cd
JB
55242002-07-17 Jim Blandy <jimb@redhat.com>
5525
5526 * macrocmd.c (info_macro_command): Remove newline from error
5527 message.
5528
7b6aa020 55292002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
2f14585c
JR
5530
5531 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5532 (sh_gdbarch_init): Use it for sh-dsp.
5533
f7ef9339
KB
55342002-07-16 Kevin Buettner <kevinb@redhat.com>
5535
5536 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5537 64-bit DWARF2 format.
5538
8dd72958
JB
55392002-07-16 Joel Brobecker <brobecker@gnat.com>
5540
5541 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5542 <sys/proc.h> when not available.
5543
a99a9e1b
AC
55442002-07-16 Andrew Cagney <ac131313@redhat.com>
5545
5546 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5547 * stabsread.c: Make os9k sections of the code obsolete.
5548 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5549 * config/i386/i386os9k.mt: Make file obsolete.
5550 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5551 (COMMON_OBS): Remove os9kread.o
5552 (SFILES): Remove os9kread.c.
5553 (os9kread.o, remote-os9k.o): Make target obsolete.
5554 * remote-os9k.c: Make file obsolete.
5555 * os9kread.c: Make file obsolete.
5556 * Makefile.in
5557
7a3085c1
AC
55582002-07-16 Andrew Cagney <ac131313@redhat.com>
5559
5560 * NEWS: Mention that the FR30 has been made obsolete.
5561 * fr30-tdep.c: Make file obsolete.
5562 * config/fr30/tm-fr30.h: Ditto.
5563 * config/fr30/fr30.mt: Ditto.
5564 * configure.tgt: Make fr30-*-elf obsolete.
5565 * MAINTAINERS: Make fr30-elf obsolete.
5566
28a93f5a
PM
55672002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5568
5569 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5570 found is not inside a section.
5571
be006b8b
KB
55722002-07-15 Kevin Buettner <kevinb@redhat.com>
5573
5574 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5575 strerror().
5576 (pdc_realloc): Use xrealloc() instead of realloc().
5577
14fa3751
KB
55782002-07-15 Kevin Buettner <kevinb@redhat.com>
5579
5580 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5581 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5582 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5583 macros.
5584
42cc437f
KB
55852002-07-15 Kevin Buettner <kevinb@redhat.com>
5586
5587 * aix-thread.c (ptrace_check): Eliminate goto.
5588 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5589 problem.
5590
8e2c28d4
KB
55912002-07-15 Kevin Buettner <kevinb@redhat.com>
5592
5593 * aix-thread.c (gdbcmd.h): Include.
5594 (DEBUG, DBG, DBG2, dbg): Eliminate.
5595 (debug_aix_thread): New static global.
5596 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5597 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5598 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5599 invocations to DBG and DBG2 macros to test against
5600 ``debug_aix_thread'' and call fprintf_unfiltered().
5601 (_initialize_aix_thread): Add new command "set debug aix-thread".
5602
30413464
AC
56032002-07-15 Andrew Cagney <ac131313@redhat.com>
5604
5605 From Gerhard Tonn <TON@de.ibm.com>:
5606 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5607 instead of supply_register.
5608
7c43edc1
AC
56092002-07-15 Andrew Cagney <ac131313@redhat.com>
5610
5611 * dwarf2cfi.c: Include "gdb_assert.h".
5612 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5613 non-NULL.
5614 (update_context): Do not use __func__. Add missing ``break''.
5615 (update_context): Do not use __func__.
5616
9364a0ef
EZ
56172002-07-15 Elena Zannoni <ezannoni@redhat.com>
5618
5619 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5620 and its setting. Set gdbarch instruction printing functions
5621 directly. For non-rs6000 case use new function
5622 gdb_print_insn_powerpc.
5623 (gdb_print_insn_powerpc): New function.
5624
3fbeef0b
AC
56252002-07-13 Andrew Cagney <ac131313@redhat.com>
5626
92eb23c5 5627 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
5628 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5629 * configure.tgt: Mark d30v-*-* as obsolete.
5630 * d30v-tdep.c: Mark file as obsolete.
5631 * config/d30v/d30v.mt: Ditto.
5632 * config/d30v/tm-d30v.h: Ditto.
5633
aacb1f0a
AS
56342002-07-13 Aidan Skinner <aidan@velvet.net>
5635
5636 * ada-tasks.c (add_task_entry): replace calls to
5637 malloc() with xmalloc
5638 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5639
5640 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5641 ada_finish_decode_line_1, all_sals_for_line
5642 ada_breakpoint_rewrite): replace calls to free() with xfree()
5643
c11d79f2
KB
56442002-07-12 Kevin Buettner <kevinb@redhat.com>
5645
5646 From Nicholas Duffek (with minor changes by Martin Hunt,
5647 Louis Hamilton, and Kevin Buettner):
5648 * aix-thread.c: New file.
5649
8e19ed76
PS
56502002-07-12 Petr Sorfa <petrs@caldera.com>
5651
5652 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5653 complaint for invalid attribute class or form.
5654 (read_func_scope): DW_AT_frame_base
5655 better handling of DW_AT_block*.
5656 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5657 better handling of DW_AT_block*.
5658 (read_common_block): DW_AT_location
5659 better handling of DW_AT_block*.
5660 (read_partial_die): DW_AT_location better handling
5661 of DW_AT_block*.
5662 (new_symbol): DW_AT_external better handling of
5663 DW_AT_block*. Proper initialization of variable
5664 "addr".
5665 (attr_form_is_block): New function that returns true
5666 if the attribute's form is of DW_FORM_block*.
5667
295401f7
DJ
56682002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5669
5670 * valops.c (find_method_list): Remove comment about
5671 removed STATIC_MEMFUNCP argument.
5672 (value_find_oload_method_list): Likewise.
5673
e42dc924
KB
56742002-07-12 Kevin Buettner <kevinb@redhat.com>
5675
5676 From Nicholas Duffek:
5677 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5678 target_new_objfile_hook.
5679
6904b546
KB
56802002-07-12 Kevin Buettner <kevinb@redhat.com>
5681
5682 From Nicholas Duffek:
5683 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5684 csect.
5685
53fe9346
AC
56862002-07-12 Andrew Cagney <cagney@redhat.com>
5687
5688 * MAINTAINERS: Mention --enable-sim-build-warnings.
5689 (m68hc11-elf): Disable sim build warnings.
5690 (m32r-elf): Mark as broken obsolete candidate.
5691 (x86_64-linux-gnu): Mark as buildable with -Werror.
5692 (arm-elf): Change -w to ``,'' which enables warnings but not
5693 -Werror.
5694
af5f3db6
AC
56952002-07-12 Andrew Cagney <ac131313@redhat.com>
5696
5697 * bcache.h: Update copyright.
5698 (struct bstring, struct bcache): Move definition to "bcache.c".
5699 Replaced by opaque declaration.
5700 (bcache_xfree): Replace free_bcache.
5701 (bcache_xmalloc, bcache_memory_used): Declare.
5702
5703 * bcache.c: Update copyright.
5704 (struct bstring, struct bcache): Moved to here from "bcache.h".
5705 Update comments.
5706 (bcache_xmalloc, bcache_memory_used): New functions.
5707 (bcache_xfree): Replace function free_bcache.
5708
5709 * Makefile.in (objfiles.o): Add $(bcache_h).
5710 (objfiles_h): Remove $(bcache_h).
5711 (symfile.o): Add $(bcache_h).
5712
5713 * symmisc.c: Update copyright.
5714 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5715 (print_objfile_statistics): Use bcache_memory_used.
5716
5717 * symfile.c: Include "bcache.h".
5718 (reread_symbols): Use bcache_xfree.
5719 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5720 (add_psymbol_to_list): Pass psymbol_cache by value.
5721 (add_psymbol_with_dem_name_to_list): Ditto.
5722
5723 * objfiles.h: Update copyright.
5724 (struct bcache): Declare opaque. Do not include "bcache.h".
5725 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5726 bcache'' pointers.
5727 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5728
5729 * objfiles.c: Include "bcache.h". Update copyright.
5730 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5731 macro_cache.
5732 (free_objfile): Use bcache_xfree.
5733
444199e7
GS
57342002-07-11 Grace Sainsbury <graces@redhat.com>
5735
5736 * monitor.c (monitor_fetch_register): Make name a constant.
5737 (monitor_store_register): Same.
5738
261397f8
DJ
57392002-07-11 Daniel Jacobowitz <drow@mvista.com>
5740
5741 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5742 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5743 (finish_block) For non-function blocks, hash the symbol table. For
5744 function blocks, mark the symbol table as unhashed.
5745 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5746 (msymbol_hash_iw): Likewise.
5747 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5748 value.
5749 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5750 (lookup_minimal_symbol): Likewise for both.
5751 * symtab.h (struct block): Add `hashtable' flag. Comment the
5752 hashtable.
5753 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5754 (ALL_BLOCK_SYMBOLS): Update.
5755 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5756 (struct symbol): Add `hash_next' pointer.
5757 * symtab.c (lookup_block_symbol): Search using the hash table when
5758 possible.
5759 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5760 (search_symbols, find_addr_symbol): Likewise.
5761
5762 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5763 (read_dst_symtab): Likewise.
5764 * jv-lang.c (get_java_class_symtab): Likewise.
5765 * mdebugread.c: Include "gdb_assert.h".
5766 (shrink_block): Assert that the block being modified is not hashed.
5767 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5768 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5769 symbols.
5770 (dump_symtab): Recognize hashed blocks.
5771 * printcmd.c (print_frame_args): Assert that function blocks do not
5772 have hashed symbol tables.
5773 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5774 (fill_in_ada_prototype, debug_print_block): Likewise.
5775 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5776
6f0eaa01
CV
57772002-07-11 Corinna Vinschen <vinschen@redhat.com>
5778
5779 * stack.c (print_frame): Use result of frame_address_in_block()
5780 instead of fi->pc when evaluating symbols.
5781 (backtrace_command_1): Ditto.
5782
a208b0cb
AC
57832002-07-11 Andrew Cagney <cagney@redhat.com>
5784
5785 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5786 Make static.
5787
5788 * arm-tdep.c (arm_register_name): Make return type constant.
5789
a6b6b089
AC
57902002-07-10 Andrew Cagney <ac131313@redhat.com>
5791
5ae5f592
AC
5792 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5793 prototype.
5794 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5795 * s390-tdep.c (s390_fp_regnum): Ditto.
5796 (s390_read_fp): Ditto.
5797 (s390_pop_frame): Ditto.
5798 (_initialize_s390_tdep): Ditto.
5799 * remote.c (get_remote_state): Ditto.
5800 * procfs.c (mappingflags): Ditto.
5801 * memattr.c (_initialize_mem): Ditto.
5802 * mcore-tdep.c (mcore_pop_frame): Ditto.
5803 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5804 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5805 * language.c (set_case_str): Ditto.
5806 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5807 * frv-tdep.c (new_variant): Ditto.
5808 (frv_stopped_data_address): Ditto.
5809 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5810 (context_alloc): Ditto.
5811 (frame_state_alloc): Ditto.
5812 (unwind_tmp_obstack_init): Ditto.
5813 (unwind_tmp_obstack_free): Ditto.
5814 (cfi_read_fp): Ditto.
5815 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5816 (cris_pop_frame): Ditto.
5817 * c-lang.c (scanning_macro_expansion): Ditto.
5818 (finished_macro_expansion): Ditto.
5819 (c_preprocess_and_parse): Ditto.
5820 * gdbarch.sh: Ditto.
5821 * gdbarch.h, gdbarch.c: Regenerate.
5822 * config/mn10200/tm-mn10200.h: Adjust indentation.
5823 * target.c: Adjust indentation.
5824 * symtab.h: Adjust indentation.
5825 * stabsread.h: Adjust indentation.
5826 * remote-es.c: Adjust indentation.
5827 * os9kread.c: Adjust indentation.
5828
58292002-07-10 Andrew Cagney <ac131313@redhat.com>
5830
a6b6b089
AC
5831 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5832 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5833
a1789893
GS
58342002-07-10 Grace Sainsbury <graces@redhat.com>
5835
5836 * NEWS: Mention m68k, mcore multi-arching.
5837 * MAINTAINERS: Change status of m68k, mcore to reflect
5838 multi-arching.
5839
02f0d45d
DJ
58402002-07-10 Daniel Jacobowitz <drow@mvista.com>
5841
5842 * valops.c (find_overload_match): Free oload_syms.
5843
f15f768e
JB
58442002-07-09 Joel Brobecker <brobecker@gnat.com>
5845
5846 Define HAVE_SYS_PROC_H if sys/proc.h exists
5847 * configure.in: Add check for sys/proc.h
5848 * config.in: Regenerate.
5849 * configure: Regenerate.
5850
902a7139
GS
58512002-07-09 Grace Sainsbury <graces@redhat.com>
5852
5853 * config/m68k/tm-m68k.h: Remove macros wrapped in
5854 #if !GDB_MULTI_ARCH.
5855
a534e424
AC
58562002-07-08 Andrew Cagney <ac131313@redhat.com>
5857
5858 * config.in, configure: Regenerate.
5859
9b94f7bf
MK
58602002-07-08 Mark Kettenis <kettenis@gnu.org>
5861
5862 * dwarf2cfi.c: Include "gcore.h".
5863 (execute_stack_op): Fix implementation of the
5864 DW_OP_deref and DW_OP_deref_size operators by letting do their
5865 lookup in the target.
5866
1d34db41
MK
58672002-07-07 Mark Kettenis <kettenis@gnu.org>
5868
5869 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5870 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5871 tdep->sc_sp_offset.
5872
79d5b63a
DJ
58732002-07-05 Daniel Jacobowitz <drow@mvista.com>
5874
5875 Fix PR gdb/595, gdb/602
5876 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5877 Don't call value_cast, just read the vtable pointer; update comments
5878 to match.
5879
3bb912e8
GS
58802002-07-05 Grace Sainsbury <graces@redhat.com>
5881
5882 * config/mcore/tm-mcore.h: Remove file.
5883 * config/mcore/mcore.mt: Remove definition of TM_FILE
5884 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5885
ca39387d
MK
58862002-07-05 Mark Kettenis <kettenis@gnu.org>
5887
5888 * i386bsd-tdep.c: Include "gdb_string.h".
5889
efdc1108
GS
58902002-07-04 Grace Sainsbury <graces@redhat.com>
5891
5892 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5893 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5894 mcore-tdep.
5895 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5896 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5897 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5898 (RETVAL_REGNUM): Move macros from tm-mcore.h
5899 (mcore_reg_struct_has_addr): New function.
5900 (mcore_gdbarch_init): Added initializations for the macros removed
5901 from tm-mcore.h.
5902
bb21884d
MK
59032002-07-04 Mark Kettenis <kettenis@gnu.org>
5904
5905 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5906 traditonal string branding within the ELF header.
5907
228c6d41
DJ
59082002-07-04 Daniel Jacobowitz <drow@mvista.com>
5909
5910 * symtab.c (remove_params): New function.
5911 (make_symbol_overload_list): Use it instead of cplus_demangle.
5912 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5913
2404952e
MK
59142002-07-04 Mark Kettenis <kettenis@gnu.org>
5915
e5e4acad
MK
5916 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5917
baadce09
MK
5918 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5919 New variables.
5920 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5921 and tdep->sigtramp_end.
5922 * i386obsd-nat.c: New file.
5923 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5924
2404952e
MK
5925 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5926 Don't call get_current_frame().
5927
9b4f1ba7
PM
59282002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5929
5930 * i386-nat.c (child_post_startup_inferior): New function
5931 calling i386_cleanup_dregs if
5932 I386_USE_GENERIC_WATCHPOINTS is defined.
5933 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5934 conditional to acknowledge that i386-nat.c has its
5935 own child_post_startup_inferior function.
5936
c0d1d883
MK
59372002-07-04 Mark Kettenis <kettenis@gnu.org>
5938
00f8375e
MK
5939 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5940 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5941 instead of MAX_REGISTER_RAW_SIZE.
5942 (i386_extract_return_value, i386_extract_struct_value_address):
5943 Convert to use regcache.
5944 (i386_gdbarch_init): Set max_register_raw_size and
5945 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5946 Set extract_return_value and extract_struct_value_address instead
5947 of their deprecated variants.
5948
c0d1d883
MK
5949 Convert i386 target to generic dummy frames.
5950 * i386-tdep.c: Include "symfile.h".
5951 (i386_frameless_signal_p): Consider a function to be frameless if
5952 the pc points at the first instruction of the function.
5953 (i386_frame_chain): Handle (generic) call dummies.
5954 (i386_frame_saved_pc): Likewise.
5955 (i386_frame_init_saved_regs): Remove code dealing with call
5956 dummies on the stack.
5957 (i386_push_dummy_frame): Removed.
5958 (i386_call_dummy_words): Removed.
5959 (i386_fix_call_dummy): Removed.
5960 (i386_push_return_address): New function.
5961 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
5962 parameter, and don't call get_current_frame.
5963 (i386_pop_frame): New function.
5964 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
5965 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
5966 entry_point_address, set call_dummy_breakpoint_offset to 0, set
5967 call_dummy_length to 0, set call_dummy_words to NULL, set
5968 sizeof_call_dummy_words to 0, set fix_call_dummy to
5969 generic_fix_call_dummy, set pc_in_call_dummy to
5970 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
5971 generic_push_dummy_frame, set push_return_address to
5972 i386_push_return_address and set frame_chain_valid to
5973 generic_file_frame_chain_valid.
5974
049ee0e4
AC
59752002-07-03 Andrew Cagney <ac131313@redhat.com>
5976
5977 * gdbarch.sh (struct regcache): Add opaque declaration.
5978 (EXTRACT_RETURN_VALUE): New architecture method.
5979 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
5980 * gdbarch.h, gdbarch.c: Regenerate.
5981 * arch-utils.c (legacy_extract_return_value): New function.
5982 * arch-utils.h (legacy_extract_return_value): Declare.
5983 * values.c (value_being_returned): Re-enable code handling
5984 EXTRACT_STRUCT_VALUE_ADDRESS. Move
5985 deprecated_grub_regcache_for_registers call to block handling
5986 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
5987 (EXTRACT_RETURN_VALUE): Do not define.
5988
4e0d9804
GS
59892002-07-03 Grace Sainsbury <graces@redhat.com>
5990
5991 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
5992 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
5993 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
5994 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
5995 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
5996 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
5997 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
5998 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
5999 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6000 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6001 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6002 argument so the function fits the prototype in the architecture
6003 vector.
6004 (mcore_pop_frame): Remove argument so the function fits the
6005 prototype. Use get_current_frame instead of the argument.
6006 (mcore_push_arguments): Change type of struct_return so the
6007 function can be used in the architecture vector.
6008 (mcore_store_struct_return): Add.
6009 (mcore_frame_init_saved_regs): Add.
6010 (mcore_gdbarch_init): Add function calls to replace the macros
6011 removed from tm-mcore.h
6012
36160dc4
AC
60132002-07-03 Andrew Cagney <ac131313@redhat.com>
6014
6015 * infcmd.c (print_return_value): Remove compatibility code calling
6016 deprecated_grub_regcache_for_registers.
6017
6018 * values.c: Include "regcache.h".
6019 (value_being_returned): Update. Use
6020 deprecated_grub_regcache_for_registers to extract the register
6021 buffer address.
6022 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6023 ``struct regcache''.
6024 * Makefile.in (values.o): Add dependency on $(regcache_h).
6025
6026 * inferior.h (run_stack_dummy): Change type of second parameter to
6027 a ``struct regcache''.
6028 * valops.c (hand_function_call): Change type of retbuf to ``struct
6029 regcache''. Allocate using regcache_xmalloc, clean using
6030 make_cleanup_regcache_xfree.
6031 * infcmd.c (run_stack_dummy): Update. Use
6032 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6033
6034 * regcache.c (do_regcache_xfree): New function.
6035 (make_cleanup_regcache_xfree): New function.
6036 * regcache.h (make_cleanup_regcache_xfree): Declare.
6037
e64d9b3d
MH
60382002-07-03 Martin M. Hunt <hunt@redhat.com>
6039
4dd79c29
MH
6040 * event-top.c (command_line_handler): Don't read past
6041 beginning of buffer.
e64d9b3d 6042
4dd79c29
MH
60432002-07-03 Martin M. Hunt <hunt@redhat.com>
6044
e64d9b3d
MH
6045 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6046 struct frame_id.
6047 (varobj_create): Store frame_id for root.
6048 (varobj_gen_name): Use xasprintf.
6049 (varobj_update): Save and restore frame using get_frame_id() and
6050 frame_find_by_id().
6051 (create_child): Use xasprintf.
6052 (new_root_variable): Initialize frame_id.
6053 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6054 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6055 to prevent memory leak.
6056
26e6c56a
AC
60572002-07-03 Andrew Cagney <ac131313@redhat.com>
6058
6059 * valops.c (hand_function_call): Move declaration of retbuf to
6060 start of function, allocate using malloc, add a cleanup but before
6061 the inf_status cleanup, cleanup the buffer. Rename local variable
6062 old_chain to inf_status_cleanup.
6063
f436dd25
MH
60642002-07-03 Martin M. Hunt <hunt@redhat.com>
6065
6066 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6067
6068 * cli/cli-decode.c (cmd_func_p): New function.
6069 (cmd_func): New function.
6070
6071 * command.h: Add cmd_func() and cmd_func_p().
6072
4cfe2084
GS
60732002-07-03 Grace Sainsbury <graces@redhat.com>
6074
6075 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6076 (REGISTER_SIZE): Remove.
6077 (MAX_REGISTER_RAW_SIZE): Remove.
6078 (REGISTER_VIRTUAL_TYPE): Remove.
6079 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6080 (REGISTER_NAME): Remove.
6081 (USE_GENERIC_DUMMY_FRAMES): Remove.
6082 (CALL_DUMMY): Remove.
6083 (CALL_DUMMY_START_OFFSET): Remove.
6084 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6085 (CALL_DUMMY_LOCATION): Remove.
6086 (FIX_CALL_DUMMY): Remove.
6087 (CALL_DUMMY_ADDRESS): Remove.
6088 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6089 (SAVE_DUMMY_FRAME_TOS): Remove.
6090 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6091 (mcore_register_virtual_type): New function.
6092 (mcore_register_byte): New function.
6093 (mcore_register_size): New function.
6094 (mcore_register_name): New function.
6095 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6096 macros removed from tm-mcore.h.
6097 (mcore_dump_tdep): Add.
6098 (_initialize_mcore_tdep): Add gdbarch_register call.
6099
4fd667e9
MK
61002002-07-03 Mark Kettenis <kettenis@gnu.org>
6101
6102 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6103 frameless_look_for_prologue, such that we actually call this
6104 function.
6105
42f99ac2
JB
61062002-07-02 Joel Brobecker <brobecker@gnat.com>
6107
6108 * frame.h (frame_address_in_block): New function.
6109
6110 * blockframe.c (frame_address_in_block): New function extracted
6111 from get_frame_block().
6112 (get_frame_block): Use frame_address_in_block().
6113 (block_innermost_frame): Use frame_address_in_block() to match
6114 the frame pc address against the block boundaries rather than
6115 the frame pc directly. This prevents a failure when a frame pc
6116 is actually a return-address pointing immediately after the end
6117 of the given block.
6118
103a1597 61192002-07-02 Grace Sainsbury <graces@redhat.com>
83b4a0fe
GS
6120
6121 * MAINTAINERS: Add self under write after approval.
6122
61232002-07-02 Grace Sainsbury <graces@redhat.com>
6124
103a1597
GS
6125 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6126 used in architecture vector. The default is
6127 m68k_local_breakpoint_from_pc.
6128 (m68k_local_breakpoint_from_pc): Add.
6129 (enum): Add register numbers from tm-m68k.h.
6130 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6131 vector.
6132 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6133 GDB_MULTI_ARCH_PARTIAL.
6134 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6135 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6136 m68k-tdep.c.
6137 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6138 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6139 to enum in m68k-tdep.c
6140
7a5a0534
JB
61412002-07-02 Joel Brobecker <brobecker@gnat.com>
6142
6143 * solib-osf.c (open_map): Compute the list of shared libraries
6144 loaded by the inferior, rather than the list of libraries loaded
6145 by GDB itself. Otherwise, GDB ends up reading the symbols from
6146 the wrong shared libraries...
6147
6f558d74
MK
61482002-07-02 Mark Kettenis <kettenis@gnu.org>
6149
b7d15bf7
MK
6150 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6151 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6152 macros.
6153 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6154 Remove functions.
6155 (FRAMELESS_SIGNAL): Remove function.
6156 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6157 i386_linux_saved_pc_after_call): Removed.
6158 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6159 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6160 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6161
6bff26de
MK
6162 * i386-tdep.c (i386_frameless_signal_p): New function.
6163 (i386_frame_chain): Deal with frameless signals.
6164 (i386_sigtramp_saved_sp): New function.
6165 (i386_frame_saved_pc): Deal with frameless signals.
6166 (i386_saved_pc_after_call): Make sure the correct value is
6167 returned just after entry into a sigtramp.
6168 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6169 i386fbsd4_sc_sp_offset): New variables.
6170 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6171 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6172 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6173 similiar to what we already did for sc_pc_offset.
6174 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6175 tdep->sc_sp_offset.
6176
6f558d74
MK
6177 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6178
145564b7
ML
61792002-07-02 Michal Ludvig <mludvig@suse.cz>
6180
6181 * config/i386/tm-x86-64linux.h: New.
6182 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6183 definitions.
6184 * config/i386/nm-x86-64.h: Rename to ...
6185 * config/i386/nm-x86-64linux.h: ... this one.
6186 * config/i386/x86-64linux.mh: Reflect the above change.
6187
3a1e71e3
MK
61882002-07-01 Mark Kettenis <kettenis@gnu.org>
6189
21d0e8a4
MK
6190 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6191 with sigcontext_addr. Add sc_sp_offset.
6192 (i386bsd_sigtramp_saved_pc): Remove prototype.
6193 (i386bsd_sicontext_addr): Add prototype.
6194 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6195 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6196 (i386_svr4_sigtramp_saved_pc): Removed.
6197 (i386_svr4_sigcontext_addr): New function.
6198 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6199 Initialize tdep->sigcontext_addr instead. Initialize
6200 tdep->sc_pc_offset and tdep->sc_sp_offset.
6201 (i386_gdbarch_init): Likewise.
6202 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6203 any more.
6204 (i386bsd_sigtramp_saved_pc): Remove function.
6205 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6206 Initialize tdep->sigcontext_addr instead. Initialize
6207 tdep->sc_pc_offset.
6208 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6209 of tdep->sigtramp_saved_pc.
6210 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6211 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6212 instead.
6213
3a1e71e3
MK
6214 * i386-tdep.c (i386_frameless_function_invocation,
6215 i386_frame_num_args, i386_frame_init_saved_regs,
6216 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6217 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6218 i386_extract_return_value, i386_store_return_value,
6219 i386_extract_struct_value_address, i386_register_virtual_type,
6220 i386_register_convertible, i386_register_convert_to_virtual,
6221 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6222 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6223 static.
6224
52e9098c
MK
62252002-07-01 Mark Kettenis <kettenis@gnu.org>
6226
77b13a25
MK
6227 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6228
52e9098c
MK
6229 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6230 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6231 this macro. Include "value.h".
6232
1b372fff
AS
62332002-06-30 Aidan Skinner <aidan@velvet.net>
6234
6235 * ada-exp.tab.c: remove as it's a generated file
6236 * ada-lex.c: remove as it's a generated file
6237
9c5045b5
MK
62382002-06-30 Mark Kettenis <kettenis@gnu.org>
6239
4a93c5bb
MK
6240 * config/i386/tm-i386.h (struct frame_info, struct
6241 frame_saved_regs, struct value, struct type): Remove forward
6242 declarations.
6243
322d4fe0
MK
6244 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6245 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6246 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6247 (FILL_FPXREGSET): Define.
6248
fdd8263d
MK
6249 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6250
482e577b
MK
6251 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6252 i[3456]86-*-netbsd* case.
6253 * config/i386/tm-obsd.h: Removed.
6254 * config/i386/obsd.mt: Removed.
6255 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6256 core-aout.o.
6257 (MH_CFLAGS): Add -DYYDEBUG=0.
6258
6916549a
MK
6259 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6260 i386nbsd_sc_pc_offset on OpenBSD too.
6261
9c5045b5
MK
6262 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6263 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6264 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6265 define.
6266 * i386bsd-tdep.c: Include "arch-utils.h".
6267 (i386bsd_aout_in_solib_call_trampoline): New function.
6268 (i386bsd_init_abi): Set in_solib_call_trampoline to
6269 i386bsd_aout_in_solib_call_trampoline.
6270 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6271 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6272
aa84d1bb
AC
62732002-06-28 Andrew Cagney <ac131313@redhat.com>
6274
6275 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6276 (struct obstack, struct bcache): Add opaque declarations.
6277 * Makefile.in (macrotab_h): Update
6278
b4d83933
AC
62792002-06-28 Andrew Cagney <ac131313@redhat.com>
6280
6281 * blockframe.c (generic_find_dummy_frame): Change return type to
6282 ``struct regcache''.
6283 (struct dummy_frame): Replace field ``registers'' with regcache, a
6284 struct regcache object.
6285 (generic_find_dummy_frame): Update.
6286 (generic_push_dummy_frame): Update. Use regcache_xfree,
6287 regcache_xmalloc and regcache_cpy.
6288 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6289 regcache_xfree.
6290 (deprecated_generic_find_dummy_frame): Update.
6291 (generic_read_register_dummy): Update. Use
6292 regcache_read_as_address.
6293 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6294 (generic_get_saved_register): Update. Use regcache_read.
6295
08c0b5bc
AC
62962002-06-28 Andrew Cagney <ac131313@redhat.com>
6297
6298 * Makefile.in (objfiles_h): Add $(bcache_h).
6299 * objfiles.h: Include "bcache.h".
6300
6301 * Makefile.in (symtab_h): Remove $(bcache_h).
6302 * symtab.h: Do not include "bcache.h".
6303
1f89801a
AC
63042002-06-28 Andrew Cagney <ac131313@redhat.com>
6305
6306 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6307 generic_func_frame_chain_valid.
6308
b9644b58
DB
63092002-06-28 David O'Brien <obrien@FreeBSD.org>
6310
6311 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6312 * config/i386/tm-fbsd.h: Likewise.
6313
dd486634
AC
63142002-06-28 Andrew Cagney <ac131313@redhat.com>
6315
6316 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6317 generic_unwind_get_saved_register.
6318
0b434a00
AC
63192002-06-27 Andrew Cagney <ac131313@redhat.com>
6320
6321 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6322 * regcache.c (supply_register): Add missing argument to
6323 register_buffer call.
6324
f30e5a77
AC
63252002-06-27 Andrew Cagney <ac131313@redhat.com>
6326
6327 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6328 Solaris /bin/grep does not not like it. From Peter Schauer.
6329
9f064c95
TT
63302002-06-26 Tom Tromey <tromey@redhat.com>
6331
6332 * command.h (add_setshow_cmd): Declare.
6333 (add_setshow_cmd_full): Declare.
6334 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6335 returns void. Use add_setshow_cmd_full.
6336 (add_setshow_cmd_full): New function.
6337 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6338 (add_setshow_boolean_cmd): Likewise.
6339
099c7589
JT
63402002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6341
6342 * config/vax/tm-vax.h: Protect from multiple inclusion.
6343 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6344 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6345 * config/vax/tm-vaxbsd.h: ...here. New file.
6346 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6347
1d049c5e
JT
63482002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6349
6350 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6351 (BELIEVE_PCC_PROMOTION): Remove.
6352 (AP_REGNUM): Move to...
6353 * config/vax/nm-vax.h: ...here.
6354 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6355 (vax_breakpoint_from_pc): New function.
6356 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6357 and gdbarch_believe_pcc_promotion.
6358
4791e091
JT
63592002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6360
6361 * Makefile.in (vax_tdep_h): Define.
6362 (vax-tdep.o): Use $(vax_tdep_h).
6363 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6364 (vax_dump_tdep): New function.
6365 (_initialize_vax_tdep): Register vax_dump_tdep.
6366 * vax-tdep.h: Include osabi.h.
6367 (struct gdbarch_tdep): New.
6368
da130f98
AC
63692002-06-26 Andrew Cagney <cagney@redhat.com>
6370
6371 * frame.h (deprecated_generic_find_dummy_frame): Rename
6372 generic_find_dummy_frame.
6373 * blockframe.c (generic_find_dummy_frame): Make static.
6374 (deprecated_generic_find_dummy_frame): New function.
6375 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6376 generic_find_dummy_frame with deprecated_find_dummy_frame.
6377 (sh64_nofp_frame_init_saved_regs): Ditto.
6378 (sh_fp_frame_init_saved_regs): Ditto.
6379 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6380 (s390_frame_chain): Ditto.
6381 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6382
6300c360
GS
63832002-06-26 Grace Sainsbury <graces@redhat.com>
6384
6385 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6386 gdbarch vector are at the top.
6387 (NUM_REGS): Remove.
6388 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6389 (FRAME_ARGS_ADDRESS): Remove.
6390 (FRAME_LOCALS_ADDRESS): Remove.
6391 (FRAME_NUM_ARGS): Remove.
6392 (FRAME_ARGS_SKIP): Remove.
6393 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6394 (m68k_gdbarch_init): Add gdbarch initializations for macros
6395 undefined in tm-m68k.h
6396
1c617db8
GS
63972002-06-26 Grace Sainsbury <graces@redhat.com>
6398
6399 * monitor.h: Add the function regname to monitor_ops
6400 structure. This way NUM_REGS does not have to be a constant.
6401 * monitor.c (monitor_fetch_register): Added support for regname
6402 function. The function is called if the array regnames is NULL.
6403 (monitor_store_register): Same.
da130f98
AC
6404 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6405 regnames array.
1c617db8
GS
6406 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6407 cpu32bug_cmds.regname to point to new function.
6408 * abug-rom.c (abug_regname): Same as above.
6409 (init_abug_cmds): Same.
6410 * dbug-rom.c (dbug_regname): Same as above.
6411 (init_dbug_cmds): Same.
6412 * remote-est.c (est_regname): Same.
6413 (init_est_cmds): Same.
6414 * rom68k-rom.c (rom68k_regname): Same.
6415 (init_rom68k_cmds): Same.
6416
ea9365bb
TT
64172002-06-25 Tom Tromey <tromey@redhat.com>
6418
6419 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6420
72cec141
AC
64212002-06-25 Andrew Cagney <cagney@redhat.com>
6422
6423 * infrun.c (stop_registers): Change variable's type to ``struct
6424 regcache'''.
6425 (xmalloc_inferior_status): Delete function.
6426 (free_inferior_status): Delete function.
6427 (normal_stop): Use regcache_cpy.
6428 (struct inferior_status): Change type of fields ``stop_registers''
6429 and ``registers'' to ``struct regcache''.
6430 (write_inferior_status_register): Use regcache_write.
6431 (save_inferior_status): Instead of calling
6432 xmalloc_inferior_status, allocate the inf_status buffer directly.
6433 Use regcache_dup_no_passthrough and regcache_dup to save the
6434 buffers.
6435 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6436 Replace the stop_registers regcache instead of overriding it. Use
6437 regcache_xfree. Instead of calling free_inferior_status, xfree
6438 the buffer directly.
6439 (discard_inferior_status): Use regcache_xfree. Instead of calling
6440 free_inferior_status, xfree the buffer directly.
6441 (build_infrun): Use regcache_xmalloc.
6442 (_initialize_infrun): Delete redundant call to build_infrun.
6443
6444 * Makefile.in (infcmd.o): Add $(regcache_h).
6445
6446 * infcmd.c: Include "regcache.h".
6447 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6448 obtain the address of `stop_registers' register buffer.
6449 (print_return_value): Ditto.
6450
6451 * inferior.h (struct regcache): Add opaque declaration.
6452 (stop_registers): Change variable's declared type to ``struct
6453 regcache''.
6454
defc6f8c
TT
64552002-06-24 Tom Tromey <tromey@redhat.com>
6456
c0e624e7
TT
6457 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6458 * target.c (initialize_targets): Fixed typo in
6459 trust-readonly-sections `show' documentation.
6460
defc6f8c
TT
6461 * main.c: Marked all strings with _().
6462
2b236d82
DH
64632002-06-24 Don Howard <dhoward@redhat.com>
6464
6465 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6466 that means max CORE_ADDR+1.
6467 (lookup_mem_region): Ditto.
6468 (mem_info_command): Ditto.
6469
942dc0e9
GS
64702002-06-24 Grace Sainsbury <graces@redhat.com>
6471
6472 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6473 (REGISTER_BYTES_OK): Remove.
6474 (REGISTER_BYTES): Remove.
6475 (STORE_STRUCT_RETURN): Remove.
6476 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6477 (STORE_RETURN_VALUE): Remove.
6478 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6479 (FRAME_CHAIN): Remove.
6480 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6481 (FRAME_SAVED_PC): Remove.
6482 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6483 (m68k_store_struct_return): Add.
6484 (m68k_deprecated_extract_return_value): Add.
6485 (m68k_deprecated_extract_struct_value_address): Add.
6486 (m68k_store_return_value): Add.
6487 (m68k_frame_chain): Add.
6488 (m68k_frameless_function_invocation): Add.
6489 (m68k_frame_saved_pc): Add.
6490 (m68k_gdbarch_init): added set_gdbarch calls for new
6491 functions and deleted macros.
6492
03c30d4d
TT
64932002-06-23 Tom Tromey <tromey@redhat.com>
6494
6495 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6496 (ALLDEPFILES): Likewise.
6497 (udiheaders): Removed.
6498 (udip2soc.o): Likewise.
6499 (udi2go32.o): Likewise.
6500 (udr.o): Likewise.
6501 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6502
37e71372
AC
65032002-06-22 Andrew Cagney <ac131313@redhat.com>
6504
06a6ac57
AC
6505 * infrun.c (_initialize_infrun): Delete unnecessary call to
6506 build_infrun.
6507
37e71372
AC
6508 * regcache.h: Update comments describing the regcache_cpy family
6509 of functions.
6510 (regcache_save, regcache_restore): Delete declaration.
6511 (regcache_save_no_passthrough): Delete declaration.
6512 (regcache_restore_no_passthrough): Delete declaration.
6513 * regcache.c (regcache_save): Delete function.
6514 (regcache_save_no_passthrough): Delete function.
6515 (regcache_restore): Delete function.
6516 (regcache_restore_no_passthrough): Delete function.
6517
78f6d055
AC
65182002-06-21 Andrew Cagney <ac131313@redhat.com>
6519
6520 * config/m68k/tm-m68k.h: Fix typo.
6521 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6522 (m68k_frame_init_saved_regs): Declare.
6523
78b119cb
JB
65242002-06-21 Jim Blandy <jimb@redhat.com>
6525
6526 Remove some vestiges of Harris 88k support.
6527 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6528 register numbering quirk.
6529 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6530 odd symbols occurring in Harris 88k ELF targets.
6531
0fbb3da7
TT
65322002-06-21 Tom Tromey <tromey@redhat.com>
6533
6534 * gdb_locale.h: New file.
6535 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6536 (defs_h): Added gdb_locale.h.
6537 * configure, config.in: Rebuilt.
6538 * configure.in (PACKAGE): Define.
6539 * defs.h: Include gdb_locale.h.
6540 * main.c (captured_main): Call setlocale, bindtextdomain,
6541 textdomain.
6542
456f8b9d
DB
65432002-06-21 Dave Brolley <brolley@redhat.com>
6544
6545 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6546 * config/frv/frv.mt: New file.
6547 * config/frv/tm-frv.h: New file.
6548 * configure.tgt: Support frv-*-*.
6549 * Makefile.in (frv-tdep.o): New target.
6550 * frv-tdep.c: New file.
6551 * NEWS: Mention frv.
6552
cdd463f9
DB
65532002-06-21 Dave Brolley <brolley@redhat.com>
6554
6555 * MAINTAINERS: Add self to "Write After Approval" list.
6556
5d3ed2e3
GS
65572002-06-21 Grace Sainsbury <graces@redhat.com>
6558
6559 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6560 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6561 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6562 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6563 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6564
6565 * m68k-tdep.c: Include arch-utils.h
6566 (m68k_register_raw_size): Add.
6567 (m68k_register_virtual_size): Add.
6568 (m68k_register_virtual_type): Add.
6569 (m68k_register_name): Add.
6570 (m68k_stack_align): Add.
6571 (m68k_register_byte): Add.
6572 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6573 tm-m68k.h.
6574
7f8e7424
GS
65752002-06-21 Grace Sainsbury <graces@redhat.com>
6576
a2c6a6d5 6577 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
6578 m68k_find_saved_regs.
6579 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 6580 references to it with frame->saved_regs.
7f8e7424
GS
6581 (m68k_gdbarch_init): Added function calls to initialize the
6582 gdbarch structure.
a2c6a6d5
GS
6583 (m68k_fix_call_dummy): Add.
6584 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6585 (CALL_DUMMY): Remove.
6586 (CALL_DUMMY_LENGTH): Remove.
6587 (CALL_DUMMY_START_OFFSET): Remove.
6588 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6589 (FIX_CALL_DUMMY): Remove.
6590 (PUSH_DUMMY_FRAME): Remove.
6591 (POP_FRAME): Remove.
7f8e7424 6592
f461f5cf
PM
65932002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6594
6595 * parse.c (parse_fprintf): New function used to avoid calls to
6596 fprintf in bison parser generated debug code.
6597 * parser-defs.h: Declaration of new parse_fprintf function.
6598 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6599 Set YYDEBUG to 1 by default.
6600 Set YYFPRINTF as parse_fprintf.
6601
7f0c12ed
ML
66022002-06-21 Michal Ludvig <mludvig@suse.cz>
6603
6604 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6605 encoding anymore.
6606 (pointer_encoding, enum ptr_encoding): New.
6607 (execute_cfa_program): Take care about pointer encoding.
6608 (dwarf2_build_frame_info): Only call parse_frame_info for
6609 .debug_frame and .eh_frame.
6610 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6611 fixed augmentation handling, added relative addressing,
6612 ignore duplicate FDEs. Added comments.
19d833a2 6613 * dwarf2cfi.c: Reindented.
7f0c12ed 6614
87c4a039
EZ
66152002-06-20 Elena Zannoni <ezannoni@redhat.com>
6616
6617 * event-top.c (command_handler): Don't use space_at_cmd_start
6618 unless there is sbrk() on the host. Assign time and space data
6619 to union fields of the appropriate length.
6620
1cf877ad
ML
66212002-06-20 Michal Ludvig <mludvig@suse.cz>
6622
6623 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6624 x86_64_register_name. Return type changed to 'const char *'.
6625 (x86_64_register_name2nr): Rename to x86_64_register_number.
6626 (x86_64_gdbarch_init): Update to reflect the change.
6627 * x86-64-tdep.h: Ditto.
6628 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6629 (supply_fpregset): Ditto.
6630
3fadccb3
AC
66312002-06-19 Andrew Cagney <cagney@redhat.com>
6632
6633 * regcache.h: Update copyright.
6634 (struct regcache, struct gdbarch): Add opaque declarations.
6635 (current_regcache): Declare global variable.
6636 (regcache_read, regcache_write): Add gdbarch parameter.
6637 (regcache_save, regcache_save_no_passthrough)
6638 (regcache_restore, regcache_restore_no_passthrough)
6639 (regcache_dup, regcache_dup_no_passthrough)
6640 (regcache_cpy, regcache_cpy_no_passthrough)
6641 (deprecated_grub_regcache_for_registers)
6642 (deprecated_grub_regcache_for_register_valid)
6643 (regcache_valid_p): Add function declarations.
6644
6645 * regcache.c: Update copyright.
6646 (regcache_descr_handle): New global variable.
6647 (struct regcache_descr): Define.
6648 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6649 (regcache_descr, xfree_regcache_descr): New functions.
6650 (struct regcache): Define.
6651 (regcache_xmalloc, regcache_xfree): New functions.
6652 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6653 (regcache_dup, regcache_dup_no_passthrough): New functions.
6654 (regcache_valid_p, regcache_read_as_address): New functions.
6655 (deprecated_grub_regcache_for_registers): New function.
6656 (deprecated_grub_regcache_for_register_valid): New function.
6657 (current_regcache): New global variable.
6658 (register_buffer): Add regcache parameter. Update calls.
6659 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6660 (read_register_gen, write_register_gen): Update register_buffer
6661 call. Test for legacy_p instead of gdbarch_register_read_p or
6662 gdbarch_register_write_p.
6663 (regcache_collect): Update register_buffer call.
6664 (build_regcache): Rewrite. Use deprecated grub functions.
6665 (regcache_save, regcache_save_no_passthrough): New functions.
6666 (regcache_restore, regcache_restore_no_passthrough): New
6667 functions.
6668 (_initialize_regcache): Create the regcache_data_handle. Swap
6669 current_regcache global variable.
6670
6671 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6672 parameter to regcache_read and regcache_write calls.
6673 (sh4_register_read): Ditto.
6674 (sh64_pseudo_register_read): Ditto.
6675 (sh64_register_read): Ditto.
6676 (sh_pseudo_register_write): Ditto.
6677 (sh4_register_write): Ditto.
6678 (sh64_pseudo_register_write): Ditto.
6679 (sh64_register_write): Ditto.
6680
6681 * defs.h (XCALLOC): Define.
6682
152d9db6
GS
66832002-06-19 Grace Sainsbury <graces@redhat.com>
6684
6685 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6686 * m68k-tdep.c (m68k_gdbarch_init): Added.
6687 (m68k_dump_tdep): Added.
6688
170911c7
DJ
66892002-06-19 Daniel Jacobowitz <drow@mvista.com>
6690
6691 * ada-lang.c (fill_in_ada_prototype): Update comment.
6692
2e4ebe70
DJ
66932002-06-19 Daniel Jacobowitz <drow@mvista.com>
6694
6695 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6696 MIPS_ABI_LAST.
6697 (mips_abi_string, mips_abi_strings): New.
6698 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6699 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6700 tdep->mips_abi_string. Honor mips_abi_string. Default to
6701 O32 if no ABI is found.
6702 (mips_dump_tdep): Use mips_abi_strings.
6703 (mips_abi_update): New function.
6704 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6705 ``set mips abi'' and ``show mips abi''. Check the size of
6706 mips_abi_strings.
6707
16775908
AC
67082002-06-19 Andrew Cagney <cagney@redhat.com>
6709
6710 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6711 constant.
6712
5051bfa4 67132002-06-18 Joel Brobecker <brobecker@gnat.com>
16775908 6714
5051bfa4
JB
6715 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6716 current frame using only the first stack size adjustment. All
6717 subsequent size adjustments are not considered to be part of
6718 the "static" part of the current frame.
6719 Compute the address of the saved registers relative to the
6720 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6721 in use in this frame.
6722
56468235
DH
67232002-06-18 Don Howard <dhoward@redhat.com>
6724
6725 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6726 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6727 suggesting this solution.
6728
0b624158
AC
67292002-06-18 Andrew Cagney <ac131313@redhat.com>
6730
6731 * config/romp/xm-rtbsd.h: Delete file.
6732 * config/romp/rtbsd.mh: Delete file.
6733
221ea385
KS
67342002-06-18 Keith Seitz <keiths@redhat.com>
6735
6736 * breakpoint.c (condition_command): Post breakpoint_modify
6737 when a condition is added to an existing breakpoint.
6738 (commands_command): Likewise for commands.
6739 (set_ignore_count): Likewise for ignore counts.
6740 If no tty, do not simply return, still need to send event
6741 notification.
6742 (ignore_command): Only print a newline if the command came
6743 from a tty.
6744 Don't call breakpoints_changed, since this is now properly
6745 handled by set_ignore_count.
6746
5402eed1
AC
67472002-06-18 Andrew Cagney <cagney@redhat.com>
6748
6749 * MAINTAINERS: Note that cris-elf target can be compiled with
6750 -Werror.
6751 * cris-tdep.c (cris_register_name): Make return type constant.
6752 (cris_breakpoint_from_pc): Ditto.
6753
cc22880b
ML
67542002-06-18 Michal Ludvig <mludvig@suse.cz>
6755
6756 * frame.h (struct frame_info): Change type of context to
6757 'struct context'.
6758
fa88f677
AC
67592002-06-17 Andrew Cagney <cagney@redhat.com>
6760
6761 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6762 pointer.
6763 * gdbarch.h, gdbarch.c: Regenerate.
6764 * config/mips/tm-mips.h (mips_register_name): Update.
6765 * i386-tdep.h (i386_register_name): Update.
6766 * mips-tdep.c (mips_register_name): Update
6767 * alpha-tdep.c (alpha_register_name): Update.
6768 * arch-utils.c (legacy_register_name): Update.
6769 * arch-utils.h (legacy_register_name): Update.
6770 * avr-tdep.c (avr_register_name): Update.
6771 * ia64-tdep.c (ia64_register_name): Update.
6772 * i386-tdep.c (i386_register_name): Update.
6773 * sparc-tdep.c (sparc32_register_name): Update.
6774 (sparc64_register_name): Update.
6775 (sparclite_register_name): Update.
6776 (sparclet_register_name): Update.
6777 * sh-tdep.c (sh_generic_register_name): Update.
6778 (sh_sh_register_name): Update.
6779 (sh_sh3_register_name): Update.
6780 (sh_sh3e_register_name): Update.
6781 (sh_sh_dsp_register_name): Update.
6782 (sh_sh3_dsp_register_name): Update.
6783 (sh_sh4_register_name): Update.
6784 (sh_sh64_register_name): Update.
6785 * s390-tdep.c (s390_register_name): Update.
6786 * rs6000-tdep.c (rs6000_register_name): Update.
6787 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6788 (ns32k_register_name_32382): Update.
6789 * d10v-tdep.c (d10v_ts2_register_name): Update.
6790 (d10v_ts3_register_name): Update.
6791 * xstormy16-tdep.c (xstormy16_register_name): Update.
6792 * vax-tdep.c (vax_register_name): Update.
6793 * v850-tdep.c (v850_register_name): Update.
6794 * m68hc11-tdep.c (m68hc11_register_name): Update.
6795 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6796 (am33_register_name): Update.
6797
ea1e7ef6
GS
67982002-06-17 Grace Sainsbury <graces@redhat.com>
6799
6800 * m68k-tdep.c: Reindented.
6801
9b02dd1b
AC
68022002-06-17 Andrew Cagney <ac131313@redhat.com>
6803
6804 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6805 list of predefined types.
6806
8758dec1
MK
68072002-06-16 Mark Kettenis <kettenis@gnu.org>
6808
b6197528
MK
6809 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6810 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6811 REGISTER_CONVERT_TO_RAW): Remove defines.
6812 (i386_register_virtual_type, i386_register_convertible,
6813 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6814 Remove prototypes.
6815 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6816 macros mentioned above.
6817
82b47e62
MK
6818 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6819 (i386lynx_saved_pc_after_call): Remove prototype.
6820 * i386ly-tdep.c: Include "i386-tdep.h".
6821 (i386lynx_saved_pc_after_call): Make static. Use
6822 read_memory_nobpt instead of read_memory. Use
6823 read_memory_unsigned_integer instead of read_memory_integer.
6824 (i386lynx_init_abi): New function.
6825 (i386lynx_coff_osabi_sniffer): New function.
6826 (_initialize_i386bsd_tdep): New function.
6827
8758dec1
MK
6828 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6829 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6830 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6831 (i386_fix_call_dummy): Remove prototype.
6832 * i386-tdep.c (i386_call_dummy_words): New variable.
6833 (i386_gdbarch_init): Adjust for removal of the
6834 macros mentioned above.
6835
e9e68a56
AC
68362002-06-15 Andrew Cagney <ac131313@redhat.com>
6837
6838 * command.h (add_setshow_auto_boolean_cmd): Replace
6839 add_set_auto_boolean_cmd.
6840 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6841 add_set_auto_boolean_cmd.
6842 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6843 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6844 mask-address'' command.
6845 (show_mask_address): Add cmd parameter.
6846 * remote.c (add_packet_config_cmd): Update. Change type of
6847 set_func and show_func to cmd_sfunc_ftype.
6848 (_initialize_remote): Update `set remote Z-packet'
6849 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6850 (show_remote_protocol_e_packet_cmd): Ditto.
6851 (show_remote_protocol_E_packet_cmd): Ditto.
6852 (show_remote_protocol_P_packet_cmd): Ditto.
6853 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6854 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6855 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6856 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6857 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6858 (show_remote_protocol_Z_packet_cmd): Ditto.
6859 (show_remote_protocol_binary_download_cmd): Ditto.
6860 (show_remote_cmd): Pass NULL to all of above.
6861
fc08ec52
MK
68622002-06-15 Mark Kettenis <kettenis@gnu.org>
6863
6864 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6865 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6866 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6867 POP_FRAME): Remove defines.
6868 (i386_push_arguments, i386_store_struct_return,
6869 i386_extract_return_value, i386_store_return_value,
6870 i386_extract_struct_value_address, i386_push_dummy_frame,
6871 i386_pop_frame): Renove prototypes.
6872 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6873 macros mentioned above.
6874
e707bbc2
AC
68752002-06-15 Andrew Cagney <ac131313@redhat.com>
6876
6877 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6878 add_set_boolean_cmd.
6879 (add_setshow_cmd): New function.
6880 * command.h (add_setshow_boolean_cmd): Replace
6881 add_set_boolean_cmd.
6882 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6883 and ``set rdiromatzero''.
6884 * maint.c (_initialize_maint_cmds): Update commented out code.
6885 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6886 * target.c (initialize_targets): Update `set
6887 trust-readonly-sections'.
6888 * remote.c (_initialize_remote): Update `set remotebreak'.
6889
42fdc8df
MK
68902002-06-15 Mark Kettenis <kettenis@gnu.org>
6891
93924b6b
MK
6892 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6893 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6894 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6895 fit into multi-arch framework.
6896 (i386_breakpoint_from_pc): New function.
6897 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6898 above.
6899
42fdc8df
MK
6900 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6901 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6902 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6903 (i386_frameless_function_invocation, i386_frame_num_args,
6904 i386_frame_init_saved_regs): Remove prototypes.
6905 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6906 macros mentioned above.
6907
9773a94b
AC
69082002-06-15 Andrew Cagney <ac131313@redhat.com>
6909
6910 * cli/cli-decode.c (set_cmd_cfunc): Update.
6911 (set_cmd_sfunc): Update.
6912 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6913 (set_cmd_sfunc, set_cmd_cfunc): Update.
6914 * cli/cli-decode.h: Update.
6915
6e157172
MK
69162002-06-15 Mark Kettenis <kettenis@gnu.org>
6917
6918 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6919 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6920
7f19b9a2
AC
69212002-06-15 Andrew Cagney <ac131313@redhat.com>
6922
6923 * defs.h (auto_boolean): Declare enum.
6924 * command.h (cmd_auto_boolean): Delete enum.
6925 * mips-tdep.c (mask_address_var): Update.
6926 (mips_mask_address_p): Update.
6927 (show_mask_address): Update.
6928 * remote.c (struct packet_config): Update.
6929 (update_packet_config): Update.
6930 (show_packet_config_cmd): Update.
6931 (packet_ok): Update.
6932 (add_packet_config_cmd): Update.
6933 (_initialize_remote):
6934 * command.h: Update.
6935 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6936 (do_setshow_command): Update.
6937 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6938 * cli/cli-decode.h: Update.
6939
1cf88de5
MK
69402002-06-15 Mark Kettenis <kettenis@gnu.org>
6941
22ba8cf2
MK
6942 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6943 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6944 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6945 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6946 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6947 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6948
762c5349
MK
6949 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6950 list of DJGPP COFF targets.
6951
091198bb
MK
6952 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6953 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6954 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
6955 (FP0_REGNUM): Remove define.
6956 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
6957 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
6958 (i386_register_virtual_size): Remove protoype.
6959 * i386-tdep.c (i386_register_virtual_size): Removed.
6960 (i386_extract_return_value, i386_store_return_value): Use
6961 FP0_REGNUM instead of NUM_FREGS to determine whether the
6962 floating-point registers are available.
6963 (i386_gdbarch_init): Tweak FIXME about FPU registers.
6964 Adjust for removal of macros mentioned above.
6965
69662002-06-15 Mark Kettenis <kettenis@gnu.org>
6967
fcc9bf01
MK
6968 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
6969 comments.
6970 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
6971 Remove prototypes.
6972 (supply_gregset, fill_gregset): Remove use of register keyword and
6973 remove declaration for regmap. Use I386_NUM_GREGS instead of
6974 NUM_REGS and NUM_FREGS.
6975 (FPREGSET_FSAVE_OFFSET): Remove.
6976 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
6977 NUM_FREGS to determine whether the floating-point registers are
6978 available.
6979
65e78234
MK
6980 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
6981 gnu_store_registers): Replace usage of NUM_GREGS with
6982 I386_NUM_GREGS.
6983
98df6387
MK
6984 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
6985 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
6986 usage of NUM_GREGS with I386_NUM_GREGS.
6987
099a9414
MK
6988 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
6989
57976e88
MK
6990 * i386bsd-nat.c: Include "i386-tdep.h".
6991 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
6992 I386_NUM_GREGS.
6993
b335f4a6
MK
6994 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
6995 and associated comment. They no longer make any sense, since we
6996 don't use this file anymore on Linux.
6997
1cf88de5
MK
6998 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
6999 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7000 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7001 elements in these arrays.
7002 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7003 MAX_NUM_REGS.
7004
daa66587
MK
70052002-06-15 Mark Kettenis <kettenis@gnu.org>
7006
7007 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7008 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7009
26e9b323
AC
70102002-06-14 Andrew Cagney <cagney@redhat.com>
7011
7012 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7013 EXTRACT_RETURN_VALUE.
7014 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7015 EXTRACT_STRUCT_VALUE_ADDRESS.
7016 * gdbarch.h, gdbarch.c: Regenerate.
7017
7018 * values.c (value_being_returned): Handle
7019 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7020 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7021
7022 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7023 * arm-tdep.c (arm_gdbarch_init): Update.
7024 * avr-tdep.c (avr_gdbarch_init): Update.
7025 * cris-tdep.c (cris_gdbarch_init): Update.
7026 * d10v-tdep.c (d10v_gdbarch_init): Update.
7027 * ia64-tdep.c (ia64_gdbarch_init): Update.
7028 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7029 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7030 * s390-tdep.c (s390_gdbarch_init): Update.
7031 * sh-tdep.c (sh_gdbarch_init): Update.
7032 * s390-tdep.c (s390_gdbarch_init): Update.
7033 * sparc-tdep.c (sparc_gdbarch_init): Update.
7034 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7035 * v850-tdep.c (v850_gdbarch_init): Update.
7036 * vax-tdep.c (vax_gdbarch_init): Update.
7037 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7038 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7039
7040 * config/arc/tm-arc.h: Update.
7041 * config/d30v/tm-d30v.h: Update.
7042 * config/fr30/tm-fr30.h: Update.
7043 * config/h8300/tm-h8300.h: Update.
7044 * config/h8500/tm-h8500.h: Update.
7045 * config/i386/tm-i386.h: Update.
7046 * config/i386/tm-ptx.h: Update.
7047 * config/i386/tm-symmetry.h: Update.
7048 * config/i960/tm-i960.h: Update.
7049 * config/m32r/tm-m32r.h: Update.
7050 * config/m68k/tm-delta68.h: Update.
7051 * config/m68k/tm-linux.h: Update.
7052 * config/m68k/tm-m68k.h: Update.
7053 * config/m88k/tm-m88k.h: Update.
7054 * config/mcore/tm-mcore.h: Update.
7055 * config/mips/tm-mips.h: Update.
7056 * config/mn10200/tm-mn10200.h: Update.
7057 * config/pa/tm-hppa.h: Update.
7058 * config/pa/tm-hppa64.h: Update.
7059 * config/sparc/tm-sp64.h: Update.
7060 * config/sparc/tm-sparc.h: Update.
7061 * config/sparc/tm-sparclet.h: Update.
7062 * config/z8k/tm-z8k.h: Update.
7063
5179e78f
AC
70642002-06-14 Andrew Cagney <cagney@redhat.com>
7065
7066 * Makefile.in (i386_linux_tdep_h): Define.
7067 (i386_tdep_h, i387_tdep_h): Define.
7068 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7069 $(i386_tdep_h) and $(i387_tdep_h).
7070 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7071
8201327c
MK
70722002-06-14 Mark Kettenis <kettenis@gnu.org>
7073
edf393ac
MK
7074 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7075 Already covered by the default.
7076
896fb97d
MK
7077 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7078 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7079 (i386_gdbarch_init): Initialize long_double_format and long_double
7080 bit.
7081
8201327c
MK
7082 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7083 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7084 Move these to ...
7085 * config/i386/i386sol2.mh: ... here.
7086 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7087 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7088 (SIGCONTEXT_PC_OFFSET): Remove define.
7089 (IN_SIGTRAMP): Remove define.
7090 * i386-sol2-tdep.c: New file.
7091
7092 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7093 * config/i386/tm-i386nw.h: Removed.
7094
7095 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7096 USE_STRUCT_CONVENTION): Remove defines.
7097 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7098 (get_longjmp_target): Remove prototype.
7099 (IN_SIGTRAMP): Remove define.
7100 (i386bsd_in_sigtramp): Remove prototype.
7101 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7102 function. Update comment accordingly
7103 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7104 (FRAME_SAVED_PC): Remove define.
7105 (i386bsd_frame_saved_pc): Remove prototype.
7106 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7107 GET_LONGJMP_TARGET): Remove defines.
7108 (get_longjmp_target): Remove prototype.
7109 (IN_SIGTRAMP): Remove define.
7110 (i386bsd_in_sigtramp): Remove prototype.
7111 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7112 function. Update comment accordingly
7113 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7114 (FRAME_SAVED_PC): Remove define.
7115 (i386bsd_frame_saved_pc): Remove prototype.
7116 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7117 Remove prototype.
7118 (USE_STRUCT_CONVENTION): Remove prototype.
7119 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7120 declaration.
7121 (_initialize_i386bsd_nat): Revise logic to determine some
7122 constants at compile time when compiling a native GDB. Warn if
7123 things don't match up with what we expect.
7124 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7125 Remove variables.
7126 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7127 to use date stored in `struct gdbarch_tdep'.
7128 (i386bsd_sigcontext_offset): Remove varaible.
7129 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7130 stored in `struct gdbarch_tdep'.
7131 (i386bsd_frame_saved_pc): Make static.
7132 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7133 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7134 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7135 i386fbsd4_sc_pc_offset): New variables.
7136 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7137 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7138 functions.
7139 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7140 functions.
7141 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7142 Modify the value of i386fbsd_sigtramp_start and
7143 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7144 i386fbsd_sigtramp_end.
7145 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7146 function.
7147
7148 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7149 define to i386-linux-tdep.h.
7150 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7151 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7152 defines.
7153 (i386_linux_register_name, i386_linux_register_byte,
7154 i386_linux_register_raw_size): Remove prototypes.
7155 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7156 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7157 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7158 TARGET_WRITE_PC): Remove defines.
7159 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7160 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7161 i386_linux_write_pc): Remove prototypes.
7162 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7163 (get_longjmp_target): Remove prototype.
7164 * i386-linux-tdep.h: New file.
7165 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7166 * i386-linux-tdep.c: Include "i386-tdep.h" and
7167 "i386-linux-tdep.h".
7168 (i386_linux_register_name, i386_linux_register_byte,
7169 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7170 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7171 Make static.
7172 (i386_linux_init_abi): New function.
7173 (_initialize_i386_linux_tdep): New function.
7174
7175 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7176 (i386_saved_pc_after_call): Remove prototype.
7177 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7178 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7179 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7180 (i386_register_name, i386_stab_reg_to_regnum,
7181 i386_dwarf_reg_to_regnum): Remove prototypes.
7182 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7183 SIZEOF_SSE_REGS): Remove defines.
7184 (REGISTER_BYTES): Remove define.
7185 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7186 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7187 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7188 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7189 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7190 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7191 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7192 (get_longjmp_target): Remove prototype.
7193 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7194 (sigtramp_saved_pc): Remove define.
7195 (i386v4_sigtramp_saved_pc): Remove prototype.
7196 * config/i386/tm-go32.h (FRAME_CHAIN,
7197 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7198 (i386go32_frame_saved_pc): Remove prototype.
7199 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7200 (get_longjmp_target): Remove prototype.
7201 * i386-tdep.h: Include "osabi.h".
7202 (enum i386_abi): Removed.
7203 (enum struct_return): New enum.
7204 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7205 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7206 sc_pc_offset members.
7207 (i386_gdbarch_register_os_abi): Remove prototype.
7208 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7209 I386_SSE_NUM_REGS): New defines.
7210 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7211 I386_SSE_SIZEOF_REGS): New defines.
7212 (i386_register_name, i386_register_byte, i386_register_raw_size):
7213 New prototypes.
7214 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7215 (i386bsd_sigtramp_saved_pc): New prototype.
7216 * i386-tdep.c: Don't include "elf-bfd.h".
7217 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7218 i386_frame_chain, i386_saved_pc_after_call): Make static.
7219 (i386_frame_saved_pc): Rewrite to call architecture dependent
7220 function to deal with signal handlers. Make static.
7221 (i386go32_frame_saved_pc): Removed.
7222 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7223 Removed.
7224 (i386_get_longjmp_target): New function.
7225 (default_struct_convention, pcc_struct_convention,
7226 reg_struct_convention, valid_conventions, struct_convention): New
7227 variables.
7228 (i386_use_struct_convention): New function.
7229 (i386v4_sigtramp_saved_pc): Renamed to
7230 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7231 (i386_pc_in_sigtramp): New function.
7232 (i386_abi_names): Removed.
7233 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7234 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7235 Removed.
7236 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7237 i386_gdbarch_register_os_abi): Removed.
7238 (struct i386_abi_handler): Removed.
7239 (i386_abi_handler_list): Removed.
7240 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7241 functions.
7242 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7243 i386_nw_init_abi): New functions.
7244 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7245 Use set_gdbarch_xxx() calls instead of relying on macros for a
7246 number of calls.
7247 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7248 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7249 Register the various architecture variants defined in this file.
7250
ad2f7632
DJ
72512002-06-14 Daniel Jacobowitz <drow@mvista.com>
7252
7253 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7254 (struct main_type): Remove arg_types member. Update comments for
7255 struct field.
7256 (TYPE_ARG_TYPES): Remove.
7257 (TYPE_FN_FIELD_ARGS): Update.
7258 (smash_to_method_type): Update prototype.
7259
7260 * c-typeprint.c (cp_type_print_method_args): Take method type
7261 instead of argument list. Use new argument layout. Simplify.
7262 (c_type_print_args): Use new argument layout. Simplify.
7263 (c_type_print_base): Update call to cp_type_print_method_args.
7264 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7265 argument; use die->type instead. Update call to
7266 smash_to_method_type.
7267 (read_structure_scope): Update call to dwarf2_add_member_fn.
7268 * gdbtypes.c (allocate_stub_method): Update comment.
7269 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7270 Use new argument layout.
7271 (check_stub_method): Use new argument layout. Don't count
7272 void as an argument.
7273 (print_arg_types): Update comments. Use new argument layout.
7274 (recursive_dump_type): Don't print arg_types member.
7275 * hpread.c (hpread_read_struct_type): Use new argument layout.
7276 (fixup_class_method_type): Likewise.
7277 (hpread_type_lookup): Likewise.
7278 * stabsread.c (read_type): Update calls to read_args and
7279 smash_to_method_type.
7280 (read_args): Use new argument layout. Simplify.
7281 * valops.c (typecmp): Use new argument layout. Update parameters
7282 and comments. Simplify.
7283 (hand_function_call): Use new argument layout.
7284 (search_struct_method): Update call to typecmp.
7285 (find_overload_match): Use new argument layout.
7286
6da02953
DJ
72872002-06-13 Daniel Jacobowitz <drow@mvista.com>
7288
7289 * NEWS: Mention multithreaded debug support for gdbserver.
7290
519b2366
DJ
72912002-06-13 Daniel Jacobowitz <drow@mvista.com>
7292
7293 * MAINTAINERS: Mention NEWS.
7294
6c0d6680
DJ
72952002-06-13 Daniel Jacobowitz <drow@mvista.com>
7296
7297 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7298 (struct mips_objfile_private, compare_pdr_entries): New.
7299 (non_heuristic_proc_desc): Read the ".pdr" section if it
7300 is present.
7301
6529d2dd
AC
73022002-06-12 Andrew Cagney <ac131313@redhat.com>
7303
7304 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7305 (arm_debug): New static variable.
7306 (_initialize_arm_tdep): Add ``set debug arm'' command.
7307
26216b98
AC
73082002-06-12 Andrew Cagney <ac131313@redhat.com>
7309
7310 * Makefile.in (sim_arm_h): Define.
7311 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7312 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7313 (arm_register_sim_regno): New function, map an internal REGNUM
7314 onto a simulator register number.
7315 (arm_gdbarch_init): Set register_sim_regno.
7316
814b3ba0
AH
73172002-06-09 Aldy Hernandez <aldyh@redhat.com>
7318
7319 * MAINTAINERS: Add self.
7320
475b0867
JB
73212002-06-11 Jim Blandy <jimb@redhat.com>
7322
919d772c
JB
7323 * source.c (source_info): Mention whether the symtab has
7324 information about preprocessor macros.
7325
475b0867
JB
7326 Call the command `info macro', not `show macro'.
7327 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7328 Fix error message.
7329 (_initialize_macrocmd): Register `info_macro_command' in
7330 `infolist', not `showlist'.
7331
9e364162
DJ
73322002-06-11 Daniel Jacobowitz <drow@mvista.com>
7333
7334 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7335 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7336 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7337 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7338 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7339 unconditionally.
7340 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7341 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7342 (_initialize_mips_tdep): Remove dead code.
7343 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7344 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7345 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7346 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7347 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7348 MIPS_LAST_FP_ARG_REGNUM): Remove.
7349
23aa4c72
ML
73502002-06-11 Michal Ludvig <mludvig@suse.cz>
7351
7352 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7353 (unwind_tmp_obstack_free, parse_frame_info)
7354 (update_context, cfi_read_fp, cfi_write_fp)
7355 (cfi_frame_chain, cfi_init_extra_frame_info)
7356 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7357 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7358
70eb15a4
CV
73592002-06-11 Corinna Vinschen <vinschen@redhat.com>
7360
7361 * v850-tdep.c (v850_type_is_scalar): New function.
7362 (v850_use_struct_convention): Match current gcc implementation
7363 as close as possible.
7364 (v850_push_arguments): Fix stack_offset handling. Don't write
7365 struct_addr into register. This is done by v850_store_struct_return.
7366 (v850_extract_return_value): Care for structs.
7367 (v850_store_return_value): Ditto.
7368 (v850_store_struct_return): Actually write address.
7369
482a4d06
ML
73702002-06-11 Michal Ludvig <mludvig@suse.cz>
7371
7372 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7373 without debug information too.
7374
d855c300
AC
73752002-06-10 Andrew Cagney <ac131313@redhat.com>
7376
7377 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7378 Make multi-arch pure.
7379 * gdbarch.h, gdbarch.c: Re-generate.
7380 * arm-tdep.c (arm_print_float_info): Update.
7381 * arch-utils.h (default_print_float_info): Update.
7382 * arch-utils.c (default_print_float_info): Update.
7383 * infcmd.c (float_info): Update call.
7384
dd12a101
AC
73852002-06-10 Andrew Cagney <ac131313@redhat.com>
7386
7387 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7388 the front of the initialize list.
7389
101dcfbe
AC
73902002-06-10 Andrew Cagney <ac131313@redhat.com>
7391
7392 * infrun.c (struct inferior_status): Replace fields
7393 selected_frame_address and selected_level with field
7394 selected_frame_id.
7395 (save_inferior_status): Update. Use get_frame_id.
7396 (struct restore_selected_frame_args): Delete.
7397 (restore_selected_frame): Update. Use frame_find_by_id.
7398 (restore_inferior_status): Update.
7399
7400 * breakpoint.h (struct breakpoint): Change type of
7401 watchpoint_frame to frame_id.
7402 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7403 call to get_current_frame.
7404 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7405 get_current_frame.
7406 (watchpoint_check): Use frame_find_by_id.
7407
7408 * frame.h (record_selected_frame): Delete declaration.
7409 * stack.c (record_selected_frame): Delete function.
7410
7411 * frame.h (struct frame_id): Define.
7412 (get_frame_id): Declare.
7413 (frame_find_by_id): Declare.
7414 * frame.c (frame_find_by_id): New function.
7415 (get_frame_id): New function.
7416
304270b6
AV
74172002-06-10 Andrey Volkov <avolkov@transas.com>
7418
7419 * ser-e7kpc.c: Fix duplicated define and call of
7420 _initialize_ser_e7000pc
7421
2f2cf184
DJ
74222002-06-09 Daniel Jacobowitz <drow@mvista.com>
7423
7424 * signals/signals.c (target_signal_from_host): Fix #ifdef
7425 SIGRTMIN case.
7426 (do_target_signal_to_host): Likewise.
7427
caaa3122
DJ
74282002-06-09 Daniel Jacobowitz <drow@mvista.com>
7429
7430 * mips-tdep.c (mips_find_abi_section): New function.
7431 (mips_gdbarch_init): Call it.
7432
6ac5df3a
MK
74332002-06-09 Mark Kettenis <kettenis@gnu.org>
7434
7435 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7436 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7437 after Andrew's 2002-06-08 gdbarch change.
7438
82ea117a
MK
74392002-06-09 Mark Kettenis <kettenis@gnu.org>
7440
7441 * i386-linux-nat.c (suppy_gregset): Don't supply
7442 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7443 register cache.
7444 (fill_gregset): Don't fetch it under the same circumstances.
7445
3c25f8c7
AC
74462002-06-09 Andrew Cagney <cagney@redhat.com>
7447
7448 * Makefile.in (callback_h): Define.
7449 (remote_sim_h): Update path to remote-sim.h.
7450 (remote-rdp.o): Add $(callback_h).
7451 (remote-sim.o): Use $(callback_h).
7452 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7453 * remote-rdp.c: Include "gdb/callback.h".
7454
1029b7fa
MK
74552002-06-09 Mark Kettenis <kettenis@gnu.org>
7456
7457 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7458 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7459
616675d3
AC
74602002-06-08 Andrew Cagney <ac131313@redhat.com>
7461
a3efda28
AC
7462 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7463 * rdi-share/serpardr.c: Ditto.
7464 * rdi-share/unixcomm.c: Ditto.
7465 * rdi-share/serdrv.c: Ditto.
7466 * rdi-share/hostchan.h: Ditto.
7467 * rdi-share/hostchan.c: Ditto.
7468 * rdi-share/host.h: Ditto.
7469 * rdi-share/devsw.c: Ditto.
7470
c5f10366
AC
7471 * objfiles.h: Change type of obj_private to void pointer.
7472 * pa64solib.c: Update copyright. Don't include "assert.h", use
7473 strcmp instead of STREQ, use LONGEST, do not use PTR
7474 * somsolib.c: Ditto.
7475
616675d3
AC
7476 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7477 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7478 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7479
e4b415d9
AC
74802002-06-08 Andrew Cagney <ac131313@redhat.com>
7481
7482 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7483 (default_get_saved_register): Delete function.
7484 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7485 generic_unwind_get_saved_register.
7486 * gdbarch.h, gdbarch.c: Re-generate.
7487
ca0d0b52
AC
74882002-06-08 Andrew Cagney <ac131313@redhat.com>
7489
7490 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7491 generic_func_frame_chain_valid.
7492 * gdbarch.h, gdbarch.c: Re-generate.
7493 * blockframe.c (generic_func_frame_chain_valid): Only check
7494 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7495 passing FP to PC_IN_CALL_DUMMY.
7496 Fix PR gdb/360.
7497
76860b5f
AC
74982002-06-08 Andrew Cagney <ac131313@redhat.com>
7499
7500 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7501 (register_gdbarch_data): Initialize init_p.
7502 (gdbarch_data): Initialize data pointer using the init function.
7503 (init_gdbarch_data): Delete function.
7504 (gdbarch_update_p): Update.
7505 (initialize_non_multiarch): Update.
7506 (struct gdbarch): Add field initialized_p.
7507 * gdbarch.h, gdbarch.c: Re-generate.
7508
8dda9770
ML
75092002-06-07 Michal Ludvig <mludvig@suse.cz>
7510
7511 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7512 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7513 better do the things actually here.
7514 * x86-64-tdep.c (x86_64_register_name2nr): New.
7515 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7516 (x86_64_gdbarch_init): Respect the above change.
7517 * x86-64-tdep.h (x86_64_register_name2nr)
7518 (x86_64_register_nr2name): Add prototypes.
7519 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7520
3d79a47c
MS
75212002-06-06 Michael Snyder <msnyder@redhat.com>
7522
7bd91a28
MS
7523 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7524 Delete extra braces and re-indent.
7525 (d10v_store_return_value): Char return values
3d79a47c
MS
7526 must be shifted over by one byte in R0.
7527 (d10v_extract_return_value): Delete extra braces, re-indent.
7528
095a4c96
EZ
75292002-06-06 Elena Zannoni <ezannoni@redhat.com>
7530
7531 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7532 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7533 (d10v_integer_to_address): Rewrite.
7534 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7535 the d10v specific functions which take care of converting to the
7536 correct space.
7537
e8a77ca4
EZ
75382002-06-06 Elena Zannoni <ezannoni@redhat.com>
7539
7540 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7541 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7542
4f2e4a4f
AC
75432002-06-02 Andrew Cagney <ac131313@redhat.com>
7544
7545 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7546 includes.
7547 * config/tm-linux.h: Ditto.
7548 * config/alpha/tm-alphalinux.h: Ditto.
7549 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7550 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7551 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7552 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7553 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7554 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7555 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7556 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7557 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7558 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7559 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7560 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7561 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7562 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7563 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7564 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7565 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7566 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7567 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7568 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7569 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7570 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7571 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7572 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7573 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7574 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7575 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7576 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7577 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7578 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7579 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7580 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7581 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7582 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7583 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7584 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7585 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7586
ae2ab2ce
AS
75872002-05-04 Aidan Skinner <aidan@velvet.net>
7588
7589 * ada-exp.tab.c: New file
7590 * ada-exp.y: New file
7591 * ada-lang.c: New file
7592 * ada-lang.h: New file
7593 * ada-lex.c: New file
7594 * ada-lex.l: New file
7595 * ada-tasks.c: New file
7596 * ada-typeprint.c: New file
7597 * ada-valprint.c: New file
7598
0ddd0135
JT
75992002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7600
7601 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7602 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7603
750fbacc
JT
76042002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7605
7606 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7607 insetead of ppc-linux-tdep.o.
7608 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7609 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7610
df94e18a
AC
76112002-06-02 Andrew Cagney <ac131313@redhat.com>
7612
7613 2002-05-07 Christian Groessler <chris@groessler.org>
7614 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7615 bit register contents for little endian hosts.
7616
1a38ab75
AC
76172002-06-01 Andrew Cagney <ac131313@redhat.com>
7618
7619 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7620 any maintainer.
7621
8b1632ac
AC
76222002-06-01 Andrew Cagney <ac131313@redhat.com>
7623
7624 * gdbarch.h: Regenerate.
7625
627054c8
AC
76262002-06-01 Andrew Cagney <ac131313@redhat.com>
7627
7628 * MAINTAINERS: Add everyone to write-after-approval list.
7629
4f460812
AC
76302002-06-01 Andrew Cagney <ac131313@redhat.com>
7631
7632 * stack.c (frame_info): Use frame_register_unwind instead of
7633 saved_regs. Mention when the SP is on the stack or in a register.
7634
7635 * frame.h (frame_register_unwind_ftype): Define. Document.
7636 (struct frame_info): Add field register_unwind and
7637 register_unwind_cache.
7638 (frame_register_unwind): Declare.
7639 (generic_unwind_get_saved_register): Declare.
7640
7641 * frame.c (frame_register_unwind): New function.
7642 (generic_unwind_get_saved_register): New function.
7643
7644 * blockframe.c (generic_call_dummy_register_unwind): New function.
7645 (frame_saved_regs_register_unwind): New function.
7646 (set_unwind_by_pc): New function.
7647 (create_new_frame): New function.
7648 (get_prev_frame): New function.
7649
de888f76
AC
76502002-05-30 Andrew Cagney <ac131313@redhat.com>
7651
7652 * a29k-share/: Delete directory.
7653 * remote-vx29k.c: Delete file.
7654
2f2c3626
JT
76552002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7656
7657 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7658 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7659
9ce5c36a
JT
76602002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7661
7662 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7663 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7664 (sparc64nbsd-nat.o)
7665 (sparcnbsd-nat.o)
7666 (sparcnbsd-tdep.o): New dependency lists.
7667 * NEWS: Note new UltraSPARC NetBSD native configuration.
7668 * configure.host (sparc64-*-netbsd*): New host.
7669 * configure.tgt (sparc-*-netbsdelf*)
7670 (sparc-*-netbsd*): Set gdb_target to nbsd.
7671 (sparc64-*-netbsd*): New target.
7672 * sparc64nbsd-nat.c: New file.
7673 * sparcnbsd-nat.c: New file.
7674 * sparcnbsd-tdep.c: New file.
7675 * sparcnbsd-tdep.h: New file.
7676 * config/sparc/nbsd.mt: New file.
7677 * config/sparc/nbsd64.mh: New file.
7678 * config/sparc/nbsd64.mt: New file.
7679 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7680 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7681 (HOST_IPC): Remove.
7682 * config/sparc/nbsdaout.mt: Remove.
7683 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7684 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7685 (HOST_IPC): Remove.
7686 * config/sparc/nbsdelf.mt: Remove.
7687 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7688 sparc-nat.c compatiblity defines.
7689 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7690 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7691 * config/sparc/tm-nbsd64.h: New file.
7692 * config/sparc/tm-nbsdaout.h: Remove.
7693 * config/sparc/xm-nbsd.h: Remove.
7694
ef3cf062
JT
76952002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7696
7697 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7698 * sparc-tdep.c: Include osabi.h.
7699 (gdbarch_tdep): Add osabi member.
7700 (_initialize_sparc_tdep): Use gdbarch_register.
7701 (sparc_gdbarch_init): Use generic OS ABI framework.
7702 (sparc_dump_tdep): New function.
7703
ee8ff470
KB
77042002-05-30 Kevin Buettner <kevinb@redhat.com>
7705
7706 * corefile.c (do_captured_read_memory_integer): Return non-zero
7707 result.
7708 (safe_read_memory_integer): Copy result of memory read when
7709 status is non-zero. Also, add comments.
7710
7b112f9c
JT
77112002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7712
7713 * Makefile.in (ppc_tdep_h): Define.
7714 (ppc-linux-nat.o)
7715 (ppc-linux-tdep.o)
7716 (rs6000-tdep.o): Use $(ppc_tdep_h).
7717 (ppc-sysv-tdep.o)
7718 (ppcnbsd-nat.o)
7719 (ppcnbsd-tdep.o): New dependency lists.
7720 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
7721 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7722 (ppc_linux_init_abi): New functions.
7b112f9c
JT
7723 (ppc_sysv_abi_broken_use_struct_convention)
7724 (ppc_sysv_abi_use_struct_convention)
7725 (ppc_sysv_abi_push_arguments): Move to...
7726 * ppc-sysv-tdep.c: ...here.
7727 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7728 * rs6000-tdep.c (process_note_abi_tag_sections)
7729 (get_elfosabi): Remove.
7730 (rs6000_gdbarch_init): Use generic OS ABI framework.
7731 (rs6000_dump_tdep): New function.
7732 (_initialize_rs6000_tdep): Use gdbarch_register.
7733 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7734 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7735 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7736 of ppc-linux-tdep.o.
7737 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7738 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7739 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7740 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7741 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7742 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7743
480dd42a
JB
77442002-05-29 Jim Blandy <jimb@redhat.com>
7745
7746 * macroscope.c (default_macro_scope): Put `void' in empty argument
7747 list.
7748
4182591f
AC
77492002-05-29 Andrew Cagney <ac131313@redhat.com>
7750
7751 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7752 * arch-utils.c: Include "sim-regno.h".
7753 * gdbarch.sh: Don't include "sim-regno.h".
7754 * gdbarch.h, gdbarch.c: Regenerate.
7755 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7756 here.
7757 * arch-utils.h (legacy_register_sim_regno): To here.
7758 * remote-sim.c (legacy_register_sim_regno): Move function from
7759 here.
7760 * arch-utils.c (legacy_register_sim_regno): To here.
7761
8238d0bf
AC
77622002-05-28 Andrew Cagney <ac131313@redhat.com>
7763
7764 * sim-regno.h: New file.
7765 * Makefile.in (sim_regno_h): Define.
7766 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7767 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7768 (legacy_register_sim_regno): New function.
7769 (one2one_register_sim_regno): New function.
7770 (gdbsim_fetch_register): Rewrite.
7771 (gdbsim_store_register): Only store a register when
7772 REGISTER_SIM_REGNO is valid.
7773 * d10v-tdep.c: Include "sim-regno.h".
7774 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7775 (d10v_ts3_register_sim_regno): Ditto.
7776 * gdbarch.sh: Include "sim-regno.h".
7777 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7778 * gdbarch.h, gdbarch.c: Regenerate.
7779 * arch-utils.h (default_register_sim_regno): Delete declaration.
7780 * arch-utils.c (default_register_sim_regno): Delete function.
7781
485721b1
JT
77822002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7783
7784 * ppcnbsd-nat.c: Rewrite.
7785 * ppcnbsd-tdep.c: New file.
7786 * ppcnbsd-tdep.h: New file.
7787 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7788 solib.o, and solib-svr4.o.
7789 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7790 nbsd-tdep.o, and corelow.o.
7791
697f244d
AC
77922002-05-28 Andrew Cagney <ac131313@redhat.com>
7793
7794 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7795 `tr' and `sed'. Mention that `broken' targets are not expected to
7796 build.
7797
f08caad1 77982002-05-27 Michal Ludvig <mludvig@suse.cz>
b1ab997b
ML
7799
7800 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7801 Let PC point right after the prologue before looking up symbols.
7802
3139facc
MH
78032002-05-27 Martin M. Hunt <hunt@redhat.com>
7804
7805 * i386-tdep.c (i386_register_virtual_type): Return
7806 builtin_type_vec128i for SSE registers.
7807
7808 * gdbtypes.h (builtin_type_vec128i): Declare.
7809
7810 * gdbtypes.c (build_builtin_type_vec128i): New function.
7811 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7812 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7813 (build_gdbtypes): Initialize new builtin vector types.
7814 (_initialize_gdbtypes): Register new vector types with gdbarch.
7815
6e3ba3b8
JT
78162002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7817
7818 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7819 since it has been multi-arch'd.
7820 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7821 Move Alpha and VAX multi-arch news entries to same section
7822 as other multi-arch news.
7823
93d5585d
JT
78242002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7825
7826 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7827 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7828 static. Rename some register numbers to put them in ns32k-tdep
7829 private namespace.
7830 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7831 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7832 functions.
7833 (_initialize_ns32k_tdep): Use gdbarch_register.
7834 * ns32k-tdep.h: New file.
7835 * ns32knbsd-tdep.c: New file.
7836 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7837 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7838 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7839 REGISTER_BYTES, REGISTER_BYTE): Remove.
7840 * config/ns32k/tm-ns32k.h: New file.
7841 * config/ns32k/tm-umax.h: Remove.
7842
efb2c70e
JT
78432002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7844
7845 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7846 ns32k_store_struct_return, ns32k_extract_return_value,
7847 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7848 functions.
7849 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7850 ns32k_saved_pc_after_call.
7851 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7852 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7853 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7854 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7855 ns32k_extract_struct_value_address.
7856
7bcc927b
JT
78572002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7858
7859 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7860 ns32k_fix_call_dummy): New.
7861 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7862 ns32k_call_dummy_words.
7863 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7864 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7865 CALL_DUMMY_NARGS): Remove.
7866 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7867
78f9d765
JT
78682002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7869
7870 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7871 ns32k_frame_saved_pc, ns32k_frame_args_address,
7872 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7873 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7874 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7875 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7876 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7877 (BREAKPOINT): Remove..
7878 (FRAME_CHAIN): Define as ns32k_frame_chain.
7879 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7880 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7881 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7882 (FRAME_FIND_SAVED_REGS): Remove.
7883 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7884 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7885 (POP_FRAME): Define as ns32k_pop_frame.
7886
f2c762e0
JT
78872002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7888
7889 * ns32k-tdep.c (ns32k_register_byte_32082,
7890 ns32k_register_byte_32382, ns32k_register_raw_size,
7891 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7892 functions.
7893 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7894 ns32k_register_byte_32382.
7895 * config/ns32k/tm-umax.h: Update copyright years.
7896 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7897 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7898 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7899 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7900 (ns32k_get_enter_addr): Fix prototype.
7901
af137673
JT
79022002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7903
7904 * ns32k-tdep.c: Update copyright years.
7905 (ns32k_register_name_32082): New function.
7906 (ns32k_register_name_32382): Ditto.
7907 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7908 (REGISTER_NAME): Define as ns32k_register_name_32382.
7909 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7910 (REGISTER_NAME): Define as ns32k_register_name_32082.
7911
a8bc7b56
JB
79122002-05-24 Jim Blandy <jimb@redhat.com>
7913
7914 * dwarf2read.c (free_line_header): Use xfree, not free.
7915
83a45910
JT
79162002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7917
7918 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7919 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7920
0db71247
AC
79212002-05-23 Andrew Cagney <ac131313@redhat.com>
7922
7923 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7924
b9e5e4dd
AC
79252002-05-23 Andrew Cagney <ac131313@redhat.com>
7926
7927 From Ross Alexander at NEC Europe:
7928 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7929
de530e84
MS
79302002-05-23 Michael Snyder <msnyder@redhat.com>
7931
7932 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7933 for input, rather than parse_and_eval_address.
7934
b91b96f4
AC
79352002-05-23 Andrew Cagney <ac131313@redhat.com>
7936
7937 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7938 * Makefile.in (sim_d10v_h): Update definition.
7939
8b279e7a
AC
79402002-05-24 Andrew Cagney <cagney@redhat.com>
7941
7942 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7943 change `2002-05-22 Michael Snyder' below.
7944 (d10v_push_arguments): Ditto.
7945 (d10v_extract_return_value): Ditto.
7946
0a3d0425
JB
79472002-05-23 Jim Blandy <jimb@redhat.com>
7948
7949 * macrotab.c (check_for_redefinition): Don't complain if the new
7950 definition is the same as the previous one. Take more arguments
7951 to allow the comparison.
7952 (macro_define_object, macro_define_function): Pass more arguments
7953 to check_for_redefinition.
7954
78eac43e
MS
79552002-05-22 Michael Snyder <msnyder@redhat.com>
7956
7957 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
7958 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
7959 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
7960 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
7961 Don't bail if return_pc is PC_IN_CALL_DUMMY.
7962 Add a temp variable to save a call (and a memory read).
7963 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
7964 if possible (so that PC_IN_CALL_DUMMY will work).
7965
9bc1edb8
CV
79662002-05-22 Corinna Vinschen <vinschen@redhat.com>
7967
7968 * MAINTAINERS: Remove status `OBSOLETE' from v850.
7969
005ef3d2
ML
79702002-05-22 Michal Ludvig <mludvig@suse.cz>
7971
7972 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
7973 fde->cie_ptr.
7974 (dwarf2_build_frame_info): Corrected handling of eh_frame.
7975 (dwarf2_build_frame_info): Add offset to fde->initial_location
7976 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
7977 (execute_stack_op): Change type of 'result' from ULONGEST to
7978 CORE_ADDR.
005ef3d2 7979
fcf4f891
JT
79802002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7981
7982 * config/alpha/tm-nbsd.h: Include solib.h.
7983
cfef91e4
JT
79842002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7985
7986 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
7987 assumptions about the host's byte order.
7988
9964235a
JT
79892002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7990
7991 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
7992 to dependency list.
7993 * alphanbsd-tdep.c: Include solib-svr4.h.
7994 * shnbsd-tdep.c: Ditto.
7995
9eeef8ef
JT
79962002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
7997
7998 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
7999 nbsd-tdep.h to dependency list.
8000 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8001 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8002 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8003 nbsdaout.mh and nbsdelf.mh consistently.
8004 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8005 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8006 nbsdaout.mt and nbsdelf.mh consistently.
8007 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8008 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8009 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8010 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8011 a.out shared library stuff from here...
8012 * config/nm-nbsdaout.h: ...to here.
8013 * config/tm-nbsd.h: Remove.
8014 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8015 * config/arm/nbsd.mh: Remove.
8016 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8017 nbsd-tdep.o.
8018 * config/arm/nbsdaout.mh: New file.
8019 * config/arm/nbsdelf.mh: New file.
8020 * config/arm/nm-nbsdaout.h: New file.
8021 * config/i386/nbsd.mh: Remove.
8022 * config/i386/nbsd.mt: Remove.
8023 * config/i386/nbsdaout.mh: New file.
8024 * config/i386/nbsdaout.mt: New file.
8025 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8026 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8027 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8028 i386_register_u_addr): Remove.
8029 * config/i386/nm-nbsdaout.h: New file.
8030 * config/i386/nm-nbsdelf.h: Remove.
8031 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8032 (USE_STRUCT_CONVENTION): Remove.
8033 * config/i386/tm-nbsdaout.h: New file.
8034 * config/i386/tm-nbsdelf.h: Remove.
8035 * config/m68k/nbsd.mh: Remove.
8036 * config/m68k/nbsd.mt: Remove.
8037 * config/m68k/nbsdaout.mh: New file.
8038 * config/m68k/nbsdaout.mt: New file.
8039 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8040 * config/m68k/nm-nbsdaout.h: New file.
8041 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8042 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8043 * config/ns32k/nbsd.mh: Remove.
8044 * config/ns32k/nbsd.mt: Remove.
8045 * config/ns32k/nbsdaout.mh: New file.
8046 * config/ns32k/nbsdaout.mt: New file.
8047 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8048 * config/ns32k/nm-nbsdaout.h: New file.
8049 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8050 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8051 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8052 (SVR4_SHARED_LIBS): Remove.
8053 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8054 * config/sparc/nbsd.mh: Remove.
8055 * config/sparc/nbsd.mt: Remove.
8056 * config/sparc/nbsdaout.mh: New file.
8057 * config/sparc/nbsdaout.mt: New file.
8058 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8059 * config/sparc/nbsdelf.mt: New file.
8060 * config/sparc/nm-nbsdaout.h: New file.
8061 * config/sparc/nm-nbsdelf.h: Remove.
8062 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8063 * config/sparc/tm-nbsdaout.h: New file.
8064
257ce470
JT
80652002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8066
8067 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8068 mipsnbsd-tdep.c
8069 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8070
76a6d5fe
JT
80712002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8072
8073 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8074 shnbsd-nat.c.
8075 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8076
45888261
JT
80772002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8078
8079 * NEWS: Note new MIPS NetBSD native configuration.
8080 * configure.host (mips*-*-netbsd*): New host.
8081 * configure.tgt (mips*-*-netbsd*): New target.
8082 * mipsnbsd-nat.c: New file.
8083 * mipsnbsd-tdep.c: New file.
8084 * mipsnbsd-tdep.h: New file.
8085 * config/mips/nbsd.mh: New file.
8086 * config/mips/nbsd.mt: New file.
8087 * config/mips/nm-nbsd.h: New file.
8088 * config/mips/tm-nbsd.h: New file.
8089
70f80edf
JT
80902002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8091
8092 * Makefile.in (SFILES): Add osabi.c.
8093 (COMMON_OBS): Add osabi.o.
8094 (osabi.o): New dependency list.
8095 * osabi.c: New file.
8096 * osabi.h: New file.
8097 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8098
8099 * Makefile.in (alpha_tdep_h): Define and use instead of
8100 alpha-tdep.h.
8101 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8102 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8103 Remove.
8104 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8105 * alpha-tdep.h: Include osabi.h.
8106 (alpha_abi): Remove.
8107 (gdbarch_tdep): Use generic OS ABI framework.
8108 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8109 gdbarch_register_osabi.
8110 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8111 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8112 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8113
8114 * Makefile.in (sh_tdep_h): Add osabi.h.
8115 * sh-tdep.h (sh_osabi): Remove.
8116 (gdbarch_tdep): Use generic OS ABI framework.
8117 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8118 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8119 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8120 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8121
8122 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8123 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8124 gdbarch_register_osabi.
8125 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8126 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8127 (get_elfosabi): Rename to...
8128 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8129 ABI framework support routines.
8130 (arm_gdbarch_init): Use generic OS ABI framework.
8131 (arm_dump_tdep): Likewise.
8132 (_initialize_arm_tdep): Likewise.
8133 * arm-tdep.h: Include osabi.h.
8134 (arm_abi): Remove.
8135 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8136 osabi member.
8137 (arm_gdbarch_register_os_abi): Remove prototype.
8138 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8139 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8140
8141 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8142 * mips-tdep.c: Include osabi.h.
8143 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8144 OS ABI framework.
8145
d194345b
KH
81462002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8147
8148 * h8300-tdep.c: Fix formatting.
8149
70c6b0d1
EZ
81502002-05-20 Elena Zannoni <ezannoni@redhat.com>
8151
8152 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8153 printing vector registers.
8154
165b8e33
AC
81552002-05-19 Andrew Cagney <ac131313@redhat.com>
8156
8157 From Fernando Nasser:
8158 * remote.c (remote_async_open_1): Re-throw the exception when the
8159 connection fails.
8160 (remote_cisco_open): Ditto.
8161 (remote_open_1): Ditto.
8162
36918e70
AC
81632002-05-19 Andrew Cagney <ac131313@redhat.com>
8164
8165 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8166 (remote_start_remote): Add uiout parameter. Pass through to
8167 remote_start_remote_dummy.
8168 (remote_open_1): Use catch_exception instead of catch_errors.
8169 (remote_async_open_1): Ditto.
8170 (remote_cisco_open): Ditto.
8171
ae44c0c4
AC
81722002-05-19 Andrew Cagney <ac131313@redhat.com>
8173
8174 * remote.c (remote_start_remote): Replace PTR with void pointer.
8175 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8176 static.
8177
8efe637d
AC
81782002-05-18 Andrew Cagney <ac131313@redhat.com>
8179
8180 * gdb_indent.sh: Allow the script to be run in the sim directory.
8181
2f1b5984
MK
81822002-05-18 Mark Kettenis <kettenis@gnu.org>
8183
f0f625e2
MK
8184 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8185 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8186
2f1b5984
MK
8187 * corelow.c (core_open): Only call set_gdbarch_from_file if
8188 exec_bfd is NULL.
8189
fc974602
AV
81902002-05-17 Andrey Volkov <avolkov@transas.com>
8191
8192 * h8300-tdep.c: Add support of EXR register
8193 * config/h8300/tm-h8300.h: Ditto.
8194
906709f4
AV
81952002-05-17 Andrey Volkov <avolkov@transas.com>
8196
8197 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8198
6e591d68
AV
81992002-05-17 Andrey Volkov <avolkov@transas.com>
8200
8201 * h8300-tdep.c: Change literal regnums to REGNO.
8202
84f0252a
JB
82032002-05-17 Jim Blandy <jimb@redhat.com>
8204
e0e9281e
JB
8205 * NEWS: Note addition of macro support.
8206
84f0252a
JB
8207 Expand preprocessor macros in C expressions.
8208 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8209 (scan_macro_expansion, scanning_macro_expansion,
8210 finished_macro_expansion): New function declarations.
8211 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8212 variable declarations.
8213 * parser-defs.h (expression_context_pc): New declaration.
8214 * parse.c (expression_context_pc): New variable.
8215 (parse_exp_1): Set expression_context_pc, as well as
8216 expression_context_block.
8217 * c-exp.y (yylex): If we're not already reading the result of a
8218 macro expansion, try to macro-expand the next token. When we're
8219 done scanning a macro expansion, switch back to the mainline text.
8220 Commas and `if's in a macro's expansion don't terminate the input.
8221 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8222 (macro_original_text, macro_expanded_text,
8223 expression_macro_lookup_func, expression_macro_lookup_baton): New
8224 variables.
8225 (scan_macro_expansion, scanning_macro_expansion,
8226 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8227 c_preprocess_and_parse): New functions.
8228 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8229 c_preprocess_and_parse, instead of c_parse.
8230 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8231 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8232
1c509ca8
JR
8233Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8234
8235 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8236 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8237 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8238
2250ee0c
CV
82392002-05-17 Corinna Vinschen <vinschen@redhat.com>
8240
8241 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8242
ab3b8126
JT
82432002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8244
8245 * Makefile.in (sh_tdep_h): Define and use.
8246 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8247 register enum): Move to...
8248 * * sh-tdep.h: ...here.
8249 * sh-tdep.c: Include sh-tdep.h.
8250 * sh3-rom.c: Likewise.
8251 * shnbsd-tdep.c: Likewise.
8252
ed9d4749
MS
82532002-05-16 Michael Snyder <msnyder@redhat.com>
8254
8255 * arm-tdep.c: Spelling fix in comment.
8256
2e276125
JB
82572002-05-16 Jim Blandy <jimb@redhat.com>
8258
6821892e
JB
8259 Add commands for manually expanding macros and showing their
8260 definitions.
8261 * macrocmd.c, macroscope.c, macroscope.h: New files.
8262 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8263 (macroscope_h): New variable.
8264 (HFILES_NO_SRCDIR): Add macroscope.h.
8265 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8266 (macroscope.o, macrocmd.o): New rules.
8267
2e276125
JB
8268 Teach the Dwarf 2 reader to read macro information.
8269 * dwarf2read.c: #include "macrotab.h".
8270 (dwarf_macinfo_buffer): New variable.
8271 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8272 dwarf_macinfo_size.
8273 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8274 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8275 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8276 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8277 dwarf2_macro_spaces_in_definition): New complaints.
8278 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8279 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8280 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8281 the partial symbol table.
8282 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8283 from what's recorded in the partial symbol table.
8284 (read_file_scope): If the compilation unit has a
8285 `DW_AT_macro_info' attribute, read its macro information.
8286 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8287
2f53fe6c
DJ
82882002-05-16 Daniel Jacobowitz <drow@mvista.com>
8289
8290 Fix PR gdb/546
8291 * ser-tcp.c: Don't include <netinet/udp.h>.
8292
2be99286
SC
82932002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8294
8295 * MAINTAINERS: Update my email address.
8296
c9af212b 82972002-05-16 Richard Earnshaw <rearnsha@arm.com>
8501bbeb
RE
8298
8299 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8300 include file of the same name.
8301
bf5f1a52
CV
83022002-05-16 Corinna Vinschen <vinschen@redhat.com>
8303
8304 * configure.tgt: Mark v850 as multi-arched.
8305 * config/v850/tm-v850.h: Remove file.
8306 * config/v850/v850.mt: Eliminate TM_FILE.
8307
435e042a
CV
83082002-05-16 Corinna Vinschen <vinschen@redhat.com>
8309
8310 * v850-tdep.c: Full multi-arch.
8311 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8312 Define GDB_MULTI_ARCH to 2.
8313
9819c6c8
PM
83142002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8315
8316 * p-exp.y (current_type): New static variable.
8317 Carries the type of the expression at the position that is parsed.
8318 (push_current_type, pop_current_type): Two new functions. Used
8319 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8320 (search_field): New static variable. Set to one after parsing a point
8321 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8322 (FIELDNAME): New token. After a point only a token belonging to
8323 current_type type definition is allowed.
8324 (all over token rules): reset and change current_type according
8325 to rules.
8326 (exp '[' rule): insert implicit array index field if
8327 exp is a pascal string type.
8328
3a06899a
CV
83292002-05-16 Corinna Vinschen <vinschen@redhat.com>
8330
8331 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8332 frame info. Use frame_info's saved_regs instead of matching member
8333 in extra_frame_info throughout.
8334 (v850_frame_init_saved_regs): New function.
8335 (v850_init_extra_frame_info): Move most functionality into
8336 v850_frame_init_saved_regs().
8337 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8338 (v850_frame_find_saved_regs): Remove declaration.
8339 (FRAME_FIND_SAVED_REGS): Remove definition.
8340 (v850_frame_init_saved_regs): Add declaration.
8341 (FRAME_INIT_SAVED_REGS): Add definition.
8342
6ed14b0e
CV
83432002-05-16 Corinna Vinschen <vinschen@redhat.com>
8344
8345 * v850-tdep.c: Begin multi-arch'ing v850.
8346 (v850_target_architecture_hook): Remove function.
8347 (v850_gdbarch_init): New function. Add code previously in
8348 v850_target_architecture_hook().
8349 (_initialize_v850_tdep): Don't set target_architecture_hook.
8350 Call register_gdbarch_init() instead.
8351
42725910
DJ
83522002-05-16 Daniel Jacobowitz <drow@mvista.com>
8353
8354 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8355 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8356 (fixup_class_method_type): Likewise.
8357
99d9066e
JB
83582002-05-15 Jim Blandy <jimb@redhat.com>
8359
8360 Add macro structures to GDB's symbol tables. Nobody puts anything
8361 in them yet.
8362 * symtab.h (struct symtab): New member: `macro_table'.
8363 * buildsym.h (pending_macros): New global variable.
8364 * buildsym.c: #include "macrotab.h".
8365 (buildsym_init): Initialize `pending_macros'.
8366 (end_symtab): If we found macro information while reading a CU's
8367 debugging info, do build a symtab structure for it. Make the
8368 symtab point to the macro information, and clear the
8369 `pending_macros' pointer which held it while we were reading the
8370 debug info.
8371 (really_free_pendings): Free any pending macro table.
8372 * objfiles.h (struct objfile): New member: `macro_cache'.
8373 * objfiles.c (allocate_objfile): Set allocate and free functions
8374 for the macro cache's objstack.
8375 (free_objfile): Empty the macro cache's obstack.
8376 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8377 set new allocate and free functions for it.
8378 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8379 free functions for the macro cache's objstack. (Why is this
8380 function building its own objfile?)
8381 * symmisc.c (print_objfile_statistics): Print statistics on the
8382 macro bcache.
8383 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8384
c899585b
RE
83852002-05-15 Richard Earnshaw <rearnsha@arm.com>
8386
8387 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8388 (REGISTER_U_ADDR): Delete definition.
8389 (arm_register_u_addr): Delete declaration.
8390
a6cdd8c5
RE
83912002-05-15 Richard Earnshaw <rearnsha@arm.com>
8392
8393 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8394 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8395
c97dcfc7
AC
83962002-05-14 Andrew Cagney <ac131313@redhat.com>
8397
8398 * regcache.c (register_valid): Revise comments refering to "Not
8399 available" and "unavailable".
8400 * frame.c (frame_register_read): Ditto.
8401 * findvar.c (value_of_register): Ditto.
8402
93021b7d
AC
84032002-05-15 Andrew Cagney <cagney@redhat.com>
8404
8405 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8406 (remote-sim.o): Update dependencies.
8407 (d10v-tdep.o): Specify dependencies.
8408 (sim_d10v_h): Define.
8409
a86bc61c
JB
84102002-05-14 Jim Blandy <jimb@redhat.com>
8411
8412 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8413 * macrotab.c (macro_lookup_inclusion, find_definition,
8414 new_macro_table): Same.
8415
8416 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8417 not `! strcmp ()'. This is a dubious improvement.
8418 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8419
8420 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8421 although it's not necessary, to avoid a warning.
8422
2fdde8f8
DJ
84232002-05-14 Daniel Jacobowitz <drow@mvista.com>
8424
8425 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8426 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8427 TYPE_INSTANCE_FLAGS.
8428 (struct main_type): New.
8429 (struct type): Move most members to struct main_type. Change
8430 cv_type and as_type to new type_chain member. Add instance_flags.
8431 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8432 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8433 (finish_cv_type): Remove prototype.
8434 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8435 Set TYPE_CHAIN.
8436 (alloc_type_instance): New function.
8437 (smash_type): New function.
8438 (make_pointer_type, make_reference_type, make_function_type)
8439 (smash_to_member_type, smash_to_method_type): Call smash_type.
8440 (make_qualified_type): New function.
8441 (make_type_with_address_space): Call make_qualified_type.
8442 (make_cv_type): Likewise.
8443 (finish_cv_type): Remove unnecessary function.
8444 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8445 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8446 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8447 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8448 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8449 * hpread.c (hpread_read_struct_type): Likewise.
8450 * stabsread.c (read_struct_type): Likewise.
8451
843fedf4
EZ
84522002-05-14 Elena Zannoni <ezannoni@redhat.com>
8453
8454 * configure.tgt: Add a catch all sh* target, for cases like
8455 sh[2,3,4]-elf and sh-hms.
8456
05a6c72c
KS
84572002-05-14 Keith Seitz <keiths@redhat.com>
8458
8459 * event-loop.c (create_file_handler): Don't do anything but
8460 update data when we are given a fd which we are already
8461 monitoring.
8462
5d085aaf
ML
84632002-05-14 Michal Ludvig <mludvig@suse.cz>
8464
8465 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8466 (update_context): Use __func__ in warnings.
8467
9db8d71f
DJ
84682002-05-14 Daniel Jacobowitz <drow@mvista.com>
8469
8470 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8471 and tcp_close to net_open and net_close.
8472 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8473 using UDP if requested. Don't try to disable Nagle on UDP
8474 sockets.
8475 * remote.c (remote_serial_open): New function. Warn about UDP.
8476 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8477
5dbc6baa
EZ
84782002-05-13 Elena Zannoni <ezannoni@redhat.com>
8479
8480 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8481
cc3023f7
EZ
84822002-05-13 Elena Zannoni <ezannoni@redhat.com>
8483
8484 * configure.tgt: Remove sh-hms target.
8485 * MAINTAINERS: Don't list sh-hms as a separate target.
8486
ec2bcbe7
JB
84872002-05-13 Jim Blandy <jimb@redhat.com>
8488
8489 Add first preprocessor macro-expansion files.
8490 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8491 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8492 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8493 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8494 (COMMON_OBS): Add macrotab.o, macroexp.o.
8495 (macroexp.o, macrotab.o): New rules.
8496
6d531722
AC
84972002-05-13 Andrew Cagney <ac131313@redhat.com>
8498
8499 * config/m88k/tm-m88k.h: Update copyright.
8500 (m88k_target_write_pc): Declare
8501 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8502 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8503 (SHIFT_INST_REGS): Update definition.
8504 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8505 using old definition of TARGET_WRITE_PC.
8506 * regcache.c (generic_target_write_pc): Delete code handling
8507 NNPC_REGNUM.
8508 * gdbarch.sh (NNPC_REGNUM): Delete.
8509 * gdbarch.h, gdbarch.c: Regenerate.
8510
3e3f2739
RE
85112002-05-13 Richard Earnshaw <rearnsha@arm.com>
8512
8513 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8514 builtin reg number.
8515
0004e5a2
DJ
85162002-05-13 Daniel Jacobowitz <drow@mvista.com>
8517
8518 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8519 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8520 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8521 access macros.
8522 * c-typeprint.c (cp_type_print_method_args): Likewise.
8523 (c_type_print_args): Likewise.
8524 * d10v-tdep.c (d10v_push_arguments): Likewise.
8525 (d10v_extract_return_value): Likewise.
8526 * expprint.c (print_subexp): Likewise.
8527 * gdbtypes.c (lookup_primitive_typename): Likewise.
8528 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8529 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8530 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8531 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8532 (TYPE_VECTOR): Likewise.
8533 * hpread.c (hpread_read_struct_type)
8534 (fix_static_member_physnames, fixup_class_method_type)
8535 (hpread_type_lookup): Likewise.
8536 * mdebugread.c (parse_symbol, parse_type): Likewise.
8537 * p-lang.c (is_pascal_string_type): Likewise.
8538 * valops.c (hand_function_call): Likewise.
8539 * x86-64-tdep.c (classify_argument): Likewise.
8540
8541 * hpread.c (hpread_read_function_type)
8542 (hpread_read_doc_function_type): Call replace_type.
8543 * dstread.c (create_new_type): Delete.
8544 (decode_dst_structure, process_dst_function): Call alloc_type.
8545 Use type access macros.
8546
dff95cc7
MK
85472002-05-12 Mark Kettenis <kettenis@gnu.org>
8548
8549 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8550 the're not supported by the current architecture.
8551 (i387_fill_fxsave): Likewise.
8552
bbcd32ad
FF
85532002-05-12 Fred Fish <fnf@redhat.com>
8554
8555 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8556 sect_index_xxx members to index the first slot in section_offsets
8557 if all of the section_offsets are zero.
8558
89cf4787
MK
85592002-05-12 Mark Kettenis <kettenis@gnu.org>
8560
8561 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8562 checked in with last change.
8563
1f77ffc5
MK
85642002-05-12 Mark Kettenis <kettenis@gnu.org>
8565
8566 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8567 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8568 config.sub.
8569
89b8b4a9
DJ
85702002-05-12 Daniel Jacobowitz <drow@mvista.com>
8571
8572 * Makefile.in: Update dependencies.
8573
14a5e767
AC
85742002-05-11 Andrew Cagney <ac131313@redhat.com>
8575
8576 * language.c (local_hex_string_custom): Simplify. Do not depend
8577 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8578
8579 * memattr.c (mem_info_command): Replace calls to
8580 longest_local_hex_string and longest_local_hex_string_custom.
8581 * buildsym.c (make_blockvector): Ditto.
8582 * solib.c (info_sharedlibrary_command): Ditto.
8583 * tracepoint.c (tracepoints_info): Ditto.
8584 * symtab.c (print_msymbol_info): Ditto.
8585
8586 * language.c (local_hex_string): Delete.
8587 (local_hex_string_custom): Delete.
8588 (longest_local_hex_string): Rename to local_hex_string.
8589 (longest_local_hex_string_custom): Rename to
8590 local_hex_string_custom.
8591 * language.h (local_hex_string): Change parameter type to LONGEST.
8592 (local_hex_string_custom): Ditto.
8593 (longest_local_hex_string): Delete declaration.
8594 (longest_local_hex_string_custom): Ditto.
8595
8596 * solib.c: Update copyright.
8597 * memattr.c: Update copyright.
8598
13d01224
AC
85992002-05-11 Andrew Cagney <ac131313@redhat.com>
8600
8601 * arch-utils.h (legacy_register_to_value): Declare.
8602 (legacy_value_to_register): Declare.
8603 (legacy_convert_register_p): Declare.
8604 * arch-utils.c (legacy_register_to_value): New function.
8605 (legacy_value_to_register): New function.
8606 (legacy_convert_register_p): New function.
8607
8608 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8609 (VALUE_TO_REGISTER): Define.
8610 (CONVERT_REGISTER_P): Define.
8611 * gdbarch.h, gdbarch.c: Regenerate.
8612
8613 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8614 VALUE_TO_REGISTER.
8615 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8616 CONVERT_REGISTER_P.
8617
4a1970e4
DJ
86182005-05-11 Daniel Jacobowitz <drow@mvista.com>
8619 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8620
8621 * Makefile.in: Update dependencies for valops.c.
8622 * valops.c: Include "gdb_assert.h".
8623 (typecmp): Skip THIS parameter to methods.
8624 (find_method_list): Remove static_memfuncp argument,
8625 update callers. Check for stub methods.
8626 (find_value_oload_method_list): Don't set *static_memfuncp.
8627 (find_overload_match): Don't check for stub methods. Assert
8628 that methods are not stubbed. Handle static methods.
8629 (value_find_oload_method_list): Remove static_memfuncp argument.
8630 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8631 to the argument list for static stub methods.
8632 * value.h (value_find_oload_method_list): Update prototype.
8633
b2e75d78
AC
86342002-05-11 Andrew Cagney <ac131313@redhat.com>
8635
8636 * arch-utils.h (generic_register_size): Declare.
8637 (generic_register_raw_size, generic_register_virtual_size): Delete
8638 declarations.
8639 * arch-utils.c (generic_register_raw_size): Delete.
8640 (generic_register_size): New function.
8641 (generic_register_virtual_size): Delete.
8642
8643 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8644 default generic_register_size.
8645 * gdbarch.h, gdbarch.c: Re-generate.
8646
8647 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8648 register_virtual_size.
8649 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8650 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8651
451fbdda
AC
86522002-05-11 Andrew Cagney <ac131313@redhat.com>
8653
8654 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8655 * gdbarch.h, gdbarch.c: Regenerate.
8656 * gnu-v3-abi.c: Update copyright.
8657 (vtable_address_point_offset): Update.
8658 (gnuv3_rtti_type): Update.
8659 (gnuv3_baseclass_offset): Update.
8660 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8661 (init_fetch_link_map_offsets): Update.
8662 * remote.c (get_remote_state): Update.
8663
6d2f5cea
DJ
86642002-05-11 Daniel Jacobowitz <drow@mvista.com>
8665
8666 * TODO: Remove value_headof/value_from_vtable_info comment.
8667 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8668 * values.c (value_headof, value_from_vtable_info): Delete.
8669 * value.h (value_from_vtable_info): Delete prototype.
8670
d2324da4
AC
86712002-05-11 Andrew Cagney <ac131313@redhat.com>
8672
8673 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8674 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8675 $(gdb_regex_h).
8676 (gdb_assert_h): Define.
8677 (gdb_wait_h): Define.
8678 (gdb_regex_h): Define.
8679
5c717440
DJ
86802002-05-11 Daniel Jacobowitz <drow@mvista.com>
8681
8682 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8683 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8684
6c7861b3
JT
86852002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8686
8687 * nbsd-tdep.c: Fix comment.
8688
ea5bc2a6
JT
86892002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8690
8691 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8692 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8693 (nbsd-tdep.o): New dependency list.
8694 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8695 nbsd-tdep.h.
8696 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8697 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8698 * nbsd-tdep.c: New file.
8699 * nbsd-tdep.h: New file.
8700 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8701 nbsd-tdep.h.
8702 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8703 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8704 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8705 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8706
b28da865
JT
87072002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8708
8709 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8710 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8711 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8712 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8713 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8714 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8715
4b8ff1fa
JT
87162002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8717
8718 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8719 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8720 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8721 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8722 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8723 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8724 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8725
dfe6eb1f
JT
87262002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8727
8728 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8729 fetch_elfcore_registers to...
8730 * i386nbsd-tdep.c: ...here.
8731 (i386nbsd_use_struct_convention): Rename to...
8732 (i386nbsd_aout_use_struct_convention): ...this.
8733 (i386nbsd_supply_reg): New function.
8734 (i386nbsd_fill_reg): New function.
8735 (fetch_core_registers): Use i386nbsd_supply_reg.
8736 (fetch_elfcore_registers): Likewise.
8737 (_initialize_i386nbsd_tdep): New function.
8738 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8739 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8740 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8741 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8742 (i386nbsd_aout_use_struct_convention): ...this.
8743
20cb8cda
JT
87442002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8745
8746 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8747 (store_inferior_registers): Use shnbsd_fill_reg.
8748 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8749 sh_nbsd_supply_register): Collapse into...
8750 (shnbsd_supply_reg): ...this.
8751 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8752 (shnbsd_fill_reg): ...this.
8753 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8754 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8755 (fetch_core_registers): Use shnbsd_supply_reg.
8756 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8757 (sh_nbsd_core_fns): Rename to...
8758 (shnbsd_core_fns): ...this.
8759 (sh_nbsd_elfcore_fns): Rename to...
8760 (shnbsd_elfcore_fns): ...this.
8761 (sh_nbsd_init_abi): Rename to...
8762 (shnbsd_init_abi): ...this.
8763 (_initialize_sh_nbsd_tdep): Rename to...
8764 (_initialize_shnbsd_tdep): ...this.
8765 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8766 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8767 sh_nbsd_fill_register): Remove prototypes.
8768 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8769
e750d25e
JT
87702002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8771
8772 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8773 (i387-nat.o): Delete dependency list.
8774 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8775 (x86-64-linux-nat.o): Likewise.
8776 * i387-nat.c: Delete file, moving contents to...
8777 * i387-tdep.c: ...here.
8778 * i387-nat.h: Rename...
8779 * i387-tdep.h: ...to this.
8780 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8781 * i386-linux-nat.c: Likewise.
8782 * i386bsd-nat.c: Likewise.
8783 * i386gnu-nat.c: Likewise.
8784 * i386nbsd-nat.c: Likewise.
8785 * i386v4-nat.c: Likewise.
8786 * x86-64-linux-nat.c: Likewise.
8787 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8788 * config/i386/go32.mh (NATDEPFILES): Likewise.
8789 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8790 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8791 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8792 * config/i386/linux.mh (NATDEPFILES): Likewise.
8793 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8794 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8795 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8796 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8797
1aee598a
JT
87982002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8799
8800 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8801 (alphanbsd-nat.o): Remove dependency list.
8802 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8803 * alphanbsd-nat.c: Delete. Contents moved to...
8804 * alphanbsd-tdep.c: ...here.
8805 (_initialize_alphanbsd_tdep): Register core functions.
8806 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8807
12bcb0fe
JT
88082002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8809
8810 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8811 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8812 (alphanbsd-nat.o): Likewise.
8813 (alphabsd-tdep.o): New dependency list.
8814 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8815 (fill_gregset): Use alphabsd_fill_reg.
8816 (supply_fpregset): Use alphabsd_supply_fpreg.
8817 (fill_fpregset): Use alphabsd_fill_fpreg.
8818 (fetch_inferior_registers): Use struct reg and struct fpreg
8819 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8820 and alphabsd_supply_fpreg.
8821 (store_inferior_registers): Use struct reg and struct fpreg
8822 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8823 and alphabsd_fill_fpreg.
8824 * alphabsd-tdep.c: New file.
8825 * alphabsd-tdep.h: New file.
8826 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8827 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8828 alphabsd_supply_fpreg.
8829 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8830 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8831
361d1df0
EC
88322002-05-11 Eric Christopher <echristo@redhat.com>
8833
8834 * mips-tdep.c (mips_double_register_type): Fix thinko.
8835 (mips_single_register_type): Ditto.
8836 * MAINTAINERS: Add self.
8837
92dd7cee
MK
88382002-05-11 Mark Kettenis <kettenis@gnu.org>
8839
8840 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8841 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8842 right thing on architectures with different endianness and/or
8843 integer sizes.
8844
e27da16d
JT
88452002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8846
8847 From Christian Limpach <chris@Pin.LU>
8848 * configure.in: Change sed expression which comments out
8849 NATDEPFILES to also comment out continuation lines.
8850 * configure: Regenerate.
8851
ddde02bd
EZ
88522002-05-10 Elena Zannoni <ezannoni@redhat.com>
8853
8854 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8855 big patch.
8856
1c922164
EZ
88572002-05-10 Elena Zannoni <ezannoni@redhat.com>
8858
8859 * sh-tdep.c: Include correct file.
8860
283150cd
EZ
88612002-05-10 Elena Zannoni <ezannoni@redhat.com>
8862
8863 New support for sh64-elf (sh5) target.
8864
8865 * configure.tgt: For sh64-elf target, default to sh-elf.
8866
8867 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8868 (struct gdbarch_tdep): Add new fields for new registers and ABI
8869 info.
361d1df0 8870
283150cd
EZ
8871 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8872 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8873 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8874 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8875 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8876 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8877 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8878 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8879 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8880 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8881 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8882 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8883 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8884 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8885 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8886 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8887 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8888 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8889 sign_extend, sh64_nofp_frame_init_saved_regs,
8890 sh64_init_extra_frame_info, sh64_get_saved_register,
8891 sh64_extract_struct_value_address, sh64_pop_frame,
8892 sh64_push_arguments, sh64_extract_return_value,
8893 sh64_store_return_value, sh64_show_media_regs,
8894 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8895 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8896 sh_sh64_register_virtual_type,
8897 sh_sh64_register_convert_to_virtual,
8898 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8899 sh64_register_read, sh64_pseudo_register_write,
8900 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8901 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8902 sh64_do_pseudo_register, sh_compact_do_registers_info,
8903 sh64_do_registers_info, sh_gdbarch_init): New functions.
8904
3117ed25
EZ
89052002-05-10 Elena Zannoni <ezannoni@redhat.com>
8906
8907 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8908
2654e6d4
DJ
89092002-05-10 Daniel Jacobowitz <drow@mvista.com>
8910
8911 * linespec.c (decode_line_1): Check for a double quote after
8912 a filename correctly.
8913
9ab3e532
JB
89142002-05-10 Jim Blandy <jimb@redhat.com>
8915
8916 Properly track the size of the current objfile's .debug_line section.
8917 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8918 (DWARF_LINE_SIZE): New macro.
8919 (dwarf2_build_psymtabs_hard): Record the line section's size in
8920 the partial symbol table.
8921 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8922 symbol table.
8923
126fa72d
PS
89242002-05-10 Petr Sorfa <petrs@caldera.com>
8925
8926 * ia64-tdep.c: Handle breakpoints on L instruction type
8927 in MLX instruction bundle by moving the breakpoint to
8928 the third slot (X instruction type) as L holds only data.
8929
1f077a3e
KB
89302002-05-10 Kevin Buettner <kevinb@redhat.com>
8931
8932 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8933 (process_one_symbol): Complain about discarding local symbols
8934 due to a misplaced N_LBRAC entry.
8935
8120c9d5 89362002-05-09 Elena Zannoni <ezannoni@redhat.com>
361d1df0
EC
8937
8938 From Daniel Berlin <dan@cgsoftware.com>
8120c9d5
EZ
8939 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8940 decrease the depth we are at, in the case of templates.
361d1df0 8941
67b2c998
DJ
89422002-05-09 Daniel Jacobowitz <drow@mvista.com>
8943
8944 * mips-tdep.c (mips_float_register_type): New function.
8945 (mips_double_register_type): New function.
8946 (mips_print_register): Use them.
8947 (do_fp_register_row): Likewise.
8948
fd326606
DJ
89492002-05-09 Daniel Jacobowitz <drow@mvista.com>
8950
6609d9af 8951 * signals/signals.c (signals): Remove conditional compilation around
fd326606 8952 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 8953 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 8954
bef35864
MS
89552002-05-09 Michael Snyder <msnyder@redhat.com>
8956
8957 * remote-rdp.c (remote_rdp_can_run): Remove.
8958
c55a3f73
TT
89592002-05-09 Tom Tromey <tromey@redhat.com>
8960
8961 * jv-valprint.c (java_val_print): Handle `char' as a special case
8962 of TYPE_CODE_INT.
8963
b8d5e71d
MS
89642002-05-09 Michael Snyder <msnyder@redhat.com>
8965
8966 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
8967 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 8968 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 8969 str r(0123),[sp,#nn].
361d1df0 8970 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
8971 order-independent by placing it in a loop.
8972
e2cd42dd
MS
89732002-05-06 Michael Snyder <msnyder@redhat.com>
8974
8975 * stabsread.c (read_type): Add recognition for new attribute:
8976 "@V;" means that an array type is actually a vector.
8977 This is analogous to the vector flag that's been added to dwarf2.
8978
3ce1502b
MK
89792002-05-09 Mark Kettenis <kettenis@gnu.org>
8980
8981 * i386-tdep.h (i386_abi): New enum.
8982 (struct gdbarch_tdep): Replace os_ident member with abi.
8983 (i386_gdbarch_register_os_abi): New prototype.
8984 * i386-tdep.c (i386_abi_names): New array.
8985 (process_note_abi_tag_sections): Removed.
8986 (process_note_sections): New function.
8987 (i386_elf_abi_from_note, i386_elf_abi): New functions.
8988 (struct i386_abi_handler): New struct.
8989 (i386_abi_handler_list): New variable.
8990 (i386_gdbarch_register_os_abi): New function.
8991 (i386_gdbarch_init): Adapt for the changes given above.
8992
084c156a
DJ
89932002-05-08 Daniel Jacobowitz <drow@mvista.com>
8994
8995 * gregset.h: Say "GNU/Linux".
8996
6599f021
EZ
89972002-05-08 Elena Zannoni <ezannoni@redhat.com>
8998
8999 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9000 (build_gdbtypes): Build builtin_type_v2_float.
9001 (_initialize_gdbtypes): Register new builtin type.
9002
40af4b0c
AC
90032002-05-08 Andrew Cagney <ac131313@redhat.com>
9004
9005 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9006 (clear_gdbarch_swap): New function.
9007 (initialize_non_multiarch): Call.
9008 (gdbarch_update_p): Before calling init(), swap out and clear the
9009 existing architecture.
9010 * gdbarch.c: Regenerate.
9011
4fe84f46
JT
90122002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9013
9014 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9015 alphanbsd-tdep.c.
9016
4015edd1
JT
90172002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9018
9019 * sh-nbsd-nat.c: Rename to...
9020 * shnbsd-nat.c: ...this.
9021 * sh-nbsd-tdep.c: Rename to...
9022 * shnbsd-tdep.c: ...this.
9023 * sh-nbsd-tdep.h: Rename to...
9024 * shnbsd-tdep.h: ...this.
9025 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9026 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9027
0e2bd219
RE
90282002-05-08 Richard Earnshaw <rearnsha@arm.com>
9029
9030 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9031 concatenation for command help messages.
9032
13a38d45
JT
90332002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9034
9035 * NEWS: Note new sh*-*-netbsdelf* configuration.
9036 * configure.host: Set gdb_host_cpu to sh for all sh*.
9037 (sh*-*-netbsdelf*): New host.
9038 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9039 (sh*-*-netbsdelf*): New target.
9040 * sh-nbsd-nat.c: New file.
9041 * sh-nbsd-tdep.c: New file.
9042 * sh-nbsd-tdep.h: New file.
9043 * config/sh/nbsd.mh: New file.
9044 * config/sh/nbsd.mt: New file.
9045 * config/sh/nm-nbsd.h: New file.
9046 * config/sh/tm-nbsd.h: New file.
9047
d658f924
JT
90482002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9049
9050 * sh-tdep.c (sh_osabi_names): Declare.
9051 (process_note_abi_tag_sections): New function.
9052 (get_elfosabi): Ditto.
9053 (sh_gdbarch_register_os_abi): Ditto.
9054 (sh_dump_tdep): Ditto.
9055 _initialize_sh_tdep): Use gdbarch_register to register
9056 sh_gdbarch_init and sh_dump_tdep.
9057 * config/sh/tm-sh.h (sh_osabi): Declare.
9058 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9059
848cfffb
AC
90602002-05-07 Andrew Cagney <ac131313@redhat.com>
9061
9062 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9063 (thumb_scan_prologue): Ditto.
9064 (arm_find_callers_reg): Ditto.
9065 (arm_frame_chain): Ditto.
9066 (arm_init_extra_frame_info): Ditto.
9067 (arm_frame_saved_pc): Ditto.
9068 (arm_pop_frame): Ditto.
9069 (arm_push_return_address): New function.
9070 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9071 call_dummy_location, call_dummy_breakpoint_offset_p,
9072 call_dummy_breakpoint_offset, call_dummy_p,
9073 call_dummy_stack_adjust_p, call_dummy_words,
9074 sizeof_call_dummy_words, call_dummy_start_offset,
9075 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9076 call_dummy_address, push_return_address and push_dummy_frame for
9077 generic dummy frames.
9078
e7d717c0
JT
90792002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9080
9081 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9082 size computation for alloca.
9083 (sh_fp_frame_init_saved_regs): Likewise.
9084
7bbcf283
RE
90852002-05-07 Richard Earnshaw <rearnsha@arm.com>
9086
9087 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9088 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9089 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9090 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9091 * remote-rdp.c (remote_rdp_fetch_register): Use
9092 ARM_MAX_REGISTER_RAW_SIZE.
9093 (remote_rdp_store_register): Likewise.
9094
4657573b
ML
90952002-05-07 Michal Ludvig <mludvig@suse.cz>
9096
361d1df0 9097 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9098 added default labels to switch {} statements.
9099 * x86-64-tdep.c: Ditto.
9100 * x86-64-linux-nat.c: Ditto.
9101
010f3b2f
JT
91022002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9103
9104 * solib.h: Protect against multiple inclusion.
9105
debd256d
JB
91062002-05-06 Jim Blandy <jimb@redhat.com>
9107
9ab3e532
JB
9108 Add first preprocessor macro-expansion files.
9109 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9110 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9111 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9112 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9113 (COMMON_OBS): Add macrotab.o, macroexp.o.
9114 (macroexp.o, macrotab.o): New rules.
9115
debd256d
JB
9116 Separate the job of reading the line number info statement program
9117 header (...expialidocious) out into its own function.
9118 * dwarf2read.c (struct line_head, struct filenames, struct
9119 directories): Replace with...
9120 (struct line_header): New structure, containing the full
9121 contents of the statement program header, including the
9122 include directory and file name tables.
9123 (read_file_scope): If we have line number info, instead of just
9124 calling dwarf_decode_lines to do all the work, call
9125 dwarf_decode_line_header first to get a `struct line_header'
9126 containing the data in the statement program header, and then
9127 pass that to dwarf_decode_lines, which will pick up where that
9128 left off. Be sure to clean up the `struct line_header' object.
9129 (dwarf_decode_line_header, free_line_header, add_include_dir,
9130 add_file_name): New functions.
9131 (dwarf_decode_lines): Move all the code to read the statement
9132 program header into dwarf_decode_line_header. Take the line
9133 header it built as the first argument, instead of the offset to
9134 the compilation unit's line number info. Use the new `struct
9135 line_header' type instead of the old structures. No need to do
9136 cleanups here now, since we don't allocate anything.
9137 (dwarf2_statement_list_fits_in_line_number_section,
9138 dwarf2_line_header_too_long): New complaints.
9139
ac3aafc7
EZ
91402002-05-06 Elena Zannoni <ezannoni@redhat.com>
9141
9142 * gdbtypes.c (init_vector_type): New function.
9143 (build_builtin_type_vec128): Simplify the representation of SIMD
9144 registers.
9145 (build_gdbtypes): Initialize new builtin vector types.
9146 (_initialize_gdbtypes): Register new vector types with gdbarch.
9147 (builtin_type_v4_float, builtin_type_v4_int32,
9148 builtin_type_v8_int16, builtin_type_v16_int8,
9149 builtin_type_v2_int32, builtin_type_v4_int16,
9150 builtin_type_v8_int8): New (renamed) SIMD types.
9151
13e49980
MK
91522002-05-06 Mark Kettenis <kettenis@gnu.org>
9153
9154 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9155 (i387_fill_fxsave): Likewise.
9156
997b20b8
AO
91572002-05-05 Alexandre Oliva <aoliva@redhat.com>
9158
9159 * alpha-tdep.c (alpha_extract_return_value): Don't use
9160 non-constant array size in prototype.
9161
535c96ce
AC
91622002-05-04 Andrew Cagney <ac131313@redhat.com>
9163
9164 From Brian Taylor <briant at model dot com>:
9165 * ui-out.c (ui_out_field_core_addr): Use the function
9166 longest_local_hex_string_custom'to format addresses > 32 bits
9167 wide.
9168
9169 * ui-out.c (ui_out_field_core_addr): Update comment.
9170
bedfa57b
AC
91712002-05-04 Andrew Cagney <ac131313@redhat.com>
9172
9173 * stack.c (select_and_print_frame): Make static. Delete the
9174 parameter `level'.
9175 (func_command): Update call.
9176 (select_frame_command): Delete code computing the frame level.
9177 * frame.h (select_and_print_frame): Delete declaration.
9178
f621c63e
AC
91792002-05-04 Andrew Cagney <ac131313@redhat.com>
9180
9181 * sparc-tdep.c (sparc_get_saved_register): Comment why
9182 get_prev_frame call is safe.
9183
0f7d239c
AC
91842002-05-04 Andrew Cagney <ac131313@redhat.com>
9185
9186 * frame.h (select_frame): Delete level parameter.
9187 * stack.c (select_frame): Update. Use frame_relative_level to
9188 obtain the frame's level.
9189 (select_and_print_frame): Update call.
9190 (select_frame_command): Ditto.
9191 (up_silently_base): Ditto.
9192 (down_silently_base): Ditto.
9193 * ocd.c (ocd_start_remote): Ditto.
9194 * remote-rdp.c (remote_rdp_open): Ditto.
9195 * remote-mips.c (mips_initialize): Ditto.
9196 (common_open): Ditto.
9197 * remote-e7000.c (e7000_start_remote): Ditto.
9198 * m3-nat.c (select_thread): Ditto.
9199 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9200 (child_get_current_exception_event): Ditto.
9201 * varobj.c (varobj_create): Ditto.
9202 (varobj_update): Ditto.
9203 (c_value_of_root): Ditto.
9204 * tracepoint.c (finish_tfind_command): Ditto.
9205 * corelow.c (core_open): Ditto.
9206 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9207 * thread.c (info_threads_command): Ditto.
9208 (switch_to_thread): Ditto.
9209 * infrun.c (normal_stop): Ditto.
9210 (restore_selected_frame): Ditto.
9211 (restore_inferior_status): Ditto.
9212 * breakpoint.c (insert_breakpoints): Ditto.
9213 (watchpoint_check): Ditto.
9214 (bpstat_stop_status): Ditto.
9215 (do_enable_breakpoint): Ditto.
9216 * blockframe.c (flush_cached_frames): Ditto.
9217 (reinit_frame_cache): Ditto.
9218
71d6c7b1
AC
92192002-05-04 Andrew Cagney <ac131313@redhat.com>
9220
9221 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9222 maintainer.
9223
cda6c68a
JB
92242002-05-04 Jim Blandy <jimb@redhat.com>
9225
9226 * gdbtypes.c (replace_type): Doc fix.
9227
5c1c87f0
AC
92282002-05-04 Andrew Cagney <ac131313@redhat.com>
9229
9230 * valprint.c (strcat_longest): Delete commented out function.
9231 Update copyright.
9232
cd9bfe15
AC
92332002-05-04 Andrew Cagney <ac131313@redhat.com>
9234
9235 * MAINTAINERS: Mark a29k as deleted.
9236 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9237 Move new configurations to the top.
9238 * configure.tgt: Remove a29k.
9239 * config/a29k/tm-vx29k.h: Delete.
9240 * config/a29k/vx29k.mt: Delete.
9241 * config/a29k/tm-a29k.h: Delete.
9242 * config/a29k/a29k-udi.mt: Delete.
9243 * config/a29k/a29k.mt: Delete.
9244 * a29k-tdep.c: Delete.
9245 * remote-udi.c: Delete.
9246 * remote-mm.c: Delete.
9247 * remote-eb.c: Delete.
9248 * remote-adapt.c: Delete.
9249 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9250 * config/s390/s390x.mt: Ditto.
9251 * config/s390/s390.mt: Ditto.
9252 * config/sparc/sparclynx.mh: Ditto.
9253 * config/sparc/linux.mh: Ditto.
9254 * config/pa/hppaosf.mh: Ditto.
9255 * config/pa/hppabsd.mh: Ditto.
9256 * config/ns32k/nbsd.mt: Ditto.
9257 * config/mips/vr5000.mt: Ditto.
9258 * config/m68k/sun3os4.mh: Ditto.
9259 * config/m68k/nbsd.mt: Ditto.
9260 * config/m68k/m68klynx.mh: Ditto.
9261 * config/m32r/m32r.mt: Ditto.
9262 * config/i386/x86-64linux.mt: Ditto.
9263 * config/i386/nbsdelf.mt: Ditto.
9264 * config/i386/nbsd.mt: Ditto.
9265 * config/i386/i386lynx.mh: Ditto.
9266
bf0c5130
AC
92672002-05-04 Andrew Cagney <ac131313@redhat.com>
9268
9269 * target.c (debug_print_register): New function. Handle oversize
9270 registers.
9271 (debug_to_fetch_registers): Call.
9272 (debug_to_store_registers): Call.
9273
2ae1c2d2
JB
92742002-05-03 Jim Blandy <jimb@redhat.com>
9275
13a393b0
JB
9276 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9277 (read_type): Doc fix.
9278 * gdbtypes.c (replace_type): Doc fix.
9279
2ae1c2d2
JB
9280 * stabsread.c (multiply_defined_struct): New complaint.
9281 (read_struct_type): If the type we were passed isn't empty, or
9282 incomplete, don't read the new struct type into it; complain,
9283 and return the original type unchanged. Take a new `type_code'
9284 argument, which is the type code for the new type.
9285 (read_type): Rather than storing the type's type code here, pass
9286 it as an argument to read_struct_type, and let that take care of
9287 storing it. That way, we don't overwrite the original type code,
9288 so read_struct_type can use it to decide whether we're overwriting
9289 something we shouldn't.
9290 (complain_about_struct_wipeout): New function.
9291
8de9bdc4
AC
92922002-05-03 Andrew Cagney <ac131313@redhat.com>
9293
9294 * gdbarch.sh: Assert that gdbarch is non-NULL.
9295 * gdbarch.c: Regenerate.
9296
f773fdbb
JM
92972002-05-03 Jason Merrill <jason@redhat.com>
9298
9299 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9300 and return NULL.
9301
0e04a514
ML
93022002-05-03 Michal Ludvig <mludvig@suse.cz>
9303
9304 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9305 (x86_64_dwarf2gdb_regno_map_length),
9306 (x86_64_dwarf2_reg_to_regnum): Added.
9307 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9308 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9309 (_initialize_x86_64_tdep): Synced with the change above.
9310 (x86_64_skip_prologue): Reformulated message.
9311
065432a8
PM
93122002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9313
9314 * f-exp.y: Also use new prev_lexptr variable
9315 to improve error reporting. Based on Michael Snyder
9316 2002-04-24 dated patch to c-exp.y.
9317 * jv-exp.y: Likewise.
9318 * m2-exp.y: Likewise.
9319
a3162708
EZ
93202002-05-02 Elena Zannoni <ezannoni@redhat.com>
9321
9322 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9323 we are dealing with vectors.
9324
03620c38
PM
93252002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9326
9327 * config/m68k/tm-nbsd.h: Obvious fix,
9328 correct machine name.
9329
6604db2e
PM
93302002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9331
9332 * p-typeprint.c (pascal_type_print_base): Add support
9333 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9334
0906b739
PM
93352002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9336
9337 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9338 for fondamental pascal 'char' type.
9339
e2625b33
PM
93402002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9341
9342 * p-lang.h (is_pascal_string_type): Declaration changed,
9343 new sixth argument of type char ** added.
361d1df0 9344 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9345 changed. Args length_pos, length_size, string_pos, char_size
9346 can now be NULL. New argument arrayname set to the field
9347 name of the char array. Return value set to char array
9348 field index plus one.
361d1df0 9349 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9350 is_pascal_string_type function.
9351
cf17c188
AC
93522002-05-02 Andrew Cagney <cagney@redhat.com>
9353
9354 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9355 <cagney@redhat.com> change.
9356 * gdbarch.c: Regenerate.
9357
52bca491
AC
93582002-05-02 Andrew Cagney <cagney@redhat.com>
9359
9360 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9361 before probing for a new one. Detect errorenous gdbarch_init
9362 functions.
9363 * gdbarch.c: Regenerate.
9364
d5e72505
AC
93652002-05-01 Andrew Cagney <cagney@redhat.com>
9366
9367 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9368 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9369 * config/v850/tm-v850.h: Ditto. Update copyright.
9370
af566d9f
AC
93712002-04-30 Andrew Cagney <ac131313@redhat.com>
9372
9373 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9374 current_gdbarch.
9375
880d85fa
MS
93762002-04-30 Michael Snyder <msnyder@redhat.com>
9377
94c30b78
MS
9378 * arm-tdep.c: Whitespace clean-ups.
9379 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9380 should have been removed as part of 4/24 change.
9381
6f5987a6
KB
93822002-04-30 Kevin Buettner <kevinb@redhat.com>
9383
9384 * rs6000-tdep.c: Added comment describing how fpscr register
9385 numbers were chosen.
9386
1a113c93
MS
93872002-04-30 Michael Snyder <msnyder@redhat.com>
9388
9389 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9390
9a6f53fe
EZ
93912002-04-29 Elena Zannoni <ezannoni@redhat.com>
9392
9393 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9394 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9395 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9396
11ed25ac
KB
93972002-04-29 Kevin Buettner <kevinb@redhat.com>
9398
9399 From Louis Hamilton <hamilton@redhat.com>:
9400 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9401 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9402 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9403 not bfd-private xcoff data, to determine wordsize.
9404 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9405
ae232405
AC
94062002-04-29 Andrew Cagney <ac131313@redhat.com>
9407
9408 GDB 5.2 released from 5.2 branch.
9409
91fd20f7
ML
94102002-04-29 Michal Ludvig <mludvig@suse.cz>
9411
9412 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9413 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9414 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9415
2dc5091b
EZ
94162002-04-29 Elena Zannoni <ezannoni@redhat.com>
9417
9418 * rs6000-tdep.c (rs6000_extract_return_value,
9419 rs6000_store_return_value): Handle returning vectors.
9420 (rs6000_gdbarch_init): Use
9421 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9422 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9423 New function.
9424 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9425 vectors.
9426 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9427 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9428
2b9848d8
PM
94292002-04-24 Pierre Muller <ics.u-strasbg.fr>
9430
9431 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9432 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9433 with fprintf_unfiltered (gdb_stderr,...).
9434
f8d17dc5
PM
94352002-04-24 Pierre Muller <ics.u-strasbg.fr>
9436
9437 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9438 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9439 Replace fprintf (stderr,...
9440 with fprintf_unfiltered (gdb_stderr,....
9441 * remote-es.c: Likewise.
9442 * remote-os9k.c: Likewise.
9443 * remote-st.c: Likewise.
9444
2f2f1ad1
AS
94452002-04-28 Andreas Schwab <schwab@suse.de>
9446
9447 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9448 linux-proc.o and gcore.o.
9449
b6779aa2
AC
94502002-04-26 Michal Ludvig <mludvig@suse.cz>
9451
9452 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9453 code without frame pointers.
9454
7e57f5f4
AC
94552002-04-26 Andrew Cagney <ac131313@redhat.com>
9456
9457 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9458 ON_STACK is needed.
9459
2ceb85d0
BE
94602002-04-26 Ben Elliston <bje@redhat.com>
9461
9462 * target.c (do_xfer_memory): Correct reference to the new option
9463 "trust-readonly-sections".
9464
f5f8a009
EZ
94652002-04-26 Elena Zannoni <ezannoni@redhat.com>
9466
9467 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9468 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9469 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9470 vectors.
9471 (read_array_type): Record the fact that this array type is really a
9472 vector (i.e. are passed in by value).
9473
5868c862
JT
94742002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9475
9476 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9477 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9478 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9479 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9480 * alpha-linux-tdep.c: Include frame.h.
9481 (alpha_linux_sigcontext_addr): New function.
9482 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9483 alpha_linux_sigcontext_addr.
9484 * alpha-osf1-tdep.c: Include gdbcore.h.
9485 (alpha_osf1_sigcontext_addr): New function.
9486 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9487 alpha_osf1_sigcontext_addr.
9488 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9489 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9490
bfb01f37
AC
94912002-04-26 Andrew Cagney <ac131313@redhat.com>
9492
361d1df0 9493 * stack.c (selected_frame_level):
bfb01f37
AC
9494 (select_frame): Do not set selected_frame_level.
9495 * frame.h (selected_frame_level): Delete declaration.
9496
15813d3f
AC
94972002-04-26 Andrew Cagney <ac131313@redhat.com>
9498
9499 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9500 convert_from_func_ptr-addr when AIX / PowerOpen.
9501
6096c27a
AC
95022002-04-25 Andrew Cagney <ac131313@redhat.com>
9503
9504 * valops.c (hand_function_call): Call
9505 generic_save_call_dummy_addr.
9506 * frame.h (generic_save_call_dummy_addr): Declare.
9507 * blockframe.c (struct dummy_frame): Add fields call_lo and
9508 call_hi.
9509 (generic_find_dummy_frame): Check for PC in range call_lo to
9510 call_hi instead of entry_point_address.
9511 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9512 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9513 (generic_save_call_dummy_addr): New function.
9514
f510d44e
DM
95152002-04-24 David S. Miller <davem@redhat.com>
9516
9517 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9518 sparc_skip_prologue.
9519 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9520 information to find prologue when possible.
9521 (sparc_prologue_frameless_p): Call examine_prologue directly.
9522 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9523 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9524 second argument.
9525 (SKIP_PROLOGUE): Likewise.
9526
15d72a92
JT
95272002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9528
9529 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9530 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9531 indicate that the condition it was testing is always true.
9532 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9533 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9534 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9535
accc6d1f
JT
95362002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9537
9538 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9539 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9540 tdep->jb_pc and tdep->jb_elt_size.
9541 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9542 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9543 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9544 * alpha-nat.c (get_longjmp_target): Remove.
9545 (JB_ELEMENT_SIZE): Ditto.
9546 (JB_PC): Ditto.
9547 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9548 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9549 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9550 to alpha_get_longjmp_target.
9551 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9552 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9553 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9554
1bfdc549
AC
95552002-04-25 Andrew Cagney <ac131313@redhat.com>
9556
9557 * README: Update to GDB 5.2.
9558
1bd316f0
AC
95592002-04-25 Andrew Cagney <ac131313@redhat.com>
9560
9561 * gdbarch.sh (LC_ALL): Set to `c'.
9562
2e5ff58c
TR
95632002-04-25 Theodore A. Roth <troth@verinet.com>
9564
9565 * avr-tdep.c: Ran through gdb_indent.sh.
9566
e33ce519
TR
95672002-04-25 Theodore A. Roth <troth@verinet.com>
9568
9569 * MAINTAINERS: Add myself as AVR maintainer.
9570 * NEWS: Note new target avr.
9571
8818c391
TR
95722002-04-25 Theodore A. Roth <troth@verinet.com>
9573
9574 * Makefile.in: Add support for AVR target.
9575 * configure.tgt: Add support for AVR target.
9576 * avr-tdep.c: New file
9577 * config/avr/avr.mt: New file.
9578
79509c2d
TR
95792002-04-25 Theodore A. Roth <troth@verinet.com>
9580
9581 * MAINTAINERS: Add myself to write-after-approval.
9582
dac8068e
PM
95832002-04-24 Pierre Muller <ics.u-strasbg.fr>
9584
9585 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9586 with fprintf_unfiltered (gdb_stderr,....
9587
25bf3106
PM
95882002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9589
9590 Fix PR gdb/508.
9591 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9592
24467a86
PM
95932002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9594
9595 * p-exp.y: Also use new prev_lexptr variable
9596 to improve error reporting. Based on Michael Snyder
9597 2002-04-24 dated patch to c-exp.y.
9598
95b80706
JT
95992002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9600
9601 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9602 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9603 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9604 to 0.
9605 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9606 and struct value.
9607 (FUNCTION_START_OFFSET): Remove.
9608 (BREAKPOINT): Ditto.
9609
e90cc612
JT
96102002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9611
9612 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9613 * NEWS: Ditto.
9614
6c72f9f9
JT
96152002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9616
9617 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9618 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9619 alpha_linux_pc_in_sigtramp.
9620 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9621 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9622 alpha_osf1_pc_in_sigtramp.
9623 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9624 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9625 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9626 alphafbsd_pc_in_sigtramp.
9627 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9628 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9629 alphanbsd_pc_in_sigtramp.
9630 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9631 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9632
5e4f3379
JT
96332002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9634
9635 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9636
da8ca43d
JT
96372002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9638
9639 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9640 alphanbsd-tdep.c.
9641 (alphanbsd-nat.o): New dependency list.
9642 (alphanbsd-tdep.o): Ditto.
9643 * NEWS: Note new native NetBSD/alpha configuration.
9644 * alphanbsd-nat.c: New file.
9645 * alphanbsd-tdep.c: Ditto.
9646 * configure.host (alpha*-*-netbsd*): New host.
9647 * configure.tgt (alpha*-*-netbsd*): New target.
9648 * config/alpha/nbsd.mh: New file.
9649 * config/alpha/nbsd.mt: Ditto.
9650 * config/alpha/nm-nbsd.h: Ditto.
9651 * config/alpha/tm-nbsd.h: Ditto.
9652
36a6271d
JT
96532002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9654
9655 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9656 (alpha-osf1-tdep.o): New dependency list.
9657 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9658 and skip_sigtramp_frame members.
9659 * alpha-linux-tdep.c: Include gdbcore.h.
9660 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9661 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9662 * alpha-osf1-tdep.c: New file.
9663 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9664 alpha-osf1-dep.c.
9665 (alpha_frame_past_sigtramp_frame): New function.
9666 (alpha_dynamic_sigtramp_offset): Ditto.
9667 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9668 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9669 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9670 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9671 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9672 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9673 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9674 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9675 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9676 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9677 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9678 to find_solib_trampoline_target.
9679 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9680 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9681 (SKIP_TRAMPOLINE_CODE): Remove.
9682 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9683 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9684 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9685 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9686 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9687 (PROC_SIGTRAMP_MAGIC): Ditto.
9688 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9689 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9690 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9691 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9692 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9693
2f4bc57b
JT
96942002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9695
9696 * NEWS: Note that Alpha targets are now multi-arch.
9697
665132f9
MS
96982002-04-24 Michael Snyder <msnyder@redhat.com>
9699
9700 * parser-defs.h (prev_lexptr): New external variable.
9701 * parse.c (parse_exp_1): Set prev_lexptr to null before
9702 calling the language-specific parser.
9703 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9704 (yyerror): Use prev_lexptr in error reporting.
9705
32872fa7
DJ
97062002-04-24 Daniel Jacobowitz <drow@mvista.com>
9707
9708 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9709 * gregset.h: If FILL_FPXREGSET is defined, provide
9710 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9711 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9712 is defined, call fill_fpxregset.
9713
57e76fac
MS
97142002-04-24 Roland McGrath <roland@frob.com>
9715
9716 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9717 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9718 (supply_gregset, supply_fpregset): New functions.
9719
9720 * gnu-nat.c (gnu_find_memory_regions): New function.
9721 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9722 (gnu_xfer_memory): Add a cast.
9723
f43845b3
MS
97242002-04-24 Michael Snyder <msnyder@redhat.com>
9725
361d1df0 9726 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
9727 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9728 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 9729 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
9730 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9731 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9732
a0abec03
AC
9733Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9734
9735 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9736 NUM_PSEUDO_REGS can be used.
9737
d7bd68ca
AC
97382002-04-24 Andrew Cagney <ac131313@redhat.com>
9739
9740 * arch-utils.h: Update copyright.
9741
9742 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9743 * gdbarch.h, gdbarch.c: Re-generate.
9744
9745 * inferior.h (IN_SIGTRAMP): Delete definition.
9746 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9747 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9748
9749 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9750 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9751 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9752 (find_proc_framesize): Ditto.
9753 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9754 (alpha_init_extra_frame_info): Ditto.
9755 * infrun.c (handle_inferior_event): Ditto.
9756 (handle_inferior_event): Ditto.
9757 (check_sigtramp2): Ditto.
9758 * blockframe.c (create_new_frame): Ditto.
9759 (get_prev_frame): Ditto.
9760 * ppc-linux-tdep.c: Update comments.
9761 * i386-linux-tdep.c: Update comments.
9762 * breakpoint.c (bpstat_what): Update comment.
9763
4867e41e
DM
97642002-04-24 David S. Miller <davem@redhat.com>
9765
21d83aa5
DM
9766 * i960-tdep.c (register_in_window_p): New function.
9767 (i960_find_saved_register): Use it instead of
9768 REGISTER_IN_WINDOW_P.
9769 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9770
4867e41e
DM
9771 * symtab.h (find_stab_function_addr): Kill extern.
9772 * minsyms.c (find_stab_function_addr): Remove from here...
9773 * dbxread.c: ... to here, and mark it static.
9774
69cdf6a2
DM
97752002-04-20 David S. Miller <davem@redhat.com>
9776
9777 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9778 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9779
5a595886
DM
97802002-04-21 David S. Miller <davem@redhat.com>
9781
9782 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9783 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9784 (vx_write_register): Likewise.
9785
1da1a192
JB
97862002-04-23 J. Brobecker <brobecker@gnat.com>
9787
9788 * source.c (is_regular_file): New function.
9789 (openp): Check wether file to open is a regular file
9790 to avoid opening directories.
9791
baa6f10b
JT
97922002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9793
9794 * findvar.c (extract_signed_integer): Cast printf argument
9795 to suppress format warning.
9796 (extract_unsigned_integer): Likewise.
9797 * infcmd.c (registers_info): Likewise.
9798 * top.c (get_prompt_1): Likewise.
9799 * valops.c (value_assign): Likewise.
9800 * valprint.c (print_decimal): Likewise.
9801
b2c4da81
L
98022002-04-22 H.J. Lu (hjl@gnu.org)
9803
9804 * c-exp.y (typebase): Support
361d1df0 9805
b2c4da81
L
9806 [long|long long|short] [signed|unsigned] [int|]
9807
9808 and
9809
9810 signed [long|long long|short] int
9811
f267bd6a
JT
98122002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9813
9814 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9815 and vax-tdep.h.
9816 * vax-tdep.h: New file.
9817 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9818 Make several routines static.
9819 (vax_get_saved_register): New function.
9820 (vax_gdbarch_init): New function.
9821 (_initialize_vax_tdep): Register vax_gdbarch_init.
9822 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9823 Remove macros now under the control of gdbarch.
9824
da3c6d4a
MS
98252002-04-22 Michael Snyder <msnyder@redhat.com>
9826
11d3b27d
MS
9827 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9828 Some whitespace and coding standards tweaks.
da3c6d4a 9829
a33f7558
JT
98302002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9831
9832 * vax-tdep.c: Include regcache.h.
9833 (vax_call_dummy_words): New.
9834 (sizeof_vax_call_dummy_words): New.
9835 (vax_fix_call_dummy): New function.
9836 (vax_saved_pc_after_call): Ditto.
9837 * config/vax/tm-vax.h: Don't include regcache.h.
9838 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9839 (CALL_DUMMY): Remove.
9840 (CALL_DUMMY_WORDS): Define.
9841 (SIZEOF_CALL_DUMMY_WORDS): Define.
9842 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9843
47a73475
MS
98442002-04-18 Michael Snyder <msnyder@redhat.com>
9845
9846 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9847
52efde73
JT
98482002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9849
9850 * vax-tdep.c (vax_frame_chain): New function.
9851 (vax_push_dummy_frame): Ditto.
9852 (vax_pop_frame): Ditto.
9853 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9854 (FRAMELESS_FUNCTION_INVOCATION): Use
9855 generic_frameless_function_invocation_not.
9856 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9857 (POP_FRAME): Use vax_pop_frame.
9858
ea74468c
JT
98592002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9860
9861 * vax-tdep.c (vax_store_struct_return): New function.
9862 (vax_extract_return_value): Ditto.
9863 (vax_store_return_value): Ditto.
9864 (vax_extract_struct_value_address): Ditto.
9865 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9866 vax_store_struct_return.
9867 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9868 (STORE_RETURN_VALUE): Use vax_store_return_value.
9869 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9870
5516aa92
JT
98712002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9872
9873 * vax-tdep.c (vax_frame_saved_pc): New function.
9874 (vax_frame_args_address_correct): Ditto.
9875 (vax_frame_args_address): Ditto.
9876 (vax_frame_locals_address): Ditto.
9877 (vax_frame_num_args): Move code to be in proximity to
9878 other frame-related functions.
9879 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9880 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9881 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9882 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9883 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9884
36af0b35
L
98852002-04-22 H.J. Lu (hjl@gnu.org)
9886
9887 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9888 includedir.
9889
ab62c900
JT
98902002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9891
9892 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9893 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9894 (FRAME_INIT_SAVED_REGS): New macro.
9895
7232b100
JT
98962002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9897
9898 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9899
b70d2aee
JT
99002002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9901
9902 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9903 where needed.
9904 (fetch_osf_core_registers): Likewise.
9905 (supply_gregset): Likewise.
9906
a0e8a2d1 99072002-04-22 J. Brobecker <brobecker@gnat.com>
361d1df0 9908
a0e8a2d1
JB
9909 * symfile.h (get_section_index): Define.
9910 * symfile.c (get_section_index): New function.
9911 * mdebugread.c (SC_IS_SBSS): New macro.
9912 (SC_IS_BSS): Return true for the scBss storage class only, as
9913 the scSBss storage class refers to the .sbss section.
9914 (parse_partial_symbols): Discard the symbols which associated
9915 section does not exist.
9916 Make sure to use the .sbss section index for symbols which
9917 storage class is scBss, rather than using the .bss section index.
9918
51eb8b08
JT
99192002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9920
9921 * vax-tdep.c: Update copyright years.
9922 (vax_register_name): New function.
9923 (vax_register_byte): Ditto.
9924 (vax_register_raw_size): Ditto.
9925 (vax_register_virtual_size): Ditto.
9926 (vax_register_virtual_type): Ditto.
9927 * config/vax/tm-vax.h: Update copyright years.
9928 (REGISTER_NAMES): Remove.
9929 (REGISTER_NAME): Define.
9930 (REGISTER_BYTE): Use vax_register_byte.
9931 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9932 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9933 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9934
6cc1c0a8
AC
99352002-04-21 Andrew Cagney <ac131313@redhat.com>
9936
9937 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9938 declaration
9939 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9940
9319a2fe
DM
99412002-04-21 David S. Miller <davem@redhat.com>
9942
9943 * arch-utils.c (generic_prologue_frameless_p): Kill
9944 SKIP_PROLOGUE_FRAMELESS_P code.
9945 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9946 references.
9947 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9948 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9949 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9950 references.
9951 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9952 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9953 (sparc_gdbarch_init): Pass it to
9954 set_gdbarch_prologue_frameless_p.
a0e8a2d1 9955
e9ed6d01
JT
99562002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9957
9958 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
9959 (alphabsd-nat.o): New dependency list.
9960
36012033
JT
99612002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9962
9963 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
9964 alphafbsd-tdep.c.
9965 (alpha-linux-tdep.o): New dependency list.
9966 (alphafbsd-tdep.o): Likewise.
9967
3379287a
JT
99682002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9969
9970 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
9971 to here...
9972 * alpha-tdep.c: ...from here.
9973 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
9974
4bcbd6cb
JT
99752002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
9976
9977 * config/alpha/tm-alpha.h: Move alpha_software_single_step
9978 prototype from here...
9979 * alpha-tdep.h: ...to here.
9980
b31da25e
AC
99812002-04-21 Andrew Cagney <ac131313@redhat.com>
9982
9983 * frame.h (selected_frame_level): Document as deprecated.
9984 (frame_relative_level): Declare.
9985 * stack.c (frame_relative_level): New function.
9986 (selected_frame_level): Document as deprecated.
9987 (select_frame): Do not set the selected_frame_level.
9988
9989 * stack.c (frame_info, record_selected_frame): Update.
9990 (frame_command, current_frame_command): Update.
9991 (up_silently_base, up_command, down_silently_base): Update.
9992 (down_command): Update.
9993 * inflow.c (kill_command): Update.
9994 * tracepoint.c (finish_tfind_command): Update.
9995 * corelow.c (core_open): Update.
9996 * thread.c (info_threads_command): Update.
9997 (do_captured_thread_select): Update.
9998 * infcmd.c (finish_command): Update.
9999 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10000
9c1d6fe5
JT
100012002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10002
10003 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10004
ab89facf
AC
100052002-04-21 Andrew Cagney <ac131313@redhat.com>
10006
10007 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10008 type const.
10009
82a4efa1
JT
100102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10011
10012 * alphafbsd-tdep.c: Update copyright years. Include
10013 alpha-tdep.h.
10014 (alphafbsd_use_struct_convention): Make static.
10015 (alphafbsd_init_abi): New function.
10016 (_initialize_alphafbsd_tdep): New function.
10017 * config/alpha/tm-fbsd.h: Update copyright years.
10018 (USE_STRUCT_CONVENTION): Remove.
10019
44dffaac
JT
100202002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10021
10022 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10023 an Alpha ABI variant.
10024 (alpha_abi_handler_list): Declare.
10025 (alpha_gdbarch_register_os_abi): New function.
10026 (alpha_gdbarch_init): Give registered ABI variant handlers a
10027 chance to tweak the gdbarch once we have set up defaults.
10028 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10029
65585be4
JT
100302002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10031
10032 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10033 to standard_coerce_float_to_double.
10034 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10035
d9b023cc
JT
100362002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10037
10038 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10039 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10040 from gdbarch_tdep rather than a constant.
10041 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10042 the default text address for all Alpha Unix ABIs.
10043 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10044 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10045
dc129d82
JT
100462002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10047
10048 * alpha-tdep.h: New file. Includes several Alpha target constants
10049 taken from...
10050 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10051 let gdbarch deal with.
10052 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10053 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10054 to dependency list.
10055 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10056 Alpha target register names.
10057 * alphabsd-nat.c: Likewise.
10058 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10059 Alpha target register names. Make serveral routines static.
10060 (alpha_get_saved_register): New function.
10061 (alpha_abi_names): New.
10062 (process_note_abi_tag_sections): New function.
10063 (get_elfosabi): New function.
10064 (alpha_gdbarch_init): New function.
10065 (alpha_dump_tdep): New function.
10066 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10067
d49d1e0a
AC
100682002-04-21 Andrew Cagney <ac131313@redhat.com>
10069
10070 * frame.c (find_saved_register): Delete #ifdef
10071 HAVE_REGISTER_WINDOWS code.
10072 * config/sparc/tm-sparc.h: Update comments.
10073 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10074
92e8c9ed
AC
100752002-04-21 Andrew Cagney <ac131313@redhat.com>
10076
10077 * i960-tdep.c (i960_find_saved_register): New function.
10078 (i960_get_saved_register): New function.
10079 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10080 (i960_get_saved_register): Declare.
10081 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10082
e1925118
DM
100832002-04-20 David S. Miller <davem@redhat.com>
10084
10085 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10086
29673b29
AC
100872002-04-20 Andrew Cagney <ac131313@redhat.com>
10088
10089 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10090 instead of NUM_PSEUDO_REGS.
10091
6c86dcd5
DM
100922002-04-20 David S. Miller <davem@redhat.com>
10093
10094 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10095 GDB_MULTI_ARCH_PARTIAL
10096 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10097 define, let tm-sp64.h do it.
10098
aa40ec90
JT
100992002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10100
10101 * frame.c (find_saved_register): Avoid a NULL pointer
10102 dereference and actually walk the frame list.
10103
0f79675b
AC
101042002-04-20 Andrew Cagney <ac131313@redhat.com>
10105
10106 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10107 sorted in most most-recent-used order. Document.
10108 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10109
f91305dd 101102002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
10111
10112 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10113 instead of ->prev.
10114 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10115 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10116 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10117 instead of ->prev.
10118
73d322b1
EZ
101192002-04-19 Elena Zannoni <ezannoni@redhat.com>
10120
10121 Fix PR gdb/471.
10122 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10123 (build_builtin_type_vec128): Ditto.
10124 (append_composite_type_field): Fix calculation of type length in
10125 union case.
10126
ccd9a834
EZ
101272002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10128
10129 * config/djgpp/README: Update.
10130
10131 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10132 compiler warnings.
10133
a57f9e49
JT
101342002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10135
10136 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10137 (alpha_setup_arbitrary_frame): ...to this.
10138 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10139 for alpha_setup_arbitrary_frame.
10140
f4f9705a
AC
101412002-04-18 Andrew Cagney <cagney@redhat.com>
10142
10143 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10144 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10145
f4f9705a
AC
10146 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10147 * target.h (memory_breakpoint_from_pc): Update declaration.
10148 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10149
10150 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10151 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10152 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10153 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10154 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10155 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10156 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10157 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10158 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10159 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10160 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10161 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10162
10163 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10164 const pointer.
10165 * monitor.c (monitor_insert_breakpoint): Ditto.
10166 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10167
10168 * config/mcore/tm-mcore.h: Update copyright.
10169 * mem-break.c: Ditto.
10170 * xstormy16-tdep.c: Ditto.
10171
29f319b8
PM
101722002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10173
10174 * p-exp.y: Add precedence rule for '^' token.
10175 This removes the shift/reduce conflicts.
10176 Remove the comment concerning these shift/reduce conflicts.
10177
ebeac11a
EZ
101782002-04-18 Elena Zannoni <ezannoni@redhat.com>
10179
10180 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10181 (registers_powerpc_nofp): New register set for processors
10182 without floating point unit.
10183
27c31547
DM
101842002-04-18 David S. Miller <davem@redhat.com>
10185
10186 * MAINTAINERS: Add myself to write-after-approval.
10187
47a73475
MS
101882002-04-17 Michael Snyder <msnyder@redhat.com>
10189
10190 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10191
953836b2
AC
101922002-04-17 Andrew Cagney <ac131313@redhat.com>
10193
10194 * rs6000-tdep.c (frame_initial_stack_address): Use
10195 frame_register_read to read the alloca_reg.
10196
8b0d4340
AC
101972002-04-17 Andrew Cagney <ac131313@redhat.com>
10198
10199 * frame.c (find_saved_register): Find saved registers in the next
10200 not prev frame.
10201 Fix PR gdb/365.
10202
d8864532
AC
102032002-04-17 Andrew Cagney <ac131313@redhat.com>
10204
10205 * gdbarch.sh (LANG): Set to ``c''.
10206
36cc83a3 102072002-04-15 Andrew Cagney <ac131313@redhat.com>
361d1df0 10208
36cc83a3 10209 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10210
2f4150cc 102112002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
10212
10213 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10214 Update copyright.
10215
628703c6 10216 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10217 Also fix PR gdb/391.
361d1df0 10218
56157b4a
AC
102192002-04-14 Andrew Cagney <ac131313@redhat.com>
10220
10221 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10222 * aclocal.m4, configure: Re-generate.
10223 Fix PR gdb/391.
361d1df0 10224
6d1e3329
EZ
102252002-04-14 Elena Zannoni <ezannoni@redhat.com>
10226
10227 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10228 instead of tm_print_insn.
10229
cb06fa07
EZ
102302002-04-14 Elena Zannoni <ezannoni@redhat.com>
10231
10232 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10233
f208ba17
AC
102342002-04-14 Andrew Cagney <ac131313@redhat.com>
10235
10236 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10237 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10238 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10239
20f01a46
DH
102402002-04-12 Don Howard <dhoward@redhat.com>
10241
10242 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10243 max_user_call_depth.
10244 (init_cmd_lists): Initialize the new value;
10245 * cli/cli-script.c (execute_user_command): Limit the call depth of
10246 user defined commands. This avoids a core-dump when user commands
10247 are infinitly recursive.
10248
a88376a3
KB
102492002-04-12 Kevin Buettner <kevinb@redhat.com>
10250
10251 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10252 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10253 from tdep struct instead of DEFAULT_LR_SAVE.
10254 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10255 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10256 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10257
f2172603
MS
102582002-04-12 Michael Snyder <msnyder@redhat.com>
10259
694f61fb 10260 * Remote.c: Spelling fix.
20fe79c8
MS
10261 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10262 If no symbol found for "sbrk", try "_sbrk".
10263 (make_output_phdrs): Use bfd_section_name.
10264 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10265 * eval.c: Indentation fix-ups.
169a7369
MS
10266 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10267 in case it gets applied to an address that is already
10268 in the instruction space.
de74f71f
MS
10269 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10270 * symfile.c: Fix indentation, long lines.
f2172603
MS
10271 * source.c: White space fix-up.
10272
cda5a58a
AC
102732002-04-12 Andrew Cagney <cagney@redhat.com>
10274
10275 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10276 * frame.c (frame_register_read): New function. Return non-zero on
10277 success.
10278 (read_relative_register_raw_bytes_for_frame): Delete.
10279 (read_relative_register_raw_bytes): Delete.
10280 * frame.h (frame_register_read): Declare.
10281 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10282 * sh-tdep.c: Ditto.
10283 * infcmd.c (do_registers_info): Ditto.
10284 * hppa-tdep.c: Ditto.
10285 * rs6000-tdep.c: Ditto.
10286 * h8500-tdep.c: Ditto.
10287 * mips-tdep.c: Ditto.
10288 * h8300-tdep.c: Ditto.
10289 * z8k-tdep.c: Ditto.
10290
2ea5f656
KB
102912002-04-12 Kevin Buettner <kevinb@redhat.com>
10292
10293 From Jimi X <jimix@watson.ibm.com>:
10294 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10295 64-bit SysV ABI.
10296
27b15785
KB
102972002-04-12 Kevin Buettner <kevinb@redhat.com>
10298
10299 From Jimi X <jimix@watson.ibm.com>:
10300 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10301 bfd info.
10302
5d57ee30
KB
103032002-04-12 Kevin Buettner <kevinb@redhat.com>
10304
10305 From Jimi X <jimix@watson.ibm.com>:
10306 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10307 register sets for these processor variants.
10308
bc1e36ca
DJ
103092002-04-11 Daniel Jacobowitz <drow@mvista.com>
10310
bc1e36ca
DJ
10311 * regformats/reg-ppc.dat: Support FPSCR.
10312
e3f36dbd
KB
103132002-04-11 Kevin Buettner <kevinb@redhat.com>
10314
10315 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10316 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10317 Add fpscr as an invalid/unfetchable register.
10318 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10319 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10320 (fill_fpregset): Add support for register fpscr.
10321 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10322 (fill_gregset): Account for the fact that register ``mq'' might
10323 not exist.
10324 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10325 (registers_power): Add fpscr to register set at slot 71.
10326 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10327 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10328
943c9c25
MS
103292002-04-11 Michael Snyder <msnyder@redhat.com>
10330
10331 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10332 * configure: Regenerate.
10333 * config.in: Regenerate.
10334 * acconfig.h: Add define for _SYSCALL32.
10335 * core-sol2.c: Remove #define _SYSCALL32.
10336 * solib-legacy.c: Remove #define _SYSCALL32.
10337
d8c0a2e7
AC
103382002-04-10 Andrew Cagney <ac131313@redhat.com>
10339
10340 * stack.c (select_frame): Cleanup internal error message, do not
10341 use %p.
10342
7cc19214
AC
103432002-04-10 Andrew Cagney <ac131313@redhat.com>
10344
10345 * stack.c (select_frame): Check that selected_frame and the
10346 specified level are as expected.
10347 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10348 Update copyright.
10349 * frame.h (struct frame_info): Add field `level'. Update
10350 copyright.
10351 Work-in-progress PR gdb/464.
10352
67a2b77e
AC
103532002-04-10 Andrew Cagney <ac131313@redhat.com>
10354
10355 * maint.c (maint_print_section_info): Rename print_section_info.
10356 (print_bfd_section_info, print_objfile_section_info): Update.
10357 * inferior.h (struct gdbarch): Add opaque declaration.
10358 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10359 * gdbarch.h: Regenerate.
10360
8cfda98c
ML
103612002-04-10 Michal Ludvig <mludvig@suse.cz>
10362
10363 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10364 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10365 (kernel_u_size): Added.
10366 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10367 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10368
ca439ad2 103692002-04-04 Jim Ingham <jingham@apple.com>
361d1df0 10370
ca439ad2
JI
10371 * valarith.c (find_size_for_pointer_math): New function, either returns
10372 the size for a pointer's target, returns 1 for void *, or errors for
10373 incomplete types.
10374 (value_add, value_sub): use find_size_for_pointer_math.
10375
2f2893d9
DJ
103762002-04-09 Daniel Jacobowitz <drow@mvista.com>
10377
10378 * linux-low.c (linux_look_up_symbols): New hook.
10379 (linux_target_ops): Add linux_look_up_symbols.
10380 * remote-utils.c (decode_address): New function.
10381 (look_up_one_symbol): New function.
10382 * server.c (handle_query): Call target look_up_symbols hook.
10383 * server.h (look_up_one_symbol): Add prototype.
10384 * target.h (struct target_ops): Add look_up_symbols hook.
10385
96cb11df
AC
103862002-04-09 Andrew Cagney <ac131313@redhat.com>
10387
10388 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10389 override FP_REGNUM with frame->fp. Update copyright.
10390 * parse.c (num_std_regs, std_regs): Delete.
10391 (target_map_name_to_register): Do not search std_regs. Update
10392 function description.
10393 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10394 declarations. Update copyright.
10395 Fix PR gdb/251.
361d1df0 10396
97658e92
DJ
103972002-04-09 Daniel Jacobowitz <drow@mvista.com>
10398
10399 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10400 after the last symbol in a block.
10401
6044e3eb
PM
104022002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10403
10404 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10405 is non zero as a found symbol.
10406
0406ec40
AC
104072002-04-08 Andrew Cagney <ac131313@redhat.com>
10408
10409 * findvar.c: Include "builtin-regs.h".
10410 (value_of_register): Call value_of_builtin_reg when applicable.
10411 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10412 (target_map_name_to_register): Call
10413 builtin_reg_map_name_to_regnum.
10414 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10415 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10416 (builtin_regs_h): Define.
10417 (builtin-regs.o): New target.
10418 (findvar.o): Add $(builtin_regs_h).
10419 * builtin-regs.c, builtin-regs.h: New files.
10420 * std-regs.c: New file.
10421 Partial fix for PR gdb/251.
10422
56a6dfb9
KB
104232002-04-08 Kevin Buettner <kevinb@redhat.com>
10424
10425 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10426 it's no longer required.
10427
3a808432
AC
104282002-04-08 Andrew Cagney <ac131313@redhat.com>
10429
10430 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10431
7c40d541
KB
104322002-04-08 Kevin Buettner <kevinb@redhat.com>
10433
10434 From Jimi X <jimix@watson.ibm.com>:
10435 * rs6000-tdep.c (rs6000_software_single_step): Use
10436 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10437 and size. Use target_insert_breakpoint() and
10438 target_remove_breakpoint() to insert and remove breakpoints
10439 instead of explicit memory reads and writes.
10440
cc9836a8
KB
104412002-04-08 Kevin Buettner <kevinb@redhat.com>
10442
10443 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10444 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10445 ELF_OBJECT_FORMAT ifdef.
10446
7495d1dc
KB
104472002-04-08 Kevin Buettner <kevinb@redhat.com>
10448
10449 From Jimi X <jimix@watson.ibm.com>:
10450 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10451
4288e836
KB
104522002-04-08 Kevin Buettner <kevinb@redhat.com>
10453
10454 From Jimi X <jimix@watson.ibm.com>:
10455 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10456 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10457
a4e4e501
MK
104582002-04-07 Mark Kettenis <kettenis@gnu.org>
10459
10460 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10461 s/asprintf/xasprintf/.
10462 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10463
006defba
AC
104642002-04-07 Andrew Cagney <ac131313@redhat.com>
10465
10466 I believe Jeff Law denies responsability for this one:
10467 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10468 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10469 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10470 Work-around for PR gdb/366.
10471
7aa83cac
EZ
104722002-04-07 Elena Zannoni <ezannoni@redhat.com>
10473
10474 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10475 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10476 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10477
cf1fcca1
EZ
104782002-04-07 Elena Zannoni <ezannoni@redhat.com>
10479
10480 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10481 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10482 information.
10483
3f289e6f
AC
104842002-04-07 Andrew Cagney <ac131313@redhat.com>
10485
10486 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10487 maintainer.
10488
129188f6
AC
104892002-04-07 Andrew Cagney <ac131313@redhat.com>
10490
10491 * README (Reporting Bugs in GDB): Document the bug web page as the
10492 prefered way of submitting bugs.
10493 Fix PR gdb/402.
10494
1200cd6e
AC
104952002-04-06 Andrew Cagney <ac131313@redhat.com>
10496
10497 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10498 -1. Update comment.
10499 * gdbarch.h, gdbarch.c: Re-generate.
10500
2853c33c
AS
105012002-04-07 Andreas Schwab <schwab@suse.de>
10502
10503 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10504 buffer to regcache_collect.
10505
c2169756
AC
105062002-04-06 Andrew Cagney <ac131313@redhat.com>
10507
10508 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10509 * gdbarch.c, gdbarch.h: Re-generate.
10510
25f1b008
AC
105112002-04-06 Andrew Cagney <ac131313@redhat.com>
10512
10513 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10514 declaration. Fix -Werror.
10515
59263426
DJ
105162002-04-05 Daniel Jacobowitz <drow@mvista.com>
10517
10518 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10519 * gdbarch.c: Regenerate.
10520
f5db4da3
MS
105212002-04-05 Michael Snyder <msnyder@redhat.com>
10522
80f8a6eb
MS
10523 * breakpoint.c (clear_command): Rewrite middle section to
10524 combine two loops with identical control conditions.
10525 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
10526 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10527
ad3dcc5c
L
105282002-04-05 H.J. Lu (hjl@gnu.org)
10529
10530 * solib-svr4.c (bkpt_names): Add "__start".
10531
f32e7a74
AC
105322002-04-04 Andrew Cagney <ac131313@redhat.com>
10533
10534 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10535 as test for 64 bit target.
10536
8227c0ff
AC
105372002-04-05 Andrew Cagney <ac131313@redhat.com>
10538
10539 * h8500-tdep.c (h8500_write_fp): Delete function.
10540 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10541 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10542 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10543 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10544 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10545 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10546 (s390_write_fp):
10547 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10548 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10549 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10550 (d10v_write_fp): Delete function.
10551 * inferior.h (write_fp, generic_target_write_fp): Delete
10552 declarations.
10553 * regcache.c (generic_target_write_fp): Delete function.
10554 (write_fp): Delete function.
10555 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10556 * gdbarch.h, gdbarch.c: Regenerate.
10557 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10558 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10559 (sparc64_write_fp): Delete declaration.
10560 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10561 (h8500_write_fp): Delete declaration.
10562
2757dd86
AC
105632002-04-04 Andrew Cagney <ac131313@redhat.com>
10564
10565 * sparc-tdep.c (sparc64_write_fp): Delete.
10566 (sparc_push_dummy_frame): Replace write_fp call with code to store
10567 the FP directly.
10568 (sparc_gdbarch_init): Do not initialize write_fp.
10569
c69255e1
KB
105702002-04-05 Kevin Buettner <kevinb@redhat.com>
10571
10572 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10573 clause.
10574
ae767bfb
JB
105752002-03-29 Jim Blandy <jimb@redhat.com>
10576
10577 * stack.c (get_selected_block): Add new argument `addr_in_block',
10578 used to return the exact code address we used to select the block,
10579 not just the block.
10580 * blockframe.c (get_frame_block, get_current_block): Same.
10581 * frame.h (get_frame_block, get_current_block,
10582 get_selected_block): Update declarations.
10583 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10584 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10585
84d2ac95
MS
105862002-04-05 Michael Snyder <msnyder@redhat.com>
10587
10588 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10589 warning message.
10590
596aa3bf
JB
105912002-04-05 J. Brobecker <brobecker@gnat.com>
10592
10593 * utils.c (xfullpath): New function.
10594 * defs.h (xfullpath): Add declaration.
10595 * source.c (openp): Use xfullpath in place of gdb_realpath to
10596 avoid resolving the basename part of filenames when the
10597 associated file is a symbolic link. This fixes a potential
10598 inconsistency between the filenames known to GDB and the
10599 filenames it prints in the annotations.
10600 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10601 to be able to match a filename with either the real filename, or
10602 the name of any symbolic link to this file.
10603 (lookup_partial_symtab): Ditto.
10604
c02f5703
MS
106052002-04-04 Michael Snyder <msnyder@redhat.com>
10606
10607 * breakpoint.c: Add support for hardware breakpoints in overlays.
10608 (overlay_events_enabled): New state variable.
10609 (insert_breakpoints): Use overlay_events_enabled to decide
10610 whether to attempt to set a breakpoint at the overlay load addr.
10611 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10612 (remove_breakpoint): Use overlay_events_enabled to decide
10613 whether breakpoints need to be removed from overlay load addr.
10614 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10615 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 10616 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
10617 disable_overlay_breakpoints): Update overlay_events_enabled.
10618
5fb290d7
DJ
106192002-04-04 Daniel Jacobowitz <drow@mvista.com>
10620
10621 * dwarf2read.c (struct function_range): New.
10622 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10623 (check_cu_functions): New.
10624 (read_file_scope): Initialize global function lists.
10625 Call dwarf_decode_line after processing children.
10626 (read_func_scope): Add to global function list.
10627 (dwarf_decode_lines): Call check_cu_functions everywhere
10628 record_line is called. Call record_line with a linenumber
10629 of 0 to mark sequence ends.
10630
7b3fabf0
ML
106312002-04-04 Michal Ludvig <mludvig@suse.cz>
10632
361d1df0 10633 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
10634 change sync with glibc.
10635
bce58c09
JB
106362002-04-03 Jim Blandy <jimb@redhat.com>
10637
10638 * configure.in: Call AC_C_INLINE.
10639 * configure: Regenerated.
361d1df0 10640
2fccf04a
DJ
106412002-04-01 Daniel Jacobowitz <drow@mvista.com>
10642
10643 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10644 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10645
2d1bfe2e
MK
106462002-03-31 Mark Kettenis <kettenis@gnu.org>
10647
a5941fbf
MK
10648 * NEWS: Mention gcore support on FreeBSD/i386.
10649
a90cd31d
MK
10650 * fbsd-proc.c: New file.
10651 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10652 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10653
2d1bfe2e
MK
10654 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10655 while statement.
10656
9eb6e5a1
JB
106572002-03-29 Jim Blandy <jimb@redhat.com>
10658
10659 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10660 unescaped newlines in string literals, but newer ones don't. So
10661 escape them.
10662
f02df580
MS
106632002-03-26 Michael Snyder <msnyder@redhat.com>
10664 Andrew Cagney <cagney@redhat.com>
10665
361d1df0 10666 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
10667 restore file to memory.
10668 * cli/cli-dump.h: New file.
10669 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 10670 * NEWS: Mention new commands.
f02df580 10671
109f874e
MS
106722002-03-28 Michael Snyder <msnyder@redhat.com>
10673
10674 * symfile.c (symbol_file_add): Move test for null symbols to later.
10675
520f6ade
AC
106762002-03-27 Andrew Cagney <ac131313@redhat.com>
10677
10678 From veksler at il.ibm.com:
10679 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10680 the xstrduped original path.
10681 Fix PR gdb/417.
10682
d4654627
MS
106832002-03-27 Michael Snyder <msnyder@redhat.com>
10684
10685 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10686 * infcmd.c (_initialize_infcmd): Ditto.
10687 * language.c (_initialize_language): Ditto.
10688 * symfile.c (_initialize_symfile): Ditto.
10689 * top.c (_init_main): Ditto.
10690 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10691
6be8bc0c
EZ
106922002-03-27 Elena Zannoni <ezannoni@redhat.com>
10693
10694 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10695 vector registers handling.
10696 (skip_prologue): Handle new AltiVec instructions. Fill in new
10697 fields of frame data.
10698 (frame_get_saved_regs): Fill in information for AltiVec registers.
10699
12af6855
JB
107002002-03-27 Jim Blandy <jimb@redhat.com>
10701
10702 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10703 a function; leave this macro here to invoke that function.
10704 (symbol_init_mangled_name): Declaration for that function.
10705 * symtab.c (symbol_init_mangled_name): New function.
10706
dc672865
AC
107072002-03-27 Andrew Cagney <ac131313@redhat.com>
10708
10709 * valarith.c: Replace strerror with safe_strerror.
10710 * tracepoint.c: Ditto.
10711 * lin-lwp.c: Ditto.
10712 * go32-nat.c: Ditto.
10713 * inflow.c: Ditto.
10714 * gnu-nat.c: Ditto.
10715
d96429cd
AS
107162002-03-27 Andreas Schwab <schwab@suse.de>
10717
10718 * event-top.c (command_line_handler): Remove useless if.
10719
7e336ba1
AJ
107202002-03-27 Andreas Jaeger <aj@suse.de>
10721
10722 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10723 comment.
10724
de220d0f
ML
107252002-03-27 Michal Ludvig <mludvig@suse.cz>
10726
10727 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10728 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10729 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10730 (x86_64_linux_dr_get_status, supply_gregset),
10731 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10732 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10733 (x86_64_register_info_table): Add.
10734 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10735 (x86_64_register_raw_size, x86_64_register_virtual_type),
10736 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10737 general x86_64_register_info_table.
10738 (i386_gdbarch_init): gdbarch_register_bytes is now set
10739 dynamicaly during initialization.
10740 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10741 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 10742
0e98d0a7
DJ
107432002-03-27 Daniel Jacobowitz <drow@mvista.com>
10744
10745 * gdbserver/server.c (main): Call target_signal_to_host_p
10746 and target_signal_to_host on signals received from the remote.
10747 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10748 target_signal_from_host on signals sent to the remote.
10749 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10750 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10751
3130066b
DJ
107522002-03-27 Daniel Jacobowitz <drow@mvista.com>
10753
10754 * signals/signals.c: Include "server.h" in gdbserver build.
10755 (target_signal_from_name): Don't use STREQ.
10756 (_initialize_signals): Likewise. Don't include function in
10757 gdbserver build.
10758
9aedf4f4
DJ
107592002-03-27 Daniel Jacobowitz <drow@mvista.com>
10760
10761 * signals.c: Moved to...
10762 * signals/signals.c: Here.
7e336ba1 10763 * Makefile (signals.o): Update.
9aedf4f4 10764
3fa41cdb
JL
107652002-03-26 Jeff Law (law@redhat.com)
10766
10767 * somread.c (som_symtab_read): Remove some commented out code and
10768 updated related comments. Do not set the minimal symbol table to
10769 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10770 in a dynamic executable.
10771 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10772 where we are unable to find the minimal symbol for the given
10773 PC value.
10774
ee677e8d
MS
107752002-03-25 Jeff Law (law@redhat.com)
10776
10777 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10778
e76e1718
ML
107792002-03-25 Michal Ludvig <mludvig@suse.cz>
10780
10781 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10782
18a642a1
AC
107832002-03-23 Andrew Cagney <ac131313@redhat.com>
10784
10785 * command.h: Update copyright.
10786 (struct cmd_list_element): Replace definition with opaque
10787 declaration.
10788 (enum cmd_types): Document that it will eventually be moved to
10789 cli/cli-decode.h
10790 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10791 (MALLOCED_REPLACEMENT): Delete macro.
10792 * Makefile.in (cli_decode_h): Add $(command_h).
10793 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 10794 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
10795 * completer.c: Include "cli/cli-decode.h".
10796 * maint.c: Include "cli/cli-decode.h".
10797 * cli/cli-decode.h: Include "command.h".
10798 (enum command_class): Delete.
10799 (enum cmd_types): Comment out.
10800 (enum cmd_auto_boolean): Delete.
10801 (enum var_types): Delete.
10802
b2875cc0
AC
108032002-03-23 Andrew Cagney <ac131313@redhat.com>
10804
10805 * cli/cli-decode.c: Include "gdb_assert.h".
10806 (add_set_or_show_cmd): New static function.
10807 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10808 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10809 all fields, such as func, from the set command.
10810
3b45974e
AC
108112002-03-23 Andrew Cagney <ac131313@redhat.com>
10812
10813 * MAINTAINERS (sh-elf): Change warning flag to -w.
10814
823ca731
AC
108152002-03-23 Andrew Cagney <cagney@redhat.com>
10816
10817 * defs.h (error): Add printf format attribute.
10818 * thread-db.c (thread_from_lwp): Fix error format string.
10819 * stack.c (parse_frame_specification): Ditto.
10820 * cli/cli-decode.c (undef_cmd_error): Ditto.
10821 * scm-lang.c (scm_lookup_name): Ditto.
10822 * tracepoint.c (trace_error): Ditto.
10823 * remote-utils.c (usage): Ditto.
10824 * remote.c (compare_sections_command): Ditto.
10825 Fix PR gdb/328.
10826
0e101458
AC
108272002-03-22 Andrew Cagney <ac131313@redhat.com>
10828
10829 * gdbtypes.c (append_composite_type_field): New function.
10830 (init_composite_type): New function.
10831 * gdbtypes.h (append_composite_type_field): Declare.
10832 (init_composite_type): Ditto.
10833
8e0662df
EZ
108342002-03-22 Elena Zannoni <ezannoni@redhat.com>
10835
10836 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 10837 function.
8e0662df
EZ
10838 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10839 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10840 structure returning convention for SYSV ABI case, but not
10841 for GNU/Linux, FreeBSD, or NetBSD.
10842
3121eff0
DJ
108432002-03-22 Daniel Jacobowitz <drow@mvista.com>
10844
10845 * symtab.h (lookup_block_symbol): Add mangled_name argument
10846 to prototype.
10847
10848 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10849 with new mangled_name argument.
10850 * linespec.c (decode_line_1): Likewise.
10851 * valops (value_of_this): Likewise.
10852 * symtab.c (lookup_transparent_type): Likewise.
10853 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10854 (lookup_symbol): If we are given a mangled name, pass it down
10855 to lookup_symbol_aux.
10856 (lookup_block_symbol): If we are given a mangled name to check
10857 against, only return symbols which match it.
10858
349b409f
CF
108592002-03-22 Christopher Faylor <cgf@redhat.com>
10860
10861 * win32-nat.c (child_create_inferior): Check for proper shell to use
10862 here, in case the user changes it on the fly.
10863 (_initialize_inftarg): Remove shell path considerations.
10864
2a873819
EZ
108652002-03-21 Elena Zannoni <ezannoni@redhat.com>
10866
10867 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10868 for gdbarch_max_register_raw_size and max_register_virtual_size.
10869 Adjust copyright year.
10870
a1b9830c
DJ
108712002-03-21 Daniel Jacobowitz <drow@mvista.com>
10872
10873 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10874 in a function to cover the entire beginning of the function
10875 as well if it does not already.
10876
8b5790f2
TR
108772002-03-21 Tom Rix <trix@redhat.com>
10878
10879 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10880 (rs6000_ptrace64): Renamed from ptrace64.
10881
bdbe5747
MH
108822002-03-20 Martin M. Hunt <hunt@redhat.com>
10883
10884 * gdbserver/remote-utils.c (remote_open): Don't call
10885 getprotobyname, we're all using TCP here so just use
10886 IPPROTO_TCP.
7e336ba1 10887 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
10888
108892002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 10890
bdbe5747
MH
10891 * regcache.c (_initialize_regcache): No need to call
10892 build_regcache() at this time; it gets called whenever
10893 the gdbarch changes.
10894
7781cd62
DB
108952002-03-20 David O'Brien <obrien@FreeBSD.org>
10896
10897 * sparc-nat.c: Include sys/param.h where possible.
10898
f65ca430
DJ
108992002-03-20 Daniel Jacobowitz <drow@mvista.com>
10900
10901 Fix PR gdb/422.
10902 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10903 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10904 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10905 complex types.
10906 * stabsread.c (rs6000_builtin_type): Likewise.
10907 (read_sun_floating_type): Likewise.
10908
0c867556
PS
109092002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10910
10911 * stabsread.c (read_member_functions): Remove skip code for duplicate
10912 constructor/destructor methods. Use standard parsing for these
10913 methods and just do not chain them to the list of methods after
10914 parsing.
10915
12b9c64f
AO
109162002-03-19 Alexandre Oliva <aoliva@redhat.com>
10917
10918 * coffread.c: Remove redundant static declarations. Replace
10919 occurrences of `PTR' with `void *'.
10920 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10921 * top.h (quit_cover): Likewise.
10922 * defs.h (catch_errors): Likewise.
10923
349c5d5f
AC
109242002-03-18 Andrew Cagney <ac131313@redhat.com>
10925
10926 * defs.h (XMALLOC): Define.
10927 * gdb-events.sh (XMALLOC): Delete macro.
10928 * gdb-events.c, gdb-events.h: Regenerate.
10929 * gdbarch.sh (XMALLOC): Delete macro.
10930 * gdbarch.c: Regenerate.
10931 * serial.c (XMALLOC): Delete macro.
10932 * ui-file.c (XMALLOC): Ditto.
10933 * ser-unix.h (XMALLOC): Ditto.
10934 * sh-tdep.c (XMALLOC): Ditto.
10935 * ui-out.c (XMALLOC): Ditto.
10936 * utils.c (XMALLOC): Ditto.
10937 * i386-tdep.c (XMALLOC): Ditto.
10938 * gdb-events.c (XMALLOC): Ditto.
10939 * d10v-tdep.c (XMALLOC): Ditto.
10940 * cli-out.c (XMALLOC): Ditto.
10941
10942 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10943 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10944 * ui-file.c, ui-out.c: Ditto.
10945
7d0766f3
AC
109462002-03-18 Andrew Cagney <ac131313@redhat.com>
10947
10948 * command.h (struct cmd_list_element): Add field context.
10949 (set_cmd_context, get_cmd_context): Declare.
10950 * cli/cli-decode.h: Ditto.
10951 * cli/cli-decode.c (get_cmd_context): New function.
10952 (set_cmd_context): New function.
10953 (add_cmd): Initialize context.
10954 Part of fixing PR gdb/145 and PR gdb/146.
10955
5913bcb0
AC
109562002-03-17 Andrew Cagney <ac131313@redhat.com>
10957
1868c04e
AC
10958 * cli/cli-decode.c (cmd_type): New function.
10959 * command.h (cmd_type): Declare.
10960 * infrun.c (set_schedlock_func): Call function cmd_type.
10961 * kod.c (kod_set_os): Call cmd_type.
10962 * cris-tdep.c (cris_version_update): Use function cmd_type.
10963 (cris_mode_update, cris_abi_update): Ditto.
10964
5913bcb0
AC
10965 * command.h: (execute_cmd_post_hook): Declare.
10966 (execute_cmd_pre_hook): Declare.
10967 * cli/cli-script.c (clear_hook_in_cleanup): New function.
10968 (execute_cmd_post_hook, execute_cmd_pre_hook): New
10969 functions. Execute pre/post hook while ensuring that afterwords
10970 hook_in is cleared.
10971 * top.c (execute_command): Use execute_cmd_post_hook, and
10972 execute_cmd_pre_hook to execute pre/post commands.
10973 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
10974 hook_stop_stub.
10975 (hook_stop_stub): Call execute_cmd_pre_hook.
10976
b51450c9
AC
109772002-03-17 Andrew Cagney <ac131313@redhat.com>
10978
10979 * kod.c (kod_set_os): Revert previous change. Is called by ``info
10980 set'' and this leads to a core dump. Move xstrdup of
10981 operating_system to after check that it is not NULL.
10982
f66c9f11
AC
109832002-03-17 Andrew Cagney <ac131313@redhat.com>
10984
8e694ecf
AC
10985 * kod.c (kod_set_os): Remove unnecessary check that
10986 ``command->type'' is set_cmd.
10987
f66c9f11
AC
10988 * valprint.c (set_input_radix): Use input_radix.
10989 (set_output_radix): Use output_radix.
10990 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
10991 isn't reverted.
10992
9d01611c
AC
109932002-03-16 Andrew Cagney <ac131313@redhat.com>
10994
10995 * value.h (struct value): Delete field ``substring_addr''. Change
10996 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
10997 force_core_addr_align and force_pointer_aligh.
10998
10999 * value.h (struct value): Fix typo in above change.
9d01611c 11000
4156bb53
PS
110012002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11002
11003 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11004 to fix internal_error from ``maintenance print architecture''.
11005
0e5e3ea6
PS
110062002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11007
11008 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11009 for gcc versions after gcc-2.8.1.
11010
9b013045
PS
110112002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11012
11013 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11014 for method resolution. Restore adjustment of ``this'' pointer after
11015 calling value_struct_elt, which was accidentally removed during the
11016 HP merge.
11017
376c9600
AC
110182002-03-15 Andrew Cagney <ac131313@redhat.com>
11019
11020 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11021 value_of_register.
11022 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11023 get_saved_register.
11024 * value.h (value_of_register): Update.
11025
a4db0f07
RH
110262002-03-14 Richard Henderson <rth@redhat.com>
11027
11028 * configure.in: Detect declaration for canonicalize_file_name.
11029 * utils.c (canonicalize_file_name): Declare, if needed.
11030 (gdb_realpath): Prefer realpath if available and usable.
11031 * config.in, configure: Rebuild.
11032
96383835
RH
110332002-03-14 Richard Henderson <rth@redhat.com>
11034
11035 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11036 a constant array bound.
11037
11038 * MAINTAINERS: Add myself to write-after-approval.
11039
75245b24
MS
110402002-03-14 Michael Snyder <msnyder@redhat.com>
11041
11042 * symfile.c (syms_from_objfile): Return immediately if no syms.
11043 (symbol_file_add): Return immediately if no syms.
11044 (find_sym_fns): Return immediately if no syms.
11045
e641a1ca
ML
110462002-03-13 Michal Ludvig <mludvig@suse.cz>
11047
11048 * gdbserver/remote-util.c (remote_open): Print remote-side's
11049 IP address when remote debugging over the network.
7e336ba1 11050
df08bfec
DB
110512002-03-12 David O'Brien <obrien@FreeBSD.org>
11052
11053 * config/sparc/fbsd.mh: Fix copyright.
11054 * config/sparc/fbsd.mt: Likewise.
11055
9a57864f
RE
110562002-03-11 Richard Earnshaw <rearnsha@arm.com>
11057
11058 * MAINTAINERS: Fix typo in name of gdb warnings option.
11059 (x86-64): Fix formating so that this can be parsed by awk.
11060
dd7bf85e
DJ
110612002-03-10 Daniel Jacobowitz <drow@mvista.com>
11062
11063 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11064 * defs.h: Include "gdb/signals.h".
11065 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11066
33a0a2ac
ML
110672002-03-10 Michal Ludvig <mludvig@suse.cz>
11068
11069 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11070 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11071 from x86-64-tdep.h
11072
dd824b04
DJ
110732002-03-10 Daniel Jacobowitz <drow@mvista.com>
11074 Don Howard <dhoward@redhat.com>
11075
11076 * mips-tdep.c (ST0_FR): Define.
11077 (mips2_fp_compat): New function, temporarily disabled.
11078 (mips_read_fp_register_single): New function.
11079 (mips_read_fp_register_double): New function.
11080 (mips_print_register): Use them.
11081 (do_fp_register_row): Likewise.
11082
6a41ff59
AC
110832002-03-09 Andrew Cagney <ac131313@redhat.com>
11084
11085 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11086 approval''.
11087
4ea09c10
PS
110882002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11089
11090 * stabsread.c (read_member_functions): Fix is_stub test for
11091 static member functions, improve comment.
11092
6ccc741d
RE
110932002-03-07 Richard Earnshaw <rearnsha@arm.com>
11094
11095 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11096 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11097 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11098 commands that set boolean values.
11099 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11100 (arm_rdi_resume): Always initialize PC.
11101 (arm_rdi_open): Don't use rslt as a boolean.
11102 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11103 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11104 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11105 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11106
438013df
AO
111072002-03-06 Alexandre Oliva <aoliva@redhat.com>
11108
11109 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11110 * configure: Rebuilt.
11111
70ed8774
SC
111122002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11113
11114 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11115 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11116
5ba2abeb
AC
111172002-03-06 Andrew Cagney <ac131313@redhat.com>
11118
11119 * cli/cli-decode.c (set_cmd_completer): New function.
11120 * command.h (set_cmd_completer): Declare.
11121 * cli/cli-decode.h (set_cmd_completer): Ditto.
11122
11123 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11124 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11125 * win32-nat.c (_initialize_inftarg): Ditto.
11126 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11127 * proc-api.c (_initialize_proc_api): Ditto.
11128 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11129 * source.c (_initialize_source): Ditto.
11130 * exec.c (_initialize_exec): Ditto.
11131 * solib.c (_initialize_solib): Ditto.
11132 * top.c (init_main): Ditto.
11133 * tracepoint.c (_initialize_tracepoint): Ditto.
11134 * symfile.c (_initialize_symfile): Ditto.
11135 * printcmd.c (_initialize_printcmd): Ditto.
11136 * infcmd.c (_initialize_infcmd): Ditto.
11137 * corefile.c (_initialize_core): Ditto.
11138
f779ca99
AC
111392002-03-05 Andrew Cagney <ac131313@redhat.com>
11140
11141 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11142
01a3934b
AC
111432002-03-05 Andrew Cagney <ac131313@redhat.com>
11144
11145 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11146
37057839
AC
111472002-03-05 Andrew Cagney <ac131313@redhat.com>
11148
11149 * NEWS: Update headings, 5.2 has branched.
11150
c6ecbae5
DJ
111512002-03-04 Daniel Jacobowitz <drow@mvista.com>
11152
11153 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11154 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11155 (register_addr, REGISTER_RAW_SIZE): Likewise.
11156 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11157 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11158
e9f30c21
ML
111592002-03-03 Michal Ludvig <mludvig@suse.cz>
11160
11161 * MAINTAINERS (x86-64): Add myself.
11162 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11163 changed value_ptr -> struct value *
11164
54394ac3
DB
111652002-03-01 David O'Brien <obrien@FreeBSD.org>
11166
11167 * configure.host (sparc64-*-freebsd): Add.
11168 * configure.tgt: Likewise.
11169 * config/sparc/fbsd.mh: New file.
11170 * config/sparc/fbsd.mt: Likewise.
11171 * config/sparc/nm-fbsd.h: Likewise.
11172 * config/sparc/tm-fbsd.h: Likewise.
11173
bfe95955
DJ
111742002-03-01 Daniel Jacobowitz <drow@mvista.com>
11175
11176 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11177 regformats/reg-s390x.dat.
11178
f33c6cbf
AC
111792002-03-01 Andrew Cagney <ac131313@redhat.com>
11180
11181 * utils.c: Add FIXME explaining true/false problem.
11182
5ecaa7dd
AC
111832002-02-28 Andrew Cagney <ac131313@redhat.com>
11184
11185 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11186
2a251cc2
MC
111872002-02-28 Michael Chastain <mec@shout.net>
11188
11189 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11190
6a8031a3 111912002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
11192
11193 * gdbserver/linux-s390-low.c: New file.
11194 * regformats/reg-s390.dat: New file.
11195 * regformats/reg-s390x.dat: New file.
11196 * gdbserver/configure.srv: Add S/390.
11197 * gdbserver/Makefile.in: Add S/390.
11198 * configure.tgt: Enable gdbserver for S/390.
11199
ac469903
EZ
112002002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11201
11202 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11203 first line of the doc string for "info dos", except at the end of
11204 the sentence, since the short help stops at the first period.
11205
985cb1a3
JM
112062002-02-28 Jason Merrill <jason@redhat.com>
11207
11208 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11209
c570663e
FF
112102002-02-27 Fred Fish <fnf@redhat.com>
11211
11212 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11213 comment (dumy -> dummy).
11214
43630227
PS
112152002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11216
11217 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11218
b84911e8
RB
112192002-02-27 Rodney Brown <rbrown64@csc.com.au>
11220
11221 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11222
58caa3dc
DJ
112232002-02-27 Daniel Jacobowitz <drow@mvista.com>
11224
11225 * gdbserver/acconfig.h: New file.
11226 * gdbserver/i387-fp.c: New file.
11227 * gdbserver/i387-fp.h: New file.
11228 * gdbserver/linux-x86-64.c: New file.
11229 * regformats/reg-x86-64.dat: New file.
11230 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11231 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11232 * gdbserver/configure.in: Add support for regsets.
11233 * gdbserver/config.in: Regenerate.
11234 * gdbserver/configure: Regenerate.
11235 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11236 * gdbserver/linux-low.h: New file.
11237 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11238 for regsets.
11239 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11240 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11241 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11242 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11243 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11244 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11245 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11246 "i387-fp.h". Add PTRACE_GETREGS and friends.
11247 * gdbserver/regcache.c (supply_register): New function.
11248 (supply_register_by_name): New function.
11249 (collect_register): New function.
11250 (collect_register_by_name): New function.
11251
93652174
DJ
112522002-02-27 Daniel Jacobowitz <drow@mvista.com>
11253
11254 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11255 (config.status): Add configure.srv dependency.
11256 (server_h): Add config.h dependency.
11257
a02e4a61
DJ
112582002-02-27 Daniel Jacobowitz <drow@mvista.com>
11259
11260 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11261 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11262 * gdbserver/configure.srv: Change i386-*-linux* to use
11263 reg-i386-linux.o.
11264
ce0eebec
AC
112652002-02-26 Andrew Cagney <ac131313@redhat.com>
11266
11267 * x86-64-tdep.c: Re-indent. Update copyright date.
11268
82dbc5f7
AC
112692002-02-26 Andrew Cagney <ac131313@redhat.com>
11270
11271 From Michal Ludvig <mludvig@suse.cz>:
11272 * x86-64-tdep.c (value.h): Delete.
11273 (gdb_assert.h): Include.
11274 (x86_64_register_convert_to_virtual,
11275 x86_64_register_convert_to_raw ): Add check which lets only
11276 floating-point values to be converted.
11277 (value_push): Delete.
11278 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11279 (i386_gdbarch_init): Number of register_bytes fixed.
11280
e4621584
AC
112812002-02-26 Andrew Cagney <ac131313@redhat.com>
11282
11283 * MAINTAINERS: Add x86-64 target.
11284
81a9a963
AC
112852002-02-26 Andrew Cagney <ac131313@redhat.com>
11286
11287 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11288 * osfsolib.c (solib_map_sections): Ditto.
11289 * irix5-nat.c (solib_map_sections): Ditto.
11290 * corelow.c (gdb_check_format): Ditto.
11291 * symfile.c (symfile_bfd_open): Ditto.
11292 * solib.c (solib_map_sections): Ditto.
11293 Fix PR gdb/354.
7e336ba1 11294
0f017ab9
AC
112952002-02-26 Andrew Cagney <ac131313@redhat.com>
11296
11297 * remote.c (_initialize_remote): By default, disable ``e'' and
11298 ``E'' step out-of-range packets.
11299
75738c29
AS
113002002-02-26 Andreas Schwab <schwab@suse.de>
11301
11302 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11303 m68k_linux_frame_saved_pc.
11304 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11305 in_sigtramp.
11306 (SIGCONTEXT_PC_OFFSET): Remove.
11307 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11308 m68k_linux_sigtramp_saved_pc): New functions.
11309 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11310 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11311 (UCONTEXT_PC_OFFSET): Define.
11312 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11313 non-RT and RT signal trampolines.
11314
7e8ed687
RE
113152002-02-26 Richard Earnshaw <rearnsha@arm.com>
11316
11317 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11318 (TARGET_NBPG, STACK_END_ADDR): Delete
11319 (VARIABLES_INSIDE_BLOCK): Delete.
11320
6972bc8b
AC
113212002-02-25 Andrew Cagney <ac131313@redhat.com>
11322
11323 * utils.c (perror_with_name): Make string parameter constant.
11324 (print_sys_errmsg): Ditto.
11325 (query): Ditto.
11326 * defs.h (perror_with_name): Update.
11327 (print_sys_errmsg): Update.
11328 (query): Update.
11329
aa32f823
DJ
113302002-02-25 Daniel Jacobowitz <drow@mvista.com>
11331
11332 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11333 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11334
19caaa45
PS
113352002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11336
11337 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11338 if it already matches the current architecture from the exec file.
11339 Include arch-utils.h for gdbarch_info_init prototype.
11340 * Makefile.in (rs6000-nat.o): Update dependencies.
11341
d951901f
EZ
113422002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11343
11344 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11345 list of exported variables.
11346
7ea81414
DJ
113472002-02-24 Daniel Jacobowitz <drow@mvista.com>
11348
11349 * gdbserver/configure.srv: New file.
11350 * gdbserver/configure.in: Use configure.srv instead
11351 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11352 from it.
11353 * gdbserver/configure: Regenerated.
11354 * gdbserver/terminal.h: New file.
11355 * gdbserver/Makefile.in: Update for configure changes. Remove
11356 more unneeded include paths.
11357
080fe24b
AC
113582002-02-24 Andrew Cagney <ac131313@redhat.com>
11359
11360 From wiz at danbala:
11361 * config/sparc/tm-sp64.h: Fix grammar and typos.
11362 Fix PR gdb/287.
11363
8605d56e
AC
113642002-02-24 Andrew Cagney <ac131313@redhat.com>
11365
11366 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11367 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11368 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11369 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11370 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11371 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11372 * s390-tdep.c: Ditto.
92362027
AC
11373 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11374 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11375 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11376 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11377 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11378 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11379 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11380 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11381 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11382 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11383 Fix PR gdb/378.
7e336ba1 11384
8ed32cc0
AC
113852002-02-23 Andrew Cagney <ac131313@redhat.com>
11386
a3007b6f
AC
11387 * lin-thread.c: Delete file.
11388 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11389 to gdb_proc_service.h.
11390 * configure: Re-generate.
11391
50a9e2f1
AC
11392 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11393 * serial.c (serial_open): Delete check for "ocd".
11394 Fix PR gdb/349.
11395
8b6e7932
AC
11396 * Makefile.in (linux-thread.o): Delete target.
11397 * linux-thread.c: Delete file.
11398
d155c46b
AC
11399 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11400 renamed SH files to be consistent.
11401
8ed32cc0
AC
11402 * symtab.c (sort_search_symbols): Use xfree.
11403
0e18d038
RE
114042002-02-23 Richard Earnshaw <rearnsha@arm.com>
11405
11406 * arm-linux-tdep.c (arm_linux_init_abi): Register
11407 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11408 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11409 definition with undef, since we don't want the sysvr4 definition.
11410 (SKIP_TRAMPOLINE_CODE): Likewise.
11411
27aac7ff
AC
114122002-02-23 Andrew Cagney <ac131313@redhat.com>
11413
11414 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11415
11416 * configure.in: (AC_CHECK_FUNCS) Added test for
11417 canonicalize_file_name Regenerated.
11418 * config.in, configure: Regenerated.
11419 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11420 defined use canonicalize_file_name.
7e336ba1 11421
65a6e0ee
MC
114222002-02-23 Michael Chastain <mec@shout.net>
11423
11424 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11425
47b95330
AC
114262002-02-23 Andrew Cagney <ac131313@redhat.com>
11427
11428 * README: Remove references to cygnus.com.
11429 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11430 dot com'' form. Remove references to cygnus.com and sourceware.
11431
696f451b
AC
114322002-02-23 Andrew Cagney <ac131313@redhat.com>
11433
11434 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11435 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11436 1003.1-2001 no longer allows "head -1".
11437 * gdb/Makefile.in (version.c): Likewise.
11438 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11439 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11440 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11441
bbaca940
AC
114422002-02-23 Andrew Cagney <ac131313@redhat.com>
11443
11444 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11445 * command.h (cmd_cfunc_eq): Declare.
11446 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11447
11448 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11449 ``struct cmd_list_element *''.
11450 * cli/cli-cmds.c (is_complete_command): Update. Use
11451 cmd_cfunc_eq.
11452 * top.c (execute_command): Pass the command to
11453 is_complete_command.
11454 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11455
b8b8b047
AC
114562002-02-23 Andrew Cagney <ac131313@redhat.com>
11457
11458 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11459 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11460 architecture defines.
11461 * s390-tdep.c (s390_gdbarch_init): Likewise.
11462
19d3fc80
RE
114632002-02-23 Richard Earnshaw <rearnsha@arm.com>
11464
11465 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11466 (arm_linux_push_arguments): Likewise.
11467 (arm_linux_init_abi): Register them. Also register linux-specific
11468 call_dummy_words.
11469 (find_minsym_and_objfile): Use strcmp, not STREQ.
11470 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11471 (arm_linux_call_dummy_words): Delete declaration.
11472 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11473 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11474 declarations.
11475 (LOWEST_PC): Delete.
11476
3ab13650
PS
114772002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11478
11479 * maint.c (print_section_info): Do not prepend `0x' to filepos
11480 output, it will be handled by local_hex_string_custom.
11481
19d3fc80 114822002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
11483
11484 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11485 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11486 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11487
d85a5daf
JB
114882002-02-22 Jim Blandy <jimb@redhat.com>
11489
11490 Indicate that the bcache functions don't change the strings
11491 they're passed.
11492 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11493 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11494
eeb25b8a
PM
114952002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11496
11497 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11498
6badb179
CF
114992002-02-21 Christopher Faylor <cgf@redhat.com>
11500
11501 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11502 find the complete path to a loaded DLL.
11503
e8717518
FF
115042002-02-21 Fred Fish <fnf@redhat.com>
11505
11506 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11507 that marks the end of the range of a function, enter a line number
11508 entry that has a line number of zero and a PC offset that matches
11509 the end of the function. This starts a range of PC's for which no
11510 line number information is known.
11511 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11512 PC's for which no line number info is found (line number is zero)
11513 then we didn't find any valid line information.
11514 * symtab.h: Document use of zero line number entry.
11515
9abe5450
EZ
115162002-02-21 Elena Zannoni <ezannoni@redhat.com>
11517
11518 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11519 (have_ptrace_getvrregs): Define for run time checks.
11520 (gdb_vrregset_t): New type for Altivec register handling.
11521 (fetch_register, store_register): Fetch/store altivec register
11522 when needed.
11523 (fetch_altivec_register, store_altivec_register): New functions.
11524 (supply_vrregset, fill_vrregset): New functions.
11525 (fetch_altivec_registers, store_altivec_registers): New functions.
11526 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11527 registers as well.
11528
aaa38bb5
AJ
115292002-02-21 Jiri Smid <smid@suse.cz>
11530
11531 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11532
b34db576
RE
115332002-02-21 Richard Earnshaw <rearnsha@arm.com>
11534
11535 * Makefile.in (armnbsd-nat.o): Update dependencies.
11536 * armnbsd-nat.c (supply_gregset): New function. Common code to
11537 supply the integer register set.
11538 (supply_fparegset): New function. Similar for FPA registers.
11539 (fetch_regs, fetch_fp_regs): Use them.
11540 (fetch_core_registers): Likewise.
11541 (fetch_elfcore_registers): New function.
11542 (arm_netbsd_elfcore_fns): New core-file type specification.
11543 (_initialize_arm_netbsd_nat): Register it.
11544
3e56fc4b
RE
115452002-02-21 Richard Earnshaw <rearnsha@arm.com>
11546
11547 * armnbsd-nat.c: Include gdbcore.h.
11548 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11549 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11550 'void' to declaration, to shut up ARI.
11551 (fetch_core_registers): Make static. Rewrite using supply_register.
11552 (arm_netbsd_core_fns): New core-file type specification.
11553 (_initialize_arm_netbsd_nat): New function.
11554
097f6b0b
CF
115552002-02-21 Christopher Faylor <cgf@redhat.com>
11556
11557 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11558 value.
11559
c914e0cc
CF
115602002-02-20 Christopher Faylor <cgf@redhat.com>
11561
11562 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11563 fails.
11564
385fa495
DJ
115652002-02-20 Daniel Jacobowitz <drow@mvista.com>
11566
11567 * jv-exp.y (parse_number): Change type of implicit longs
11568 to builtin_type_uint64.
11569
e5f1222d
DJ
115702002-02-20 Daniel Jacobowitz <drow@mvista.com>
11571
11572 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11573 to be an integer instead of a `union wait'.
11574
75c9abc6
DJ
115752002-02-20 Daniel Jacobowitz <drow@mvista.com>
11576
11577 * mips-linux-nat.c: Call the operating system GNU/Linux.
11578 * mips-linux-tdep.c: Likewise.
11579 * mips-tdep.c: Likewise.
11580
551792a5
DJ
115812002-02-20 Daniel Jacobowitz <drow@mvista.com>
11582
11583 Fix PR gdb/265.
11584 * jv-exp.y (parse_number): Handle 64-bit integers.
11585
ee6e2b82
DJ
115862002-02-20 Daniel Jacobowitz <drow@mvista.com>
11587
11588 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11589 AC_STDC_HEADERS to AC_HEADER_STDC.
11590 * gdbserver/configure: Regenerated.
11591
a48442a0
RE
115922002-02-20 Richard Earnshaw <rearnsha@arm.com>
11593
11594 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11595 is defined.
11596 * sparc-tdep.c (get_longjmp_target): Likewise.
11597
fe419ffc
RE
115982002-02-20 Richard Earnshaw <rearnsha@arm.com>
11599
11600 * News: Add news about ARM and Multi-arch. Mention the new target
11601 arm*-*-netbsd*.
11602
5832ed7e
JB
116032002-02-19 Jim Blandy <jimb@redhat.com>
11604
11605 * stabsread.c (error_type_complaint): Improve error message.
11606
84563040
DJ
116072002-02-19 Daniel Jacobowitz <drow@mvista.com>
11608
11609 * gdbserver/README: Update documentation.
11610 * gdbserver/configure.in: Update configury to match documentation.
11611 * gdbserver/Makefile.in: Likewise.
11612 * gdbserver/configure: Regenerated.
11613 * gdbserver/aclocal.m4: New file, generated by aclocal.
11614 * gdbserver/config.in: New file, generated by autoheader.
11615
375fd65b
RE
116162002-02-19 Richard Earnshaw <rearnsha@arm.com>
11617
11618 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11619 armnbsd-nat.c.
11620
08216dd7
RE
116212002-02-19 Richard Earnshaw <rearnsha@arm.com>
11622
11623 * arm-tdep.h (enum arm_float_model): New enum.
11624 (struct gdbarch_tdep): Add fp_model.
11625 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11626 up floating-point conversions until we know the floating-point model
11627 in use by the inferior. Don't complain about being unable to
11628 determine the ABI of the inferior when we don't have one.
11629 (arm_extract_return_value): Support different floating-point models.
11630 (arm_store_return_value): Likewise.
aaa38bb5 11631 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
11632 ARM_FLOAT_SOFT.
11633 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11634
65d6d66a
PS
116352002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11636
11637 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11638 of ``current_gdbarch''.
11639
47221191
RE
116402002-02-19 Richard Earnshaw <rearnsha@arm.com>
11641
11642 * armnbsd-nat.c : ANSIfy all function declarations.
11643 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11644 (fetch_inferior_registers): Re-implement in terms of above.
11645 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11646 (store_inferior_registers): Re-implement in terms of above.
11647
fdf39c9a
RE
116482002-02-19 Richard Earnshaw <rearnsha@arm.com>
11649
aaa38bb5 11650 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
11651 kernel.
11652 * arm-linux-tdep.c: Likewise.
11653 * config/arm/tm-linux.h: Likewise.
11654
93247f88
RE
116552002-02-19 Richard Earnshaw <rearnsha@arm.com>
11656
11657 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11658 * config/arm/nbsd.mt (TM_FILE): Delete.
11659 * config/arm/tm-nbsd.h: Delete.
11660
d7b486e7
RE
116612002-02-19 Richard Earnshaw <rearnsha@arm.com>
11662
11663 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11664 Initialize CALL_DUMMY_LENGTH.
11665
41d39a95
RE
116662002-02-19 Richard Earnshaw <rearnsha@arm.com>
11667
11668 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11669 function.
11670 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 11671 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
11672 defines one thing and that is incorrect for this port.
11673 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11674
e1195560
PM
116752002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11676
11677 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11678
c1748f97
PM
116792002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11680
11681 * win32-nat.c (display_selector): New function. Displays information
11682 about the information returned by GetThreadSelectorEntry API function.
11683 (display_selectors): New function. Displays the infomation of
11684 the selector given as argument, or of CS, DS ans FS selectors
11685 if no argument is given.
11686 ( _initialize_inftarg): Add "w32" as info prefix command.
11687 Add "info w32 selector" as command calling display_selectors.
11688
e41e6bbf
PM
116892002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11690
11691 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11692 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11693 if not defined.
11694
0d3a9f48
RE
116952002-02-18 Richard Earnshaw <rearnsha@arm.com>
11696
11697 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11698
3fb4b924
RE
116992002-02-18 Richard Earnshaw <rearnsha@arm.com>
11700
11701 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11702 (arm_fix_call_dummy): Call it.
11703 (arm_call_dummy_breakpoint_offset): Delete.
11704 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11705 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11706
7f55af32
AC
117072002-02-18 Andrew Cagney <ac131313@redhat.com>
11708
11709 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11710 Default to func_frame_chain_valid.
11711 * gdbarch.h, gdbarch.c: Re-generate.
11712 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11713
05f13b9c
EZ
117142002-02-18 Elena Zannoni <ezannoni@redhat.com>
11715
11716 * ppc-linux-nat.c: Update copyright.
11717 (fetch_register, store_register): Add tid parameter, don't compute
11718 tid here.
11719 (fetch_ppc_registers, store_ppc_registers): Add tid
11720 parameter. Pass it along to callees.
11721 (fetch_inferior_registers, store_inferior_registers): Compute tid
11722 here, and pass it to calleed functions.
11723 (fill_gregset, supply_fpregset): Clean up formatting.
11724
d7afb4c9
RE
117252002-02-18 Richard Earnshaw <rearnsha@arm.com>
11726
11727 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11728 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11729
9df628e0
RE
117302002-02-18 Richard Earnshaw <rearnsha@arm.com>
11731
11732 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11733 * gdbarch.c gdbarch.h: Regenerate.
11734 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11735 function.
11736 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11737 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11738 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11739
11740 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11741 * arm-tdep.c (arm_get_longjmp_target): New function.
11742 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11743 this to a positive value register arm_get_longjmp_target as the
11744 longjmp handler.
11745 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11746 (arm_linux_init_abi): Set up longjmp description in tdep.
11747 * armnbsd-nat.c (get_longjmp_target): Delete.
11748 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11749 description in tdep.
11750 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11751 (get_longjmp_target): Delete declaration.
11752 (GET_LONGJMP_TARGET): Delete.
11753 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11754 (GET_LONGJMP_TARGET): Delete.
11755
57bc8964
KB
117562002-02-17 Kevin Buettner <kevinb@redhat.com>
11757
11758 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11759 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11760 of ``current_gdbarch''.
11761
83d31a92
TT
117622002-02-17 Tom Tromey <tromey@redhat.com>
11763
11764 * cli/cli-cmds.c (compare_strings): New function.
11765 (complete_command): Only print each unique item once.
11766 * completer.h (complete_line): Declare.
11767 * completer.c (complete_line): New function.
11768 (line_completion_function): Use it.
11769
17ef5d92
AC
117702002-02-16 Andrew Cagney <ac131313@redhat.com>
11771
11772 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11773 * gdbarch.h, gdbarch.c: Re-generate.
11774
491b8946
DJ
117752002-02-16 Daniel Jacobowitz <drow@mvista.com>
11776
11777 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11778
117792002-02-16 Daniel Jacobowitz <drow@mvista.com>
11780
11781 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11782 * valops.c (value_arg_coerce): Don't take the address of a reference
11783 to convert an argument to a reference.
11784
dfe7f3ac
CF
117852002-02-15 Christopher Faylor <cgf@redhat.com>
11786
11787 * win32-nat.c (get_image_name): New function.
11788 (handle_load_dll): Use get_image_name function.
11789 (get_child_debug_event): Avoid registering debug events until possibly
11790 execed process is started.
11791 (child_create_inferior): Allow invocation via shell so that command
11792 line redirection, etc. works ok.
11793 (_initialize_inftarg): Add new command: "set shell" to control whether
11794 a shell is used to start a process.
11795
1d33e73a
DJ
117962002-02-15 Daniel Jacobowitz <drow@mvista.com>
11797
11798 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11799 instead of find_register_by_number.
11800 (cannot_store_register): Likewise.
11801
48cd0caa
PM
118022002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11803
aaa38bb5 11804 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
11805 fprintf_unfiltered (gdb_stderr, ...).
11806
8656e7d8
DJ
118072002-02-15 Daniel Jacobowitz <drow@mvista.com>
11808
11809 * gdbserver/gdbserver.1: Document --attach.
11810
66e810cd
RE
118112002-02-15 Richard Earnshaw <rearnsha@arm.com>
11812
11813 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11814 descriptions.
11815 * arm-tdep.c (arm_default_arm_le_breakpoint)
11816 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11817 (arm_default_thumb_be_breakpoint): New. Initialize them from
11818 traditional breakpoint defines.
11819 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11820 (arm_gdbarch_init): Initialize new breakpoint variables.
11821 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11822 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11823 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11824 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11825 code out to ...
11826 (arm_netbsd_init_abi_common): ... here; new function.
11827 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11828 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11829 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11830 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11831
97e03143
RE
118322002-02-15 Richard Earnshaw <rearnsha@arm.com>
11833
11834 * arm-tdep.h (enum arm_abi): New enum.
11835 (struct gdbarch_tdep): New structure.
11836 (LOWEST_PC): Provide a default.
11837 (arm_gdbarch_register_os_abi): Declare new function.
11838 * arm-tdep.c (arm_abi_names): New array.
11839 (process_note_abi_tag_sections): New function.
11840 (get_elfosabi): New function.
11841 (arm_gdbarch_register_os_abi): New function.
11842 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11843 support for that ABI has been built in, then call the appropriate
11844 configuration routine. Use gdbarch_num_regs() to get the number
11845 of registers.
11846 (arm_dump_tdep): New function.
11847 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11848 place-holder functions.
11849 (_initialize_arm_tdep): Register them.
11850 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11851
11852 * armnbsd-tdep.c: New file.
11853 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11854 * config/arm/nbsd.mt (TDEPFILES): Add it.
11855 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11856
11857 * armnbsd-nat.c: Include regcache.h.
11858 * Makefile.in (armnbsd-nat.o): Update dependency list.
11859
11860 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11861
ad68be46
DJ
118622002-02-14 Daniel Jacobowitz <drow@mvista.com>
11863
11864 * gdbserver/Makefile.in: Fix typos in target rules.
11865
003d6d1d
DJ
118662002-02-14 Daniel Jacobowitz <drow@mvista.com>
11867
aaa38bb5 11868 Fix part of PR gdb/267.
003d6d1d
DJ
11869 * linespec.c (find_methods): Handle constructors specially for now.
11870
6b230f1b
CV
118712002-02-14 Corinna Vinschen <vinschen@redhat.com>
11872
11873 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11874 handling.
11875 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11876 standard_coerce_float_to_double().
11877
1ea98d12
CF
118782002-02-14 Christopher Faylor <cgf@redhat.com>
11879
11880 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11881 GDBINIT_FILENAME.
11882
dd47e6fd
EZ
118832002-02-14 Elena Zannoni <ezannoni@redhat.com>
11884
11885 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11886 find_variant_by_name, because it confuses the multiarch
11887 framework. Return NULL if there isn't an architecture with the
11888 user supplied name, instead of forcing a different one without
11889 recording the change with the multiarch machinery.
11890 (find_variant_by_name): Delete.
11891
d7e39b9e
PS
118922002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11893
11894 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11895 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11896
76e42a4f
MH
118972002-02-13 Martin M. Hunt <hunt@redhat.com>
11898
aaa38bb5 11899 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
11900 print_frame_info_listing_hook, set current_source_symtab.
11901
0a30fbc4
DJ
119022002-02-14 Daniel Jacobowitz <drow@mvista.com>
11903
11904 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11905 and remove unused $(INCLUDE_DIR).
11906 Add regcache.c to OBS.
11907 Add generated register protocol files to clean target.
11908 Update dependencies for new objects, obsolete old target code.
11909
11910 * gdbserver/linux-low.c: Remove all platform-specific code to
11911 new files. Remove various dead code. Update to use regcache
11912 functionality.
11913 * gdbserver/remote-utils.c (fromhex): Add return statement
11914 to quiet warning.
11915 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11916 constant.
11917 (input_interrupt): Add integer parameter to match prototype
11918 of a signal handler.
11919 (outreg): Use register_data ().
11920 (prepare_resume_reply): Use gdbserver_expedite_regs.
11921 * gdbserver/server.c (main): Dynamically allocate own_buf because
11922 PBUFSIZ is no longer constant. Use registers_to_string () and
11923 registers_from_string ().
11924 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11925 for error (), fatal (), and warning (). Update definition of
11926 PBUFSIZ to use regcache functionality. Add include guard.
11927 * gdbserver/utils.c (fatal): Add missing ``const''.
11928 (warning): New function.
11929
11930 * regformats/regdat.sh: Include "regcache.h" in generated files.
11931 Provide init_registers () function.
11932 * regformats/regdef.h: Add prototype for set_register_cache ().
11933 Add include guard.
11934
11935 * gdbserver/linux-arm-low.c: New file.
11936 * gdbserver/linux-i386-low.c: New file.
11937 * gdbserver/linux-ia64-low.c: New file.
11938 * gdbserver/linux-m68k-low.c: New file.
11939 * gdbserver/linux-mips-low.c: New file.
11940 * gdbserver/linux-ppc-low.c: New file.
11941 * gdbserver/linux-sh-low.c: New file.
11942
11943 * gdbserver/regcache.c: New file.
11944 * gdbserver/regcache.h: New file.
11945
11946 * gdbserver/low-linux.c: Removed obsolete file.
11947
4cc841d0
DJ
119482002-02-14 Daniel Jacobowitz <drow@mvista.com>
11949
11950 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11951 * config/i386/linux.mt: Likewise.
11952 * config/ia64/linux.mt: Likewise.
11953 * config/m68k/linux.mh: Likewise.
11954 * config/powerpc/linux.mh: Likewise.
11955 * config/mips/linux.mt: Likewise.
11956
11957 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
11958
11959 * config/i386/i386lynx.mh: Mark gdbserver variables
11960 as (currently) obsolete for this target.
11961 * config/i386/nbsd.mt: Likewise.
11962 * config/i386/nbsdelf.mt: Likewise.
11963 * config/m32r/m32r.mt: Likewise.
11964 * config/m68k/m68klynx.mh: Likewise.
11965 * config/m68k/nbsd.mt: Likewise.
11966 * config/m68k/sun3os4.mh: Likewise.
11967 * config/mips/vr5000.mt: Likewise.
11968 * config/ns32k/nbsd.mt: Likewise.
11969 * config/pa/hppabsd.mh: Likewise.
11970 * config/pa/hppaosf.mh: Likewise.
11971 * config/powerpc/nbsd.mt: Likewise.
11972 * config/rs6000/rs6000lynx.mh: Likewise.
11973 * config/s390/s390.mt: Likewise.
11974 * config/s390/s390x.mt: Likewise.
11975 * config/sparc/sparclynx.mh: Likewise.
11976 * config/sparc/sun4os4.mh: Likewise.
11977 * config/i386/x86-64linux.mt: Likewise.
11978 * config/sparc/linux.mh: Likewise.
11979
a85f51e7
DJ
119802002-02-14 Daniel Jacobowitz <drow@mvista.com>
11981
11982 * configure.tgt: Configure gdbserver only for known working
11983 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
11984 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
11985 SUBDIRS if it is configured. Update comment for ${nativefile}.
11986 * configure: Regenerated.
11987
65554fef
MS
119882002-02-13 Michael Snyder <msnyder@redhat.com>
11989
670a52db
MS
11990 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
11991
6dbdc4a3
MS
11992 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
11993 (default_gcore_mach): Just return 0, work around a problem in bfd.
11994 (default_gcore_target): OK to return NULL if exec_bfd is null.
11995 (make_mem_sec): Use a cast, avoid a warning.
11996
11997 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 11998 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
11999 sizeof (host pointer) != sizeof (target pointer)).
12000 (procfs_make_note_section): Avoid overflow in psargs string.
12001
aaa38bb5 12002 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12003 implementation return an error.
12004
120052002-02-13 Rodney Brown <rbrown64@csc.com.au>
12006
12007 * procfs.c (procfs_make_note_section): Provide a default definition
12008 (for alpha-dec-osf4.0f). Fix typos.
12009
1e4d76e7
EZ
120102002-02-13 Elena Zannoni <ezannoni@redhat.com>
12011
12012 * linux-proc.c: Add include of regcache.h.
12013 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12014
b6d1a1d5
AC
120152002-02-13 Andrew Cagney <ac131313@redhat.com>
12016
12017 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
12018 * memattr.c (create_mem_region): Disallow useless empty region.
12019 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12020 non-overlapping.
b6d1a1d5 12021
6c6ea35e
MC
120222002-02-13 Michael Chastain <mec@shout.net>
12023
12024 * defs.h: Kill CONST_PTR.
12025 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12026 * c-lang.c (c_builtin_types): Likewise.
12027 * ch-lang.c (ch_builtin_types): Likewise.
12028 * f-lang.c (f_builtin_types): Likewise.
12029 * language.c (unknown_builtin_types): Likewise.
12030 * m2-lang.c (m2_builtin_types): Likewise.
12031 * p-lang.c (pascal_builtin_types): Likewise.
12032 * scm-lang.c (c_builtin_types): Likewise.
12033
3e0b0f48
KS
120342002-02-13 Keith Seitz <keiths@redhat.com>
12035
12036 * arm-tdep.h (arm_get_next_pc): Add declaration.
12037
67255d04
RE
120382002-02-13 Richard Earnshaw <rearnsha@arm.com>
12039
12040 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12041 with other related struct-returning functions.
12042 (arm_extract_struct_value_address): New function.
12043 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12044 initialize float_format, double_format and long_double_format as
12045 appropriate to the endianness of the target.
12046 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12047 (arm_use_struct_convention): Delete declaration.
12048 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12049
079777f6
KS
120502002-02-13 Keith Seitz <keiths@redhat.com>
12051
12052 * defs.h (core_addr_to_string_nz): New function.
12053
34588f23
MK
120542002-02-13 Mark Kettenis <kettenis@gnu.org>
12055
12056 Apply missing bits of 2002-01-15 patch.
12057 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12058 (fill_fpregset): Use i387_fill_fsave.
12059
49b563f9
KS
120602002-02-12 Keith Seitz <keiths@redhat.com>
12061
49b563f9
KS
12062 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12063 (core_addr_to_string_nz): New function.
12064
aeb98c60
RE
120652002-02-11 Richard Earnshaw <rearnsha@arm.com>
12066
12067 * arm-linux-nat.c: Really include arm-tdep.h.
12068 * config/arm/tm-linux.h (struct type, struct value): Declare.
12069
65554fef
MS
120702002-02-11 Michael Snyder <msnyder@redhat.com>
12071
12072 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12073 (gcore section): Ifdef for Solaris and Unixware only.
12074 (procfs_do_thread_registers): Unixware needs one lwpstatus
12075 per thread (not one prstatus or pstatus).
12076 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12077 not over all gdb threads. For unixware, call elfcore_write_pstatus
12078 once before iterating over threads.
12079
34e8f22d
RE
120802002-02-11 Richard Earnshaw <rearnsha@arm.com>
12081
12082 * arm-tdep.h: New file.
12083 * arm-tdep.c: Include arm-tdep.h.
12084 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12085 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12086 (arm_print_float_info, arm_register_type, convert_to_extended)
12087 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12088 (arm_extract_return_value, arm_register_name): Make static.
12089 (arm_software_single_step): Similarly. Fix types in declaration.
12090 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12091 (arm_store_return_value, arm_store_struct_return): New functions.
12092 (arm_gdbarch_init): Register the above functions. Also register
12093 call_dummy_start_offset, sizeof_call_dummy_words,
12094 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12095 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12096 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12097 prologue_cache.saved_regs here, rather than ...
12098 (_initialize_arm_tdep): ... here.
12099 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12100 declarations.
12101 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12102 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12103 (arm_print_float_info, arm_register_type, convert_to_extended)
12104 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12105 (arm_extract_return_value, arm_register_name): Delete declarations.
12106 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12107 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12108 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12109 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12110 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12111 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12112 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12113 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12114 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12115 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12116 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12117 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12118 interface.
12119 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12120 * remote-rdi.c remote-rdp.c: Likewise.
12121 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12122 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12123 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12124 definition.
12125
12126 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12127 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12128 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12129 from non-ARM_ prefixed definitions.
12130 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12131 all uses of above.
12132 * remote-rdi.c remote-rdp.c: Likewise.
12133 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12134
148754e5
RE
121352002-02-11 Richard Earnshaw <rearnsha@arm.com>
12136
12137 * arm-tdep.c (arm_frameless_function_invocation)
12138 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12139 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12140 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12141 (arm_pop_frame, arm_get_next_pc): Make static.
12142 (arm_gdbarch_init): Register above in gdbarch structure.
12143 (arm_read_fp): Renamed from arm_target_read_fp.
12144 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12145 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12146 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12147 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12148 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12149 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12150 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12151 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12152 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12153 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12154 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12155
434d2d4f
DJ
121562002-02-10 Daniel Jacobowitz <drow@mvista.com>
12157
12158 * symtab.c (compare_search_syms): New function.
12159 (sort_search_symbols): New function.
12160 (search_symbols): Sort symbols after searching rather than
12161 before.
12162
55241689
AC
121632002-02-10 Andrew Cagney <ac131313@redhat.com>
12164
12165 * NEWS: Linux -> GNU/Linux.
12166
028c194b
AC
121672002-02-10 Andrew Cagney <ac131313@redhat.com>
12168
12169 * gdbarch.sh: For for level one methods, disallow a definition
12170 when partially multi-arched. Add comments explaining rationale.
12171 * gdbarch.h: Re-generate.
12172
6acf50cd
AC
121732002-02-10 Andrew Cagney <ac131313@redhat.com>
12174
12175 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12176 multi-arch partial.
aaa38bb5 12177
50248794
AC
121782002-02-10 Andrew Cagney <ac131313@redhat.com>
12179
12180 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12181 field. Use diff -u.
12182 * gdbarch.c: Re-generate.
12183
c30e0066
AC
121842002-02-10 Andrew Cagney <ac131313@redhat.com>
12185
9b56c5f3 12186 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12187 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12188 partial.
12189
6e6d6484
AC
121902002-02-10 Andrew Cagney <ac131313@redhat.com>
12191
12192 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12193 multi-arch partial.
12194 (PUSH_ARGUMENTS): Switch to using predefault.
12195 * gdbarch.c: Regenerate.
12196
c203844d
AC
121972002-02-10 Andrew Cagney <ac131313@redhat.com>
12198
12199 * valops.c (PUSH_ARGUMENTS): Delete definition.
12200 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12201 partial. Default to default_push_arguments.
12202 * gdbarch.h, gdbarch.c: Regenerate.
12203
b5a2688f
AC
122042002-02-09 Andrew Cagney <ac131313@redhat.com>
12205
12206 * defs.h (throw_exception): Rename return_to_top_level. Update
12207 comments.
12208 * utils.c (error_stream, internal_verror, quit): Ditto.
12209 * top.c (throw_exception, catcher): Ditto.
12210 * sparclet-rom.c (sparclet_load): Ditto.
12211 * remote.c (interrupt_query, minitelnet): Ditto.
12212 * remote-sds.c (interrupt_query): Ditto.
12213 * remote-mips.c (mips_error, mips_kill): Ditto.
12214 * ocd.c (interrupt_query): Ditto.
12215 * monitor.c (monitor_interrupt_query): Ditto.
12216 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12217 * target.h: Update comment.
aaa38bb5 12218
b5a2688f 12219 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12220
2fa5c1e0
AC
122212002-02-09 Andrew Cagney <ac131313@redhat.com>
12222
12223 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12224 default_double_format.
12225 * gdbarch.h, gdbarch.c: Re-generate.
12226 * findvar.c (floatformat_unknown): Delete variable definition.
12227 * doublest.h (floatformat_unknown): Delete variable declaration.
12228
da966255
JB
122292002-02-09 Jim Blandy <jimb@redhat.com>
12230
12231 * stabsread.c (read_type): Add code to parse Sun's syntax for
12232 prototyped function types.
12233
123a4891
AC
122342002-02-09 Andrew Cagney <ac131313@redhat.com>
12235
12236 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12237 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12238
fb39c8f3
PS
122392002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12240
12241 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12242 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12243 now _initialize_xcoffsolib gets called again and overrides the
12244 commands from solib.c in a native configuration.
12245
0b87a11d
MK
122462002-02-09 Mark Kettenis <kettenis@gnu.org>
12247
12248 * doublest.c (store_typed_floating): Don't try to return a value.
12249 Fixes PR gdb/290.
12250
bdc2fc72
JB
122512002-02-08 Jim Blandy <jimb@redhat.com>
12252
12253 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12254 is prototyped and has no arguments, print its argument list as
12255 `(void)'.
12256
da69bbcf
CD
122572002-02-08 Chris Demetriou <cgd@broadcom.com>
12258
12259 * MAINTAINERS (write-after-approval): Add myself.
12260 (paper-trail): I've escaped!
aaa38bb5 12261
b69571f5
CF
122622002-02-08 Christopher Faylor <cgf@redhat.com>
12263
12264 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12265 changes.
12266 (_initialize_check_for_gdb_ini): Ditto.
12267
f6871398
MH
122682002-02-08 Martin M. Hunt <hunt@redhat.com>
12269
12270 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12271 xaprintf -> xasprintf.
12272
4e52d31c
PM
122732002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12274
12275 * win32-nat.c: Remove use of printf and sprintf functions.
12276
39bbf761
RE
122772002-02-08 Richard Earnshaw <rearnsha@arm.com>
12278
12279 * arm-tdep.c (arm_frame_chain_valid): Make static.
12280 (arm_push_arguments): Likewise.
12281 (arm_gdbarch_init): New function.
12282 (_initialize_arm_tdep): Call it.
12283 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12284 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12285 (FRAME_CHAIN_VALID): Delete.
12286 (arm_frame_chain_valid): Delete declaration.
12287 (PUSH_ARGUMENTS): Delete.
12288 (arm_push_arguments): Delete declaration.
12289 (CALL_DUMMY_P): Delete.
12290
9c9532c9
CV
122912002-02-08 Andrew Cagney <ac131313@redhat.com>
12292 Corinna Vinschen <vinschen@redhat.com>
12293
12294 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12295 on builtin float types.
12296
4e8f7a8b
DJ
122972002-02-08 Daniel Jacobowitz <drow@mvista.com>
12298
12299 * utils.c: Include <curses.h> before "bfd.h".
12300 * tui/tui-hooks.c: Likewise.
12301 * tui/tui.c: Likewise.
12302 * tui/tuiCommand.c: Likewise.
12303 * tui/tuiData.c: Likewise.
12304 * tui/tuiDataWin.c: Likewise.
12305 * tui/tuiDisassem.c: Likewise.
12306 * tui/tuiGeneralWin.c: Likewise.
12307 * tui/tuiIO.c: Likewise.
12308 * tui/tuiLayout.c: Likewise.
12309 * tui/tuiRegs.c: Likewise.
12310 * tui/tuiSource.c: Likewise.
12311 * tui/tuiSourceWin.c: Likewise.
12312 * tui/tuiStack.c: Likewise.
12313 * tui/tuiWin.c: Likewise.
12314
cd4bffcf
EZ
123152002-02-07 Elena Zannoni <ezannoni@redhat.com>
12316
12317 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12318 to include space for pseudoregs as well. Update loops accordingly.
12319 (sh_fp_frame_init_saved_regs): Ditto.
12320 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12321
26806ce2
AC
123222002-02-07 Andrew Cagney <ac131313@redhat.com>
12323
12324 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12325 Add Richard Earnshaw to Arm maintainers.
12326
97fdab62
AC
123272002-02-07 Andrew Cagney <ac131313@redhat.com>
12328
a6b98203
AC
12329 * defs.h (warning_begin): Delete declaration.
12330
97fdab62
AC
12331 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12332 Delete macro.
12333
78b29b40
MS
123342002-02-07 Michael Snyder <msnyder@redhat.com>
12335
aaa38bb5 12336 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12337 Logic bug, remove misplaced else.
12338
d8849953
KD
123392002-02-07 Klee Dienes <klee@apple.com>
12340
12341 * fork-inferior.c (fork_inferior): Add '!' to the list of
12342 characters that need to be quoted when building a string for the
12343 shell. Quote '!' specifically with a backslash, since CSH chokes
12344 when trying to evaluate "str!str".
aaa38bb5 12345
095778a0
NC
123462002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12347
12348 * rdi-share/host.h: Only provide a typedef for bool if it is not
12349 defined.
12350
1900040c
MS
123512002-02-04 Michael Snyder <msnyder@redhat.com>
12352
12353 * breakpoint.h (enum bptype): Add new overlay event bp type.
12354 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12355
1900040c
MS
12356 * breakpoint.c (create_internal_breakpoint): New function.
12357 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12358 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12359 (create_thread_event_breakpoint): Ditto.
12360 (create_solib_event_breakpoint): Ditto.
12361 (create_overlay_event_breakpoint): New function.
12362 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12363 (update_breakpoints_after_exec): Delete and re-initialize
12364 overlay event breakpoints after an exec. Add FIXME comment
12365 about longjmp breakpoint.
12366 (print_it_typical): Ignore overlay event breakpoints.
12367 (print_one_breakpoint): Ditto.
12368 (mention): Ditto.
12369 (bpstat_what): Do not stop for overlay event breakpoints.
12370 (delete_breakpoint): Don't delete overlay event breakpoints.
12371 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12372 (breakpoint_re_set): Re-create overlay event breakpoint.
12373
12374 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12375 (overlay_manual_command): Disable overlay breakpoints.
12376 (overlay_off_command): Disable overlay breakpoints.
12377
082fc60d
RE
123782002-02-06 Richard Earnshaw <rearnsha@arm.com>
12379
12380 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12381 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12382 to here from config/tm-arm.h.
12383 (coff_sym_is_thumb): Make static.
12384 (arm_elf_make_msymbol_special): New function.
12385 (arm_coff_make_msymbol_special): New function.
12386 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12387 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12388 (coff_sym_is_thumb): Delete declaration.
12389 (arm_elf_make_msymbol_special): Declare.
12390 (arm_coff_make_msymbol_special): Declare.
12391 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12392 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12393
039c5766
RE
123942002-02-06 Richard Earnshaw <rearnsha@arm.com>
12395
12396 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12397
123982002-02-06 Richard Earnshaw <rearnsha@arm.com>
12399
12400 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12401 * gdbarch.c gdbarch.h: Regenerate.
12402 * arch-utils.c (default_print_float_info): New function.
12403 * arch-utils.h (default_print_float_info): Prototype it.
12404 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12405 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12406 (PRINT_FLOAT_INFO): Document it.
12407
12408 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12409 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12410 (PRINT_FLOAT_INFO): Define.
12411
58fa08f0
PM
124122002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12413
aaa38bb5 12414 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12415 Add typecast to sprintf argument to suppress a warning.
12416
7393af7c
PM
124172002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12418
58fa08f0 12419 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12420 to allow easier handling of pass state.
12421 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12422 that gives exception name and address.
12423 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12424 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12425 exceptions added.
aaa38bb5
AJ
12426 (child_continue): Correctly report continue_status.
12427 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12428 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12429 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12430 the exception should be passed to debuggee or not.
12431
6af4589c
MS
124322002-02-05 Michael Snyder <msnyder@redhat.com>
12433
12434 * regcache.c (fetch_register): Call target_fetch_register
12435 only if we don't call FETCH_PSEUDO_REGISTER.
12436 (store_register): Call target_store_register only if we
12437 don't call STORE_PSEUDO_REGISTER.
12438
a2cf933a
EZ
124392002-02-05 Elena Zannoni <ezannoni@redhat.com>
12440
12441 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12442 ELF_MAKE_MSYMBOL_SPECIAL.
12443 * gdbarch.c, gdbarch.h: Regenerate.
12444 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12445 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12446 * elfread.c (elf_symtab_read): Compile use of
12447 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12448 multiarched.
12449 * coffread.c (coff_symtab_read): Ditto, for
12450 COFF_MAKE_MSYMBOL_SPECIAL.
12451
6bb7be43
JB
124522002-02-05 Jim Blandy <jimb@redhat.com>
12453
12454 * solib-svr4.c (svr4_truncate_ptr): New function.
12455 (svr4_relocate_section_addresses): Do the address arithmetic with
12456 the appropriate truncation for target addresses, even when
12457 CORE_ADDR is larger than a target address.
12458
e18651ec
DJ
124592002-02-05 Daniel Jacobowitz <drow@mvista.com>
12460
12461 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12462 to (int *).
12463
6b2725be
DJ
124642002-02-05 Daniel Jacobowitz <drow@mvista.com>
12465
12466 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12467 code.
12468
fca9e603
DJ
124692002-02-05 Daniel Jacobowitz <drow@mvista.com>
12470
12471 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12472
6c537a52
DJ
124732002-02-05 Daniel Jacobowitz <drow@mvista.com>
12474
12475 * gdbserver/linux-low.c: Remove unused include files.
12476
d844cde6
DJ
124772002-02-05 Daniel Jacobowitz <drow@mvista.com>
12478
12479 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12480 (read_inferior_memory): Use it.
12481 (write_inferior_memory): Likewise.
12482
d07c63e7
DJ
124832002-02-05 Daniel Jacobowitz <drow@mvista.com>
12484
12485 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12486 grubbing through sys_errlist.
12487
da6d8c04
DJ
124882002-02-05 Daniel Jacobowitz <drow@mvista.com>
12489
12490 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12491
5b421780
PM
124922002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12493 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12494
9f60d481
AC
124952002-02-04 Andrew Cagney <ac131313@redhat.com>
12496
12497 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12498 (do_sfunc, set_cmd_sfunc): New functions.
12499
12500 * command.h (struct cmd_list_element): Add field func.
12501 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12502 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12503 * cli/cli-decode.h: Ditto.
12504
12505 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12506 (help_all, help_cmd_list): Ditto.
12507 (find_cmd, complete_on_cmdlist): Ditto.
12508 * top.c (execute_command): Ditto.
12509
12510 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12511 function.sfunc.
12512
12513 * infcmd.c (notice_args_read): Fix function signature.
12514
12515 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12516 * cli/cli-decode.c (add_set_cmd): Ditto.
12517 * utils.c (initialize_utils): Ditto.
12518 * maint.c (_initialize_maint_cmds): Ditto.
12519 * infrun.c (_initialize_infrun): Ditto.
12520 * demangle.c (_initialize_demangler): Ditto.
12521 * remote.c (add_packet_config_cmd): Ditto.
12522 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12523 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12524 * proc-api.c (_initialize_proc_api): Ditto.
12525 * kod.c (_initialize_kod): Ditto.
12526 * valprint.c (_initialize_valprint): Ditto.
12527 * top.c (init_main): Ditto.
12528 * infcmd.c (_initialize_infcmd): Ditto.
12529 * corefile.c (_initialize_core): Ditto.
12530 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12531 * arch-utils.c (initialize_current_architecture): Ditto.
12532 (_initialize_gdbarch_utils): Ditto.
12533 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12534
12535 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12536 * wince.c (_initialize_inftarg): Ditto.
12537 * symfile.c (_initialize_symfile): Ditto.
12538 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12539 * language.c (_initialize_language): Ditto.
12540 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12541
f9ba0717
MS
125422002-02-04 Michael Snyder <msnyder@redhat.com>
12543
12544 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12545
0c74b2a7
DJ
125462002-02-04 Daniel Jacobowitz <drow@mvista.com>
12547
12548 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12549 Add rules for building the register data files.
12550
c638789f
DJ
125512002-02-04 Daniel Jacobowitz <drow@mvista.com>
12552
12553 * regformats/regdat.sh: Add braces to the definition of
12554 expedite_regs_${arch}.
12555
db253027
DJ
125562002-02-04 Daniel Jacobowitz <drow@mvista.com>
12557
12558 * regformats/regdef.h (struct reg): Add comment describing the
12559 requirements for offset and size fields.
12560
206be19c
AS
125612002-02-04 Andreas Schwab <schwab@suse.de>
12562
12563 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12564 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12565
181c1381
RE
125662002-02-04 Richard Earnshaw <rearnsha@arm.com>
12567
12568 * gdbarch.sh (copyright): Update years in generated header.
12569 (SMASH_TEXT_ADDRESS): Add rule.
db253027 12570 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
12571 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12572 * dbxread.c: Likewise.
12573 * dwarfread.c: Likewise.
12574 * elfread.c: Likewise.
12575 * somread.c: Likewise.
12576
12577 * arm-tdep.c (arm_smash_text_address): New function.
12578 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12579
fa4ba8da
PM
125802002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12581
12582 Add support for hardware watchpoints on win32 native.
aaa38bb5 12583 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 12584 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 12585 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
12586 of debug registers.
12587 (debug_registers_changed): New variable. Reflects when debug registers
12588 are changed and need to be written to inferior.
aaa38bb5 12589 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
12590 was set, used when new threads are created.
12591 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12592 i386-nat code.
12593 (thread_rec): Set dr array if id is the thread of current_event .
12594 (child_continue, child_resume): Change the debug registers for all
12595 threads if debug_registers_changed.
12596 (child_add_thread): Change the debug registers if debug_registers_used.
12597 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12598 Link nm.h to new nm-cygwin.h file.
12599 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12600 of hardware registers.
12601
a73c86fb
AC
126022002-02-03 Andrew Cagney <ac131313@redhat.com>
12603
12604 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12605 Restore behavour broken by 2002-01-20 Andrew Cagney
12606 <ac131313@redhat.com> IEEE_FLOAT removal.
12607
acf5ed49
DJ
126082002-02-03 Daniel Jacobowitz <drow@mvista.com>
12609
12610 * c-valprint.c (c_val_print): Pass a proper valaddr to
12611 cp_print_class_method.
12612 * valops.c (search_struct_method): If there is only one method
12613 and args is NULL, return that method.
12614
493d28d5
DJ
126152002-02-03 Daniel Jacobowitz <drow@mvista.com>
12616
12617 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12618 accessing tag_name directly.
12619
7495dfdb
DJ
126202002-02-03 Daniel Jacobowitz <drow@mvista.com>
12621
12622 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12623 of accessing tag_name directly.
12624
dd6bda65
DJ
126252002-02-03 Daniel Jacobowitz <drow@mvista.com>
12626
12627 PR gdb/280
12628 * gdbtypes.c (replace_type): New function.
12629 * gdbtypes.h (replace_type): Add prototype.
12630 * stabsread.c (read_type): Use replace_type.
12631
88fe217c
RE
126322002-02-03 Richard Earnshaw <rearnsha@arm.com>
12633
12634 * Makefile.in (memattr.o): Add missing dependencies rule.
12635
e5d66720
PS
126362002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12637
12638 * breakpoint.c (break_at_finish_command): Really export.
12639 (break_at_finish_at_depth_command): Ditto.
12640 (tbreak_at_finish_command): Ditto.
12641 * hppa-tdep.c: Include completer.h.
12642 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12643 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12644
fffee0be
AC
126452002-02-01 Andrew Cagney <ac131313@redhat.com>
12646
12647 * utils.c (do_write): New function.
12648 (error_stream): Rewrite combining the code from error_begin and
12649 verror.
12650 (verror): Rewrite using error_stream.
12651 (error_begin): Delete function.
12652
255e7dbf
AC
126532002-02-01 Andrew Cagney <ac131313@redhat.com>
12654
12655 * utils.c (error_begin): Make static.
12656 * defs.h (error_begin): Delete declaration.
12657
12658 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12659 (decode_line_1): Use cplusplus_error instead of error_begin,
12660 cplusplus_hint and return_to_top_level.
12661 * coffread.c (coff_symfile_read): Use error instead of error_begin
12662 and return_to_top_level.
12663 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12664
ddfe3c15
AC
126652002-02-01 Andrew Cagney <ac131313@redhat.com>
12666
12667 * language.h (type_error, range_error): Make string parameter
12668 constant.
12669 * language.c (warning_pre_print): Delete extern declaration.
12670 * dwarfread.c (warning_pre_print): Ditto.
12671 * language.c (type_error, range_error): Rewrite to use verror and
12672 vwarning instead of warning_begin.
12673
03ac34d5
MS
126742002-02-01 Michael Snyder <msnyder@redhat.com>
12675
261c4ca2
MS
12676 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12677 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 12678
e00d1dc8
AC
126792002-02-01 Andrew Cagney <ac131313@redhat.com>
12680
12681 * command.h (NO_FUNCTION): Delete macro.
12682 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12683 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12684 * tracepoint.c (_initialize_tracepoint): Ditto.
12685 * cli/cli-decode.c (add_set_cmd): Ditto.
12686 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 12687
76b79d6e
DJ
126882002-02-01 Daniel Jacobowitz <drow@mvista.com>
12689
12690 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12691 Update ``this'' pointer when calling virtual functions.
12692
799f9e91
MS
126932002-02-01 Michael Snyder <msnyder@redhat.com>
12694
c7bd442c 12695 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
12696 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12697
3cf384d4
DJ
126982002-02-01 Daniel Jacobowitz <drow@mvista.com>
12699
12700 * regformats/reg-arm.dat: New file.
12701 * regformats/reg-i386.dat: New file.
12702 * regformats/reg-ia64.dat: New file.
12703 * regformats/reg-m68k.dat: New file.
12704 * regformats/reg-mips.dat: New file.
12705 * regformats/reg-ppc.dat: New file.
12706 * regformats/reg-sh.dat: New file.
12707 * regformats/regdef.h: New file.
12708 * regformats/regdat.sh: New file.
12709
0defa245
RE
127102002-02-01 Richard Earnshaw <reanrsha@arm.com>
12711
12712 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12713 (arm_frame_args_address, arm_frame_locals_address): New functions.
12714 (arm_frame_num_args): New function.
12715 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12716 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12717 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12718
405f26e6
MS
127192002-01-31 Michael Snyder <msnyder@redhat.com>
12720
502fd408
MS
12721 * breakpoint.c (break_at_finish_command): Export.
12722 (break_at_finish_at_depth_command): Export.
12723 (tbreak_at_finish_command): Export.
d6020d45 12724 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 12725 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 12726 "txbreak" commands, which are HPPA specific.
502fd408 12727
7d35e135
MS
12728 * printcmd.c (disassemble_command): Remove an ancient
12729 artifact of an old merge.
12730
aaa38bb5 12731 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
12732 Define enum constant values for overlay mode.
12733 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
12734 (overlay_is_mapped, overlay_auto_command,
12735 overlay_manual_command): Ditto.
d874f1e2 12736
aaa38bb5
AJ
12737 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12738 breakpoint_here_p, breakpoint_inserted_here_p,
12739 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
12740 describe_other_breakpoints, check_duplicates, clear_command):
12741 Coding standard fixes.
12742
8add0441 12743 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 12744 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
12745 code: check bfd SEC_READONLY flag for section.
12746
e351066e
AC
127472002-01-31 Andrew Cagney <ac131313@redhat.com>
12748
7d35e135 12749 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 12750
8a48e967
DJ
127512002-01-30 Daniel Jacobowitz <drow@mvista.com>
12752
12753 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12754 data symbols, since we search based on textlow and texthigh.
12755 (find_pc_sect_symtab): Likewise.
12756
f5a96129
AC
127572002-01-30 Andrew Cagney <ac131313@redhat.com>
12758
12759 * defs.h (vwarning): Declare.
f5a96129
AC
12760 * utils.c (vwarning): New function.
12761 (warning): Call vwarning.
12762 (warning_begin): Delete function.
12763
12764 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12765 the warning message.
12766 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12767 warning_begin.
12768
cefd4ef5
MS
127692002-01-30 Michael Snyder <msnyder@redhat.com>
12770
1a703748
MS
12771 * NEWS: Mention "set trust-readonly-sections" command.
12772 Mention generate-core-file command.
cefd4ef5 12773
3a11626d
MS
127742002-01-15 Michael Snyder <msnyder@redhat.com>
12775
12776 * target.c: New command, "set trust-readonly-sections on".
12777 (do_xfer_memory): Honor the suggestion to trust readonly sections
12778 by reading them from the object file instead of from the target.
12779 (initialize_targets): Register command "set trust-readonly-sections".
12780
d1c7e53b
AC
127812002-01-29 Andrew Cagney <ac131313@redhat.com>
12782
12783 * parse.c (target_map_name_to_register): Simplify, search regs and
12784 pseudo-regs using a single loop.
12785
e2c9a72c
AC
127862002-01-30 Andrew Cagney <ac131313@redhat.com>
12787
12788 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12789
69824b4e
MK
127902002-01-15 Rodney Brown <rbrown64@csc.com.au>
12791
12792 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12793 * config/i386/i386v42mp.mh: Add i387-nat.o .
12794 * i386v4-nat.c: Include i387-nat.h.
12795 (supply_fpregset): Use i387_supply_fsave.
12796 (fill_fpregset): Use i387_fill_fsave.
12797
6eb69eab
RE
127982002-01-30 Richard Earnshaw <rearnsha@arm.com>
12799
12800 * arm-tdep.c (arm_call_dummy_words): Define.
12801 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12802 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12803 (CALL_DUMMY_WORDS): Define.
12804 (arm_call_dummy_words): Declare.
12805 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12806 (arm_linux_call_dummy_words): Declare.
12807
9852326a
AS
128082002-01-30 Andreas Schwab <schwab@suse.de>
12809
12810 * m68klinux-nat.c: Fix last change to use regcache_collect
12811 instead of referencing registers[] directly.
12812
977a3030
AC
128132002-01-29 Andrew Cagney <ac131313@redhat.com>
12814
12815 * parse.c (target_map_name_to_register): Delete code wrapped in
12816 #ifdef REGISTER_NAME_ALIAS_HOOK.
12817
2076c72b
MS
128182002-01-28 Michael Snyder <msnyder@redhat.com>
12819
12820 * regcache.c (legacy_read_register_gen): Need to be able to
12821 read pseudo-register as well as real register.
12822 (legacy_write_register_gen): Ditto.
12823
8fcc723b
AC
128242002-01-28 Andrew Cagney <ac131313@redhat.com>
12825
12826 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12827 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12828 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12829 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12830 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12831 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12832 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12833 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12834 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12835 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12836 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12837 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12838 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12839 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12840 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12841 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12842 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12843 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12844 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12845 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12846
afe64c1a
AC
128472002-01-28 Andrew Cagney <ac131313@redhat.com>
12848
12849 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12850 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12851 (initialize_current_architecture): Update target_byte_order using
12852 information from BFD.
aaa38bb5 12853 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
12854 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12855
75bc7ddf
AC
128562002-01-28 Andrew Cagney <ac131313@redhat.com>
12857
12858 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12859 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12860
12861 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12862 #ifdef INVALID_FLOAT.
12863 * infcmd.c (do_registers_info): Ditto.
12864 * values.c (unpack_double): Ditto. Add comment.
12865
12866 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12867 already commented out.
12868
0280a90a
AS
128692002-01-26 Andreas Schwab <schwab@suse.de>
12870
12871 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12872 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12873 registers and add support for PTRACE_GETREGS.
12874
7072a954
AC
128752002-01-24 Andrew Cagney <ac131313@redhat.com>
12876
12877 GDB 5.1.1 released from 5.1 branch.
12878 * NEWS: Add 5.1.1 news.
12879 * README: Sync with 5.1 branch.
12880
86f902e0
FF
128812002-01-23 Fred Fish <fnf@redhat.com>
12882
12883 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12884 stabstring on initial malloc. Reallocing will copy it for us,
12885 if necessary.
12886
8af51c36
EZ
128872002-01-23 Elena Zannoni <ezannoni@redhat.com>
12888
aaa38bb5 12889 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
12890 (HFILES_NO_SRCDIR): Remove hpread.h.
12891 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12892 (hpread.o): Update dependencies.
12893 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12894
12895 * hp-psymtab-read.c: Remove file.
12896 * hp-symtab-read.c: Remove file.
12897 * hpread.h: Remove file.
12898
12899 * hpread.c: Merge all contents of hp-psymtab-read.c,
12900 hp-symtab-read.c and hpread.h into this file, as it was prior to
12901 January 1999.
12902
12903 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 12904 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
12905 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12906 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12907
dc5cfeb6
EZ
129082002-01-23 Elena Zannoni <ezannoni@redhat.com>
12909
12910 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12911 fill_gregset): Call gdbarch_tdep() just once, assign result to
12912 variable and use that, instead of calling the function several
12913 times.
12914
ea87b71b
AO
129152002-01-24 Alexandre Oliva <aoliva@redhat.com>
12916
12917 * configure.host: Accept sparcv9 as alias for sparc64.
12918 * configure.tgt: Likewise.
12919
13fc0c2f
KB
129202002-01-22 Kevin Buettner <kevinb@redhat.com>
12921
12922 * solib-aix5.c (build_so_list_from_mapfile)
12923 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12924 arguments is not reversed.
12925 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12926 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 12927
7bd872fe
EZ
129282002-01-22 Elena Zannoni <ezannoni@redhat.com>
12929
12930 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12931 modified version of obsolete sh_fetch_pseudo_register.
12932 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12933 (sh4_register_read): New function.
12934 (sh_pseudo_register_write): New function. Renamed and modified
12935 version of obsolete sh_store_pseudo_register.
12936 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12937 (sh4_register_write): New function.
12938 (sh_gdbarch_init): Remove setting of gdbarch function
12939 fetch_pseudo_register and store_pseudo_register. Remove setting of
12940 register_convert_to_raw, register_convert_to_virtual,
12941 register_convertible.
12942 (sh_sh4_register_convertible): Delete. No longer needed. All is
12943 taken care by architecture specific functions
12944 register_read/register_write.
12945 (sh_sh4_register_convert_to_virtual): Make static.
12946 (sh_sh4_register_convert_to_raw): Ditto.
12947
069e84fd
AC
129482002-01-22 Andrew Cagney <ac131313@redhat.com>
12949
12950 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12951 (floatformat_is_nan, floatformat_mantissa): Ditto.
12952
12953 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12954 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
12955 builtin_type_ieee_double_little,
12956 builtin_type_ieee_double_littlebyte_bigword,
12957 builtin_type_m68881_ext, builtin_type_i960_ext,
12958 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
12959 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
12960 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
12961 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
12962
211a4f69
CV
129632002-01-22 Corinna Vinschen <vinschen@redhat.com>
12964
12965 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
12966 parameter. Set frameless flag if it exists and depended of
12967 whether the scanned function is frameless or not.
12968 (xstormy16_skip_prologue): If function is frameless, return
12969 result of xstormy16_scan_prologue().
12970 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
12971 call.
12972
f81353e4
EZ
129732002-01-21 Elena Zannoni <ezannoni@redhat.com>
12974
12975 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
12976 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
12977 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
12978 sh_sh4_register_byte, sh_sh4_register_raw_size,
12979 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
12980 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
12981 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
12982 sh_store_pseudo_register, sh_do_pseudo_register): Call
12983 gdbarch_tdep() just once, assign result to variable and use that,
12984 instead of calling the function several times.
12985
63c73a17
MK
129862002-01-20 Mark Kettenis <kettenis@gnu.org>
12987
12988 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
12989 macros instead of LAST_FPU_CTRL_REGNUM.
12990 (store_register): Likewise.
12991
39ad761d
JB
129922002-01-21 Jim Blandy <jimb@redhat.com>
12993
12994 * infcmd.c (run_command): Check that the `exec' target layer's BFD
12995 is up-to-date before running the program, not just when a program
12996 exits.
12997
3d74b771
FF
129982002-01-21 Fred Fish <fnf@redhat.com>
12999
13000 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13001 when we have found all instructions we are looking for.
13002
966fbf70
RE
130032002-01-21 Richard Earnshaw <rearnsha@arm.com>
13004
13005 * arm-tdep.c (arm_register_name): New function.
13006 (arm_registers_names): Make static.
13007 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13008 (arm_register_name): Declare.
13009 (REGISTER_NAME): Use it.
13010
c3b4394c
RE
130112002-01-21 Richard Earnshaw <rearnsha@arm.com>
13012 Kevin Buettner <kevinb@redhat.com>
13013
13014 Convert arm targets to new FRAME interface.
13015 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13016 (arm_frame_find_save_regs): Delete.
13017 (arm_frame_init_saved_regs): New.
13018 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13019 Allocate extra_info as required. Convert all uses of fsr.regs
13020 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13021 to use extra_info.
13022 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13023 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13024 (check_prologue_cache, save_prologue_cache): Likewise.
13025 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13026 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13027 (FRAME_FIND_SAVED_REGS): Delete.
13028 (arm_frame_find_saved_regs): Delete prototype.
13029 (arm_frame_init_saved_regs): New prototype.
13030 (FRAME_INIT_SAVED_REGS): Define.
13031
61d99182
AC
130322002-01-20 Andrew Cagney <ac131313@redhat.com>
13033
13034 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13035
6aaea291
AC
130362002-01-20 Andrew Cagney <ac131313@redhat.com>
13037
13038 From Jeff Law <law@redhat.com>:
13039 * infttrace.c: Include <sys/pstat.h>.
13040 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13041 exec file if the ttrace equivalent fails.
13042
15f698d2
AC
130432002-01-20 Andrew Cagney <ac131313@redhat.com>
13044
13045 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13046 (closeLogFile): Ditto.
13047
f86ddd7c
MC
130482002-01-20 Michael Chastain <mec@shout.net>
13049
13050 * top.c (print_gdb_version): Bump copyright year to 2002.
13051
904507ce
AC
130522002-01-20 Andrew Cagney <ac131313@redhat.com>
13053
13054 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13055 Zannoni and Eli Zaretskii.
13056
d7f0b9ce
DJ
130572002-01-20 Daniel Jacobowitz <drow@mvista.com>
13058
13059 * buildsym.c: Update copyright years.
13060 * c-typeprint.c: Likewise.
13061 * dwarf2read.c: Likewise.
13062 * f-typeprint.c: Likewise.
13063 * gdbtypes.c: Likewise.
13064 * gdbtypes.h: Likewise.
13065 * hp-symtab-read.c: Likewise.
13066 * hpread.c: Likewise.
13067 * mdebugread.c: Likewise.
13068 * p-typeprint.c: Likewise.
13069
3fd3d7d2
AC
130702002-01-20 Andrew Cagney <ac131313@redhat.com>
13071
13072 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13073 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13074 byte-order selectable.
13075 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13076 * arch-utils.c: Ditto.
13077 (set_endian): Ditto.
13078 (set_endian_from_file): Ditto.
13079 * gdbserver/low-sim.c (create_inferior): Ditto.
13080 * gdbarch.sh: Ditto.
13081 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13082 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13083 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13084 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13085 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13086 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13087 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13088 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13089 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13090 macro definition.
13091 * config/mips/tm-wince.h: Remove #undef of macro
13092 TARGET_BYTE_ORDER_SELECTABLE.
13093 * config/sh/tm-wince.h: Ditto.
13094
b02dede2
DJ
130952002-01-20 Daniel Jacobowitz <drow@mvista.com>
13096
13097 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13098 member function fields. Add accessor macro
13099 TYPE_FN_FIELD_ARTIFICIAL.
13100 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13101 * c-typeprint.c (c_type_print_base): Skip artificial member
13102 functions.
13103
c3643761
DJ
131042002-01-20 Daniel Jacobowitz <drow@mvista.com>
13105
13106 * f-typeprint.c: Delete unused function f_type_print_args.
13107 * p-typeprint.c: Delete unused function pascal_type_print_args.
13108
8176bb6d
DJ
131092002-01-20 Daniel Jacobowitz <drow@mvista.com>
13110
13111 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13112 comment. Add ``artificial'' to ``union field_location''.
13113
13114 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13115
13116 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13117 * mdebugread.c (parse_symbol): Likewise.
13118 * stabsread.c (define_symbol): Likewise.
13119 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13120 initializing TYPE_FIELD_BITPOS to n (obsolete).
13121 (hpread_doc_function_type): Likewise.
13122 * hpread.c (hpread_function_type): Likewise.
13123
7fd60527
AC
131242002-01-20 Andrew Cagney <ac131313@redhat.com>
13125
13126 * configure.in (host_makefile_frag): Only require a host makefile
13127 fragment when a native build.
13128 * configure: Re-generate.
13129
c2f05ac9
AC
131302002-01-20 Andrew Cagney <ac131313@redhat.com>
13131
13132 * doublest.h (floatformat_from_type): Declare.
13133 * doublest.c (floatformat_from_type): New function.
13134 (convert_typed_floating): Use.
13135
13136 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13137 call to function floatformat_from_type.
13138
13139 * gdbarch.sh (IEEE_FLOAT): Delete.
13140 * gdbarch.h, gdbarch.c: Re-generate.
13141 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13142 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13143 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13144 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13145 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13146 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13147 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13148 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13149 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13150 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13151 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13152 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13153
13154 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13155 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13156 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13157 * sh-tdep.c (sh_gdbarch_init): Ditto.
13158 * mips-tdep.c (mips_gdbarch_init): Ditto.
13159 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13160 * cris-tdep.c (cris_gdbarch_init): Ditto.
13161
abf22e64
AJ
131622002-01-20 Jiri Smid <smid@suse.cz>
13163
13164 * configure.host, configure.tgt: Support x86-64.
13165 * NEWS: Note new target x86-64.
13166
b7c4cbf8
AJ
13167 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13168 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13169 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13170 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13171 x86-64-linux-nat.o): Fix dependencies.
13172
82600034
AC
131732002-01-19 Andrew Cagney <ac131313@redhat.com>
13174
13175 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13176 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13177 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13178 * config/sparc/xm-sun4os4.h: Delete file.
13179 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13180
bbe5c628
AC
131812002-01-19 Andrew Cagney <ac131313@redhat.com>
13182
13183 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13184 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13185 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13186 * config/i386/i386lynx.mh (XM_FILE): Delete.
13187 * config/rs6000/xm-rs6000ly.h: Delete file.
13188 * config/sparc/xm-sparclynx.h: Delete file.
13189 * config/m68k/xm-m68klynx.h: Delete file.
13190 * config/i386/xm-i386lynx.h: Delete file.
13191 * config/xm-lynx.h: Delete file.
13192 * config/djgpp/fnchange.lst: Update.
13193
f8453e34
JT
131942002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13195
13196 * alpha-tdep.c (alpha_register_byte): New function.
13197 (alpha_register_raw_size): Ditto.
13198 (alpha_register_virtual_size): Ditto.
13199 (alpha_skip_prologue_internal): Renamed from
13200 alpha_skip_prologue.
13201 (alpha_skip_prologue): New version that calls
13202 alpha_skip_prologue_internal.
13203 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13204 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13205 second argument from alpha_skip_prologue.
13206 (REGISTER_BYTE): Use alpha_register_byte.
13207 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13208 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13209 (FRAMELESS_FUNCTION_INVOCATION): Use
13210 generic_frameless_function_invocation_not.
13211 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13212 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13213
52d9e613
AC
132142002-01-19 Andrew Cagney <ac131313@redhat.com>
13215
13216 * config/mips/xm-news-mips.h: Delete file.
13217 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13218
13219 * config/m88k/xm-m88k.h: Delete file.
13220 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13221 * config/m88k/xm-delta88v4.h: Ditto.
13222 * config/m88k/xm-delta88.h: Ditto.
13223
13224 * config/alpha/xm-fbsd.h: Delete file.
13225 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13226
13227 * config/sparc/xm-sparc.h: Delete file.
13228 * Makefile.in (xm-sun4os4.h): Delete dependency.
13229 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13230 * config/sparc/xm-sun4os4.h: Ditto.
13231 * config/sparc/xm-linux.h: Ditto.
13232
13233 * config/i386/xm-windows.h: Delete file.
13234
2d1b2124
AC
132352002-01-19 Andrew Cagney <ac131313@redhat.com>
13236
13237 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13238 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13239
ee1f65f0
JT
132402002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13241
13242 * alpha-tdep.c (alpha_call_dummy_words): New.
13243 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13244 (CALL_DUMMY_P): Define.
13245 (CALL_DUMMY_WORDS): Define.
13246 (SIZEOF_CALL_DUMMY_WORDS): Define.
13247
98081e55
PB
132482002-01-19 Per Bothner <per@bothner.com>
13249
13250 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13251 isn't NULL, which can happen with some gcj-3.x-produced code.
13252
0d056799
JT
132532002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13254
13255 * alpha-tdep.c (alpha_register_virtual_type): New function.
13256 (alpha_init_frame_pc_first): Ditto.
13257 (alpha_fix_call_dummy): Ditto.
13258 (alpha_store_struct_return): Ditto.
13259 (alpha_extract_struct_value_address): Ditto.
13260 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13261 alpha_register_virtual_type.
13262 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13263 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13264 alpha_extract_struct_value_address.
13265 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13266 (INIT_FRAME_PC): Use init_frame_pc_noop.
13267 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13268
4604bcad
MK
132692002-01-19 Mark Kettenis <kettenis@gnu.org>
13270
13271 * i386gnu-nat.c: Include "i386-tdep.h".
13272 (fetch_fpregs): Simplify code dealing with uninitialized floating
13273 point states such that it doesn't require FP7_REGNUM.
13274
140f9984
JT
132752002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13276
abf22e64
AJ
13277 * alpha-tdep.c (frame_extra_info): New.
13278 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13279 frame->extra_info.
13280 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13281 (alpha_frame_saved_pc): Use frame->extra_info.
13282 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13283 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13284 (init_extra_frame_info): Rename to...
13285 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13286 (alpha_print_extra_frame_info): New function.
140f9984
JT
13287 (alpha_frame_locals_address): Ditto.
13288 (alpha_frame_args_address): Ditto.
abf22e64 13289 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13290 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13291 alpha_frame_args_address.
abf22e64 13292 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13293 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13294 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13295 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13296 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13297 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13298
d734c450
JT
132992002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13300
13301 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13302 (alpha_cannot_fetch_register): Ditto.
13303 (alpha_cannot_store_register): Ditto.
13304 (alpha_register_convertible): Ditto.
13305 (alpha_use_struct_convention): Ditto.
13306 * config/alpha/tm-alpha.h: Update copyright years.
13307 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13308 (INNER_THAN): Use core_addr_lessthan.
13309 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13310 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13311 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13312 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13313 (FRAME_CHAIN): Remove unnecessary cast.
13314
b4ceaee6
AC
133152002-01-18 Andrew Cagney <ac131313@redhat.com>
13316
13317 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13318 obsolete.
13319
0a65a603
AC
133202002-01-18 Andrew Cagney <ac131313@redhat.com>
13321
13322 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13323 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13324 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13325 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13326 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13327 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13328 * x86-64-linux-nat.c: Ditto.
13329
636a6dfc
JT
133302002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13331
abf22e64 13332 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13333 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13334 (REGISTER_NAME): Define.
13335
acceddb6
JT
133362002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13337
13338 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13339
ec32e4be
JT
133402002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13341
13342 * alpha-tdep.c: Update copyright years.
13343 (alpha_next_pc): New function.
13344 (alpha_software_single_step): Ditto.
13345 * config/alpha/tm-alpha.h: Add prototype for
13346 alpha_software_single_step.
13347
e771a871
JT
133482002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13349
13350 * alphabsd-nat.c: Update copyright years.
13351 (fill_gregset): Use regcache_collect.
13352 (fill_fpregset): Likewise.
13353 (fetch_inferior_registers): Only fetch integer registers
13354 if requested to do so.
13355 (store_inferior_registers): Only store integer registers
13356 if requested to do so.
13357
7708fa01
AC
133582002-01-17 Andrew Cagney <ac131313@redhat.com>
13359
13360 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13361 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13362 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13363 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13364 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13365 * config/arm/linux.mh (XDEPFILES): Delete.
13366 * config/arm/nbsd.mh (XDEPFILES): Delete.
13367 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13368 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13369 * config/i386/i386m3.mh (XDEPFILES): Delete.
13370 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13371 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13372 * config/i386/fbsd.mh (XDEPFILES): Delete.
13373 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13374 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13375 * config/i386/i386v4.mh (XDEPFILES): Delete.
13376 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13377 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13378 * config/i386/i386aix.mh (XDEPFILES): Delete.
13379 * config/i386/go32.mh (XDEPFILES): Delete.
13380 * config/i386/cygwin.mh (XDEPFILES): Delete.
13381 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13382 * config/i386/i386mach.mh (XDEPFILES): Delete.
13383 * config/i386/i386v32.mh (XDEPFILES): Delete.
13384 * config/i386/linux.mh (XDEPFILES): Delete.
13385 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13386 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13387 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13388 * config/i386/i386sco.mh (XDEPFILES): Delete.
13389 * config/i386/i386v.mh (XDEPFILES): Delete.
13390 * config/i386/nbsd.mh (XDEPFILES): Delete.
13391 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13392 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13393 * config/i386/symmetry.mh (XDEPFILES): Delete.
13394 * config/i386/obsd.mh (XDEPFILES): Delete.
13395 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13396 * config/ia64/linux.mh (XDEPFILES): Delete.
13397 * config/ia64/aix.mh (XDEPFILES): Delete.
13398 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13399 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13400 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13401 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13402 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13403 * config/m68k/linux.mh (XDEPFILES): Delete.
13404 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13405 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13406 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13407 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13408 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13409 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13410 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13411 * config/m88k/delta88.mh (XDEPFILES): Delete.
13412 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13413 * config/m88k/m88k.mh (XDEPFILES): Delete.
13414 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13415 * config/mips/linux.mh (XDEPFILES): Delete.
13416 * config/mips/irix6.mh (XDEPFILES): Delete.
13417 * config/mips/irix5.mh (XDEPFILES): Delete.
13418 * config/mips/irix4.mh (XDEPFILES): Delete.
13419 * config/mips/irix3.mh (XDEPFILES): Delete.
13420 * config/mips/decstation.mh (XDEPFILES): Delete.
13421 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13422 (NATDEPFILES): Move core-aout.o to here.
13423 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13424 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13425 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13426 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13427 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13428 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13429 * config/pa/hpux11.mh (XDEPFILES): Delete.
13430 * config/powerpc/aix.mh (XDEPFILES): Delete.
13431 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13432 * config/powerpc/linux.mh (XDEPFILES): Delete.
13433 * config/romp/rtbsd.mh: Rename XDEPFILES.
13434 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13435 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13436 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13437 * config/s390/s390.mh (XDEPFILES): Delete.
13438 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13439 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13440 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13441 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13442 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13443 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13444 * config/sparc/linux.mh (XDEPFILES): Delete.
13445 * config/vax/vaxult.mh (XDEPFILES): Delete.
13446 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13447 * Makefile.in (DEPFILES): Remove XDEPFILES.
13448
375fc983
AC
134492002-01-17 Andrew Cagney <ac131313@redhat.com>
13450
13451 * utils.c (internal_verror): Fix comments, default is yes not no.
13452 Update queries to match. Default to quit and dump core.
13453
8926118c
AC
134542002-01-17 Andrew Cagney <ac131313@redhat.com>
13455
13456 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13457 copyright.
13458 * defs.h, event-top.c, gdbcmd.h: Ditto.
13459 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13460 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13461 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13462 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13463 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13464 * mi/mi-main.c:Ditto.
13465
13466 * stack.c, symfile.c: Update copyright.
13467
45b7b345
DJ
134682002-01-17 Daniel Jacobowitz <drow@mvista.com>
13469
db728ff7
DJ
13470 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13471 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13472 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13473 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 13474
db728ff7
DJ
134752002-01-17 Daniel Jacobowitz <drow@mvista.com>
13476
13477 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13478 * gdbserver/low-lynx.c (myattach): Likewise.
13479 * gdbserver/low-nbsd.c (myattach): Likewise.
13480 * gdbserver/low-sim.c (myattach): Likewise.
13481 * gdbserver/low-sparc.c (myattach): Likewise.
13482 * gdbserver/low-sun3.c (myattach): Likewise.
13483
13484 * gdbserver/low-linux.c (myattach): New function.
45b7b345 13485
db728ff7 13486 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
13487 (main): Handle "--attach".
13488
8de3c354
AC
134892002-01-16 Andrew Cagney <ac131313@redhat.com>
13490
13491 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13492 maintainer.
13493
b0129042
DJ
134942002-01-15 Daniel Jacobowitz <drow@mvista.com>
13495
13496 * c-typeprint.c (is_type_conversion_operator): Add additional
13497 check for non-conversion operators.
13498
ba8679fb 134992002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
13500
13501 * linux-proc.c: Add "info proc" command, a la procfs.c.
13502 (read_mapping): New function, abstract and re-use code.
13503 (linux_find_memory_regions): Use new func read_mapping.
13504 (linux_info_proc_cmd): New function, implement "info proc".
13505 (_initialize_linux_proc): Add new command "info proc".
13506
e4f9b4d5
MS
135072002-01-15 Michael Snyder <msnyder@redhat.com>
13508
13509 * symfile.c (generic_load): Use bfd_map_over_sections method
13510 instead of manipulating bfd structure members directly.
13511 (add_section_size_callback): New function, bfd sections callback
13512 used by generic_load.
13513 (load_sections_callback): New function, bfd sections callback
13514 used by generic_load.
13515
08cf96df
EZ
135162002-01-15 Elena Zannoni <ezannoni@redhat.com>
13517
abf22e64 13518 [Based on work by Jim Blandy]
08cf96df
EZ
13519 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13520 (builtin_type_vec128): Export.
13521 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13522 types.
13523 (builtin_type_vec128): New builtin type for 128 bit vector
13524 registers.
13525 (build_gdbtypes): Initialize builtin_type_v16qi and
13526 builtin_type_v8hi. Create the vec128 register builtin type
13527 structure.
13528 (build_builtin_type_vec128): New function.
abf22e64 13529 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
13530 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13531 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13532 AltiVec register to new builtin type.
13533
d7242108
DJ
135342001-01-15 Daniel Jacobowitz <drow@mvista.com>
13535
13536 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13537 to make_cv_type.
13538
4ee3352d
AC
135392002-01-14 Andrew Cagney <ac131313@redhat.com>
13540
13541 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13542 CLEAN_UP_REGISTER_VALUE.
13543 * regcache.c (supply_register): Update only call.
13544
f015b2e7
AC
135452002-01-14 Andrew Cagney <ac131313@redhat.com>
13546
13547 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13548 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13549 a29k-*-vxworks* targets as obsolete.
13550
356ae49d
MS
135512002-01-14 Michael Snyder <msnyder@redhat.com>
13552
13553 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13554 until we can resolve portability issues.
13555 * gregset.h: Remove references to fpxregs.
13556 * gcore.c (gcore_command): Initialize note_sec to NULL.
13557
ade8f45e
AC
135582002-01-13 Andrew Cagney <ac131313@redhat.com>
13559
13560 * signals.c (target_signal_to_name): Rewrite. Only use
13561 signals[].name when in bounds and non-NULL.
abf22e64 13562
89c49e7a
AC
135632002-01-13 Andrew Cagney <ac131313@redhat.com>
13564
13565 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13566 * signals.c (target_signal_to_name): Verify that SIG is within the
13567 bounds of the signals array.
13568
4daa9f9f
AC
135692002-01-13 Andrew Cagney <ac131313@redhat.com>
13570
13571 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13572
ba4bbdcb
KS
135732002-01-13 Keith Seitz <keiths@redhat.com>
13574
13575 * stack.c (print_frame_info_base): Print the frame's pc
13576 only if when print_frame_info_listing_hook is not defined.
13577
575bbeb6
KS
135782002-01-13 Keith Seitz <keiths@redhat.com>
13579
13580 * varobj.c (varobj_set_value): Make sure that there were no
13581 errors evaluating the object before attempting to set its
13582 value.
13583 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13584 so this offset adjustment is no longer necessary.
13585 (create_child): Don't set the error flag if the child is
13586 a CPLUS_FAKE_CHILD.
13587 (value_of_child): If value_fetch_lazy fails, return NULL
13588 so that callers will be notified that an error occurred.
13589 (c_value_of_variable): Delay check of variable's validity
13590 until later. We actually want all structs and unions to have
13591 the value "{...}".
13592 Do not return "???" for variables which could not be evaluated.
13593 This error condition must be returned to the caller so that it
13594 can get the error condition from gdb.
13595 (cplus_name_of_child): Adjust index for vptr before figuring
13596 out the name of the child.
13597 (cplus_value_of_child): If a child's (real) parent is not valid,
13598 don't even bother trying to give a value for it. Just return
13599 an error. Change all instances in this function.
13600 (cplus_type_of_child): If our parent is one of the "fake"
13601 parents, we need to get at the type of the real parent, and
13602 derive the child's true type using this information.
13603
b76898ab
AC
136042002-01-13 Andrew Cagney <ac131313@redhat.com>
13605
13606 From 2002-01-09 John Marshall <johnm@falch.net>:
13607 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13608 sources.redhat.com, and tweak some related URLs which had
13609 suffered from linkrot.
13610
b6649e88
AC
136112002-01-13 Andrew Cagney <ac131313@redhat.com>
13612
13613 From Jeff law:
13614 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13615 structures passed in registers.
13616
82cc5033
EZ
136172002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13618
13619 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13620 white space which prevented compilation. Reported by DSK
13621 <dsk@student.unsw.edu.au>.
13622
ba5f2f8a
MS
136232002-01-11 Michael Snyder <msnyder@redhat.com>
13624
fbd35540
MS
13625 * symfile.c (build_section_addr_info_from_section_tab):
13626 Use bfd access method instead of manipulating bfd directly.
13627 (syms_from_objfile): Ditto.
13628 (simple_overlay_update_1): Ditto.
13629 (simple_overlay_update): Ditto.
13630 (generic_load): Ditto.
13631 (overlay_unmapped_address): FIXME comment, bfd access methods.
13632 (sections_overlap): FIXME comment, bfd access methods.
13633 (pc_in_mapped_range): FIXME comment, bfd access methods.
13634 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13635 (section_is_mapped): FIXME comment, bfd access methods.
13636 (section_is_overlay): FIXME comment, bfd access methods.
13637
ba5f2f8a
MS
13638 * symfile.c (generic_load): Whitespace and long line cleanups.
13639 Remove duplicate variable, change several local variables to
13640 more appropriate data types.
13641 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13642
17df2af6
AC
136432002-01-12 Andrew Cagney <ac131313@redhat.com>
13644
13645 From Peter Schauer:
13646 * language.c (longest_local_hex_string_custom): Use phex_nz to
13647 convert NUM to a hex string.
13648
ec920329
EZ
136492002-01-12 Elena Zannoni <ezannoni@redhat.com>
13650
13651 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13652 the function.
538a76d6 13653 Update Copyright year.
ec920329 13654
3abd2e01
AC
136552002-01-12 Andrew Cagney <ac131313@redhat.com>
13656
13657 * language.c (longest_raw_hex_string): Delete unused function.
13658
b21b22e0
PS
136592002-01-11 Petr Sorfa <petrs@caldera.com>
13660
13661 * MAINTAINERS (write-after-approval): Add myself.
13662 * dwarf2read.c (read_tag_string_type): Handling of
13663 DW_AT_byte_size.
13664 (read_tag_string_type): FORTRAN fix to prevent propagation of
13665 first string size.
13666 (set_cu_language): Handling of DW_LANG_Fortran95
13667
747fe712
RE
136682002-01-11 Richard Earnshaw <rearnsha@arm.com>
13669
13670 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13671 GETPID(inferior_ptid).
13672 (store_inferior_registers): Likewise.
13673
f1bea926
JM
136742002-01-10 Jason Merrill <jason@redhat.com>
13675
13676 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13677 Fix DW_OP_minus.
13678
ae940673
AC
136792002-01-10 Andrew Cagney <ac131313@redhat.com>
13680
13681 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13682 and bfd/elf32-sh-nbsd.c.
13683
00546b04
MS
136842002-01-10 Michael Snyder <msnyder@redhat.com>
13685
352ed7b4
MS
13686 * NEWS: Mention --pid and corefile/proc-id behavior change.
13687
c18be923
MS
13688 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13689 * gcore.c: Include cli/cli-decode.h instead of command.h.
13690
00546b04
MS
13691 * main.c (captured_main): Add new command line option "--pid".
13692 If the second command line argument (following the symbol-file)
13693 begins with a digit, try to attach to it before trying to open
13694 it as a corefile.
13695 (print_gdb_help): Document the "--pid" argument.
13696
db60ec62
EZ
136972002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13698
13699 * completer.c (command_completer): New function.
13700
13701 * completer.h <command_completer>: Add prototype.
13702
13703 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13704 completer for the "help" command.
13705
39c22d1a
JM
137062002-01-09 Jason Merrill <jason@redhat.com>
13707
13708 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13709
c564377f
MS
137102002-01-09 Michael Snyder <msnyder@redhat.com>
13711
975aec09
MS
13712 * i386-linux-nat.c (fill_fpxregset): Make global.
13713 (store_fpxregset): Ditto.
13714
db4a10fa
MS
13715 * gregset.h (gdb_fpxregset_t): Define.
13716 (supply_fpxregset): Prototype.
13717 (fill_fpxregset): Prototype.
13718
c564377f
MS
13719 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13720
c3d45d70
RE
137212002-01-09 Richard Earnshaw <rearnsha@arm.com>
13722
13723 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13724 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13725 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13726
fcc87af1
AC
137272002-01-09 Andrew Cagney <ac131313@redhat.com>
13728
13729 * MAINTAINERS: Update target maintainer rules so that any
13730 Maintainer can approve a tested patch for a maintenance-only
13731 target.
13732
dd96c05b
RE
137332002-01-09 Richard Earnshaw <rearnsha@arm.com>
13734
d4297db9 13735 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 13736
d4297db9 13737 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
13738 IN_SIGTRAMP.
13739
145fdc6e
MS
137402002-01-08 Michael Snyder <msnyder@redhat.com>
13741
13742 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13743 real name of the executable, rather than the /proc name.
13744
be4d1333
MS
137452002-01-03 Michael Snyder <msnyder@redhat.com>
13746
13747 Implement a "generate-core-file" command in gdb, save target state.
13748 * gcore.c: New file. Implement new command 'generate-core-file'.
13749 Save a corefile image of the current state of the inferior.
13750 * linux-proc.c: Add linux-specific code for saving corefiles.
13751 * target.h (struct target_ops): Add new target vectors for saving
13752 corefiles; to_find_memory_regions and to_make_corefile_notes.
13753 (target_find_memory_regions): New macro.
13754 (target_make_corefile_notes): New macro.
13755 * target.c (update_current_target): Inherit new target methods.
13756 (dummy_find_memory_regions): New place-holder method.
13757 (dummy_make_corefile_notes): New place-holder method.
13758 (init_dummy_target): Initialize new dummy target vectors.
13759 * exec.c (exec_set_find_memory_regions): New function.
13760 Allow the exec_ops vector for memory regions to be taken over.
13761 (exec_make_note_section): New function, target vector method.
13762 * defs.h (exec_set_find_memory_regions): Export prototype.
13763 * procfs.c (proc_find_memory_regions): New function, corefile method.
13764 (procfs_make_note_section): New function, corefile method.
13765 (init_procfs_ops): Set new target vector pointers.
13766 (find_memory_regions_callback): New function.
13767 (procfs_do_thread_registers): New function.
13768 (procfs_corefile_thread_callback): New function.
13769 * sol-thread.c (sol_find_memory_regions): New function.
13770 (sol_make_note_section): New function.
13771 (init_sol_thread_ops): Initialize new target vectors.
13772 * inftarg.c (inftarg_set_find_memory_regions): New function.
13773 Allow to_find_memory_regions vector to be taken over.
13774 (inftarg_set_make_corefile_notes): New function.
13775 Allow to_make_corefile_notes vector to be taken over.
13776 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13777 interface layer if not target_has_execution (may be a corefile).
13778 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13779 * config/sparc/sun4sol2.mh: Ditto.
13780 * config/alpha/alpha-linux.mh: Ditto.
13781 * config/arm/linux.mh: Ditto.
13782 * config/i386/x86-64linux.mh: Ditto.
13783 * config/ia64/linux.mh: Ditto.
13784 * config/m68k/linux.mh: Ditto.
13785 * config/mips/linux.mh: Ditto.
13786 * config/powerpc/linux.mh: Ditto.
13787 * config/sparc/linux.mh: Ditto.
13788
c6b92abd
MS
137892002-01-07 Michael Snyder <msnyder@redhat.com>
13790
13791 * arm-linux-nat.c: Remove references to regcache.c internal data
13792 (registers[] and register_valid[]).
13793
4b09dc8c
MS
137942002-01-07 Michael Snyder <msnyder@redhat.com>
13795
abf22e64
AJ
13796 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13797 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
13798 symbol file and shlibs.
13799 * Makefile.in: Add rule for linux-proc.o.
13800 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13801 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13802 * config/arm/linux.mh: Ditto.
13803 * config/i386/linux.mh: Ditto.
13804 * config/i386/x86-64linux.mh: Ditto.
13805 * config/ia64/linux.mh: Ditto.
13806 * config/m68k/linux.mh: Ditto.
13807 * config/mips/linux.mh: Ditto.
13808 * config/powerpc/linux.mh: Ditto.
13809 * config/sparc/linux.mh: Ditto.
13810
c25b74ac
PM
138112002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13812
13813 * win32-nat.c: Add i386-tdep.h dependency.
13814
94cd915f
MS
138152002-01-07 Michael Snyder <msnyder@redhat.com>
13816
c7cccb76
MS
13817 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13818 instead of bfd_get_arch_size. Don't bail out just because
13819 there's no exec_bfd.
abf22e64 13820
34c0bd93
MS
13821 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13822 * p-valprint.c (pascal_object_print_value): Ditto.
13823 * somread.c (som_symtab_read): Ditto.
13824 * symfile.c (simple_free_overlay_region_table): Ditto.
13825 * valops.c (value_assign): Ditto.
13826
21c1c920
MS
13827 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13828 use tilde_expand and strerror for opening save-tracepoints file.
13829
5bbd998e
MS
13830 * thread-db.c (thread_db_new_objfile): Indendation fix.
13831
94cd915f
MS
13832 * infptrace.c (GDB_MAX_ALLOCA): New define.
13833 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 13834 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
13835 can be overridden with whatever value is appropriate to the host).
13836 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13837 alloca to allocate potentially large buffer.
13838 * rs6000-nat.c (child_xfer_memory): Ditto.
13839 * symm-nat.c (child_xfer_memory): Ditto.
13840 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13841
494e8a93
JSC
138422002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13843
13844 From Nick Clifton <nickc@redhat.com>
13845 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13846
d0e1d48e
MS
138472002-01-07 Michael Snyder <msnyder@redhat.com>
13848
abf22e64 13849 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
13850 Don't use exec_bfd if it's NULL.
13851
290b2c7a
MK
138522002-01-06 Mark Kettenis <kettenis@gnu.org>
13853
abf22e64 13854 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 13855
aef21287
AC
138562002-01-06 Andrew Cagney <ac131313@redhat.com>
13857
13858 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13859 * gnu-nat.c: Ditto.
13860
30efa627
AC
138612002-01-06 Andrew Cagney <ac131313@redhat.com>
13862
13863 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13864 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13865 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13866 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13867 z8k-coff have not been multi-arched. Update z8k-coff build
13868 status.
13869
9b4ff276
AC
138702002-01-06 Andrew Cagney <ac131313@redhat.com>
13871
13872 * MAINTAINERS: Mark a29k target as obsolete.
13873 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13874 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13875 comments.
13876 * NEWS: Note that a29k targets are obsolete.
13877 * a29k-tdep.c: Mark as obsolete.
13878 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13879 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13880 a29k-*-vxworks* targets as obsolete.
13881 * remote-adapt.c: Obsolete.
13882 * remote-eb.c: Obsolete.
13883 * remote-mm.c: Obsolete.
13884 * remote-udi.c: Obsolete.
13885 * config/a29k/a29k-udi.mt: Obsolete.
13886 * config/a29k/a29k.mt: Obsolete.
13887 * config/a29k/tm-a29k.h: Obsolete.
13888 * config/a29k/tm-vx29k.h: Obsolete.
13889 * config/a29k/vx29k.mt: Obsolete.
13890
a9011d31
AC
138912002-01-05 Andrew Cagney <ac131313@redhat.com>
13892
13893 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13894 with BFD_ENDIAN_BIG.
13895
9299404e
AC
138962002-01-05 Andrew Cagney <ac131313@redhat.com>
13897
13898 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13899 * configure, config.in: Re-generate.
13900 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13901 * defs.h: Do not include <endian.h>.
13902
7e89e357
JT
139032002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13904
13905 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13906 * config.in: Regenerate.
13907 * configure.in: Update copyright years.
13908 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13909 * configure: Regenerate.
13910 * i386bsd-nat.c: Update copyright years.
13911 (fill_gregset): Use regcache_collect.
13912 (fetch_inferior_registers): Only fetch integer registers
13913 if requested to do so. Add support for XMM registers
13914 using PT_GETXMMREGS.
13915 (store_inferior_registers): Only store integer registers
13916 if requested to do so. Add support for XMM registers
13917 using PT_SETXMMREGS.
13918 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13919 (store_inferior_registers): Remove.
13920 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13921 (fetch_elfcore_registers): New function.
13922 (i386nbsd_elfcore_fns): New.
13923 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13924 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13925 i386bsd-nat.o.
13926 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13927 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13928 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13929 * config/i386/tm-nbsd.h: Update copyright years.
13930 (HAVE_SSE_REGS): Define.
13931 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13932 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13933 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13934 (SIGCONTEXT_PC_OFFSET): Remove.
13935 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13936
a752853e
AC
139372002-01-05 Andrew Cagney <ac131313@redhat.com>
13938
13939 * configure.tgt: Remove powerpc-*-macos* target.
13940 * config/m68k/xm-mpw.h: Delete file.
13941 * config/xm-mpw.h: Delete file.
13942 * ser-mac.c: Delete file.
13943 * mpw-make.sed: Delete file.
13944 * mpw-config.in: Delete file.
13945 * mac-xdep.c: Delete file.
13946 * mac-gdb.r: Delete file.
13947 * mac-defs.h: Delete file.
13948 * mac-nat.c: Delete file.
13949 * config/powerpc/macos.mh: Delete file.
13950 * config/powerpc/macos.mt: Delete file.
13951 * config/powerpc/nm-macos.h: Delete file.
13952 * config/powerpc/tm-macos.h: Delete file.
13953 * source.c (openp, open_source_file): Remove obsolete code.
13954 * top.c (gdb_readline): Ditto.
13955 * utils.c (query): Ditto.
13956 * event-top.c (display_gdb_prompt): Ditto.
13957 * Makefile.in (ser-mac.o): Delete obsolete target.
13958 * NEWS: Update.
13959
d7449b42
AC
139602002-01-04 Andrew Cagney <ac131313@redhat.com>
13961
13962 * defs.h (BIG_ENDIAN): Delete macro definition.
13963 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
13964 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
13965 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
13966 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
13967 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
13968 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
13969 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
13970 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
13971 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
13972 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
13973 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
13974 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
13975 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13976 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
13977 * gdbarch.c: Re-generate.
13978
356374e8
DJ
139792002-01-04 Daniel Jacobowitz <drow@mvista.com>
13980
13981 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
13982 for core files.
13983
a2b8f8f8
JT
139842002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13985
13986 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
13987
12466af9
AC
139882002-01-04 Andrew Cagney <ac131313@redhat.com>
13989
13990 * value.h (value_ptr): Delete typedef.
13991
3549ab40
JT
139922002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
13993
13994 * i386nbsd-nat.c: Update copyright years.
13995 Include i386-tdep.h.
13996
fedbd091
EZ
139972002-01-04 Elena Zannoni <ezannoni@redhat.com>
13998
13999 * stabsread.c: Update copyright years.
14000
14001 From Debashis Mahata <debashis.mahata@wipro.com>:
14002 (read_struct_fields): Deal with Sun C compiler erroneous stab
14003 output for structs and unions.
fec8b34f 14004 Fix PR gdb/269.
fedbd091 14005
eb43544b
DJ
140062002-01-04 Daniel Jacobowitz <drow@mvista.com>
14007
14008 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14009 prototype.
14010
1514d34e
DJ
140112002-01-04 Daniel Jacobowitz <drow@mvista.com>
14012
14013 * cp-abi.c: Fix whitespace.
14014 (baseclass_offset): New wrapper function.
14015 * cp-abi.h (baseclass_offset): Add prototype.
14016 (struct cp_abi_ops): Add baseclass_offset pointer.
14017
14018 * valops.c (vb_match): Move to...
14019 * gnu-v2-abi.c (vb_match): here.
14020 * valops.c (baseclass_offset): Move to...
14021 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14022
14023 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14024
14025 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14026 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14027 * hpacc-abi.c (init_hpacc_ops): Likewise.
14028
7f8c9282
DJ
140292002-01-04 Daniel Jacobowitz <drow@mvista.com>
14030
14031 * valops.c (find_overload_match): Accept obj as a
14032 reference parameter. Update it before returning.
14033 * value.h (find_overload_match): Update prototype.
14034 * eval.c (evaluate_subexp_standard): Pass object to
14035 find_overload_match by reference.
14036
f23631e4
AC
140372002-01-03 Andrew Cagney <ac131313@redhat.com>
14038
14039 * valarith.c: Replace value_ptr with struct value pointer. Remove
14040 register attribute from value declarations.
14041 * valops.c: Ditto.
14042 * value.h: Ditto.
14043 * scm-lang.c (scm_lookup_name): Ditto.
14044
79e10fab 140452002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 14046
79e10fab
AC
14047 Abstract the functionality of iterating over mapped memory
14048 regions into a general purpose iterator function.
abf22e64 14049 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14050 iterator for memory sections.
14051 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14052 (solib_mappings_callback): New function, callback for above.
14053 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14054 (info_mappings_callback): New function, callback for above.
14055
14056 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14057
c5ad026a
MK
140582002-01-01 Mark Kettenis <kettenis@gnu.org>
14059
d2a7c97a
MK
14060 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14061 * i386-tdep.c: Include "elf-bfd.h".
14062 (process_note_abi_tag_sections): New function.
14063 (i386_gdbarch_init): Add code to recognize various OS/ABI
14064 combinations.
14065
c5ad026a
MK
14066 * maint.c (_initialize_maint_cmds): Add missing \ in
14067 string-literal.
14068
a1a5b71e 14069For older changes see ChangeLog-2001
c906108c
SS
14070\f
14071Local Variables:
14072mode: change-log
14073left-margin: 8
14074fill-column: 74
14075version-control: never
14076End:
This page took 0.95171 seconds and 4 git commands to generate.