]> Git Repo - binutils.git/blob - gdb/ChangeLog
2002-12-09 David Carlton <[email protected]>
[binutils.git] / gdb / ChangeLog
1 2002-12-09  David Carlton  <[email protected]>
2
3         * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
4         * cli/cli-cmds.c: Ditto.
5
6 2002-12-09  Andrew Cagney  <[email protected]>
7
8         * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s.  Wrap
9         function address in <>.
10         * gdbarch.c: Re-generate.
11
12 2002-12-09  David Carlton  <[email protected]>
13
14         * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
15
16 2002-12-09  David Carlton  <[email protected]>
17
18         * linespec.c (symtab_from_filename): New function.
19         (decode_line_1): Move code into symtab_from_filename.
20
21 2002-12-09  Kevin Buettner  <[email protected]>
22
23         * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
24
25 2002-12-07  Andrew Cagney  <[email protected]>
26
27         * f-valprint.c (info_common_command): Use get_frame_pc.
28         * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
29         * ax-gdb.c (agent_command): Ditto.
30         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
31         (rs6000_pop_frame): Ditto.
32         (rs6000_frameless_function_invocation): Ditto.
33         (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
34         (frame_initial_stack_address, rs6000_frame_chain): Ditto.
35         * macroscope.c (default_macro_scope): Ditto.
36         * stack.c (print_frame_info_base): Ditto.
37         (print_frame, frame_info, print_frame_label_vars): Ditto.
38         (return_command, func_command, get_frame_language): Ditto.
39         * infcmd.c (finish_command): Ditto.
40         * dummy-frame.c (cached_find_dummy_frame): Ditto.
41         * breakpoint.c (deprecated_frame_in_dummy): Ditto.
42         (break_at_finish_at_depth_command_1): Ditto.
43         (break_at_finish_command_1): Ditto.
44         (until_break_command, get_catch_sals): Ditto.
45         * blockframe.c (func_frame_chain_valid): Ditto.
46         (frameless_look_for_prologue): Ditto.
47         (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
48
49 2002-12-08  Andrew Cagney  <[email protected]>
50
51         * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
52         * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
53
54 2002-12-08  Andrew Cagney  <[email protected]>
55
56         * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
57         to pure functions.
58         * gdbarch.h, gdbarch.c: Re-generate.
59         * frame.c (get_prev_frame): Explictly assign prev's pc with value
60         returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
61
62         * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
63         declaration to a function returning a CORE_ADDR.
64         * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
65         * arch-utils.c (init_frame_pc_noop): Return the PC value.
66         (init_frame_pc_default): Ditto.
67         * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
68         * s390-tdep.c (s390_init_frame_pc_first): Ditto.
69         * mips-tdep.c (mips_init_frame_pc_first): Ditto.
70         * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
71         * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
72         * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
73
74         * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
75         to init_frame_pc_noop.
76         (i386_interix_init_frame_pc): Delete function.
77         * z8k-tdep.c (init_frame_pc): Delete function.
78         * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
79         (INIT_FRAME_PC_FIRST): Ditto.
80         * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
81         (INIT_FRAME_PC_FIRST): Ditto.
82         * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
83         * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
84         init_frame_pc_noop.
85         (INIT_FRAME_PC_FIRST): Convert to an expression.
86         * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
87
88 2002-12-08  Andrew Cagney  <[email protected]>
89
90         * blockframe.c: Use get_frame_base instead of directly accessing
91         the `struct frame_info' member frame.
92         * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
93         * stack.c, dummy-frame.c, breakpoint.c: Ditto.
94
95 2002-12-08  Elena Zannoni  <[email protected]>
96
97         * Makefile.in (readline_h): Define.
98         (completer.o): Depend on readline_h.
99         (corelow.o): Ditto.
100         (event-top.o): Ditto.
101         (exec.o): Ditto.
102         (solib.o): Ditto.
103         (source.o): Ditto. 
104         (symfile.o): Ditto. 
105         (symmisc.o): Ditto. 
106         (top.o): Ditto.
107         (tracepoint.o): Ditto. 
108         (utils.o): Ditto.
109         (cli-dump.o): Ditto.
110         (tui-hooks.o): Ditto. 
111         (tuiWin.o): Ditto. 
112
113 2002-12-08  Elena Zannoni  <[email protected]>
114
115         More cleanup from import of readline 4.3.
116         * completer.h (complete_line, readline_line_completion_function):
117         Update prototypes.
118         (line_completion_function): Removed, not used outside of completer.c.
119         * completer.c (readline_line_completion_function,
120         complete_function, line_completion_function): Use const for first
121         parameter.
122         (line_completion_function): Make static.
123         (filename_completer): filename_completion_function is now called
124         rl_filename_completion_function
125         * corelow.c: Include <readline/readline.h>.
126         * exec.c: Ditto.
127         * solib.c: Ditto.
128         * source.c: Ditto.
129         * symfile.c: Ditto.
130         * symmisc.c: Ditto.
131         * top.c (init_main): No need to coerce
132         readline_line_completion_function anymore.
133         * cli/cli-dump.c: Include <readline/readline.h>.
134
135 2002-12-08  Andrew Cagney  <[email protected]>
136
137         * stack.c (frame_info): Use get_prev_frame.
138         * blockframe.c (frame_address_in_block): Ditto.
139         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
140         (rs6000_frameless_function_invocation): Ditto.
141         (rs6000_frame_saved_pc): Ditto.
142         (rs6000_frame_chain): Ditto.
143         * arch-utils.c (init_frame_pc_default): Ditto.
144
145 2002-12-08  Andrew Cagney  <[email protected]>
146
147         * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
148         Delete redundant definition.
149
150 2002-12-08  Elena Zannoni  <[email protected]>
151
152         Import of readline 4.3:
153         * cli/cli-cmds.c: Include readline/tilde.h.
154         * cli/cli-setshow.c: Ditto.
155         * defs.h: Don't declare tilde_expand anymore, since readline
156         exports it.
157
158 2002-12-08  Elena Zannoni  <[email protected]>
159
160         * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
161         -Werror on this file.
162
163 2002-12-07  Andrew Cagney  <[email protected]>
164
165         * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
166         the format name.
167         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
168         * gdbarch.c: Regenerate.
169         
170 2002-12-06  Andrew Cagney  <[email protected]>
171
172         * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
173         INIT_FRAME_PC_FIRST.  Change to a function with predicate.  Do not
174         provide a default value.
175         * gdbarch.h, gdbarch.c: Regenerate.
176         * frame.c (get_prev_frame): Update.  Check
177         DEPRECATED_INIT_FRAME_PC_FIRST_P.
178         * s390-tdep.c (s390_gdbarch_init): Update.
179         * mips-tdep.c (mips_gdbarch_init): Update.
180         * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
181         * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
182         * alpha-tdep.c (alpha_gdbarch_init): Update.
183         
184 2002-12-06  Elena Zannoni  <[email protected]>
185
186         * ia64-linux-nat.c: Include gdb_string.h.
187         * alpha-nat.c: Ditto.
188         * ppc-linux-nat.c: Ditto.
189         * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
190         Update dependencies.
191
192 2002-12-05  Andrew Cagney  <[email protected]>
193
194         * gdbthread.h: Include "frame.h".
195         (struct thread_info): Replace step_frame_address with
196         step_frame_id.
197         * inferior.h: Include "frame.h".
198         (step_frame_id): Replace external variable step_frame_address.
199         * gdbthread.h (save_infrun_state): Replace step_frame_address
200         parameter with step_frame_id parameter.
201         (load_infrun_state): Ditto.
202         * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
203         * infcmd.c (step_frame_id, step_1, step_once): Update.
204         * thread.c (load_infrun_state, save_infrun_state): Update.
205         * infrun.c (clear_proceed_status, save_inferior_status): Update.
206         (handle_inferior_event, step_over_function): Update.
207         (normal_stop, context_switch, restore_inferior_status): Update.
208         (struct inferior_status): Replace step_frame_address with
209         step_frame_id.
210
211 2002-12-05  David Carlton  <[email protected]>
212
213         * dwarf2read.c (dwarf2_add_field): Treat a field that is a
214         DW_TAG_member as well as a declaration as being a C++ static data
215         member.
216         (read_structure_scope): Combine tests for DW_TAG_member and
217         DW_TAG_variable.
218
219 2002-12-05  David Carlton  <[email protected]>
220
221         * linespec.c (decode_compound): New function.
222         (decode_line_1): Move code into decode_compound.
223
224 2002-12-05  David Carlton  <[email protected]>
225
226         * symtab.c (lookup_symbol_aux_local): Add 'static_block'
227         argument.
228         (lookup_symbol_aux): Do the 'field_of_this' check before checking
229         the static block.  See PR gdb/804.
230
231 2002-12-05  David Carlton  <[email protected]>
232
233         * symtab.c (lookup_symbol_aux_block): New function.
234         (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
235
236 2002-12-05  Andrew Cagney  <[email protected]>
237
238         * gdbarch.sh: Dump the predicate function and macro values.
239         (read): Print error on standard error.
240         * gdbarch.c: Regenerate.
241         
242 2002-12-04  Kevin Buettner  <[email protected]>
243
244         * Makefile.in (mips_tdep_h): Define.
245         (mips-tdep.o): Add mips_tdep_h to dependency list.
246         * mips-tdep.h: New file.
247         * mips-tdep.c (mips-tdep.h): Include.
248         (enum mips_abi): Move to mips-tdep.h.
249         (mips_abi): New function.
250
251 2002-12-04  David Carlton  <[email protected]>
252
253         * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
254
255 2002-12-04  David Carlton  <[email protected]>
256
257         * symtab.c (lookup_symbol_aux): Move minsym code into a separate
258         function.
259         (lookup_symbol_aux_minsyms): New function.
260
261 2002-12-04  J. Brobecker  <[email protected]>
262
263         * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
264
265 2002-12-04  J. Brobecker  <[email protected]>
266
267         * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
268         which is an obsolete macro name.
269
270 2002-12-04  Daniel Jacobowitz  <[email protected]>
271
272         * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
273         * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
274
275 2002-12-03  H.J. Lu  ([email protected])
276
277         * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
278         (create_breakpoints): Make sure the addr_string field is not
279         NULL.
280
281 2002-12-03  Andrew Cagney  <[email protected]>
282
283         * sparc-nat.c (fetch_inferior_registers)
284         (store_inferior_registers): Add comment on problem of LWP vs
285         threads.
286         
287         From 2002-11-21 Daniel Jacobowitz <[email protected]>
288         * lin-lwp.c (lin_lwp_fetch_registers): Remove.
289         (lin_lwp_store_registers): Remove.
290         (init_lin_lwp_ops): Use fetch_inferior_registers
291         and store_inferior_registers directly.
292         * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
293         (store_inferior_registers): Likewise.
294         Fix PR gdb/725.
295
296 2002-12-03  Andrew Cagney  <[email protected]>
297
298         * frame.h (get_frame_id): Convert to a function.
299         (null_frame_id, frame_id_p): Declare.
300         (frame_id_eq, frame_id_inner): Declare.
301         (frame_id_build): New function.
302         * frame.c (get_frame_id): Update.  Use null_frame_id.
303         (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
304         frame_id_inner.
305         (null_frame_id, frame_id_p): Define.
306         (frame_id_eq, frame_id_inner): Define.
307         (frame_id_build): New function.
308         * varobj.c (varobj_create): Update.
309         (varobj_update): Update.
310         * valops.c (value_assign): Update.
311         (new_root_variable): Update.
312         * infrun.c (save_inferior_status): Update.
313         * breakpoint.c (watch_command_1): Update.
314
315 2002-12-03  J. Brobecker  <[email protected]>
316
317         * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
318         (SNAP2): Likewise.
319
320 2002-12-03  Andrew Cagney  <[email protected]>
321
322         * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
323         patch.
324
325         * PROBLEMS: Mention PR gdb/725.
326
327 2002-12-03  Andreas Schwab  <[email protected]>
328
329         * infcmd.c (construct_inferior_arguments): Handle empty arguments.
330
331 2002-12-02  Adam Fedor  <[email protected]>
332             Klee Dienes  <[email protected]>
333
334         * objc-lang.c (objc_printstr): Add width arg to match
335         printstr prototype.
336         (compare_selectors): Add 'const' to arg types.
337         (compare_classes): Likewise.
338         (find_imps): Cast msym pointer to avoid compiler warning.
339         (print_object_command): Validate the address before
340         passing it to the print routine.
341         (find_objc_msgcall_submethod): Change function argument to
342         return an int.
343         * objc-lang.h: Add 'extern' to all function declarations.
344         (value_nsstring): Add declaration.
345
346 2002-12-02  J. Brobecker  <[email protected]>
347
348         * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
349         Fixes a build failure on HP/UX.
350
351         * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
352         failure on HP/UX. 
353         (hpread_has_name): Advance declaration to avoid a compilation warning.
354         (pst_syms_count): Add missing variable type. By change, the compiler
355         was defaulting to int, which seems a good choice. Fixes a compilation
356         warning.
357         (pst_syms_size): Likewise.
358  
359 2002-12-02  J. Brobecker  <[email protected]>
360
361         * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
362         (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
363         later to set the proper gdbarch methods depending on the osabi.
364         * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
365
366 2002-12-02  J. Brobecker  <[email protected]>
367
368         * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
369         * osabi.c (gdb_osabi_name): Add strings images for the two new
370         enum values.
371         (generic_elf_osabi_sniffer): Handle HPUX objfiles.
372
373 2002-12-02  Andrew Cagney  <[email protected]>
374
375         * MAINTAINERS (Java): Global maintainers are responible for Java.
376         (Past Maintainers): Mention both Anthony Green and Per Bothner as
377         part Java maintainers.
378
379 2002-12-02  J. Brobecker  <[email protected]>
380
381         * xcoffread.c (read_symbol_lineno): Replace boolean by int.
382         Fixes a compilation failure on AiX.
383
384 2002-12-02  J. Brobecker  <[email protected]>
385
386         * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
387         why aix-thread.o is not listed.
388
389 2002-12-01  Andrew Cagney  <[email protected]>
390
391         * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
392         PC_IN_CALL_DUMMY.  Change to predicate.  Always allow call.
393         * gdbarch.h, gdbarch.c: Re-generate.
394         * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
395         * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
396         * config/pa/tm-hppa.h, frame.h: Update.
397         * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
398         * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
399         * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
400         * cris-tdep.c, alpha-tdep.c: Update.
401         * frame.c (set_unwind_by_pc, create_new_frame): Use either
402         DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
403         (get_prev_frame): Ditto.
404
405 2002-11-30  Andrew Cagney  <[email protected]>
406
407         * exec.c (xfer_memory): Replace boolean with int.
408         * p-exp.y: Use 0 instead of false.
409         * corelow.c (gdb_check_format): Change return type to int from
410         boolean.
411         * utils.c: Don't include <curses.h> or <term.h> first.
412
413 2002-11-29  Stephane Carrez  <[email protected]>
414
415         * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
416         (m68hc11_register_byte): Remove.
417         (m68hc11_gdbarch_init): Don't set the above.
418
419 2002-11-29  Andrew Cagney  <[email protected]>
420
421         * remote-mips.c (mips_initialize): Force a selected frame rebuild
422         by calling get_selected_frame.
423         * ocd.c (ocd_start_remote): Use get_selected frame instead of
424         set_current_frame, create_new_frame, select_frame and
425         get_current_frame.
426         * remote-e7000.c (e7000_start_remote): Ditto.
427         * remote-mips.c (common_open): Ditto
428         * remote-rdp.c (remote_rdp_open): Ditto.
429
430 2002-11-29  Andreas Schwab  <[email protected]>
431
432         * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
433         (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
434         (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
435         (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
436         read_memory_unsigned_integer instead of read_memory_integer when
437         dealing with addresses and instruction opcodes.
438         * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc) 
439         (m68k_linux_frame_saved_pc): Likewise.
440
441 2002-11-29  Andrew Cagney  <[email protected]>
442
443         * stack.c (selected_frame, select_frame): Move from here ...
444         * frame.c (selected_frame, select_frame): ... to here.  Include
445         "language.h".
446         * Makefile.in (frame.o): Update dependencies.
447         * frame.c (get_selected_frame): New function.
448         * frame.h (get_selected_frame): Declare.
449         (deprecated_selected_frame): Rename selected_frame.
450         * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
451         * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
452         * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
453         * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
454         * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
455         * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
456         * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
457         * z8k-tdep.c, cli/cli-cmds.c: Update.
458         
459 2002-11-29  Andrew Cagney  <[email protected]>
460
461         * frame.h (get_selected_block): Add comments.
462
463 2002-11-28  Andrew Cagney  <[email protected]>
464
465         * frame.c (pc_notcurrent): New function.
466         (find_frame_sal): New function.
467         * frame.h (find_frame_sal): Declare.
468         (struct symtab_and_line): Add opaque declaration.
469         * stack.c (print_frame_info_base): Use find_frame_sal instead of
470         find_pc_line.
471         (frame_info): Ditto.
472         * ada-lang.c (find_printable_frame): Ditto.
473
474 2002-11-28  J. Brobecker  <[email protected]>
475
476         * configure.in: Check that the pthdebug library is recent enough
477         before enabling thread support on native AiX.
478         * configure: Regenerate.
479
480         * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
481         from the list of object files as it is now appended by configure
482         if thread support is enabled.
483         (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
484         if thread support is enabled.
485
486 2002-11-28  Andrew Cagney  <[email protected]>
487
488         * stack.c (get_selected_block): In-line get_current_block.
489         * frame.h (get_current_block): Delete declaration.
490         * blockframe.c (get_current_block): Delete function.
491
492 2002-11-28  Andrew Cagney  <[email protected]>
493
494         * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
495         USE_GENERIC_DUMMY_FRAMES.
496         * gdbarch.h, gdbarch.c: Regenerate.
497         * valops.c, frame.c: Update.
498         * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
499         * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
500         * config/pa/tm-hppa.h, blockframe.c: Update.
501         * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
502         * m68k-tdep.c, alpha-tdep.c: Ditto.
503
504         * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
505         * mips-tdep.c: Ditto.
506
507 2002-11-27  Andrew Cagney  <[email protected]>
508
509         * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
510         (USE_GENERIC_DUMMY_FRAMES): Default to true.
511         (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
512         * gdbarch.c, gdbarch.h: Re-generate.
513         * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
514         (CALL_DUMMY_LOCATION): Delete macro definition.
515         (PC_IN_CALL_DUMMY): Delete macro definitions.
516         
517         * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
518         default is already generic_pc_in_call_dummy.
519         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
520         * v850-tdep.c (v850_gdbarch_init): Ditto.
521         * sh-tdep.c (sh_gdbarch_init): Ditto.
522         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
523         * mips-tdep.c (mips_gdbarch_init): Ditto.
524         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
525         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
526         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
527         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
528         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
529         * avr-tdep.c (avr_gdbarch_init): Ditto.
530         
531         * arm-tdep.c (arm_gdbarch_init): Do not set
532         use_generic_dummy_frames, default is already 1.
533         * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
534         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
535         * v850-tdep.c (v850_gdbarch_init): Ditto.
536         * sh-tdep.c (sh_gdbarch_init): Ditto.
537         * s390-tdep.c (s390_gdbarch_init): Ditto.
538         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
539         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
540         * mips-tdep.c (mips_gdbarch_init): Ditto.
541         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
542         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
543         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
544         * i386-tdep.c (i386_gdbarch_init): Ditto.
545         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
546         * frv-tdep.c (frv_gdbarch_init): Ditto.
547         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
548         * cris-tdep.c (cris_gdbarch_init): Ditto.
549         * avr-tdep.c (avr_gdbarch_init): Ditto.
550
551         * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
552         call_dummy_location, default is already AT_ENTRY_POINT.
553         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
554         * v850-tdep.c (v850_gdbarch_init): Ditto.
555         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
556         * sh-tdep.c (sh_gdbarch_init): Ditto.
557         * s390-tdep.c (s390_gdbarch_init): Ditto.
558         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
559         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
560         * mips-tdep.c (mips_gdbarch_init): Ditto.
561         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
562         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
563         * ia64-tdep.c (ia64_gdbarch_init): Ditto.
564         * i386-tdep.c (i386_gdbarch_init): Ditto.
565         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
566         * frv-tdep.c (frv_gdbarch_init): Ditto.
567         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
568         * cris-tdep.c (cris_gdbarch_init): Ditto.
569         * avr-tdep.c (avr_gdbarch_init): Ditto.
570         * arm-tdep.c (arm_gdbarch_init): Ditto.
571         * alpha-tdep.c (alpha_gdbarch_init): Ditto.
572
573 2002-11-28  Andrew Cagney  <[email protected]>
574
575         * frame.h: Update comments on set_current_frame, create_new_frame,
576         flush_cached_frames, reinit_frame_cache, select_frame and
577         selected_frame.
578         
579 2002-11-27  Andrew Cagney  <[email protected]>
580
581         * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
582         deprecated pc_in_call_dummy function.
583         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
584         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
585         * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
586         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
587         * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
588
589 2002-11-26  Martin M. Hunt  <[email protected]>
590
591         * Makefile.in: Remove Tix dependencies.
592         * acinclude.m4: Ditto.
593         * aclocal.m4: Ditto.
594         * configure.in: Ditto.
595         * configure: Regenerated.
596         
597 2002-11-26  Andrew Cagney  <[email protected]>
598
599         * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
600         (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
601         * gdbarch.c: Re-generate.
602         
603 2002-11-26  Andrew Cagney  <[email protected]>
604
605         * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
606         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
607         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
608         * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
609         pc_in_call_dummy_at_entry_point.
610         * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
611         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
612         (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
613         * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
614         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
615         pc_in_call_dummy_on_stack.
616         * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
617         pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
618         * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
619         (USE_GENERIC_DUMMY_FRAMES): Define as zero.
620         (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
621         
622 2002-11-26  Andrew Cagney  <[email protected]>
623
624         * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
625         pc_in_call_dummy_before_text_end
626         (deprecated_pc_in_call_dummy_after_text_end): Rename
627         pc_in_call_dummy_after_text_end.
628         (deprecated_pc_in_call_dummy_on_stack): Rename
629         pc_in_call_dummy_on_stack.
630         (deprecated_pc_in_call_dummy_at_entry_point): Rename
631         pc_in_call_dummy_at_entry_point.
632         * m68k-tdep.c (m68k_gdbarch_init): Update.
633         * s390-tdep.c (s390_gdbarch_init): Update.
634         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
635         * vax-tdep.c (vax_gdbarch_init): Update.
636         * sparc-tdep.c (sparc_gdbarch_init): Update.
637         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
638         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
639         * i386-tdep.c (i386_gdbarch_init): Update.
640         * frv-tdep.c (frv_gdbarch_init): Update.
641         * cris-tdep.c (cris_gdbarch_init): Update.
642         * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
643         * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
644         (deprecated_pc_in_call_dummy_after_text_end)
645         (deprecated_pc_in_call_dummy_on_stack)
646         (deprecated_pc_in_call_dummy_at_entry_point): Update.
647         * alpha-tdep.c (alpha_gdbarch_init): Update.
648
649 2002-11-25  Daniel Jacobowitz  <[email protected]>
650
651         * acconfig.h (HAVE_PREAD64): Add.
652         * configure.in: Check for pread64.
653         * config.in: Regenerated.
654         * configure: Regenerated.
655         * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
656         * linux-proc.c (linux_proc_xfer_memory): New function.
657         * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
658
659 2002-11-25  David Carlton  <[email protected]>
660
661         * dwarf2read.c (scan_partial_symbols): Descend into namespace
662         pdi's with no name.
663
664 2002-11-25  Andrew Cagney  <[email protected]>
665
666         * MAINTAINERS: Mark h8500 as broken.  Breakage occured Fri Nov 5
667         16:32:04 1999 Andrew Cagney <[email protected]>.
668
669 2002-11-25  Jim Blandy  <[email protected]>
670
671         * symfile.c (init_objfile_sect_indices): New function.
672         (default_symfile_offsets): Move the section-index-initializing
673         stuff into init_objfile_sect_indices, and call that.
674
675         * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
676         (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
677
678         * symfile.c (syms_from_objfile): Adjust indentation.
679
680         * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
681         || info_verbose isn't true.
682
683 2002-11-24  Andrew Cagney  <[email protected]>
684
685         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
686         default to get_frame_base.
687         * gdbarch.h, gdbarch.c: Regenerate.
688         * arch-utils.c (default_frame_address): Delete function.
689         * arch-utils.h (default_frame_address): Delete declaration
690
691 2002-11-24  Pierre Muller  <[email protected]>
692
693         * varobj.c (find_frame_addr_in_frame_chain):
694         Use get_frame_base instead of FRAME_FP,
695         obvious fix.
696
697 2002-11-19  Andrew Cagney  <[email protected]>
698
699         * frame.h (FRAME_FP): Delete macro.
700         (get_frame_base): New function declaration.
701         * frame.c (get_frame_base): New function.
702         (get_frame_id): Use ->frame.
703         (frame_find_by_id): Rewrite to use get_frame_id.
704         * blockframe.c: Use get_frame_base instead of FRAME_FP.
705         * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
706         * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
707         * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
708         * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
709         * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
710         * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
711
712 2002-11-24  Andrew Cagney  <[email protected]>
713
714         * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
715
716 2002-11-24  Andrew Cagney  <[email protected]>
717
718         * frame.c (set_unwind_by_pc): Revert change below, use
719         PC_IN_CALL_DUMMY.
720         (get_prev_frame): Ditto.
721
722 2002-11-24  Andrew Cagney  <[email protected]>
723
724         * dummy-frame.c (pc_in_dummy_frame): New function.
725         (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
726         (find_dummy_frame): Update comment.
727         (generic_pop_current_frame): Use get_frame_type.
728         * dummy-frame.h (pc_in_dummy_frame): Declare.
729         * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
730         (create_new_frame): Use pc_in_dummy_frame.
731         (get_prev_frame): Use pc_in_dummy_frame.
732         (frame_saved_regs_register_unwind): Use get_prev_frame.
733         (deprecated_generic_get_saved_register): Use get_prev_frame.
734
735 2002-11-23  Andrew Cagney  <[email protected]>
736
737         * blockframe.c (find_frame_addr_in_frame_chain): Move function
738         from here ...
739         * varobj.c (find_frame_addr_in_frame_chain): ... to here.
740         (varobj_create): Note that frame ID should be used.
741         * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
742
743 2002-11-23  Andrew Cagney  <[email protected]>
744
745         * breakpoint.c: Include "gdb_assert.h".
746         (deprecated_frame_in_dummy): Assert that generic dummy frames are
747         not being used.
748         * Makefile.in (breakpoint.o): Update dependencies.
749         * ada-lang.c (find_printable_frame): Use get_frame_type instead of
750         deprecated_frame_in_dummy.
751         * stack.c (print_frame_info_base): Ditto.
752         (frame_info): Ditto.
753         (print_frame_info_base): Ditto.  Delete dead code.
754         
755 2002-11-23  Andreas Schwab  <[email protected]>
756
757         * Makefile.in (m68k_tdep_h): Define.
758         (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
759         (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
760         * m68k-tdep.c: Move register number enum ...
761         * m68k-tdep.h: ... to this new file and rename the constants from
762         E_* to M68K_*.  All uses changed.
763         * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
764         * abug-rom.c: Include "m68k-tdep.h".  Use
765         M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
766         * cpu32bug-rom.c: Likewise.
767         * dbug-rom.c: Likewise.
768         * m68k-tdep.c: Likewise.
769         * m68klinux-nat.c: Likewise.
770         * remote-est.c: Likewise.
771         * rom68k-rom.c: Likewise.
772         * config/m68k/tm-linux.h: Likewise.
773
774 2002-11-23  Andrew Cagney  <[email protected]>
775
776         * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
777         dummy frame initialization code.
778         * mips-tdep.c (mips_gdbarch_init): Ditto.
779
780 2002-11-22  Christopher Faylor  <[email protected]>
781
782         * win32-nat.c (child_attach): Reset saw_create counter or subsequent
783         attach will hang.
784
785 2002-11-22  Andrew Cagney  <[email protected]>
786
787         * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
788         to default_frame_address.
789         * gdbarch.h, gdbarch.c: Re-generate.
790
791         * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
792         or frame_locals_address to default_frame_address.
793         * m68k-tdep.c (m68k_gdbarch_init): Update.
794         * i386-tdep.c (i386_gdbarch_init): Update.
795         * frv-tdep.c (frv_gdbarch_init): Update.
796         * sh-tdep.c (sh_gdbarch_init): Update.
797         * v850-tdep.c (v850_gdbarch_init): Update.
798         * sparc-tdep.c (sparc_gdbarch_init): Update.
799         * mips-tdep.c (mips_gdbarch_init): Update.
800         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
801         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
802         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
803
804         * cris-tdep.c (cris_frame_args_address): Delete function.
805         (cris_frame_locals_address): Delete function.
806         (cris_gdbarch_init): Do not set frame_args_address or
807         frame_locals_address.
808
809 2002-11-22  Michael Snyder  <[email protected]>
810
811         * thread-db.c (thread_db_load): Tell the user what's going on
812         if dlopen fails on libthread_db.
813
814 2002-11-23  Andreas Schwab  <[email protected]>
815
816         * m68k-tdep.c (m68k_register_virtual_type): Use architecture
817         invariant return values.
818
819 2002-11-22  Andreas Schwab  <[email protected]>
820
821         * valops.c (value_slice): Move declaration of `offset' to avoid
822         warning.
823
824 2002-11-22  Christopher Faylor  <[email protected]>
825
826         * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
827         (struct so_stuff): Add end_addr field.
828         (register_loaded_dll): Calculate and store end address of loaded dll.
829         (solib_address): New function.
830         (child_solib_loaded_library_pathname): Pass carefully constructed
831         section info to safe_symbol_file_add rather than ignoring it.
832         (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
833         DLL is loaded.
834         (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
835         (child_create_inferior): Fix a compiler warning.
836         * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
837         (solib_address): Declare new function.
838
839 2002-11-22  Andreas Schwab  <[email protected]>
840
841         * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
842         and FPS registers.
843
844 2002-11-21  Daniel Jacobowitz  <[email protected]>
845
846         * maint.c (_initialize_maint_cmds): Fix typo.  From
847         Francesco Potorti` <[email protected]>.
848
849 2002-11-21  Andrew Cagney  <[email protected]>
850
851         * mips-tdep.c (mips_dump_tdep): Delete references to
852         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
853         * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
854         (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
855         * printcmd.c (build_address_symbolic): Delete calls to
856         GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
857         (address_info): Ditto.
858         Fix PR gdb/773.
859         
860 2002-11-19  Klee Dienes  <[email protected]>
861             Adam Fedor  <[email protected]>
862
863         * completer.c (skip_quoted_chars): Renamed from skip_chars.  Add
864         the ability to explicitly specify the quote characters and word
865         break characters; if NULL is specified for either, use the old
866         behavior of using the characters used by the completer.
867         (skip_chars): New function.  Convenience wrapper around
868         skip_quoted_chars to provide the original skip_chars behavior.
869         * completer.h (skip_quoted_chars): Add prototype.
870
871 2002-11-19  Andrew Cagney  <[email protected]>
872
873         Problems reported by Paul Eggert.
874         * gdbarch.sh: Use `sort -k 3`.  Fix PR gdb/527.
875
876 2002-11-19  Andreas Schwab  <[email protected]>
877
878         * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP) 
879         (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET) 
880         (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc) 
881         (m68k_linux_frame_saved_pc): Move to ...
882         * m68klinux-tdep.c: ... here.  New file.
883         * Makefile.in (m68klinux-tdep.o): Add dependencies.
884         * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
885
886 2002-11-19  Adam Fedor  <[email protected]>
887
888         * objc-exp.y: Revert to old skip_quoted usage.
889
890 2002-11-19  Adam Fedor  <[email protected]>
891
892         * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
893         (objc_lang_h): Define.
894         (YYFILES): Add objc-exp.tab.c.
895         (local-maintainer-clean): Remove objc-exp.tab.c.
896         (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
897         
898 2002-11-19  Pierre Muller  <[email protected]>
899
900         * p-exp.y (typecast rule): Add automatic dereference of
901         pascal classes if needed.
902         (THIS): Set current_type.
903         Automatically dereference pascal classes. 
904         (typebase rule): Add ^typebase recognition.
905
906 2002-11-18  Adam Fedor  <[email protected]>
907
908         * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
909         OP_OBJC_MSGCALL, and OP_OBJC_SELF.      
910         (op_name): Handle OP_OBJC_SELF.
911         * Makefile.in (expprint.o): Add additional depends.
912
913 2002-11-18  Adam Fedor  <[email protected]>
914
915         * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
916         OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
917         * parse.c (length_of_subexp, prefixify_subexp): Likewise.
918         * objc-exp.y: Likewise. 
919
920 2002-11-18  Adam Fedor  <[email protected]>
921
922         * gdb/parser-defs.h: (struct objc_class_str): New structure
923         for parsing ObjC classes.
924
925 2002-11-18  Andrew Cagney  <[email protected]>
926
927         * stack.c (frame_relative_level): Copy function from here ...
928         * frame.c (frame_relative_level): ...to here.
929
930 2002-11-18  Andrew Cagney  <[email protected]>
931
932         * frame.h (enum frame_type): Define.
933         (get_frame_type): Declare.
934         (struct frame_info): Add field `type'.  Delete field
935         signal_handler_caller.
936         (deprecated_set_frame_signal_handler_caller): Declare.
937         * frame.c (get_frame_type): New function.
938         (deprecated_set_frame_type): New function.
939         (create_new_frame): Set the frame's type.
940         (get_prev_frame): Similar.
941         * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
942         * s390-tdep.c: Ditto.
943         * m68klinux-nat.c: Ditto.
944         * ns32k-tdep.c: Ditto.
945         * x86-64-linux-tdep.c: Ditto.
946         * vax-tdep.c: Ditto.
947         * rs6000-tdep.c: Ditto.
948         * ppc-linux-tdep.c: Ditto.
949         * i386-interix-tdep.c: Ditto.
950         * mips-tdep.c: Ditto.
951         * m68k-tdep.c: Ditto.
952         * hppa-tdep.c: Ditto.
953         * ia64-tdep.c: Ditto.
954         * cris-tdep.c: Ditto.
955         * arm-tdep.c: Ditto.
956         * alpha-tdep.c: Ditto.
957         * i386-tdep.c: Ditto.
958         * stack.c: Ditto.
959         * ada-lang.c: Ditto.
960         * blockframe.c: Update.
961         * i386-interix-tdep.c (i386_interix_back_one_frame): Use
962         deprecated_set_frame_type instead of signal_handler_caller.
963         * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
964         * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
965         * breakpoint.h: Delete FIXME suggesting get_frame_type.
966
967 2002-11-18   Klee Dienes  <[email protected]>
968
969         * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
970
971 2002-11-18  Klee Dienes  <[email protected]>
972
973         * buildsym.c (pop_context): Add comment.
974         
975 2002-11-18  Klee Dienes  <[email protected]>
976
977         * buildsym.h (pop_context): Convert to function, defined in
978         buildsym.c.
979         * buildsym.c: Include gdb_assert.h.
980         (pop_context): Implement as C function.  Add check for stack
981         underflow.
982         * dbxread.c (process_one_symbol): Complain and stop processing
983         that symbol if we are already at the top of the context stack for
984         a function-end N_FUN (this would imply an umatched RBRAC).  Ditto
985         when processing N_RBRAC.
986
987 2002-11-16  Daniel Jacobowitz  <[email protected]>
988
989         * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
990         define.
991         (struct target_waitstatus): Add opaque definition.
992         * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
993         * exec.c (init_exec_ops): Likewise.
994         * fork-child.c (clone_and_follow_inferior): Remove.
995         * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
996         * inferior.h (clone_and_follow_inferior): Remove prototype.
997         * infrun.c (follow_fork_mode_both): Remove.
998         (follow_fork_mode_kind_names): Remove commented out "both".
999         (follow_inferior_fork): Remove follow_fork_mode_both support.
1000         * inftarg.c (child_clone_and_follow_inferior): Remove.
1001         (child_post_follow_inferior_by_clone): Remove.
1002         (init_child_ops): Don't set to_clone_and_follow_inferior
1003         or to_post_follow_inferior_by_clone.
1004         * target.c (default_clone_and_follow_inferior): Remove.
1005         (cleanup_target): Don't set to_clone_and_follow_inferior
1006         or to_post_follow_inferior_by_clone.
1007         (find_default_clone_and_follow_inferior): Remove.
1008         (init_dummy_target): Don't set to_clone_and_follow_inferior.
1009         (debug_to_clone_and_follow_inferior): Remove.
1010         (debug_to_post_follow_inferior_by_clone): Remove.
1011         (setup_target_debug): Don't set to_clone_and_follow_inferior
1012         or to_post_follow_inferior_by_clone.
1013         * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1014         and to_post_follow_inferior_by_clone.
1015         (child_clone_and_follow_inferior): Remove prototype.
1016         (child_post_follow_inferior_by_clone): Remove prototype.
1017         (target_clone_and_follow_inferior): Remove macro.
1018         (target_post_follow_inferior_by_clone): Remove macro.
1019         (find_default_clone_and_follow_inferior): Remove prototype.
1020
1021 2002-11-16  Daniel Jacobowitz  <[email protected]>
1022
1023         * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1024         inferior_has_vforked, and inferior_has_execd instead of
1025         target_has_forked, target_has_vforked, and target_has_execd.
1026         * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1027         (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1028         (CHILD_WAIT): Define.
1029         (child_wait): Add prototype.
1030         * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1031         Add prototype.
1032         (hpux_has_vforked): Likewise, from child_has_vforked.
1033         (hpux_has_execd): Likewise, from child_has_execd.
1034         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1035         (not_same_real_pid, child_wait): New, copied from inftarg.c.
1036         Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1037         and hpux_has_syscall_event instead of the target hooks.
1038         * infrun.c (inferior_has_forked, inferior_has_vforked)
1039         (inferior_has_execd): New functions.
1040         * inftarg.c (not_same_real_pid): Remove.
1041         (child_wait): Remove references to not_same_real_pid,
1042         target_has_forked, target_has_vforked, target_has_execd,
1043         and target_has_syscall_event.
1044         (child_has_forked, child_has_vforked, child_has_execd)
1045         (child_has_syscall_event): Remove.
1046         (init_child_ops): Remove references to child_has_forked,
1047         child_has_vforked, child_has_execd, and child_has_syscall_event.
1048         * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1049         (hpux_has_vforked): Likewise, from child_has_vforked.
1050         (hpux_has_execd): Likewise, from child_has_execd.
1051         (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1052         * target.c (cleanup_target): Remove references to
1053         to_has_forked, to_has_vforked, to_has_execd, and
1054         to_has_syscall_event.
1055         (update_current_target): Likewise.
1056         (setup_target_debug): Likewise.
1057         (debug_to_has_forked): Remove.
1058         (debug_to_has_vforked): Remove.
1059         (debug_to_has_execd): Remove.
1060         (debug_to_has_syscall_event): Remove.
1061         * target.h (struct target_ops): Remove to_has_forked.
1062         to_has_vforked, to_has_execd, and to_has_syscall_event.
1063         (child_has_forked, child_has_vforked, child_has_execd)
1064         (child_has_syscall_event): Remove prototypes.
1065         (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1066         prototypes.
1067         (target_has_forked, target_has_vforked, target_has_execd)
1068         (target_has_syscall_event): Remove macros.
1069
1070 2002-11-16  Daniel Jacobowitz  <[email protected]>
1071
1072         * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1073         * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1074         (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1075         * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1076         * target.c (cleanup_target): Remove reference to
1077         to_can_follow_vfork_prior_to_exec.
1078         (update_current_target): Likewise.
1079         (debug_to_can_follow_vfork_prior_to_exec): Remove.
1080         (setup_target_debug): Remove reference to
1081         to_can_follow_vfork_prior_to_exec.
1082         * target.h (struct target_ops): Remove
1083         to_can_follow_vfork_prior_to_exec.
1084         (child_can_follow_vfork_prior_to_exec): Remove prototype.
1085         (target_can_follow_vfork_prior_to_exec): Remove definition.
1086         * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1087         define.
1088         * infrun.c (follow_vfork_when_exec): Remove.
1089         (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1090         (follow_exec): Likewise.
1091         (handle_inferior_event): Likewise.
1092         (keep_going): Likewise.
1093
1094 2002-11-15  Andrew Cagney  <[email protected]>
1095
1096         * frame.c (generic_unwind_get_saved_register): Make static.
1097         * frame.h (generic_unwind_get_saved_register): Delete declaration.
1098         * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1099         defaults to generic_unwind_get_saved_register.
1100         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1101         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1102         * frv-tdep.c (frv_gdbarch_init): Ditto.
1103         * i386-tdep.c (i386_gdbarch_init): Ditto.
1104         * s390-tdep.c (s390_gdbarch_init): Ditto.
1105         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1106         * v850-tdep.c (v850_gdbarch_init): Ditto.
1107         * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1108         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1109         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1110
1111 2002-11-15  Andrew Cagney  <[email protected]>
1112
1113         * x86-64-linux-nat.c (i386_sse_regnum_p): New function.  Copy from
1114         i386-tdep.c.
1115
1116 2002-11-15  Andrew Cagney  <[email protected]>
1117
1118         * frame.h (sigtramp_saved_pc): Delete declaration.
1119         * blockframe.c (sigtramp_saved_pc): Delete function.
1120         * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1121         (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1122         * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1123         (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1124
1125 2002-11-15  Andrew Cagney  <[email protected]>
1126
1127         * frame.c (frame_pc_unwind): New function.
1128         (frame_saved_regs_pc_unwind): New function.
1129         (frame_register_unwind): Pass unwind_cache instead of
1130         register_unwind_cache.
1131         (set_unwind_by_pc): Add unwind_pc parameter, set.
1132         (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1133         (get_prev_frame): Ditto.
1134         * frame.h (frame_pc_unwind_ftype): Declare.
1135         (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1136         pc_unwind_cache.  Rename register_unwind_cache to unwind_cache.
1137         (frame_pc_unwind): Declare.
1138         * dummy-frame.c (dummy_frame_pc_unwind): New function.
1139         (struct dummy_frame): Add comment mentioning that values are for
1140         previous frame.
1141         * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1142         * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1143         (generic_file_frame_chain_valid): Ditto.
1144         * stack.c (frame_info): Ditto.
1145
1146 2002-11-15  David Carlton  <[email protected]>
1147
1148         * linespec.c (locate_first_half): New function.
1149         (decode_line_1): Move code into locate_first_half.
1150
1151 2002-11-15  Andrew Cagney  <[email protected]>
1152
1153         * complaints.h: Add comment explaining how to eliminate a
1154         deprecated_complain call.
1155         * complaints.h: Fix spelling errors.
1156
1157 2002-11-15  David Carlton  <[email protected]>
1158
1159         * printcmd.c: Remove #include "disasm.h".
1160
1161 2002-11-14  Andrew Cagney  <[email protected]>
1162
1163         * frame.h: Move the most relevant interface functions to the start
1164         of the file.
1165
1166 2002-11-14  Andrew Cagney  <[email protected]>
1167
1168         * regcache.h (deprecated_registers): Rename registers.
1169         * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1170         * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1171         * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1172         * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1173         * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1174         * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1175         * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1176         * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1177         * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1178         * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1179         * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1180         * v850ice.c: Update.
1181
1182 Wed Nov 13 19:51:05 2002  Andrew Cagney  <[email protected]>
1183
1184         * utils.c (gdb_realpath): Add comment mentioning realpath with a
1185         NULL buffer.
1186
1187 2002-11-13  Andrew Cagney  <[email protected]>
1188
1189         * regcache.h (deprecated_read_register_bytes): Rename
1190         read_register_bytes.
1191         (deprecated_write_register_bytes): Rename write_register_bytes.
1192         * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1193         * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1194         * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1195         * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1196         * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1197         * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1198         * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1199         * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1200         * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1201         * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1202         * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1203         * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1204         * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1205         * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1206
1207 2002-11-13  Jim Blandy  <[email protected]>
1208
1209         * findvar.c (read_var_value): Doc fix.
1210
1211 2002-11-13  Andrew Cagney  <[email protected]>
1212
1213         * regcache.c (struct regcache): Replace passthough_p with
1214         readonly_p.
1215         (regcache_xmalloc): Initialize readonly_p.
1216         (build_regcache): Initialize readonly_p.
1217         (regcache_save): New function.
1218         (regcache_restore): New function.
1219         (regcache_cpy): Re-implement using regcache_save and
1220         regcache_restore.
1221         (regcache_raw_read): Update.
1222         (regcache_cooked_read): When a read-only cache, checked for cached
1223         pseudo register values.
1224         (regcache_raw_write): Assert that the cache is not read-only.
1225         Remove code handling a non-passthrough cache.
1226         * regcache.h (regcache_save): Declare.
1227         (regcache_restore): Declare.
1228
1229 2002-11-13  Andrew Cagney  <[email protected]>
1230
1231         * regcache.c (struct regcache_descr): Add fields
1232         sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1233         (init_legacy_regcache_descr): Compute the size of a cooked
1234         register cache and then assign that to sizeof_raw_registers.  Set
1235         sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1236         (init_legacy_regcache_descr): Ditto.
1237
1238 2002-11-13  Andrew Cagney  <[email protected]>
1239
1240         * regcache.c (register_buffer): Move to near start of file, update
1241         description.
1242         (regcache_raw_read): Use.
1243         (regcache_raw_write): Use.
1244         (struct regcache): Rename raw_registers to registers and
1245         raw_register_valid_p to register_valid_p.
1246         (regcache_xmalloc): Update.
1247         (regcache_xfree): Update.
1248         (register_buffer): Update.
1249         (regcache_cpy): Update.
1250         (regcache_cpy_no_passthrough): Update.
1251         (regcache_valid_p): Update.
1252         (deprecated_grub_regcache_for_registers): Update.
1253         (deprecated_grub_regcache_for_register_valid): Update.
1254         (set_register_cached): Update.
1255         (regcache_raw_write): Update.
1256
1257 2002-11-13  Pierre Muller  <[email protected]>
1258
1259         * p-exp.y (name_not_typename): Use copy_name to
1260         set current_type variable for fields of THIS.
1261
1262 2002-11-12  Daniel Jacobowitz  <[email protected]>
1263
1264         * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1265         * monitor.c (init_base_monitor_ops): Likewise.
1266         * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1267         * remote-array.c (init_array_ops): Likewise.
1268         * remote-e7000.c (init_e7000_ops): Likewise.
1269         * remote-es.c (init_es1800_ops): Likewise.
1270         (init_es1800_child_ops): Likewise.
1271         * remote-rdp.c (init_remote_rdp_ops): Likewise.
1272         * remote-sim.c (init_gdbsim_ops): Likewise.
1273         * remote-st.c (init_st2000_ops): Likewise.
1274         * sol-thread.c (init_sol_core_ops): Likewise.
1275         (init_sol_thread_ops): Likewise.
1276         * v850ice.c (init_850ice_ops): Likewise.
1277         * win32-nat.c (init_child_ops): Likewise.
1278         * wince.c (init_child_ops): Likewise.
1279
1280 2002-11-12  Andrew Cagney  <[email protected]>
1281
1282         * utils.c (gdb_realpath): Make rp a constant pointer.
1283
1284 2002-11-12  Andrew Cagney  <[email protected]>
1285
1286         * utils.c (gdb_realpath): Rewrite.  Try, in order: realpath() with
1287         a constant buffer; cannonicalize_file_name(); realpath() with a
1288         pathconf() defined buffer, xstrdup().
1289
1290 2002-11-12  Andrew Cagney  <[email protected]>
1291
1292         * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1293         to hang2.C; hang3.c to hang3.C.
1294
1295 2002-11-11  Elena Zannoni  <[email protected]>
1296
1297         * findvar.c (read_var_value): Reenable TLS code.
1298
1299 2002-11-11  Elena Zannoni  <[email protected]>
1300             Jim Blandy  <[email protected]>
1301         
1302         * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1303         * target.c (update_current_target): Add
1304         to_get_thread_local_address.
1305         * target.h (to_get_thread_local_address): Export.
1306         (target_get_thread_local_address): Define.
1307         (target_get_thread_local_address_p): Define.
1308         * thread-db.c: Include solib-svr4.h.
1309         (td_thr_tls_get_addr_p): Define.
1310         (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1311         (thread_db_get_thread_local_address): New function.
1312         (init_thread_db_ops): Initialize to_get_thread_local_address.
1313         * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1314         * configure: Regenerate.
1315         * config.in: Regenerate.
1316
1317 2002-11-11  David Carlton  <[email protected]>
1318
1319         * linespec.c (set_flags): New function.
1320         (decode_line_1): Move code into set_flags.
1321
1322 2002-11-11  David Carlton  <[email protected]>
1323
1324         * linespec.c (decode_line_1): Move chunks of code to separate
1325         functions.
1326         (initialize_defaults): New function.
1327         (decode_indirect): New function.
1328
1329 2002-11-11  Andrew Cagney  <[email protected]>
1330
1331         * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1332         instead of void_code_ptr.
1333         (sigtramp_saved_pc): Ditto.
1334
1335         * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1336         i386_fp_regnum_p.
1337
1338 2002-11-10  Daniel Jacobowitz  <[email protected]>
1339
1340         * gdbtypes.h (struct main_type): Move artificial flag out of
1341         loc.  New member of ``struct field'' named static_kind.  Reduce
1342         overloaded meaning of bitsize.
1343         (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1344         (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1345         (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1346
1347         * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1348         new fields.
1349         (template_to_fixed_record_type, template_to_static_fixed_type)
1350         (to_record_with_fixed_variant_part): Likewise.
1351         * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1352         * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1353         * dwarfread.c (struct_type, enum_type): Likewise.
1354         * hpread.c (hpread_read_enum_type)
1355         (hpread_read_function_type, hpread_read_doc_function_type)
1356         (hpread_read_struct_type): Likewise.
1357         * mdebugread.c (parse_symbol): Likewise.
1358
1359 2002-11-10  Andrew Cagney  <[email protected]>
1360
1361         * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1362         * stack.c (print_frame_info_base): Update.
1363         (print_frame_info_base, frame_info): Update.
1364         * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1365         (sparc_frame_saved_pc): Update.
1366         * ada-lang.c (find_printable_frame): Update.
1367         * breakpoint.c (deprecated_frame_in_dummy): Update.
1368         
1369 2002-11-09  Mark Kettenis  <[email protected]>
1370
1371         * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1372         defined.
1373         (regmap): Extend to cover all registers.
1374         (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1375         OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1376         definitions.
1377         (fetch_register, sore_register): Simplify.
1378         (old_fetch_inferior_registers, old_store_inferior_registers):
1379         Remove functions.
1380         (cannot_fetch_register, cannot_store_register): Change
1381         implementation to use regmap array to decide which registers
1382         cannot be fetched/stored.  This removes $orig_eax from the
1383         registers that cannot be fetched/stored.
1384         (fetch_inferior_registers): Call fetch_register directly instead
1385         of calling old_fetch_inferior_registers.
1386         (store_inferior_registers): Call store_register directly instead
1387         of calling old_store_inferior_registers.
1388         (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1389         (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1390         * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1391
1392 2002-11-09  Klee Dienes  <[email protected]>
1393
1394         * i387-tdep.c (i387_supply_register): When called with NULL as a
1395         buffer, mark the register as not provided (to mirror the behavior
1396         of supply_register).
1397         (i387_supply_fxsave): Ditto.
1398         (i387_supply_fsave): Ditto (inherits the behavior from
1399         i387_supply_register).
1400
1401 2002-11-09  Klee Dienes  <[email protected]>
1402
1403         * blockframe.c (sigtramp_saved_pc): Use
1404         builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1405         extracting the PC).  Use TYPE_LENGTH (builtin_type_void_code_ptr)
1406         instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1407         
1408 2002-11-09  Andrew Cagney  <[email protected]>
1409
1410         * frame.c (get_prev_frame): Test prev_p to identify a previously
1411         unwound frame.  Initialize prev_p.
1412         * frame.h (struct frame_info): Add field prev_p.  Expand prev/next
1413         comment.
1414
1415 2002-11-09  Andrew Cagney  <[email protected]>
1416
1417         * frame.c (get_prev_frame): Cleanups.  Eliminate redundant tests
1418         for a NULL NEXT_FRAME.  Simplify fromleaf initialization.  Add
1419         more comments.  Zap dead code.
1420
1421 2002-11-09  Mark Kettenis  <[email protected]>
1422
1423         * infcmd.c (print_vector_info, print_float_info): Move code that
1424         checks whether the target has any registers and whether there is a
1425         selected frame up, such that it is also used if a target provides
1426         multi-arch definitions of these functions.
1427
1428 2002-11-08  Andrew Cagney  <[email protected]>
1429
1430         * Makefile.in (DESTDIR): Define.
1431         (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1432         prefix.
1433
1434         * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1435         i386obsd-tdep.c.  Rename to "gdb.cxx", paths containing "gdb.c++".
1436
1437 2002-11-08  Andrew Cagney  <[email protected]>
1438
1439         * i386-linux-tdep.c: Include "reggroups.h".
1440         (i386_linux_register_reggroup_p): New function.
1441         (i386_linux_init_abi): Set register_reggroup_p to
1442         i386_linux_register_reggroup_p.
1443         * i386-tdep.h (i386_register_reggroup_p): Declare.
1444         * i386-tdep.c: Include "reggroups.h".
1445         (i386_init_reggroups): New function.
1446         (i386_add_reggroups): New function.
1447         (i386_register_reggroup_p): New function.
1448         (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1449         (_initialize_i386_tdep): Call i386_init_reggroups.
1450         (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1451         specific reggroups.
1452
1453 2002-11-09  Mark Kettenis  <[email protected]>
1454
1455         * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1456         request that's available in *BSD.
1457
1458         * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1459
1460         * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1461         FDOFF_REGNUM.
1462
1463 2002-11-08  Andrew Cagney  <[email protected]>
1464
1465         * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1466         * dummy-frame.c (find_dummy_frame): Rename
1467         generic_find_dummy_frame, make static.  Return the dummy frame
1468         instead of the regcache.
1469         (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1470         (cached_find_dummy_frame): New function.  Use find_dummy_frame.
1471         (dummy_frame_register_unwind): Rename
1472         generic_call_dummy_register_unwind.  Use cached_find_dummy_frame.
1473         * dummy-frame.h (dummy_frame_register_unwind): Rename
1474         generic_call_dummy_register_unwind.
1475
1476 2002-11-08  Mark Kettenis  <[email protected]>
1477
1478         * config/i386/tm-i386v42mp.h: Remove file.  Move its contents,
1479         except the inclusion of "i386/tm-i386.h", to...
1480         * config/i386/nm-i386v42mp.h: ...here.
1481         * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1482
1483 2002-11-08  Andrew Cagney  <[email protected]>
1484
1485         * Makefile.in (frame.o): Update dependencies.
1486         * blockframe.c (current_frame, frame_obstack_alloc)
1487         (frame_saved_regs_zalloc, get_current_frame)
1488         (set_current_frame, create_new_frame)
1489         (set_unwind_by_pc, get_next_frame)
1490         (flush_cached_frames, reinit_frame_cache)
1491         (frame_saved_regs_register_unwind)
1492         (deprecated_generic_get_saved_register)
1493         (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1494         (_initialize_blockframe): Move frame code from here...
1495         * frame.c: ...to here.  Include "gdb_obstack.h", "gdbcore.h",
1496         "annotate.h" and "dummy-frame.h".
1497         (_initialize_frame): New function.
1498
1499 2002-11-08  Jim Blandy  <[email protected]>
1500
1501         * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1502         when we finish a function a context.
1503         * buildsym.h (outermost_context_p): New macro.
1504         (Bug analyzed by David Edelsohn.)
1505
1506 2002-11-08  Andrew Cagney  <[email protected]>
1507
1508         * blockframe.c: Include "dummy-frame.h".
1509         (struct dummy_frame, dummy_frame_stack)
1510         (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1511         (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1512         (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1513         (generic_save_call_dummy_addr, generic_pop_current_frame)
1514         (generic_pop_dummy_frame, generic_fix_call_dummy)
1515         (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1516         dummy frame code from here...
1517         * dummy-frame.c: ...to here.  New file.
1518         * dummy-frame.h: New file.
1519         (generic_call_dummy_register_unwind): Declare.
1520         (generic_find_dummy_frame): Declare.
1521         * Makefile.in (SFILES): Add dummy-frame.c.
1522         (dummy-frame.o): Specify dependencies.
1523         (dummy_frame_h): Define.
1524         (COMMON_OBS): Add dummy-frame.o.
1525         (blockframe.o): Update dependencies.
1526
1527 2002-11-08  Jim Blandy  <[email protected]>
1528
1529         * dwarf2read.c (read_func_scope): Restore local_symbols and
1530         param_symbols after we finish the function context.  (Based on a
1531         patch from David Edelsohn.)
1532
1533 2002-11-08  David Carlton  <[email protected]>
1534
1535         * linespec.c (symbol_found): New function.
1536         (minsym_found): New function.
1537         (decode_line_1): Separate out some code into separate functions.
1538
1539 2002-11-08  Joel Brobecker  <[email protected]>
1540
1541         * i386-tdep.c (i386_frameless_signal_p): Make non static for
1542         the benefit of the interix target.
1543         * i386-tdep.h (i386_frameless_signal_p): Declare.
1544
1545 2002-11-08  Andrew Cagney  <[email protected]>
1546
1547         * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1548         declaration that snuck in from change below.
1549
1550 2002-11-06  Andrew Cagney  <[email protected]>
1551
1552         * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p.  Update
1553         all callers.
1554         (i386_fp_regnum_p): New function.  Use instead of FP_REGNUM_P.
1555         (i386_fpc_regnum_p): New function.  Use instead of FPC_REGNUM_P.
1556         (i386_sse_regnum_p): New function.  Use instead of SSE_REGNUM_P.
1557         (i386_mxcsr_regnum_p): new function.  Use instead of
1558         MXCSR_REGNUM_P.
1559         * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1560         (i386_sse_regnum_p): Declare.
1561         (i386_mxcsr_regnum_p): Declare.
1562         (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1563         (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1564         (IS_FP_REGNUM): Update definition.
1565         (IS_FPU_CTRL_REGNUM): Update definition..
1566         (IS_SSE_REGNUM): Update definition..
1567         * i386v-nat.c (register_u_addr): Update.
1568         * go32-nat.c (fetch_register): Update.
1569         (store_register): Update.
1570
1571 2002-11-07  Joel Brobecker  <[email protected]>
1572
1573         Preparation work to convert the hppa targets to multiarch partial.
1574
1575         * hppa-tdep.c: Add new functions replacing macro bodies from
1576         config/pa/tm-hppa.h. These function will be used to initialize
1577         the gdbarch structure. Import some comments from tm-hppa.h,
1578         and place them where appropriate, to avoid loosing them when
1579         we cleanup this file.
1580         (hppa_reg_struct_has_addr): New function.
1581         (hppa_inner_than): New function.
1582         (hppa_stack_align): New function.
1583         (hppa_pc_requires_run_before_use): New function.
1584         (hppa_instruction_nullified): New function.
1585         (hppa_register_byte): New function.
1586         (hppa_register_virtual_type): New function.
1587         (hppa_store_struct_return): New function.
1588         (hppa_cannot_store_register): New function.
1589         (hppa_frame_args_address): New function.
1590         (hppa_frame_locals_address): New function.
1591         (hppa_smash_text_address): New function.
1592         (hppa_coerce_float_to_double): New function. Requires the inclusion
1593         of "language.h".
1594
1595         * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1596
1597         * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1598         gdbarch-eligible macro to a call to the new associated function
1599         created in hppa-tdep.c.
1600         (INNER_THAN): Likewise.
1601         (STACK_ALIGN): Likewise.
1602         (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1603         (INSTRUCTION_NULLIFIED): Likewise.
1604         (REGISTER_BYTE): Likewise.
1605         (REGISTER_VIRTUAL_TYPE): Likewise.
1606         (STORE_STRUCT_RETURN): Likewise.
1607         (CANNOT_STORE_REGISTER): Likewise.
1608         (FRAME_ARGS_ADDRESS): Likewise.
1609         (FRAME_LOCALS_ADDRESS): Likewise.
1610         (SMASH_TEXT_ADDRESS): Likewise.
1611         (COERCE_FLOAT_TO_DOUBLE): Likewise.
1612         (ABOUT_TO_RETURN): Delete, as no longer used.
1613
1614 2002-11-07  Fernando Nasser  <[email protected]>
1615
1616         * printcmd.c (disassemble_command): Remove obsolete function.
1617         (_initialize_printcmd): Do not create disassemble command here.
1618         * cli/cli-cmds.c (disassemble_command): New function.  Implements
1619         disassemble command.
1620         (init_cli_cmds): Create disassemble command here instead.
1621
1622 2002-11-07  Andrew Cagney  <[email protected]>
1623
1624         * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1625
1626 2002-11-07  Andrew Cagney  <[email protected]>
1627
1628         * regcache.h (regcache_cooked_read_using_offset_hack)
1629         (regcache_cooked_write_using_offset_hack): Delete declarations.
1630         (register_changed): Delete declaration.
1631         * regcache.c (regcache_cooked_read_using_offset_hack)
1632         (regcache_cooked_write_using_offset_hack): Delete functions.
1633         (cooked_xfer_using_offset_hack): Delete function.
1634         (register_changed): Delete function.
1635
1636 2002-11-07  Jim Blandy  <[email protected]>
1637
1638         * macroscope.c: #include "complaints.h".
1639         (sal_macro_scope): Cope with filenames that appear in the symtabs,
1640         but not in the macro table.
1641         * Makefile.in (macroscope.o): Record dependency.
1642
1643 2002-11-07  Joel Brobecker  <[email protected]>
1644
1645         * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1646
1647 2002-11-07  Andrew Cagney  <[email protected]>
1648
1649         * regcache.c (deprecated_registers_fetched): Update.
1650         * regcache.h (deprecated_registers_fetched): Rename
1651         registers_fetched.
1652         * remote-vxsparc.c (vx_read_register): Update.
1653         * remote-vxmips.c (vx_read_register): Update.
1654         * remote-vx68.c (vx_read_register): Update.
1655         * irix5-nat.c (fetch_core_registers): Update.
1656         * mipsm3-nat.c (fetch_inferior_registers): Update.
1657         * sun3-nat.c (fetch_inferior_registers): Update.
1658         * symm-nat.c (fetch_inferior_registers): Update.
1659         * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1660         (fetch_core_registers): Update.
1661         (fetch_kcore_registers): Update.
1662         * mips-nat.c (fetch_inferior_registers): Update.
1663         * corelow.c (get_core_registers): Update.
1664         * a68v-nat.c (fetch_inferior_registers): Update.
1665
1666 2002-11-06  Joel Brobecker  <[email protected]>
1667
1668         Put in place the framework necessary for multiarching the hppa targets.
1669         * hppa-tdep.c (hppa_gdbarch_init): New function.
1670         (hppa_dump_tdep): New function.
1671         (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1672         tdep structure dumper.
1673         * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1674         until the multi-arching conversion has partially been completed.
1675
1676 2002-11-06  Andrew Cagney  <[email protected]>
1677
1678         * valops.c (value_assign): Merge lval_register case into
1679         lval_reg_frame_relative.  Use frame_register and
1680         regcache_cooked_write instead of get_saved_register and
1681         write_register_bytes.  After flushing the register cache, try to
1682         re-select the selected frame.
1683
1684 2002-11-06  Andrew Cagney  <[email protected]>
1685
1686         * regcache.h (deprecated_register_valid): Rename register_valid.
1687         * regcache.c: Update.
1688         * ia64-aix-nat.c: Update.
1689         * i386gnu-nat.c: Update.
1690         * alpha-nat.c: Update.
1691         * sparc-nat.c: Update.
1692         * lynx-nat.c: Update.
1693         * remote-mips.c: Update.
1694
1695 2002-11-06  Joel Brobecker  <[email protected]>
1696
1697         * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1698         to end of file, to be more consistent with the pratice followed
1699         by other targets.
1700
1701 2002-11-06  Andrew Cagney  <[email protected]>
1702
1703         * infcmd.c: Include "reggroups.h" and <ctype.h>.
1704         (print_float_info): Print registers in float_reggroup.
1705         (print_vector_info): Print registers in vector_reggroup.
1706         (default_print_registers_info): When all, print registers in
1707         all_reggroup.  Otherwize, print registers in general_reggroup.
1708         (registers_info): Rewrite.  Add support for register groups.
1709         Eliminate a goto.
1710
1711 2002-11-06  Elena Zannoni  <[email protected]>
1712
1713         * symtab.c (methods_info): Delete. It has been ifdeffed out for
1714         ages.
1715         (symtab_symbol_info): Remove eons old ifdeffed out code.
1716         (_initialize_symtab): Remove prehistoric disabled 'info methods'
1717         command.
1718
1719 2002-11-06  Theodore A. Roth  <[email protected]>
1720
1721         * c-exp.y: Add missing semi-colons.
1722         * f-exp.y: Add missing semi-colons.
1723         * m2-exp.y: Add missing semi-colons.
1724         * p-exp.y: Add missing semi-colons.
1725         Add empty action to start rule to avoid a type clash error when
1726         building with bison >= 1.50.
1727
1728 2002-11-06  Jim Blandy  <[email protected]>
1729
1730         * macrotab.h (struct macro_source_file): Doc fix.
1731
1732 2002-11-05  Jeff Johnston  <[email protected]>
1733
1734         * varobj.c (child_exists, cplus_number_of_children): Change
1735         STREQ macro references to strcmp.
1736         (cplus_name_of_child): Change code to handle the fact that
1737         fields are not necessarily contiguous with regards to their 
1738         access control. This is a fix for PR gdb/792.
1739
1740 2002-11-05  Andrew Cagney  <[email protected]>
1741
1742         * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1743         * gdbarch.h, gdbarch.c: Regnerate.
1744         * frame.h (frame_register): Declare.
1745         * frame.c (frame_register): New function.
1746         (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1747         GET_SAVED_REGISTER, otherwize call
1748         generic_unwind_get_saved_register.
1749         (frame_register_read): Use frame_register instead of
1750         get_saved_register.
1751
1752 2002-11-05  Elena Zannoni  <[email protected]>
1753         
1754         From Jim Ingham  <[email protected]>:
1755         * event-top.c (gdb_disable_readline): New function.
1756         (_initialize_event_loop): Move comment.
1757
1758 2002-11-05  Elena Zannoni  <[email protected]>
1759
1760         * event-loop.c (start_event_loop): Add comment.
1761         Update copyright.
1762
1763 2002-11-05  Andrew Cagney  <[email protected]>
1764
1765         * infcmd.c (default_print_registers_info): Do not call
1766         PRINT_REGISTER_HOOK.
1767
1768 2002-11-05  Andrew Cagney  <[email protected]>
1769
1770         * sparc-tdep.c (sparc_print_register_hook): Make static.
1771         (sparc_print_registers_info): New function.
1772         (sparc_do_registers_info): New function.
1773         (sparclet_print_registers_info): New function.
1774         (sparclet_do_registers_info): New function.
1775         (do_sparc_print_registers_info): New function.
1776         (sparc_print_registers): New static function, clone of infcmd.c's
1777         default_print_registers_info.
1778         * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1779         (sparclet_do_registers_info): Declare.
1780         (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1781         * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1782         Re-define.
1783         (sparc_do_registers_info): Declare.
1784         (PRINT_REGISTER_HOOK): Delete macro.
1785         (sparc_print_register_hook): Delete declaration.
1786
1787 2002-11-05  David Carlton  <[email protected]>
1788
1789         * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1790         functions.
1791         (lookup_symbol_aux_local): New function.
1792         (lookup_symbol_aux_symtabs): New function.
1793         (lookup_symbol_aux_psymtabs): New function.
1794
1795 2002-11-05  David Carlton  <[email protected]>
1796
1797         * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1798         previous values of 'objfile' and 'block'.
1799
1800 2002-11-05  Pierre Muller  <[email protected]>
1801
1802         * values.c (value_change_enclosing_type): Set 
1803         enclosing_type field correctly also for the case where 
1804         more memory needs to be allocated.
1805
1806 2002-11-03  Mark Kettenis  <[email protected]>
1807
1808         * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1809         of puts_filtered.
1810
1811         * i387-tdep.c (i387_print_float_info): Replace calls to
1812         register_read and deprecated_read_register_gen with calls to
1813         frame_register_read, and make the necessary adjustments to the
1814         surrounding code.
1815
1816 2002-11-02  Andrew Cagney  <[email protected]>
1817
1818         * gdbarch.sh (register_reggroup_p): Allow default value.
1819         * gdbarch.h, gdbarch.c: Regenerate.
1820
1821 2002-11-02  Andrew Cagney  <[email protected]>
1822
1823         * regcache.h: Add coment indicating replacements for deprecated
1824         functions.
1825
1826 2002-11-02  Andrew Cagney  <[email protected]>
1827
1828         * reggroups.h, reggroups.c: New files.
1829         * regcache.c: Include "reggroups.h".
1830         (enum regcache_dump_what): Add `regcache_dump_groups'.
1831         (regcache_dump): Contract size of the "Type" column.  When
1832         specified, dump the register's groups.
1833         (maintenance_print_register_groups): New function.
1834         (_initialize_regcache): Add command `maint print register-groups'.
1835         * Makefile.in (COMMON_OBS): Add reggroups.o
1836         (SFILES): Add reggroups.c.
1837         (reggroups_h): Define.
1838         (regcache.o, gdbarch.o): Update dependencies.
1839         (reggroups.o): Specify dependencies.
1840         * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1841         Add opaque declaration for `struct reggroup' in generated .h file.
1842         Include "reggroups.h" in generated .c file.
1843         gdbarch.h, gdbarch.c: Re-generate.
1844
1845 2002-11-02  Andrew Cagney  <[email protected]>
1846
1847         * regcache.h (deprecated_read_register_gen): Rename
1848         read_register_gen.
1849         (deprecated_write_register_gen): Rename write_register_gen.
1850         * i387-tdep.c: Update.
1851         * x86-64-linux-nat.c: Update
1852         * wince.c: Update.
1853         * thread-db.c: Update.
1854         * win32-nat.c: Update.
1855         * mips-tdep.c: Update.
1856         * d10v-tdep.c: Update.
1857         * cris-tdep.c: Update.
1858         * remote-sim.c: Update.
1859         * remote-rdi.c: Update.
1860         * remote-rdp.c: Update.
1861         * frame.c: Update.
1862         * target.c: Update.
1863         * blockframe.c: Update.
1864         * x86-64-tdep.c: Update.
1865         * xstormy16-tdep.c: Update.
1866         * sh-tdep.c: Update.
1867         * s390-tdep.c: Update.
1868         * rs6000-tdep.c: Update.
1869         * sparc-tdep.c: Update.
1870         * i386-tdep.c: Update.
1871         * dwarf2cfi.c: Update.
1872         * regcache.c: Update.
1873
1874 2002-11-01  Joel Brobecker  <[email protected]>
1875
1876         New interix-specific files:
1877         * config/i386/nm-interix.h: New file.
1878         * config/i386/interix.mh: New file.
1879         * config/i386/interix.mt: New file.
1880         * i386-interix-nat.c: New file.
1881         * i386-interix-tdep.c: New file.
1882
1883 2002-11-01  Andrew Cagney  <[email protected]>
1884
1885         * frame.h (deprecated_generic_get_saved_register): Rename
1886         generic_get_saved_register.
1887         * blockframe.c (deprecated_generic_get_saved_register): Update.
1888         * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1889         (xstormy16_frame_saved_register): Update.
1890         * sh-tdep.c (sh_gdbarch_init): Update.
1891         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1892         * ia64-tdep.c (ia64_get_saved_register): Update.
1893         * cris-tdep.c (cris_gdbarch_init): Update.
1894         * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1895         * arm-tdep.c (arm_gdbarch_init): Update.
1896
1897 2002-10-31  Daniel Jacobowitz  <[email protected]>
1898
1899         * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1900
1901 2002-10-31  Daniel Jacobowitz  <[email protected]>
1902
1903         * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1904         trampolines in sigaction.
1905
1906 2002-10-31  Andrew Cagney  <[email protected]>
1907
1908         * h8300-tdep.c: Include "gdb_assert.h".
1909         (h8300_print_register): Add gdbarch, file and frame parameters.
1910         Use frame_read_unsigned_register to read the register's value.
1911         Use fprintf_filtered to display output.
1912         (h8300_print_registers_info): Replace h8300_do_registers_info.
1913         (h8300_gdbarch_init): Set print_registers_info.
1914
1915 2002-10-31  Andrew Cagney  <[email protected]>
1916
1917         * frame.c (frame_read_unsigned_register): New function.
1918         (frame_read_signed_register): New function.
1919         * frame.h (frame_read_unsigned_register): Declare.
1920         (frame_read_signed_register): Declare.
1921
1922 2002-10-31  Andrew Cagney  <[email protected]>
1923
1924         * h8500-tdep.c (h8500_print_registers_info): New static function,
1925         clone of infcmd.c's default_print_registers_info.
1926         (h8500_do_registers_info): New funtion.
1927         (h8500_print_register_hook): Rename print_register_hook, make
1928         static.
1929
1930         * config/h8500/tm-h8500.h: Update copyright.
1931         (DEPRECATED_DO_REGISTERS_INFO): Define.
1932         (h8500_do_registers_info: Declare.
1933         (PRINT_REGISTER_HOOK): Delete macro.
1934         (print_register_hook): Delete function.
1935
1936 2002-10-31  Andrew Cagney  <[email protected]>
1937
1938         * z8k-tdep.c (z8k_print_register_hook): Make static.
1939         (z8k_print_registers_info): New static function, clone of
1940         infcmd.c's default_print_registers_info.
1941         (z8k_do_registers_info): New function.  Wrap
1942         z8k_print_registers_info.
1943         * config/z8k/tm-z8k.h: Update copyright.
1944         (PRINT_REGISTER_HOOK): Delete macro.
1945         (z8k_print_register_hook): Delete declaration.
1946         (DEPRECATED_DO_REGISTERS_INFO): Define.
1947         (z8k_do_registers_info): Declare.
1948
1949 2002-10-30  Joel Brobecker  <[email protected]>
1950
1951         * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1952         as this is already provided by value.h, and was actually causing
1953         a compilation error because of a conflict in parameter type
1954         declaration due to a missing const keyword.
1955         (low_text_segment_addres): Fix a compilation warning.
1956
1957 2002-10-29  Daniel Jacobowitz  <[email protected]>
1958
1959         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1960         registers without a name.
1961         (mips_linux_cannot_store_register): Don't store registers without
1962         a name.
1963
1964 2002-10-28  David Carlton  <[email protected]>
1965
1966         * symtab.c (find_addr_symbol): Delete.  (It was already commented
1967         out.)
1968         * symtab.h: Delete prototype for find_addr_symbol.
1969
1970 2002-10-26  Andrew Cagney  <[email protected]>
1971
1972         * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1973         DO_REGISTERS_INFO.
1974         gdbarch.h, gdbarch.c: Re-generate.
1975         * infcmd.c (default_print_registers_info): Update reference.
1976         * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1977         (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1978         * sh-tdep.c (sh_gdbarch_init): Ditto.
1979         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1980         * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1981
1982 2002-10-26  Mark Kettenis  <[email protected]>
1983
1984         * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1985         cfi_init_extra_frame_info.
1986         * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1987         * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1988
1989         * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1990         target where necessary.  Add more comments and remove the ones
1991         that don't provide any useful information.
1992
1993         * i386-tdep.c (i386_frame_saved_pc): Replace call to
1994         deprecated_read_register_dummy with
1995         frame_unwind_unsigned_register.
1996
1997         * i386-tdep.c (i386_extract_struct_value_address): Use
1998         regcache_raw_read_unsigned instead of
1999         regcache_cooked_read_unsigned since we know that the register
2000         we're reading isn't a pseudo register.  Rename variable 'val' into
2001         the more descriptive 'addr'.
2002
2003         * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2004         (x86_64_push_return_address): Add comment.
2005         (x86_64_pop_frame): Make static.
2006         (examine_argument): Clarify comment.
2007         (x86_64_skip_prologue): Make prolog_expact variable static.
2008
2009         * dwarf2cfi.c: Fix some formatting problems.
2010         (context_cpy, read_encoded_pointer): Clarify comments.
2011
2012         * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2013         (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2014         i386 target back into x86_64_gdbarch_init.  Add some comments and
2015         remove meaningless ones.
2016
2017 2002-10-25  Andrew Cagney  <[email protected]>
2018
2019         * complaints.h (struct deprecated_complaint): Rename `struct
2020         complaint'.
2021         * complaints.c (complain): Update.
2022         * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2023         incorrect comment indicating that "symfile.h" was being included
2024         for the `struct complaint' definition.
2025         * remote-vx.c: Update.
2026         * objc-lang.c: Update.
2027         * xcoffread.c: Update.
2028         * hpread.c: Update.
2029         * mdebugread.c: Update.
2030         * stabsread.c: Update.
2031         * dwarf2read.c: Update.
2032         * dwarfread.c: Update.
2033         * elfread.c: Update.
2034         * coffread.c: Update.
2035         * stabsread.h: Update.
2036         * dbxread.c: Update.
2037         * buildsym.c: Update.
2038         * gdbtypes.c: Update.
2039         * macrotab.c: Update.
2040
2041 2002-10-25  Mark Kettenis  <[email protected]>
2042
2043         * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2044         the version in i386-tdep.c.  Move set_gdbarch_* calls out into...
2045         (x86_64_init_abi): ...new function.
2046
2047         * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2048         * i386v-nat.c: Include "i386-tdep.h".
2049
2050 2002-10-25  Andrew Cagney  <[email protected]>
2051
2052         * gdbtypes.c (address_space_name_to_int): Update.
2053         (address_space_int_to_name): Update.
2054         * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2055         multi-arch predicate.
2056         (address_class_name_to_type_flags): Ditto.
2057         * gdbarch.h, gdbarch.c: Re-generate.
2058         
2059         * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2060
2061 2002-10-24  Martin M. Hunt  <[email protected]>
2062
2063         * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2064
2065 2002-10-24  Elena Zannoni  <[email protected]>
2066
2067         * symtab.h (INIT_SAL): Delete macro.
2068         (init_sal): Export.
2069         * symtab.c (init_sal): New function.
2070
2071         * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2072         to init_sal function call.
2073         (find_sal_from_funcs_and_line): Ditto.
2074         (all_sals_for_line): Ditto. 
2075         * breakpoint.c (create_internal_breakpoint): Ditto. 
2076         (create_fork_vfork_event_catchpoint): Ditto. 
2077         (create_exec_event_catchpoint): Ditto. 
2078         (parse_breakpoint_sals): Ditto. 
2079         (watch_command_1): Ditto. 
2080         (handle_gnu_4_16_catch_command): Ditto.
2081         (clear_command): Ditto. 
2082         * hppa-tdep.c (child_enable_exception_callback): Ditto. 
2083         * infcmd.c (run_stack_dummy): Ditto. 
2084         * infrun.c (process_event_stop_test): Ditto.
2085         (check_sigtramp2): Ditto.
2086         (step_over_function): Ditto. 
2087         * linespec.c (decode_line_2): Ditto. 
2088         (decode_line_1): Ditto. 
2089         * source.c (line_info): Ditto. 
2090         * symtab.c (find_pc_sect_line): Ditto.
2091
2092 2002-10-24  Michal Ludvig  <[email protected]>
2093
2094         * dwarf2cfi.c (struct context)
2095         (struct context_reg): Moved to dwarf2cfi.h
2096         (context_alloc, frame_state_alloc, context_cpy):
2097         Made extern instead of static, removed prototypes.
2098         * dwarf2cfi.h (struct context)
2099         (struct context_reg): New, moved from dwarf2cfi.c
2100         (context_alloc, frame_state_alloc, context_cpy):
2101         New prototypes.
2102         * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2103         Changed from static to extern.
2104         (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2105         (LINUX_SIGCONTEXT_FP_OFFSET)
2106         (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2107         (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2108         (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2109         * x86-64-tdep.c (x86_64_gdbarch_init): Several
2110         set_gdbarch_*() calls now use x86-64 specific functions 
2111         instead of DWARF2 CFI ones.
2112         * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2113         (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2114         (x86_64_init_extra_frame_info): New prototypes.
2115         
2116 2002-10-23  David Carlton  <[email protected]>
2117
2118         * linespec.c: #include "parser-defs.h".
2119         Delete prototype for find_template_name_end.
2120         * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2121
2122 2002-10-23  Jeff Johnston  <[email protected]>
2123
2124         * NEWS: add recent mi fixes.
2125         * varobj.c (struct varobj): Add new "updated" flag.
2126         (new_variable): Default "updated" flag to 0.
2127         (varobj_set_value): Set "updated" flag to 1 if value
2128         changes.
2129         (varobj_update): Check varobj "updated" flag before
2130         comparing old and refreshed values.  Fix for
2131         PR gdb/702.
2132
2133 2002-10-23  David Carlton  <[email protected]>
2134
2135         * parse.c (parse_exp_1): Use BLOCK_START.
2136         * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2137         SYMBOL_BLOCK_VALUE.
2138         * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2139
2140 2002-10-23  David Carlton  <[email protected]>
2141
2142         * symtab.c: Delete cplusplus_hint.
2143         Delete prototype for find_template_name_end.
2144
2145 2002-10-23  Elena Zannoni  <[email protected]>
2146
2147         * symtab.h: Update comment.
2148
2149 2002-10-23  Michael Snyder  <[email protected]>
2150
2151         * printcmd.c (address_info): Restore quotes in output.
2152         * valops.c (value_of_local): Restore quotes in error message.
2153
2154 2002-10-23  Elena Zannoni  <[email protected]>
2155
2156         * symtab.c (symbol_demangled_name): New function.
2157         * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2158         turning most of it into a function.
2159         (symbol_demangled_name): Export.
2160
2161 2002-10-23  Michael Snyder  <[email protected]>
2162
2163         * valops.c (value_of_local): Restore quotes in error message.
2164
2165 2002-10-23  Elena Zannoni  <[email protected]>
2166
2167         * symtab.c (symbol_init_language_specific): New function.
2168         * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2169         turning most of it into a function.
2170         (symbol_init_language_specific): Export.
2171
2172 2002-10-23  David Carlton  <[email protected]>
2173
2174         * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2175         (dwarf_attr_name): Ditto.
2176         (dwarf_type_encoding_name): Ditto.
2177         (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2178         (process_die): Handle DW_TAG_namespace,
2179         DW_TAG_imported_declaration, DW_TAG_imported_module.
2180         (read_namespace): New function.
2181
2182 2002-10-22  Joel Brobecker  <[email protected]>
2183
2184         * configure.in: Define NEW_PROC_API on Interix too.
2185         * configure: Regenerate.
2186
2187 2002-10-21  Joel Brobecker  <[email protected]>
2188
2189         * configure: Regenerate using the proper version of autoconf.
2190
2191 2002-10-21  Elena Zannoni  <[email protected]>
2192
2193         * findvar.c (read_var_value): Temporarily disable TLS code, until
2194         complete TLS support is added.
2195
2196 2002-10-21  Jim Blandy  <[email protected]>
2197             Elena Zannoni  <[email protected]>
2198
2199         * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2200         for thread local storage locations.
2201         (struct symbol): Add objfile field.
2202         (SYMBOL_OBJFILE): Define.
2203         * dwarf2read.c (is_thread_local): New static variable.
2204         (new_symbol): If variable is in thread local fill in address class
2205         and objfile appropriately.
2206         (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2207         stack operation.
2208         * printcmd.c (address_info): Print the information for thread
2209         local storage variable.
2210         * findvar.c (read_var_value): In case of thread local variable,
2211         defer to the target vector code to compute address.
2212
2213 2002-10-21  Elena Zannoni  <[email protected]>
2214
2215         * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2216         * solib-svr4.h (svr4_fetch_objfile_link_map): Export.   
2217
2218 2002-10-21  Elena Zannoni  <[email protected]>
2219
2220         * symtab.h (address_class):  Rename
2221         LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2222         * hpread.c (hpread_process_one_debug_symbol): Ditto.
2223         * printcmd.c (address_info): Ditto.
2224         * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2225
2226 2002-10-20  Mark Kettenis  <[email protected]>
2227
2228         * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2229         DBREG_DRX macro to acces debug registers.
2230
2231         * Makefile.in (i386obsd-tdep.o): New target.
2232
2233         * solib-sunos.c: Include "bcache.h" and "regcache.h".
2234         * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2235
2236         * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2237         * config/i386/obsd.mt: New file.
2238         * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2239         i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2240         * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2241         i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2242         i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2243         * i386obsd-tdep.c: New file.
2244
2245 2002-10-19  Adam Fedor  <[email protected]>
2246
2247         * objc-exp.y (name_not_typename): Fix invalid comment.  
2248
2249 2002-10-20  Mark Kettenis  <[email protected]>
2250
2251         * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2252         to allocate partial syms and macro byte caches.
2253
2254 2002-10-18  David Carlton  <[email protected]>
2255
2256         * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2257
2258 2002-10-18  Adam Fedor  <[email protected]>
2259
2260         * stabsread.c (find_name_end): New function.
2261         (define_symbol): Use it.
2262
2263 2002-10-18  Daniel Jacobowitz  <[email protected]>
2264
2265         * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2266         * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2267         * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2268         * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2269
2270 2002-10-17  David Carlton  <[email protected]>
2271
2272         * symfile.h: Add opaque declaration for struct obstack.
2273         Declare obsavestring to take a const char *.
2274         * symfile.c (obsavestring): Make first argument a const char *.
2275
2276 2002-10-16  Adam Fedor  <[email protected]>
2277
2278         * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2279         names when matching breakpoints in current file.
2280
2281 2002-10-16  Kevin Buettner  <[email protected]>
2282
2283         * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2284         (read_tag_pointer_type): Add address class support.
2285         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2286         (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2287         New methods.
2288         * gdbarch.h, gdbarch.c: Regenerate.
2289         * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2290         (make_type_with_address_space, recursive_type_dump): Add address
2291         class support.
2292         * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2293         (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2294         (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2295
2296 2002-10-16  Klee Dienes  <[email protected]>
2297
2298         * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2299         to get the last character of a char[] buffer, not
2300         name[sizeof(vptr_name)-1].
2301
2302 2002-10-14  Adam Fedor  <[email protected]>
2303
2304         * symtab.h: New objc_specific struct.
2305         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2306         (SYMBOL_DEMANGLED_NAME): Likewise.
2307
2308 2002-10-14  Adam Fedor  <[email protected]>
2309
2310         * symfile.c (init_filename_language_table): Add ObjC file extension.
2311
2312 2002-10-14  Adam Fedor  <[email protected]>
2313
2314         * utils.c (puts_filtered_tabular): New function.
2315         (fprintf_symbol_filtered): Get ObjC demangled name.
2316         * defs.h (puts_filtered_tabular): Declared.
2317
2318 2002-10-14  Kevin Buettner  <[email protected]>
2319
2320         * c-lang.h (c_type_print_varspec_prefix): Delete.
2321         * c-typeprint.c (c_type_print_varspec_prefix): Make static.  Add
2322         ``need_post_space'' parameter.  Adjust all callers.
2323
2324 2002-10-14  Daniel Jacobowitz  <[email protected]>  
2325  
2326         * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2327         * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2328         * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2329         * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2330
2331 2002-10-13  Adam Fedor  <[email protected]>
2332
2333         * source.c (print_source_lines): Update comments.
2334
2335 2002-10-13  Adam Fedor  <[email protected]>
2336
2337         * valops.c (value_of_local): New function.
2338         (value_of_this): Use it.
2339         * value.h (value_of_local): Declared.
2340
2341 2002-10-13  Adam Fedor  <[email protected]>
2342
2343         * parse.c: (length_of_subexp, prefixify_subexp): Handle
2344         OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2345
2346 2002-10-12  Adam Fedor  <[email protected]>
2347
2348         * language.c (binop_result_type): Add language_objc to case.
2349         (integral_type): Likewise.
2350         (character_type): Likewise.
2351         (string_type): Likewise.
2352         (boolean_type): Likewise.
2353         (structured_type): Likewise.
2354         (binop_type_check): Likewise.
2355
2356 2002-10-11  Adam Fedor  <[email protected]>
2357
2358         * printcmd.c (address_info): Print 'self' for ObjC.
2359
2360 2002-10-11  Adam Fedor  <[email protected]>
2361
2362         * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2363         OP_SELF.
2364
2365 2002-10-11  Adam Fedor  <[email protected]>
2366
2367         * language.h (CAST_IS_CONVERSION): Add language_objc.
2368
2369 2002-10-11  Adam Fedor  <[email protected]>
2370
2371         * defs.h (enum language): Add language_objc.
2372
2373 2002-10-11  Klee Dienes  <[email protected]>
2374
2375         * corefile.c (read_memory_typed_address): New function.
2376         * gdbcore.h (read_memory_typed_address): Add prototype.
2377         * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2378         to read a value destined for a CORE_ADDR, not read_memory_integer.
2379         * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2380         (f77_get_dynamic_lowerbound): Ditto.
2381
2382 2002-10-11  Martin M. Hunt  <[email protected]>
2383
2384         * utils.c (string_to_core_addr): After turning string into
2385         a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2386         which will do necessary sign-extension, etc.
2387
2388 2002-10-11  Daniel Jacobowitz  <[email protected]>
2389
2390         * c-exp.y (THIS): Delete token and grammar rule.
2391         (yylex): Don't return THIS.
2392         * cp-valprint.c (vtbl_ptr_name_old): Delete.
2393         (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2394         * demangle.c (cplus_markers): Update comment.  Put '$'
2395         first.  Remove CPLUS_MARKER.
2396         (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2397         * jv-exp.y (THIS): Delete token and grammar rule.
2398         (yylex): Don't return THIS.
2399         * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2400         * objc-exp.y (THIS): Delete token and grammar rule.
2401         (yylex): Don't return THIS.
2402         * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2403         * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2404         (read_member_functions): Likewise for opname.
2405         (read_tilde_fields): Use is_cplus_marker.
2406
2407         * defs.h (CPLUS_MARKER): Don't define.
2408         * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2409         * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2410         * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2411         * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2412         * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2413
2414         * config/i386/tm-i386v4.h: Delete file.
2415         * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2416         * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2417         * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2418         * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2419         * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2420         * config/i386/i386sco5.mt (TM_FILE): Likewise.
2421         * config/i386/i386v4.mt (TM_FILE): Likewise.
2422         * config/i386/ncr3000.mt (TM_FILE): Likewise.
2423
2424 2002-10-10  Marko Mlinar  <[email protected]>
2425
2426         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2427         accidentially not commited 2002-10-09
2428         * gdbarch.h, gdbarch.c: Re-generate.
2429
2430 2002-10-09  Marko Mlinar  <[email protected]>
2431
2432         * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2433         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2434         * gdbarch.h, gdbarch.c: Re-generate.
2435
2436 2002-10-08  Petr Sorfa <[email protected]>
2437
2438         Revised and re-submitted by John Wolfe <[email protected]>
2439
2440         Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2441         so we can work on more than one compilation unit at a time.  This
2442         helps prepare GDB to handle inter-CU die references.
2443         * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2444         the code to be defined before struct comp_unit_head.
2445         (comp_unit_head): Added new members - offset, cu_head,
2446         begin_die, next and dwarf2_abbrevs.
2447         (dwarf2_abbrevs): Removed single static var; now member of
2448         struct comp_unit_head.
2449         dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2450         members.
2451         (psymtab_to_symtab_1): Changed to work with the new
2452         struct comp_unit_head.
2453         (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2454         constructs the dwarf2_abbrevs[] inside the cu_header.
2455         (dwarf2_empty_abbrev_table): Now expects a ptr to a
2456         dwarf2_abbrev table to clean up.
2457         (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2458         handling of dwarf2_abbrevs inside the cu_header.
2459         (read_partial_die): Now supports the call to the new
2460         dwarf2_lookup_abbrev.
2461         (read_full_die): Now supports the call to the new
2462         dwarf2_lookup_abbrev.
2463
2464 2002-10-06  Christopher Faylor  <[email protected]>
2465
2466         * Makefile.in (install-gdbtk): Add missing continuation backslash to
2467         insure that shell variables, such as "transformed_name" are propagated
2468         to later shell statements in rule.
2469
2470 2002-10-06  Mark Kettenis  <[email protected]>
2471
2472         * config/i386/nm-i386sco.h: Add protection against
2473         multiple-inclusion.  Include "i386/nm-i386v.h".
2474         (REGISTER_U_ADDR): Remove define.
2475         (i386_register_u_addr): Remove prototype.
2476
2477 2002-10-04  Michael Snyder  <[email protected]>
2478
2479         * m32r-stub.c (handle_exception): Make sure exception is "trap"
2480         before treating it as a single-step event.
2481
2482 2002-10-03  Adam Fedor  <[email protected]>
2483
2484         * objc-lang.c: ARI fixes.  Change string.h to gdb_string.h.
2485         (objc_demangle): Remove assignment in if statements, Replace
2486         free with xfree.
2487         (add_msglist): Likewise.
2488         (end_msglist): Likewise.
2489         (complare_selectors): Likewise.
2490         (selectors_info): Likewise.
2491         (compare_classes): Likewise.
2492         (classes_info): Likewise.
2493         (print_object_command): Likewise.
2494         (find_objc_msgcall_submethod): Replace PTR with void *.
2495         * objc-lang.h: Remove check for __STDC__.
2496
2497 2002-10-03  Jeff Johnston  <[email protected]>
2498
2499         * ui-out.h (ui_out_field_fmt_int): New prototype.
2500         * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2501         of field width and alignment.
2502         * stack.c (print_frame_info_base): When printing frame level, use
2503         ui_out_field_fmt_int with a width of 2 and left alignment.  Fix for
2504         PR gdb/192
2505
2506 2002-10-03  Jeff Johnston  <[email protected]>
2507
2508         * MAINTAINERS: Add self to Write After Approval list.
2509
2510 2002-10-02  Elena Zannoni  <[email protected]>
2511
2512         * infcmd.c (interrupt_target_command_wrapper): Delete.
2513         (interrupt_target_command): Make non static.
2514         (nofp_registers_info): Make static.
2515         * stack.c (return_command_wrapper): Delete.
2516         (return_command): Make non static.
2517
2518 2002-10-02  Elena Zannoni  <[email protected]>
2519
2520         * event-top.c (gdb_setup_readline): New function. Code moved from
2521         _initialize_event_loop().
2522         (_initialize_event_loop): Call gdb_setup_readline().
2523
2524 2002-10-02  Andrew Cagney  <[email protected]>
2525
2526         * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2527         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2528         * gdbarch.h, gdbarch.c: Re-generate.
2529
2530 2002-10-02  Daniel Jacobowitz  <[email protected]>
2531
2532         Fix PR gdb/778
2533         * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2534         before recursing.
2535         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2536         of fill_in_vptr_fieldno.
2537
2538 2002-10-02  Elena Zannoni  <[email protected]>
2539
2540         * inferior.h (registers_info, stepi_command, nexti_command,
2541         continue_command, interrupt_target_command): Export from infcmd.c.
2542         * frame.h (args_info, selected_frame_level_changed_hook,
2543         return_command): Export from stack.c.
2544         * v850ice.c (stepi_command, nexti_command, continue_command): use
2545         prototypes from inferior.h.
2546         * tracepoint.c (registers_info, args_info, locals_info): Use
2547         prototypes from frame.h and inferior.h.
2548         * Makefile.in (mi-main.o): Add dependency on frame.h.
2549
2550 2002-10-02  Andrew Cagney  <[email protected]>
2551
2552         * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2553         value in register 3 adjusted by ppc_gp0_regnum.
2554
2555         * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2556
2557 2002-10-02  Marko Mlinar <[email protected]>
2558
2559         * MAINTAINERS: Add myself to the Write After Approval list.
2560
2561 2002-10-01  Alexandre Oliva  <[email protected]>
2562
2563         * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2564         of the section for the N64 ABI, fixed.
2565
2566         * config/mips/tm-irix6.h: Include solib.h.
2567
2568 2002-10-01  Elena Zannoni  <[email protected]>
2569
2570         * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2571         GNU operators.
2572
2573 2002-10-01  Andrew Cagney  <[email protected]>
2574
2575         * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2576         and that "mi0" syntax has been removed.
2577
2578 2002-09-30  David Carlton  <[email protected]>
2579
2580         * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2581         * ppc-sysv-tdep.c: #include "gdb_string.h".
2582         * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2583         pacify GCC.
2584
2585 2002-10-01  Andrew Cagney  <[email protected]>
2586
2587         * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2588         "vrsave"'s register number.
2589
2590 2002-09-30  Andrew Cagney  <[email protected]>
2591
2592         * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2593         use frame_unwind_signed_register to obtain the PC.
2594         (mips_frame_chain): Handle a generic dummy frame.
2595         (mips_init_extra_frame_info): When a generic dummy frame, don't
2596         re-compute the frame base.
2597         (mips_pop_frame): Handle generic dummy frames.
2598         (mips_gdbarch_init): When generic dummy frames, set
2599         use_generic_dummy_frames, push_dummy_frame to
2600         generic_push_dummy_frame, pc_in_call_dummy to
2601         generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2602         generic_save_dummy_frame_tos.
2603
2604 2002-09-30  Andrew Cagney  <[email protected]>
2605
2606         * blockframe.c (generic_find_dummy_frame): Rewrite.  Only test
2607         against TOP when TOP was explictly set.
2608         (generic_push_dummy_frame): Set TOP to zero.
2609
2610 2002-09-30  Elena Zannoni  <[email protected]>
2611
2612         * event-loop.c (start_event_loop): Rename variable 'result' to
2613         'gdb_result', to avoid conflicts with upcoming intepreters changes.
2614
2615 2002-09-30  Keith Seitz  <[email protected]>
2616
2617         * gdb-events.sh (selected_thread_changed): New event.
2618         * gdb-events.c: Regenerated.
2619         * gdb-events.h: Regenerated.
2620
2621 2002-09-30  Hans-Peter Nilsson  <[email protected]>
2622
2623         * MAINTAINERS: Add self to Write After Approval list.
2624
2625 2002-09-30  Fernando Nasser  <[email protected]>
2626
2627         * disasm.c: New file.  
2628         * disasm.h: New file.  
2629         * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2630         (compare_lines): Ditto.
2631         (dump_insns): Ditto.
2632         (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2633         argument.
2634         (do_assembly_only): Ditto.
2635         (do_disassembly): Renamed to gdb_disassembly and moved to
2636         disasm.c.  Sdded uiout argument.
2637         * Makefile.in: Add new files.  Reorder SFILES list. Update
2638         dependencies.  Include libgdb.a later in the insight executable.
2639
2640 2002-09-29  Andrew Cagney  <[email protected]>
2641
2642         * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2643         bfd/elf64-alpha-fbsd.c.
2644
2645 2002-09-29  Andrew Cagney  <[email protected]>
2646
2647         * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2648         i386gnu-tdep.c.
2649
2650 2002-09-29  Andrew Cagney  <[email protected]>
2651
2652         * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2653         __FUNCTION__.
2654         * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2655         function name.
2656         (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2657         (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2658         (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2659         (S_msg_sig_post_reply): Ditto.
2660         
2661 2002-09-28  Corinna Vinschen  <[email protected]>
2662
2663         * sh-tdep.c (sh_use_struct_convention): Use definition according
2664         to ABI.
2665         (sh_push_arguments): Store in register with correct endianess.
2666         (sh_default_store_return_value): Ditto.
2667         (sh_gdbarch_init): Set sizeof long double to 8.
2668
2669 2002-09-27  Mark Kettenis  <[email protected]>
2670
2671         * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2672         Fix some whitespace problems.
2673
2674 2002-09-27  David Carlton  <[email protected]>
2675
2676         * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2677         (mcore-tdep.o): Ditto.
2678         (ns32k-tdep.o): Ditto.
2679         (ns32knbsd-tdep.o): Ditto.
2680         (sh3-rom.o): Ditto.
2681         (vax-tdep.o): Ditto.
2682         * cris-tdep.c: #include "gdb_string.h"
2683         * mcore-tdep.c: Ditto.
2684         * ns32k-tdep.c: Ditto.
2685         * ns32knbsd-tdep.c: Ditto.
2686         * sh3-rom.c: Ditto.
2687         * vax-tdep.c: Ditto.
2688
2689 2002-09-27  David Carlton  <[email protected]>
2690
2691         * config/djgpp/fnchange.lst: Add entries for
2692         gdb/testsuite/gdb.c++/m-static files.
2693
2694 2002-09-27  Jim Wilson  <[email protected]>
2695
2696         * MAINTAINERS: Add myself to the Write After Approval list.
2697
2698 2002-09-26  Martin M. Hunt  <[email protected]>
2699
2700         * mips-tdep.c (find_proc_desc): Initialize startaddr.
2701
2702
2703 2002-09-26  Andrew Cagney  <[email protected]>
2704
2705         * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2706         frame.
2707
2708 2002-09-26  Andrew Cagney  <[email protected]>
2709
2710         * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2711         (rs6000_struct_return_address): Delete variable.
2712         (rs6000_store_struct_return): Update.
2713         (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2714         deprecated_extract_struct_value_address.
2715         (rs6000_frame_align): New function.
2716         (rs6000_gdbarch_init): Set frame_align.
2717
2718 2002-09-26  Andrew Cagney  <[email protected]>
2719
2720         From Grace Sainsbury <[email protected]>:
2721         * Makefile.in (gdbtk-main.o): New target.
2722         (gdb.o): New target.
2723         (main_h): Define.
2724         (main.o): Update dependencies.
2725         (gdb$(EXEEXT)): Add gdb.o.
2726         (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2727         (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2728         (SUBDIR_GDBTK_CLEAN): Set.
2729         (install-gdbtk): Install the insight binary.
2730         (uninstall-gdbtk): New target.
2731         (all-gdbtk, clean-gdbtk): New rule.
2732         * top.c (use_windows): Default to zero.
2733         * main.c: Include "main.h".
2734         (main): Delete.
2735         (struct captured_main_args): Delete.
2736         (gdb_main): New function.
2737         * main.h: New file.
2738         * gdb.c: New File.
2739
2740 2002-09-25  Andrew Cagney  <[email protected]>
2741
2742         * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2743         (frame_map_regnum_to_name): New function.
2744         (frame_map_name_to_regnum): New function.
2745         * frame.h (frame_map_name_to_regnum): Declare.
2746         (frame_map_regnum_to_name): Declare.
2747         * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2748         * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2749         * parse.c: Do not include "builtin-regs.h".
2750         (target_map_name_to_register): Delete function.
2751         (write_dollar_variable): Use frame_map_name_to_regnum.
2752         * parser-defs.h (target_map_name_to_register): Delete declaration.
2753         * expprint.c: Include "frame.h".
2754         (print_subexp): Use frame_map_regnum_to_name.
2755         * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2756         * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2757
2758 2002-09-25  Andrew Cagney  <[email protected]>
2759
2760         * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2761         wasn't saved, and the next innermost frame is a dummy, return the
2762         dummy frame's link register.
2763
2764 2002-09-24  Jim Blandy  <[email protected]>
2765
2766         Fix from Paul Breed:
2767         * main.c (captured_main): Add a `break' after the case for 'b'.
2768
2769 2002-09-24  Keith Seitz  <[email protected]>
2770
2771         * varobj.c (c_type_of_child): Use get_target_type instead
2772         of TYPE_TARGET_TYPE.
2773
2774 2002-09-22  Fernando Nasser  <[email protected]>
2775
2776         * source.c (get_current_or_default_source_symtab_and_line): Remove
2777         function.
2778         (set_default_source_symtab_and_line): New function. Attempts to
2779         determine a source file to list lines from if one is not currently
2780         defined.
2781         (get_current_source_symtab_and_line): Initialize sal.pc and
2782         sal.end fields.
2783         (set_current_source_symtab_and_line): Mark argument as const.
2784         * source.h: Update declarations and comments.
2785         * linespec.c (decode_line_1): Replace call to removed routine above.
2786         * stack.c (print_frame_info_base): Ditto.
2787         * cli/cli-cmds.c (edit_command): Ditto.
2788         (list_command): Ditto.
2789
2790 2002-09-22  Fernando Nasser  <[email protected]>
2791
2792         * source.c (get_current_or_default_source_symtab_and_line): Initialize
2793         sal.pc and sal.end fields.
2794         (get_current_or_default_source_symtab_and_line): Ditto.
2795         * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2796         so we do not cause a new source symtab to be searched for (reverting an
2797         unintentional change from the 2002-09-20 patch).
2798         * scm-lang.c (scm_unpac): Ditto.
2799
2800 2002-09-21  Andrew Cagney  <[email protected]>
2801
2802         * complaints.c (symfile_explanations): Remove new-line from
2803         ``isolated_message''.
2804         (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2805         (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2806
2807 2002-09-20  Nick Clifton  <[email protected]>
2808         
2809         * NEWS: Announce that V850EA ISA is no longer supported.
2810         * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2811
2812 2002-09-20  David Carlton  <[email protected]>
2813
2814         * Makefile.in (c-lang.o): Correct dependencies.
2815         (utils.o): Gather dependencies.
2816         (charset.o): Move.
2817         * c-lang.c: #include "gdb_string.h"
2818
2819 2002-09-20  Fernando Nasser  <[email protected]>
2820
2821         From 2002-07-02  George Helffrich <[email protected]>
2822         * cli/cli-cmds.c (list_command): New function.  Implements the new
2823         cli edit command.
2824         (_init_cli_cmds): Add new command definition.
2825         * gdb.1: Document edit command.
2826         * doc/gdb.texinfo: Document edit command.
2827
2828 2002-09-20  Fernando Nasser  <[email protected]>
2829
2830         * source.c: Make global variables current_source_symtab and
2831         current_source_line static.
2832         (list_command): Moved to cli/cli-cmds.c.
2833         (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2834         (get_first_line_listed): New accessor function.
2835         (get_lines_to_list): New accessor function.
2836         (get_current_source_symtab_and_line): New function. Retrieves the
2837         position in the source code that we consider current.
2838         (get_current_or_default_source_symtab_and_line): New function.
2839         Like the above but attempts to determine a default position if one
2840         is not currently defined.
2841         (set_current_source_symtab_and_line): New function. Sets the source
2842         code position considered current and returns the previously set one.
2843         (clear_current_source_symtab_and_line): Reset stored information about
2844         a current source line.
2845         (_initialize_source): Remove registration for the "list" command and
2846         its alias.
2847         * source.h: Add declarations for the new functions above.
2848         * symtab.h: Remove declarations for the global variables mentioned
2849         above.
2850         * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2851         obtain current source line.
2852         * linespec.c (decode_line_1): Ditto.
2853         * macroscope.c (default_macro_scope): Ditto.
2854         * scm-lang.c (scm_unpac): Ditto.
2855         * stack.c (print_frame_info_base): Ditto.
2856         * symfile.c (clear_symtab_users): Ditto.
2857         * symtab.c (decode_line_spec): Ditto.
2858         * cli/cli-cmds.c (list_command): Moved here from source.c.
2859         (ambiguous_line_spec): Moved here from source.c.
2860         (_init_cli_cmds): Add definition for "list" and its alias.
2861         * Makefile.in: Update dependencies.
2862
2863 2002-09-20  Corinna Vinschen  <[email protected]>
2864
2865         * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2866         with what gcc thinks is correct.
2867
2868 2002-09-20  Corinna Vinschen  <[email protected]>
2869
2870         * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2871         multiple register push instruction.
2872
2873 2002-09-19  Jim Blandy  <[email protected]>
2874
2875         Add support for distinct host and target character sets.
2876         * charset.c, charset.h: New files.
2877         * c-exp.y: #include "charset.h".
2878         (yylex): Convert character and string literals to the target
2879         character set, before returning them as the semantic value of the
2880         token.
2881         * c-lang.c: #include "charset.h".
2882         (c_emit_char): Use charset-specific methods to recognize
2883         characters with backslash escape forms, to decide which characters
2884         to print literally and which to print using numeric escape
2885         sequences, and to convert target characters to host characters
2886         before printing.
2887         * utils.c: #include "charset.h".
2888         (no_control_char_error): New function.
2889         (parse_escape): Use charset-specific methods to recognize
2890         backslash escapes, parse `control character' notation, and convert
2891         characters from the host character set to the target character set.
2892         * configure.in: Set the default host character set.
2893         Check where to find iconv, and what its argument types might be.
2894         * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2895         * Makefile.in (SFILES): List charset.c.
2896         (COMMON_OBS): List charset.o.   
2897         (charset.o): New rule.
2898         (charset_h): New header dependency variable.
2899         (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2900         (LIBICONV): New variable, set by configure.
2901         (CLIBS): Include $(LIBICONV) here.
2902         * aclocal.m4, config.in, configure: Regenerated.
2903
2904 2002-09-19  Joel Brobecker  <[email protected]>
2905
2906         * ada-exp.y: Add missing semicolons to end rules. Fixes a
2907         bison 1.35 warning.
2908
2909 2002-09-19  Richard Earnshaw  <[email protected]>
2910
2911         * gdb_mbuild.sh: New file.
2912
2913 2002-09-19  Andrew Cagney  <[email protected]>
2914
2915         * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2916
2917 2002-09-18  Andrew Cagney  <[email protected]>
2918
2919         * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2920         jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2921         printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2922         valops.c, value.h: Revert previous change.
2923         
2924 2002-09-18  Michael Snyder  <[email protected]>
2925
2926         Preliminary support for Objective-C:
2927         * defs.h (language_objc): New enum value.
2928         (puts_filtered_tabular): Declaration only, exported from utils.c.
2929         (skip_quoted): Delete, declared in completer.h.
2930         * c-exp.y: Include completer.h.
2931         * p-exp.y: Ditto.
2932         * jv-exp.y: Ditto.
2933         * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING): 
2934         New operator enum values.
2935         * language.h (CAST_IS_CONVERSION): Test for language_objc.
2936         * language.c (binop_result_type): Handle language_objc case.
2937         (integral_type, character_type, string_type, boolean_type,
2938         structured_type, binop_type_check): Ditto.
2939         * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2940         (struct objc_specific): Add to general_symbol_info.
2941         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2942         (SYMBOL_DEMANGLED_NAME): Handle objc case.
2943         * parser-defs.h (struct objc_class_str): New struct type.
2944         (start_msglist, end_msglist, add_msglist): Declaration only,
2945         exported from objc-lang.c.
2946         * value.h (value_of_local, value_nsstring, 
2947         call_function_by_hand_expecting_type): Exported from valops.c.
2948         * valops.c (find_function_addr): Export.
2949         (call_function_by_hand_expecting_type): New function.
2950         (value_of_local): New function.
2951         * symfile.c (init_filename_language_table): Add ".m" extension
2952         for Objective-C.
2953         * utils.c (puts_filtered_tabular): New function.
2954         (fprintf_symbol_filtered): Add objc demangling support (disabled).
2955         (set/show demangle): Extend help-string to refer to ObjC.
2956         * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2957         * stabsread.c (symbol_reference_defined): Objective-C symbols
2958         may contain colons: make allowances when scanning stabs strings
2959         for colons.
2960         (objc_find_colon): New function.
2961         * printcmd.c (address_info): If language == objc then print
2962         "self" instead of "this".
2963         * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2964         OP_NSSTRING, and OP_SELF.
2965         (prefixify_subexp): Ditto.
2966         * source.c (print_source_lines): Mention objc in comment.
2967         * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2968         method names.
2969
2970 2002-09-18  Andrew Cagney  <[email protected]>
2971
2972         * complaints.h: Update copyright.
2973         (struct complaints): Declare.
2974         (struct complaint): Make `message' constant.
2975         (internal_complaint): Declare.
2976         (complaint): Declare.
2977         (complaint_root): Delete declaration.
2978         (symfile_complaints): Delete declaration.
2979         (struct complaints): Add opaque declaration.
2980         (clear_complaints): Add a complaints parameter.
2981         * complaints.c: Update copyright.
2982         (enum complaint_series): Define.
2983         (complaint_root): Delete.
2984         (struct complaints): Define.
2985         (complaint_sentinel, symfile_complaint_book): New variables.
2986         (symfile_explanations, symfile_complaints): New variables.
2987         New variables.
2988         (get_complaints): New function.
2989         (vcomplaint): New function.
2990         (complaint): New function.
2991         (internal_complaint): New function.
2992         (complain): Call vcomplain with symfile_complaint.
2993         (clear_complaints): Rewrite.
2994         (_initialize_complaints): Use add_setshow_command.
2995         * Makefile.in (complaints.o): Update dependencies.
2996         * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2997         to call to clear_complaints.
2998         (new_symfile_objfile, reread_symbols): Ditto.
2999         (oldsyms_complaint): Delete.
3000         (empty_symtab_complaint, unknown_option_complaint): Delete.
3001         (free_named_symtabs): Use complaint instead of complain.
3002
3003 2002-09-18  Michael Snyder  <[email protected]>
3004
3005         Contributed by Apple Computer, Inc.  Merged with current sources
3006         by Adam Fedor <[email protected]> [cagney].
3007         
3008         * objc-lang.c: First clean-up round: comments, indentation.
3009         * objc-lang.h: Ditto.
3010         * objc-lang.y: Ditto.
3011
3012 2002-09-18  Andrew Cagney  <[email protected]>
3013
3014         * maint.c (maintenance_internal_error): Print the parameter as the
3015         error message.
3016         (maintenance_internal_warning): New function.
3017         (_initialize_maint_cmds): Add command `maint internal-warning'.
3018
3019         * defs.h (internal_warning, internal_vwarning): Declare.
3020         * utils.c (struct internal_problem): Define.
3021         (internal_vproblem): New function.
3022         (internal_warning): New function.
3023         (internal_vwarning): New function.
3024         (internal_warning_problem, internal_error_problem): New variables.
3025         (internal_verror): Just call internal_vproblem.
3026
3027 2002-09-18  Michael Snyder  <[email protected]>
3028
3029         * objc-lang.c: New file, support for Objective-C.
3030         Preliminary check-in, not yet integrated into gdb.
3031         * objc-lang.h: New file.
3032         * objc-exp.y:  New file.
3033
3034 2002-09-18  Andrew Cagney  <[email protected]>
3035
3036         * infrun.c (signal_stop_update): Convert definition to ISO C.
3037         (signal_print_update): Ditto.
3038         (signal_pass_update): Ditto.
3039         * inflow.c (terminal_save_ours): Ditto.
3040
3041         * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3042         comments.
3043         
3044         * config/djgpp/fnchange.lst: Handle name clashes between
3045         bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3046         bfd/coff-tic80.c.
3047
3048         * i386-linux-tdep.h: Fix tipo.
3049
3050 2002-09-18  Adam Fedor  <[email protected]>
3051
3052         * MAINTAINERS: Add myself to the Write After Approval list.
3053
3054 2002-09-18  Jim Blandy  <[email protected]>
3055
3056         * dbxread.c, mdebugread.c: Revert my change of 2001-10-23.  Moving
3057         texthigh and textlow to reader-specific structs caused
3058         objfile_relocate to miss them.  This is fixable, but the work that
3059         the change was supposed to prepare GDB for never got done anyway.
3060
3061 2002-09-18  David Carlton  <[email protected]>
3062
3063         * MAINTAINERS: Alphabetize Write After Approval list.
3064
3065 2002-09-18  Daniel Jacobowitz  <[email protected]>
3066
3067         Fix PR gdb/709
3068         * values.c (value_static_field): Call read_var_value.
3069
3070 2002-09-18  Andrew Cagney  <[email protected]>
3071
3072         * valops.c (hand_function_call): Align the initial stack pointer
3073         and STRUCT_ADDR using frame_align.  When STRUCT_RETURN and
3074         FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3075         return value.
3076         * mips-tdep.c (mips_frame_align): New function.
3077         (mips_gdbarch_init): Set frame_align.
3078         * gdbarch.sh (FRAME_ALIGN): New method.
3079         * gdbarch.h, gdbarch.c: Re-generate.
3080
3081 2002-09-18  Michal Ludvig  <[email protected]>
3082
3083         * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3084         registers.
3085
3086 2002-09-17  Andrew Cagney  <[email protected]>
3087
3088         * NEWS: Mention that MIPS $fp behavior changed.
3089         * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3090         reference to FP_REGNUM.
3091         (mipsnbsd_cannot_store_register): Ditto.
3092         * mips-linux-nat.c: Update copyright.
3093         (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3094         (mips_linux_cannot_store_register): Ditto.
3095         * mips-linux-tdep.c (supply_gregset): Ditto.  Update copyright.
3096         * config/mips/tm-mips.h: Update copyright.
3097         (FP_REGNUM): Delete macro.
3098         (MIPS_REGISTER_NAMES): Replace "fp" with "".
3099         * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3100         * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3101         (mips_r3041_reg_names, mips_r3051_reg_names)
3102         (mips_r3081_reg_names): Replace "fp" with "".
3103         Fix PR gdb/480.
3104
3105 2002-09-17  Theodore A. Roth  <[email protected]>
3106
3107         * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to 
3108         generic_read_register_dummy() (PR gdb/703).
3109         (avr_push_return_address): #if 0 out unused vars.
3110         (avr_gdbarch_init): Enable use of avr_push_return_address().
3111
3112 2002-09-17  Michael Snyder  <[email protected]>
3113
3114         * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3115         RTE will take care of it.
3116
3117 2002-09-17  Andrew Cagney  <[email protected]>
3118
3119         * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3120         invalid, return SP_REGNUM.
3121
3122 2002-09-17  Michael Snyder  <[email protected]>
3123
3124         * mips-tdep.c (mips_pop_frame): Read saved values of floating
3125         point registers without sign extension.
3126
3127 2002-09-17  Andrew Cagney  <[email protected]>
3128
3129         * blockframe.c (deprecated_read_register_dummy): Rename
3130         generic_read_register_dummy.
3131         * frame.c (frame_unwind_signed_register): New function.
3132         (frame_unwind_unsigned_register): New function.
3133         * frame.h (frame_unwind_signed_register): Declare.
3134         (frame_unwind_unsigned_register): Declare.
3135         (deprecated_read_register_dummy): Rename
3136         generic_read_register_dummy.
3137
3138         * h8300-tdep.c (h8300_frame_chain): Update.
3139         (h8300_frame_saved_pc): Update.
3140         * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3141         * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3142         * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3143         (s390_frame_chain): Update.
3144         * v850-tdep.c (v850_find_callers_reg): Update.
3145         (v850_frame_saved_pc): Update.
3146         * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3147         (m32r_find_callers_reg): Update.
3148         (m32r_frame_saved_pc): Update.
3149         * sh-tdep.c (sh_find_callers_reg): Update.
3150         (sh64_get_saved_pr): Update.
3151         (sh_init_extra_frame_info): Update.
3152         (sh_init_extra_frame_info): Update.
3153         (sh64_init_extra_frame_info): Update.
3154         (sh64_init_extra_frame_info): Update.
3155         * mcore-tdep.c (mcore_find_callers_reg): Update.
3156         (mcore_frame_saved_pc): Update.
3157         (mcore_init_extra_frame_info): Update.
3158         * i386-tdep.c (i386_frame_saved_pc): Update.
3159         * ia64-tdep.c (ia64_frame_saved_pc): Update.
3160         (ia64_init_extra_frame_info): Update.
3161         (ia64_init_extra_frame_info): Update.
3162         * d10v-tdep.c (d10v_frame_saved_pc): Update.
3163         * cris-tdep.c (cris_init_extra_frame_info): Update.
3164         * avr-tdep.c (avr_frame_chain): Update.
3165         (avr_init_extra_frame_info): Update.
3166         (avr_frame_saved_pc): Update.
3167         * arm-tdep.c (arm_find_callers_reg): Update.
3168         (arm_init_extra_frame_info): Update.
3169         (arm_frame_saved_pc): Update.
3170
3171 2002-09-17  Tom Tromey  <[email protected]>
3172
3173         * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3174         is "'".
3175
3176 2002-09-17  Corinna Vinschen  <[email protected]>
3177
3178         * MAINTAINERS: Remove "non multi-arched" text from h8300.
3179         * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3180         NEXT_PROLOGUE_INSN.
3181         (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3182         NEXT_PROLOGUE_INSN.
3183
3184 2002-09-16  Joel Brobecker  <[email protected]>
3185
3186         * osfsolib.c: Remove file, replaced by solib-osf.c.
3187         * Makefile.in: Remove compilation rules for osfsolib.c.
3188
3189 2002-09-16  David Carlton  <[email protected]>
3190
3191         * cp-valprint.c (cp_print_class_method): Correct args to
3192         check_stub_method_group.
3193
3194 2002-09-16  Corinna Vinschen  <[email protected]>
3195
3196         * h8300-tdep.c: Multiarch.  Drop `set machine' command in favor of
3197         `set architecture'.  Unify naming convention of functions.
3198         (h8300_skip_prologue): Improve prologue analysis.
3199         (h8300_push_arguments): Rewritten to more closely match GCC's
3200         bizarre argument-passing behavior, along with the comment describing
3201         said behavior.
3202         * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3203         * config/h8300/tm-h8300.h: Multiarch.  Just keep stuff needed by
3204         sim, remote-e7000.c, remote-hms.c and remote.c
3205
3206 2002-09-15  Mark Kettenis  <[email protected]>
3207
3208         * i386-tdep.c (gdb_print_insn_i386): Removed.
3209         (i386_print_insn): New function.
3210         (i386_gdbarch_init): Set print_insn to i386_print_insns.
3211         (_initialize_i386_tdep): Don't initialize tm_print_insn and
3212         tm_print_insn_info.
3213
3214 2002-09-14  Mark Kettenis  <[email protected]>
3215
3216         * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3217         zero.
3218
3219 2002-09-14  Corinna Vinschen  <[email protected]>
3220
3221         * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3222         for IN_SIGTRAMP to here.  Use IN_SIGTRAMP only if it's defined. 
3223         Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3224
3225 2002-09-13  Christopher Faylor  <[email protected]>
3226
3227         * win32-nat.c (child_create_inferior): Honor 'tty' command.
3228
3229 2002-09-13  Daniel Jacobowitz  <[email protected]>
3230
3231         * gdbtypes.c (check_stub_method): Make static.
3232         (check_stub_method_group): New function.
3233         * gdbtypes.h: Update prototypes.
3234         * cp-support.c: New file.
3235         * cp-support.h: New file.
3236
3237         * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3238         (update_method_name_from_physname): New function.
3239         (read_member_functions): Correct method names for operators
3240         and v3 constructors/destructors.  Separate v2 constructors and
3241         destructors.
3242         * Makefile.in (stabsread.o): Update dependencies.
3243         (SFILES): Add cp-support.c.
3244         (COMMON_OBS): Add cp-support.o.
3245         (cp_support_h, cp-support.o): Add.
3246
3247         * cp-valprint.c (cp_print_class_method): Call
3248         check_stub_method_group instead of check_stub_method.  Remove
3249         extraneous QUITs.
3250         * p-valprint.c (pascal_object_print_class_method): Likewise.
3251         * valops.c (search_struct_method): Likewise.
3252         (find_method_list, value_struct_elt_for_reference): Likewise.
3253
3254 2002-09-13  Andrew Cagney  <[email protected]>
3255
3256         * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3257         * gdbarch.h, gdbarch.c: Regenerate.
3258
3259 2002-09-13  Andrew Cagney  <[email protected]>
3260
3261         * frame.c (find_saved_register): Delete function.
3262         * frame.h (find_saved_register): Delete declaration.
3263         Fix PR gdb/631.
3264
3265 Fri Sep 13 14:59:55 2002  Andrew Cagney  <[email protected]>
3266
3267         * mips-tdep.c (read_next_frame_reg): Re-hack using
3268         frame_register_unwind.
3269
3270 Fri Sep 13 07:42:09 2002  Andrew Cagney  <[email protected]>
3271
3272         * mips-tdep.c (mips_get_saved_register): Re-hack using
3273         frame_register_unwind.
3274
3275 2002-09-12  Joel Brobecker  <[email protected]>
3276
3277         * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3278         vector. Will be useful for Interix.  
3279         * gdbarch.h, gdbarch.c: Regenerate.
3280
3281         * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3282         name of the malloc function by NAME_OF_MALLOC.
3283
3284 2002-09-12  Joel Brobecker  <[email protected]>
3285
3286         * value.h (find_function_in_inferior): Add const keyword to
3287         one of the parameters. Allows us to invoke this function with
3288         a const char *.
3289         * valops.c (find_function_in_inferior): Likewise.
3290
3291 2002-09-12  Joel Brobecker  <[email protected]>
3292
3293         * exec.c (xfer_memory): Fix compilation warning with old versions
3294         of GCC.
3295         * tracepoint.c (trace_find_tracepoint_command): Likewise.
3296
3297 2002-09-12  David Carlton  <[email protected]>
3298
3299         * symtab.h: Run through gdb_indent.h.
3300         Add 2002 to Copyright year list.
3301
3302 2002-09-12  Alan Modra  <[email protected]>
3303
3304         * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3305         mach constants.
3306         * MAINTAINERS: Add myself to write after approval list.
3307
3308 2002-09-11  J. Brobecker  <[email protected]>
3309
3310         * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3311
3312 2002-09-11  J. Brobecker  <[email protected]>
3313
3314         * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3315         Interix.
3316
3317 2002-06-05  Paul N. Hilfinger  <[email protected]>
3318
3319         * procfs.c (do_detach): Clear current signal, not just fault.
3320         Corrects problem with breakpoint trap signal leaking to detached
3321         process on Tru64.
3322
3323 2002-09-10  Michael Snyder  <[email protected]>
3324
3325         * buildsym.c (finish_block): Protect against null pointer.
3326
3327 2002-09-10  Andrew Cagney  <[email protected]>
3328
3329         * infcmd.c (default_print_registers_info): Send all output to
3330         ``file'' instead of ``gdb_stdout''.
3331
3332 2002-09-10  Michael Snyder  <[email protected]>
3333
3334         * mips-tdep.c (mips_extract_struct_value_address): Make val a
3335         LONGEST, and use signed register read (addresses are sign-
3336         extended for mips).
3337
3338 2002-09-10  Stephane Carrez  <[email protected]>
3339
3340         * event-loop.c (gdb_do_one_event): Make public.
3341         * event-loop.h (gdb_do_one_event): Declare.
3342
3343 2002-09-10  Jeff Law  <[email protected]>
3344
3345         * infttrace.c (child_resume): Simplify and rework to avoid
3346         TT_PROC_CONTINUE.
3347
3348 2002-09-09  Fred Fish  <[email protected]>
3349
3350         * printcmd.c (print_scalar_formatted): "len" is the number of
3351         target bytes, NOT the number of target bits.
3352
3353 2002-09-09  Elena Zannoni  <[email protected]>
3354
3355         From: Emmanuel Thome'  <[email protected]>
3356         * top.c (init_main): Set rl_terminal_name.
3357
3358 2002-09-08  Aidan Skinner <[email protected]>
3359
3360         * ada-lang.c (ada_array_bound, ada_type_match,
3361         _initialize_ada_language): Fix K&R definitions.
3362         * ada-tasks.c (get_current_task): Fix K&R definitions.
3363         * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3364                         
3365 2002-09-07  Christopher Faylor  <[email protected]>
3366
3367         * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3368         Add XP.
3369
3370 2002-09-06  Mark Kettenis  <[email protected]>
3371
3372         * i386-tdep.c (i386_register_virtual_type,
3373         i386_register_convertible, i386_register_convert_to_virtual,
3374         i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3375         instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3376         (i386_gdbarch_init): Fix comment.  Add comments on calls that set
3377         sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3378         Don't set push_arguments twice.
3379
3380         * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3381         sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3382         * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3383         sigtramp_end to NULL.
3384         * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3385         defines.
3386         (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3387
3388         * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3389         whitespace.
3390
3391         * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3392         * gdbarch.h, gdbarch.c: Re-generate.
3393         * blockframe.c (find_pc_sect_partial_function): Convert to use
3394         SIGTRAMP_START_P predicate.
3395
3396 2002-09-05  Michael Snyder  <[email protected]>
3397
3398         * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3399         generic_dummy_frame method and old method.  Also distinguish
3400         between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3401         (arm_extract_return_value): Use new regcache method.
3402
3403         * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3404         adjustment that doesn't conform to the ABI.
3405         (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3406         saved regcache, not from current regcache.
3407
3408 2002-09-05  Andrew Cagney  <[email protected]>
3409
3410         * NEWS: Update for 5.3.  Add new section ``Changes since 5.3''.
3411         * README: Update.
3412
3413 2002-09-04  Jason Thorpe  <[email protected]>
3414
3415         * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3416         if arm_apcs_32 is false.
3417
3418 2002-09-04  Andrew Cagney  <[email protected]>
3419
3420         GDB 5.3 branch created.
3421
3422 2002-09-03  Theodore A. Roth  <[email protected]>
3423
3424         * gdb/avr-tdep.c (avr_gdbarch_init): Use
3425         generic_unwind_get_saved_register.
3426
3427 2002-09-03  David Carlton  <[email protected]>
3428
3429         * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3430         argument (PR gdb/653).  Update call to smash_to_method_type.
3431         (read_structure_scope): Update call to dwarf2_add_member_fn.
3432
3433 2002-09-03  Michal Ludvig  <[email protected]>
3434
3435         * x86-64-linux-tdep.c: Include gdb_string.h
3436         * x86-64-linux-nat.c: Ditto.
3437
3438 2002-09-02  Jason Thorpe  <[email protected]>
3439
3440         * ada-exp.y (yyname, yyrule): Remap global variables that appear
3441         when YYDEBUG is set to 1.  
3442         * c-exp.y: Likewise.
3443         * f-exp.y: Likewise.
3444         * jv-exp.y: Likewise.
3445         * m2-exp.y: Likewise.
3446         * p-exp.y: Likewise.
3447
3448 2002-09-02  Jason Thorpe  <[email protected]>
3449
3450         * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3451         dependency list.
3452         * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3453         solib_svr4_fetch_link_map_offsets to
3454         nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3455         * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3456         * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3457         * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3458         solib-svr4.o, and solib-legacy.o.
3459         * config/i386/tm-nbsd.h: Include solib.h.
3460
3461 2002-09-02  Jason Thorpe  <[email protected]>
3462
3463         * configure.tgt (i[3456]86-*-netbsdelf*): Merge with... 
3464         (i[3456]86-*-netbsd*): ...this.  Set gdb_target to nbsd. 
3465         (i[3456]86-*-openbsd*): Make this a separate entry.  Add a
3466         comment noting that this needs its own target configuration.
3467         * config/i386/nbsd.mt: New file.
3468         * config/i386/nbsdaout.mt: Remove.
3469         * config/i386/nbsdelf.mt: Ditto.
3470         * config/i386/tm-nbsdaout.h: Ditto. 
3471
3472 2002-09-02  Jason Thorpe  <[email protected]>
3473
3474         * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function. 
3475         (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset. 
3476         (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3477         tdep->sigtramp_end.
3478         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove. 
3479         * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3480         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3481
3482 2002-09-02  Jason Thorpe  <[email protected]>
3483
3484         * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3485         $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3486         * i386-tdep.h (i386bsd_init_abi): New prototype.
3487         * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3488         function declaration.
3489         (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3490         for NetBSD-a.out or NetBSD-ELF.
3491         (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3492         (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3493         (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3494         * i386nbsd-tdep.c: ...here.  Include arch-utils.h, i386-tdep.h,
3495         and nbsd-tdep.h.
3496         (i386nbsd_pc_in_sigtramp): New function.
3497         (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3498         i386nbsd_pc_in_sigtramp.
3499         (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3500         and i386nbsdelf_init_abi OS ABI handlers.
3501         * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3502         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3503
3504 2002-09-02  Mark Kettenis  <[email protected]>
3505
3506         * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3507         registers if the target really has them.
3508
3509 2002-08-31  Jason Thorpe  <[email protected]>
3510
3511         * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3512         than nbsd-tdep.h.
3513
3514 2002-08-31  Jason Thorpe  <[email protected]>
3515
3516         * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3517         list.
3518         * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3519         (alphanbsd_skip_sigtramp_frame): New functions. 
3520         (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3521         alphanbsd_skip_sigtramp_frame.  Set tdep->sigcontext_addr
3522         to alphanbsd_sigcontext_addr. 
3523
3524 2002-08-31  Jason Thorpe  <[email protected]>
3525
3526         * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3527         list.
3528         (nbsd-tdep.o): Add $(gdb_string_h) to dependency list. 
3529         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3530         nbsd_pc_in_sigtramp. 
3531         * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3532         (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3533         * nbsd-tdep.c: Include gdb_string.h.
3534         (nbsd_pc_in_sigtramp): New function. 
3535         * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype. 
3536         * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3537         (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3538         ppcnbsd_pc_in_sigtramp. 
3539         * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3540         (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3541         shnbsd_pc_in_sigtramp. 
3542         * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3543         gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp. 
3544         * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3545
3546 2002-08-30  Pierre Muller  <[email protected]>
3547
3548         * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3549         watchpoints to NULL.
3550         (insert_breakpoints): set val field of watchpoints if NULL.
3551
3552
3553 2002-08-29  Jim Blandy  <[email protected]>
3554
3555         * symtab.c (lookup_symbol_aux): In the cases where we find a
3556         minimal symbol of an appropriate name and use its address to
3557         select a symtab to read and search, use `name' (as passed to us)
3558         as the demangled name when searching the symtab's global and
3559         static blocks, not the minsym's name.
3560
3561 2002-08-29  Keith Seitz  <[email protected]>
3562
3563         * stack.c (print_frame_info_base): Always set current_source_symtab
3564         and current_source_line.
3565
3566 2002-08-29  Donn Terry  <[email protected]>
3567
3568         * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3569
3570 2002-08-28  Keith Seitz  <[email protected]>
3571
3572         * stack.c (select_frame): Add FIXME concerning selected-frame
3573         events.
3574         (select_frame_command): Send selected-frame-level-changed
3575         event notification, but only if the level actually changed.
3576         (up_silently_base): Add selected-frame-level-changed event
3577         notification.
3578         (down_silently_base): Likewise.
3579
3580 2002-08-28  Andrew Cagney  <[email protected]>
3581
3582         * Makefile.in: Update dependencies for all gdb/*.c files.
3583
3584 2002-08-27  Tom Tromey  <[email protected]>
3585
3586         * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3587         ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3588         Update dependencies.
3589         * i387-tdep.c: Include gdb_string.h.
3590         * osabi.c: Likewise.
3591         * i386-linux-nat.c: Likewise.
3592         * lin-lwp.c: Likewise.
3593         * ax-gdb.c: Likewise.
3594         * signals/signals.c: Likewise.
3595         * jv-valprint.c: Likewise.
3596         * p-lang.c: Likewise.
3597         * c-valprint.c: Likewise.
3598         * cp-abi.c: Likewise.
3599
3600 2002-08-27  Elena Zannoni  <[email protected]>
3601
3602         * cli/cli-script.h (copy_command_lines): Export.
3603         * breakpoint.c: Include cli/cli-script.h.
3604         * Makefile.in (breakpoint.o): Update dependencies.
3605
3606 2002-08-26  Michael Snyder  <[email protected]>
3607
3608         * breakpoint.c (insert_breakpoints): Protect all references
3609         to 'process_warning'.  Shorten long lines.
3610
3611 2002-08-26  Joel Brobecker  <[email protected]>
3612
3613         * cli/cli-script.c (copy_command_lines): New function.
3614         * defs.h (copy_command_lines): Export.
3615         * testsuite/gdb.base/commands.exp: New tests for commands
3616         attached to a temporary breakpoint, and for commands that
3617         delete the breakpoint they are attached to.
3618         
3619 2002-08-26  Michael Snyder  <[email protected]>
3620
3621         * breakpoint.c (bpstat_stop_status): Instead of copying the 
3622         pointer to the breakpoint commands struct, make a new copy
3623         of the struct and point to that.
3624         (bpstat_clear): Free the commands struct.
3625         (bpstat_clear_actions): Free the commands struct.
3626         (bpstat_do_actions): Free the command actions.  Also execute
3627         the local cleanups, instead of deleting them.
3628         (delete_breakpoint): Leave the commands field of the bpstat
3629         chain alone -- it will be freed later.
3630
3631 2002-08-26  Kevin Buettner  <[email protected]>
3632
3633         * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3634         deleted in 2002-08-20 commit.  This function is still used by
3635         ppc-linux-nat.c.
3636
3637 2002-08-26  Keith Seitz  <[email protected]>
3638
3639         * gdb-events.sh: Add selected-frame-level-changed event.
3640         * gdb-events.c: Regenerated.
3641         * gdb-events.h: Regenerated.
3642         
3643 2002-08-26  Stephane Carrez  <[email protected]>
3644
3645         Fix PR gdb/393:
3646         * inflow.c (terminal_save_ours): New function to save terminal
3647         settings.
3648         * inferior.h (terminal_save_ours): Declare.
3649         * target.c (debug_to_terminal_save_ours): New function.
3650         (cleanup_target): Defaults to_terminal_save_ours.
3651         (update_current_target): Inherit to_terminal_save_ours.
3652         (setup_target_debug): Set to_terminal_save_ours.
3653         * target.h (target_terminal_save_ours): New to save terminal settings.
3654         (target_ops): New member to_terminal_save_ours.
3655         * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3656         * hpux-thread.c (init_hpux_thread_ops): Likewise.
3657         * inftarg.c (init_child_ops): Likewise.
3658         * m3-nat.c (init_m3_ops): Likewise.
3659         * procfs.c (init_procfs_ops): Likewise.
3660         * wince.c (init_child_ops): Likewise.
3661         * win32-nat.c (init_child_ops): Likewise.
3662         * sol-thread.c (init_sol_thread_ops): Likewise.
3663
3664 2002-08-26  Mark Kettenis  <[email protected]>
3665
3666         * i386-tdep.c (i386_store_return_value): Undeprecate.  Convert to
3667         use regcache_* functions.
3668         (i386_gdbarch_init): Set store_return_value instead of
3669         deprecated_store_return_value.
3670
3671         * regcache.c (regcache_raw_write_signed,
3672         regcache_raw_write_unsigned): New functions.
3673         * regcache.h (regcache_raw_write_signed,
3674         regcache_raw_write_unsigned): New prototypes.
3675
3676 2002-08-25  Andrew Cagney  <[email protected]>
3677
3678         * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3679         (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3680         source file dependencies.  Cleanup corresponding generator rules.
3681
3682 2002-08-25  Andrew Cagney  <[email protected]>
3683
3684         * regcache.h (register_offset_hack): Declare.
3685         (regcache_cooked_read_using_offset_hack): Declare.
3686         (regcache_cooked_write_using_offset_hack): Declare.
3687
3688         * regcache.c (register_offset_hack): New function.
3689         (regcache_cooked_read_using_offset_hack): New function.
3690         (regcache_cooked_write_using_offset_hack): New function.
3691         (regcache_dump): Check that the registers, according to their
3692         offset, are packed hard against each other.
3693         (cooked_xfer_using_offset_hack): New function.
3694
3695 2002-08-25  Andrew Cagney  <[email protected]>
3696
3697         * regcache.c (struct regcache_descr): Add field register_type.
3698         (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3699         in as a parameter
3700         (init_regcache_descr): Initialize register_type.  Pass the descr
3701         to init_legacy_regcache_descr.  Use register_type instead of
3702         REGISTER_VIRTUAL_TYPE.
3703         (register_type): New function.
3704         (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3705         * regcache.h (register_type): Declare.
3706
3707 2002-08-25  Andrew Cagney  <[email protected]>
3708
3709         * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3710         instead of deprecated_store_return_value.  Fix fallout from
3711         2002-08-23 Andrew Cagney <[email protected]>.
3712
3713 2002-08-25  Andrew Cagney  <[email protected]>
3714
3715         * regcache.c (max_register_size): New function.
3716         (init_legacy_regcache_descr): Ensure that max_register_size is
3717         large enough for REGISTER_VIRTUAL_SIZE.
3718         * regcache.h (max_register_size): Declare.
3719
3720 2002-08-24  Andrew Cagney  <[email protected]>
3721
3722         * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3723         store_return_value.
3724         (e500_extract_return_value): Change type of valbuf pointer to
3725         void.
3726
3727 2002-08-24  Mark Kettenis  <[email protected]>
3728
3729         * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3730         workaround.
3731
3732         * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3733         PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3734         long long) to prevent compiler warning on 64-bit systems.
3735
3736 2002-08-23  Andrew Cagney  <[email protected]>
3737
3738         * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3739         (DEPRECATED_STORE_RETURN_VALUE): New method.
3740         (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3741         * gdbarch.h, gdbarch.c: Re-generate.
3742
3743         * values.c (set_return_value): Pass current_regcache to
3744         STORE_RETURN_VALUE.
3745         * arch-utils.h (legacy_store_return_value): Declare.
3746         * arch-utils.c (legacy_store_return_value): New function.
3747         (legacy_extract_return_value): Update parameters.
3748
3749         * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3750         STORE_RETURN_VALUE.
3751         * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3752         * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3753         * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3754         * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3755         * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3756         * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3757         * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3758         * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3759         * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3760         * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3761
3762         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3763         * i386-tdep.c (i386_extract_return_value): Update.
3764         * arch-utils.c (legacy_extract_return_value): Update.
3765         * frv-tdep.c (frv_gdbarch_init): Update.
3766         * cris-tdep.c (cris_gdbarch_init): Update.
3767         * d10v-tdep.c (d10v_gdbarch_init): Update.
3768         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3769         * m68k-tdep.c (m68k_gdbarch_init): Update.
3770         * mcore-tdep.c (mcore_gdbarch_init): Update.
3771         * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3772         * s390-tdep.c (s390_gdbarch_init): Update.
3773         * sparc-tdep.c (sparc_gdbarch_init): Update.
3774         * sh-tdep.c (sh_gdbarch_init): Update.
3775         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3776         * v850-tdep.c (v850_gdbarch_init): Update.
3777         * avr-tdep.c (avr_gdbarch_init): Update.
3778         * ia64-tdep.c (ia64_gdbarch_init): Update.
3779         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3780         * vax-tdep.c (vax_gdbarch_init): Update.
3781         * alpha-tdep.c (alpha_gdbarch_init): Update.
3782         * arm-tdep.c (arm_gdbarch_init): Update.
3783         * mips-tdep.c (mips_gdbarch_init): Update.
3784         * i386-tdep.c (i386_gdbarch_init): Update.
3785
3786 2002-08-23  Andrew Cagney  <[email protected]>
3787
3788         * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3789         bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3790
3791 2002-08-24  Mark Kettenis  <[email protected]>
3792
3793         * PROBLEMS: Refer to GDB 5.3 instead of 5.2.  Mention FreeBSD
3794         problems.
3795
3796 2002-08-23  Joel Brobecker  <[email protected]>
3797
3798         * infrun.c (handle_inferior_event): Move a comment outside of a
3799         function call, in order to avoid indent reformatting this part
3800         of the code in an unreadable way.
3801
3802 2002-08-23  Grace Sainsbury  <[email protected]>
3803
3804         * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3805         when breakpoints fail. Move general breakpoint error messages to
3806         insert_breakpoints.  
3807         * breakpoint.c (insert_breakpoints): Change warnings when
3808         breakpoints are nto inserted to specify the type. Remove call to
3809         memory_error when hardware breakpoints can't be inserted. Remove
3810         multiple calls to warning so all messages are sent to the user at
3811         once.
3812         (delete_breakpoints): Make insert error messsages more explicit.
3813
3814 2002-08-23  Daniel Jacobowitz  <[email protected]>
3815
3816         * ChangeLog: Move gdbserver entries after GDB 5.2 to
3817         gdbserver/ChangeLog.
3818
3819 2002-08-23  Mark Kettenis  <[email protected]>
3820
3821         * i386-tdep.c: Include "objfiles.h".
3822         (i386_svr4_init_abi): Set in_solib_call_trampoline and
3823         skip_trampoline_code.
3824         * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3825         (CPLUS_MARKER): Define to '.'.
3826
3827         * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3828         member.
3829         (linux_corefile_thread_callback): Increase args->num_notes.
3830         (linux_make_note_section): Initialize thread_args.num_notes, and
3831         use it to determine whether notes for any threads were created.
3832
3833 2002-08-23  Donn Terry  <[email protected]>
3834
3835         * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3836         corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3837         and PCUNKILL.
3838         (write_with_trace): Conditionalize out the switch branch handling
3839         PCSHOLD if the corresponding macro is not defined. Likewise for
3840         PRSABORT and PRSTOP.
3841         This change will be needed by the Interix port.
3842
3843 2002-08-22  Elena Zannoni  <[email protected]>
3844
3845         * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3846         write_register wherever possible instead of manipulating the
3847         register bytes directly.
3848         Assign VALUE_CONTENTS to a variable and use that.
3849         The GPR numbers are now dependent on the architecture.
3850         
3851 2002-08-22  Elena Zannoni  <[email protected]>
3852
3853         * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3854         ev_offset fields.
3855         (skip_prologue): Add support for BookE/e500 instructions.
3856         (e500_extract_return_value): New function.
3857         (frame_get_saved_regs): Add support for saving ev registers and
3858         pseudo gpr's.
3859         (e500_store_return_value): New function.
3860         (rs6000_gdbarch_init): Move up default intializations of
3861         deprecated_extract_return_value and store_return_value.  Overwrite
3862         init of store_return_value with e500 specific version.
3863         Set extract_return_value for e500.
3864         
3865 2002-08-22  Elena Zannoni  <[email protected]>
3866
3867         * blockframe.c (generic_call_dummy_register_unwind): Use
3868         regcache_cooked_read to catch cases in which the variable is
3869         stored in a pseudo register.
3870
3871 2002-08-22  Andrew Cagney  <[email protected]>
3872
3873         * NEWS: Mention that the i960 has been made obsolete.
3874         * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3875         i960-tdep.c
3876         (remote-nrom.o): Obsolete target.
3877         (remote-nindy.o, i960-tdep.o): Ditto.
3878         * remote-nrom.c: Make file obsolete.
3879         * remote-nindy.c, remote-vx960.c: Ditto.
3880         * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3881         * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3882         * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3883         * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3884         * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3885         i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3886         i960-*-vxworks* obsolete.
3887         * MAINTAINERS: Note that the i960 is obsolete.
3888
3889 2002-08-21  Corinna Vinschen  <[email protected]
3890
3891         * aix-thread.c (aix_thread_detach): Disable thread debugging on
3892         detach to allow reinitialization.
3893
3894 2002-08-22  Andrew Cagney  <[email protected]>
3895
3896         * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3897         attempt).
3898
3899 2002-08-22  Jim Blandy  <[email protected]>
3900
3901         * coffread.c (coff_symfile_read): Don't try to read the line
3902         number table from disk if the image file doesn't have a symbol
3903         table; we'll never actually look at the info anyway, and Windows
3904         ships DLL's with bogus file offsets for the line number data.
3905
3906 2002-08-21  Elena Zannoni  <[email protected]>
3907
3908         * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3909         an e500 executable.
3910
3911 2002-08-21  Michael Snyder  <[email protected]>
3912
3913         * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3914         (MSYMBOL_SIZE): Replace macro with function.
3915         (DEFAULT_MIPS_TYPE): Delete unused macro.
3916         * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3917         * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3918
3919 2002-08-21  Jim Blandy  <[email protected]>
3920
3921         * valops.c (value_cast): Simplify and correct logic for doing a
3922         static cast from a pointer to a base class to a pointer to a
3923         derived class.
3924
3925 2002-08-21  Andrew Cagney  <[email protected]>
3926
3927         * infcmd.c (default_print_registers_info): Replace
3928         do_registers_info.
3929         (registers_info): Use gdbarch_print_registers_info instead of
3930         DO_REGISTERS_INFO.
3931         * inferior.h (default_print_registers_info): Replace
3932         do_registers_info.
3933         * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3934         (DO_REGISTERS_INFO): Change to a predicate function.
3935         * gdbarch.h, gdbarch.c: Regenerate.
3936         
3937 2002-08-21  Keith Seitz  <[email protected]>
3938
3939         * gdb-events.sh: Add target-changed event.
3940         * gdb-events.c: Regenerated.
3941         * gdb-events.c: Regenerated.
3942         * valops.c (value_assign): Add target-changed event notification
3943         to inlval_register, lval_memory, and lval_reg_frame_relative.
3944
3945 2002-08-21  Joel Brobecker  <[email protected]>
3946
3947         * NEWS: Add an entry regarding the improvement of the next/step
3948         operation on Alpha Tru64 multi-processor machines.
3949
3950 2002-08-21  Andrew Cagney  <[email protected]>
3951
3952         * Makefile.in: Update dependencies for mi/ cli/ and tui/
3953         directores.
3954         * Makefile.in: Update all _h macro definitions.
3955         * Makefile.in (install-gdbtk): Move to install section.
3956         (rdi-share/libangsd.a): Move to end of file.
3957
3958 2002-08-19  Andrew Cagney  <[email protected]>
3959
3960         * frame.c (frame_register_unwind): When a register, set addrp to
3961         the register's byte.
3962
3963 2002-08-20  Michael Snyder  <[email protected]>
3964
3965         * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3966         used locally, so move them from the target machine header to here.
3967         (mips_set_processor_type, mips_register_name, mips32_next_pc, 
3968         mips16_next_pc, cached_proc_desc, mips_set_processor_type): 
3969         Make static.
3970         * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3971
3972 2002-08-20  Andrew Cagney  <[email protected]>
3973
3974         * NEWS: Mention that the Apollo line was made obsolete.
3975         * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3976         m68*-hp-hpux* obsolete.
3977         * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3978         m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3979         * buildsym.c (make_blockvector): Make static.
3980         * buildsym.h (make_blockvector): Make extern declaration obsolete.
3981         * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3982         (ALLDEPFILES): Remove dstread.c.
3983         (dstread.o): Obsolete make rule.
3984         * dstread.c: Makefile obsolete.
3985         * dst.h: Ditto.
3986         * config/m68k/hp300hpux.mt: Ditto.
3987         * config/m68k/hp300hpux.mh: Ditto.
3988         * config/m68k/hp300bsd.mt: Ditto.
3989         * config/m68k/hp300bsd.mh: Ditto.
3990         * config/m68k/apollo68b.mt: Ditto.
3991         * config/m68k/apollo68v.mh: Ditto.
3992         * config/m68k/apollo68b.mh: Ditto.
3993
3994 2002-08-20  Michael Snyder  <[email protected]>
3995
3996         * mips-tdep.c (mips_in_return_stub): Make static.
3997         (mips_gdbarch_init): Set in_solib_return_trampoline.
3998         * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3999
4000 2002-08-20  Michael Snyder  <[email protected]>
4001
4002         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4003         * gdbarch.c, gdbarch.h: Regenerate.
4004         * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4005         Add.
4006         * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4007
4008 2002-08-20  Michael Snyder  <[email protected]>
4009
4010         * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4011         (mips_gdbarch_init): Set skip_trampoline_code, 
4012         in_solib_call_trampoline.
4013         * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4014         (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4015
4016 2002-08-20  Elena Zannoni  <[email protected]>
4017
4018         * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4019
4020         * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4021         vector type for ev registers.
4022         (e500_pseudo_register_read): New function.
4023         (e500_pseudo_register_write): New function.
4024         (e500_dwarf2_reg_to_regnum): New function.
4025         (PPC_UISA_NOFP_SPRS): New macro.
4026         (PPC_EV_REGS): New macro.
4027         (PPC_GPRS_PSEUDO_REGS): New macro.
4028         (registers_e500): New register set for e500.
4029         (variants): Add e500 variant.
4030         (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4031         before setting architectural dependent variations.  Initialize ev
4032         registers numbers.  Add case for e500 architecture.  Set the
4033         number of pseudo registers.
4034
4035 2002-08-20  Elena Zannoni  <[email protected]>
4036
4037         * rs6000-tdep.c: Clean up comments.
4038
4039 2002-08-20  Andrew Cagney  <[email protected]>
4040
4041         * h8300-tdep.c: Re-indent file.
4042
4043 2002-08-20  Jim Blandy  <[email protected]>
4044
4045         * Makefile.in (LDFLAGS): Allow the configure script to establish a
4046         default for this.
4047
4048 2002-08-20  Keith Seitz  <[email protected]>
4049
4050         * breakpoints.c (watch_command_1): Use internal breakpoint
4051         when setting a watchpoint_scope breakpoint.
4052
4053 2002-08-20  Elena Zannoni  <[email protected]>
4054
4055         * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4056         (build_builtin_type_vec64i): Ditto.
4057         (build_builtin_type_vec128): Ditto.
4058         (build_builtin_type_vec128i): Ditto.
4059
4060 2002-08-19  Michael Snyder  <[email protected]>
4061
4062         * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4063         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4064         (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4065         POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4066         (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4067         CALL_DUMMY_ADDRESS): Delete.
4068         * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4069         mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4070         (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame, 
4071         push_dummy_frame, fix_call_dummy, init_extra_frame_info, 
4072         push_return_address.
4073         (mips_register_raw_size, mips_eabi_use_struct_convention, 
4074         mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4075         mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4076         mips_init_extra_frame_info, mips_eabi_push_arguments, 
4077         mips_n32n64_push_arguments, mips_push_return_address,
4078         mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4079         mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4080
4081 2002-08-19  Michael Snyder  <[email protected]>
4082
4083         * mips-tdep.c (mips_frame_num_args): New function.
4084         (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4085         frame_saved_pc, frame_args_address, frame_locals_address, 
4086         frame_num_args, and frame_args_skip.
4087         * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4088         FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, 
4089         FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4090         * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4091
4092 2002-08-20  Michael Snyder  <[email protected]>
4093
4094         * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4095         (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4096         * mips-tdep.c (mips_store_struct_return): New function.
4097         (mips_extract_struct_value_address): New function.
4098         (mips_gdbarch_init): Set store_struct_return and
4099         extract_struct_value_address.
4100
4101 2002-08-20  David Carlton  <[email protected]>
4102
4103         * dwarf2read.c (dwarf2_build_psymtabs): Check that
4104         dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4105         (read_file_scope): Check that line_header is nonzero before
4106         decoding macro information.
4107
4108 2002-08-20  Mark Kettenis  <[email protected]>
4109
4110         * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4111         flag the general-purpose registers as floating-point on targets
4112         that don't support the floating-point registers.
4113
4114 2002-08-20  Elena Zannoni  <[email protected]>
4115
4116         * rs6000-tdep.c (altivec_register_p): Delete.
4117         (rs6000_do_altivec_registers): Delete.
4118         (rs6000_altivec_registers_info): Delete.
4119         (rs6000_do_registers_info): Delete.
4120         (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4121         (rs6000_gdbarch_init): Remove setting of do_registers_info.
4122
4123 2002-08-20  Elena Zannoni  <[email protected]>
4124
4125         * infcmd.c (do_registers_info): Print vector registers in hex
4126         format only.
4127         (print_vector_info): Check that printing registers
4128         makes sense.
4129         (print_float_info): Ditto.
4130
4131 2002-08-20  Andrew Cagney  <[email protected]>
4132
4133         * mips-tdep.c (mips_gdbarch_init): Update.
4134         (mips_o32_extract_return_value): Rewrite.
4135         (mips_o32_store_return_value): Rewrite.
4136         (mips_o32_xfer_return_value): New function.
4137         (mips_xfer_register): Tweak debug print message.  Allow for
4138         buf_offset when dumping the value transfered.
4139
4140 2002-08-20  Andrew Cagney  <[email protected]>
4141
4142         * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4143         * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4144         * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4145         * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4146         * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4147
4148 2002-08-14  Michael Snyder  <[email protected]>
4149
4150         * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4151
4152 2002-08-19  Elena Zannoni  <[email protected]>
4153
4154         * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4155         register.
4156         (P): New macro to define a register as a pseudo register.
4157         (R, R4, R8, R16, FR32, R64, R0): Updated.
4158         (struct variant): Add new fields for number of pseudo registers
4159         and number of total registers.
4160         (tot_num_registers): New macro replacing....
4161         (num_registers): ...deleted macro.
4162         (num_registers): New function.
4163         (num_pseudo_registers): New function.
4164         (variants): Update all variants to intialize new fields correctly.
4165         Postpone initialization of number of pseudo regs and real regs.
4166         (init_variants): New function.
4167         (rs6000_gdbarch_init): Initialize variants.  Update calculation of
4168         registers offsets.
4169
4170 2002-08-19  David Carlton  <[email protected]>
4171
4172         * valops.c (search_struct_field): Change error message to treat
4173         return value of 0 from value_static_field as meaning that field is
4174         optimized out.
4175         (value_struct_elt_for_reference): Ditto.
4176         * values.c (value_static_field): Treat an unresolved location the
4177         same as a nonexistent symbol.  Fix PR gdb/635.
4178         * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4179         enclosed.  Fix PR gdb/574.
4180         * MAINTAINERS: Add self to Write After Approval list.
4181
4182 2002-08-19  Andrew Cagney  <[email protected]>
4183
4184         * mips-tdep.c (mips_xfer_register): New function.
4185         (mips_n32n64_extract_return_value): Rewrite.
4186         (mips_gdbarch_init): For N32 and N64, set extract_return_value
4187         instead of deprecated_extract_return_value.
4188
4189 2002-08-19  Elena Zannoni  <[email protected]>
4190
4191         * rs6000-tdep.c (TDEP): Delete macro.
4192         (branch_dest): Replace use of TDEP macro with its body.
4193         (rs6000_pop_frame): Ditto.
4194         (rs6000_push_arguments): Ditto.
4195         (rs6000_skip_trampoline_code): Ditto.
4196         (rs6000_frame_saved_pc): Ditto.
4197         (rs6000_frame_chain): Ditto.
4198         (rs6000_register_name): Ditto.
4199         (rs6000_register_byte): Ditto.
4200         (rs6000_register_raw_size): Ditto.
4201         (rs6000_register_virtual_type): Ditto.
4202         (rs6000_register_convertible): Ditto.
4203         (rs6000_convert_from_func_ptr_addr): Ditto.
4204
4205 2002-08-19  Daniel Jacobowitz  <[email protected]>
4206
4207         * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4208         conditionally.
4209         (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4210         MIPS_LINUX_JB_ELEMENT_SIZE.
4211         * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4212         for MAX_REGISTER_RAW_SIZE arrays.
4213         (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4214         MIPS_LINUX_JB_ELEMENT_SIZE.
4215
4216 2002-08-19  Pierre Muller  <[email protected]>
4217
4218         * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4219
4220 2002-08-19  Aidan Skinner <[email protected]>
4221
4222         * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4223         ada-valprint.c ada-tasks.c.
4224         (YYFILES): Add ada-exp.y.
4225         (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4226         (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4227         (ada-exp.tab.o): New target.
4228                 
4229 2002-08-18  Andrew Cagney  <[email protected]>
4230
4231         * regcache.c (regcache_xfer_part): New function.
4232         (regcache_raw_read_part): New function.
4233         (regcache_raw_write_part): New function.
4234         (regcache_cooked_read_part): New function.
4235         (regcache_cooked_write_part): New function.
4236         * regcache.h (regcache_raw_read_part): Declare.
4237         (regcache_raw_write_part): Declare.
4238         (regcache_cooked_read_part): Declare.
4239         (regcache_cooked_write_part): Declare.
4240
4241 2002-08-18  Daniel Jacobowitz  <[email protected]>
4242
4243         * remote.c (remote_open_1): Add async_p.
4244         (remote_async_open_1): Delete.
4245         (open_remote_target): Delete.
4246         (remote_open, extended_remote_open): Update calls to remote_open_1.
4247         (remote_async_open, extended_remote_async_open): Call
4248         remote_open_1 instead of remote_async_open_1.
4249
4250 2002-08-19  Mark Kettenis  <[email protected]>
4251
4252         * blockframe.c: Fix a few coding standard violations.
4253
4254 2002-08-19  Mark Kettenis  <[email protected]>
4255
4256         * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4257         here from ...
4258         * config/i386/tm-i386sco5.h: ... here.  File removed.
4259         * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4260
4261         * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4262         * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4263         (TM_FILE): Set to tm-i386.h.
4264         * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4265         * config/i386/tm-i386v.h: Remove file.
4266         * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4267         instead of "i386/tm-i386v.h".
4268         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4269         * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4270         "i386/tm-i386v.h".
4271         (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4272         * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4273         "i386/tm-i386.h".
4274
4275 2002-08-18  Mark Kettenis  <[email protected]>
4276
4277         * config/i386/nm-i386v.h: Add protection against
4278         multiple-inclusion.
4279         (i386_register_u_addr): Remove prototype.
4280         (register_u_addr): New prototype.
4281         (REGISTER_U_ADDR): Redefine accordingly.
4282         * i386v-nat.c: Improve several comments.
4283         (i386_register_u_addr): Change signature and rename to
4284         register_u_addr.  Use FP_REGNUM_P.  Rewrite slightly to get rid of
4285         ubase variable.
4286
4287 2002-08-18  Andrew Cagney  <[email protected]>
4288
4289         * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4290         (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4291         * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4292         deprecated_extract_return_value.
4293         (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4294         rename mips_o32o64_push_arguments.
4295         (mips_gdbarch_init): Update.
4296         (mips_extract_return_value): Delete.
4297         (mips_o32_extract_return_value): Clone mips_extract_return_value.
4298         (mips_o64_extract_return_value): Clone mips_extract_return_value.
4299         (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4300         (mips_n32n64_extract_return_value): Clone
4301         mips_extract_return_value.
4302         (mips_store_return_value): Delete.
4303         (mips_o32_store_return_value): Clone mips_store_return_value.
4304         (mips_o64_store_return_value): Clone mips_store_return_value.
4305         (mips_eabi_store_return_value): Clone mips_store_return_value.
4306         (mips_n32n64_store_return_value): Clone mips_store_return_value.
4307
4308 2002-08-18  Aidan Skinner <[email protected]>
4309
4310         * ada-lang.c: Use gdb_string.h instead of <string.h>.
4311         * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4312                 
4313 2002-08-18  Aidan Skinner <[email protected]>
4314
4315         * ada-lang.c: Run through gdb_indent.sh.
4316         * ada-lang.h: Run through gdb_indent.sh.
4317         * ada-tasks.c: Run through gdb_indent.sh.
4318         * ada-typeprint.c: Run through gdb_indent.sh.
4319         * ada-valprint.c: Run through gdb_indent.sh.
4320
4321 2002-08-18  Andrew Cagney  <[email protected]>
4322
4323         * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4324         ABI.
4325
4326 2002-08-18  Mark Kettenis  <[email protected]>
4327
4328         * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4329
4330         * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4331         * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4332
4333         * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4334         write_register_gen instead of write_register_bytes.
4335
4336         * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4337         i[3456]-*-osf1mk* configurations have been made obsolete.
4338         * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4339         i[3456]86-*-osf1mk* hosts obsolete.
4340         * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4341         targets obsolete.
4342         * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4343         config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4344         config/i386/i386m3.mt, config/i386/nm-m3.h,
4345         config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4346         config/i386/i386mk.mh, config/i386/i386mk.mt,
4347         config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4348         obsolete.
4349         * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4350         * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4351         (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4352
4353 2002-08-18  Andrew Cagney  <[email protected]>
4354
4355         * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4356         (hppa_value_returned_from_stack): Declare.
4357         (hppa_extract_return_value): Declare.
4358         * config/pa/hppa.mt: New file.
4359         * configure.tgt: Recognize hppa*-*-*.
4360         * MAINTAINERS: Change HPPA target to hppa-elf.  Still broken.
4361
4362 2002-08-18  Mark Kettenis  <[email protected]>
4363
4364         * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4365         comment.
4366
4367 2002-08-17  Mark Kettenis  <[email protected]>
4368
4369         * top.c (gdb_rl_operate_and_get_next): Make sure
4370         operate-and-get-next functions correctly even when the history
4371         list is completely filled.
4372
4373 2002-08-18  Andrew Cagney  <[email protected]>
4374
4375         * MAINTAINERS (Target Instruction Set Architectures): Rename
4376         Target/Architectures.  Replace vax-dec-vms5.5 with vax-netbsd.
4377         Replace s390-linux with s390-linux-gnu.  Remove i386-aout,
4378         mcore-pe, mips64-elf, sparc64-elf.  Remove i586-pc-msdosdjgpp,
4379         already listed under Host/Native.
4380
4381         * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4382         i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*.  Add
4383         mips*-*-*.
4384
4385 2002-08-17  Andrew Cagney  <[email protected]>
4386
4387         * config/ia64/ia64.mt: New file.
4388         * config/alpha/alpha.mt: New file.
4389         * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4390         ia64-linux-gnu.  Mention that ia64-elf is broken.
4391         * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4392
4393 2002-08-17  Mark Kettenis  <[email protected]>
4394
4395         * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4396         generic_func_frame_valid instead of func_frame_valid.
4397
4398 2002-08-16  Joel Brobecker  <[email protected]>
4399
4400         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4401         procfs appears to be broken when debugging on multi-processor
4402         machines. So enable software single stepping in order to avoid
4403         using the procfs interface to do next/step operations, using
4404         internal breakpoints instead.
4405
4406         * infrun.c (handle_inferior_event): Readjust the stop_pc by
4407         DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4408         make this pc address equal to the value it would have if the
4409         system stepping capability was used. Also set a new flag used
4410         to ensure that we don't readjust the PC one more time later.
4411
4412         * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4413         address by DECR_PC_AFTER_BREAK when software single step is
4414         in use for this architecture, as this has already been taken
4415         care of in handle_inferior_event().
4416
4417 2002-08-16  Joel Brobecker  <[email protected]>
4418
4419         * infrun.c (handle_inferior_event): Minor reformatting, to make
4420         a rather long condition expression easier to read.
4421
4422 2002-08-16  Andrew Cagney  <[email protected]>
4423
4424         * Makefile.in (gdbtk.o): Move to end of file.
4425         (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4426         (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4427         (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4428         (gdbtk-wrapper.o, gdbres.o): Ditto.
4429
4430 2002-08-16  Andrew Cagney  <[email protected]>
4431
4432         * Makefile.in (copying.o): Separate out compile rule.
4433         (hpux-thread.o, procfs.o, signals.o): Ditto.
4434         (v850ice.o, z8k-tdep.o): Ditto.
4435         (tui-file.o): Move to TUI section.
4436         (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4437         (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4438
4439 2002-08-16  Joel Brobecker  <[email protected]>
4440
4441         * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4442         skip_trampoline_code, for better namespace-proofing.   
4443
4444         * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4445
4446 2002-08-16  Joel Brobecker  <[email protected]>
4447
4448         * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4449
4450 2002-08-16  Joel Brobecker  <[email protected]>
4451
4452         * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4453         signal, check whether we hit a breakpoint before checking for a
4454         single step breakpoint. Otherwise, GDB fails to notice that a
4455         breakpoint has been hit when stepping onto a breakpoint.
4456
4457 2002-08-16  Keith Seitz  <[email protected]>
4458
4459         * gdb-events.sh (clear_gdb_event_hooks): New function.
4460         * gdb-events.c: Regenerate.
4461         * gdb-events.h: Regenerate.
4462
4463 2002-08-16  Andrew Cagney  <[email protected]>
4464
4465         * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4466         not_a_sw_breakpoint.
4467         * breakpoint.h (bpstat_stop_status): Add parameter names.
4468
4469 2002-08-16  Grace Sainsbury  <[email protected]>
4470
4471         * remote.c (remote_insert_hw_breakpoint)
4472         (remote_remove_hw_breakpoint): Fix calculation of length field
4473         for Z-packet.
4474
4475 2002-08-15  Michael Snyder  <[email protected]>
4476
4477         * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4478         (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4479         (supply_fpregset): Ditto.
4480         
4481         * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL, 
4482         REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE, 
4483         MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4484         (TARGET_READ_SP): Delete.
4485         (DO_REGISTERS_INFO): Delete.
4486         (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4487         Delete.
4488         (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4489         from macros to functions.
4490
4491         * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4492         (mips_register_convertible, mips_register_convert_to_virtual,
4493         mips_register_convert_to_raw): Make static.
4494         (mips_read_sp): New function.
4495         (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4496         (mips_do_registers_info): Make static.
4497         (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4498         (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4499         (mips_register_convert_from_type, mips_register_convert_to_type):
4500         New functions.
4501         (mips_gdbarch_init): Set up function_start_offset, 
4502         register_virtual_size, pc_in_sigtramp.
4503
4504 2002-08-15  Andrew Cagney  <[email protected]>
4505
4506         * infcmd.c (vector_info): New function.
4507         (_initialize_infcmd): Add command "info vector".
4508         (print_vector_info): New function.
4509
4510         * gdbarch.sh (PRINT_VECTOR_INFO): New method
4511         * gdbarch.h, gdbarch.c: Regenerate.
4512
4513 2002-08-15  Andrew Cagney  <[email protected]>
4514
4515         * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4516         ``print_all''.  Only print vector registers when ``print_all''.
4517
4518 2002-08-15  Andrew Cagney  <[email protected]>
4519
4520         * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4521         * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4522
4523         * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4524         Add `args' parameter.
4525         * gdbarch.h, gdbarch.c: Regenerate.
4526         
4527         * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4528         
4529         * infcmd.c (float_info): Call print_float_info.
4530         (print_float_info): New function.  By default, print the
4531         floating-point registers.
4532
4533         * arch-utils.h (default_print_float_info): Delete declaration.
4534         * arch-utils.c (default_print_float_info): Delete function.
4535         
4536 2002-08-16  Mark Kettenis  <[email protected]>
4537
4538         * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4539         out define.
4540
4541         * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4542         FRAME.
4543
4544         * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4545         * configure.host: Make i[3456]86-*-aix host obsolete.
4546         * configure.tgt: Make i[3456]86-*-aix target obsolete.
4547         * config/i386/i386aix.mh, config/i386/i386aix.mt,
4548         config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4549         config/i386/xm-i386aix.h: Make files obsolete.
4550         * i386aix-nat.c: Make file obsolete.
4551         * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4552         (i386aix-nat.o): Make target obsolete.
4553
4554         * config/i386/nm-gnu.h: Removed.
4555         * config/i386/nm-i386gnu.h: New file.
4556         (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4557         THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4558         Moved here from ...
4559         * config/i386/tm-i386gnu.h: ... here.  Removed.
4560         * config/i386/xm-i386gnu.h: Removed.
4561         * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4562         (NAT_FILE): Set to nm-i386gnu.h.
4563         * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4564         * i386-tdep.c: New file.
4565         * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4566         (i386gnu-tdep.o): Specify dependencies.
4567
4568 2002-08-15  Mark Kettenis  <[email protected]>
4569
4570         * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4571         "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4572         Adjust a few comments to reflect reality a bit closer.
4573         (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4574         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4575         HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4576         target_insert_watchpoint, target_remove_watchpoint):
4577         Move defines to ...
4578         * config/i386/nm-i386sco5.h: ... here.
4579         (kernel_u_size): Add prototype.  Improve a few comments and add
4580         protection against multiple inclusion.
4581         
4582         * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4583         out define.
4584
4585         * uw-thread.c (SP_ARG0): Define if not already defined.
4586         * config/i386/tm-i386.h (SO_ARG0): Remove define.
4587
4588         * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4589
4590         * config/i386/tm-i386.h: Don't include "regcache.h".
4591
4592         * i387-tdep.h (i387_print_float_info): New prototype.
4593         * i387-tdep.c (print_i387_value, print_i387_ext,
4594         print_i387_status_word, print_i387_control_word): Add `struct
4595         ui_file *' argument and use it for output.
4596         (i387_print_float_info): Renamed from i387_float_info.  Add
4597         `struct gdbarch *' and `struct ui_file *' arguments and use the
4598         latter for output.
4599         * i386-tdep.c: Include "i387-tdep.h".
4600         (i386_gdbarch_init): Set print_float_info.
4601         * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4602         (FLOAT_INFO): Remove define.
4603
4604 2002-08-13  Michael Snyder  <[email protected]>
4605
4606         * mips-tdep.c (mips_push_arguments): Rename to
4607         mips_eabi_push_arguments, and tune for EABI.
4608         (MIPS_REGS_HAVE_HOME_P): Delete.
4609         (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4610         (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4611         Delete references to mips_regs_have_home_p.
4612
4613 2002-08-14  Keith Seitz  <[email protected]>
4614
4615         * Makefile.in (install-gdbtk): Create insight plugin directory.
4616         Install plugins.tcl file.
4617
4618 2002-08-14  Keith Seitz  <[email protected]>
4619
4620         * configure.in: Move SUBDIRS to near top of the file so that
4621         --enable options may add things to it.
4622         If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4623         * configure: Regenerate.
4624
4625 2002-08-13  Michael Snyder  <[email protected]>
4626
4627         * mips-tdep.c (mips_o32o64_push_arguments):  New function, 
4628         cloned from mips_push_arguments, tuned for o32/o64 ABI.
4629         (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4630
4631 2002-08-13  Andrew Cagney  <[email protected]>
4632
4633         * vax-tdep.c (vax_get_saved_register): Delete function.
4634         (vax_gdbarch_init): Update.
4635         * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4636         (ns32k_gdbarch_init): Update.
4637         * alpha-tdep.c (alpha_get_saved_register): Delete function.
4638         (alpha_gdbarch_init): Update.
4639
4640 2002-08-13  Andrew Cagney  <[email protected]>
4641
4642         * regcache.c (init_regcache_descr): Overallocate the
4643         raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4644         (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4645         nr_raw_registers.
4646         (set_register_cached): Add range checking assertions.  Use
4647         current_regcache.
4648
4649 2002-08-13  Mark Kettenis  <[email protected]>
4650
4651         * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4652         numbers for MMX registers.
4653
4654 2002-08-13  Andrew Cagney  <[email protected]>
4655
4656         * i386-tdep.c (i386_gdbarch_init): Use
4657         generic_unwind_get_saved_register.
4658
4659 2002-08-13  Kevin Buettner  <[email protected]>
4660
4661         * procfs.c (procfs_can_use_hw_breakpoint): New function.
4662         (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4663         target vector.
4664         * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4665         Delete.  Add comment regarding this now-deleted target method.
4666
4667 2002-08-13  Stephane Carrez  <[email protected]>
4668
4669         * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4670         (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4671         (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4672         real PC and the page number (if it's within the memory bank window).
4673         (m68hc11_pseudo_register_write): Likewise when saving.
4674         (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4675         (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4676         (m68hc11_register_raw_size): And use 32-bit for it.
4677         (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4678         16K memory bank is used by the prog; also use the virtual pc.
4679
4680 2002-08-13  Stephane Carrez  <[email protected]>
4681
4682         * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4683         (m68hc11_gdbarch_init): Install it in gdbarch.
4684         (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4685         (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4686         (MSYMBOL_SIZE): New for documentation.
4687         (insn_return_kind): Enum to specify how a function returns.
4688         (frame_extra_info): Cleanup and record the return mode.
4689         (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page 
4690         register in address computation.
4691         (m68hc11_get_return_insn): New to obtain the return instruction used
4692         by the function.
4693         (m68hc11_frame_init_saved_regs): Take into account the return
4694         instruction used by the function for far and interrupt functions.
4695         (m68hc11_init_extra_frame_info): Take into account page register.
4696         (m68hc11_frame_args_address): Adjust according to the return mode.
4697         (show_regs): Print page register only when it's used.
4698
4699 2002-08-13  Stephane Carrez  <[email protected]>
4700
4701         * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4702         (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4703         (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4704         registers.
4705         (m68hc11_register_raw_size): Likewise.
4706
4707 2002-08-13  Andrew Cagney  <[email protected]>
4708
4709         * i386-tdep.c (i386_register_name): Handle mmx registers.
4710         (mmx_regnum_p): New function.
4711         (i386_mmx_names): New array.
4712         (mmx_num_regs): New variable.
4713         (i386_pseudo_register_read): New function.
4714         (i386_pseudo_register_write): New function.
4715         (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4716
4717         * regcache.c (regcache_raw_read_unsigned): New function.
4718         (regcache_raw_read_signed): New function.
4719         * regcache.h (regcache_raw_read_unsigned): Declare.
4720         (regcache_raw_read_signed): Declare.
4721
4722 2002-08-13  Andrew Cagney  <[email protected]>
4723
4724         * regcache.c (regcache_raw_read_as_address): Delete function.
4725         (regcache_cooked_read_signed): New function.
4726         (regcache_cooked_read_unsigned): New function.
4727         * regcache.h (regcache_cooked_read_signed): Declare.
4728         (regcache_cooked_read_unsigned): Declare.
4729         (regcache_raw_read_as_address): Delete declaration.
4730
4731         * blockframe.c (generic_read_register_dummy): Use
4732         regcache_cooked_read_unsigned.
4733         * i386-tdep.c (i386_extract_struct_value_address): Use
4734         regcache_cooked_read_unsigned.
4735
4736 2002-08-13  Stephane Carrez  <[email protected]>
4737
4738         * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4739         double sizes according to ELF ABI flags.
4740         (gdbarch_tdep): Record elf_flags.
4741
4742 2002-08-13  Stephane Carrez  <[email protected]>
4743
4744         * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4745         (m6812_prolog): They can appear in 68HC12 function prologue.
4746         (m68hc11_frame_chain): Cleanup.
4747
4748 2002-08-12  Andrew Cagney  <[email protected]>
4749
4750         * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4751         declarations.
4752         * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4753         (i386_linux_register_raw_size): Delete function.
4754         (i386_linux_init_abi): Update.
4755         * i386-tdep.c (i386_register_raw_size): Delete function.
4756         (i386_register_byte): Delete function.
4757         (i386_gdbarch_init): Update.
4758         (i386_register_size): Delete array.
4759         (i386_register_offset): Delete array.
4760
4761         * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4762         (REGISTER_RAW_SIZE): Delete macro.
4763         * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4764         (REGISTER_BYTE): Delete macro.
4765
4766 2002-08-11  Aidan Skinner <[email protected]>
4767
4768         * ada-lang.c (ada_lookup_partial_symbol)
4769         (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4770         prototype names so that grep ^func works properly.
4771
4772         * ada-lang.c (ada_array_element_type)
4773         (ada_lookup_partial_symbol): Fix typos in parameter list.
4774
4775         * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4776         Fix prototype names so that grep ^func works properly.
4777         
4778 2002-08-10  Andrew Cagney  <[email protected]>
4779             Elena Zannoni  <[email protected]>
4780             Martin M. Hunt  <[email protected]>
4781
4782         * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4783         (build_builtin_type_vec128i): Set the vector bit.
4784         * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4785         * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4786         (build_builtin_type_vec64): New function.
4787         (build_builtin_type_vec64i): New function.
4788         (build_gdbtypes): Initialize builtin_type_vec64 and
4789         builtin_type_vec64i.
4790
4791 2002-08-09  Andrew Cagney  <[email protected]>
4792
4793         * regcache.c (regcache_dump): Compare the register offset
4794         with REGISTER_BYTE.
4795         * arch-utils.c (generic_register_byte): New function.
4796         * arch-utils.h (generic_register_byte): Declare.
4797         * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4798         * gdbarch.h, gdbarch.c: Regenerate.
4799
4800 2002-08-09  Andrew Cagney  <[email protected]>
4801
4802         * regcache.c: Include "gdbcmd.h"
4803         (_initialize_regcache): Add commands "maintenance print
4804         registers", "maintenance print raw-registers" and "maintenance
4805         print cooked-registers".
4806         (enum regcache_dump_what): Define.
4807         (dump_endian_bytes): New function.
4808         (regcache_dump): New function.
4809         (regcache_print): New function.
4810         (maintenance_print_registers): New function.
4811         (maintenance_print_raw_registers): New function.
4812         (maintenance_print_cooked_registers): New function.
4813         * Makefile.in (regcache.o): Update dependencies.
4814
4815 2002-08-09  Michael Snyder  <[email protected]>
4816
4817         * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4818         (mips_push_arguments): Correct some comments.  Use paddr_nz
4819         for printing addresses in debug output.  Replace static
4820         allocation using MAX_REGISTER_RAW_SIZE with alloca.
4821         (mips_n32n64_push_arguments): New function, cloned from
4822         mips_push_arguments and tuned for the n32/n64 ABI.
4823         (mips_push_register): Buffer needs dynamic allocation.
4824         (mips_print_register): Ditto.
4825         (do_gp_register_row): Ditto.
4826         (mips_store_return_value): Ditto.
4827         (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4828
4829 2002-08-09  Don Howard  <[email protected]>
4830
4831         * memattr.c (mem_info_command): Print special case of upper bound
4832         as max CORE_ADDR + 1.
4833
4834 2002-08-08  Michael Snyder  <[email protected]>
4835
4836         * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only 
4837         returns structs by ref if they're too big to fit in two registers.
4838
4839 2002-08-09  Kevin Buettner  <[email protected]>
4840
4841         * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4842         saved regs value.
4843         (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4844         mips_find_saved_regs().
4845         (mips_pop_frame): Likewise.
4846
4847 2002-08-09  Kevin Buettner  <[email protected]>
4848
4849         * blockframe.c (frame_saved_regs_register_unwind): Revise
4850         PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4851         frames are in use.
4852
4853 2002-08-09  Grace Sainsbury  <[email protected]>
4854         
4855         * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4856         T-packets; the 'a' is not taken as a register number.
4857         (remote_check_watch_resources, remote_stopped_by_watchpoint)
4858         (remote_stopped_data_address): New functions; add to target
4859         vector.
4860         (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4861         prototypes to match other implementations of this
4862         function. replace integer argument with pointer -- the length
4863         field in the Z-packet is the length of what is pointed to or 1 if
4864         pointer is null. Add to target vector.
4865         (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4866         target vector.
4867
4868         From Mark Salter:
4869         * remote.c (remote_wait): Add support to extract optional
4870         watchpoint information from T-packet. Ignore unrecognized
4871         optional info in T-packet.
4872         (remote_async_wait): Ditto.
4873
4874 2002-08-09  Corinna Vinschen  <[email protected]>
4875
4876         * cli/cli-dump.c: Change fopen modes to use binary open modes
4877         as defined in include/fopen-bin.h throughout.
4878
4879 2002-08-08  Michael Snyder  <[email protected]>
4880
4881         * mips-tdep.c: Minor whitespace and indentation clean-ups.
4882
4883 2002-08-08  Kevin Buettner  <[email protected]>
4884
4885         * doublest.c (store_floating): Avoid floatformat_from_doublest()
4886         assertion failure by returning early after a warning.
4887
4888 2002-08-08  Kevin Buettner  <[email protected]>
4889
4890         * mips-tdep.c (mips_find_saved_regs): Make static.
4891         (mips_frame_init_saved_regs): New function.
4892         (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4893         * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4894         (mips_find_saved_regs): Delete declaration.
4895
4896 2002-08-08  Grace Sainsbury  <[email protected]>
4897
4898         * remote.c (remote_wait, remote_async_wait): Change
4899         thread_num from int to ULONGEST.
4900         (unpack_varlen_hex): Change result parameter from
4901         int * to ULONGEST *.
4902
4903 2002-08-08  Andrew Cagney  <[email protected]>
4904
4905         * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4906         powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4907         powerpc*-*-*.
4908         * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4909
4910 2002-08-08  Andrew Cagney  <[email protected]>
4911
4912         * gcore.c (override_derive_stack_segment): Delete variable.
4913         (preempt_derive_stack_segment): Delete function.
4914         (derive_stack_segment): Delete function.
4915         (default_derive_stack_segment): Renamed to derive_stack_segment.
4916         (override_derive_heap_segment): Delete variable.
4917         (preempt_derive_heap_segment): Delete function.
4918         (derive_heap_segment): Delete function.
4919         (default_derive_heap_segment): Rename to derive_heap_segment.
4920
4921 2002-08-06  Michael Snyder  <[email protected]>
4922
4923         * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4924         * mips-tdep.c (mips_EABI_use_struct_convention, 
4925         mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4926         New functions.  (mips_use_struct_convention): Delete.
4927         (mips_gdbarch_init): set use_gdbarch_convention.
4928
4929 2002-08-06  Michael Snyder  <[email protected]>
4930
4931         *  mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4932         (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr, 
4933         mips_o32_reg_struct_has_addr): New functions.
4934         (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4935
4936 2002-08-07  Andrew Cagney  <[email protected]>
4937
4938         * regcache.c (pseudo_register): Delete function.
4939         (fetch_register): Delete function.
4940         (store_register): Delete function.
4941         (regcache_raw_read, legacy_read_register_gen): Use
4942         target_fetch_registers instead of fetch_register.
4943         (legacy_write_register_gen, regcache_raw_write): Use
4944         target_store_register instead of store_register.
4945         (write_register_bytes): Ditto.
4946
4947         * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4948         (STORE_PSEUDO_REGISTER): Delete.
4949         * gdbarch.h, gdbarch.c: Regenerate.
4950
4951 2002-08-06  Corinna Vinschen  <[email protected]>
4952
4953         * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4954         write dump file binary.
4955
4956 2002-08-05  Michael Snyder  <[email protected]>
4957
4958         *  mips-tdep.c (mips_find_saved_regs): Adjust stack according
4959         to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64.  Enhance comment.
4960         (mips_gdbarch_init): Set N32 target to be mips64.
4961
4962 2002-08-06  Kevin Buettner  <[email protected]>
4963
4964         * frame.c (find_saved_register): Break out of loop once saved
4965         register address is found.  Don't mention sparc in loop comment
4966         anymore.
4967
4968 2002-08-06  Kevin Buettner  <[email protected]>
4969
4970         * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4971         mips_default_saved_regsize to 8.
4972
4973 2002-08-06  Andrew Cagney  <[email protected]>
4974
4975         * gcore.c: Do not include <sys/procfs.h>.
4976         * Makefile.in (gcore.o): Update dependencies.
4977
4978 2002-08-06  Andrew Cagney  <[email protected]>
4979
4980         * configure.tgt: Make arc-*-* obsolete.
4981         * NEWS: Mention that arc-*-* has been identifed as obsolete.
4982         * MAINTAINERS: Make arc-elf obsolete.
4983         * arc-tdep.c: Make file obsolete.
4984         * config/arc/arc.mt: Ditto.
4985         * config/arc/tm-arc.h: Ditto.
4986
4987 2002-08-05  Theodore A. Roth  <[email protected]>
4988
4989         * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4990
4991 2002-08-05  Andrew Cagney  <[email protected]>
4992
4993         * mcore-tdep.c (mcore_gdbarch_init): Use
4994         generic_unwind_get_saved_register instead of
4995         generic_get_saved_register.
4996         * v850-tdep.c (v850_gdbarch_init): Ditto.
4997         * frv-tdep.c (frv_gdbarch_init): Ditto.
4998         * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4999         * s390-tdep.c (s390_gdbarch_init): Ditto.
5000         * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5001         * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5002         * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5003
5004 2002-08-05  Joel Brobecker  <[email protected]>
5005
5006         * objfiles.h: Add missing #include "symfile.h"
5007
5008         * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5009
5010 2002-08-04  Andrew Cagney  <[email protected]>
5011
5012         From 2002-08-01 david carlton <[email protected]>:
5013         * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5014         of FIELD_BITSIZE.
5015
5016 2002-08-04  Daniel Jacobowitz  <[email protected]>
5017
5018         * NEWS: Cleanup and nitpick.
5019
5020 2002-08-03  Andrew Cagney  <[email protected]>
5021
5022         * NEWS: Cleanup.  Use *-linux*-gnu*.  Only use `*' for headings.
5023
5024 2002-08-03  Andrew Cagney  <[email protected]>
5025
5026         * Makefile.in (gdbtk-bp.o): Update dependencies.
5027         (gdbtk-register.o): Ditto.
5028         (gdbtk-varobj.o): Ditto.
5029
5030 2002-08-03  Andrew Cagney  <[email protected]>
5031
5032         * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5033         m68hc11_fetch_pseudo_register.
5034         (m68hc11_pseudo_register_write): Replace
5035         m68hc11_store_pseudo_register.
5036         (m68hc11_gdbarch_init): Update.
5037
5038 Fri Aug  2 15:53:50 2002  Andrew Cagney  <[email protected]>
5039
5040         * gdbarch.sh: Include "gdb_string.h".
5041         * gdbarch.c: Regenerate.
5042
5043         * regcache.c: Include "gdb_string.h".
5044         * ax-general.c: Ditto.
5045         * varobj.c: Ditto.
5046         * std-regs.c: Ditto.
5047         * fbsd-proc.c: Ditto.
5048         * thread.c: Ditto.
5049
5050         * Makefile.in (regcache.o): Update dependencies.
5051         (thread.o, gdbarch.o): Ditto.
5052         (ax-general.o, gdbarch.o): Ditto.
5053         (varobj.o, std-regs.o): Ditto.
5054         (fbsd-proc.o): Specify dependencies.
5055
5056 2002-08-02  Andrew Cagney  <[email protected]>
5057
5058         * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5059         regnum.
5060         (regcache_cooked_write): Ditto.
5061
5062 2002-08-02  Andrew Cagney  <[email protected]>
5063
5064         * regcache.c (regcache_cooked_read): New function.
5065         (regcache_cooked_write): New function.
5066         (read_register_gen): Rewrite using regcache_cooked_read.
5067         (write_register_gen): Rewrite using regcache_cooked_write.
5068
5069         * regcache.h (regcache_cooked_read, regcache_cooked_write):
5070         Declare.
5071
5072 2002-08-02  Andrew Cagney  <[email protected]>
5073
5074         * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5075         Replace the architecture methods register_read and register_write.
5076         * gdbarch.h, gdbarch.c: Regenerate.
5077         * regcache.c (init_regcache_descr): Update.
5078         (read_register_gen): Update.
5079         (write_register_gen): Update.
5080         (supply_register): Update comment.
5081
5082         * sh-tdep.c (sh_gdbarch_init): Update.
5083         (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5084         `regcache' and `gdbarch' parameters.  Make `buffer' a void
5085         pointer.  Update code.
5086         (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5087         `regcache' and `gdbarch' parameters.  Make `buffer' a constant
5088         void pointer.  Update code.
5089         (sh64_register_write): Delete.
5090         (sh4_register_read): Delete.
5091         (sh64_register_read): Delete.
5092         (sh4_register_write): Delete.
5093         (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5094         void pointer, `to' parameter a void pointer.
5095         (sh_sh64_register_convert_to_raw): Ditto.
5096
5097 2002-08-01  Kevin Buettner  <[email protected]>
5098
5099         * mips-tdep.c (mips_register_virtual_type): Use architecture
5100         invariant return values.
5101
5102 2002-08-01  Andrew Cagney  <[email protected]>
5103
5104         * linux-proc.c: Include "gdb_string.h".
5105         * Makefile.in (linux-proc.o): Update dependency list.
5106
5107 2002-08-01  Kevin Buettner  <[email protected]>
5108
5109         * mips-tdep.c (mips_gdbarch_init): Add comments.  Fix typo in
5110         comment.
5111
5112 2002-08-01  Grace Sainsbury  <[email protected]>
5113
5114         * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5115         to_insert_watchpoint, to_remove_watchpoint,
5116         to_stopped_by_watchpoint, to_stopped_data_address,
5117         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5118         target vecctor. Define their corresponding macros so they call
5119         them.
5120         
5121         * target.c: Add default and debug versions of for
5122         to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5123         to_insert_watchpoint, to_remove_watchpoint,
5124         to_stopped_by_watchpoint, to_stopped_data_address,
5125         to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5126
5127 2002-08-01  Kevin Buettner  <[email protected]>
5128
5129         * mips-tdep.c (mips_register_virtual_type): New function.
5130         (mips_gdbarch_init): Register mips_register_virtual_type()
5131         with gdbarch machinery.
5132         * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5133         this file instead of tm-bigmips.h.
5134         (MIPS_REGSIZE): Delete this macro.
5135         (REGISTER_VIRTUAL_TYPE): Delete macro.  Undef macro so that
5136         multiarch version in mips-tdep.c will be found.
5137
5138 2002-08-01  Andrew Cagney  <[email protected]>
5139
5140         * NEWS: Menion that CHILL has been made obsolete.
5141
5142         * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5143         * stabsread.c (read_range_type): Ditto.
5144         * gdbtypes.h: Ditto.
5145         * language.c (binop_type_check): Ditto.
5146         (binop_result_type): Ditto.
5147         (integral_type): Ditto.
5148         (character_type): Ditto.
5149         (string_type): Ditto.
5150         (boolean_type): Ditto.
5151         (structured_type): Ditto.
5152         (lang_bool_type): Ditto.
5153         (binop_type_check): Ditto.
5154         * language.h (_LANG_chill): Ditto.
5155         * dwarfread.c (set_cu_language): Ditto.
5156         * dwarfread.c (CHILL_PRODUCER): Ditto.
5157         * dwarfread.c (handle_producer): Ditto.
5158         * expression.h (enum exp_opcode): Ditto.
5159         * eval.c: Ditto for comments.
5160         * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5161         * expprint.c (print_subexp): Ditto.
5162         (print_subexp): Ditto.
5163         * valops.c (value_cast): Ditto.
5164         (search_struct_field): Ditto.
5165         * value.h (COERCE_VARYING_ARRAY): Ditto.
5166         * symfile.c (init_filename_language_table): Ditto.
5167         (add_psymbol_with_dem_name_to_list): Ditto.
5168         * valarith.c (value_binop): Ditto.
5169         (value_neg): Ditto.
5170         * valops.c (value_slice): Ditto.
5171         * symtab.h (union language_specific): Ditto.
5172         (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5173         (SYMBOL_DEMANGLED_NAME): Ditto.
5174         (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5175         * defs.h (enum language): Ditto.
5176         * symtab.c (got_symtab): Ditto.
5177         * utils.c (fprintf_symbol_filtered): Ditto.
5178
5179         * ch-typeprint.c: Make file obsolete.
5180         * ch-valprint.c: Make file obsolete.
5181         * ch-lang.h: Make file obsolete.
5182         * ch-exp.c: Make file obsolete.
5183         * ch-lang.c: Make file obsolete.
5184
5185         * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5186         CHILL_LIB.
5187         (TARGET_FLAGS_TO_PASS): Ditto.
5188         (CHILLFLAGS): Obsolete.
5189         (CHILL): Obsolete.
5190         (CHILL_FOR_TARGET): Obsolete.
5191         (CHILL_LIB): Obsolete.
5192         (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5193         ch-valprint.c.
5194         (HFILES_NO_SRCDIR): Remove ch-lang.h.
5195         (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5196         ch-lang.o.
5197         (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5198         targets.
5199
5200 2002-07-31  Joel Brobecker  <[email protected]>
5201
5202         * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5203         This does not change anything at the moment, but will be helpful
5204         later when full Ada support is integrated.
5205
5206 2002-07-31  Kevin Buettner  <[email protected]>
5207
5208         * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5209         help message.
5210
5211 2002-07-31  Kevin Buettner  <[email protected]>
5212
5213         * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5214         and save it in a local variable.  Use variable in later test.
5215
5216 2002-07-31  Kevin Buettner  <[email protected]>
5217
5218         * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5219         test.  (Thanks to Daniel Jacobowitz.)
5220         
5221 2002-07-31  Kevin Buettner  <[email protected]>
5222
5223         * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5224         (mips_abi_strings): Add "n64".
5225         (mips_gdbarch_init): Add test for n64 abi.  Add MIPS_ABI_N64 case.
5226
5227 2002-07-31  Kevin Buettner  <[email protected]>
5228
5229         * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5230         (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5231
5232 2002-07-31  Kevin Buettner  <[email protected]>
5233
5234         * utils.c (host_pointer_to_address, address_to_host_pointer):
5235         Use gdb_assert() instead of explicit call to internal_error().
5236
5237 2002-07-30  Kevin Buettner  <[email protected]>
5238
5239         * Makefile.in (rs6000-nat.o): Update dependencies.
5240
5241         From Nicholas Duffek:
5242         * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5243         (aix-thread.o): New rule.
5244         * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5245         * config/powerpc/aix432.mh: New file.
5246
5247 2002-07-30  Daniel Jacobowitz  <[email protected]>
5248
5249         * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5250         (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5251         (fetch_core_registers, ppc_linux_supply_gregset)
5252         (ppc_linux_supply_fpregset): New functions.
5253         (ppc_linux_regset_core_fns): New.
5254         (_initialize_ppc_linux_tdep): Call add_core_fns.
5255         * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5256         and ppc_linux_supply_gregset.
5257         * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5258         (supply_fpregset): Call ppc_linux_supply_fpregset.
5259         * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5260         corelow.o.
5261         * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5262
5263 2002-07-30  Daniel Jacobowitz  <[email protected]>
5264
5265         * symtab.c (lookup_symbol): Demangle before lowercasing.
5266
5267 2002-07-30  Andrew Cagney  <[email protected]>
5268
5269         * symtab.h: Replace #include "gdb_obstack.h" with opaque
5270         declaration.
5271         * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5272         * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5273         * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5274         * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5275         "gdb_string.h".
5276         * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5277         (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5278         (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5279         (avr-tdep.o, mon960-rom.o): Ditto.
5280         (aout_stabs_gnu_h): Define.
5281         (symtab_h): Remove $(gdb_obstack_h).
5282
5283 2002-07-30  Jim Blandy  <[email protected]>
5284
5285         Patch from David Carlton <[email protected]>:
5286         * gdbinit.in: Move the `dir' commands that add GDB's own source
5287         directory to the search path to the end, so that the `gdb' source
5288         directory will be searched first.
5289
5290 2002-07-29  Andrew Cagney  <[email protected]>
5291
5292         * gdb_obstack.h: New file.
5293         * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5294         (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5295         * objfiles.h: Include "gdb_obstack.h".
5296         * Makefile.in (gdb_obstack_h): Define.
5297         (symtab_h): Add $(gdb_obstack_h).
5298         (objfiles_h): Add $(gdb_obstack_h).
5299         
5300         * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5301         * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5302         * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5303         * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5304         * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5305         * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5306         * symfile.c, coffread.c, c-typeprint.c: Ditto.
5307         * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5308
5309         * Makefile.in (bcache.o): Update dependencies.
5310         (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5311         (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5312         (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5313         (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5314         (stabsread.o, symfile.o, symmisc.o): Ditto.
5315         (symtab.o, typeprint.o, macroexp.o): Ditto.
5316         (macrotab.o, mdebugread.o): Ditto.
5317         (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5318         (coff_ecoff_h, aout_aout64_h): Define.
5319         (aout_stabs_gnu_h, libaout_h): Define.
5320
5321 2002-07-29  Andrew Cagney  <[email protected]>
5322
5323         * regcache.c (struct regcache_descr): Rename nr_registers to
5324         nr_cooked_registers.  Revise comments describing the structure
5325         member fields.
5326         (init_regcache_descr): Update.
5327         (init_legacy_regcache_descr): Update.
5328         (read_register_gen, write_register_gen): When a cooked register in
5329         the raw register range, directly access the value from the raw
5330         register cache.
5331
5332 2002-07-29  Andrew Cagney  <[email protected]>
5333
5334         * z8k-tdep.c: Do not include "obstack.h".
5335         * h8300-tdep.c, h8500-tdep.c: Ditto.
5336         * m68hc11-tdep.c, sh-tdep.c: Ditto.
5337         * valprint.c, v850-tdep.c: Ditto.
5338         * d10v-tdep.c, mn10300-tdep.c: Ditto.
5339         * mn10200-tdep.c: Ditto.
5340
5341         * Makefile.in (z8k-tdep.o): Update dependencies.
5342         (m68hc11-tdep.o, valprint.o): Ditto.
5343         (v850-tdep.o, d10v-tdep.o): Ditto.
5344         (mn10300-tdep.o, sparc-tdep.o): Ditto.
5345         (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5346         (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5347         (sh_opc_h, gdb_sim_sh_h): Define.
5348         (elf_sh_h, elf_bfd_h): Define.
5349         (opcode_m68hc11_h): Define.
5350         (OPCODES_SRC, OPCODES_DIR): define.
5351         (OPCODES): Use $(OPCODES_DIR).
5352         (gdb_sim_d10v_h): Rename sim_d10v_h.
5353         (gdb_sim_arm_h): Rename sim_arm_h.
5354
5355 2002-07-26  Kevin Buettner  <[email protected]>
5356
5357         * utils.c (host_pointer_to_address, address_to_host_pointer):
5358         Change internal_error() message to indicate function responsible
5359         for the error.
5360
5361 2002-07-26  Kevin Buettner  <[email protected]>
5362
5363         * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5364         calls to local_hex_string_custom().
5365
5366 2002-07-26  Kevin Buettner  <[email protected]>
5367
5368         * irix5-nat.c: Move IRIX shared library support from here...
5369         * solib-irix.c: ...to here.  Revised substantially to work with
5370         generic solib framework.
5371
5372         * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5373         * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5374         * mips-irix-tdep.c: New file.
5375
5376         * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5377         (mips-irix-tdep.o, solib-irix.o): New rules.
5378         * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5379         solib-irix.o.
5380         * config/mips/irix6.mt (TDEPFILES): Likewise.
5381         * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5382
5383 2002-07-26  Kevin Buettner  <[email protected]>
5384
5385         * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5386         disabled (via ``#if 0'') includes.
5387
5388 2002-07-26  Kevin Buettner  <[email protected]>
5389
5390         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5391         (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5392         (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5393         Add support for the fpscr register.
5394         * rs6000-nat.c (regmap, fetch_inferior_registers)
5395         (store_inferior_registers, fetch_core_registers): Likewise.
5396
5397 2002-07-26  Kevin Buettner  <[email protected]>
5398
5399         * rs6000-nat.c (language.h): Include.
5400         (special_regs): Delete this array.
5401         (regmap): New function.
5402         (fetch_register, store_register):  Use regmap() to map gdb
5403         register numbers to ptrace register numbers.  Also, use
5404         outputs from regmap() to make decisions regarding type of
5405         ptrace() call to make.  In particular, don't compare against
5406         FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5407         (fetch_inferior_registers, store_inferior_registers): Where
5408         possible, obtain register numbers from tdep struct.  Don't
5409         refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5410         * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5411         (LAST_UISA_SP_REGNUM): Delete.
5412         
5413 2002-07-25  Kevin Buettner  <[email protected]>
5414
5415         * rs6000-nat.c (ppc-tdep.h): Include.
5416         (fetch_registers, store_register, fetch_core_registers): Don't
5417         access registers[] directly.  Instead, use supply_register() or
5418         regcache_collect() as appropriate.
5419         (find_toc_address): Format hex address with local_hex_string().
5420
5421 2002-07-25  Andrew Cagney  <[email protected]>
5422
5423         * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5424         bfd/elf32-frv.c.
5425
5426 2002-07-24  Tom Tromey  <[email protected]>
5427
5428         * jv-exp.y: Marked all strings with _().
5429         (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5430         internal_error.
5431         (MethodInvocation, CastExpression, parse_number, yyerror,
5432         java_type_from_name, push_expression_name, yylex): Typo fixes.
5433
5434 2002-07-24  Daniel Jacobowitz  <[email protected]>
5435
5436         * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5437         (tee_file_flush, tee_file_write, tee_file_fputs)
5438         (tee_file_isatty): New.
5439         * ui-file.h (tee_file_new): Add prototype.
5440
5441 2002-07-24  Aidan Skinner <[email protected]>
5442
5443         * ada-lang.c: Change k&r style function definitions to prototyped
5444         form.
5445         * ada-typeprint.c: Change k&r style function definitions to prototyped
5446         form.
5447         * ada-valprint.c: Change k&r style function definitions to prototyped
5448         form.
5449         
5450 2002-07-24  Andrew Cagney  <[email protected]>
5451
5452         * README: Remove reference to remote-bug.
5453         * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5454         remote-bug.c.
5455         (m88k-nat.o): Delete rule.
5456         (m88k-tdep.o): Delete rule.
5457         (remote-bug.o): Delete rule.
5458         * MAINTAINERS: Mark as obsolete.
5459         * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5460         * m88k-tdep.c: Make file obsolete.
5461         * config/m88k/m88k.mh: Ditto.
5462         * config/m88k/delta88v4.mh: Ditto.
5463         * config/m88k/delta88v4.mt: Ditto.
5464         * config/m88k/delta88.mt: Ditto.
5465         * config/m88k/delta88.mh: Ditto.
5466         * remote-bug.c: Ditto.
5467         * config/m88k/tm-delta88.h: Ditto.
5468         * config/m88k/nm-delta88v4.h: Ditto.
5469         * config/m88k/xm-delta88.h: Ditto.
5470         * config/m88k/xm-dgux.h: Ditto.
5471         * config/m88k/tm-m88k.h: Ditto.
5472         * config/m88k/nm-m88k.h: Ditto.
5473         * config/m88k/tm-delta88v4.h: Ditto.
5474         * m88k-nat.c: Ditto.
5475         * cxux-nat.c: Ditto.
5476         * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5477         and m88*-*-* obsolete.
5478         * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5479         m88*-*-* obsolete.
5480
5481 2002-07-24  Andrew Cagney  <[email protected]>
5482
5483         * findvar.c (extract_unsigned_integer): Make `addr' parameter
5484         constant.  Same for local pointer variables.
5485         (extract_signed_integer): Ditto.
5486         * defs.h (extract_unsigned_integer): Update.
5487         (extract_signed_integer): Update.
5488
5489 2002-07-24  Andrew Cagney  <[email protected]>
5490
5491         * regcache.c (regcache_raw_write): Change buf parameter to a
5492         constant void pointer.
5493         (regcache_raw_read): Change buf parameter to a void pointer.
5494         (legacy_write_register_gen): Change myaddr parameter a constant
5495         void pointer.
5496         (supply_register): Change val parameter to a const void pointer.
5497         * regcache.h (regcache_raw_write): Update declaration.
5498         (regcache_raw_read): Update declaration.
5499         (supply_register): Update declaration.
5500
5501 2002-07-24  Tom Tromey  <[email protected]>
5502
5503         * defs.h (gdb_readline_wrapper): Declare.
5504         * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5505         * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5506         * top.c (gdb_readline_wrapper): New function.
5507         (command_line_input): Use it.
5508
5509 2002-07-24  Andrew Cagney  <[email protected]>
5510
5511         * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5512         regcache_read and regcache_write.
5513         (regcache_raw_read_as_address): Replace regcache_read_as_address.
5514         * regcache.c: Update.
5515         * sh-tdep.c (sh64_push_arguments): Update comment.
5516         (sh_pseudo_register_read): Update.
5517         (sh_pseudo_register_write): Update.
5518         (sh4_register_read): Update.
5519         (sh4_register_write): Update.
5520         (sh64_pseudo_register_read): Update.
5521         (sh64_pseudo_register_write): Update.
5522         (sh64_register_read): Update.
5523         (sh64_register_write): Update.
5524         * i386-tdep.c (i386_extract_return_value): Update.
5525         (i386_extract_struct_value_address): Update.
5526         (i386_extract_return_value): Update.
5527         * blockframe.c (generic_read_register_dummy): Update.
5528         (generic_call_dummy_register_unwind): Update
5529         * infrun.c (write_inferior_status_register): Update.
5530
5531 2002-07-23  Jim Blandy  <[email protected]>
5532
5533         * parser-defs.h (expression_context_pc): Make this extern.
5534         (Thanks to Michael Snyder.)
5535
5536 2002-07-23  Andrew Cagney  <[email protected]>
5537
5538         GDB 5.2.1 released from 5.2 branch.
5539         * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5540         * README: Update to mention 5.2.1.
5541
5542 2002-07-23  Mark Salter  <[email protected]>
5543
5544         * remote.c (remote_read_bytes): Fix check for error.
5545
5546 2002-07-22  Kevin Buettner  <[email protected]>
5547
5548         * aix-thread.c (language.h): Include.
5549         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5550         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5551         Print newlines at end of debug messages.
5552         (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5553         (pdc_write_data): Use local_hex_string() instead of %llx formats.
5554
5555 2002-07-22  Kevin Buettner  <[email protected]>
5556
5557         * aix-thread.c (ppc-tdep.h): Include.
5558         (special_register_p): New function.
5559         (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5560         (store_regs_user_thread): Use register number information from
5561         gdbarch_tdep struct instead of hardcoded offsets relative to
5562         FIRST_UISA_SP_REGNUM.
5563         (fetch_regs_kernel_thread, store_regs_kernel_thread):  Call
5564         special_register_p() instead of using FPLAST_REGNUM and
5565         LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5566         register numbers.  Also, don't assume that LAST_UISA_SP_REGNUM
5567         will be MQ's register number.
5568
5569 2002-07-22  Michael Snyder  <[email protected]>
5570
5571         * aix-thread.c (ops): Rename to aix_thread_ops.
5572         (base_ops): Rename to base_target.
5573         (ops_attach): Rename to aix_thread_attach.
5574         (ops_detach): Rename to aix_thread_detach.
5575         (ops_resume): Rename to aix_thread_detach.
5576         (ops_wait):   Rename to aix_thread_wait.
5577         (ops_kill):   Rename to aix_thread_kill.
5578         (init_ops):   Rename to init_aix_thread_ops.
5579         (ops_fetch_register): Rename to aix_thread_fetch_register.
5580         (ops_store_register): Rename to aix_thread_store_register.
5581         (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5582         (ops_thread_alive):   Rename to aix_thread_thread_alive.
5583         (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5584         (ops_pid_to_str):  Rename to aix_thread_pid_to_str.
5585         (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5586         (fetch_regs_lib):  Rename to fetch_regs_user_thread.
5587         (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5588         (store_regs_lib):  Rename to store_regs_user_thread.
5589         (store_regs_kern): Rename to store_regs_kernel_thread.
5590
5591 2002-07-22  Michael Snyder  <[email protected]>
5592
5593         * aix-thread.c (ops_prepare_to_store): Eliminate.
5594         (init_ops): Don't initialize ops.prepare_to_store.
5595         (store_regs_kern): Pre-fetch register buffers from child, 
5596         because some registers may not be in the cache.  Copy
5597         regs from register cache only if they are cached.
5598         (store_regs_lib): Copy regs from register cache only
5599         if they are cached.
5600         (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5601         fill_gprs64): Ditto.
5602
5603 2002-07-22  Kevin Buettner  <[email protected]>
5604
5605         * aix-thread.c (gdb_assert.h): Include.
5606         (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5607         register sizes (from register cache) match size of buffer holding
5608         register data.
5609         (fill_sprs32): Change parameter types to match those in the ptrace()
5610         buffer.
5611         (store_regs_lib): Likewise, but for 32-bit temporary variables.
5612         (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5613
5614 2002-07-22  Michael Snyder  <[email protected]>
5615
5616         * aix-thread.c (supply_sprs64): Cosmetic change.
5617         (supply_sprs32): Cosmetic change.
5618         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5619         (fill_sprs64): Use regcache_collect instead of read_register.
5620         (store_regs_lib): Use regcache_collect instead of 
5621         read_register.  Use fill_sprs32 instead of fill_sprs64,
5622         if debugging a 32-bit architecture.
5623         (store_regs_kern): Use fill_gprs64 etc. to pull the values
5624         out of the register cache, instead of passing a pointer into
5625         the register cache directly to ptrace.  Use regcache_collect
5626         insteaad of read_register.
5627         (ops_prepare_to_store): Use target_read_registers instead
5628         of read_register_bytes.
5629
5630 2002-07-20  Aidan Skinner <[email protected]>
5631
5632         * MAINTAINERS: Add self under write after approval. 
5633                 
5634 2002-07-20  Aidan Skinner <[email protected]>
5635
5636         * ada-tasks.c: Change k&r style function definitions to prototyped
5637         form.
5638                 
5639 2002-07-19  Andrew Cagney  <[email protected]>
5640
5641         * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5642         * x86-64-tdep.c: Include "objfiles.h".
5643         (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5644         in_plt_section.  From 2002-07-18 Michal Ludvig <[email protected]>.
5645
5646 2002-07-17  Michal Ludvig  <[email protected]>
5647
5648         * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5649         (update_context): Initialise cfa variable.
5650
5651 2002-07-17  Michael Snyder  <[email protected]>
5652
5653         * aix-thread.c: Shorten some long lines.  
5654         Bring comments into line with code spec.
5655
5656 2002-07-18  Joel Brobecker  <[email protected]>
5657
5658         * infrun.c: Re-indent using gdb_indent.sh.
5659
5660 2002-07-18  Joel Brobecker  <[email protected]>
5661
5662         * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5663         Leave the indentation temporarily untouched, to minimize the diffs.
5664
5665 2002-07-18  Elena Zannoni  <[email protected]>
5666
5667         * stabsread.c: Make os9k sections of the code obsolete,
5668         for real this time.
5669         * stabsread.h: Make os9k sections of the code obsolete.
5670
5671 2002-07-18  Michal Ludvig <[email protected]>
5672
5673         * linux-low.c (regsets_store_inferior_registers): Add free()
5674         at the end of a loop to prevent memory leak.
5675         * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5676         (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5677         * config/sparc/tm-sp64linux.h: Make the rest of #endif
5678         line a comment.
5679         * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5680
5681 2002-07-17  Jim Blandy  <[email protected]>
5682
5683         * macrocmd.c (info_macro_command): Remove newline from error
5684         message.
5685
5686 2002-07-17  J"orn Rennecke <[email protected]>
5687
5688         * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5689         (sh_gdbarch_init): Use it for sh-dsp.
5690
5691 2002-07-16  Kevin Buettner  <[email protected]>
5692
5693         * dwarf2read.c (read_initial_length): Handle older, non-standard,
5694         64-bit DWARF2 format.
5695
5696 2002-07-16  Joel Brobecker  <[email protected]>
5697
5698         * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5699         <sys/proc.h> when not available.
5700
5701 2002-07-16  Andrew Cagney  <[email protected]>
5702
5703         * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5704         * stabsread.c: Make os9k sections of the code obsolete.
5705         * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5706         * config/i386/i386os9k.mt: Make file obsolete.
5707         * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5708         (COMMON_OBS): Remove os9kread.o
5709         (SFILES): Remove os9kread.c.
5710         (os9kread.o, remote-os9k.o): Make target obsolete.
5711         * remote-os9k.c: Make file obsolete.
5712         * os9kread.c: Make file obsolete.
5713         * Makefile.in
5714
5715 2002-07-16  Andrew Cagney  <[email protected]>
5716
5717         * NEWS: Mention that the FR30 has been made obsolete.
5718         * fr30-tdep.c: Make file obsolete.
5719         * config/fr30/tm-fr30.h: Ditto.
5720         * config/fr30/fr30.mt: Ditto.
5721         * configure.tgt: Make fr30-*-elf obsolete.
5722         * MAINTAINERS: Make fr30-elf obsolete.
5723
5724 2002-07-16  Pierre Muller  <[email protected]>
5725
5726         * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5727         found is not inside a section.
5728
5729 2002-07-15  Kevin Buettner  <[email protected]>
5730
5731         * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5732         strerror().
5733         (pdc_realloc): Use xrealloc() instead of realloc().
5734
5735 2002-07-15  Kevin Buettner  <[email protected]>
5736
5737         * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5738         (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5739         (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5740         macros.
5741
5742 2002-07-15  Kevin Buettner  <[email protected]>
5743
5744         * aix-thread.c (ptrace_check): Eliminate goto.
5745         (sync_threadlists): Eliminate gotos.  Also, fix array overrun
5746         problem.
5747
5748 2002-07-15  Kevin Buettner  <[email protected]>
5749
5750         * aix-thread.c (gdbcmd.h): Include.
5751         (DEBUG, DBG, DBG2, dbg): Eliminate.
5752         (debug_aix_thread): New static global.
5753         (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5754         (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5755         (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5756         invocations to DBG and DBG2 macros to test against
5757         ``debug_aix_thread'' and call fprintf_unfiltered().
5758         (_initialize_aix_thread): Add new command "set debug aix-thread".
5759
5760 2002-07-15  Andrew Cagney  <[email protected]>
5761
5762         From Gerhard Tonn <[email protected]>:
5763         * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5764         instead of supply_register.
5765
5766 2002-07-15  Andrew Cagney  <[email protected]>
5767
5768         * dwarf2cfi.c: Include "gdb_assert.h".
5769         (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5770         non-NULL.
5771         (update_context): Do not use __func__.  Add missing ``break''.
5772         (update_context): Do not use __func__.
5773
5774 2002-07-15  Elena Zannoni  <[email protected]>
5775
5776         * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5777         and its setting.  Set gdbarch instruction printing functions
5778         directly.  For non-rs6000 case use new function
5779         gdb_print_insn_powerpc.
5780         (gdb_print_insn_powerpc): New function.
5781
5782 2002-07-13  Andrew Cagney  <[email protected]>
5783
5784         * NEWS: Mention that the d30v has been marked obsolete.
5785         * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5786         * configure.tgt: Mark d30v-*-* as obsolete.
5787         * d30v-tdep.c: Mark file as obsolete.
5788         * config/d30v/d30v.mt: Ditto.
5789         * config/d30v/tm-d30v.h: Ditto.
5790
5791 2002-07-13  Aidan Skinner <[email protected]>
5792
5793         * ada-tasks.c (add_task_entry): replace calls to
5794         malloc() with xmalloc
5795         * ada-tasks.c (init_task_list): replace calls to free with xfree()
5796         
5797         * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5798         ada_finish_decode_line_1, all_sals_for_line
5799         ada_breakpoint_rewrite): replace calls to free() with xfree()
5800                 
5801 2002-07-12  Kevin Buettner  <[email protected]>
5802
5803         From Nicholas Duffek (with minor changes by Martin Hunt, 
5804         Louis Hamilton, and Kevin Buettner):
5805         * aix-thread.c: New file.
5806
5807 2002-07-12  Petr Sorfa <[email protected]>
5808
5809         *  dwarf2read.c (dwarf2_invalid_attrib_class): New
5810         complaint for invalid attribute class or form.
5811         (read_func_scope): DW_AT_frame_base
5812         better handling of DW_AT_block*.
5813         (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5814         better handling of DW_AT_block*.
5815         (read_common_block): DW_AT_location
5816         better handling of DW_AT_block*.
5817         (read_partial_die): DW_AT_location better handling
5818         of DW_AT_block*.
5819         (new_symbol): DW_AT_external better handling of
5820         DW_AT_block*. Proper initialization of variable
5821         "addr".
5822         (attr_form_is_block): New function that returns true
5823         if the attribute's form is of DW_FORM_block*.
5824
5825 2002-07-12  Peter Schauer  <[email protected]>
5826
5827         * valops.c (find_method_list): Remove comment about
5828         removed STATIC_MEMFUNCP argument.
5829         (value_find_oload_method_list): Likewise.
5830
5831 2002-07-12  Kevin Buettner  <[email protected]>
5832
5833         From Nicholas Duffek:
5834         * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5835         target_new_objfile_hook.
5836
5837 2002-07-12  Kevin Buettner  <[email protected]>
5838
5839         From Nicholas Duffek:
5840         * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5841         csect.
5842
5843 2002-07-12  Andrew Cagney  <[email protected]>
5844
5845         * MAINTAINERS: Mention --enable-sim-build-warnings.
5846         (m68hc11-elf): Disable sim build warnings.
5847         (m32r-elf): Mark as broken obsolete candidate.
5848         (x86_64-linux-gnu): Mark as buildable with -Werror.
5849         (arm-elf): Change -w to ``,'' which enables warnings but not
5850         -Werror.
5851
5852 2002-07-12  Andrew Cagney  <[email protected]>
5853
5854         * bcache.h: Update copyright.
5855         (struct bstring, struct bcache): Move definition to "bcache.c".
5856         Replaced by opaque declaration.
5857         (bcache_xfree): Replace free_bcache.
5858         (bcache_xmalloc, bcache_memory_used): Declare.
5859         
5860         * bcache.c: Update copyright.
5861         (struct bstring, struct bcache): Moved to here from "bcache.h".
5862         Update comments.
5863         (bcache_xmalloc, bcache_memory_used): New functions.
5864         (bcache_xfree): Replace function free_bcache.
5865         
5866         * Makefile.in (objfiles.o): Add $(bcache_h).
5867         (objfiles_h): Remove $(bcache_h).
5868         (symfile.o): Add $(bcache_h).
5869
5870         * symmisc.c: Update copyright.
5871         (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5872         (print_objfile_statistics): Use bcache_memory_used.
5873
5874         * symfile.c: Include "bcache.h".
5875         (reread_symbols): Use bcache_xfree.
5876         (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5877         (add_psymbol_to_list): Pass psymbol_cache by value.
5878         (add_psymbol_with_dem_name_to_list): Ditto.
5879
5880         * objfiles.h: Update copyright.
5881         (struct bcache): Declare opaque.  Do not include "bcache.h".
5882         (struct objfile): Change psymbol_cache and macro_cache to ``struct
5883         bcache'' pointers.
5884         * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5885
5886         * objfiles.c: Include "bcache.h".  Update copyright.
5887         (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5888         macro_cache.
5889         (free_objfile): Use bcache_xfree.
5890
5891 2002-07-11  Grace Sainsbury  <[email protected]>
5892
5893         * monitor.c (monitor_fetch_register): Make name a constant.
5894         (monitor_store_register): Same.
5895
5896 2002-07-11  Daniel Jacobowitz  <[email protected]>
5897
5898         Based on patch from Daniel Berlin <[email protected]>.
5899         * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5900         (finish_block) For non-function blocks, hash the symbol table.  For
5901         function blocks, mark the symbol table as unhashed.
5902         * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5903         (msymbol_hash_iw): Likewise.
5904         (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5905         value.
5906         (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5907         (lookup_minimal_symbol): Likewise for both.
5908         * symtab.h (struct block): Add `hashtable' flag.  Comment the
5909         hashtable.
5910         (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5911         (ALL_BLOCK_SYMBOLS): Update.
5912         (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5913         (struct symbol): Add `hash_next' pointer.
5914         * symtab.c (lookup_block_symbol): Search using the hash table when
5915         possible.
5916         (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5917         (search_symbols, find_addr_symbol): Likewise.
5918
5919         * dstread.c (process_dst_block): Clear hashtable bit for new block.
5920         (read_dst_symtab): Likewise.
5921         * jv-lang.c (get_java_class_symtab): Likewise.
5922         * mdebugread.c: Include "gdb_assert.h".
5923         (shrink_block): Assert that the block being modified is not hashed.
5924         * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5925         * symmisc.c (free_symtab_block): Walk the hash table when freeing
5926         symbols.
5927         (dump_symtab): Recognize hashed blocks.
5928         * printcmd.c (print_frame_args):  Assert that function blocks do not
5929         have hashed symbol tables.
5930         * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5931         (fill_in_ada_prototype, debug_print_block): Likewise.
5932         (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS.  Handle hash tables.
5933
5934 2002-07-11  Corinna Vinschen  <[email protected]>
5935
5936         * stack.c (print_frame): Use result of frame_address_in_block()
5937         instead of fi->pc when evaluating symbols.
5938         (backtrace_command_1): Ditto.
5939
5940 2002-07-11  Andrew Cagney  <[email protected]>
5941
5942         * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5943         Make static.
5944
5945         * arm-tdep.c (arm_register_name): Make return type constant.
5946
5947 2002-07-10  Andrew Cagney  <[email protected]>
5948
5949         * win32-nat.c (has_detach_ability): Convert to strict ISO C
5950         prototype.
5951         * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5952         * s390-tdep.c (s390_fp_regnum): Ditto.
5953         (s390_read_fp): Ditto.
5954         (s390_pop_frame): Ditto.
5955         (_initialize_s390_tdep): Ditto.
5956         * remote.c (get_remote_state): Ditto.
5957         * procfs.c (mappingflags): Ditto.
5958         * memattr.c (_initialize_mem): Ditto.
5959         * mcore-tdep.c (mcore_pop_frame): Ditto.
5960         * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5961         * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5962         * language.c (set_case_str): Ditto.
5963         * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5964         * frv-tdep.c (new_variant): Ditto.
5965         (frv_stopped_data_address): Ditto.
5966         * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5967         (context_alloc): Ditto.
5968         (frame_state_alloc): Ditto.
5969         (unwind_tmp_obstack_init): Ditto.
5970         (unwind_tmp_obstack_free): Ditto.
5971         (cfi_read_fp): Ditto.
5972         * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5973         (cris_pop_frame): Ditto.
5974         * c-lang.c (scanning_macro_expansion): Ditto.
5975         (finished_macro_expansion): Ditto.
5976         (c_preprocess_and_parse): Ditto.
5977         * gdbarch.sh: Ditto.
5978         * gdbarch.h, gdbarch.c: Regenerate.
5979         * config/mn10200/tm-mn10200.h: Adjust indentation.
5980         * target.c: Adjust indentation.
5981         * symtab.h: Adjust indentation.
5982         * stabsread.h: Adjust indentation.
5983         * remote-es.c: Adjust indentation.
5984         * os9kread.c: Adjust indentation.
5985
5986 2002-07-10  Andrew Cagney  <[email protected]>
5987         
5988         * wince.c (_initialize_wince): Rename _initialize_inftarg.
5989         * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5990
5991 2002-07-10  Grace Sainsbury  <[email protected]>
5992         
5993         * NEWS: Mention m68k, mcore multi-arching.  
5994         * MAINTAINERS: Change status of m68k, mcore to reflect
5995         multi-arching.
5996
5997 2002-07-10  Daniel Jacobowitz  <[email protected]>
5998
5999         * valops.c (find_overload_match): Free oload_syms.
6000
6001 2002-07-09  Joel Brobecker  <[email protected]>
6002
6003         Define HAVE_SYS_PROC_H if sys/proc.h exists
6004         * configure.in: Add check for sys/proc.h
6005         * config.in: Regenerate.
6006         * configure: Regenerate.
6007
6008 2002-07-09  Grace Sainsbury  <[email protected]>
6009
6010         * config/m68k/tm-m68k.h: Remove macros wrapped in 
6011         #if !GDB_MULTI_ARCH. 
6012
6013 2002-07-08  Andrew Cagney  <[email protected]>
6014
6015         * config.in, configure: Regenerate.
6016
6017 2002-07-08  Mark Kettenis  <[email protected]>
6018
6019         * dwarf2cfi.c: Include "gcore.h".
6020         (execute_stack_op): Fix implementation of the
6021         DW_OP_deref and DW_OP_deref_size operators by letting do their
6022         lookup in the target.
6023
6024 2002-07-07  Mark Kettenis  <[email protected]>
6025
6026         From Peter Schauer <[email protected]>:
6027         * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6028         tdep->sc_sp_offset.
6029
6030 2002-07-05  Daniel Jacobowitz  <[email protected]>
6031
6032         Fix PR gdb/595, gdb/602
6033         * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6034         Don't call value_cast, just read the vtable pointer; update comments
6035         to match.
6036
6037 2002-07-05  Grace Sainsbury  <[email protected]>
6038
6039         * config/mcore/tm-mcore.h: Remove file.
6040         * config/mcore/mcore.mt: Remove definition of TM_FILE
6041         * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6042
6043 2002-07-05  Mark Kettenis  <[email protected]>
6044
6045         * i386bsd-tdep.c: Include "gdb_string.h".
6046
6047 2002-07-04  Grace Sainsbury  <[email protected]>
6048
6049         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6050         (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6051         mcore-tdep.
6052         (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6053         (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6054         * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6055         (RETVAL_REGNUM): Move macros from tm-mcore.h
6056         (mcore_reg_struct_has_addr): New function.
6057         (mcore_gdbarch_init): Added initializations for the macros removed
6058         from tm-mcore.h.
6059
6060 2002-07-04  Mark Kettenis  <[email protected]>
6061
6062         * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6063         traditonal string branding within the ELF header.
6064
6065 2002-07-04  Daniel Jacobowitz  <[email protected]>
6066
6067         * symtab.c (remove_params): New function.
6068         (make_symbol_overload_list): Use it instead of cplus_demangle.
6069         (overload_list_add_symbol): Likewise.  Reorder.  Fix memory leak.
6070
6071 2002-07-04  Mark Kettenis  <[email protected]>
6072
6073         * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6074
6075         * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6076         New variables.
6077         (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6078         and tdep->sigtramp_end.
6079         * i386obsd-nat.c: New file.
6080         * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6081
6082         * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6083         Don't call get_current_frame().
6084
6085 2002-07-04  Pierre Muller  <[email protected]>
6086
6087         * i386-nat.c (child_post_startup_inferior): New function
6088         calling i386_cleanup_dregs if
6089         I386_USE_GENERIC_WATCHPOINTS is defined.
6090         * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6091         conditional to acknowledge that i386-nat.c has its
6092         own child_post_startup_inferior function.
6093
6094 2002-07-04  Mark Kettenis  <[email protected]>
6095
6096         * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6097         * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6098         instead of MAX_REGISTER_RAW_SIZE.
6099         (i386_extract_return_value, i386_extract_struct_value_address):
6100         Convert to use regcache.
6101         (i386_gdbarch_init): Set max_register_raw_size and
6102         max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6103         Set extract_return_value and extract_struct_value_address instead
6104         of their deprecated variants.
6105
6106         Convert i386 target to generic dummy frames.
6107         * i386-tdep.c: Include "symfile.h".
6108         (i386_frameless_signal_p): Consider a function to be frameless if
6109         the pc points at the first instruction of the function.
6110         (i386_frame_chain): Handle (generic) call dummies.
6111         (i386_frame_saved_pc): Likewise.
6112         (i386_frame_init_saved_regs): Remove code dealing with call
6113         dummies on the stack.
6114         (i386_push_dummy_frame): Removed.
6115         (i386_call_dummy_words): Removed.
6116         (i386_fix_call_dummy): Removed.
6117         (i386_push_return_address): New function.
6118         (i386_do_pop_frame): Renamed from i386_pop_frame.  Add FRAME
6119         parameter, and don't call get_current_frame.
6120         (i386_pop_frame): New function.
6121         (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6122         call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6123         entry_point_address, set call_dummy_breakpoint_offset to 0, set
6124         call_dummy_length to 0, set call_dummy_words to NULL, set
6125         sizeof_call_dummy_words to 0, set fix_call_dummy to
6126         generic_fix_call_dummy, set pc_in_call_dummy to
6127         pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6128         generic_push_dummy_frame, set push_return_address to
6129         i386_push_return_address and set frame_chain_valid to
6130         generic_file_frame_chain_valid.
6131
6132 2002-07-03  Andrew Cagney  <[email protected]>
6133
6134         * gdbarch.sh (struct regcache): Add opaque declaration.
6135         (EXTRACT_RETURN_VALUE): New architecture method.
6136         (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6137         * gdbarch.h, gdbarch.c: Regenerate.
6138         * arch-utils.c (legacy_extract_return_value): New function.
6139         * arch-utils.h (legacy_extract_return_value): Declare.
6140         * values.c (value_being_returned): Re-enable code handling
6141         EXTRACT_STRUCT_VALUE_ADDRESS.  Move
6142         deprecated_grub_regcache_for_registers call to block handling
6143         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6144         (EXTRACT_RETURN_VALUE): Do not define.
6145
6146 2002-07-03  Grace Sainsbury  <[email protected]>
6147
6148         * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6149         (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6150         (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6151         (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6152         (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6153         (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6154         (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6155         (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6156         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6157         (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6158         * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6159         argument so the function fits the prototype in the architecture
6160         vector.
6161         (mcore_pop_frame): Remove argument so the function fits the
6162         prototype. Use get_current_frame instead of the argument.
6163         (mcore_push_arguments): Change type of struct_return so the
6164         function can be used in the architecture vector.
6165         (mcore_store_struct_return): Add.
6166         (mcore_frame_init_saved_regs): Add.
6167         (mcore_gdbarch_init): Add function calls to replace the macros
6168         removed from tm-mcore.h
6169
6170 2002-07-03  Andrew Cagney  <[email protected]>
6171
6172         * infcmd.c (print_return_value): Remove compatibility code calling
6173         deprecated_grub_regcache_for_registers.
6174         
6175         * values.c: Include "regcache.h".
6176         (value_being_returned): Update.  Use
6177         deprecated_grub_regcache_for_registers to extract the register
6178         buffer address.  
6179         * value.h (value_being_returned): Change ``retbuf'' parameter to a
6180         ``struct regcache''.
6181         * Makefile.in (values.o): Add dependency on $(regcache_h).
6182
6183         * inferior.h (run_stack_dummy): Change type of second parameter to
6184         a ``struct regcache''.
6185         * valops.c (hand_function_call): Change type of retbuf to ``struct
6186         regcache''.  Allocate using regcache_xmalloc, clean using
6187         make_cleanup_regcache_xfree.
6188         * infcmd.c (run_stack_dummy): Update.  Use
6189         regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6190
6191         * regcache.c (do_regcache_xfree): New function.
6192         (make_cleanup_regcache_xfree): New function.
6193         * regcache.h (make_cleanup_regcache_xfree): Declare.
6194
6195 2002-07-03  Martin M. Hunt  <[email protected]>
6196
6197         * event-top.c (command_line_handler): Don't read past
6198         beginning of buffer.
6199
6200 2002-07-03  Martin M. Hunt  <[email protected]>
6201         
6202         * varobj.c (struct varobj_root): Change frame from CORE_ADDR to 
6203         struct frame_id. 
6204         (varobj_create): Store frame_id for root.
6205         (varobj_gen_name): Use xasprintf.
6206         (varobj_update): Save and restore frame using get_frame_id() and
6207         frame_find_by_id().
6208         (create_child): Use xasprintf.
6209         (new_root_variable): Initialize frame_id.
6210         (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6211         (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6212         to prevent memory leak.
6213
6214 2002-07-03  Andrew Cagney  <[email protected]>
6215
6216         * valops.c (hand_function_call): Move declaration of retbuf to
6217         start of function, allocate using malloc, add a cleanup but before
6218         the inf_status cleanup, cleanup the buffer.  Rename local variable
6219         old_chain to inf_status_cleanup.
6220
6221 2002-07-03  Martin M. Hunt  <[email protected]>
6222
6223         * top.c (execute_command): Use cmd_func() and cmd_func_p().
6224
6225         * cli/cli-decode.c (cmd_func_p): New function.
6226         (cmd_func): New function.
6227
6228         * command.h: Add cmd_func() and cmd_func_p().   
6229         
6230 2002-07-03  Grace Sainsbury  <[email protected]>
6231
6232         * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6233         (REGISTER_SIZE): Remove.
6234         (MAX_REGISTER_RAW_SIZE): Remove.
6235         (REGISTER_VIRTUAL_TYPE): Remove.
6236         (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6237         (REGISTER_NAME): Remove.
6238         (USE_GENERIC_DUMMY_FRAMES): Remove.
6239         (CALL_DUMMY): Remove.
6240         (CALL_DUMMY_START_OFFSET): Remove.
6241         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6242         (CALL_DUMMY_LOCATION): Remove.
6243         (FIX_CALL_DUMMY): Remove.
6244         (CALL_DUMMY_ADDRESS): Remove.
6245         (SIZEOF_CALL_DUMMY_WORDS): Remove.
6246         (SAVE_DUMMY_FRAME_TOS): Remove.
6247         * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6248         (mcore_register_virtual_type): New function.
6249         (mcore_register_byte): New function.
6250         (mcore_register_size): New function.
6251         (mcore_register_name): New function.
6252         (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6253         macros removed from tm-mcore.h.
6254         (mcore_dump_tdep): Add.
6255         (_initialize_mcore_tdep): Add gdbarch_register call.
6256
6257 2002-07-03  Mark Kettenis  <[email protected]>
6258
6259         * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6260         frameless_look_for_prologue, such that we actually call this
6261         function.
6262
6263 2002-07-02  Joel Brobecker  <[email protected]>
6264
6265         * frame.h (frame_address_in_block): New function.
6266
6267         * blockframe.c (frame_address_in_block): New function extracted
6268         from get_frame_block().
6269         (get_frame_block): Use frame_address_in_block().
6270         (block_innermost_frame): Use frame_address_in_block() to match
6271         the frame pc address against the block boundaries rather than
6272         the frame pc directly. This prevents a failure when a frame pc
6273         is actually a return-address pointing immediately after the end
6274         of the given block. 
6275
6276 2002-07-02  Grace Sainsbury  <[email protected]>
6277
6278         * MAINTAINERS: Add self under write after approval. 
6279
6280 2002-07-02  Grace Sainsbury  <[email protected]>
6281
6282         * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6283         used in architecture vector. The default is
6284         m68k_local_breakpoint_from_pc.
6285         (m68k_local_breakpoint_from_pc): Add.
6286         (enum): Add register numbers from tm-m68k.h.
6287         (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6288         vector.  
6289         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6290         GDB_MULTI_ARCH_PARTIAL.
6291         (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6292         (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6293         m68k-tdep.c.
6294         (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6295         (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6296         to enum in m68k-tdep.c
6297
6298 2002-07-02  Joel Brobecker  <[email protected]>
6299
6300         * solib-osf.c (open_map): Compute the list of shared libraries
6301         loaded by the inferior, rather than the list of libraries loaded
6302         by GDB itself.  Otherwise, GDB ends up reading the symbols from
6303         the wrong shared libraries...
6304
6305 2002-07-02  Mark Kettenis  <[email protected]>
6306
6307         * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6308         (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6309         macros.
6310         (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6311         Remove functions.
6312         (FRAMELESS_SIGNAL): Remove function.
6313         (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6314         i386_linux_saved_pc_after_call): Removed.
6315         (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6316         tdep->sc_pc_offset and tdep->sc_sp_offset.  Don't override
6317         frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6318
6319         * i386-tdep.c (i386_frameless_signal_p): New function.
6320         (i386_frame_chain): Deal with frameless signals.
6321         (i386_sigtramp_saved_sp): New function.
6322         (i386_frame_saved_pc): Deal with frameless signals.
6323         (i386_saved_pc_after_call): Make sure the correct value is
6324         returned just after entry into a sigtramp.
6325         * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6326         i386fbsd4_sc_sp_offset): New variables.
6327         (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6328         these variables to initialize tdep->sc_sp_offset.  * i386bsd-nat.c
6329         (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6330         similiar to what we already did for sc_pc_offset.
6331         * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6332         tdep->sc_sp_offset.
6333
6334         * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6335
6336 2002-07-02  Michal Ludvig  <[email protected]>
6337
6338         * config/i386/tm-x86-64linux.h: New.
6339         * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6340         definitions.
6341         * config/i386/nm-x86-64.h: Rename to ...
6342         * config/i386/nm-x86-64linux.h: ... this one.
6343         * config/i386/x86-64linux.mh: Reflect the above change.
6344         
6345 2002-07-01  Mark Kettenis  <[email protected]>
6346
6347         * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6348         with sigcontext_addr.  Add sc_sp_offset.
6349         (i386bsd_sigtramp_saved_pc): Remove prototype.
6350         (i386bsd_sicontext_addr): Add prototype.
6351         * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6352         (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6353         (i386_svr4_sigtramp_saved_pc): Removed.
6354         (i386_svr4_sigcontext_addr): New function.
6355         (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6356         Initialize tdep->sigcontext_addr instead.  Initialize
6357         tdep->sc_pc_offset and tdep->sc_sp_offset.
6358         (i386_gdbarch_init): Likewise.
6359         * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6360         any more.
6361         (i386bsd_sigtramp_saved_pc): Remove function.
6362         (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6363         Initialize tdep->sigcontext_addr instead.  Initialize
6364         tdep->sc_pc_offset.
6365         * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6366         of tdep->sigtramp_saved_pc.
6367         * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6368         tdep->sigtramp_saved_pc.  Initialize tdep->sigcontext_addr
6369         instead.
6370
6371         * i386-tdep.c (i386_frameless_function_invocation,
6372         i386_frame_num_args, i386_frame_init_saved_regs,
6373         i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6374         i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6375         i386_extract_return_value, i386_store_return_value,
6376         i386_extract_struct_value_address, i386_register_virtual_type,
6377         i386_register_convertible, i386_register_convert_to_virtual,
6378         i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6379         i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6380         static.
6381
6382 2002-07-01  Mark Kettenis  <[email protected]>
6383
6384         * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6385
6386         * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6387         * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6388         this macro.  Include "value.h".
6389
6390 2002-06-30  Aidan Skinner  <[email protected]>
6391
6392         * ada-exp.tab.c: remove as it's a generated file
6393         * ada-lex.c: remove as it's a generated file
6394                 
6395 2002-06-30  Mark Kettenis  <[email protected]>
6396
6397         * config/i386/tm-i386.h (struct frame_info, struct
6398         frame_saved_regs, struct value, struct type): Remove forward
6399         declarations.
6400
6401         * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6402         (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6403         * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6404         (FILL_FPXREGSET): Define.
6405
6406         * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6407
6408         * configure.tgt (i[3456]86-*-openbsd*): Fold into
6409         i[3456]86-*-netbsd* case.
6410         * config/i386/tm-obsd.h: Removed.
6411         * config/i386/obsd.mt: Removed.
6412         * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6413         core-aout.o.
6414         (MH_CFLAGS): Add -DYYDEBUG=0.
6415
6416         * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6417         i386nbsd_sc_pc_offset on OpenBSD too.
6418
6419         * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6420         (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6421         * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6422         define.
6423         * i386bsd-tdep.c: Include "arch-utils.h".
6424         (i386bsd_aout_in_solib_call_trampoline): New function.
6425         (i386bsd_init_abi): Set in_solib_call_trampoline to
6426         i386bsd_aout_in_solib_call_trampoline.
6427         (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6428         in_solib_call_trampoline to generic_in_solib_call_trampoline.
6429
6430 2002-06-28  Andrew Cagney  <[email protected]>
6431
6432         * macrotab.h: Do not include "obstack.h" or "bcache.h".
6433         (struct obstack, struct bcache): Add opaque declarations.
6434         * Makefile.in (macrotab_h): Update
6435
6436 2002-06-28  Andrew Cagney  <[email protected]>
6437
6438         * blockframe.c (generic_find_dummy_frame): Change return type to
6439         ``struct regcache''.
6440         (struct dummy_frame): Replace field ``registers'' with regcache, a
6441         struct regcache object.
6442         (generic_find_dummy_frame): Update.
6443         (generic_push_dummy_frame): Update.  Use regcache_xfree,
6444         regcache_xmalloc and regcache_cpy.
6445         (generic_pop_dummy_frame): Update.  Use regcache_cpy and
6446         regcache_xfree.
6447         (deprecated_generic_find_dummy_frame): Update.
6448         (generic_read_register_dummy): Update.  Use
6449         regcache_read_as_address.
6450         (generic_call_dummy_register_unwind): Update.  Use regcache_read.
6451         (generic_get_saved_register): Update.  Use regcache_read.
6452
6453 2002-06-28  Andrew Cagney  <[email protected]>
6454
6455         * Makefile.in (objfiles_h): Add $(bcache_h).
6456         * objfiles.h: Include "bcache.h".
6457
6458         * Makefile.in (symtab_h): Remove $(bcache_h).
6459         * symtab.h: Do not include "bcache.h".
6460
6461 2002-06-28  Andrew Cagney  <[email protected]>
6462
6463         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6464         generic_func_frame_chain_valid.
6465
6466 2002-06-28  David O'Brien  <[email protected]>
6467
6468         * config/i386/nm-fbsd.h: Include <sys/param.h>.
6469         * config/i386/tm-fbsd.h: Likewise.
6470
6471 2002-06-28  Andrew Cagney  <[email protected]>
6472
6473         * rs6000-tdep.c (rs6000_gdbarch_init): Use
6474         generic_unwind_get_saved_register.
6475
6476 2002-06-27  Andrew Cagney  <[email protected]>
6477
6478         From 2002-06-27 John David Anglin <[email protected]>:
6479         * regcache.c (supply_register): Add missing argument to
6480         register_buffer call.
6481
6482 2002-06-27  Andrew Cagney  <[email protected]>
6483
6484         * Makefile.in (init.c): Drop -e option to grep.  Not necessary and
6485         Solaris /bin/grep does not not like it.  From Peter Schauer.
6486
6487 2002-06-26  Tom Tromey  <[email protected]>
6488
6489         * command.h (add_setshow_cmd): Declare.
6490         (add_setshow_cmd_full): Declare.
6491         * cli/cli-decode.c (add_setshow_cmd): No longer static.  Now
6492         returns void.  Use add_setshow_cmd_full.
6493         (add_setshow_cmd_full): New function.
6494         (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6495         (add_setshow_boolean_cmd): Likewise.
6496
6497 2002-06-26  Jason Thorpe  <[email protected]>
6498
6499         * config/vax/tm-vax.h: Protect from multiple inclusion.
6500         (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6501         (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6502         * config/vax/tm-vaxbsd.h: ...here.  New file.
6503         * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6504
6505 2002-06-26  Jason Thorpe  <[email protected]>
6506
6507         * config/vax/tm-vax.h (BREAKPOINT): Remove.
6508         (BELIEVE_PCC_PROMOTION): Remove.
6509         (AP_REGNUM): Move to...
6510         * config/vax/nm-vax.h: ...here.
6511         * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6512         (vax_breakpoint_from_pc): New function.
6513         (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6514         and gdbarch_believe_pcc_promotion.
6515
6516 2002-06-26  Jason Thorpe  <[email protected]>
6517
6518         * Makefile.in (vax_tdep_h): Define.  
6519         (vax-tdep.o): Use $(vax_tdep_h).
6520         * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6521         (vax_dump_tdep): New function. 
6522         (_initialize_vax_tdep): Register vax_dump_tdep.
6523         * vax-tdep.h: Include osabi.h.     
6524         (struct gdbarch_tdep): New. 
6525
6526 2002-06-26  Andrew Cagney  <[email protected]>
6527
6528         * frame.h (deprecated_generic_find_dummy_frame): Rename
6529         generic_find_dummy_frame.
6530         * blockframe.c (generic_find_dummy_frame): Make static.
6531         (deprecated_generic_find_dummy_frame): New function.
6532         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6533         generic_find_dummy_frame with deprecated_find_dummy_frame.
6534         (sh64_nofp_frame_init_saved_regs): Ditto.
6535         (sh_fp_frame_init_saved_regs): Ditto.
6536         * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6537         (s390_frame_chain): Ditto.
6538         * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6539
6540 2002-06-26  Grace Sainsbury  <[email protected]>
6541
6542         * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6543         gdbarch vector are at the top.
6544         (NUM_REGS): Remove.
6545         (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6546         (FRAME_ARGS_ADDRESS): Remove.
6547         (FRAME_LOCALS_ADDRESS): Remove.
6548         (FRAME_NUM_ARGS): Remove.
6549         (FRAME_ARGS_SKIP): Remove.  
6550         * m68k-tdep.c (enum): Add eumeration of special register numbers.
6551         (m68k_gdbarch_init): Add gdbarch initializations for macros
6552         undefined in tm-m68k.h
6553
6554 2002-06-26  Grace Sainsbury  <[email protected]>
6555
6556         * monitor.h: Add the function regname to monitor_ops
6557         structure. This way NUM_REGS does not have to be a constant.
6558         * monitor.c (monitor_fetch_register): Added support for regname
6559         function. The function is called if the array regnames is NULL.
6560         (monitor_store_register): Same.
6561         * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6562         regnames array.
6563         (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6564         cpu32bug_cmds.regname to point to new function.
6565         * abug-rom.c (abug_regname): Same as above.
6566         (init_abug_cmds): Same.
6567         * dbug-rom.c (dbug_regname): Same as above.
6568         (init_dbug_cmds): Same.
6569         * remote-est.c (est_regname): Same. 
6570         (init_est_cmds): Same.
6571         * rom68k-rom.c (rom68k_regname): Same. 
6572         (init_rom68k_cmds): Same.
6573
6574 2002-06-25  Tom Tromey  <[email protected]>
6575
6576         * breakpoint.c (delete_command): Don't repeat `delete' commands.
6577
6578 2002-06-25  Andrew Cagney  <[email protected]>
6579
6580         * infrun.c (stop_registers): Change variable's type to ``struct
6581         regcache'''.
6582         (xmalloc_inferior_status): Delete function.
6583         (free_inferior_status): Delete function.
6584         (normal_stop): Use regcache_cpy.
6585         (struct inferior_status): Change type of fields ``stop_registers''
6586         and ``registers'' to ``struct regcache''.
6587         (write_inferior_status_register): Use regcache_write.
6588         (save_inferior_status): Instead of calling
6589         xmalloc_inferior_status, allocate the inf_status buffer directly.
6590         Use regcache_dup_no_passthrough and regcache_dup to save the
6591         buffers.
6592         (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6593         Replace the stop_registers regcache instead of overriding it.  Use
6594         regcache_xfree.  Instead of calling free_inferior_status, xfree
6595         the buffer directly.
6596         (discard_inferior_status): Use regcache_xfree.  Instead of calling
6597         free_inferior_status, xfree the buffer directly.
6598         (build_infrun): Use regcache_xmalloc.
6599         (_initialize_infrun): Delete redundant call to build_infrun.
6600
6601         * Makefile.in (infcmd.o): Add $(regcache_h).
6602
6603         * infcmd.c: Include "regcache.h".
6604         (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6605         obtain the address of `stop_registers' register buffer.
6606         (print_return_value): Ditto.
6607
6608         * inferior.h (struct regcache): Add opaque declaration.
6609         (stop_registers): Change variable's declared type to ``struct
6610         regcache''.
6611
6612 2002-06-24  Tom Tromey  <[email protected]>
6613
6614         * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6615         * target.c (initialize_targets): Fixed typo in
6616         trust-readonly-sections `show' documentation.
6617
6618         * main.c: Marked all strings with _().
6619
6620 2002-06-24  Don Howard  <[email protected]>
6621
6622         * memattr.c (create_mem_region): Treat hi == 0 as a special case
6623         that means max CORE_ADDR+1.
6624         (lookup_mem_region): Ditto.
6625         (mem_info_command): Ditto.
6626
6627 2002-06-24  Grace Sainsbury  <[email protected]>
6628
6629         * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6630         (REGISTER_BYTES_OK): Remove.
6631         (REGISTER_BYTES): Remove.
6632         (STORE_STRUCT_RETURN): Remove.
6633         (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6634         (STORE_RETURN_VALUE): Remove.
6635         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6636         (FRAME_CHAIN): Remove.
6637         (FRAMELESS_FUNCTION_INVOCATION): Remove.
6638         (FRAME_SAVED_PC): Remove.  
6639         * m68k-tdep.c (m68k_register_bytes_ok):Add.
6640         (m68k_store_struct_return): Add.
6641         (m68k_deprecated_extract_return_value): Add.
6642         (m68k_deprecated_extract_struct_value_address): Add.
6643         (m68k_store_return_value): Add.
6644         (m68k_frame_chain): Add.
6645         (m68k_frameless_function_invocation): Add.
6646         (m68k_frame_saved_pc): Add.
6647         (m68k_gdbarch_init): added set_gdbarch calls for new 
6648         functions and deleted macros.
6649
6650 2002-06-23  Tom Tromey  <[email protected]>
6651
6652         * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6653         (ALLDEPFILES): Likewise.
6654         (udiheaders): Removed.
6655         (udip2soc.o): Likewise.
6656         (udi2go32.o): Likewise.
6657         (udr.o): Likewise.
6658         (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6659
6660 2002-06-22  Andrew Cagney  <[email protected]>
6661
6662         * infrun.c (_initialize_infrun): Delete unnecessary call to
6663         build_infrun.
6664
6665         * regcache.h: Update comments describing the regcache_cpy family
6666         of functions.
6667         (regcache_save, regcache_restore): Delete declaration.
6668         (regcache_save_no_passthrough): Delete declaration.
6669         (regcache_restore_no_passthrough): Delete declaration.
6670         * regcache.c (regcache_save): Delete function.
6671         (regcache_save_no_passthrough): Delete function.
6672         (regcache_restore): Delete function.
6673         (regcache_restore_no_passthrough): Delete function.
6674
6675 2002-06-21  Andrew Cagney  <[email protected]>
6676
6677         * config/m68k/tm-m68k.h: Fix typo.
6678         (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6679         (m68k_frame_init_saved_regs): Declare.
6680
6681 2002-06-21  Jim Blandy  <[email protected]>
6682
6683         Remove some vestiges of Harris 88k support.
6684         * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6685         register numbering quirk.
6686         * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6687         odd symbols occurring in Harris 88k ELF targets.
6688
6689 2002-06-21  Tom Tromey  <[email protected]>
6690
6691         * gdb_locale.h: New file.
6692         * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6693         (defs_h): Added gdb_locale.h.
6694         * configure, config.in: Rebuilt.
6695         * configure.in (PACKAGE): Define.
6696         * defs.h: Include gdb_locale.h.
6697         * main.c (captured_main): Call setlocale, bindtextdomain,
6698         textdomain.
6699
6700 2002-06-21  Dave Brolley  <[email protected]>
6701
6702         From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6703         * config/frv/frv.mt: New file.
6704         * config/frv/tm-frv.h: New file.
6705         * configure.tgt: Support frv-*-*.
6706         * Makefile.in (frv-tdep.o): New target.
6707         * frv-tdep.c: New file.
6708         * NEWS: Mention frv.
6709
6710 2002-06-21  Dave Brolley  <[email protected]>
6711
6712         * MAINTAINERS: Add self to "Write After Approval" list.
6713
6714 2002-06-21  Grace Sainsbury  <[email protected]>
6715
6716         * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6717         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6718         (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6719         (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6720         (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6721
6722         * m68k-tdep.c: Include arch-utils.h
6723         (m68k_register_raw_size): Add.
6724         (m68k_register_virtual_size): Add.
6725         (m68k_register_virtual_type): Add.
6726         (m68k_register_name): Add.
6727         (m68k_stack_align): Add.
6728         (m68k_register_byte): Add.
6729         (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6730         tm-m68k.h.
6731
6732 2002-06-21  Grace Sainsbury  <[email protected]>
6733
6734         * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6735         m68k_find_saved_regs.
6736         (m68k_pop_frame): Removed saved_regs structure, and replaced
6737         references to it with frame->saved_regs.
6738         (m68k_gdbarch_init): Added function calls to initialize the
6739         gdbarch structure.
6740         (m68k_fix_call_dummy): Add. 
6741         * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6742         (CALL_DUMMY): Remove.
6743         (CALL_DUMMY_LENGTH): Remove.
6744         (CALL_DUMMY_START_OFFSET): Remove.
6745         (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6746         (FIX_CALL_DUMMY): Remove.
6747         (PUSH_DUMMY_FRAME): Remove.
6748         (POP_FRAME): Remove.
6749
6750 2002-06-19  Pierre Muller  <[email protected]>
6751
6752         * parse.c (parse_fprintf): New function used to avoid calls to
6753         fprintf in bison parser generated debug code.
6754         * parser-defs.h: Declaration of new parse_fprintf function.
6755         * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6756         Set YYDEBUG to 1 by default.
6757         Set YYFPRINTF as parse_fprintf.
6758
6759 2002-06-21  Michal Ludvig  <[email protected]>
6760
6761         * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer 
6762         encoding anymore.
6763         (pointer_encoding, enum ptr_encoding): New.
6764         (execute_cfa_program): Take care about pointer encoding.        
6765         (dwarf2_build_frame_info): Only call parse_frame_info for 
6766         .debug_frame and .eh_frame.
6767         (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6768         fixed augmentation handling, added relative addressing, 
6769         ignore duplicate FDEs. Added comments.
6770         * dwarf2cfi.c: Reindented.
6771         
6772 2002-06-20  Elena Zannoni  <[email protected]>
6773
6774         * event-top.c (command_handler): Don't use space_at_cmd_start
6775         unless there is sbrk() on the host. Assign time and space data
6776         to union fields of the appropriate length.
6777
6778 2002-06-20  Michal Ludvig  <[email protected]>
6779
6780         * x86-64-tdep.c (x86_64_register_nr2name): Rename to 
6781         x86_64_register_name. Return type changed to 'const char *'.
6782         (x86_64_register_name2nr): Rename to x86_64_register_number.
6783         (x86_64_gdbarch_init): Update to reflect the change.
6784         * x86-64-tdep.h: Ditto.
6785         * x86-64-linux-nat.c (x86_64_fxsave_offset)
6786         (supply_fpregset): Ditto.
6787
6788 2002-06-19  Andrew Cagney  <[email protected]>
6789
6790         * regcache.h: Update copyright.
6791         (struct regcache, struct gdbarch): Add opaque declarations.
6792         (current_regcache): Declare global variable.
6793         (regcache_read, regcache_write): Add gdbarch parameter.
6794         (regcache_save, regcache_save_no_passthrough)
6795         (regcache_restore, regcache_restore_no_passthrough)
6796         (regcache_dup, regcache_dup_no_passthrough)
6797         (regcache_cpy, regcache_cpy_no_passthrough)
6798         (deprecated_grub_regcache_for_registers)
6799         (deprecated_grub_regcache_for_register_valid)
6800         (regcache_valid_p): Add function declarations.
6801         
6802         * regcache.c: Update copyright.
6803         (regcache_descr_handle): New global variable.
6804         (struct regcache_descr): Define.
6805         (init_legacy_regcache_descr, init_regcache_descr): New functions.
6806         (regcache_descr, xfree_regcache_descr): New functions.
6807         (struct regcache): Define.
6808         (regcache_xmalloc, regcache_xfree): New functions.
6809         (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6810         (regcache_dup, regcache_dup_no_passthrough): New functions.
6811         (regcache_valid_p, regcache_read_as_address): New functions.
6812         (deprecated_grub_regcache_for_registers): New function.
6813         (deprecated_grub_regcache_for_register_valid): New function.
6814         (current_regcache): New global variable.
6815         (register_buffer): Add regcache parameter.  Update calls.
6816         (regcache_read, regcache_write): Add regcache parameter.  Rewrite.
6817         (read_register_gen, write_register_gen): Update register_buffer
6818         call.  Test for legacy_p instead of gdbarch_register_read_p or
6819         gdbarch_register_write_p.
6820         (regcache_collect): Update register_buffer call.
6821         (build_regcache): Rewrite.  Use deprecated grub functions.
6822         (regcache_save, regcache_save_no_passthrough): New functions.
6823         (regcache_restore, regcache_restore_no_passthrough): New
6824         functions.
6825         (_initialize_regcache): Create the regcache_data_handle. Swap
6826         current_regcache global variable.
6827         
6828         * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6829         parameter to regcache_read and regcache_write calls.
6830         (sh4_register_read): Ditto.
6831         (sh64_pseudo_register_read): Ditto.
6832         (sh64_register_read): Ditto.
6833         (sh_pseudo_register_write): Ditto.
6834         (sh4_register_write): Ditto.
6835         (sh64_pseudo_register_write): Ditto.
6836         (sh64_register_write): Ditto.
6837
6838         * defs.h (XCALLOC): Define.
6839
6840 2002-06-19  Grace Sainsbury  <[email protected]>
6841
6842         * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6843         * m68k-tdep.c (m68k_gdbarch_init): Added.
6844         (m68k_dump_tdep): Added.
6845
6846 2002-06-19  Daniel Jacobowitz  <[email protected]>
6847
6848         * ada-lang.c (fill_in_ada_prototype): Update comment.
6849
6850 2002-06-19  Daniel Jacobowitz  <[email protected]>
6851
6852         * mips-tdep.c (enum mips_abi): Explicitly start at 0.  Add
6853         MIPS_ABI_LAST.
6854         (mips_abi_string, mips_abi_strings): New.
6855         (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6856         (mips_gdbarch_init): Set tdep->found_abi.  Don't set
6857         tdep->mips_abi_string.  Honor mips_abi_string.  Default to
6858         O32 if no ABI is found.
6859         (mips_dump_tdep): Use mips_abi_strings.
6860         (mips_abi_update): New function.
6861         (_initialize_mips_tdep): Initialize mips_abi_string.  Add  
6862         ``set mips abi'' and ``show mips abi''.  Check the size of
6863         mips_abi_strings.
6864
6865 2002-06-19  Andrew Cagney  <[email protected]>
6866
6867         * i386-linux-tdep.c (i386_linux_register_name): Make return type
6868         constant.
6869
6870 2002-06-18  Joel Brobecker  <[email protected]>
6871
6872         * alpha-tdep.c (heuristic_proc_desc): Compute the size of the  
6873         current frame using only the first stack size adjustment. All
6874         subsequent size adjustments are not considered to be part of
6875         the "static" part of the current frame.
6876         Compute the address of the saved registers relative to the
6877         Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6878         in use in this frame.
6879
6880 2002-06-18  Don Howard  <[email protected]>
6881  
6882         * valops.c (value_ind): Use value_at_lazy() when dereferencing
6883         type int expressions.  Thanks to Jim Blandy <[email protected]> for
6884         suggesting this solution.
6885
6886 2002-06-18  Andrew Cagney  <[email protected]>
6887
6888         * config/romp/xm-rtbsd.h: Delete file.
6889         * config/romp/rtbsd.mh: Delete file.
6890
6891 2002-06-18  Keith Seitz  <[email protected]>
6892
6893         * breakpoint.c (condition_command): Post breakpoint_modify
6894         when a condition is added to an existing breakpoint.
6895         (commands_command): Likewise for commands.
6896         (set_ignore_count): Likewise for ignore counts.
6897         If no tty, do not simply return, still need to send event
6898         notification.
6899         (ignore_command): Only print a newline if the command came
6900         from a tty.
6901         Don't call breakpoints_changed, since this is now properly
6902         handled by set_ignore_count.
6903
6904 2002-06-18  Andrew Cagney  <[email protected]>
6905
6906         * MAINTAINERS: Note that cris-elf target can be compiled with
6907         -Werror.
6908         * cris-tdep.c (cris_register_name): Make return type constant.
6909         (cris_breakpoint_from_pc): Ditto.
6910
6911 2002-06-18  Michal Ludvig  <[email protected]>
6912
6913         * frame.h (struct frame_info): Change type of context to 
6914         'struct context'.
6915
6916 2002-06-17  Andrew Cagney  <[email protected]>
6917
6918         * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6919         pointer.
6920         * gdbarch.h, gdbarch.c: Regenerate.
6921         * config/mips/tm-mips.h (mips_register_name): Update.
6922         * i386-tdep.h (i386_register_name): Update.
6923         * mips-tdep.c (mips_register_name): Update
6924         * alpha-tdep.c (alpha_register_name): Update.
6925         * arch-utils.c (legacy_register_name): Update.
6926         * arch-utils.h (legacy_register_name): Update.
6927         * avr-tdep.c (avr_register_name): Update.
6928         * ia64-tdep.c (ia64_register_name): Update.
6929         * i386-tdep.c (i386_register_name): Update.
6930         * sparc-tdep.c (sparc32_register_name): Update.
6931         (sparc64_register_name): Update.
6932         (sparclite_register_name): Update.
6933         (sparclet_register_name): Update.
6934         * sh-tdep.c (sh_generic_register_name): Update.
6935         (sh_sh_register_name): Update.
6936         (sh_sh3_register_name): Update.
6937         (sh_sh3e_register_name): Update.
6938         (sh_sh_dsp_register_name): Update.
6939         (sh_sh3_dsp_register_name): Update.
6940         (sh_sh4_register_name): Update.
6941         (sh_sh64_register_name): Update.
6942         * s390-tdep.c (s390_register_name): Update.
6943         * rs6000-tdep.c (rs6000_register_name): Update.
6944         * ns32k-tdep.c (ns32k_register_name_32082): Update.
6945         (ns32k_register_name_32382): Update.
6946         * d10v-tdep.c (d10v_ts2_register_name): Update.
6947         (d10v_ts3_register_name): Update.
6948         * xstormy16-tdep.c (xstormy16_register_name): Update.
6949         * vax-tdep.c (vax_register_name): Update.
6950         * v850-tdep.c (v850_register_name): Update.
6951         * m68hc11-tdep.c (m68hc11_register_name): Update.
6952         * mn10300-tdep.c (mn10300_generic_register_name): Update.
6953         (am33_register_name): Update.
6954
6955 2002-06-17  Grace Sainsbury  <[email protected]>
6956
6957         * m68k-tdep.c: Reindented.
6958
6959 2002-06-17  Andrew Cagney  <[email protected]>
6960
6961         * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6962         list of predefined types.
6963
6964 2002-06-16  Mark Kettenis  <[email protected]>
6965
6966         * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6967         REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6968         REGISTER_CONVERT_TO_RAW): Remove defines.
6969         (i386_register_virtual_type, i386_register_convertible,
6970         i386_register_convert_to_virtual, i386_register_convert_to_raw):
6971         Remove prototypes.
6972         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6973         macros mentioned above.
6974
6975         * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6976         (i386lynx_saved_pc_after_call): Remove prototype.
6977         * i386ly-tdep.c: Include "i386-tdep.h".
6978         (i386lynx_saved_pc_after_call): Make static.  Use
6979         read_memory_nobpt instead of read_memory.  Use
6980         read_memory_unsigned_integer instead of read_memory_integer.
6981         (i386lynx_init_abi): New function.
6982         (i386lynx_coff_osabi_sniffer): New function.
6983         (_initialize_i386bsd_tdep): New function.
6984
6985         * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6986         CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6987         CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6988         (i386_fix_call_dummy): Remove prototype.
6989         * i386-tdep.c (i386_call_dummy_words): New variable.
6990         (i386_gdbarch_init): Adjust for removal of the
6991         macros mentioned above.
6992
6993 2002-06-15  Andrew Cagney  <[email protected]>
6994
6995         * command.h (add_setshow_auto_boolean_cmd): Replace
6996         add_set_auto_boolean_cmd.
6997         * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6998         add_set_auto_boolean_cmd.
6999         * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7000         * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7001         mask-address'' command.
7002         (show_mask_address): Add cmd parameter.
7003         * remote.c (add_packet_config_cmd): Update.  Change type of
7004         set_func and show_func to cmd_sfunc_ftype.
7005         (_initialize_remote): Update `set remote Z-packet'
7006         (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7007         (show_remote_protocol_e_packet_cmd): Ditto.
7008         (show_remote_protocol_E_packet_cmd): Ditto.
7009         (show_remote_protocol_P_packet_cmd): Ditto.
7010         (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7011         (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7012         (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7013         (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7014         (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7015         (show_remote_protocol_Z_packet_cmd): Ditto.
7016         (show_remote_protocol_binary_download_cmd): Ditto.
7017         (show_remote_cmd): Pass NULL to all of above.
7018
7019 2002-06-15  Mark Kettenis  <[email protected]>
7020
7021         * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7022         DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7023         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7024         POP_FRAME): Remove defines.
7025         (i386_push_arguments, i386_store_struct_return,
7026         i386_extract_return_value, i386_store_return_value,
7027         i386_extract_struct_value_address, i386_push_dummy_frame,
7028         i386_pop_frame): Renove prototypes.
7029         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7030         macros mentioned above.
7031
7032 2002-06-15  Andrew Cagney  <[email protected]>
7033
7034         * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7035         add_set_boolean_cmd.
7036         (add_setshow_cmd): New function.
7037         * command.h (add_setshow_boolean_cmd): Replace
7038         add_set_boolean_cmd.
7039         * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7040         and ``set rdiromatzero''.
7041         * maint.c (_initialize_maint_cmds): Update commented out code.
7042         * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7043         * target.c (initialize_targets): Update `set
7044         trust-readonly-sections'.
7045         * remote.c (_initialize_remote): Update `set remotebreak'.
7046
7047 2002-06-15  Mark Kettenis  <[email protected]>
7048
7049         * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7050         BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7051         * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7052         fit into multi-arch framework.
7053         (i386_breakpoint_from_pc): New function.
7054         (i386_gdbarch_init): Adjust for removal of the macros mentioned
7055         above.
7056
7057         * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7058         FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7059         FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7060         (i386_frameless_function_invocation, i386_frame_num_args,
7061         i386_frame_init_saved_regs): Remove prototypes.
7062         * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7063         macros mentioned above.
7064
7065 2002-06-15  Andrew Cagney  <[email protected]>
7066
7067         * cli/cli-decode.c (set_cmd_cfunc): Update.
7068         (set_cmd_sfunc): Update.
7069         * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7070         (set_cmd_sfunc, set_cmd_cfunc): Update.
7071         * cli/cli-decode.h: Update.
7072
7073 2002-06-15  Mark Kettenis  <[email protected]>
7074
7075         * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7076         (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7077
7078 2002-06-15  Andrew Cagney  <[email protected]>
7079
7080         * defs.h (auto_boolean): Declare enum.
7081         * command.h (cmd_auto_boolean): Delete enum.
7082         * mips-tdep.c (mask_address_var): Update.
7083         (mips_mask_address_p): Update.
7084         (show_mask_address): Update.
7085         * remote.c (struct packet_config): Update.
7086         (update_packet_config): Update.
7087         (show_packet_config_cmd): Update.
7088         (packet_ok): Update.
7089         (add_packet_config_cmd): Update.
7090         (_initialize_remote): 
7091         * command.h: Update.
7092         * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7093         (do_setshow_command): Update.
7094         * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7095         * cli/cli-decode.h: Update.
7096
7097 2002-06-15  Mark Kettenis  <[email protected]>
7098
7099         * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7100         config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7101         config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7102         config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7103         config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7104         * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7105
7106         * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7107         list of DJGPP COFF targets.
7108
7109         * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7110         (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7111         (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7112         (FP0_REGNUM): Remove define.
7113         (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7114         MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7115         (i386_register_virtual_size): Remove protoype.
7116         * i386-tdep.c (i386_register_virtual_size): Removed.
7117         (i386_extract_return_value, i386_store_return_value): Use
7118         FP0_REGNUM instead of NUM_FREGS to determine whether the
7119         floating-point registers are available.
7120         (i386_gdbarch_init): Tweak FIXME about FPU registers.
7121         Adjust for removal of macros mentioned above.
7122
7123 2002-06-15  Mark Kettenis  <[email protected]>
7124
7125         * i386v4-nat.c: Include "i386-tdep.h".  Reformat and tweak various
7126         comments.
7127         (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7128         Remove prototypes.
7129         (supply_gregset, fill_gregset): Remove use of register keyword and
7130         remove declaration for regmap.  Use I386_NUM_GREGS instead of
7131         NUM_REGS and NUM_FREGS.
7132         (FPREGSET_FSAVE_OFFSET): Remove.
7133         (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7134         NUM_FREGS to determine whether the floating-point registers are
7135         available.
7136
7137         * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7138         gnu_store_registers): Replace usage of NUM_GREGS with
7139         I386_NUM_GREGS.
7140
7141         * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7142         OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7143         usage of NUM_GREGS with I386_NUM_GREGS.
7144
7145         * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7146
7147         * i386bsd-nat.c: Include "i386-tdep.h".
7148         (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7149         I386_NUM_GREGS.
7150
7151         * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7152         and associated comment.  They no longer make any sense, since we
7153         don't use this file anymore on Linux.
7154
7155         * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7156         * i386-tdep.c (i386_register_offset, i386_register_size): Use
7157         I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7158         elements in these arrays.
7159         (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7160         MAX_NUM_REGS.
7161
7162 2002-06-15  Mark Kettenis  <[email protected]>
7163
7164         * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7165         * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7166
7167 2002-06-14  Andrew Cagney  <[email protected]>
7168
7169         * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7170         EXTRACT_RETURN_VALUE.
7171         (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7172         EXTRACT_STRUCT_VALUE_ADDRESS.
7173         * gdbarch.h, gdbarch.c: Regenerate.
7174         
7175         * values.c (value_being_returned): Handle
7176         DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7177         (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7178
7179         * arm-linux-tdep.c (arm_linux_init_abi): Update. 
7180         * arm-tdep.c (arm_gdbarch_init): Update.
7181         * avr-tdep.c (avr_gdbarch_init): Update.
7182         * cris-tdep.c (cris_gdbarch_init): Update.
7183         * d10v-tdep.c (d10v_gdbarch_init): Update.
7184         * ia64-tdep.c (ia64_gdbarch_init): Update.
7185         * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7186         * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7187         * s390-tdep.c (s390_gdbarch_init): Update.
7188         * sh-tdep.c (sh_gdbarch_init): Update.
7189         * s390-tdep.c (s390_gdbarch_init): Update.
7190         * sparc-tdep.c (sparc_gdbarch_init): Update.
7191         * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7192         * v850-tdep.c (v850_gdbarch_init): Update.
7193         * vax-tdep.c (vax_gdbarch_init): Update.
7194         * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7195         * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7196
7197         * config/arc/tm-arc.h: Update.
7198         * config/d30v/tm-d30v.h: Update.
7199         * config/fr30/tm-fr30.h: Update.
7200         * config/h8300/tm-h8300.h: Update.
7201         * config/h8500/tm-h8500.h: Update.
7202         * config/i386/tm-i386.h: Update.
7203         * config/i386/tm-ptx.h: Update.
7204         * config/i386/tm-symmetry.h: Update.
7205         * config/i960/tm-i960.h: Update.
7206         * config/m32r/tm-m32r.h: Update.
7207         * config/m68k/tm-delta68.h: Update.
7208         * config/m68k/tm-linux.h: Update.
7209         * config/m68k/tm-m68k.h: Update.
7210         * config/m88k/tm-m88k.h: Update.
7211         * config/mcore/tm-mcore.h: Update.
7212         * config/mips/tm-mips.h: Update.
7213         * config/mn10200/tm-mn10200.h: Update.
7214         * config/pa/tm-hppa.h: Update.
7215         * config/pa/tm-hppa64.h: Update.
7216         * config/sparc/tm-sp64.h: Update.
7217         * config/sparc/tm-sparc.h: Update.
7218         * config/sparc/tm-sparclet.h: Update.
7219         * config/z8k/tm-z8k.h: Update.
7220
7221 2002-06-14  Andrew Cagney  <[email protected]>
7222
7223         * Makefile.in (i386_linux_tdep_h): Define.
7224         (i386_tdep_h, i387_tdep_h): Define.
7225         (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7226         $(i386_tdep_h) and $(i387_tdep_h).
7227         * i386-linux-nat.c: Include "i386-linux-tdep.h".
7228
7229 2002-06-14  Mark Kettenis  <[email protected]>
7230
7231         * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7232         Already covered by the default.
7233
7234         * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7235         TARGET_LONG_DOUBLE_BIT): Remove.  * i386-tdep.c
7236         (i386_gdbarch_init): Initialize long_double_format and long_double
7237         bit.
7238
7239         * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7240         i386bsd-tdep.o.  Remove solib.o, solib-svr4.o and solib-legacy.o.
7241         Move these to ...
7242         * config/i386/i386sol2.mh: ... here.
7243         * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7244         (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7245         (SIGCONTEXT_PC_OFFSET): Remove define.
7246         (IN_SIGTRAMP): Remove define.
7247         * i386-sol2-tdep.c: New file.
7248         
7249         * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7250         * config/i386/tm-i386nw.h: Removed.
7251
7252         * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7253         USE_STRUCT_CONVENTION): Remove defines.
7254         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7255         (get_longjmp_target): Remove prototype.
7256         (IN_SIGTRAMP): Remove define.
7257         (i386bsd_in_sigtramp): Remove prototype.
7258         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7259         function.  Update comment accordingly
7260         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7261         (FRAME_SAVED_PC): Remove define.
7262         (i386bsd_frame_saved_pc): Remove prototype.
7263         * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7264         GET_LONGJMP_TARGET): Remove defines.
7265         (get_longjmp_target): Remove prototype.
7266         (IN_SIGTRAMP): Remove define.
7267         (i386bsd_in_sigtramp): Remove prototype.
7268         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7269         function.  Update comment accordingly
7270         (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7271         (FRAME_SAVED_PC): Remove define.
7272         (i386bsd_frame_saved_pc): Remove prototype.
7273         * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7274         Remove prototype.
7275         (USE_STRUCT_CONVENTION): Remove prototype.
7276         * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7277         declaration.
7278         (_initialize_i386bsd_nat): Revise logic to determine some
7279         constants at compile time when compiling a native GDB.  Warn if
7280         things don't match up with what we expect.
7281         * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7282         Remove variables.
7283         (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp.  Rewrite
7284         to use date stored in `struct gdbarch_tdep'.
7285         (i386bsd_sigcontext_offset): Remove varaible.
7286         (i386bsd_sigtramp_saved_pc): Make public.  Rewrite to use data
7287         stored in `struct gdbarch_tdep'.
7288         (i386bsd_frame_saved_pc): Make static.
7289         (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7290         (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7291         i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7292         i386fbsd4_sc_pc_offset): New variables.
7293         (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7294         i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7295         functions.
7296         (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7297         functions.
7298         * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7299         Modify the value of i386fbsd_sigtramp_start and
7300         i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7301         i386fbsd_sigtramp_end.
7302         * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7303         function.
7304
7305         * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7306         define to i386-linux-tdep.h.
7307         (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7308         REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7309         defines.
7310         (i386_linux_register_name, i386_linux_register_byte,
7311         i386_linux_register_raw_size): Remove prototypes.
7312         (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7313         (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7314         (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7315         TARGET_WRITE_PC): Remove defines.
7316         (i386_linux_in_sigtramp, i386_linux_frame_chain,
7317         i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7318         i386_linux_write_pc): Remove prototypes.
7319         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7320         (get_longjmp_target): Remove prototype.
7321         * i386-linux-tdep.h: New file.
7322         * i386-linux-nat.c: Include "i386-linux-tdep.h".
7323         * i386-linux-tdep.c: Include "i386-tdep.h" and
7324         "i386-linux-tdep.h".
7325         (i386_linux_register_name, i386_linux_register_byte,
7326         i386_linux_register_raw_size, i386_linux_in_sigtramp,
7327         i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7328         Make static.
7329         (i386_linux_init_abi): New function.
7330         (_initialize_i386_linux_tdep): New function.
7331
7332         * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7333         (i386_saved_pc_after_call): Remove prototype.
7334         (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7335         (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7336         DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7337         (i386_register_name, i386_stab_reg_to_regnum,
7338         i386_dwarf_reg_to_regnum): Remove prototypes.
7339         (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7340         SIZEOF_SSE_REGS): Remove defines.
7341         (REGISTER_BYTES): Remove define.
7342         (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7343         (i386_register_byte, i386_register_raw_size): Remove prototypes.
7344         (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7345         (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7346         * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7347         (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7348         JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7349         (get_longjmp_target): Remove prototype.
7350         (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7351         (sigtramp_saved_pc): Remove define.
7352         (i386v4_sigtramp_saved_pc): Remove prototype.
7353         * config/i386/tm-go32.h (FRAME_CHAIN,
7354         FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7355         (i386go32_frame_saved_pc): Remove prototype.
7356         (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7357         (get_longjmp_target): Remove prototype.
7358         * i386-tdep.h: Include "osabi.h".
7359         (enum i386_abi): Removed.
7360         (enum struct_return): New enum.
7361         (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7362         struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7363         sc_pc_offset members.
7364         (i386_gdbarch_register_os_abi): Remove prototype.
7365         (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7366         I386_SSE_NUM_REGS): New defines.
7367         (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7368         I386_SSE_SIZEOF_REGS): New defines.
7369         (i386_register_name, i386_register_byte, i386_register_raw_size):
7370         New prototypes.
7371         (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7372         (i386bsd_sigtramp_saved_pc): New prototype.
7373         * i386-tdep.c: Don't include "elf-bfd.h".
7374         (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7375         i386_frame_chain, i386_saved_pc_after_call): Make static.
7376         (i386_frame_saved_pc): Rewrite to call architecture dependent
7377         function to deal with signal handlers.  Make static.
7378         (i386go32_frame_saved_pc): Removed.
7379         [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7380         Removed.
7381         (i386_get_longjmp_target): New function.
7382         (default_struct_convention, pcc_struct_convention,
7383         reg_struct_convention, valid_conventions, struct_convention): New
7384         variables.
7385         (i386_use_struct_convention): New function.
7386         (i386v4_sigtramp_saved_pc): Renamed to
7387         i386_svr4_sigtramp_saved_pc.  Made static.  Moved.
7388         (i386_pc_in_sigtramp): New function.
7389         (i386_abi_names): Removed.
7390         (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7391         ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7392         Removed.
7393         (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7394         i386_gdbarch_register_os_abi): Removed.
7395         (struct i386_abi_handler): Removed.
7396         (i386_abi_handler_list): Removed.
7397         (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7398         functions.
7399         (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7400         i386_nw_init_abi): New functions.
7401         (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7402         Use set_gdbarch_xxx() calls instead of relying on macros for a
7403         number of calls.
7404         (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7405         (_initialize_i386_tdep): Add new 'struct-convcention' command.
7406         Register the various architecture variants defined in this file.
7407
7408 2002-06-14  Daniel Jacobowitz  <[email protected]>
7409
7410         * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7411         (struct main_type): Remove arg_types member.  Update comments for
7412         struct field.
7413         (TYPE_ARG_TYPES): Remove.
7414         (TYPE_FN_FIELD_ARGS): Update.
7415         (smash_to_method_type): Update prototype.
7416
7417         * c-typeprint.c (cp_type_print_method_args): Take method type
7418         instead of argument list.  Use new argument layout.  Simplify.
7419         (c_type_print_args): Use new argument layout.  Simplify.
7420         (c_type_print_base): Update call to cp_type_print_method_args.
7421         * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7422         argument; use die->type instead.  Update call to
7423         smash_to_method_type.
7424         (read_structure_scope): Update call to dwarf2_add_member_fn.
7425         * gdbtypes.c (allocate_stub_method): Update comment.
7426         (smash_to_method_type): Take new NARGS and VARARGS arguments.
7427         Use new argument layout.
7428         (check_stub_method): Use new argument layout.  Don't count
7429         void as an argument.
7430         (print_arg_types): Update comments.  Use new argument layout.
7431         (recursive_dump_type): Don't print arg_types member.
7432         * hpread.c (hpread_read_struct_type): Use new argument layout.
7433         (fixup_class_method_type): Likewise.
7434         (hpread_type_lookup): Likewise.
7435         * stabsread.c (read_type): Update calls to read_args and
7436         smash_to_method_type.
7437         (read_args): Use new argument layout.  Simplify.
7438         * valops.c (typecmp): Use new argument layout.  Update parameters
7439         and comments.  Simplify.
7440         (hand_function_call): Use new argument layout.
7441         (search_struct_method): Update call to typecmp.
7442         (find_overload_match): Use new argument layout.
7443
7444 2002-06-13  Daniel Jacobowitz  <[email protected]>
7445
7446         * NEWS: Mention multithreaded debug support for gdbserver.
7447
7448 2002-06-13  Daniel Jacobowitz  <[email protected]>
7449
7450         * MAINTAINERS: Mention NEWS.
7451
7452 2002-06-13  Daniel Jacobowitz  <[email protected]>
7453
7454         * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7455         (struct mips_objfile_private, compare_pdr_entries): New.
7456         (non_heuristic_proc_desc): Read the ".pdr" section if it
7457         is present.
7458
7459 2002-06-12  Andrew Cagney  <[email protected]>
7460
7461         * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7462         (arm_debug): New static variable.
7463         (_initialize_arm_tdep): Add ``set debug arm'' command.
7464
7465 2002-06-12  Andrew Cagney  <[email protected]>
7466
7467         * Makefile.in (sim_arm_h): Define.
7468         (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7469         * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7470         (arm_register_sim_regno): New function, map an internal REGNUM
7471         onto a simulator register number.
7472         (arm_gdbarch_init): Set register_sim_regno.
7473
7474 2002-06-09  Aldy Hernandez  <[email protected]>
7475
7476         * MAINTAINERS: Add self.
7477
7478 2002-06-11  Jim Blandy  <[email protected]>
7479
7480         * source.c (source_info): Mention whether the symtab has
7481         information about preprocessor macros.
7482
7483         Call the command `info macro', not `show macro'.
7484         * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7485         Fix error message.
7486         (_initialize_macrocmd): Register `info_macro_command' in
7487         `infolist', not `showlist'.
7488
7489 2002-06-11  Daniel Jacobowitz  <[email protected]>
7490
7491         * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7492         (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7493         (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7494         (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7495         (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions.  Define
7496         unconditionally.
7497         (set_mipsfpu_single_command, set_mipsfpu_double_command)
7498         (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7499         (_initialize_mips_tdep): Remove dead code.
7500         * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7501         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7502         * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7503         (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7504         * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7505         MIPS_LAST_FP_ARG_REGNUM): Remove.
7506
7507 2002-06-11  Michal Ludvig  <[email protected]>
7508
7509         * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7510         (unwind_tmp_obstack_free, parse_frame_info)
7511         (update_context, cfi_read_fp, cfi_write_fp)
7512         (cfi_frame_chain, cfi_init_extra_frame_info)
7513         (cfi_virtual_frame_pointer): Use the above function.
7514         * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7515
7516 2002-06-11  Corinna Vinschen  <[email protected]>
7517
7518         * v850-tdep.c (v850_type_is_scalar): New function.
7519         (v850_use_struct_convention): Match current gcc implementation
7520         as close as possible.
7521         (v850_push_arguments): Fix stack_offset handling.  Don't write
7522         struct_addr into register.  This is done by v850_store_struct_return.
7523         (v850_extract_return_value): Care for structs.
7524         (v850_store_return_value): Ditto.
7525         (v850_store_struct_return): Actually write address.
7526
7527 2002-06-11  Michal Ludvig  <[email protected]>
7528
7529         * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7530         without debug information too.
7531
7532 2002-06-10  Andrew Cagney  <[email protected]>
7533
7534         * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7535         Make multi-arch pure.
7536         * gdbarch.h, gdbarch.c: Re-generate.
7537         * arm-tdep.c (arm_print_float_info): Update.
7538         * arch-utils.h (default_print_float_info): Update.
7539         * arch-utils.c (default_print_float_info): Update.
7540         * infcmd.c (float_info): Update call.
7541
7542 2002-06-10  Andrew Cagney  <[email protected]>
7543
7544         * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7545         the front of the initialize list.
7546
7547 2002-06-10  Andrew Cagney  <[email protected]>
7548
7549         * infrun.c (struct inferior_status): Replace fields
7550         selected_frame_address and selected_level with field
7551         selected_frame_id.
7552         (save_inferior_status): Update.  Use get_frame_id.
7553         (struct restore_selected_frame_args): Delete.
7554         (restore_selected_frame): Update.  Use frame_find_by_id.
7555         (restore_inferior_status): Update.
7556
7557         * breakpoint.h (struct breakpoint): Change type of
7558         watchpoint_frame to frame_id.
7559         * breakpoint.c (insert_breakpoints): Use frame_find_by_id.  Remove
7560         call to get_current_frame.
7561         (do_enable_breakpoint): Use frame_find_by_id.  Remove call to
7562         get_current_frame.
7563         (watchpoint_check): Use frame_find_by_id.
7564
7565         * frame.h (record_selected_frame): Delete declaration.
7566         * stack.c (record_selected_frame): Delete function.
7567         
7568         * frame.h (struct frame_id): Define.
7569         (get_frame_id): Declare.
7570         (frame_find_by_id): Declare.
7571         * frame.c (frame_find_by_id): New function.
7572         (get_frame_id): New function.
7573
7574 2002-06-10  Andrey Volkov <[email protected]>
7575
7576         * ser-e7kpc.c: Fix duplicated define and call of 
7577         _initialize_ser_e7000pc
7578             
7579 2002-06-09  Daniel Jacobowitz  <[email protected]>
7580
7581         * signals/signals.c (target_signal_from_host): Fix #ifdef
7582         SIGRTMIN case.
7583         (do_target_signal_to_host): Likewise.
7584
7585 2002-06-09  Daniel Jacobowitz  <[email protected]>
7586
7587         * mips-tdep.c (mips_find_abi_section): New function.
7588         (mips_gdbarch_init): Call it.
7589
7590 2002-06-09  Mark Kettenis  <[email protected]>
7591
7592         * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7593         legacy_fetch_link_map_offsets.  Adjust comment to reflect reality
7594         after Andrew's 2002-06-08 gdbarch change.
7595
7596 2002-06-09  Mark Kettenis  <[email protected]>
7597
7598         * i386-linux-nat.c (suppy_gregset): Don't supply
7599         I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7600         register cache.
7601         (fill_gregset): Don't fetch it under the same circumstances.
7602
7603 2002-06-09  Andrew Cagney  <[email protected]>
7604
7605         * Makefile.in (callback_h): Define.
7606         (remote_sim_h): Update path to remote-sim.h.
7607         (remote-rdp.o): Add $(callback_h).
7608         (remote-sim.o): Use $(callback_h).
7609         * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7610         * remote-rdp.c: Include "gdb/callback.h".
7611
7612 2002-06-09  Mark Kettenis  <[email protected]>
7613
7614         * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7615         * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7616
7617 2002-06-08  Andrew Cagney  <[email protected]>
7618
7619         * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7620         * rdi-share/serpardr.c: Ditto.
7621         * rdi-share/unixcomm.c: Ditto.
7622         * rdi-share/serdrv.c: Ditto.
7623         * rdi-share/hostchan.h: Ditto.
7624         * rdi-share/hostchan.c: Ditto.
7625         * rdi-share/host.h: Ditto.
7626         * rdi-share/devsw.c: Ditto.
7627
7628         * objfiles.h: Change type of obj_private to void pointer.
7629         * pa64solib.c: Update copyright.  Don't include "assert.h", use
7630         strcmp instead of STREQ, use LONGEST, do not use PTR
7631         * somsolib.c: Ditto.
7632
7633         * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7634         bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7635         bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7636
7637 2002-06-08  Andrew Cagney  <[email protected]>
7638
7639         * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7640         (default_get_saved_register): Delete function.
7641         * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7642         generic_unwind_get_saved_register.
7643         * gdbarch.h, gdbarch.c: Re-generate.
7644         
7645 2002-06-08  Andrew Cagney  <[email protected]>
7646
7647         * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7648         generic_func_frame_chain_valid.
7649         * gdbarch.h, gdbarch.c: Re-generate.
7650         * blockframe.c (generic_func_frame_chain_valid): Only check
7651         PC_IN_CALL_DUMMY when generic dummy frames.  Don't worry about
7652         passing FP to PC_IN_CALL_DUMMY.
7653         Fix PR gdb/360.
7654
7655 2002-06-08  Andrew Cagney  <[email protected]>
7656
7657         * gdbarch.sh (struct gdbarch_data): Add field init_p.
7658         (register_gdbarch_data): Initialize init_p.
7659         (gdbarch_data): Initialize data pointer using the init function.
7660         (init_gdbarch_data): Delete function.
7661         (gdbarch_update_p): Update.
7662         (initialize_non_multiarch): Update.
7663         (struct gdbarch): Add field initialized_p.
7664         * gdbarch.h, gdbarch.c: Re-generate.
7665
7666 2002-06-07  Michal Ludvig  <[email protected]>
7667
7668         * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7669         (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7670         better do the things actually here.
7671         * x86-64-tdep.c (x86_64_register_name2nr): New.
7672         (x86_64_register_name): Renamed to x86_64_register_nr2name.
7673         (x86_64_gdbarch_init): Respect the above change.
7674         * x86-64-tdep.h (x86_64_register_name2nr)
7675         (x86_64_register_nr2name): Add prototypes.
7676         * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7677
7678 2002-06-06  Michael Snyder  <[email protected]>
7679
7680         * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7681         Delete extra braces and re-indent.
7682         (d10v_store_return_value): Char return values
7683         must be shifted over by one byte in R0.
7684         (d10v_extract_return_value): Delete extra braces, re-indent.
7685
7686 2002-06-06  Elena Zannoni  <[email protected]>
7687
7688         * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7689         (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7690         (d10v_integer_to_address): Rewrite.
7691         (d10v_frame_init_saved_regs): When reading fp and sp registers use
7692         the d10v specific functions which take care of converting to the
7693         correct space.
7694
7695 2002-06-06  Elena Zannoni  <[email protected]>
7696
7697         * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7698         altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7699
7700 2002-06-02  Andrew Cagney  <[email protected]>
7701
7702         * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7703         includes.
7704         * config/tm-linux.h: Ditto.
7705         * config/alpha/tm-alphalinux.h: Ditto.
7706         * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7707         * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7708         * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7709         * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7710         * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7711         * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7712         * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7713         * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7714         * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7715         * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7716         * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7717         * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7718         * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7719         * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7720         * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7721         * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7722         * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7723         * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7724         * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7725         * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7726         * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7727         * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7728         * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7729         * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7730         * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7731         * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7732         * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7733         * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7734         * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7735         * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7736         * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7737         * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7738         * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7739         * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7740         * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7741         * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7742         * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7743
7744 2002-05-04  Aidan Skinner <[email protected]>
7745
7746         * ada-exp.tab.c: New file
7747         * ada-exp.y: New file
7748         * ada-lang.c: New file
7749         * ada-lang.h: New file
7750         * ada-lex.c: New file
7751         * ada-lex.l: New file
7752         * ada-tasks.c: New file
7753         * ada-typeprint.c: New file
7754         * ada-valprint.c: New file
7755         
7756 2002-06-02  Jason Thorpe  <[email protected]>
7757
7758         * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7759         use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7760
7761 2002-06-02  Jason Thorpe  <[email protected]>
7762
7763         * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7764         insetead of ppc-linux-tdep.o.
7765         * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7766         * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7767
7768 2002-06-02  Andrew Cagney  <[email protected]>
7769
7770         2002-05-07 Christian Groessler <[email protected]>
7771         * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7772         bit register contents for little endian hosts.
7773
7774 2002-06-01  Andrew Cagney  <[email protected]>
7775
7776         * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7777         any maintainer.
7778
7779 2002-06-01  Andrew Cagney  <[email protected]>
7780
7781         * gdbarch.h: Regenerate.
7782
7783 2002-06-01  Andrew Cagney  <[email protected]>
7784
7785         * MAINTAINERS: Add everyone to write-after-approval list.
7786
7787 2002-06-01  Andrew Cagney  <[email protected]>
7788
7789         * stack.c (frame_info): Use frame_register_unwind instead of
7790         saved_regs.  Mention when the SP is on the stack or in a register.
7791
7792         * frame.h (frame_register_unwind_ftype): Define.  Document.
7793         (struct frame_info): Add field register_unwind and
7794         register_unwind_cache.
7795         (frame_register_unwind): Declare.
7796         (generic_unwind_get_saved_register): Declare.
7797
7798         * frame.c (frame_register_unwind): New function.
7799         (generic_unwind_get_saved_register): New function.
7800
7801         * blockframe.c (generic_call_dummy_register_unwind): New function.
7802         (frame_saved_regs_register_unwind): New function.
7803         (set_unwind_by_pc): New function.
7804         (create_new_frame): New function.
7805         (get_prev_frame): New function.
7806
7807 2002-05-30  Andrew Cagney  <[email protected]>
7808
7809         * a29k-share/: Delete directory.
7810         * remote-vx29k.c: Delete file.
7811
7812 2002-05-30  Jason Thorpe  <[email protected]>
7813
7814         * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7815         ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7816
7817 2002-05-30  Jason Thorpe  <[email protected]>
7818
7819         * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7820         sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7821         (sparc64nbsd-nat.o)
7822         (sparcnbsd-nat.o)
7823         (sparcnbsd-tdep.o): New dependency lists.
7824         * NEWS: Note new UltraSPARC NetBSD native configuration.
7825         * configure.host (sparc64-*-netbsd*): New host.
7826         * configure.tgt (sparc-*-netbsdelf*)
7827         (sparc-*-netbsd*): Set gdb_target to nbsd.
7828         (sparc64-*-netbsd*): New target.
7829         * sparc64nbsd-nat.c: New file.
7830         * sparcnbsd-nat.c: New file.
7831         * sparcnbsd-tdep.c: New file.
7832         * sparcnbsd-tdep.h: New file.
7833         * config/sparc/nbsd.mt: New file.
7834         * config/sparc/nbsd64.mh: New file.
7835         * config/sparc/nbsd64.mt: New file.
7836         * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7837         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
7838         (HOST_IPC): Remove.
7839         * config/sparc/nbsdaout.mt: Remove.
7840         * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7841         sparc-nat.o, and solib.o.  Add sparcnbsd-nat.o.
7842         (HOST_IPC): Remove.
7843         * config/sparc/nbsdelf.mt: Remove.
7844         * config/sparc/nm-nbsd.h: Update copyright years.  Remove all
7845         sparc-nat.c compatiblity defines.
7846         * config/sparc/tm-nbsd.h: Update copyright years.  Include solib.h.
7847         (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7848         * config/sparc/tm-nbsd64.h: New file.
7849         * config/sparc/tm-nbsdaout.h: Remove.
7850         * config/sparc/xm-nbsd.h: Remove.
7851
7852 2002-05-30  Jason Thorpe  <[email protected]>
7853
7854         * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7855         * sparc-tdep.c: Include osabi.h.
7856         (gdbarch_tdep): Add osabi member.
7857         (_initialize_sparc_tdep): Use gdbarch_register.
7858         (sparc_gdbarch_init): Use generic OS ABI framework.
7859         (sparc_dump_tdep): New function.
7860
7861 2002-05-30  Kevin Buettner  <[email protected]>
7862
7863         * corefile.c (do_captured_read_memory_integer): Return non-zero
7864         result.
7865         (safe_read_memory_integer): Copy result of memory read when
7866         status is non-zero.  Also, add comments.
7867
7868 2002-05-20  Jason Thorpe  <[email protected]>
7869
7870         * Makefile.in (ppc_tdep_h): Define.
7871         (ppc-linux-nat.o)
7872         (ppc-linux-tdep.o)
7873         (rs6000-tdep.o): Use $(ppc_tdep_h).
7874         (ppc-sysv-tdep.o)
7875         (ppcnbsd-nat.o)
7876         (ppcnbsd-tdep.o): New dependency lists.
7877         * ppc-tdep.h: Use generic OS ABI framework.
7878         * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7879         (ppc_linux_init_abi): New functions.
7880         (ppc_sysv_abi_broken_use_struct_convention)
7881         (ppc_sysv_abi_use_struct_convention)
7882         (ppc_sysv_abi_push_arguments): Move to...
7883         * ppc-sysv-tdep.c: ...here.
7884         * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7885         * rs6000-tdep.c (process_note_abi_tag_sections)
7886         (get_elfosabi): Remove.
7887         (rs6000_gdbarch_init): Use generic OS ABI framework.
7888         (rs6000_dump_tdep): New function.
7889         (_initialize_rs6000_tdep): Use gdbarch_register.
7890         * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7891         * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7892         * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7893         of ppc-linux-tdep.o.
7894         * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7895         * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7896         * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7897         * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7898         * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7899         * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7900
7901 2002-05-29  Jim Blandy  <[email protected]>
7902
7903         * macroscope.c (default_macro_scope): Put `void' in empty argument
7904         list.
7905
7906 2002-05-29  Andrew Cagney  <[email protected]>
7907
7908         * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7909         * arch-utils.c: Include "sim-regno.h".
7910         * gdbarch.sh: Don't include "sim-regno.h".
7911         * gdbarch.h, gdbarch.c: Regenerate.
7912         * sim-regno.h (legacy_register_sim_regno): Move declaration from
7913         here.
7914         * arch-utils.h (legacy_register_sim_regno): To here.
7915         * remote-sim.c (legacy_register_sim_regno): Move function from
7916         here.
7917         * arch-utils.c (legacy_register_sim_regno): To here.
7918
7919 2002-05-28  Andrew Cagney  <[email protected]>
7920
7921         * sim-regno.h: New file.
7922         * Makefile.in (sim_regno_h): Define.
7923         (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7924         * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7925         (legacy_register_sim_regno): New function.
7926         (one2one_register_sim_regno): New function.
7927         (gdbsim_fetch_register): Rewrite.
7928         (gdbsim_store_register): Only store a register when
7929         REGISTER_SIM_REGNO is valid.
7930         * d10v-tdep.c: Include "sim-regno.h".
7931         (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7932         (d10v_ts3_register_sim_regno): Ditto.
7933         * gdbarch.sh: Include "sim-regno.h".
7934         (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7935         * gdbarch.h, gdbarch.c: Regenerate.
7936         * arch-utils.h (default_register_sim_regno): Delete declaration.
7937         * arch-utils.c (default_register_sim_regno): Delete function.
7938
7939 2002-05-28  Jason Thorpe  <[email protected]>
7940
7941         * ppcnbsd-nat.c: Rewrite.
7942         * ppcnbsd-tdep.c: New file.
7943         * ppcnbsd-tdep.h: New file.
7944         * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7945         solib.o, and solib-svr4.o.
7946         * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7947         nbsd-tdep.o, and corelow.o.
7948
7949 2002-05-28  Andrew Cagney  <[email protected]>
7950
7951         * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7952         `tr' and `sed'.  Mention that `broken' targets are not expected to
7953         build.
7954
7955 2002-05-27  Michal Ludvig  <[email protected]>
7956
7957         * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7958         Let PC point right after the prologue before looking up symbols.
7959         
7960 2002-05-27  Martin M. Hunt  <[email protected]>
7961
7962         * i386-tdep.c (i386_register_virtual_type): Return 
7963         builtin_type_vec128i for SSE registers.
7964
7965         * gdbtypes.h (builtin_type_vec128i): Declare.
7966
7967         * gdbtypes.c (build_builtin_type_vec128i): New function.
7968         (builtin_type_v2_double, builtin_type_v4_int64): New types.
7969         (builtin_type_vec128i): New type for SSE2 128-bit registers.
7970         (build_gdbtypes): Initialize new builtin vector types.
7971         (_initialize_gdbtypes): Register new vector types with gdbarch.
7972
7973 2002-05-26  Jason Thorpe  <[email protected]>
7974
7975         * MAINTAINERS: ns32k is not longer an obsolete candidate,
7976         since it has been multi-arch'd.
7977         * NEWS: Note that ns32k-*-* is now partial multi-arch.
7978         Move Alpha and VAX multi-arch news entries to same section
7979         as other multi-arch news.
7980
7981 2002-05-26  Jason Thorpe  <[email protected]>
7982
7983         * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7984         target.s, arch-utils.h, ns32k-tdep.h.  Make many functions
7985         static.  Rename some register numbers to put them in ns32k-tdep
7986         private namespace.
7987         (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7988         ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7989         functions.
7990         (_initialize_ns32k_tdep): Use gdbarch_register.
7991         * ns32k-tdep.h: New file.
7992         * ns32knbsd-tdep.c: New file.
7993         * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7994         * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7995         (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7996         REGISTER_BYTES, REGISTER_BYTE): Remove.
7997         * config/ns32k/tm-ns32k.h: New file.
7998         * config/ns32k/tm-umax.h: Remove.
7999
8000 2002-05-26  Jason Thorpe  <[email protected]>
8001
8002         * ns32k-tdep.c (ns32k_saved_pc_after_call,
8003         ns32k_store_struct_return, ns32k_extract_return_value,
8004         ns32k_store_return_value, ns32k_extract_struct_value_address): New
8005         functions.
8006         * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8007         ns32k_saved_pc_after_call.
8008         (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8009         (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8010         (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8011         (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8012         ns32k_extract_struct_value_address.
8013
8014 2002-05-26  Jason Thorpe  <[email protected]>
8015
8016         * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8017         ns32k_fix_call_dummy): New.
8018         * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8019         ns32k_call_dummy_words.
8020         (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8021         (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8022         CALL_DUMMY_NARGS): Remove.
8023         (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8024
8025 2002-05-26  Jason Thorpe  <[email protected]>
8026
8027         * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8028         ns32k_frame_saved_pc, ns32k_frame_args_address,
8029         ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8030         ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8031         * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8032         * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8033         (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8034         (BREAKPOINT): Remove..
8035         (FRAME_CHAIN): Define as ns32k_frame_chain.
8036         (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8037         (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8038         (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8039         (FRAME_FIND_SAVED_REGS): Remove.
8040         (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8041         (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8042         (POP_FRAME): Define as ns32k_pop_frame.
8043
8044 2002-05-26  Jason Thorpe  <[email protected]>
8045
8046         * ns32k-tdep.c (ns32k_register_byte_32082,
8047         ns32k_register_byte_32382, ns32k_register_raw_size,
8048         ns32k_register_virtual_size, ns32k_register_virtual_type): New
8049         functions.
8050         * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8051         ns32k_register_byte_32382.
8052         * config/ns32k/tm-umax.h: Update copyright years.
8053         (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8054         (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8055         (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8056         (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8057         (ns32k_get_enter_addr): Fix prototype.
8058
8059 2002-05-26  Jason Thorpe  <[email protected]>
8060
8061         * ns32k-tdep.c: Update copyright years.
8062         (ns32k_register_name_32082): New function.
8063         (ns32k_register_name_32382): Ditto.
8064         * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8065         (REGISTER_NAME): Define as ns32k_register_name_32382.
8066         * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8067         (REGISTER_NAME): Define as ns32k_register_name_32082.
8068
8069 2002-05-24  Jim Blandy  <[email protected]>
8070
8071         * dwarf2read.c (free_line_header): Use xfree, not free.
8072
8073 2002-05-24  Jason Thorpe  <[email protected]>
8074
8075         * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8076         alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8077
8078 2002-05-23  Andrew Cagney  <[email protected]>
8079
8080         * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8081
8082 2002-05-23  Andrew Cagney  <[email protected]>
8083
8084         From Ross Alexander at NEC Europe:
8085         * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8086
8087 2002-05-23  Michael Snyder  <[email protected]>
8088
8089         * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8090         for input, rather than parse_and_eval_address.  
8091
8092 2002-05-23  Andrew Cagney  <[email protected]>
8093
8094         * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8095         * Makefile.in (sim_d10v_h): Update definition.
8096
8097 2002-05-24  Andrew Cagney  <[email protected]>
8098
8099         * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8100         change `2002-05-22 Michael Snyder' below.
8101         (d10v_push_arguments): Ditto.
8102         (d10v_extract_return_value): Ditto.
8103
8104 2002-05-23  Jim Blandy  <[email protected]>
8105
8106         * macrotab.c (check_for_redefinition): Don't complain if the new
8107         definition is the same as the previous one.  Take more arguments
8108         to allow the comparison.
8109         (macro_define_object, macro_define_function): Pass more arguments
8110         to check_for_redefinition.
8111
8112 2002-05-22  Michael Snyder  <[email protected]>
8113
8114         * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8115         (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8116         (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8117         (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8118         Don't bail if return_pc is PC_IN_CALL_DUMMY.
8119         Add a temp variable to save a call (and a memory read).
8120         (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8121         if possible (so that PC_IN_CALL_DUMMY will work).
8122
8123 2002-05-22  Corinna Vinschen  <[email protected]>
8124
8125         * MAINTAINERS: Remove status `OBSOLETE' from v850.
8126
8127 2002-05-22  Michal Ludvig  <[email protected]>
8128
8129         * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8130         fde->cie_ptr.
8131         (dwarf2_build_frame_info): Corrected handling of eh_frame.
8132         (dwarf2_build_frame_info): Add offset to fde->initial_location 
8133         so that frames of shared libraries are mapped correctly.
8134         (execute_stack_op): Change type of 'result' from ULONGEST to
8135         CORE_ADDR.
8136         
8137 2002-05-22  Jason Thorpe  <[email protected]>
8138
8139         * config/alpha/tm-nbsd.h: Include solib.h.
8140
8141 2002-05-22  Jason Thorpe  <[email protected]>
8142
8143         * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8144         assumptions about the host's byte order.
8145
8146 2002-05-22  Jason Thorpe  <[email protected]>
8147
8148         * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8149         to dependency list.
8150         * alphanbsd-tdep.c: Include solib-svr4.h.
8151         * shnbsd-tdep.c: Ditto.
8152
8153 2002-05-22  Jason Thorpe  <[email protected]>
8154
8155         * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8156         nbsd-tdep.h to dependency list.
8157         * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8158         i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8159         ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8160         nbsdaout.mh and nbsdelf.mh consistently.
8161         * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8162         ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8163         nbsdaout.mt and nbsdelf.mh consistently.
8164         * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h. 
8165         (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8166         to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8167         * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS.  Move
8168         a.out shared library stuff from here...
8169         * config/nm-nbsdaout.h: ...to here.
8170         * config/tm-nbsd.h: Remove.
8171         * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8172         * config/arm/nbsd.mh: Remove.
8173         * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8174         nbsd-tdep.o.
8175         * config/arm/nbsdaout.mh: New file. 
8176         * config/arm/nbsdelf.mh: New file.
8177         * config/arm/nm-nbsdaout.h: New file.
8178         * config/i386/nbsd.mh: Remove.
8179         * config/i386/nbsd.mt: Remove.
8180         * config/i386/nbsdaout.mh: New file.
8181         * config/i386/nbsdaout.mt: New file.
8182         * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8183         * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8184         * config/i386/nm-nbsd.h (REGISTER_U_ADDR, 
8185         i386_register_u_addr): Remove.
8186         * config/i386/nm-nbsdaout.h: New file.
8187         * config/i386/nm-nbsdelf.h: Remove.
8188         * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8189         (USE_STRUCT_CONVENTION): Remove.
8190         * config/i386/tm-nbsdaout.h: New file.
8191         * config/i386/tm-nbsdelf.h: Remove.
8192         * config/m68k/nbsd.mh: Remove.
8193         * config/m68k/nbsd.mt: Remove.
8194         * config/m68k/nbsdaout.mh: New file.
8195         * config/m68k/nbsdaout.mt: New file. 
8196         * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8197         * config/m68k/nm-nbsdaout.h: New file.
8198         * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8199         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8200         * config/ns32k/nbsd.mh: Remove.
8201         * config/ns32k/nbsd.mt: Remove. 
8202         * config/ns32k/nbsdaout.mh: New file.
8203         * config/ns32k/nbsdaout.mt: New file.
8204         * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h. 
8205         * config/ns32k/nm-nbsdaout.h: New file.
8206         * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.  
8207         (IN_SOLIB_CALL_TRAMPOLINE): Define.
8208         * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8209         (SVR4_SHARED_LIBS): Remove.
8210         * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8211         * config/sparc/nbsd.mh: Remove.
8212         * config/sparc/nbsd.mt: Remove.
8213         * config/sparc/nbsdaout.mh: New file.
8214         * config/sparc/nbsdaout.mt: New file.
8215         * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8216         * config/sparc/nbsdelf.mt: New file.
8217         * config/sparc/nm-nbsdaout.h: New file.   
8218         * config/sparc/nm-nbsdelf.h: Remove.
8219         * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8220         * config/sparc/tm-nbsdaout.h: New file.
8221
8222 2002-05-21  Jason Thorpe  <[email protected]>
8223
8224         * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8225         mipsnbsd-tdep.c
8226         (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8227
8228 2002-05-21  Jason Thorpe  <[email protected]>
8229
8230         * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8231         shnbsd-nat.c.
8232         (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8233
8234 2002-05-21  Jason Thorpe  <[email protected]>
8235
8236         * NEWS: Note new MIPS NetBSD native configuration. 
8237         * configure.host (mips*-*-netbsd*): New host. 
8238         * configure.tgt (mips*-*-netbsd*): New target. 
8239         * mipsnbsd-nat.c: New file.
8240         * mipsnbsd-tdep.c: New file.
8241         * mipsnbsd-tdep.h: New file.
8242         * config/mips/nbsd.mh: New file.
8243         * config/mips/nbsd.mt: New file.
8244         * config/mips/nm-nbsd.h: New file.
8245         * config/mips/tm-nbsd.h: New file.
8246
8247 2002-05-21  Jason Thorpe  <[email protected]>
8248
8249         * Makefile.in (SFILES): Add osabi.c.
8250         (COMMON_OBS): Add osabi.o.
8251         (osabi.o): New dependency list.
8252         * osabi.c: New file.
8253         * osabi.h: New file.
8254         * doc/gdbint.texinfo: Document new generic OS ABI framework.
8255
8256         * Makefile.in (alpha_tdep_h): Define and use instead of
8257         alpha-tdep.h.
8258         * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8259         get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8260         Remove.
8261         (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8262         * alpha-tdep.h: Include osabi.h.
8263         (alpha_abi): Remove.
8264         (gdbarch_tdep): Use generic OS ABI framework.
8265         * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8266         gdbarch_register_osabi.
8267         * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8268         * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8269         * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8270
8271         * Makefile.in (sh_tdep_h): Add osabi.h.
8272         * sh-tdep.h (sh_osabi): Remove.
8273         (gdbarch_tdep): Use generic OS ABI framework.
8274         * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8275         sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8276         (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8277         * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8278
8279         * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8280         * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8281         gdbarch_register_osabi.
8282         * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8283         arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8284         (get_elfosabi): Rename to...
8285         (arm_elf_osabi_sniffer): ...this.  Adjust to use generic OS
8286         ABI framework support routines.
8287         (arm_gdbarch_init): Use generic OS ABI framework.
8288         (arm_dump_tdep): Likewise.
8289         (_initialize_arm_tdep): Likewise.
8290         * arm-tdep.h: Include osabi.h.
8291         (arm_abi): Remove.
8292         (gdbarch_tdep): Remove arm_abi and abi_name members.  Add
8293         osabi member.
8294         (arm_gdbarch_register_os_abi): Remove prototype.
8295         * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8296         (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8297
8298         * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8299         * mips-tdep.c: Include osabi.h.
8300         (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8301         OS ABI framework.
8302
8303 2002-05-20  Kazu Hirata  <[email protected]>
8304
8305         * h8300-tdep.c: Fix formatting.
8306
8307 2002-05-20  Elena Zannoni  <[email protected]>
8308
8309         * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8310         printing vector registers.
8311
8312 2002-05-19  Andrew Cagney  <[email protected]>
8313
8314         From Fernando Nasser:
8315         * remote.c (remote_async_open_1): Re-throw the exception when the
8316         connection fails.
8317         (remote_cisco_open): Ditto.
8318         (remote_open_1): Ditto.
8319
8320 2002-05-19  Andrew Cagney  <[email protected]>
8321
8322         * remote.c (remote_start_remote_dummy): Add uiout parameter.
8323         (remote_start_remote): Add uiout parameter.  Pass through to
8324         remote_start_remote_dummy.
8325         (remote_open_1): Use catch_exception instead of catch_errors.
8326         (remote_async_open_1): Ditto.
8327         (remote_cisco_open): Ditto.
8328
8329 2002-05-19  Andrew Cagney  <[email protected]>
8330
8331         * remote.c (remote_start_remote): Replace PTR with void pointer.
8332         (sigint_remote_twice_token, sigint_remote_token): Ditto.  Make
8333         static.
8334
8335 2002-05-18  Andrew Cagney  <[email protected]>
8336
8337         * gdb_indent.sh: Allow the script to be run in the sim directory.
8338
8339 2002-05-18  Mark Kettenis  <[email protected]>
8340
8341         * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8342         * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8343
8344         * corelow.c (core_open): Only call set_gdbarch_from_file if
8345         exec_bfd is NULL.
8346
8347 2002-05-17  Andrey Volkov <[email protected]>
8348
8349         * h8300-tdep.c: Add support of EXR register
8350         * config/h8300/tm-h8300.h: Ditto. 
8351         
8352 2002-05-17  Andrey Volkov <[email protected]>
8353
8354         * h8300-tdep.c: Add additional CCR flags (I,UI,H,U) 
8355         
8356 2002-05-17  Andrey Volkov <[email protected]>
8357
8358         * h8300-tdep.c: Change literal regnums to REGNO.
8359         
8360 2002-05-17  Jim Blandy  <[email protected]>
8361
8362         * NEWS: Note addition of macro support.
8363
8364         Expand preprocessor macros in C expressions.
8365         * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8366         (scan_macro_expansion, scanning_macro_expansion,
8367         finished_macro_expansion): New function declarations.
8368         (expression_macro_lookup_func, expression_macro_lookup_baton): New
8369         variable declarations.
8370         * parser-defs.h (expression_context_pc): New declaration.
8371         * parse.c (expression_context_pc): New variable.
8372         (parse_exp_1): Set expression_context_pc, as well as
8373         expression_context_block.
8374         * c-exp.y (yylex): If we're not already reading the result of a
8375         macro expansion, try to macro-expand the next token.  When we're
8376         done scanning a macro expansion, switch back to the mainline text.
8377         Commas and `if's in a macro's expansion don't terminate the input.
8378         * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8379         (macro_original_text, macro_expanded_text,
8380         expression_macro_lookup_func, expression_macro_lookup_baton): New
8381         variables.
8382         (scan_macro_expansion, scanning_macro_expansion,
8383         finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8384         c_preprocess_and_parse): New functions.
8385         (c_language_defn, cplus_language_defn, asm_language_defn): Call
8386         c_preprocess_and_parse, instead of c_parse.
8387         * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8388         (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8389
8390 Fri May 17 14:26:19 2002  J"orn Rennecke <[email protected]>
8391
8392         * sh-tdep.c (gdb_print_insn_sh64): Delete.
8393         (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8394         (sh_gdbarch_init): Always use gdb_print_insn_sh.
8395
8396 2002-05-17  Corinna Vinschen  <[email protected]>
8397
8398         * NEWS: Add section for multi-arched targets.  Add v850 to that section.
8399
8400 2002-05-17  Jason Thorpe  <[email protected]>
8401
8402         * Makefile.in (sh_tdep_h): Define and use.
8403         * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8404         register enum): Move to...
8405         * * sh-tdep.h: ...here.
8406         * sh-tdep.c: Include sh-tdep.h.
8407         * sh3-rom.c: Likewise.
8408         * shnbsd-tdep.c: Likewise.
8409
8410 2002-05-16  Michael Snyder  <[email protected]>
8411
8412         * arm-tdep.c: Spelling fix in comment.
8413
8414 2002-05-16  Jim Blandy  <[email protected]>
8415
8416         Add commands for manually expanding macros and showing their
8417         definitions.
8418         * macrocmd.c, macroscope.c, macroscope.h: New files.
8419         * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8420         (macroscope_h): New variable.
8421         (HFILES_NO_SRCDIR): Add macroscope.h.
8422         (COMMON_OBS): Add macrocmd.o, macroscope.o.
8423         (macroscope.o, macrocmd.o): New rules.
8424
8425         Teach the Dwarf 2 reader to read macro information.
8426         * dwarf2read.c: #include "macrotab.h".
8427         (dwarf_macinfo_buffer): New variable.
8428         (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8429         dwarf_macinfo_size.
8430         (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8431         (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8432         dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8433         dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8434         dwarf2_macro_spaces_in_definition): New complaints.
8435         (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8436         (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8437         (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8438         the partial symbol table.
8439         (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8440         from what's recorded in the partial symbol table.
8441         (read_file_scope): If the compilation unit has a
8442         `DW_AT_macro_info' attribute, read its macro information.
8443         * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8444
8445 2002-05-16  Daniel Jacobowitz  <[email protected]>
8446
8447         Fix PR gdb/546
8448         * ser-tcp.c: Don't include <netinet/udp.h>.
8449
8450 2002-05-16  Stephane Carrez  <[email protected]>
8451
8452         * MAINTAINERS: Update my email address.
8453
8454 2002-05-16  Richard Earnshaw  <[email protected]>
8455
8456         * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8457         include file of the same name.
8458
8459 2002-05-16  Corinna Vinschen  <[email protected]>
8460
8461         * configure.tgt: Mark v850 as multi-arched.
8462         * config/v850/tm-v850.h: Remove file.
8463         * config/v850/v850.mt: Eliminate TM_FILE.
8464
8465 2002-05-16  Corinna Vinschen  <[email protected]>
8466
8467         * v850-tdep.c: Full multi-arch.
8468         * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8469         Define GDB_MULTI_ARCH to 2.
8470
8471 2002-05-16  Pierre Muller  <[email protected]>
8472
8473         * p-exp.y (current_type): New static variable.
8474         Carries the type of the expression at the position that is parsed.
8475         (push_current_type, pop_current_type): Two new functions. Used
8476         to store/restore current_type in expression on specific tokens.
8477         (search_field): New static variable. Set to one after parsing a point
8478         as at that point only a FIELDNAME token should be searched.
8479         (FIELDNAME): New token. After a point only a token belonging to 
8480         current_type type definition is allowed.
8481         (all over token rules): reset and change current_type according
8482         to rules.
8483         (exp '[' rule): insert implicit array index field if
8484         exp is a pascal string type.
8485
8486 2002-05-16  Corinna Vinschen  <[email protected]>
8487
8488         * v850-tdep.c: Fix comment for v850_scan_prologue.  Remove extra
8489         frame info.  Use frame_info's saved_regs instead of matching member
8490         in extra_frame_info throughout.
8491         (v850_frame_init_saved_regs): New function.
8492         (v850_init_extra_frame_info): Move most functionality into
8493         v850_frame_init_saved_regs().
8494         * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8495         (v850_frame_find_saved_regs): Remove declaration.
8496         (FRAME_FIND_SAVED_REGS): Remove definition.
8497         (v850_frame_init_saved_regs): Add declaration.
8498         (FRAME_INIT_SAVED_REGS): Add definition.
8499
8500 2002-05-16  Corinna Vinschen  <[email protected]>
8501
8502         * v850-tdep.c: Begin multi-arch'ing v850.
8503         (v850_target_architecture_hook): Remove function.
8504         (v850_gdbarch_init): New function.  Add code previously in
8505         v850_target_architecture_hook().
8506         (_initialize_v850_tdep): Don't  set target_architecture_hook.
8507         Call register_gdbarch_init() instead.
8508
8509 2002-05-16 Daniel Jacobowitz  <[email protected]>
8510
8511         * gdbtypes.h (struct cplus_struct_type): Remove args field.
8512         * hpread.c (hpread_read_struct_type): Remove assignments to args.
8513         (fixup_class_method_type): Likewise.
8514
8515 2002-05-15  Jim Blandy  <[email protected]>
8516
8517         Add macro structures to GDB's symbol tables.  Nobody puts anything
8518         in them yet.
8519         * symtab.h (struct symtab): New member: `macro_table'.
8520         * buildsym.h (pending_macros): New global variable.
8521         * buildsym.c: #include "macrotab.h".
8522         (buildsym_init): Initialize `pending_macros'.
8523         (end_symtab): If we found macro information while reading a CU's
8524         debugging info, do build a symtab structure for it.  Make the
8525         symtab point to the macro information, and clear the
8526         `pending_macros' pointer which held it while we were reading the
8527         debug info.
8528         (really_free_pendings): Free any pending macro table.
8529         * objfiles.h (struct objfile): New member: `macro_cache'.
8530         * objfiles.c (allocate_objfile): Set allocate and free functions
8531         for the macro cache's objstack.
8532         (free_objfile): Empty the macro cache's obstack.
8533         * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8534         set new allocate and free functions for it.
8535         * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8536         free functions for the macro cache's objstack.  (Why is this
8537         function building its own objfile?)
8538         * symmisc.c (print_objfile_statistics): Print statistics on the
8539         macro bcache.
8540         * Makefile.in: Note that buildsym.o depends on macrotab.h.
8541
8542 2002-05-15  Richard Earnshaw  <[email protected]>
8543
8544         * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8545         (REGISTER_U_ADDR): Delete definition.
8546         (arm_register_u_addr): Delete declaration.
8547
8548 2002-05-15  Richard Earnshaw  <[email protected]>
8549
8550         * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8551         (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8552
8553 2002-05-14  Andrew Cagney  <[email protected]>
8554
8555         * regcache.c (register_valid): Revise comments refering to "Not
8556         available" and "unavailable".
8557         * frame.c (frame_register_read): Ditto.
8558         * findvar.c (value_of_register): Ditto.
8559
8560 2002-05-15  Andrew Cagney  <[email protected]>
8561
8562         * Makefile.in (remote_sim_h): Replace remote-sim_h.
8563         (remote-sim.o): Update dependencies.
8564         (d10v-tdep.o): Specify dependencies.
8565         (sim_d10v_h): Define.
8566
8567 2002-05-14  Jim Blandy  <[email protected]>
8568
8569         * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8570         * macrotab.c (macro_lookup_inclusion, find_definition,
8571         new_macro_table): Same.
8572         
8573         * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8574         not `! strcmp ()'.  This is a dubious improvement.
8575         * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8576
8577         * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8578         although it's not necessary, to avoid a warning.
8579
8580 2002-05-14  Daniel Jacobowitz  <[email protected]>
8581
8582         * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8583         (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8584         TYPE_INSTANCE_FLAGS.
8585         (struct main_type): New.
8586         (struct type): Move most members to struct main_type.  Change
8587         cv_type and as_type to new type_chain member.  Add instance_flags.
8588         (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8589         (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8590         (finish_cv_type): Remove prototype.
8591         * gdbtypes.c (alloc_type): Update comment.  Allocate TYPE_MAIN_TYPE.
8592         Set TYPE_CHAIN.
8593         (alloc_type_instance): New function.
8594         (smash_type): New function.
8595         (make_pointer_type, make_reference_type, make_function_type)
8596         (smash_to_member_type, smash_to_method_type): Call smash_type.
8597         (make_qualified_type): New function.
8598         (make_type_with_address_space): Call make_qualified_type.
8599         (make_cv_type): Likewise.
8600         (finish_cv_type): Remove unnecessary function.
8601         (replace_type): Update comment.  Copy TYPE_MAIN_TYPE.
8602         (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8603         remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8604         * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8605         * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8606         * hpread.c (hpread_read_struct_type): Likewise.
8607         * stabsread.c (read_struct_type): Likewise.
8608
8609 2002-05-14  Elena Zannoni  <[email protected]>
8610
8611         * configure.tgt: Add a catch all sh* target, for cases like
8612         sh[2,3,4]-elf and sh-hms.
8613
8614 2002-05-14  Keith Seitz  <[email protected]>
8615
8616         * event-loop.c (create_file_handler): Don't do anything but
8617         update data when we are given a fd which we are already
8618         monitoring.
8619
8620 2002-05-14  Michal Ludvig  <[email protected]>
8621
8622         * dwarf2cfi.c (context_cpy): Copy registers correctly.
8623         (update_context): Use __func__ in warnings.
8624         
8625 2002-05-14  Daniel Jacobowitz  <[email protected]>
8626
8627         * ser-tcp.c: Include <netinet/udp.h>.  Rename tcp_open
8628         and tcp_close to net_open and net_close.
8629         (net_open): Accept "udp:" and "tcp:" specifications.  Connect
8630         using UDP if requested.  Don't try to disable Nagle on UDP
8631         sockets.
8632         * remote.c (remote_serial_open): New function.  Warn about UDP.
8633         (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8634
8635 2002-05-13  Elena Zannoni  <[email protected]>
8636
8637         * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8638
8639 2002-05-13  Elena Zannoni  <[email protected]>
8640
8641         * configure.tgt: Remove sh-hms target.
8642         * MAINTAINERS: Don't list sh-hms as a separate target.
8643
8644 2002-05-13  Jim Blandy  <[email protected]>
8645
8646         Add first preprocessor macro-expansion files.
8647         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8648         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8649         (splay_tree_h, macroexp_h, macrotab_h): New variable.
8650         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8651         (COMMON_OBS): Add macrotab.o, macroexp.o.
8652         (macroexp.o, macrotab.o): New rules.
8653
8654 2002-05-13  Andrew Cagney  <[email protected]>
8655
8656         * config/m88k/tm-m88k.h: Update copyright.
8657         (m88k_target_write_pc): Declare
8658         (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8659         (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8660         (SHIFT_INST_REGS): Update definition.
8661         * m88k-tdep.c (m88k_target_write_pc): New function.  Implement
8662         using old definition of TARGET_WRITE_PC.
8663         * regcache.c (generic_target_write_pc): Delete code handling
8664         NNPC_REGNUM.
8665         * gdbarch.sh (NNPC_REGNUM): Delete.
8666         * gdbarch.h, gdbarch.c: Regenerate.
8667
8668 2002-05-13  Richard Earnshaw  <[email protected]>
8669
8670         * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8671         builtin reg number.
8672
8673 2002-05-13  Daniel Jacobowitz  <[email protected]>
8674
8675         * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8676         (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8677         (gen_address_of, gen_struct_ref, gen_repeat): Use type
8678         access macros.
8679         * c-typeprint.c (cp_type_print_method_args): Likewise.
8680         (c_type_print_args): Likewise.
8681         * d10v-tdep.c (d10v_push_arguments): Likewise.
8682         (d10v_extract_return_value): Likewise.
8683         * expprint.c (print_subexp): Likewise.
8684         * gdbtypes.c (lookup_primitive_typename): Likewise.
8685         (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8686         * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8687         (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8688         (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8689         (TYPE_VECTOR): Likewise.
8690         * hpread.c (hpread_read_struct_type)
8691         (fix_static_member_physnames, fixup_class_method_type)
8692         (hpread_type_lookup): Likewise.
8693         * mdebugread.c (parse_symbol, parse_type): Likewise.
8694         * p-lang.c (is_pascal_string_type): Likewise.
8695         * valops.c (hand_function_call): Likewise.
8696         * x86-64-tdep.c (classify_argument): Likewise.
8697
8698         * hpread.c (hpread_read_function_type)
8699         (hpread_read_doc_function_type): Call replace_type.
8700         * dstread.c (create_new_type): Delete.
8701         (decode_dst_structure, process_dst_function): Call alloc_type.
8702         Use type access macros.
8703
8704 2002-05-12  Mark Kettenis  <[email protected]>
8705
8706         * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8707         the're not supported by the current architecture.
8708         (i387_fill_fxsave): Likewise.
8709
8710 2002-05-12  Fred Fish  <[email protected]>
8711
8712         * symfile.c (default_symfile_offsets): Arrange for uninitialized
8713         sect_index_xxx members to index the first slot in section_offsets
8714         if all of the section_offsets are zero.
8715
8716 2002-05-12  Mark Kettenis  <[email protected]>
8717
8718         * configure.tgt (sparc-*openbsd): Remove entry accidentially
8719         checked in with last change.
8720
8721 2002-05-12  Mark Kettenis  <[email protected]>
8722
8723         * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8724         Remove targets.  These are canonicalized to i386-*-sysv4.2uw by
8725         config.sub.
8726
8727 2002-05-12  Daniel Jacobowitz  <[email protected]>
8728
8729         * Makefile.in: Update dependencies.
8730
8731 2002-05-11  Andrew Cagney  <[email protected]>
8732
8733         * language.c (local_hex_string_custom): Simplify.  Do not depend
8734         on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8735
8736         * memattr.c (mem_info_command): Replace calls to
8737         longest_local_hex_string and longest_local_hex_string_custom.
8738         * buildsym.c (make_blockvector): Ditto.
8739         * solib.c (info_sharedlibrary_command): Ditto.
8740         * tracepoint.c (tracepoints_info): Ditto.
8741         * symtab.c (print_msymbol_info): Ditto.
8742
8743         * language.c (local_hex_string): Delete.
8744         (local_hex_string_custom): Delete.
8745         (longest_local_hex_string): Rename to local_hex_string.
8746         (longest_local_hex_string_custom): Rename to
8747         local_hex_string_custom.
8748         * language.h (local_hex_string): Change parameter type to LONGEST.
8749         (local_hex_string_custom): Ditto.
8750         (longest_local_hex_string): Delete declaration.
8751         (longest_local_hex_string_custom): Ditto.
8752
8753         * solib.c: Update copyright.
8754         * memattr.c: Update copyright.
8755         
8756 2002-05-11  Andrew Cagney  <[email protected]>
8757
8758         * arch-utils.h (legacy_register_to_value): Declare.
8759         (legacy_value_to_register): Declare.
8760         (legacy_convert_register_p): Declare.
8761         * arch-utils.c (legacy_register_to_value): New function.
8762         (legacy_value_to_register): New function.
8763         (legacy_convert_register_p): New function.
8764
8765         * gdbarch.sh (REGISTER_TO_VALUE): Define.
8766         (VALUE_TO_REGISTER): Define.
8767         (CONVERT_REGISTER_P): Define.
8768         * gdbarch.h, gdbarch.c: Regenerate.
8769
8770         * valops.c (value_assign): Use CONVERT_REGISTER_P and
8771         VALUE_TO_REGISTER.
8772         * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8773         CONVERT_REGISTER_P.
8774
8775 2005-05-11  Daniel Jacobowitz  <[email protected]>
8776             Peter Schauer  <[email protected]>
8777
8778         * Makefile.in: Update dependencies for valops.c.
8779         * valops.c: Include "gdb_assert.h".
8780         (typecmp): Skip THIS parameter to methods.
8781         (find_method_list): Remove static_memfuncp argument,
8782         update callers.  Check for stub methods.
8783         (find_value_oload_method_list): Don't set *static_memfuncp.
8784         (find_overload_match): Don't check for stub methods.  Assert
8785         that methods are not stubbed.  Handle static methods.
8786         (value_find_oload_method_list): Remove static_memfuncp argument.
8787         * gdbtypes.c (check_stub_method): Do not add THIS pointer
8788         to the argument list for static stub methods.
8789         * value.h (value_find_oload_method_list): Update prototype.
8790
8791 2002-05-11  Andrew Cagney  <[email protected]>
8792
8793         * arch-utils.h (generic_register_size): Declare.
8794         (generic_register_raw_size, generic_register_virtual_size): Delete
8795         declarations.
8796         * arch-utils.c (generic_register_raw_size): Delete.
8797         (generic_register_size): New function.
8798         (generic_register_virtual_size): Delete.
8799
8800         * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8801         default generic_register_size.
8802         * gdbarch.h, gdbarch.c: Re-generate.
8803         
8804         * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8805         register_virtual_size.
8806         * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8807         * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8808
8809 2002-05-11  Andrew Cagney  <[email protected]>
8810
8811         * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8812         * gdbarch.h, gdbarch.c: Regenerate.
8813         * gnu-v3-abi.c: Update copyright.
8814         (vtable_address_point_offset): Update.
8815         (gnuv3_rtti_type): Update.
8816         (gnuv3_baseclass_offset): Update.
8817         * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8818         (init_fetch_link_map_offsets): Update.
8819         * remote.c (get_remote_state): Update.
8820         
8821 2002-05-11  Daniel Jacobowitz  <[email protected]>
8822
8823         * TODO: Remove value_headof/value_from_vtable_info comment.
8824         * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8825         * values.c (value_headof, value_from_vtable_info): Delete.
8826         * value.h (value_from_vtable_info): Delete prototype.
8827
8828 2002-05-11  Andrew Cagney  <[email protected]>
8829
8830         * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8831         gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8832         $(gdb_regex_h).
8833         (gdb_assert_h): Define.
8834         (gdb_wait_h): Define.
8835         (gdb_regex_h): Define.
8836
8837 2002-05-11 Daniel Jacobowitz  <[email protected]>
8838
8839         From Peter Schauer <[email protected]>:
8840         * linespec.c (find_methods): Handle GCC 3.x template constructors.
8841
8842 2002-05-11  Jason Thorpe  <[email protected]>
8843
8844         * nbsd-tdep.c: Fix comment.
8845
8846 2002-05-11  Jason Thorpe  <[email protected]>
8847
8848         * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8849         (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8850         (nbsd-tdep.o): New dependency list.
8851         * alphanbsd-tdep.c: Don't include solib-svr4.h.  Include
8852         nbsd-tdep.h.
8853         (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8854         (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8855         * nbsd-tdep.c: New file.
8856         * nbsd-tdep.h: New file.
8857         * shnbsd-tdep.c: Don't include solib-svr4.h.  Include
8858         nbsd-tdep.h.
8859         (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8860         (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8861         * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8862         * config/sh/nbsd.mt (TDEPFILES): Ditto.
8863
8864 2002-05-11  Jason Thorpe  <[email protected]>
8865
8866         * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8867         * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8868         * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8869         * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8870         * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8871         * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8872
8873 2002-05-11  Jason Thorpe  <[email protected]>
8874
8875         * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8876         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8877         * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8878         * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8879         * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8880         * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8881         * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8882
8883 2002-05-11  Jason Thorpe  <[email protected]>
8884
8885         * i386nbsd-nat.c: Delete file.  Move fetch_core_registers and
8886         fetch_elfcore_registers to...
8887         * i386nbsd-tdep.c: ...here.
8888         (i386nbsd_use_struct_convention): Rename to...
8889         (i386nbsd_aout_use_struct_convention): ...this.
8890         (i386nbsd_supply_reg): New function.
8891         (i386nbsd_fill_reg): New function.
8892         (fetch_core_registers): Use i386nbsd_supply_reg.
8893         (fetch_elfcore_registers): Likewise.
8894         (_initialize_i386nbsd_tdep): New function.
8895         * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8896         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8897         * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8898         * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8899         (i386nbsd_aout_use_struct_convention): ...this.
8900
8901 2002-05-11  Jason Thorpe  <[email protected]>
8902
8903         * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8904         (store_inferior_registers): Use shnbsd_fill_reg.
8905         * shnbsd-tdep.c (sh_nbsd_supply_registers, 
8906         sh_nbsd_supply_register): Collapse into...
8907         (shnbsd_supply_reg): ...this.
8908         (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8909         (shnbsd_fill_reg): ...this.
8910         (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8911         (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8912         (fetch_core_registers): Use shnbsd_supply_reg.
8913         (fetch_elfcore_registers): Use shnbsd_supply_reg.
8914         (sh_nbsd_core_fns): Rename to...
8915         (shnbsd_core_fns): ...this.
8916         (sh_nbsd_elfcore_fns): Rename to...
8917         (shnbsd_elfcore_fns): ...this.
8918         (sh_nbsd_init_abi): Rename to...
8919         (shnbsd_init_abi): ...this.
8920         (_initialize_sh_nbsd_tdep): Rename to...
8921         (_initialize_shnbsd_tdep): ...this.
8922         * shnbsd-tdep.h (sh_nbsd_supply_registers,
8923         sh_nbsd_supply_register, sh_nbsd_fill_registers,
8924         sh_nbsd_fill_register): Remove prototypes.
8925         (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8926
8927 2002-05-11  Jason Thorpe  <[email protected]>
8928
8929         * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8930         (i387-nat.o): Delete dependency list.
8931         (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8932         (x86-64-linux-nat.o): Likewise.
8933         * i387-nat.c: Delete file, moving contents to...
8934         * i387-tdep.c: ...here.
8935         * i387-nat.h: Rename...
8936         * i387-tdep.h: ...to this.
8937         * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8938         * i386-linux-nat.c: Likewise.
8939         * i386bsd-nat.c: Likewise.
8940         * i386gnu-nat.c: Likewise.
8941         * i386nbsd-nat.c: Likewise.
8942         * i386v4-nat.c: Likewise.
8943         * x86-64-linux-nat.c: Likewise.
8944         * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8945         * config/i386/go32.mh (NATDEPFILES): Likewise.
8946         * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8947         * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8948         * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8949         * config/i386/linux.mh (NATDEPFILES): Likewise.
8950         * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8951         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8952         * config/i386/obsd.mh (NATDEPFILES): Likewise.
8953         * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8954
8955 2002-05-11  Jason Thorpe  <[email protected]>
8956
8957         * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8958         (alphanbsd-nat.o): Remove dependency list.
8959         (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8960         * alphanbsd-nat.c: Delete.  Contents moved to...
8961         * alphanbsd-tdep.c: ...here.
8962         (_initialize_alphanbsd_tdep): Register core functions.
8963         * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8964
8965 2002-05-11  Jason Thorpe  <[email protected]>
8966
8967         * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8968         (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8969         (alphanbsd-nat.o): Likewise.
8970         (alphabsd-tdep.o): New dependency list.
8971         * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8972         (fill_gregset): Use alphabsd_fill_reg.
8973         (supply_fpregset): Use alphabsd_supply_fpreg.
8974         (fill_fpregset): Use alphabsd_fill_fpreg.
8975         (fetch_inferior_registers): Use struct reg and struct fpreg
8976         rather than gregset_t and fpregset_t.  Use alphabsd_supply_reg
8977         and alphabsd_supply_fpreg.
8978         (store_inferior_registers): Use struct reg and struct fpreg
8979         rather than gregset_t and fpregset_t.  Use alphabsd_fill_reg
8980         and alphabsd_fill_fpreg.
8981         * alphabsd-tdep.c: New file.
8982         * alphabsd-tdep.h: New file.
8983         * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8984         (fetch_elfcore_registers): Use alphabsd_supply_reg and
8985         alphabsd_supply_fpreg.
8986         * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8987         * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8988
8989 2002-05-11  Eric Christopher  <[email protected]>
8990
8991         * mips-tdep.c (mips_double_register_type): Fix thinko.
8992         (mips_single_register_type): Ditto.
8993         * MAINTAINERS: Add self.
8994
8995 2002-05-11  Mark Kettenis  <[email protected]>
8996
8997         * i387-nat.c (i387_supply_register, i387_fill_fsave,
8998         i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8999         right thing on architectures with different endianness and/or
9000         integer sizes.
9001
9002 2002-05-10  Jason Thorpe  <[email protected]>
9003
9004         From Christian Limpach <[email protected]>
9005         * configure.in: Change sed expression which comments out
9006         NATDEPFILES to also comment out continuation lines.
9007         * configure: Regenerate.
9008
9009 2002-05-10  Elena Zannoni  <[email protected]>
9010
9011         * sh-tdep.c: Clean up code erroneously reintroduced by previous
9012         big patch.
9013
9014 2002-05-10  Elena Zannoni  <[email protected]>
9015
9016         * sh-tdep.c: Include correct file.
9017
9018 2002-05-10  Elena Zannoni  <[email protected]>
9019
9020         New support for sh64-elf (sh5) target.
9021
9022         * configure.tgt: For sh64-elf target, default to sh-elf.
9023
9024         * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9025         (struct gdbarch_tdep): Add new fields for new registers and ABI
9026         info.
9027
9028         * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9029         (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9030         MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9031         UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9032         IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9033         IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9034         IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9035         IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9036         IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9037         IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9038         IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9039         (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9040         pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9041         sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9042         gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9043         sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9044         sh64_get_gdb_regnum, sh64_media_reg_base_num,
9045         sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9046         sign_extend, sh64_nofp_frame_init_saved_regs,
9047         sh64_init_extra_frame_info, sh64_get_saved_register,
9048         sh64_extract_struct_value_address, sh64_pop_frame,
9049         sh64_push_arguments, sh64_extract_return_value,
9050         sh64_store_return_value, sh64_show_media_regs,
9051         sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9052         sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9053         sh_sh64_register_virtual_type,
9054         sh_sh64_register_convert_to_virtual,
9055         sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9056         sh64_register_read, sh64_pseudo_register_write,
9057         sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9058         do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9059         sh64_do_pseudo_register, sh_compact_do_registers_info,
9060         sh64_do_registers_info, sh_gdbarch_init): New functions.
9061
9062 2002-05-10  Elena Zannoni  <[email protected]>
9063
9064         * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9065
9066 2002-05-10 Daniel Jacobowitz  <[email protected]>
9067
9068         * linespec.c (decode_line_1): Check for a double quote after
9069         a filename correctly.
9070
9071 2002-05-10  Jim Blandy  <[email protected]>
9072
9073         Properly track the size of the current objfile's .debug_line section.
9074         * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9075         (DWARF_LINE_SIZE): New macro.
9076         (dwarf2_build_psymtabs_hard): Record the line section's size in
9077         the partial symbol table.
9078         (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9079         symbol table.
9080
9081 2002-05-10  Petr Sorfa  <[email protected]>
9082
9083         * ia64-tdep.c: Handle breakpoints on L instruction type
9084         in MLX instruction bundle by moving the breakpoint to
9085         the third slot (X instruction type) as L holds only data.
9086
9087 2002-05-10  Kevin Buettner  <[email protected]>
9088
9089         * dbxread.c (discarding_local_symbols_complaint): New complaint.
9090         (process_one_symbol): Complain about discarding local symbols
9091         due to a misplaced N_LBRAC entry.
9092
9093 2002-05-09  Elena Zannoni  <[email protected]>
9094
9095         From Daniel Berlin <[email protected]>
9096         * linespec.c (find_toplevel_char): '<' and '>' also increase and
9097         decrease the depth we are at, in the case of templates.
9098
9099 2002-05-09  Daniel Jacobowitz  <[email protected]>
9100
9101         * mips-tdep.c (mips_float_register_type): New function.
9102         (mips_double_register_type): New function.
9103         (mips_print_register): Use them.
9104         (do_fp_register_row): Likewise.
9105
9106 2002-05-09  Daniel Jacobowitz  <[email protected]>
9107
9108         * signals/signals.c (signals): Remove conditional compilation around
9109         Mach-specific signals.  Move them to after TARGET_SIGNAL_DEFAULT.
9110         (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9111
9112 2002-05-09  Michael Snyder  <[email protected]>
9113
9114         * remote-rdp.c (remote_rdp_can_run): Remove.
9115
9116 2002-05-09  Tom Tromey  <[email protected]>
9117
9118         * jv-valprint.c (java_val_print): Handle `char' as a special case
9119         of TYPE_CODE_INT.
9120
9121 2002-05-09  Michael Snyder  <[email protected]>
9122
9123         * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9124         strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9125         strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9126         str r(0123),[sp,#nn].
9127         (arm_skip_prologue): Ditto.  Also make disassembly
9128         order-independent by placing it in a loop.
9129
9130 2002-05-06  Michael Snyder  <[email protected]>
9131
9132         * stabsread.c (read_type): Add recognition for new attribute:
9133         "@V;" means that an array type is actually a vector.
9134         This is analogous to the vector flag that's been added to dwarf2.
9135
9136 2002-05-09  Mark Kettenis  <[email protected]>
9137
9138         * i386-tdep.h (i386_abi): New enum.
9139         (struct gdbarch_tdep): Replace os_ident member with abi.
9140         (i386_gdbarch_register_os_abi): New prototype.
9141         * i386-tdep.c (i386_abi_names): New array.
9142         (process_note_abi_tag_sections): Removed.
9143         (process_note_sections): New function.
9144         (i386_elf_abi_from_note, i386_elf_abi): New functions.
9145         (struct i386_abi_handler): New struct.
9146         (i386_abi_handler_list): New variable.
9147         (i386_gdbarch_register_os_abi): New function.
9148         (i386_gdbarch_init): Adapt for the changes given above.
9149
9150 2002-05-08  Daniel Jacobowitz  <[email protected]>
9151
9152         * gregset.h: Say "GNU/Linux".
9153
9154 2002-05-08  Elena Zannoni  <[email protected]>
9155
9156         * gdbtypes.c : Add new builtin type for 64 bit vectors.
9157         (build_gdbtypes): Build builtin_type_v2_float.
9158         (_initialize_gdbtypes): Register new builtin type.
9159
9160 2002-05-08  Andrew Cagney  <[email protected]>
9161
9162         * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9163         (clear_gdbarch_swap): New function.
9164         (initialize_non_multiarch): Call.
9165         (gdbarch_update_p): Before calling init(), swap out and clear the
9166         existing architecture.
9167         * gdbarch.c: Regenerate.
9168
9169 2002-05-08  Jason Thorpe  <[email protected]>
9170
9171         * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9172         alphanbsd-tdep.c.
9173
9174 2002-05-08  Jason Thorpe  <[email protected]>
9175
9176         * sh-nbsd-nat.c: Rename to...
9177         * shnbsd-nat.c: ...this.
9178         * sh-nbsd-tdep.c: Rename to...
9179         * shnbsd-tdep.c: ...this.
9180         * sh-nbsd-tdep.h: Rename to...
9181         * shnbsd-tdep.h: ...this.
9182         * config/sh/nbsd.mh: Use shnbsd-nat.o.
9183         * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9184
9185 2002-05-08  Richard Earnshaw  <[email protected]>
9186
9187         * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9188         concatenation for command help messages.
9189
9190 2002-05-08  Jason Thorpe  <[email protected]>
9191
9192         * NEWS: Note new sh*-*-netbsdelf* configuration.
9193         * configure.host: Set gdb_host_cpu to sh for all sh*.
9194         (sh*-*-netbsdelf*): New host.
9195         * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9196         (sh*-*-netbsdelf*): New target.
9197         * sh-nbsd-nat.c: New file.
9198         * sh-nbsd-tdep.c: New file.
9199         * sh-nbsd-tdep.h: New file.
9200         * config/sh/nbsd.mh: New file.
9201         * config/sh/nbsd.mt: New file.
9202         * config/sh/nm-nbsd.h: New file.
9203         * config/sh/tm-nbsd.h: New file.
9204
9205 2002-05-08  Jason Thorpe  <[email protected]>
9206
9207         * sh-tdep.c (sh_osabi_names): Declare.
9208         (process_note_abi_tag_sections): New function.
9209         (get_elfosabi): Ditto.
9210         (sh_gdbarch_register_os_abi): Ditto.
9211         (sh_dump_tdep): Ditto.
9212         _initialize_sh_tdep): Use gdbarch_register to register
9213         sh_gdbarch_init and sh_dump_tdep.
9214         * config/sh/tm-sh.h (sh_osabi): Declare.
9215         (gdbarch_tdep): Add sh_osabi and osabi_name members.
9216
9217 2002-05-07  Andrew Cagney  <[email protected]>
9218
9219         * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9220         (thumb_scan_prologue): Ditto.
9221         (arm_find_callers_reg): Ditto.
9222         (arm_frame_chain): Ditto.
9223         (arm_init_extra_frame_info): Ditto.
9224         (arm_frame_saved_pc): Ditto.
9225         (arm_pop_frame): Ditto.
9226         (arm_push_return_address): New function.
9227         (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9228         call_dummy_location, call_dummy_breakpoint_offset_p,
9229         call_dummy_breakpoint_offset, call_dummy_p,
9230         call_dummy_stack_adjust_p, call_dummy_words,
9231         sizeof_call_dummy_words, call_dummy_start_offset,
9232         call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9233         call_dummy_address, push_return_address and push_dummy_frame for
9234         generic dummy frames.
9235
9236 2002-05-07  Jason Thorpe  <[email protected]>
9237
9238         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9239         size computation for alloca.
9240         (sh_fp_frame_init_saved_regs): Likewise.
9241
9242 2002-05-07  Richard Earnshaw  <[email protected]>
9243
9244         * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9245         (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9246         * arm-tdep.c (arm_store_return_value): Use them.
9247         Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9248         * remote-rdp.c (remote_rdp_fetch_register): Use
9249         ARM_MAX_REGISTER_RAW_SIZE.
9250         (remote_rdp_store_register): Likewise.
9251
9252 2002-05-07  Michal Ludvig  <[email protected]>
9253
9254         * dwarf2cfi.c: Code cleanup, removed unused variables,
9255         added default labels to switch {} statements.
9256         * x86-64-tdep.c: Ditto.
9257         * x86-64-linux-nat.c: Ditto.
9258
9259 2002-05-07  Jason Thorpe  <[email protected]>
9260
9261         * solib.h: Protect against multiple inclusion.
9262
9263 2002-05-06  Jim Blandy  <[email protected]>
9264
9265         Add first preprocessor macro-expansion files.
9266         * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9267         * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9268         (splay_tree_h, macroexp_h, macrotab_h): New variable.
9269         (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9270         (COMMON_OBS): Add macrotab.o, macroexp.o.
9271         (macroexp.o, macrotab.o): New rules.
9272
9273         Separate the job of reading the line number info statement program
9274         header (...expialidocious) out into its own function.
9275         * dwarf2read.c (struct line_head, struct filenames, struct
9276         directories): Replace with...
9277         (struct line_header): New structure, containing the full
9278         contents of the statement program header, including the
9279         include directory and file name tables.
9280         (read_file_scope): If we have line number info, instead of just
9281         calling dwarf_decode_lines to do all the work, call
9282         dwarf_decode_line_header first to get a `struct line_header'
9283         containing the data in the statement program header, and then
9284         pass that to dwarf_decode_lines, which will pick up where that
9285         left off.  Be sure to clean up the `struct line_header' object.
9286         (dwarf_decode_line_header, free_line_header, add_include_dir,
9287         add_file_name): New functions.
9288         (dwarf_decode_lines): Move all the code to read the statement
9289         program header into dwarf_decode_line_header.  Take the line
9290         header it built as the first argument, instead of the offset to
9291         the compilation unit's line number info.  Use the new `struct
9292         line_header' type instead of the old structures.  No need to do
9293         cleanups here now, since we don't allocate anything.
9294         (dwarf2_statement_list_fits_in_line_number_section,
9295         dwarf2_line_header_too_long): New complaints.
9296
9297 2002-05-06  Elena Zannoni  <[email protected]>
9298
9299         * gdbtypes.c (init_vector_type): New function.
9300         (build_builtin_type_vec128): Simplify the representation of SIMD
9301         registers.
9302         (build_gdbtypes): Initialize new builtin vector types.
9303         (_initialize_gdbtypes): Register new vector types with gdbarch.
9304         (builtin_type_v4_float, builtin_type_v4_int32,
9305         builtin_type_v8_int16, builtin_type_v16_int8,
9306         builtin_type_v2_int32, builtin_type_v4_int16,
9307         builtin_type_v8_int8): New (renamed) SIMD types.
9308
9309 2002-05-06  Mark Kettenis  <[email protected]>
9310
9311         * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9312         (i387_fill_fxsave): Likewise.
9313
9314 2002-05-05  Alexandre Oliva  <[email protected]>
9315
9316         * alpha-tdep.c (alpha_extract_return_value): Don't use
9317         non-constant array size in prototype.
9318
9319 2002-05-04  Andrew Cagney  <[email protected]>
9320
9321         From Brian Taylor <briant at model dot com>:
9322         * ui-out.c (ui_out_field_core_addr): Use the function
9323         longest_local_hex_string_custom'to format addresses > 32 bits
9324         wide.
9325
9326         * ui-out.c (ui_out_field_core_addr): Update comment.
9327
9328 2002-05-04  Andrew Cagney  <[email protected]>
9329
9330         * stack.c (select_and_print_frame): Make static.  Delete the
9331         parameter `level'.
9332         (func_command): Update call.
9333         (select_frame_command): Delete code computing the frame level.
9334         * frame.h (select_and_print_frame): Delete declaration.
9335
9336 2002-05-04  Andrew Cagney  <[email protected]>
9337
9338         * sparc-tdep.c (sparc_get_saved_register): Comment why
9339         get_prev_frame call is safe.
9340
9341 2002-05-04  Andrew Cagney  <[email protected]>
9342
9343         * frame.h (select_frame): Delete level parameter.
9344         * stack.c (select_frame): Update.  Use frame_relative_level to
9345         obtain the frame's level.
9346         (select_and_print_frame): Update call.
9347         (select_frame_command): Ditto.
9348         (up_silently_base): Ditto.
9349         (down_silently_base): Ditto.
9350         * ocd.c (ocd_start_remote): Ditto.
9351         * remote-rdp.c (remote_rdp_open): Ditto.
9352         * remote-mips.c (mips_initialize): Ditto.
9353         (common_open): Ditto.
9354         * remote-e7000.c (e7000_start_remote): Ditto.
9355         * m3-nat.c (select_thread): Ditto.
9356         * hppa-tdep.c (child_get_current_exception_event): Ditto.
9357         (child_get_current_exception_event): Ditto.
9358         * varobj.c (varobj_create): Ditto.
9359         (varobj_update): Ditto.
9360         (c_value_of_root): Ditto.
9361         * tracepoint.c (finish_tfind_command): Ditto.
9362         * corelow.c (core_open): Ditto.
9363         * arch-utils.c (generic_prepare_to_proceed): Ditto.
9364         * thread.c (info_threads_command): Ditto.
9365         (switch_to_thread): Ditto.
9366         * infrun.c (normal_stop): Ditto.
9367         (restore_selected_frame): Ditto.
9368         (restore_inferior_status): Ditto.
9369         * breakpoint.c (insert_breakpoints): Ditto.
9370         (watchpoint_check): Ditto.
9371         (bpstat_stop_status): Ditto.
9372         (do_enable_breakpoint): Ditto.
9373         * blockframe.c (flush_cached_frames): Ditto.
9374         (reinit_frame_cache): Ditto.
9375
9376 2002-05-04  Andrew Cagney  <[email protected]>
9377
9378         * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9379         maintainer.
9380
9381 2002-05-04  Jim Blandy  <[email protected]>
9382
9383         * gdbtypes.c (replace_type): Doc fix.
9384
9385 2002-05-04  Andrew Cagney  <[email protected]>
9386
9387         * valprint.c (strcat_longest): Delete commented out function.
9388         Update copyright.
9389
9390 2002-05-04  Andrew Cagney  <[email protected]>
9391
9392         * MAINTAINERS: Mark a29k as deleted.
9393         * NEWS: Mention that a29k was removed.  Add OBSOLETE section.
9394         Move new configurations to the top.
9395         * configure.tgt: Remove a29k.
9396         * config/a29k/tm-vx29k.h: Delete.
9397         * config/a29k/vx29k.mt: Delete.
9398         * config/a29k/tm-a29k.h: Delete.
9399         * config/a29k/a29k-udi.mt: Delete.
9400         * config/a29k/a29k.mt: Delete.
9401         * a29k-tdep.c: Delete.
9402         * remote-udi.c: Delete.
9403         * remote-mm.c: Delete.
9404         * remote-eb.c: Delete.
9405         * remote-adapt.c: Delete.
9406         * Makefile.in: Remove obsolete code.
9407         * config/s390/s390x.mt: Ditto.
9408         * config/s390/s390.mt: Ditto.
9409         * config/sparc/sparclynx.mh: Ditto.
9410         * config/sparc/linux.mh: Ditto.
9411         * config/pa/hppaosf.mh: Ditto.
9412         * config/pa/hppabsd.mh: Ditto.
9413         * config/ns32k/nbsd.mt: Ditto.
9414         * config/mips/vr5000.mt: Ditto.
9415         * config/m68k/sun3os4.mh: Ditto.
9416         * config/m68k/nbsd.mt: Ditto.
9417         * config/m68k/m68klynx.mh: Ditto.
9418         * config/m32r/m32r.mt: Ditto.
9419         * config/i386/x86-64linux.mt: Ditto.
9420         * config/i386/nbsdelf.mt: Ditto.
9421         * config/i386/nbsd.mt: Ditto.
9422         * config/i386/i386lynx.mh: Ditto.
9423
9424 2002-05-04  Andrew Cagney  <[email protected]>
9425
9426         * target.c (debug_print_register): New function.  Handle oversize
9427         registers.
9428         (debug_to_fetch_registers): Call.
9429         (debug_to_store_registers): Call.
9430
9431 2002-05-03  Jim Blandy  <[email protected]>
9432
9433         * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9434         (read_type): Doc fix.
9435         * gdbtypes.c (replace_type): Doc fix.
9436
9437         * stabsread.c (multiply_defined_struct): New complaint.
9438         (read_struct_type): If the type we were passed isn't empty, or
9439         incomplete, don't read the new struct type into it; complain,
9440         and return the original type unchanged.  Take a new `type_code'
9441         argument, which is the type code for the new type.
9442         (read_type): Rather than storing the type's type code here, pass
9443         it as an argument to read_struct_type, and let that take care of
9444         storing it.  That way, we don't overwrite the original type code,
9445         so read_struct_type can use it to decide whether we're overwriting
9446         something we shouldn't.
9447         (complain_about_struct_wipeout): New function.
9448
9449 2002-05-03  Andrew Cagney  <[email protected]>
9450
9451         * gdbarch.sh: Assert that gdbarch is non-NULL.
9452         * gdbarch.c: Regenerate.
9453
9454 2002-05-03  Jason Merrill  <[email protected]>
9455
9456         * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9457         and return NULL.
9458
9459 2002-05-03  Michal Ludvig  <[email protected]>
9460
9461         * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9462         (x86_64_dwarf2gdb_regno_map_length),
9463         (x86_64_dwarf2_reg_to_regnum): Added.
9464         (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9465         (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9466         (_initialize_x86_64_tdep): Synced with the change above.
9467         (x86_64_skip_prologue): Reformulated message.
9468
9469 2002-05-03  Pierre Muller  <[email protected]>
9470
9471         * f-exp.y: Also use new prev_lexptr variable
9472         to improve error reporting. Based on Michael Snyder
9473         2002-04-24 dated patch to c-exp.y.
9474         * jv-exp.y: Likewise.
9475         * m2-exp.y: Likewise.
9476
9477 2002-05-02  Elena Zannoni  <[email protected]>
9478
9479         * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9480         we are dealing with vectors.
9481
9482 2002-05-02  Pierre Muller  <[email protected]>
9483
9484         * config/m68k/tm-nbsd.h: Obvious fix,
9485         correct machine name.
9486
9487 2002-05-02  Pierre Muller  <[email protected]>
9488
9489         * p-typeprint.c (pascal_type_print_base): Add support
9490         for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9491
9492 2002-05-02  Pierre Muller  <[email protected]>
9493
9494         * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9495         for fondamental pascal 'char' type.
9496
9497 2002-05-02  Pierre Muller  <[email protected]>
9498
9499         * p-lang.h (is_pascal_string_type): Declaration changed,
9500         new sixth argument of type char ** added.
9501         * p-lang.c (is_pascal_string_type): Implementation
9502         changed. Args length_pos, length_size, string_pos, char_size
9503         can now be NULL. New argument arrayname set to the field
9504         name of the char array. Return value set to char array
9505         field index plus one.
9506         * p-valprint.c (pascal_val_print): Adapt to new declaration of
9507         is_pascal_string_type function.
9508
9509 2002-05-02  Andrew Cagney  <[email protected]>
9510
9511         * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9512         <[email protected]> change.
9513         * gdbarch.c: Regenerate.
9514
9515 2002-05-02  Andrew Cagney  <[email protected]>
9516
9517         * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9518         before probing for a new one.  Detect errorenous gdbarch_init
9519         functions.
9520         * gdbarch.c: Regenerate.
9521
9522 2002-05-01  Andrew Cagney  <[email protected]>
9523
9524         * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9525         * config/mcore/tm-mcore.h: Ditto.  Update copyright.
9526         * config/v850/tm-v850.h: Ditto.  Update copyright.
9527
9528 2002-04-30  Andrew Cagney  <[email protected]>
9529
9530         * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9531         current_gdbarch.
9532
9533 2002-04-30  Michael Snyder  <[email protected]>
9534
9535         * arm-tdep.c: Whitespace clean-ups.
9536         (arm_skip_prologue): Fix thinko; two lines
9537         should have been removed as part of 4/24 change.
9538
9539 2002-04-30  Kevin Buettner  <[email protected]>
9540
9541         * rs6000-tdep.c: Added comment describing how fpscr register
9542         numbers were chosen.
9543
9544 2002-04-30  Michael Snyder  <[email protected]>
9545
9546         * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9547
9548 2002-04-29  Elena Zannoni  <[email protected]>
9549
9550         * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9551         (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9552         (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9553
9554 2002-04-29  Kevin Buettner  <[email protected]>
9555
9556         From Louis Hamilton <[email protected]>:
9557         * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9558         * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9559         * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9560         not bfd-private xcoff data, to determine wordsize.
9561         * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9562
9563 2002-04-29  Andrew Cagney  <[email protected]>
9564
9565         GDB 5.2 released from 5.2 branch.
9566
9567 2002-04-29  Michal Ludvig  <[email protected]>
9568
9569         * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9570         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9571         (x86_64_register_info_table): Added comments with register numbers.
9572
9573 2002-04-29  Elena Zannoni  <[email protected]>
9574
9575         * rs6000-tdep.c (rs6000_extract_return_value,
9576         rs6000_store_return_value): Handle returning vectors.
9577         (rs6000_gdbarch_init): Use
9578         ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9579         * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9580         New function.
9581         (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9582         vectors.
9583         (ppc_sysv_abi_push_arguments): Handle vector parameters.
9584         * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9585
9586 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
9587
9588         * hpread.c (hpread_psymtab_to_symtab_1,
9589         hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9590         with fprintf_unfiltered (gdb_stderr,...).
9591
9592 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
9593
9594         * remote-array.c (printf_monitor, write_monitor,
9595         array_insert_breakpoint, array_remove_breakpoint ):
9596         Replace fprintf (stderr,...
9597         with fprintf_unfiltered (gdb_stderr,....
9598         * remote-es.c: Likewise.
9599         * remote-os9k.c: Likewise.
9600         * remote-st.c: Likewise.
9601
9602 2002-04-28  Andreas Schwab  <[email protected]>
9603
9604         * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9605         linux-proc.o and gcore.o.
9606
9607 2002-04-26  Michal Ludvig  <[email protected]>
9608
9609         * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9610         code without frame pointers.
9611
9612 2002-04-26  Andrew Cagney  <[email protected]>
9613
9614         * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9615         ON_STACK is needed.
9616
9617 2002-04-26  Ben Elliston  <[email protected]>
9618
9619         * target.c (do_xfer_memory): Correct reference to the new option
9620         "trust-readonly-sections".
9621
9622 2002-04-26  Elena Zannoni  <[email protected]>
9623
9624         * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9625         * gdbtypes.c (recursive_dump_type): Output the vector flag.
9626         * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9627         vectors.
9628         (read_array_type): Record the fact that this array type is really a
9629         vector (i.e. are passed in by value).
9630
9631 2002-04-26  Jason Thorpe  <[email protected]>
9632
9633         * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9634         * alpha-tdep.c (alpha_sigcontext_addr): New function.
9635         (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9636         (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9637         * alpha-linux-tdep.c: Include frame.h.
9638         (alpha_linux_sigcontext_addr): New function.
9639         (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9640         alpha_linux_sigcontext_addr.
9641         * alpha-osf1-tdep.c: Include gdbcore.h.
9642         (alpha_osf1_sigcontext_addr): New function.
9643         (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9644         alpha_osf1_sigcontext_addr.
9645         * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9646         * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9647
9648 2002-04-26  Andrew Cagney  <[email protected]>
9649
9650         * stack.c (selected_frame_level):
9651         (select_frame): Do not set selected_frame_level.
9652         * frame.h (selected_frame_level): Delete declaration.
9653
9654 2002-04-26  Andrew Cagney  <[email protected]>
9655
9656         * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9657         convert_from_func_ptr-addr when AIX / PowerOpen.
9658
9659 2002-04-25  Andrew Cagney  <[email protected]>
9660
9661         * valops.c (hand_function_call): Call
9662         generic_save_call_dummy_addr.
9663         * frame.h (generic_save_call_dummy_addr): Declare.
9664         * blockframe.c (struct dummy_frame): Add fields call_lo and
9665         call_hi.
9666         (generic_find_dummy_frame): Check for PC in range call_lo to
9667         call_hi instead of entry_point_address.
9668         (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9669         the call_lo to call_hi range.  Allow for DECR_PC_AFTER_BREAK.
9670         (generic_save_call_dummy_addr): New function.
9671
9672 2002-04-24  David S. Miller  <[email protected]>
9673
9674         * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9675         sparc_skip_prologue.
9676         (sparc_skip_prologue): Kill frameless_p arg, and use line number
9677         information to find prologue when possible.
9678         (sparc_prologue_frameless_p): Call examine_prologue directly.
9679         (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9680         * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9681         second argument.
9682         (SKIP_PROLOGUE): Likewise.
9683
9684 2002-04-25  Jason Thorpe  <[email protected]>
9685
9686         * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9687         GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9688         indicate that the condition it was testing is always true.
9689         * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9690         * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9691         * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9692
9693 2002-04-25  Jason Thorpe  <[email protected]>
9694
9695         * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9696         * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9697         tdep->jb_pc and tdep->jb_elt_size.
9698         * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9699         * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9700         * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9701         * alpha-nat.c (get_longjmp_target): Remove.
9702         (JB_ELEMENT_SIZE): Ditto.
9703         (JB_PC): Ditto.
9704         * alpha-tdep.c (alpha_get_longjmp_target): New function.
9705         (alpha_gdbarch_init): Default tdep->jb_pc to -1.  If the
9706         OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9707         to alpha_get_longjmp_target.
9708         (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9709         * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9710         * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9711
9712 2002-04-25  Andrew Cagney  <[email protected]>
9713
9714         * README: Update to GDB 5.2.
9715
9716 2002-04-25  Andrew Cagney  <[email protected]>
9717
9718         * gdbarch.sh (LC_ALL): Set to `c'.
9719
9720 2002-04-25  Theodore A. Roth  <[email protected]>
9721
9722         * avr-tdep.c: Ran through gdb_indent.sh.
9723
9724 2002-04-25  Theodore A. Roth  <[email protected]>
9725
9726         * MAINTAINERS: Add myself as AVR maintainer.
9727         * NEWS: Note new target avr.
9728
9729 2002-04-25  Theodore A. Roth  <[email protected]>
9730
9731         * Makefile.in: Add support for AVR target.
9732         * configure.tgt: Add support for AVR target.
9733         * avr-tdep.c: New file
9734         * config/avr/avr.mt: New file.
9735
9736 2002-04-25  Theodore A. Roth  <[email protected]>
9737
9738         * MAINTAINERS: Add myself to write-after-approval.
9739
9740 2002-04-24  Pierre Muller  <ics.u-strasbg.fr>
9741
9742         * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9743         with fprintf_unfiltered (gdb_stderr,....
9744
9745 2002-04-25  Pierre Muller  <[email protected]>
9746
9747         Fix PR gdb/508.
9748         * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9749
9750 2002-04-25  Pierre Muller  <[email protected]>
9751
9752         * p-exp.y: Also use new prev_lexptr variable
9753         to improve error reporting. Based on Michael Snyder
9754         2002-04-24 dated patch to c-exp.y.
9755
9756 2002-04-25  Jason Thorpe  <[email protected]>
9757
9758         * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9759         (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9760         alpha_breakpoint_from_pc.  Set gdbarch_function_start_offset
9761         to 0.
9762         * config/alpha/tm-alpha.h: Remove forward decls of struct type
9763         and struct value.
9764         (FUNCTION_START_OFFSET): Remove.
9765         (BREAKPOINT): Ditto.
9766
9767 2002-04-25  Jason Thorpe  <[email protected]>
9768
9769         * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9770         * NEWS: Ditto.
9771
9772 2002-04-24  Jason Thorpe  <[email protected]>
9773
9774         * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9775         (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9776         alpha_linux_pc_in_sigtramp.
9777         * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9778         (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9779         alpha_osf1_pc_in_sigtramp.
9780         * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9781         * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9782         (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9783         alphafbsd_pc_in_sigtramp.
9784         * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9785         (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9786         alphanbsd_pc_in_sigtramp.
9787         * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9788         * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9789
9790 2002-04-24  Jason Thorpe  <[email protected]>
9791
9792         * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9793
9794 2002-04-24  Jason Thorpe  <[email protected]>
9795
9796         * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9797         alphanbsd-tdep.c.
9798         (alphanbsd-nat.o): New dependency list.
9799         (alphanbsd-tdep.o): Ditto.
9800         * NEWS: Note new native NetBSD/alpha configuration.
9801         * alphanbsd-nat.c: New file.
9802         * alphanbsd-tdep.c: Ditto.
9803         * configure.host (alpha*-*-netbsd*): New host.
9804         * configure.tgt (alpha*-*-netbsd*): New target.
9805         * config/alpha/nbsd.mh: New file.
9806         * config/alpha/nbsd.mt: Ditto.
9807         * config/alpha/nm-nbsd.h: Ditto.
9808         * config/alpha/tm-nbsd.h: Ditto.
9809
9810 2002-04-24  Jason Thorpe  <[email protected]>
9811
9812         * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9813         (alpha-osf1-tdep.o): New dependency list.
9814         * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9815         and skip_sigtramp_frame members.
9816         * alpha-linux-tdep.c: Include gdbcore.h.
9817         (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9818         (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9819         * alpha-osf1-tdep.c: New file.
9820         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9821         alpha-osf1-dep.c.
9822         (alpha_frame_past_sigtramp_frame): New function.
9823         (alpha_dynamic_sigtramp_offset): Ditto.
9824         (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9825         (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9826         (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9827         (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9828         (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9829         (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9830         (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9831         (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9832         (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9833         (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9834         and tdep->skip_sigtramp_frame.  Set gdbarch_skip_trampoline_code
9835         to find_solib_trampoline_target.
9836         * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9837         * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9838         (SKIP_TRAMPOLINE_CODE): Remove.
9839         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9840         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9841         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9842         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9843         * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9844         (PROC_SIGTRAMP_MAGIC): Ditto.
9845         (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9846         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9847         (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9848         (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9849         (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9850
9851 2002-04-24  Jason Thorpe  <[email protected]>
9852
9853         * NEWS: Note that Alpha targets are now multi-arch.
9854
9855 2002-04-24  Michael Snyder  <[email protected]>
9856
9857         * parser-defs.h (prev_lexptr): New external variable.
9858         * parse.c (parse_exp_1): Set prev_lexptr to null before
9859         calling the language-specific parser.
9860         * c-exp.y (yylex): Set prev_lexptr to start of current token.
9861         (yyerror): Use prev_lexptr in error reporting.
9862
9863 2002-04-24  Daniel Jacobowitz  <[email protected]>
9864
9865         * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9866         * gregset.h: If FILL_FPXREGSET is defined, provide
9867         gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9868         * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9869         is defined, call fill_fpxregset.
9870
9871 2002-04-24  Roland McGrath  <[email protected]>
9872
9873         * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9874         * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9875         (supply_gregset, supply_fpregset): New functions.
9876
9877         * gnu-nat.c (gnu_find_memory_regions): New function.
9878         (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9879         (gnu_xfer_memory): Add a cast.
9880
9881 2002-04-24  Michael Snyder  <[email protected]>
9882
9883         * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9884         loop.  Add handling for "str lr, [sp, #-4]!" and for saves
9885         of argument regs ("str r(0123), [r11, #-nn"]).
9886         (arm_skip_prologue): Better handling for frameless functions.
9887         Treat "mov ip, sp" as optional.  Recognize "str lr, [sp, #-4]".
9888         (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9889
9890 Wed Apr 24 14:22:21 2002  Andrew Cagney  <[email protected]>
9891
9892         * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9893         NUM_PSEUDO_REGS can be used.
9894
9895 2002-04-24  Andrew Cagney  <[email protected]>
9896
9897         * arch-utils.h: Update copyright.
9898
9899         * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9900         * gdbarch.h, gdbarch.c: Re-generate.
9901
9902         * inferior.h (IN_SIGTRAMP): Delete definition.
9903         * arch-utils.c (legacy_pc_in_sigtramp): New function.
9904         * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9905
9906         * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9907         (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9908         * hppa-tdep.c (pc_in_interrupt_handler):  Use PC_IN_SIGTRAMP.
9909         (find_proc_framesize): Ditto.
9910         * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9911         (alpha_init_extra_frame_info): Ditto.
9912         * infrun.c (handle_inferior_event): Ditto.
9913         (handle_inferior_event): Ditto.
9914         (check_sigtramp2): Ditto.
9915         * blockframe.c (create_new_frame): Ditto.
9916         (get_prev_frame): Ditto.
9917         * ppc-linux-tdep.c: Update comments.
9918         * i386-linux-tdep.c: Update comments.
9919         * breakpoint.c (bpstat_what): Update comment.
9920
9921 2002-04-24  David S. Miller  <[email protected]>
9922
9923         * i960-tdep.c (register_in_window_p): New function.
9924         (i960_find_saved_register): Use it instead of
9925         REGISTER_IN_WINDOW_P.
9926         * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9927
9928         * symtab.h (find_stab_function_addr): Kill extern.
9929         * minsyms.c (find_stab_function_addr): Remove from here...
9930         * dbxread.c: ... to here, and mark it static.
9931
9932 2002-04-20  David S. Miller  <[email protected]>
9933
9934         * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9935         SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9936
9937 2002-04-21  David S. Miller  <[email protected]>
9938
9939         * remote-vxsparc.c (vx_read_register): Fix typo, we want
9940         REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9941         (vx_write_register): Likewise.
9942
9943 2002-04-23  J. Brobecker  <[email protected]>
9944
9945         * source.c (is_regular_file): New function.
9946         (openp): Check wether file to open is a regular file
9947         to avoid opening directories.
9948
9949 2002-04-22  Jason Thorpe  <[email protected]>
9950
9951         * findvar.c (extract_signed_integer): Cast printf argument
9952         to suppress format warning.
9953         (extract_unsigned_integer): Likewise.
9954         * infcmd.c (registers_info): Likewise.
9955         * top.c (get_prompt_1): Likewise.
9956         * valops.c (value_assign): Likewise.
9957         * valprint.c (print_decimal): Likewise.
9958
9959 2002-04-22  H.J. Lu  ([email protected])
9960
9961         * c-exp.y (typebase): Support
9962
9963         [long|long long|short] [signed|unsigned] [int|]
9964
9965         and
9966
9967         signed [long|long long|short] int
9968
9969 2002-04-22  Jason Thorpe  <[email protected]>
9970
9971         * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9972         and vax-tdep.h.
9973         * vax-tdep.h: New file.
9974         * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9975         Make several routines static.
9976         (vax_get_saved_register): New function.
9977         (vax_gdbarch_init): New function.
9978         (_initialize_vax_tdep): Register vax_gdbarch_init.
9979         * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9980         Remove macros now under the control of gdbarch.
9981
9982 2002-04-22  Michael Snyder  <[email protected]>
9983
9984         * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9985         Some whitespace and coding standards tweaks.
9986
9987 2002-04-22  Jason Thorpe  <[email protected]>
9988
9989         * vax-tdep.c: Include regcache.h.
9990         (vax_call_dummy_words): New.
9991         (sizeof_vax_call_dummy_words): New.
9992         (vax_fix_call_dummy): New function.
9993         (vax_saved_pc_after_call): Ditto.
9994         * config/vax/tm-vax.h: Don't include regcache.h.
9995         (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9996         (CALL_DUMMY): Remove.
9997         (CALL_DUMMY_WORDS): Define.
9998         (SIZEOF_CALL_DUMMY_WORDS): Define.
9999         (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10000
10001 2002-04-18  Michael Snyder  <[email protected]>
10002
10003         * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10004
10005 2002-04-22  Jason Thorpe  <[email protected]>
10006
10007         * vax-tdep.c (vax_frame_chain): New function.
10008         (vax_push_dummy_frame): Ditto.
10009         (vax_pop_frame): Ditto.
10010         * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10011         (FRAMELESS_FUNCTION_INVOCATION): Use
10012         generic_frameless_function_invocation_not.
10013         (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10014         (POP_FRAME): Use vax_pop_frame.
10015
10016 2002-04-22  Jason Thorpe  <[email protected]>
10017
10018         * vax-tdep.c (vax_store_struct_return): New function.
10019         (vax_extract_return_value): Ditto.
10020         (vax_store_return_value): Ditto.
10021         (vax_extract_struct_value_address): Ditto.
10022         * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10023         vax_store_struct_return.
10024         (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10025         (STORE_RETURN_VALUE): Use vax_store_return_value.
10026         (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10027
10028 2002-04-22  Jason Thorpe  <[email protected]>
10029
10030         * vax-tdep.c (vax_frame_saved_pc): New function.
10031         (vax_frame_args_address_correct): Ditto.
10032         (vax_frame_args_address): Ditto.
10033         (vax_frame_locals_address): Ditto.
10034         (vax_frame_num_args): Move code to be in proximity to
10035         other frame-related functions.
10036         * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10037         (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10038         (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10039         (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10040         (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10041
10042 2002-04-22  H.J. Lu  ([email protected])
10043
10044         * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10045         includedir.
10046
10047 2002-04-22  Jason Thorpe  <[email protected]>
10048
10049         * vax-tdep.c (vax_frame_init_saved_regs): New function.
10050         * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10051         (FRAME_INIT_SAVED_REGS): New macro.
10052
10053 2002-04-22  Jason Thorpe  <[email protected]>
10054
10055         * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10056
10057 2002-04-22  Jason Thorpe  <[email protected]>
10058
10059         * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10060         where needed.
10061         (fetch_osf_core_registers): Likewise.
10062         (supply_gregset): Likewise.
10063
10064 2002-04-22  J. Brobecker  <[email protected]>
10065
10066         * symfile.h (get_section_index): Define.
10067         * symfile.c (get_section_index): New function.
10068         * mdebugread.c (SC_IS_SBSS): New macro.
10069         (SC_IS_BSS): Return true for the scBss storage class only, as
10070         the scSBss storage class refers to the .sbss section.
10071         (parse_partial_symbols): Discard the symbols which associated
10072         section does not exist.
10073         Make sure to use the .sbss section index for symbols which
10074         storage class is scBss, rather than using the .bss section index.
10075
10076 2002-04-22  Jason Thorpe  <[email protected]>
10077
10078         * vax-tdep.c: Update copyright years.
10079         (vax_register_name): New function.
10080         (vax_register_byte): Ditto.
10081         (vax_register_raw_size): Ditto.
10082         (vax_register_virtual_size): Ditto.
10083         (vax_register_virtual_type): Ditto.
10084         * config/vax/tm-vax.h: Update copyright years.
10085         (REGISTER_NAMES): Remove.
10086         (REGISTER_NAME): Define.
10087         (REGISTER_BYTE): Use vax_register_byte.
10088         (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10089         (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10090         (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10091
10092 2002-04-21  Andrew Cagney  <[email protected]>
10093
10094         * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10095         declaration
10096         * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10097
10098 2002-04-21  David S. Miller  <[email protected]>
10099
10100         * arch-utils.c (generic_prologue_frameless_p): Kill
10101         SKIP_PROLOGUE_FRAMELESS_P code.
10102         * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10103         references.
10104         (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10105         * arc-tdep.c (arc_prologue_frameless_p): Implement.
10106         * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10107         references.
10108         (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10109         * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10110         (sparc_gdbarch_init): Pass it to
10111         set_gdbarch_prologue_frameless_p.
10112
10113 2002-04-21  Jason Thorpe  <[email protected]>
10114
10115         * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10116         (alphabsd-nat.o): New dependency list.
10117
10118 2002-04-21  Jason Thorpe  <[email protected]>
10119
10120         * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10121         alphafbsd-tdep.c.
10122         (alpha-linux-tdep.o): New dependency list.
10123         (alphafbsd-tdep.o): Likewise.
10124
10125 2002-04-21  Jason Thorpe  <[email protected]>
10126
10127         * alpha-linux-tdep.c: New file.  Move alpha_linux_sigtramp_offset
10128         to here...
10129         * alpha-tdep.c: ...from here.
10130         * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10131
10132 2002-04-21  Jason Thorpe  <[email protected]>
10133
10134         * config/alpha/tm-alpha.h: Move alpha_software_single_step
10135         prototype from here...
10136         * alpha-tdep.h: ...to here.
10137
10138 2002-04-21  Andrew Cagney  <[email protected]>
10139
10140         * frame.h (selected_frame_level): Document as deprecated.
10141         (frame_relative_level): Declare.
10142         * stack.c (frame_relative_level): New function.
10143         (selected_frame_level): Document as deprecated.
10144         (select_frame): Do not set the selected_frame_level.
10145
10146         * stack.c (frame_info, record_selected_frame): Update.
10147         (frame_command, current_frame_command): Update.
10148         (up_silently_base, up_command, down_silently_base): Update.
10149         (down_command): Update.
10150         * inflow.c (kill_command): Update.
10151         * tracepoint.c (finish_tfind_command): Update.
10152         * corelow.c (core_open): Update.
10153         * thread.c (info_threads_command): Update.
10154         (do_captured_thread_select): Update.
10155         * infcmd.c (finish_command): Update.
10156         * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10157
10158 2002-04-21  Jason Thorpe  <[email protected]>
10159
10160         * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10161
10162 2002-04-21  Andrew Cagney  <[email protected]>
10163
10164         * arm-tdep.c (arm_breakpoint_from_pc): Make static.  Make return
10165         type const.
10166
10167 2002-04-21  Jason Thorpe  <[email protected]>
10168
10169         * alphafbsd-tdep.c: Update copyright years.  Include
10170         alpha-tdep.h.
10171         (alphafbsd_use_struct_convention): Make static.
10172         (alphafbsd_init_abi): New function.
10173         (_initialize_alphafbsd_tdep): New function.
10174         * config/alpha/tm-fbsd.h: Update copyright years.
10175         (USE_STRUCT_CONVENTION): Remove.
10176
10177 2002-04-21  Jason Thorpe  <[email protected]>
10178
10179         * alpha-tdep.c (alpha_abi_handler): New structure to describe
10180         an Alpha ABI variant.
10181         (alpha_abi_handler_list): Declare.
10182         (alpha_gdbarch_register_os_abi): New function.
10183         (alpha_gdbarch_init): Give registered ABI variant handlers a
10184         chance to tweak the gdbarch once we have set up defaults.
10185         * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10186
10187 2002-04-21  Jason Thorpe  <[email protected]>
10188
10189         * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10190         to standard_coerce_float_to_double.
10191         * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10192
10193 2002-04-21  Jason Thorpe  <[email protected]>
10194
10195         * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10196         * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10197         from gdbarch_tdep rather than a constant.
10198         (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10199         the default text address for all Alpha Unix ABIs.
10200         (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10201         * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10202
10203 2002-04-21  Jason Thorpe  <[email protected]>
10204
10205         * alpha-tdep.h: New file.  Includes several Alpha target constants
10206         taken from...
10207         * config/alpha/tm-alpha.h: ...here.  Remove macros that we now
10208         let gdbarch deal with.
10209         (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10210         * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10211         to dependency list.
10212         * alpha-nat.c: Include alpha-tdep.h.  Update for adjusted
10213         Alpha target register names.
10214         * alphabsd-nat.c: Likewise.
10215         * alpha-tdep.c: Include alpha-tdep.h.  Update for adjusted
10216         Alpha target register names.  Make serveral routines static.
10217         (alpha_get_saved_register): New function.
10218         (alpha_abi_names): New.
10219         (process_note_abi_tag_sections): New function.
10220         (get_elfosabi): New function.
10221         (alpha_gdbarch_init): New function.
10222         (alpha_dump_tdep): New function.
10223         (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10224
10225 2002-04-21  Andrew Cagney  <[email protected]>
10226
10227         * frame.c (find_saved_register): Delete #ifdef
10228         HAVE_REGISTER_WINDOWS code.
10229         * config/sparc/tm-sparc.h: Update comments.
10230         * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10231
10232 2002-04-21  Andrew Cagney  <[email protected]>
10233
10234         * i960-tdep.c (i960_find_saved_register): New function.
10235         (i960_get_saved_register): New function.
10236         * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10237         (i960_get_saved_register): Declare.
10238         * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10239
10240 2002-04-20  David S. Miller  <[email protected]>
10241
10242         * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10243
10244 2002-04-20  Andrew Cagney  <[email protected]>
10245
10246         * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10247         instead of NUM_PSEUDO_REGS.
10248
10249 2002-04-20  David S. Miller  <[email protected]>
10250
10251         * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10252         GDB_MULTI_ARCH_PARTIAL
10253         * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10254         define, let tm-sp64.h do it.
10255
10256 2002-04-20  Jason Thorpe  <[email protected]>
10257
10258         * frame.c (find_saved_register): Avoid a NULL pointer
10259         dereference and actually walk the frame list.
10260
10261 2002-04-20  Andrew Cagney  <[email protected]>
10262
10263         * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10264         sorted in most most-recent-used order.  Document.
10265         * gdbarch.h, gdbarch.c: Regenerate.
10266
10267 2002-04-19  Andrew Cagney  <[email protected]>
10268
10269         * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10270         instead of ->prev.
10271         * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10272         * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10273         * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10274         instead of ->prev.
10275
10276 2002-04-19  Elena Zannoni  <[email protected]>
10277
10278         Fix PR gdb/471.
10279         * gdbtypes.c (init_simd_type): Rewrite using new functions.
10280         (build_builtin_type_vec128): Ditto.
10281         (append_composite_type_field): Fix calculation of type length in
10282         union case.
10283
10284 2002-04-19  Eli Zaretskii  <[email protected]>
10285
10286         * config/djgpp/README: Update.
10287
10288         * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10289         compiler warnings.
10290
10291 2002-04-19  Jason Thorpe  <[email protected]>
10292
10293         * alpha-tdep.c (setup_arbitrary_frame): Rename...
10294         (alpha_setup_arbitrary_frame): ...to this.
10295         * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10296         for alpha_setup_arbitrary_frame.
10297
10298 2002-04-18  Andrew Cagney  <[email protected]>
10299
10300         * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10301         * gdbarch.h, gdbarch.c: Regenerate.
10302
10303         * defs.h (breakpoint_from_pc_fn): Delete type definition.
10304         * target.h (memory_breakpoint_from_pc): Update declaration.
10305         * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10306
10307         * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10308         * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10309         * mem-break.c (memory_breakpoint_from_pc): Ditto.
10310         * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10311         * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10312         * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10313         * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10314         * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10315         * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10316         * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10317         * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10318         * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10319
10320         * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10321         const pointer.
10322         * monitor.c (monitor_insert_breakpoint): Ditto.
10323         * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10324
10325         * config/mcore/tm-mcore.h: Update copyright.
10326         * mem-break.c: Ditto.
10327         * xstormy16-tdep.c: Ditto.
10328
10329 2002-04-18  Pierre Muller  <[email protected]>
10330
10331         * p-exp.y: Add precedence rule for '^' token.
10332         This removes the shift/reduce conflicts.
10333         Remove the comment concerning these shift/reduce conflicts.
10334
10335 2002-04-18  Elena Zannoni  <[email protected]>
10336
10337         * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10338         (registers_powerpc_nofp): New register set for processors
10339         without floating point unit.
10340
10341 2002-04-18  David S. Miller  <[email protected]>
10342
10343         * MAINTAINERS: Add myself to write-after-approval.
10344
10345 2002-04-17  Michael Snyder  <[email protected]>
10346
10347         * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10348
10349 2002-04-17  Andrew Cagney  <[email protected]>
10350
10351         * rs6000-tdep.c (frame_initial_stack_address): Use
10352         frame_register_read to read the alloca_reg.
10353
10354 2002-04-17  Andrew Cagney  <[email protected]>
10355
10356         * frame.c (find_saved_register): Find saved registers in the next
10357         not prev frame.
10358         Fix PR gdb/365.
10359
10360 2002-04-17  Andrew Cagney  <[email protected]>
10361
10362         * gdbarch.sh (LANG): Set to ``c''.
10363
10364 2002-04-15  Andrew Cagney  <[email protected]>
10365
10366         * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10367
10368 2002-04-15  Andrew Cagney  <[email protected]>
10369
10370         * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10371         Update copyright.
10372
10373         * hpread.c (hpread_get_lntt): Add declaration.
10374         Also fix PR gdb/391.
10375
10376 2002-04-14  Andrew Cagney  <[email protected]>
10377
10378         * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10379         * aclocal.m4, configure: Re-generate.
10380         Fix PR gdb/391.
10381
10382 2002-04-14  Elena Zannoni  <[email protected]>
10383
10384         * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10385         instead of tm_print_insn.
10386
10387 2002-04-14  Elena Zannoni  <[email protected]>
10388
10389         * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10390
10391 2002-04-14  Andrew Cagney  <[email protected]>
10392
10393         * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10394         * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10395         (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10396
10397 2002-04-12  Don Howard  <[email protected]>
10398
10399         * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10400         max_user_call_depth.
10401         (init_cmd_lists): Initialize the new value;
10402         * cli/cli-script.c (execute_user_command): Limit the call depth of
10403         user defined commands.  This avoids a core-dump when user commands
10404         are infinitly recursive.
10405
10406 2002-04-12  Kevin Buettner  <[email protected]>
10407
10408         * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10409         * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10410         from tdep struct instead of DEFAULT_LR_SAVE.
10411         (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10412         * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10413         * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10414
10415 2002-04-12  Michael Snyder  <[email protected]>
10416
10417         * Remote.c: Spelling fix.
10418         * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10419         If no symbol found for "sbrk", try "_sbrk".
10420         (make_output_phdrs): Use bfd_section_name.
10421         (gcore_copy_callback): Use bfd_section_name.
10422         * eval.c: Indentation fix-ups.
10423         * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10424         in case it gets applied to an address that is already
10425         in the instruction space.
10426         * cli/cli-decode.c (help_list): Allow long lines to wrap.
10427         * symfile.c: Fix indentation, long lines.
10428         * source.c: White space fix-up.
10429
10430 2002-04-12  Andrew Cagney  <[email protected]>
10431
10432         * defs.h (read_relative_register_raw_bytes): Delete declaration.
10433         * frame.c (frame_register_read): New function.  Return non-zero on
10434         success.
10435         (read_relative_register_raw_bytes_for_frame): Delete.
10436         (read_relative_register_raw_bytes): Delete.
10437         * frame.h (frame_register_read): Declare.
10438         * d30v-tdep.c: Update Copyright.  Use frame_register_read.
10439         * sh-tdep.c: Ditto.
10440         * infcmd.c (do_registers_info): Ditto.
10441         * hppa-tdep.c: Ditto.
10442         * rs6000-tdep.c: Ditto.
10443         * h8500-tdep.c: Ditto.
10444         * mips-tdep.c: Ditto.
10445         * h8300-tdep.c: Ditto.
10446         * z8k-tdep.c: Ditto.
10447
10448 2002-04-12  Kevin Buettner  <[email protected]>
10449
10450         From Jimi X <[email protected]>:
10451         * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10452         64-bit SysV ABI.
10453
10454 2002-04-12  Kevin Buettner  <[email protected]>
10455
10456         From Jimi X <[email protected]>:
10457         * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10458         bfd info.
10459
10460 2002-04-12  Kevin Buettner  <[email protected]>
10461
10462         From Jimi X <[email protected]>:
10463         * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10464         register sets for these processor variants.
10465
10466 2002-04-11  Daniel Jacobowitz  <[email protected]>
10467
10468         * regformats/reg-ppc.dat: Support FPSCR.
10469
10470 2002-04-11  Kevin Buettner  <[email protected]>
10471
10472         * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10473         * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10474         Add fpscr as an invalid/unfetchable register.
10475         * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10476         (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10477         (fill_fpregset): Add support for register fpscr.
10478         (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10479         (fill_gregset): Account for the fact that register ``mq'' might
10480         not exist.
10481         * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10482         (registers_power): Add fpscr to register set at slot 71.
10483         (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10484         exist on most PPC architectures.  Initialize ppc_fpscr_regnum.
10485
10486 2002-04-11  Michael Snyder  <[email protected]>
10487
10488         * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10489         * configure: Regenerate.
10490         * config.in: Regenerate.
10491         * acconfig.h: Add define for _SYSCALL32.
10492         * core-sol2.c: Remove #define _SYSCALL32.
10493         * solib-legacy.c: Remove #define _SYSCALL32.
10494
10495 2002-04-10  Andrew Cagney  <[email protected]>
10496
10497         * stack.c (select_frame): Cleanup internal error message, do not
10498         use %p.
10499
10500 2002-04-10  Andrew Cagney  <[email protected]>
10501
10502         * stack.c (select_frame): Check that selected_frame and the
10503         specified level are as expected.
10504         * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10505         Update copyright.
10506         * frame.h (struct frame_info): Add field `level'.  Update
10507         copyright.
10508         Work-in-progress PR gdb/464.
10509
10510 2002-04-10  Andrew Cagney  <[email protected]>
10511
10512         * maint.c (maint_print_section_info): Rename print_section_info.
10513         (print_bfd_section_info, print_objfile_section_info): Update.
10514         * inferior.h (struct gdbarch): Add opaque declaration.
10515         * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10516         * gdbarch.h: Regenerate.
10517
10518 2002-04-10  Michal Ludvig  <[email protected]>
10519
10520         * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10521         (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10522         (kernel_u_size): Added.
10523         * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10524         (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10525
10526 2002-04-04  Jim Ingham  <[email protected]>
10527
10528        * valarith.c (find_size_for_pointer_math): New function, either returns
10529        the size for a pointer's target, returns 1 for void *, or errors for
10530        incomplete types.
10531        (value_add, value_sub): use find_size_for_pointer_math.
10532
10533 2002-04-09  Daniel Jacobowitz  <[email protected]>
10534
10535         * linux-low.c (linux_look_up_symbols): New hook.
10536         (linux_target_ops): Add linux_look_up_symbols.
10537         * remote-utils.c (decode_address): New function.
10538         (look_up_one_symbol): New function.
10539         * server.c (handle_query): Call target look_up_symbols hook.
10540         * server.h (look_up_one_symbol): Add prototype.
10541         * target.h (struct target_ops): Add look_up_symbols hook.
10542
10543 2002-04-09  Andrew Cagney  <[email protected]>
10544
10545         * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10546         override FP_REGNUM with frame->fp.  Update copyright.
10547         * parse.c (num_std_regs, std_regs): Delete.
10548         (target_map_name_to_register): Do not search std_regs.  Update
10549         function description.
10550         * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10551         declarations.  Update copyright.
10552         Fix PR gdb/251.
10553
10554 2002-04-09  Daniel Jacobowitz  <[email protected]>
10555
10556         * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10557         after the last symbol in a block.
10558
10559 2002-04-09  Pierre Muller  <[email protected]>
10560
10561         * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10562         is non zero as a found symbol.
10563
10564 2002-04-08  Andrew Cagney  <[email protected]>
10565
10566         * findvar.c: Include "builtin-regs.h".
10567         (value_of_register): Call value_of_builtin_reg when applicable.
10568         * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10569         (target_map_name_to_register): Call
10570         builtin_reg_map_name_to_regnum.
10571         * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10572         (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10573         (builtin_regs_h): Define.
10574         (builtin-regs.o): New target.
10575         (findvar.o): Add $(builtin_regs_h).
10576         * builtin-regs.c, builtin-regs.h: New files.
10577         * std-regs.c: New file.
10578         Partial fix for PR gdb/251.
10579
10580 2002-04-08  Kevin Buettner  <[email protected]>
10581
10582         * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10583         it's no longer required.
10584
10585 2002-04-08  Andrew Cagney  <[email protected]>
10586
10587         * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10588
10589 2002-04-08  Kevin Buettner  <[email protected]>
10590
10591         From Jimi X <[email protected]>:
10592         * rs6000-tdep.c (rs6000_software_single_step): Use
10593         rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10594         and size.  Use target_insert_breakpoint() and
10595         target_remove_breakpoint() to insert and remove breakpoints
10596         instead of explicit memory reads and writes.
10597
10598 2002-04-08  Kevin Buettner  <[email protected]>
10599
10600         * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10601         * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10602         ELF_OBJECT_FORMAT ifdef.
10603
10604 2002-04-08  Kevin Buettner  <[email protected]>
10605
10606         From Jimi X <[email protected]>:
10607         * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10608
10609 2002-04-08  Kevin Buettner  <[email protected]>
10610
10611         From Jimi X <[email protected]>:
10612         * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10613         definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10614
10615 2002-04-07  Mark Kettenis  <[email protected]>
10616
10617         * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10618         s/asprintf/xasprintf/.
10619         (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10620
10621 2002-04-07  Andrew Cagney  <[email protected]>
10622
10623         I believe Jeff Law denies responsability for this one:
10624         * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10625         * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10626         * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10627         Work-around for PR gdb/366.
10628
10629 2002-04-07  Elena Zannoni  <[email protected]>
10630
10631         * remote-e7000.c (write_small, e7000_read_inferior_memory,
10632         e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10633         e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10634
10635 2002-04-07  Elena Zannoni  <[email protected]>
10636
10637         * sh-tdep.c (sh_fp_frame_init_saved_regs,
10638         sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10639         information.
10640
10641 2002-04-07  Andrew Cagney  <[email protected]>
10642
10643         * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10644         maintainer.
10645
10646 2002-04-07  Andrew Cagney  <[email protected]>
10647
10648         * README (Reporting Bugs in GDB): Document the bug web page as the
10649         prefered way of submitting bugs.
10650         Fix PR gdb/402.
10651
10652 2002-04-06  Andrew Cagney  <[email protected]>
10653
10654         * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10655         -1.  Update comment.
10656         * gdbarch.h, gdbarch.c: Re-generate.
10657
10658 2002-04-07  Andreas Schwab  <[email protected]>
10659
10660         * m68klinux-nat.c (fill_fpregset): Properly pass address of
10661         buffer to regcache_collect.
10662
10663 2002-04-06  Andrew Cagney  <[email protected]>
10664
10665         * gdbarch.sh (PS_REGNUM): Add.  Document.  Default to -1.
10666         * gdbarch.c, gdbarch.h: Re-generate.
10667
10668 2002-04-06  Andrew Cagney  <[email protected]>
10669
10670         * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10671         declaration.  Fix -Werror.
10672
10673 2002-04-05  Daniel Jacobowitz  <[email protected]>
10674
10675         * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10676         * gdbarch.c: Regenerate.
10677
10678 2002-04-05  Michael Snyder  <[email protected]>
10679
10680         * breakpoint.c (clear_command): Rewrite middle section to
10681         combine two loops with identical control conditions.
10682         Add a cleanup to eliminate a memory leak.
10683         * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10684
10685 2002-04-05  H.J. Lu  ([email protected])
10686
10687         * solib-svr4.c (bkpt_names): Add "__start".
10688
10689 2002-04-04  Andrew Cagney  <[email protected]>
10690
10691         * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10692         as test for 64 bit target.
10693
10694 2002-04-05  Andrew Cagney  <[email protected]>
10695
10696         * h8500-tdep.c (h8500_write_fp): Delete function.
10697         * dwarf2cfi.c (cfi_write_fp): Document as not used.
10698         * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10699         * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10700         * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10701         * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10702         * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10703         (s390_write_fp):
10704         * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10705         * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10706         * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10707         (d10v_write_fp): Delete function.
10708         * inferior.h (write_fp, generic_target_write_fp): Delete
10709         declarations.
10710         * regcache.c (generic_target_write_fp): Delete function.
10711         (write_fp): Delete function.
10712         * gdbarch.sh (TARGET_WRITE_FP): Delete.
10713         * gdbarch.h, gdbarch.c: Regenerate.
10714         * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10715         * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10716         (sparc64_write_fp): Delete declaration.
10717         * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10718         (h8500_write_fp): Delete declaration.
10719
10720 2002-04-04  Andrew Cagney  <[email protected]>
10721
10722         * sparc-tdep.c (sparc64_write_fp): Delete.
10723         (sparc_push_dummy_frame): Replace write_fp call with code to store
10724         the FP directly.
10725         (sparc_gdbarch_init): Do not initialize write_fp.
10726
10727 2002-04-05  Kevin Buettner  <[email protected]>
10728
10729         * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10730         clause.
10731
10732 2002-03-29  Jim Blandy  <[email protected]>
10733
10734         * stack.c (get_selected_block): Add new argument `addr_in_block',
10735         used to return the exact code address we used to select the block,
10736         not just the block.
10737         * blockframe.c (get_frame_block, get_current_block): Same.
10738         * frame.h (get_frame_block, get_current_block,
10739         get_selected_block): Update declarations.
10740         * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10741         linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10742
10743 2002-04-05  Michael Snyder  <[email protected]>
10744
10745         * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10746         warning message.
10747
10748 2002-04-05  J. Brobecker  <[email protected]>
10749
10750         * utils.c (xfullpath): New function.
10751         * defs.h (xfullpath): Add declaration.
10752         * source.c (openp): Use xfullpath in place of gdb_realpath to
10753         avoid resolving the basename part of filenames when the
10754         associated file is a symbolic link. This fixes a potential
10755         inconsistency between the filenames known to GDB and the
10756         filenames it prints in the annotations.
10757         * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10758         to be able to match a filename with either the real filename, or
10759         the name of any symbolic link to this file.
10760         (lookup_partial_symtab): Ditto.
10761
10762 2002-04-04  Michael Snyder  <[email protected]>
10763
10764         * breakpoint.c: Add support for hardware breakpoints in overlays.
10765         (overlay_events_enabled): New state variable.
10766         (insert_breakpoints): Use overlay_events_enabled to decide
10767         whether to attempt to set a breakpoint at the overlay load addr.
10768         Handle bp_hardware_breakpoint as well as bp_breakpoint.
10769         (remove_breakpoint): Use overlay_events_enabled to decide
10770         whether breakpoints need to be removed from overlay load addr.
10771         Handle bp_hardware_breakpoint as well as bp_breakpoint.
10772         (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10773         (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10774         disable_overlay_breakpoints): Update overlay_events_enabled.
10775
10776 2002-04-04  Daniel Jacobowitz  <[email protected]>
10777
10778         * dwarf2read.c (struct function_range): New.
10779         (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10780         (check_cu_functions): New.
10781         (read_file_scope): Initialize global function lists.
10782         Call dwarf_decode_line after processing children.
10783         (read_func_scope): Add to global function list.
10784         (dwarf_decode_lines): Call check_cu_functions everywhere
10785         record_line is called.  Call record_line with a linenumber
10786         of 0 to mark sequence ends.
10787
10788 2002-04-04  Michal Ludvig  <[email protected]>
10789
10790         * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10791         change sync with glibc.
10792
10793 2002-04-03  Jim Blandy  <[email protected]>
10794
10795         * configure.in: Call AC_C_INLINE.
10796         * configure: Regenerated.
10797
10798 2002-04-01  Daniel Jacobowitz  <[email protected]>
10799
10800         * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10801         and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10802
10803 2002-03-31  Mark Kettenis  <[email protected]>
10804
10805         * NEWS: Mention gcore support on FreeBSD/i386.
10806
10807         * fbsd-proc.c: New file.
10808         * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10809         * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10810
10811         * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10812         while statement.
10813
10814 2002-03-29  Jim Blandy  <[email protected]>
10815
10816         * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10817         unescaped newlines in string literals, but newer ones don't.  So
10818         escape them.
10819
10820 2002-03-26  Michael Snyder  <[email protected]>
10821             Andrew Cagney <[email protected]>
10822
10823         * cli/cli-dump.c: New file.  Dump memory to file,
10824         restore file to memory.
10825         * cli/cli-dump.h: New file.
10826         * Makefile.in: Add rules, dependencies for cli-dump.o.
10827         * NEWS: Mention new commands.
10828
10829 2002-03-28  Michael Snyder  <[email protected]>
10830
10831         * symfile.c (symbol_file_add): Move test for null symbols to later.
10832
10833 2002-03-27  Andrew Cagney  <[email protected]>
10834
10835         From veksler at il.ibm.com:
10836         * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10837         the xstrduped original path.
10838         Fix PR gdb/417.
10839
10840 2002-03-27  Michael Snyder  <[email protected]>
10841
10842         * breakpoint.c (_initialize_breakpoint): Clean up help string.
10843         * infcmd.c (_initialize_infcmd): Ditto.
10844         * language.c (_initialize_language): Ditto.
10845         * symfile.c (_initialize_symfile): Ditto.
10846         * top.c (_init_main): Ditto.
10847         * cli/cli-cmds.c (init_cli_cmds): Ditto.
10848
10849 2002-03-27  Elena Zannoni  <[email protected]>
10850
10851         * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10852         vector registers handling.
10853         (skip_prologue): Handle new AltiVec instructions.  Fill in new
10854         fields of frame data.
10855         (frame_get_saved_regs): Fill in information for AltiVec registers.
10856
10857 2002-03-27  Jim Blandy  <[email protected]>
10858
10859         * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10860         a function; leave this macro here to invoke that function.
10861         (symbol_init_mangled_name): Declaration for that function.
10862         * symtab.c (symbol_init_mangled_name): New function.
10863
10864 2002-03-27  Andrew Cagney  <[email protected]>
10865
10866         * valarith.c: Replace strerror with safe_strerror.
10867         * tracepoint.c: Ditto.
10868         * lin-lwp.c: Ditto.
10869         * go32-nat.c: Ditto.
10870         * inflow.c: Ditto.
10871         * gnu-nat.c: Ditto.
10872
10873 2002-03-27  Andreas Schwab  <[email protected]>
10874
10875         * event-top.c (command_line_handler): Remove useless if.
10876
10877 2002-03-27  Andreas Jaeger  <[email protected]>
10878
10879         * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10880         comment.
10881
10882 2002-03-27  Michal Ludvig  <[email protected]>
10883
10884         * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10885         (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10886         * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10887         (x86_64_linux_dr_get_status, supply_gregset),
10888         (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10889         * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10890         (x86_64_register_info_table): Add.
10891         (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10892         (x86_64_register_raw_size, x86_64_register_virtual_type),
10893         (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10894         general x86_64_register_info_table.
10895         (i386_gdbarch_init): gdbarch_register_bytes is now set
10896         dynamicaly during initialization.
10897         * regformats/reg-x86-64.dat: Synced with changes to registers above.
10898         * gdbserver/linux-x86-64-low.c: Ditto.
10899
10900 2002-03-27  Daniel Jacobowitz  <[email protected]>
10901
10902         * gdbserver/server.c (main): Call target_signal_to_host_p
10903         and target_signal_to_host on signals received from the remote.
10904         * gdbserver/remote-utils.c (prepare_resume_reply): Call
10905         target_signal_from_host on signals sent to the remote.
10906         * gdbserver/server.h: Add prototypes.  Include "gdb/signals.h".
10907         * gdbserver/Makefile.in: Add signals.o.  Add -I${INCLUDE_DIR}.
10908
10909 2002-03-27  Daniel Jacobowitz  <[email protected]>
10910
10911         * signals/signals.c: Include "server.h" in gdbserver build.
10912         (target_signal_from_name): Don't use STREQ.
10913         (_initialize_signals): Likewise.  Don't include function in
10914         gdbserver build.
10915
10916 2002-03-27  Daniel Jacobowitz  <[email protected]>
10917
10918         * signals.c: Moved to...
10919         * signals/signals.c: Here.
10920         * Makefile (signals.o): Update.
10921
10922 2002-03-26  Jeff Law ([email protected])
10923
10924         * somread.c (som_symtab_read): Remove some commented out code and
10925         updated related comments.  Do not set the minimal symbol table to
10926         mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10927         in a dynamic executable.
10928         * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10929         where we are unable to find the minimal symbol for the given
10930         PC value.
10931
10932 2002-03-25  Jeff Law ([email protected])
10933
10934         * linux-proc.c (read_mapping): Scan up to end of line for filename.
10935
10936 2002-03-25  Michal Ludvig  <[email protected]>
10937
10938         * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10939
10940 2002-03-23  Andrew Cagney  <[email protected]>
10941
10942         * command.h: Update copyright.
10943         (struct cmd_list_element): Replace definition with opaque
10944         declaration.
10945         (enum cmd_types): Document that it will eventually be moved to
10946         cli/cli-decode.h
10947         (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10948         (MALLOCED_REPLACEMENT): Delete macro.
10949         * Makefile.in (cli_decode_h): Add $(command_h).
10950         (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10951         * top.c: Include "cli/cli-decode.h".
10952         * completer.c: Include "cli/cli-decode.h".
10953         * maint.c: Include "cli/cli-decode.h".
10954         * cli/cli-decode.h: Include "command.h".
10955         (enum command_class): Delete.
10956         (enum cmd_types): Comment out.
10957         (enum cmd_auto_boolean): Delete.
10958         (enum var_types): Delete.
10959
10960 2002-03-23  Andrew Cagney  <[email protected]>
10961
10962         * cli/cli-decode.c: Include "gdb_assert.h".
10963         (add_set_or_show_cmd): New static function.
10964         (add_set_cmd): Rewrite.  Use add_set_or_show_cmd.
10965         (add_show_from_set): Rewrite. Use add_set_or_show_cmd.  Don't copy
10966         all fields, such as func, from the set command.
10967
10968 2002-03-23  Andrew Cagney  <[email protected]>
10969
10970         * MAINTAINERS (sh-elf): Change warning flag to -w.
10971
10972 2002-03-23  Andrew Cagney  <[email protected]>
10973
10974         * defs.h (error): Add printf format attribute.
10975         * thread-db.c (thread_from_lwp): Fix error format string.
10976         * stack.c (parse_frame_specification): Ditto.
10977         * cli/cli-decode.c (undef_cmd_error): Ditto.
10978         * scm-lang.c (scm_lookup_name): Ditto.
10979         * tracepoint.c (trace_error): Ditto.
10980         * remote-utils.c (usage): Ditto.
10981         * remote.c (compare_sections_command): Ditto.
10982         Fix PR gdb/328.
10983
10984 2002-03-22  Andrew Cagney  <[email protected]>
10985
10986         * gdbtypes.c (append_composite_type_field): New function.
10987         (init_composite_type): New function.
10988         * gdbtypes.h (append_composite_type_field): Declare.
10989         (init_composite_type): Ditto.
10990
10991 2002-03-22  Elena Zannoni  <[email protected]>
10992
10993         * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10994         function.
10995         * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10996         * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10997         structure returning convention for SYSV ABI case, but not
10998         for GNU/Linux, FreeBSD, or NetBSD.
10999
11000 2002-03-22  Daniel Jacobowitz  <[email protected]>
11001
11002         * symtab.h (lookup_block_symbol): Add mangled_name argument
11003         to prototype.
11004
11005         * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11006         with new mangled_name argument.
11007         * linespec.c (decode_line_1): Likewise.
11008         * valops (value_of_this): Likewise.
11009         * symtab.c (lookup_transparent_type): Likewise.
11010         (lookup_symbol_aux): Likewise.  Accept new mangled_name argument.
11011         (lookup_symbol): If we are given a mangled name, pass it down
11012         to lookup_symbol_aux.
11013         (lookup_block_symbol): If we are given a mangled name to check
11014         against, only return symbols which match it.
11015
11016 2002-03-22  Christopher Faylor  <[email protected]>
11017
11018         * win32-nat.c (child_create_inferior): Check for proper shell to use
11019         here, in case the user changes it on the fly.
11020         (_initialize_inftarg): Remove shell path considerations.
11021
11022 2002-03-21  Elena Zannoni  <[email protected]>
11023
11024         * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11025         for gdbarch_max_register_raw_size and max_register_virtual_size.
11026         Adjust copyright year.
11027
11028 2002-03-21  Daniel Jacobowitz  <[email protected]>
11029
11030          * dbxread.c (process_one_symbol): Extend the first N_SLINE
11031          in a function to cover the entire beginning of the function
11032          as well if it does not already.
11033
11034 2002-03-21  Tom Rix  <[email protected]>
11035
11036         * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11037         (rs6000_ptrace64): Renamed from ptrace64.
11038
11039 2002-03-20  Martin M. Hunt  <[email protected]>
11040
11041         * gdbserver/remote-utils.c (remote_open): Don't call
11042         getprotobyname, we're all using TCP here so just use
11043         IPPROTO_TCP.
11044         * gdbserver/gdbreplay.c (remote_open): Ditto.
11045
11046 2002-03-20  Martin M. Hunt  <[email protected]>
11047
11048         * regcache.c (_initialize_regcache): No need to call
11049         build_regcache() at this time; it gets called whenever
11050         the gdbarch changes.
11051
11052 2002-03-20  David O'Brien  <[email protected]>
11053
11054         * sparc-nat.c:  Include sys/param.h where possible.
11055
11056 2002-03-20  Daniel Jacobowitz  <[email protected]>
11057
11058         Fix PR gdb/422.
11059         * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11060         FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11061         * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11062         complex types.
11063         * stabsread.c (rs6000_builtin_type): Likewise.
11064         (read_sun_floating_type): Likewise.
11065
11066 2002-03-19  Peter Schauer  <[email protected]>
11067
11068         * stabsread.c (read_member_functions): Remove skip code for duplicate
11069         constructor/destructor methods.  Use standard parsing for these
11070         methods and just do not chain them to the list of methods after
11071         parsing.
11072
11073 2002-03-19  Alexandre Oliva  <[email protected]>
11074
11075         * coffread.c: Remove redundant static declarations.  Replace
11076         occurrences of `PTR' with `void *'.
11077         * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11078         * top.h (quit_cover): Likewise.
11079         * defs.h (catch_errors): Likewise.
11080
11081 2002-03-18  Andrew Cagney  <[email protected]>
11082
11083         * defs.h (XMALLOC): Define.
11084         * gdb-events.sh (XMALLOC): Delete macro.
11085         * gdb-events.c, gdb-events.h: Regenerate.
11086         * gdbarch.sh (XMALLOC): Delete macro.
11087         * gdbarch.c: Regenerate.
11088         * serial.c (XMALLOC): Delete macro.
11089         * ui-file.c (XMALLOC): Ditto.
11090         * ser-unix.h (XMALLOC): Ditto.
11091         * sh-tdep.c (XMALLOC): Ditto.
11092         * ui-out.c (XMALLOC): Ditto.
11093         * utils.c (XMALLOC): Ditto.
11094         * i386-tdep.c (XMALLOC): Ditto.
11095         * gdb-events.c (XMALLOC): Ditto.
11096         * d10v-tdep.c (XMALLOC): Ditto.
11097         * cli-out.c (XMALLOC): Ditto.
11098
11099         * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11100         * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11101         * ui-file.c, ui-out.c: Ditto.
11102
11103 2002-03-18  Andrew Cagney  <[email protected]>
11104
11105         * command.h (struct cmd_list_element): Add field context.
11106         (set_cmd_context, get_cmd_context): Declare.
11107         * cli/cli-decode.h: Ditto.
11108         * cli/cli-decode.c (get_cmd_context): New function.
11109         (set_cmd_context): New function.
11110         (add_cmd): Initialize context.
11111         Part of fixing PR gdb/145 and PR gdb/146.
11112
11113 2002-03-17  Andrew Cagney  <[email protected]>
11114
11115         * cli/cli-decode.c (cmd_type): New function.
11116         * command.h (cmd_type): Declare.
11117         * infrun.c (set_schedlock_func): Call function cmd_type.
11118         * kod.c (kod_set_os): Call cmd_type.
11119         * cris-tdep.c (cris_version_update): Use function cmd_type.
11120         (cris_mode_update, cris_abi_update): Ditto.
11121
11122         * command.h: (execute_cmd_post_hook): Declare.
11123         (execute_cmd_pre_hook): Declare.
11124         * cli/cli-script.c (clear_hook_in_cleanup): New function.
11125         (execute_cmd_post_hook, execute_cmd_pre_hook): New
11126         functions. Execute pre/post hook while ensuring that afterwords
11127         hook_in is cleared.
11128         * top.c (execute_command): Use execute_cmd_post_hook, and
11129         execute_cmd_pre_hook to execute pre/post commands.
11130         * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11131         hook_stop_stub.
11132         (hook_stop_stub): Call execute_cmd_pre_hook.
11133
11134 2002-03-17  Andrew Cagney  <[email protected]>
11135
11136         * kod.c (kod_set_os): Revert previous change.  Is called by ``info
11137         set'' and this leads to a core dump.  Move xstrdup of
11138         operating_system to after check that it is not NULL.
11139
11140 2002-03-17  Andrew Cagney  <[email protected]>
11141
11142         * kod.c (kod_set_os): Remove unnecessary check that
11143         ``command->type'' is set_cmd.
11144
11145         * valprint.c (set_input_radix): Use input_radix.
11146         (set_output_radix): Use output_radix.
11147         (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11148         isn't reverted.
11149
11150 2002-03-16  Andrew Cagney  <[email protected]>
11151
11152         * value.h (struct value): Delete field ``substring_addr''.  Change
11153         aligner fields to force_doublest_align, force_longest_align,
11154         force_core_addr_align and force_pointer_aligh.
11155
11156         * value.h (struct value): Fix typo in above change.
11157
11158 2002-03-16  Peter Schauer  <[email protected]>
11159
11160         * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11161         to fix internal_error from ``maintenance print architecture''.
11162
11163 2002-03-16  Peter Schauer  <[email protected]>
11164
11165         * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11166         for gcc versions after gcc-2.8.1.
11167
11168 2002-03-16  Peter Schauer  <[email protected]>
11169
11170         * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11171         for method resolution.  Restore adjustment of ``this'' pointer after
11172         calling value_struct_elt, which was accidentally removed during the
11173         HP merge.
11174
11175 2002-03-15  Andrew Cagney  <[email protected]>
11176
11177         * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11178         value_of_register.
11179         * findvar.c (value_of_register): Add ``frame'' parameter.  Pass to
11180         get_saved_register.
11181         * value.h (value_of_register): Update.
11182
11183 2002-03-14  Richard Henderson  <[email protected]>
11184
11185         * configure.in: Detect declaration for canonicalize_file_name.
11186         * utils.c (canonicalize_file_name): Declare, if needed.
11187         (gdb_realpath): Prefer realpath if available and usable.
11188         * config.in, configure: Rebuild.
11189
11190 2002-03-14  Richard Henderson  <[email protected]>
11191
11192         * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11193         a constant array bound.
11194
11195         * MAINTAINERS: Add myself to write-after-approval.
11196
11197 2002-03-14  Michael Snyder  <[email protected]>
11198
11199         * symfile.c (syms_from_objfile): Return immediately if no syms.
11200         (symbol_file_add): Return immediately if no syms.
11201         (find_sym_fns): Return immediately if no syms.
11202
11203 2002-03-13  Michal Ludvig  <[email protected]>
11204
11205         * gdbserver/remote-util.c (remote_open): Print remote-side's
11206         IP address when remote debugging over the network.
11207
11208 2002-03-12  David O'Brien  <[email protected]>
11209
11210         * config/sparc/fbsd.mh: Fix copyright.
11211         * config/sparc/fbsd.mt: Likewise.
11212
11213 2002-03-11  Richard Earnshaw  <[email protected]>
11214
11215         * MAINTAINERS: Fix typo in name of gdb warnings option.
11216         (x86-64): Fix formating so that this can be parsed by awk.
11217
11218 2002-03-10  Daniel Jacobowitz  <[email protected]>
11219
11220         * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11221         * defs.h: Include "gdb/signals.h".
11222         (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11223
11224 2002-03-10  Michal Ludvig  <[email protected]>
11225
11226         * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11227         * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11228         from x86-64-tdep.h
11229
11230 2002-03-10  Daniel Jacobowitz  <[email protected]>
11231             Don Howard <[email protected]>
11232
11233         * mips-tdep.c (ST0_FR): Define.
11234         (mips2_fp_compat): New function, temporarily disabled.
11235         (mips_read_fp_register_single): New function.
11236         (mips_read_fp_register_double): New function.
11237         (mips_print_register): Use them.
11238         (do_fp_register_row): Likewise.
11239
11240 2002-03-09  Andrew Cagney  <[email protected]>
11241
11242         * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11243         approval''.
11244
11245 2002-03-08  Peter Schauer  <[email protected]>
11246
11247         * stabsread.c (read_member_functions): Fix is_stub test for
11248         static member functions, improve comment.
11249
11250 2002-03-07  Richard Earnshaw  <[email protected]>
11251
11252         * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11253         (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11254         (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11255         commands that set boolean values.
11256         (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11257         (arm_rdi_resume): Always initialize PC.
11258         (arm_rdi_open): Don't use rslt as a boolean.
11259         (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11260         (arm_rdi_fetch_registers, arm_rdi_store_registers)
11261         (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11262         (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11263
11264 2002-03-06  Alexandre Oliva  <[email protected]>
11265
11266         * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11267         * configure: Rebuilt.
11268
11269 2002-03-06  Stephane Carrez  <[email protected]>
11270
11271         * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11272         (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11273
11274 2002-03-06  Andrew Cagney  <[email protected]>
11275
11276         * cli/cli-decode.c (set_cmd_completer): New function.
11277         * command.h (set_cmd_completer): Declare.
11278         * cli/cli-decode.h (set_cmd_completer): Ditto.
11279
11280         * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11281         * cli/cli-cmds.c (init_cli_cmds): Ditto.
11282         * win32-nat.c (_initialize_inftarg): Ditto.
11283         * remote-rdi.c (_initialize_remote_rdi): Ditto.
11284         * proc-api.c (_initialize_proc_api): Ditto.
11285         * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11286         * source.c (_initialize_source): Ditto.
11287         * exec.c (_initialize_exec): Ditto.
11288         * solib.c (_initialize_solib): Ditto.
11289         * top.c (init_main): Ditto.
11290         * tracepoint.c (_initialize_tracepoint): Ditto.
11291         * symfile.c (_initialize_symfile): Ditto.
11292         * printcmd.c (_initialize_printcmd): Ditto.
11293         * infcmd.c (_initialize_infcmd): Ditto.
11294         * corefile.c (_initialize_core): Ditto.
11295
11296 2002-03-05  Andrew Cagney  <[email protected]>
11297
11298         * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11299
11300 2002-03-05  Andrew Cagney  <[email protected]>
11301
11302         * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11303
11304 2002-03-05  Andrew Cagney  <[email protected]>
11305
11306         * NEWS: Update headings, 5.2 has branched.
11307
11308 2002-03-04  Daniel Jacobowitz  <[email protected]>
11309
11310         * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11311         (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11312         (register_addr, REGISTER_RAW_SIZE): Likewise.
11313         (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11314         * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11315
11316 2002-03-03  Michal Ludvig <[email protected]>
11317
11318         * MAINTAINERS (x86-64): Add myself.
11319         * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11320         changed value_ptr -> struct value *
11321
11322 2002-03-01  David O'Brien  <[email protected]>
11323
11324         * configure.host (sparc64-*-freebsd): Add.
11325         * configure.tgt: Likewise.
11326         * config/sparc/fbsd.mh: New file.
11327         * config/sparc/fbsd.mt: Likewise.
11328         * config/sparc/nm-fbsd.h: Likewise.
11329         * config/sparc/tm-fbsd.h: Likewise.
11330
11331 2002-03-01  Daniel Jacobowitz  <[email protected]>
11332
11333         * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11334         regformats/reg-s390x.dat.
11335
11336 2002-03-01  Andrew Cagney  <[email protected]>
11337
11338         * utils.c: Add FIXME explaining true/false problem.
11339
11340 2002-02-28  Andrew Cagney  <[email protected]>
11341
11342         * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11343
11344 2002-02-28  Michael Chastain  <[email protected]>
11345
11346         * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11347
11348 2002-02-28  Daniel Jacobowitz  <[email protected]>
11349
11350         * gdbserver/linux-s390-low.c: New file.
11351         * regformats/reg-s390.dat: New file.
11352         * regformats/reg-s390x.dat: New file.
11353         * gdbserver/configure.srv: Add S/390.
11354         * gdbserver/Makefile.in: Add S/390.
11355         * configure.tgt: Enable gdbserver for S/390.
11356
11357 2002-02-28  Eli Zaretskii  <[email protected]>
11358
11359         * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11360         first line of the doc string for "info dos", except at the end of
11361         the sentence, since the short help stops at the first period.
11362
11363 2002-02-28  Jason Merrill  <[email protected]>
11364
11365         * dwarf2read.c (dwarf_cfi_name): Add new codes.
11366
11367 2002-02-27  Fred Fish  <[email protected]>
11368
11369         * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11370         comment (dumy -> dummy).
11371
11372 2002-02-27  Peter Schauer  <[email protected]>
11373
11374         * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11375
11376 2002-02-27  Rodney Brown  <[email protected]>
11377
11378       * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11379
11380 2002-02-27  Daniel Jacobowitz  <[email protected]>
11381
11382         * gdbserver/acconfig.h: New file.
11383         * gdbserver/i387-fp.c: New file.
11384         * gdbserver/i387-fp.h: New file.
11385         * gdbserver/linux-x86-64.c: New file.
11386         * regformats/reg-x86-64.dat: New file.
11387         * configure.tgt: Add x86_64-*-linux* gdbserver support.
11388         * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11389         * gdbserver/configure.in: Add support for regsets.
11390         * gdbserver/config.in: Regenerate.
11391         * gdbserver/configure: Regenerate.
11392         * gdbserver/Makefile.in: Likewise.  Add $(linux_low_h).
11393         * gdbserver/linux-low.h: New file.
11394         * gdbserver/linux-low.c: Include "linux-low.h".  Add support
11395         for regsets.
11396         * gdbserver/linux-arm-low.c: Include "linux-low.h".
11397         * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11398         * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11399         * gdbserver/linux-mips-low.c: Include "linux-low.h".
11400         * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11401         * gdbserver/linux-sh-low.c: Include "linux-low.h".
11402         * gdbserver/linux-i386-low.c: Include "linux-low.h".  Include
11403         "i387-fp.h".  Add PTRACE_GETREGS and friends.
11404         * gdbserver/regcache.c (supply_register): New function.
11405         (supply_register_by_name): New function.
11406         (collect_register): New function.
11407         (collect_register_by_name): New function.
11408
11409 2002-02-27  Daniel Jacobowitz  <[email protected]>
11410
11411         * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11412         (config.status): Add configure.srv dependency.
11413         (server_h): Add config.h dependency.
11414
11415 2002-02-27  Daniel Jacobowitz  <[email protected]>
11416
11417         * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11418         * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11419         * gdbserver/configure.srv: Change i386-*-linux* to use
11420         reg-i386-linux.o.
11421
11422 2002-02-26  Andrew Cagney  <[email protected]>
11423
11424         * x86-64-tdep.c: Re-indent.  Update copyright date.
11425
11426 2002-02-26  Andrew Cagney  <[email protected]>
11427
11428         From Michal Ludvig <[email protected]>:
11429         * x86-64-tdep.c (value.h): Delete.
11430         (gdb_assert.h): Include.
11431         (x86_64_register_convert_to_virtual,
11432         x86_64_register_convert_to_raw ): Add check which lets only
11433         floating-point values to be converted.
11434         (value_push): Delete.
11435         (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11436         (i386_gdbarch_init): Number of register_bytes fixed.
11437
11438 2002-02-26  Andrew Cagney  <[email protected]>
11439
11440         * MAINTAINERS: Add x86-64 target.
11441
11442 2002-02-26  Andrew Cagney  <[email protected]>
11443
11444         * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11445         * osfsolib.c (solib_map_sections): Ditto.
11446         * irix5-nat.c (solib_map_sections): Ditto.
11447         * corelow.c (gdb_check_format): Ditto.
11448         * symfile.c (symfile_bfd_open): Ditto.
11449         * solib.c (solib_map_sections): Ditto.
11450         Fix PR gdb/354.
11451
11452 2002-02-26  Andrew Cagney  <[email protected]>
11453
11454         * remote.c (_initialize_remote): By default, disable ``e'' and
11455         ``E'' step out-of-range packets.
11456
11457 2002-02-26  Andreas Schwab  <[email protected]>
11458
11459         * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11460         m68k_linux_frame_saved_pc.
11461         (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11462         in_sigtramp.
11463         (SIGCONTEXT_PC_OFFSET): Remove.
11464         * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11465         m68k_linux_sigtramp_saved_pc): New functions.
11466         (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11467         (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11468         (UCONTEXT_PC_OFFSET): Define.
11469         (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11470         non-RT and RT signal trampolines.
11471
11472 2002-02-26  Richard Earnshaw  <[email protected]>
11473
11474         * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11475         (TARGET_NBPG, STACK_END_ADDR): Delete
11476         (VARIABLES_INSIDE_BLOCK): Delete.
11477
11478 2002-02-25  Andrew Cagney  <[email protected]>
11479
11480         * utils.c (perror_with_name): Make string parameter constant.
11481         (print_sys_errmsg): Ditto.
11482         (query): Ditto.
11483         * defs.h (perror_with_name): Update.
11484         (print_sys_errmsg): Update.
11485         (query): Update.
11486
11487 2002-02-25  Daniel Jacobowitz  <[email protected]>
11488
11489         From Eliot Dresselhaus <[email protected]>:
11490         * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11491
11492 2002-02-25  Peter Schauer  <[email protected]>
11493
11494         * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11495         if it already matches the current architecture from the exec file.
11496         Include arch-utils.h for gdbarch_info_init prototype.
11497         * Makefile.in (rs6000-nat.o): Update dependencies.
11498
11499 2002-02-25  Eli Zaretskii  <[email protected]>
11500
11501         * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11502          list of exported variables.
11503
11504 2002-02-24  Daniel Jacobowitz  <[email protected]>
11505
11506         * gdbserver/configure.srv: New file.
11507         * gdbserver/configure.in: Use configure.srv instead
11508         of the host/target makefile fragments.  Set GDBSERVER_DEPFILES
11509         from it.
11510         * gdbserver/configure: Regenerated.
11511         * gdbserver/terminal.h: New file.
11512         * gdbserver/Makefile.in: Update for configure changes.  Remove
11513         more unneeded include paths.
11514
11515 2002-02-24  Andrew Cagney  <[email protected]>
11516
11517         From wiz at danbala:
11518         * config/sparc/tm-sp64.h: Fix grammar and typos.
11519         Fix PR gdb/287.
11520
11521 2002-02-24  Andrew Cagney  <[email protected]>
11522
11523         * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11524         with either ``GNU/Linux'' or ``Linux kernel''.  Update copyright.
11525         * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11526         * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11527         * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11528         * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11529         * s390-tdep.c: Ditto.
11530         * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11531         * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11532         * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11533         * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11534         * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11535         * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11536         * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11537         * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11538         * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11539         * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11540         Fix PR gdb/378.
11541
11542 2002-02-23  Andrew Cagney  <[email protected]>
11543
11544         * lin-thread.c: Delete file.
11545         * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11546         to gdb_proc_service.h.
11547         * configure: Re-generate.
11548
11549         * ocd.c (ocd_open): Do not try to open the "ocd" device.
11550         * serial.c (serial_open): Delete check for "ocd".
11551         Fix PR gdb/349.
11552
11553         * Makefile.in (linux-thread.o): Delete target.
11554         * linux-thread.c: Delete file.
11555
11556         * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c.  Tweak other
11557         renamed SH files to be consistent.
11558
11559         * symtab.c (sort_search_symbols): Use xfree.
11560
11561 2002-02-23  Richard Earnshaw  <[email protected]>
11562
11563         * arm-linux-tdep.c (arm_linux_init_abi): Register
11564         IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11565         * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11566         definition with undef, since we don't want the sysvr4 definition.
11567         (SKIP_TRAMPOLINE_CODE): Likewise.
11568
11569 2002-02-23  Andrew Cagney  <[email protected]>
11570
11571         From 2002-02-22 Alfred M. Szmidt <[email protected]>:
11572
11573         * configure.in: (AC_CHECK_FUNCS) Added test for
11574         canonicalize_file_name Regenerated.
11575         * config.in, configure: Regenerated.
11576         * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11577         defined use canonicalize_file_name.
11578
11579 2002-02-23  Michael Chastain  <[email protected]>
11580
11581         * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11582
11583 2002-02-23  Andrew Cagney  <[email protected]>
11584
11585         * README: Remove references to cygnus.com.
11586         * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11587         dot com'' form.  Remove references to cygnus.com and sourceware.
11588
11589 2002-02-23  Andrew Cagney  <[email protected]>
11590
11591         From 2002-02-19 Paul Eggert <[email protected]>:
11592         * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11593         1003.1-2001 no longer allows "head -1".
11594         * gdb/Makefile.in (version.c): Likewise.
11595         * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11596         * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11597         equivalent.  POSIX 1003.1-2001 no longer allows "diff -c3".
11598
11599 2002-02-23  Andrew Cagney  <[email protected]>
11600
11601         * cli/cli-decode.c (cmd_cfunc_eq): New function.
11602         * command.h (cmd_cfunc_eq): Declare.
11603         * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11604
11605         * cli/cli-cmds.h (is_complete_command): Change parameter to a
11606         ``struct cmd_list_element *''.
11607         * cli/cli-cmds.c (is_complete_command): Update.  Use
11608         cmd_cfunc_eq.
11609         * top.c (execute_command): Pass the command to
11610         is_complete_command.
11611         * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11612
11613 2002-02-23  Andrew Cagney  <[email protected]>
11614
11615         From 2002-02-20 Martin Schwidefsky <[email protected]>:
11616         * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11617         architecture defines.
11618         * s390-tdep.c (s390_gdbarch_init): Likewise.
11619
11620 2002-02-23  Richard Earnshaw  <[email protected]>
11621
11622         * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11623         (arm_linux_push_arguments): Likewise.
11624         (arm_linux_init_abi): Register them.  Also register linux-specific
11625         call_dummy_words.
11626         (find_minsym_and_objfile): Use strcmp, not STREQ.
11627         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11628         (arm_linux_call_dummy_words): Delete declaration.
11629         (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11630         (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11631         declarations.
11632         (LOWEST_PC): Delete.
11633
11634 2002-02-23  Peter Schauer  <[email protected]>
11635
11636         * maint.c (print_section_info): Do not prepend `0x' to filepos
11637         output, it will be handled by local_hex_string_custom.
11638
11639 2002-02-23  Richard Earnshaw  <[email protected]>
11640
11641         * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11642         (store_newfpe_double, store_newfpe_extended, store_fpregister)
11643         (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11644
11645 2002-02-22  Jim Blandy  <[email protected]>
11646
11647         Indicate that the bcache functions don't change the strings
11648         they're passed.
11649         * bcache.h (bcache, hash): Add `const' keywords to declarations.
11650         * bcache.c (bcache, hash): Add `const' keywords to definitions.
11651
11652 2002-02-22  Pierre Muller  <[email protected]>
11653
11654         * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11655
11656 2002-02-21  Christopher Faylor  <[email protected]>
11657
11658         * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11659         find the complete path to a loaded DLL.
11660
11661 2002-02-21  Fred Fish  <[email protected]>
11662
11663         * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11664         that marks the end of the range of a function, enter a line number
11665         entry that has a line number of zero and a PC offset that matches
11666         the end of the function.  This starts a range of PC's for which no
11667         line number information is known.
11668         * symtab.c (find_pc_sect_line): If our best fit is in a range of
11669         PC's for which no line number info is found (line number is zero)
11670         then we didn't find any valid line information.
11671         * symtab.h: Document use of zero line number entry.
11672
11673 2002-02-21  Elena Zannoni  <[email protected]>
11674
11675         * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11676         (have_ptrace_getvrregs): Define for run time checks.
11677         (gdb_vrregset_t): New type for Altivec register handling.
11678         (fetch_register, store_register): Fetch/store altivec register
11679         when needed.
11680         (fetch_altivec_register, store_altivec_register): New functions.
11681         (supply_vrregset, fill_vrregset): New functions.
11682         (fetch_altivec_registers, store_altivec_registers): New functions.
11683         (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11684         registers as well.
11685
11686 2002-02-21  Jiri Smid  <[email protected]>
11687
11688         * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11689
11690 2002-02-21  Richard Earnshaw  <[email protected]>
11691
11692         * Makefile.in (armnbsd-nat.o): Update dependencies.
11693         * armnbsd-nat.c (supply_gregset): New function.  Common code to
11694         supply the integer register set.
11695         (supply_fparegset): New function.  Similar for FPA registers.
11696         (fetch_regs, fetch_fp_regs): Use them.
11697         (fetch_core_registers): Likewise.
11698         (fetch_elfcore_registers): New function.
11699         (arm_netbsd_elfcore_fns): New core-file type specification.
11700         (_initialize_arm_netbsd_nat): Register it.
11701
11702 2002-02-21  Richard Earnshaw  <[email protected]>
11703
11704         * armnbsd-nat.c: Include gdbcore.h.
11705         (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11706         (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11707         'void' to declaration, to shut up ARI.
11708         (fetch_core_registers): Make static.  Rewrite using supply_register.
11709         (arm_netbsd_core_fns): New core-file type specification.
11710         (_initialize_arm_netbsd_nat): New function.
11711
11712 2002-02-21  Christopher Faylor  <[email protected]>
11713
11714         * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11715         value.
11716
11717 2002-02-20  Christopher Faylor  <[email protected]>
11718
11719         * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11720         fails.
11721
11722 2002-02-20  Daniel Jacobowitz  <[email protected]>
11723
11724         * jv-exp.y (parse_number): Change type of implicit longs
11725         to builtin_type_uint64.
11726
11727 2002-02-20  Daniel Jacobowitz  <[email protected]>
11728
11729         * gdbserver/linux-low.c (mywait): Change argument to waitpid
11730         to be an integer instead of a `union wait'.
11731
11732 2002-02-20  Daniel Jacobowitz  <[email protected]>
11733
11734         * mips-linux-nat.c: Call the operating system GNU/Linux.
11735         * mips-linux-tdep.c: Likewise.
11736         * mips-tdep.c: Likewise.
11737
11738 2002-02-20  Daniel Jacobowitz  <[email protected]>
11739
11740         Fix PR gdb/265.
11741         * jv-exp.y (parse_number): Handle 64-bit integers.
11742
11743 2002-02-20  Daniel Jacobowitz  <[email protected]>
11744
11745         * gdbserver/configure.in: Remove AM_PROC_CC_STDC.  Change
11746         AC_STDC_HEADERS to AC_HEADER_STDC.
11747         * gdbserver/configure: Regenerated.
11748
11749 2002-02-20  Richard Earnshaw  <[email protected]>
11750
11751         * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11752         is defined.
11753         * sparc-tdep.c (get_longjmp_target): Likewise.
11754
11755 2002-02-20  Richard Earnshaw  <[email protected]>
11756
11757         * News: Add news about ARM and Multi-arch.  Mention the new target
11758         arm*-*-netbsd*.
11759
11760 2002-02-19  Jim Blandy  <[email protected]>
11761
11762         * stabsread.c (error_type_complaint): Improve error message.
11763
11764 2002-02-19  Daniel Jacobowitz  <[email protected]>
11765
11766         * gdbserver/README: Update documentation.
11767         * gdbserver/configure.in: Update configury to match documentation.
11768         * gdbserver/Makefile.in: Likewise.
11769         * gdbserver/configure: Regenerated.
11770         * gdbserver/aclocal.m4: New file, generated by aclocal.
11771         * gdbserver/config.in: New file, generated by autoheader.
11772
11773 2002-02-19  Richard Earnshaw  <[email protected]>
11774
11775         * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11776         armnbsd-nat.c.
11777
11778 2002-02-19  Richard Earnshaw  <[email protected]>
11779
11780         * arm-tdep.h (enum arm_float_model): New enum.
11781         (struct gdbarch_tdep): Add fp_model.
11782         * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep.  Defer setting
11783         up floating-point conversions until we know the floating-point model
11784         in use by the inferior.  Don't complain about being unable to
11785         determine the ABI of the inferior when we don't have one.
11786         (arm_extract_return_value): Support different floating-point models.
11787         (arm_store_return_value): Likewise.
11788         * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11789         ARM_FLOAT_SOFT.
11790         (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11791
11792 2002-02-19  Peter Schauer  <[email protected]>
11793
11794         * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11795         of ``current_gdbarch''.
11796
11797 2002-02-19  Richard Earnshaw  <[email protected]>
11798
11799         * armnbsd-nat.c : ANSIfy all function declarations.
11800         (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11801         (fetch_inferior_registers): Re-implement in terms of above.
11802         (store_register, store_regs, store_fp_register, store_fp_regs): New.
11803         (store_inferior_registers): Re-implement in terms of above.
11804
11805 2002-02-19  Richard Earnshaw  <[email protected]>
11806
11807         * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11808         kernel.
11809         * arm-linux-tdep.c: Likewise.
11810         * config/arm/tm-linux.h: Likewise.
11811
11812 2002-02-19  Richard Earnshaw  <[email protected]>
11813
11814         * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11815         * config/arm/nbsd.mt (TM_FILE): Delete.
11816         * config/arm/tm-nbsd.h: Delete.
11817
11818 2002-02-19  Richard Earnshaw  <[email protected]>
11819
11820         * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11821         Initialize CALL_DUMMY_LENGTH.
11822
11823 2002-02-19  Richard Earnshaw  <[email protected]>
11824
11825         * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11826         function.
11827         (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11828         * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11829         defines one thing and that is incorrect for this port.
11830         (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11831
11832 2002-02-18  Pierre Muller  <[email protected]>
11833
11834         * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11835
11836 2002-02-18  Pierre Muller  <[email protected]>
11837
11838         * win32-nat.c (display_selector): New function. Displays information
11839         about the information returned by GetThreadSelectorEntry API function.
11840         (display_selectors): New function. Displays the infomation of
11841         the selector given as argument, or of CS, DS ans FS selectors
11842         if no argument is given.
11843         ( _initialize_inftarg): Add "w32" as info prefix command.
11844         Add "info w32 selector" as command calling display_selectors.
11845
11846 2002-02-19  Pierre Muller  <[email protected]>
11847
11848         * i386-tdep.c (get_longjmp_target): Fix compilation failure
11849         by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11850         if not defined.
11851
11852 2002-02-18  Richard Earnshaw  <[email protected]>
11853
11854         * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11855
11856 2002-02-18  Richard Earnshaw  <[email protected]>
11857
11858         * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11859         (arm_fix_call_dummy): Call it.
11860         (arm_call_dummy_breakpoint_offset): Delete.
11861         (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11862         * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11863
11864 2002-02-18  Andrew Cagney  <[email protected]>
11865
11866         * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11867         Default to func_frame_chain_valid.
11868         * gdbarch.h, gdbarch.c: Re-generate.
11869         * frame.h (FRAME_CHAIN_VALID): Delete definition.
11870
11871 2002-02-18  Elena Zannoni  <[email protected]>
11872
11873         * ppc-linux-nat.c: Update copyright.
11874         (fetch_register, store_register): Add tid parameter, don't compute
11875         tid here.
11876         (fetch_ppc_registers, store_ppc_registers): Add tid
11877         parameter. Pass it along to callees.
11878         (fetch_inferior_registers, store_inferior_registers): Compute tid
11879         here, and pass it to calleed functions.
11880         (fill_gregset, supply_fpregset): Clean up formatting.
11881
11882 2002-02-18  Richard Earnshaw  <[email protected]>
11883
11884         * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11885         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11886
11887 2002-02-18  Richard Earnshaw  <[email protected]>
11888
11889         * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11890         * gdbarch.c gdbarch.h: Regenerate.
11891         * breakpoint.c (create_longjmp_breakpoint): Always compile this
11892         function.
11893         (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11894         * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11895         (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11896
11897         * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11898         * arm-tdep.c (arm_get_longjmp_target): New function.
11899         (arm_gdbarch_init): Initialize jb_pc to -1.  If ABI handler changes
11900         this to a positive value register arm_get_longjmp_target as the
11901         longjmp handler.
11902         * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11903         (arm_linux_init_abi): Set up longjmp description in tdep.
11904         * armnbsd-nat.c (get_longjmp_target): Delete.
11905         * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11906         description in tdep.
11907         * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11908         (get_longjmp_target): Delete declaration.
11909         (GET_LONGJMP_TARGET): Delete.
11910         * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11911         (GET_LONGJMP_TARGET): Delete.
11912
11913 2002-02-17  Kevin Buettner  <[email protected]>
11914
11915         From Peter Schauer  <[email protected]>:
11916         * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11917         of ``current_gdbarch''.
11918
11919 2002-02-17  Tom Tromey  <[email protected]>
11920
11921         * cli/cli-cmds.c (compare_strings): New function.
11922         (complete_command): Only print each unique item once.
11923         * completer.h (complete_line): Declare.
11924         * completer.c (complete_line): New function.
11925         (line_completion_function): Use it.
11926
11927 2002-02-16  Andrew Cagney  <[email protected]>
11928
11929         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11930         * gdbarch.h, gdbarch.c: Re-generate.
11931
11932 2002-02-16  Daniel Jacobowitz  <[email protected]>
11933
11934         * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11935
11936 2002-02-16  Daniel Jacobowitz  <[email protected]>
11937
11938         From Peter Schauer <[email protected]>:
11939         * valops.c (value_arg_coerce): Don't take the address of a reference
11940         to convert an argument to a reference.
11941
11942 2002-02-15  Christopher Faylor  <[email protected]>
11943
11944         * win32-nat.c (get_image_name): New function.
11945         (handle_load_dll): Use get_image_name function.
11946         (get_child_debug_event): Avoid registering debug events until possibly
11947         execed process is started.
11948         (child_create_inferior): Allow invocation via shell so that command
11949         line redirection, etc.  works ok.
11950         (_initialize_inftarg): Add new command: "set shell" to control whether
11951         a shell is used to start a process.
11952
11953 2002-02-15  Daniel Jacobowitz  <[email protected]>
11954
11955         * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11956         instead of find_register_by_number.
11957         (cannot_store_register): Likewise.
11958
11959 2002-02-14  Pierre Muller  <[email protected]>
11960
11961         * dwarf2read.c: Replace fprintf (stderr, ...) by
11962         fprintf_unfiltered (gdb_stderr, ...).
11963
11964 2002-02-15  Daniel Jacobowitz  <[email protected]>
11965
11966         * gdbserver/gdbserver.1: Document --attach.
11967
11968 2002-02-15  Richard Earnshaw  <[email protected]>
11969
11970         * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11971         descriptions.
11972         * arm-tdep.c (arm_default_arm_le_breakpoint)
11973         (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11974         (arm_default_thumb_be_breakpoint): New.  Initialize them from
11975         traditional breakpoint defines.
11976         (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11977         (arm_gdbarch_init): Initialize new breakpoint variables.
11978         * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11979         (arm_linux_init_abi): Initialize linux-specific breakpoint.
11980         * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11981         (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11982         code out to ...
11983         (arm_netbsd_init_abi_common): ... here; new function.
11984         * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11985         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11986         * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11987         * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11988
11989 2002-02-15  Richard Earnshaw  <[email protected]>
11990
11991         * arm-tdep.h (enum arm_abi): New enum.
11992         (struct gdbarch_tdep): New structure.
11993         (LOWEST_PC): Provide a default.
11994         (arm_gdbarch_register_os_abi): Declare new function.
11995         * arm-tdep.c (arm_abi_names): New array.
11996         (process_note_abi_tag_sections): New function.
11997         (get_elfosabi): New function.
11998         (arm_gdbarch_register_os_abi): New function.
11999         (arm_gdbarch_init): Try to determine the ABI of the inferior.  If
12000         support for that ABI has been built in, then call the appropriate
12001         configuration routine.  Use gdbarch_num_regs() to get the number
12002         of registers.
12003         (arm_dump_tdep): New function.
12004         (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12005         place-holder functions.
12006         (_initialize_arm_tdep): Register them.
12007         * config/arm/tm-arm.h (LOWEST_PC): Delete.
12008
12009         * armnbsd-tdep.c: New file.
12010         * Makefile.in (armnbsd-tdep.o): Add dependencies.
12011         * config/arm/nbsd.mt (TDEPFILES): Add it.
12012         * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12013
12014         * armnbsd-nat.c: Include regcache.h.
12015         * Makefile.in (armnbsd-nat.o): Update dependency list.
12016
12017         * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12018
12019 2002-02-14  Daniel Jacobowitz  <[email protected]>
12020
12021         * gdbserver/Makefile.in: Fix typos in target rules.
12022
12023 2002-02-14  Daniel Jacobowitz  <[email protected]>
12024
12025         Fix part of PR gdb/267.
12026         * linespec.c (find_methods): Handle constructors specially for now.
12027
12028 2002-02-14  Corinna Vinschen  <[email protected]>
12029
12030         * arm-tdep.c (arm_push_arguments): Eliminate special float type
12031         handling.
12032         * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12033         standard_coerce_float_to_double().
12034
12035 2002-02-14  Christopher Faylor  <[email protected]>
12036
12037         * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12038         GDBINIT_FILENAME.
12039
12040 2002-02-14  Elena Zannoni  <[email protected]>
12041
12042         * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12043         find_variant_by_name, because it confuses the multiarch
12044         framework. Return NULL if there isn't an architecture with the
12045         user supplied name, instead of forcing a different one without
12046         recording the change with the multiarch machinery.
12047         (find_variant_by_name): Delete.
12048
12049 2002-02-14  Peter Schauer  <[email protected]>
12050
12051         * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12052         i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12053
12054 2002-02-13  Martin M. Hunt  <[email protected]>
12055
12056         * stack.c (print_frame_info_base): When calling
12057         print_frame_info_listing_hook, set current_source_symtab.
12058
12059 2002-02-14  Daniel Jacobowitz  <[email protected]>
12060
12061         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12062         and remove unused $(INCLUDE_DIR).
12063         Add regcache.c to OBS.
12064         Add generated register protocol files to clean target.
12065         Update dependencies for new objects, obsolete old target code.
12066
12067         * gdbserver/linux-low.c: Remove all platform-specific code to
12068         new files.  Remove various dead code.  Update to use regcache
12069         functionality.
12070         * gdbserver/remote-utils.c (fromhex): Add return statement
12071         to quiet warning.
12072         (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12073         constant.
12074         (input_interrupt): Add integer parameter to match prototype
12075         of a signal handler.
12076         (outreg): Use register_data ().
12077         (prepare_resume_reply): Use gdbserver_expedite_regs.
12078         * gdbserver/server.c (main): Dynamically allocate own_buf because
12079         PBUFSIZ is no longer constant.  Use registers_to_string () and
12080         registers_from_string ().
12081         * gdbserver/server.h: No longer include "defs.h".  Add prototypes
12082         for error (), fatal (), and warning ().  Update definition of
12083         PBUFSIZ to use regcache functionality.  Add include guard.
12084         * gdbserver/utils.c (fatal): Add missing ``const''.
12085         (warning): New function.
12086
12087         * regformats/regdat.sh: Include "regcache.h" in generated files.
12088         Provide init_registers () function.
12089         * regformats/regdef.h: Add prototype for set_register_cache ().
12090         Add include guard.
12091
12092         * gdbserver/linux-arm-low.c: New file.
12093         * gdbserver/linux-i386-low.c: New file.
12094         * gdbserver/linux-ia64-low.c: New file.
12095         * gdbserver/linux-m68k-low.c: New file.
12096         * gdbserver/linux-mips-low.c: New file.
12097         * gdbserver/linux-ppc-low.c: New file.
12098         * gdbserver/linux-sh-low.c: New file.
12099
12100         * gdbserver/regcache.c: New file.
12101         * gdbserver/regcache.h: New file.
12102
12103         * gdbserver/low-linux.c: Removed obsolete file.
12104
12105 2002-02-14  Daniel Jacobowitz  <[email protected]>
12106
12107         * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12108         * config/i386/linux.mt: Likewise.
12109         * config/ia64/linux.mt: Likewise.
12110         * config/m68k/linux.mh: Likewise.
12111         * config/powerpc/linux.mh: Likewise.
12112         * config/mips/linux.mt: Likewise.
12113
12114         * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12115
12116         * config/i386/i386lynx.mh: Mark gdbserver variables
12117         as (currently) obsolete for this target.
12118         * config/i386/nbsd.mt: Likewise.
12119         * config/i386/nbsdelf.mt: Likewise.
12120         * config/m32r/m32r.mt: Likewise.
12121         * config/m68k/m68klynx.mh: Likewise.
12122         * config/m68k/nbsd.mt: Likewise.
12123         * config/m68k/sun3os4.mh: Likewise.
12124         * config/mips/vr5000.mt: Likewise.
12125         * config/ns32k/nbsd.mt: Likewise.
12126         * config/pa/hppabsd.mh: Likewise.
12127         * config/pa/hppaosf.mh: Likewise.
12128         * config/powerpc/nbsd.mt: Likewise.
12129         * config/rs6000/rs6000lynx.mh: Likewise.
12130         * config/s390/s390.mt: Likewise.
12131         * config/s390/s390x.mt: Likewise.
12132         * config/sparc/sparclynx.mh: Likewise.
12133         * config/sparc/sun4os4.mh: Likewise.
12134         * config/i386/x86-64linux.mt: Likewise.
12135         * config/sparc/linux.mh: Likewise.
12136
12137 2002-02-14  Daniel Jacobowitz  <[email protected]>
12138
12139         * configure.tgt: Configure gdbserver only for known working
12140         targets.  Set ${build_gdbserver} instead of modifying ${configdirs}.
12141         * configure.in: Check ${build_gdbserver}.  Put gdbserver/ into
12142         SUBDIRS if it is configured.  Update comment for ${nativefile}.
12143         * configure: Regenerated.
12144
12145 2002-02-13  Michael Snyder  <[email protected]>
12146
12147         * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12148
12149         * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12150         (default_gcore_mach): Just return 0, work around a problem in bfd.
12151         (default_gcore_target): OK to return NULL if exec_bfd is null.
12152         (make_mem_sec): Use a cast, avoid a warning.
12153
12154         * procfs.c (find_memory_regions_callback): Use a cast instead of
12155         calling host_pointer_to_address (which complains if
12156         sizeof (host pointer) != sizeof (target pointer)).
12157         (procfs_make_note_section): Avoid overflow in psargs string.
12158
12159         * procfs.c (procfs_make_note_section): Make the default
12160         implementation return an error.
12161
12162 2002-02-13  Rodney Brown  <[email protected]>
12163
12164         * procfs.c (procfs_make_note_section): Provide a default definition
12165         (for alpha-dec-osf4.0f). Fix typos.
12166
12167 2002-02-13  Elena Zannoni  <[email protected]>
12168
12169         * linux-proc.c: Add include of regcache.h.
12170         * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12171
12172 2002-02-13  Andrew Cagney  <[email protected]>
12173
12174         From 2002-01-18 Greg McGary <[email protected]>:
12175         * memattr.c (create_mem_region): Disallow useless empty region.
12176         Regions are half-open intervals, so allow [A..B) [B..C) as
12177         non-overlapping.
12178
12179 2002-02-13  Michael Chastain <[email protected]>
12180
12181         * defs.h: Kill CONST_PTR.
12182         * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12183         * c-lang.c (c_builtin_types): Likewise.
12184         * ch-lang.c (ch_builtin_types): Likewise.
12185         * f-lang.c (f_builtin_types): Likewise.
12186         * language.c (unknown_builtin_types): Likewise.
12187         * m2-lang.c (m2_builtin_types): Likewise.
12188         * p-lang.c (pascal_builtin_types): Likewise.
12189         * scm-lang.c (c_builtin_types): Likewise.
12190
12191 2002-02-13  Keith Seitz  <[email protected]>
12192
12193         * arm-tdep.h (arm_get_next_pc): Add declaration.
12194
12195 2002-02-13  Richard Earnshaw  <[email protected]>
12196
12197         * arm-tdep.c (arm_use_struct_convention): Make static.  Move to be
12198         with other related struct-returning functions.
12199         (arm_extract_struct_value_address): New function.
12200         (arm_gdbarch_init): Initialize the above in multi-arch vector.  Also
12201         initialize float_format, double_format and long_double_format as
12202         appropriate to the endianness of the target.
12203         * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12204         (arm_use_struct_convention): Delete declaration.
12205         (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12206
12207 2002-02-13  Keith Seitz  <[email protected]>
12208
12209         * defs.h (core_addr_to_string_nz): New function.
12210
12211 2002-02-13  Mark Kettenis  <[email protected]>
12212
12213         Apply missing bits of 2002-01-15 patch.
12214         * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12215         (fill_fpregset): Use i387_fill_fsave.
12216
12217 2002-02-12  Keith Seitz  <[email protected]>
12218
12219         * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12220         (core_addr_to_string_nz): New function.
12221
12222 2002-02-11  Richard Earnshaw  <[email protected]>
12223
12224         * arm-linux-nat.c: Really include arm-tdep.h.
12225         * config/arm/tm-linux.h (struct type, struct value): Declare.
12226
12227 2002-02-11  Michael Snyder  <[email protected]>
12228
12229         * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12230         (gcore section): Ifdef for Solaris and Unixware only.
12231         (procfs_do_thread_registers): Unixware needs one lwpstatus
12232         per thread (not one prstatus or pstatus).
12233         (procfs_make_note_section): Iterate only over kernel threads (lwps),
12234         not over all gdb threads.  For unixware, call elfcore_write_pstatus
12235         once before iterating over threads.
12236
12237 2002-02-11  Richard Earnshaw  <[email protected]>
12238
12239         * arm-tdep.h: New file.
12240         * arm-tdep.c: Include arm-tdep.h.
12241         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12242         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12243         (arm_print_float_info, arm_register_type, convert_to_extended)
12244         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12245         (arm_extract_return_value, arm_register_name): Make static.
12246         (arm_software_single_step): Similarly.  Fix types in declaration.
12247         (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12248         (arm_store_return_value, arm_store_struct_return): New functions.
12249         (arm_gdbarch_init): Register the above functions.  Also register
12250         call_dummy_start_offset, sizeof_call_dummy_words,
12251         function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12252         sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12253         max_register_virtual_size, register_size.  Set up
12254         prologue_cache.saved_regs here, rather than ...
12255         (_initialize_arm_tdep): ... here.
12256         * config/arm/tm-arm.h (struct type, struct value): Delete forward
12257         declarations.
12258         (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12259         (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12260         (arm_print_float_info, arm_register_type, convert_to_extended)
12261         (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12262         (arm_extract_return_value, arm_register_name): Delete declarations.
12263         (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12264         (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12265         (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12266         (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12267         (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12268         (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12269         (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12270         (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12271         (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12272         (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12273         (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12274         (arm_get_next_pc): No-longer static -- these are needed by the RDI
12275         interface.
12276         * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12277         * remote-rdi.c remote-rdp.c: Likewise.
12278         * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12279         (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12280         * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12281         definition.
12282
12283         * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12284         (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12285         (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12286         from non-ARM_ prefixed definitions.
12287         * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12288         all uses of above.
12289         * remote-rdi.c remote-rdp.c: Likewise.
12290         * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12291
12292 2002-02-11  Richard Earnshaw  <[email protected]>
12293
12294         * arm-tdep.c (arm_frameless_function_invocation)
12295         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12296         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12297         (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12298         (arm_pop_frame, arm_get_next_pc): Make static.
12299         (arm_gdbarch_init): Register above in gdbarch structure.
12300         (arm_read_fp): Renamed from arm_target_read_fp.
12301         (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12302         * config/arm/tm-arm.h (arm_frameless_function_invocation)
12303         (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12304         (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12305         (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12306         (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12307         (arm_pc_is_thumb_dummy): Delete declarations.
12308         (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12309         (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12310         (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12311         (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12312
12313 2002-02-10  Daniel Jacobowitz  <[email protected]>
12314
12315         * symtab.c (compare_search_syms): New function.
12316         (sort_search_symbols): New function.
12317         (search_symbols): Sort symbols after searching rather than
12318         before.
12319
12320 2002-02-10  Andrew Cagney  <[email protected]>
12321
12322         * NEWS: Linux -> GNU/Linux.
12323
12324 2002-02-10  Andrew Cagney  <[email protected]>
12325
12326         * gdbarch.sh: For for level one methods, disallow a definition
12327         when partially multi-arched.  Add comments explaining rationale.
12328         * gdbarch.h: Re-generate.
12329
12330 2002-02-10  Andrew Cagney  <[email protected]>
12331
12332         * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12333         multi-arch partial.
12334
12335 2002-02-10  Andrew Cagney  <[email protected]>
12336
12337         * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL.  Exit on bad
12338         field.  Use diff -u.
12339         * gdbarch.c: Re-generate.
12340
12341 2002-02-10  Andrew Cagney  <[email protected]>
12342
12343         * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12344         * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12345         partial.
12346
12347 2002-02-10  Andrew Cagney  <[email protected]>
12348
12349         * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12350         multi-arch partial.
12351         (PUSH_ARGUMENTS): Switch to using predefault.
12352         * gdbarch.c: Regenerate.
12353
12354 2002-02-10  Andrew Cagney  <[email protected]>
12355
12356         * valops.c (PUSH_ARGUMENTS): Delete definition.
12357         * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12358         partial.  Default to default_push_arguments.
12359         * gdbarch.h, gdbarch.c: Regenerate.
12360
12361 2002-02-09  Andrew Cagney  <[email protected]>
12362
12363         * defs.h (throw_exception): Rename return_to_top_level.  Update
12364         comments.
12365         * utils.c (error_stream, internal_verror, quit): Ditto.
12366         * top.c (throw_exception, catcher): Ditto.
12367         * sparclet-rom.c (sparclet_load): Ditto.
12368         * remote.c (interrupt_query, minitelnet): Ditto.
12369         * remote-sds.c (interrupt_query): Ditto.
12370         * remote-mips.c (mips_error, mips_kill): Ditto.
12371         * ocd.c (interrupt_query): Ditto.
12372         * monitor.c (monitor_interrupt_query): Ditto.
12373         * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12374         * target.h: Update comment.
12375
12376         * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12377
12378 2002-02-09  Andrew Cagney  <[email protected]>
12379
12380         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12381         default_double_format.
12382         * gdbarch.h, gdbarch.c: Re-generate.
12383         * findvar.c (floatformat_unknown): Delete variable definition.
12384         * doublest.h (floatformat_unknown): Delete variable declaration.
12385
12386 2002-02-09  Jim Blandy  <[email protected]>
12387
12388         * stabsread.c (read_type): Add code to parse Sun's syntax for
12389         prototyped function types.
12390
12391 2002-02-09  Andrew Cagney  <[email protected]>
12392
12393         * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12394         (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12395
12396 2002-02-09  Peter Schauer  <[email protected]>
12397
12398         * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12399         _initialize_solib.  Fixes name clash with solib.c:_initialize_solib,
12400         now _initialize_xcoffsolib gets called again and overrides the
12401         commands from solib.c in a native configuration.
12402
12403 2002-02-09  Mark Kettenis  <[email protected]>
12404
12405         * doublest.c (store_typed_floating): Don't try to return a value.
12406         Fixes PR gdb/290.
12407
12408 2002-02-08  Jim Blandy  <[email protected]>
12409
12410         * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12411         is prototyped and has no arguments, print its argument list as
12412         `(void)'.
12413
12414 2002-02-08  Chris Demetriou  <[email protected]>
12415
12416         * MAINTAINERS (write-after-approval): Add myself.
12417         (paper-trail): I've escaped!
12418
12419 2002-02-08  Christopher Faylor  <[email protected]>
12420
12421         * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12422         changes.
12423         (_initialize_check_for_gdb_ini): Ditto.
12424
12425 2002-02-08  Martin M. Hunt  <[email protected]>
12426
12427         * win32-nat.c (cygwin_pid_to_str): Fix typo.
12428         xaprintf -> xasprintf.
12429
12430 2002-02-08  Pierre Muller  <[email protected]>
12431
12432         * win32-nat.c: Remove use of printf and sprintf functions.
12433
12434 2002-02-08  Richard Earnshaw  <[email protected]>
12435
12436         * arm-tdep.c (arm_frame_chain_valid): Make static.
12437         (arm_push_arguments): Likewise.
12438         (arm_gdbarch_init): New function.
12439         (_initialize_arm_tdep): Call it.
12440         * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12441         (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12442         (FRAME_CHAIN_VALID): Delete.
12443         (arm_frame_chain_valid): Delete declaration.
12444         (PUSH_ARGUMENTS): Delete.
12445         (arm_push_arguments): Delete declaration.
12446         (CALL_DUMMY_P): Delete.
12447
12448 2002-02-08  Andrew Cagney  <[email protected]>
12449             Corinna Vinschen  <[email protected]>
12450
12451         * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12452         on builtin float types.
12453
12454 2002-02-08  Daniel Jacobowitz  <[email protected]>
12455
12456         * utils.c: Include <curses.h> before "bfd.h".
12457         * tui/tui-hooks.c: Likewise.
12458         * tui/tui.c: Likewise.
12459         * tui/tuiCommand.c: Likewise.
12460         * tui/tuiData.c: Likewise.
12461         * tui/tuiDataWin.c: Likewise.
12462         * tui/tuiDisassem.c: Likewise.
12463         * tui/tuiGeneralWin.c: Likewise.
12464         * tui/tuiIO.c: Likewise.
12465         * tui/tuiLayout.c: Likewise.
12466         * tui/tuiRegs.c: Likewise.
12467         * tui/tuiSource.c: Likewise.
12468         * tui/tuiSourceWin.c: Likewise.
12469         * tui/tuiStack.c: Likewise.
12470         * tui/tuiWin.c: Likewise.
12471
12472 2002-02-07  Elena Zannoni  <[email protected]>
12473
12474         * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12475         to include space for pseudoregs as well. Update loops accordingly.
12476         (sh_fp_frame_init_saved_regs): Ditto.
12477         (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12478
12479 2002-02-07  Andrew Cagney  <[email protected]>
12480
12481         * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12482         Add Richard Earnshaw to Arm maintainers.
12483
12484 2002-02-07  Andrew Cagney  <[email protected]>
12485
12486         * defs.h (warning_begin): Delete declaration.
12487
12488         * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12489         Delete macro.
12490
12491 2002-02-07  Michael Snyder  <[email protected]>
12492
12493         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12494         Logic bug, remove misplaced else.
12495
12496 2002-02-07  Klee Dienes  <[email protected]>
12497
12498         * fork-inferior.c (fork_inferior): Add '!' to the list of
12499         characters that need to be quoted when building a string for the
12500         shell.  Quote '!' specifically with a backslash, since CSH chokes
12501         when trying to evaluate "str!str".
12502
12503 2002-02-06  Nick Clifton  <[email protected]>
12504
12505         * rdi-share/host.h: Only provide a typedef for bool if it is not
12506         defined.
12507
12508 2002-02-04  Michael Snyder  <[email protected]>
12509
12510         * breakpoint.h (enum bptype): Add new overlay event bp type.
12511         (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12512
12513         * breakpoint.c (create_internal_breakpoint): New function.
12514         (internal_breakpoint_number): Moved into create_internal_breakpoint.
12515         (create_longjmp_breakpoint): Use create_internal_breakpoint.
12516         (create_thread_event_breakpoint): Ditto.
12517         (create_solib_event_breakpoint): Ditto.
12518         (create_overlay_event_breakpoint): New function.
12519         (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12520         (update_breakpoints_after_exec): Delete and re-initialize
12521         overlay event breakpoints after an exec.  Add FIXME comment
12522         about longjmp breakpoint.
12523         (print_it_typical): Ignore overlay event breakpoints.
12524         (print_one_breakpoint): Ditto.
12525         (mention): Ditto.
12526         (bpstat_what): Do not stop for overlay event breakpoints.
12527         (delete_breakpoint): Don't delete overlay event breakpoints.
12528         (breakpoint_re_set_one): Delete the overlay event breakpoint.
12529         (breakpoint_re_set): Re-create overlay event breakpoint.
12530
12531         * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12532         (overlay_manual_command): Disable overlay breakpoints.
12533         (overlay_off_command): Disable overlay breakpoints.
12534
12535 2002-02-06  Richard Earnshaw  <[email protected]>
12536
12537         * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12538         (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12539         to here from config/tm-arm.h.
12540         (coff_sym_is_thumb): Make static.
12541         (arm_elf_make_msymbol_special): New function.
12542         (arm_coff_make_msymbol_special): New function.
12543         * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12544         (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12545         (coff_sym_is_thumb): Delete declaration.
12546         (arm_elf_make_msymbol_special): Declare.
12547         (arm_coff_make_msymbol_special): Declare.
12548         (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12549         (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12550
12551 2002-02-06  Richard Earnshaw  <[email protected]>
12552
12553         * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12554
12555 2002-02-06  Richard Earnshaw  <[email protected]>
12556
12557         * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12558         * gdbarch.c gdbarch.h: Regenerate.
12559         * arch-utils.c (default_print_float_info): New function.
12560         * arch-utils.h (default_print_float_info): Prototype it.
12561         * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12562         * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12563         (PRINT_FLOAT_INFO): Document it.
12564
12565         * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12566         * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12567         (PRINT_FLOAT_INFO): Define.
12568
12569 2002-02-06  Pierre Muller  <[email protected]>
12570
12571         * win32-nat.c (_initialize_check_for_gdb_ini):
12572         Add typecast to sprintf argument to suppress a warning.
12573
12574 2002-02-05  Pierre Muller  <[email protected]>
12575
12576         * win32-nat.c (last_sig): Changed type of variable to target_signal,
12577         to allow easier handling of pass state.
12578         (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12579         that gives exception name and address.
12580         (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12581         and set last_sig value to ourstatus->value.sig. Some missing
12582         exceptions added.
12583         (child_continue): Correctly report continue_status.
12584         (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12585         TARGET_SIGNAL_0 (new default value).
12586         (child_resume): consider sig argument passed to decide if
12587         the exception should be passed to debuggee or not.
12588
12589 2002-02-05  Michael Snyder  <[email protected]>
12590
12591         * regcache.c (fetch_register): Call target_fetch_register
12592         only if we don't call FETCH_PSEUDO_REGISTER.
12593         (store_register): Call target_store_register only if we
12594         don't call STORE_PSEUDO_REGISTER.
12595
12596 2002-02-05  Elena Zannoni  <[email protected]>
12597
12598         * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12599         ELF_MAKE_MSYMBOL_SPECIAL.
12600         * gdbarch.c, gdbarch.h: Regenerate.
12601         * arch-utils.c (default_make_msymbol_special): New function.
12602         * arch-utils.h (default_make_msymbol_special): Export.
12603         * elfread.c (elf_symtab_read): Compile use of
12604         ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12605         multiarched.
12606         * coffread.c (coff_symtab_read): Ditto, for
12607         COFF_MAKE_MSYMBOL_SPECIAL.
12608
12609 2002-02-05  Jim Blandy  <[email protected]>
12610
12611         * solib-svr4.c (svr4_truncate_ptr): New function.
12612         (svr4_relocate_section_addresses): Do the address arithmetic with
12613         the appropriate truncation for target addresses, even when
12614         CORE_ADDR is larger than a target address.
12615
12616 2002-02-05  Daniel Jacobowitz  <[email protected]>
12617
12618         * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12619         to (int *).
12620
12621 2002-02-05  Daniel Jacobowitz  <[email protected]>
12622
12623         * gdbserver/linux-low.c (kill_inferior): Remove commented out
12624         code.
12625
12626 2002-02-05  Daniel Jacobowitz  <[email protected]>
12627
12628         * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12629
12630 2002-02-05  Daniel Jacobowitz  <[email protected]>
12631
12632         * gdbserver/linux-low.c: Remove unused include files.
12633
12634 2002-02-05  Daniel Jacobowitz  <[email protected]>
12635
12636         * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12637         (read_inferior_memory): Use it.
12638         (write_inferior_memory): Likewise.
12639
12640 2002-02-05  Daniel Jacobowitz  <[email protected]>
12641
12642         * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12643         grubbing through sys_errlist.
12644
12645 2002-02-05  Daniel Jacobowitz  <[email protected]>
12646
12647         * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12648
12649 2002-02-04  Pierre Muller  <[email protected]>
12650         * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12651
12652 2002-02-04  Andrew Cagney  <[email protected]>
12653
12654         * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12655         (do_sfunc, set_cmd_sfunc): New functions.
12656
12657         * command.h (struct cmd_list_element): Add field func.
12658         * cli/cli-decode.h (struct cmd_list_element): Ditto.
12659         * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12660         * cli/cli-decode.h: Ditto.
12661
12662         * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12663         (help_all, help_cmd_list): Ditto.
12664         (find_cmd, complete_on_cmdlist): Ditto.
12665         * top.c (execute_command): Ditto.
12666
12667         * cli/cli-setshow.c (do_setshow_command): Call func instead of
12668         function.sfunc.
12669
12670         * infcmd.c (notice_args_read): Fix function signature.
12671
12672         * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12673         * cli/cli-decode.c (add_set_cmd): Ditto.
12674         * utils.c (initialize_utils): Ditto.
12675         * maint.c (_initialize_maint_cmds): Ditto.
12676         * infrun.c (_initialize_infrun): Ditto.
12677         * demangle.c (_initialize_demangler): Ditto.
12678         * remote.c (add_packet_config_cmd): Ditto.
12679         * mips-tdep.c (_initialize_mips_tdep): Ditto.
12680         * cris-tdep.c (_initialize_cris_tdep): Ditto.
12681         * proc-api.c (_initialize_proc_api): Ditto.
12682         * kod.c (_initialize_kod): Ditto.
12683         * valprint.c (_initialize_valprint): Ditto.
12684         * top.c (init_main): Ditto.
12685         * infcmd.c (_initialize_infcmd): Ditto.
12686         * corefile.c (_initialize_core): Ditto.
12687         * arm-tdep.c (_initialize_arm_tdep): Ditto.
12688         * arch-utils.c (initialize_current_architecture): Ditto.
12689         (_initialize_gdbarch_utils): Ditto.
12690         * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12691
12692         * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12693         * wince.c (_initialize_inftarg): Ditto.
12694         * symfile.c (_initialize_symfile): Ditto.
12695         * mips-tdep.c (_initialize_mips_tdep): Ditto.
12696         * language.c (_initialize_language): Ditto.
12697         * arc-tdep.c (_initialize_arc_tdep): Ditto.
12698
12699 2002-02-04  Michael Snyder  <[email protected]>
12700
12701         * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12702
12703 2002-02-04  Daniel Jacobowitz  <[email protected]>
12704
12705         * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12706         Add rules for building the register data files.
12707
12708 2002-02-04  Daniel Jacobowitz  <[email protected]>
12709
12710         * regformats/regdat.sh: Add braces to the definition of
12711         expedite_regs_${arch}.
12712
12713 2002-02-04  Daniel Jacobowitz  <[email protected]>
12714
12715         * regformats/regdef.h (struct reg): Add comment describing the
12716         requirements for offset and size fields.
12717
12718 2002-02-04  Andreas Schwab  <[email protected]>
12719
12720         * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12721         * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12722
12723 2002-02-04  Richard Earnshaw  <[email protected]>
12724
12725         * gdbarch.sh (copyright): Update years in generated header.
12726         (SMASH_TEXT_ADDRESS): Add rule.
12727         * gdbarch.h, gdbarch.c: Re-generate.
12728         * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12729         * dbxread.c: Likewise.
12730         * dwarfread.c: Likewise.
12731         * elfread.c: Likewise.
12732         * somread.c: Likewise.
12733
12734         * arm-tdep.c (arm_smash_text_address): New function.
12735         * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12736
12737 2002-02-04  Pierre Muller  <[email protected]>
12738
12739         Add support for hardware watchpoints on win32 native.
12740         * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12741         CONTEXT_DEBUG_REGISTERS.
12742         (dr variable): New variable. Static array containing a local copy
12743         of debug registers.
12744         (debug_registers_changed): New variable.  Reflects when debug registers
12745         are changed and need to be written to inferior.
12746         (debug_registers_used): New variable. Reflects when any debug register
12747         was set, used when new threads are created.
12748         (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12749         i386-nat code.
12750         (thread_rec): Set dr array if id is the thread of current_event .
12751         (child_continue, child_resume): Change the debug registers for all
12752         threads if debug_registers_changed.
12753         (child_add_thread): Change the debug registers if debug_registers_used.
12754         * config/i386/cygwin.mh: Add use of i386-nat.o file.
12755         Link nm.h to new nm-cygwin.h file.
12756         + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12757         of hardware registers.
12758
12759 2002-02-03  Andrew Cagney  <[email protected]>
12760
12761         * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12762         Restore behavour broken by 2002-01-20 Andrew Cagney
12763         <[email protected]> IEEE_FLOAT removal.
12764
12765 2002-02-03  Daniel Jacobowitz  <[email protected]>
12766
12767         * c-valprint.c (c_val_print): Pass a proper valaddr to
12768         cp_print_class_method.
12769         * valops.c (search_struct_method): If there is only one method
12770         and args is NULL, return that method.
12771
12772 2002-02-03  Daniel Jacobowitz  <[email protected]>
12773
12774         * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12775         accessing tag_name directly.
12776
12777 2002-02-03  Daniel Jacobowitz  <[email protected]>
12778
12779         * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12780         of accessing tag_name directly.
12781
12782 2002-02-03  Daniel Jacobowitz  <[email protected]>
12783
12784         PR gdb/280
12785         * gdbtypes.c (replace_type): New function.
12786         * gdbtypes.h (replace_type): Add prototype.
12787         * stabsread.c (read_type): Use replace_type.
12788
12789 2002-02-03  Richard Earnshaw  <[email protected]>
12790
12791         * Makefile.in (memattr.o): Add missing dependencies rule.
12792
12793 2002-02-03  Peter Schauer  <[email protected]>
12794
12795         * breakpoint.c (break_at_finish_command): Really export.
12796         (break_at_finish_at_depth_command): Ditto.
12797         (tbreak_at_finish_command): Ditto.
12798         * hppa-tdep.c: Include completer.h.
12799         * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12800         (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12801
12802 2002-02-01  Andrew Cagney  <[email protected]>
12803
12804         * utils.c (do_write): New function.
12805         (error_stream): Rewrite combining the code from error_begin and
12806         verror.
12807         (verror): Rewrite using error_stream.
12808         (error_begin): Delete function.
12809
12810 2002-02-01  Andrew Cagney  <[email protected]>
12811
12812         * utils.c (error_begin): Make static.
12813         * defs.h (error_begin): Delete declaration.
12814
12815         * linespec.c (cplusplus_error): Replace cplusplus_hint.
12816         (decode_line_1): Use cplusplus_error instead of error_begin,
12817         cplusplus_hint and return_to_top_level.
12818         * coffread.c (coff_symfile_read): Use error instead of error_begin
12819         and return_to_top_level.
12820         * infrun.c (default_skip_permanent_breakpoint): Ditto.
12821
12822 2002-02-01  Andrew Cagney  <[email protected]>
12823
12824         * language.h (type_error, range_error): Make string parameter
12825         constant.
12826         * language.c (warning_pre_print): Delete extern declaration.
12827         * dwarfread.c (warning_pre_print): Ditto.
12828         * language.c (type_error, range_error): Rewrite to use verror and
12829         vwarning instead of warning_begin.
12830
12831 2002-02-01  Michael Snyder  <[email protected]>
12832
12833         * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12834         (set_ignore_count): Move misplaced comment back where it belongs.
12835
12836 2002-02-01  Andrew Cagney  <[email protected]>
12837
12838         * command.h (NO_FUNCTION): Delete macro.
12839         * cli/cli-decode.h (NO_FUNCTION): Ditto.
12840         * top.c (execute_command): Replace NO_FUNCTION with NULL.
12841         * tracepoint.c (_initialize_tracepoint): Ditto.
12842         * cli/cli-decode.c (add_set_cmd): Ditto.
12843         * cli/cli-cmds.c (init_cli_cmds): Ditto.
12844
12845 2002-02-01  Daniel Jacobowitz  <[email protected]>
12846
12847         * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12848         Update ``this'' pointer when calling virtual functions.
12849
12850 2002-02-01  Michael Snyder  <[email protected]>
12851
12852         * breakpoint.c (create_temp_exception_breakpoint): Delete.
12853         * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12854
12855 2002-02-01  Daniel Jacobowitz  <[email protected]>
12856
12857         * regformats/reg-arm.dat: New file.
12858         * regformats/reg-i386.dat: New file.
12859         * regformats/reg-ia64.dat: New file.
12860         * regformats/reg-m68k.dat: New file.
12861         * regformats/reg-mips.dat: New file.
12862         * regformats/reg-ppc.dat: New file.
12863         * regformats/reg-sh.dat: New file.
12864         * regformats/regdef.h: New file.
12865         * regformats/regdat.sh: New file.
12866
12867 2002-02-01  Richard Earnshaw  <[email protected]>
12868
12869         * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12870         (arm_frame_args_address, arm_frame_locals_address): New functions.
12871         (arm_frame_num_args): New function.
12872         * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12873         (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12874         (FRMA_NUM_ARGS): Call arm_frame_num_args.
12875
12876 2002-01-31  Michael Snyder  <[email protected]>
12877
12878         * breakpoint.c (break_at_finish_command): Export.
12879         (break_at_finish_at_depth_command): Export.
12880         (tbreak_at_finish_command): Export.
12881         (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12882         * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12883         "txbreak" commands, which are HPPA specific.
12884
12885         * printcmd.c (disassemble_command): Remove an ancient
12886         artifact of an old merge.
12887
12888         * symfile.h (enum overlay_debugging_state):
12889         Define enum constant values for overlay mode.
12890         * symfile.c (overlay_debugging): Use enums instead of literals.
12891         (overlay_is_mapped, overlay_auto_command,
12892         overlay_manual_command): Ditto.
12893
12894         * breakpoint.c (insert_breakpoints, remove_breakpoint,
12895         breakpoint_here_p, breakpoint_inserted_here_p,
12896         breakpoint_thread_match, bpstat_stop_status,
12897         describe_other_breakpoints, check_duplicates, clear_command):
12898         Coding standard fixes.
12899
12900         * target.c (target_xfer_memory): Add spaces, coding standard.
12901         (do_xfer_memory): Add missing line to trust-readonly
12902         code: check bfd SEC_READONLY flag for section.
12903
12904 2002-01-31  Andrew Cagney  <[email protected]>
12905
12906         * PROBLEMS: Fix typo, 5.1->5.1.1.
12907
12908 2002-01-30  Daniel Jacobowitz  <[email protected]>
12909
12910         * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12911         data symbols, since we search based on textlow and texthigh.
12912         (find_pc_sect_symtab): Likewise.
12913
12914 2002-01-30  Andrew Cagney  <[email protected]>
12915
12916         * defs.h (vwarning): Declare.
12917         * utils.c (vwarning): New function.
12918         (warning): Call vwarning.
12919         (warning_begin): Delete function.
12920
12921         * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12922         the warning message.
12923         * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12924         warning_begin.
12925
12926 2002-01-30  Michael Snyder  <[email protected]>
12927
12928         * NEWS: Mention "set trust-readonly-sections" command.
12929         Mention generate-core-file command.
12930
12931 2002-01-15  Michael Snyder  <[email protected]>
12932
12933         * target.c: New command, "set trust-readonly-sections on".
12934         (do_xfer_memory): Honor the suggestion to trust readonly sections
12935         by reading them from the object file instead of from the target.
12936         (initialize_targets): Register command "set trust-readonly-sections".
12937
12938 2002-01-29  Andrew Cagney  <[email protected]>
12939
12940         * parse.c (target_map_name_to_register): Simplify, search regs and
12941         pseudo-regs using a single loop.
12942
12943 2002-01-30  Andrew Cagney  <[email protected]>
12944
12945         * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12946
12947 2002-01-15  Rodney Brown  <[email protected]>
12948
12949         * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12950         * config/i386/i386v42mp.mh: Add i387-nat.o .
12951         * i386v4-nat.c: Include i387-nat.h.
12952         (supply_fpregset): Use i387_supply_fsave.
12953         (fill_fpregset): Use i387_fill_fsave.
12954
12955 2002-01-30  Richard Earnshaw  <[email protected]>
12956
12957         * arm-tdep.c (arm_call_dummy_words): Define.
12958         * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12959         * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12960         (CALL_DUMMY_WORDS): Define.
12961         (arm_call_dummy_words): Declare.
12962         * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12963         (arm_linux_call_dummy_words): Declare.
12964
12965 2002-01-30  Andreas Schwab  <[email protected]>
12966
12967         * m68klinux-nat.c: Fix last change to use regcache_collect
12968         instead of referencing registers[] directly.
12969
12970 2002-01-29  Andrew Cagney  <[email protected]>
12971
12972         * parse.c (target_map_name_to_register): Delete code wrapped in
12973         #ifdef REGISTER_NAME_ALIAS_HOOK.
12974
12975 2002-01-28  Michael Snyder  <[email protected]>
12976
12977         * regcache.c (legacy_read_register_gen): Need to be able to
12978         read pseudo-register as well as real register.
12979         (legacy_write_register_gen): Ditto.
12980
12981 2002-01-28  Andrew Cagney  <[email protected]>
12982
12983         * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12984         * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12985         * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12986         * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12987         * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12988         * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12989         * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12990         * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12991         * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12992         * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12993         * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12994         * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12995         * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12996         * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12997         * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12998         * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12999         * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13000         * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13001         * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13002         * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13003
13004 2002-01-28  Andrew Cagney  <[email protected]>
13005
13006         * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13007         (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13008         (initialize_current_architecture): Update target_byte_order using
13009         information from BFD.
13010         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13011         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13012
13013 2002-01-28  Andrew Cagney  <[email protected]>
13014
13015         * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13016         * vax-tdep.c (INVALID_FLOAT): To here.  Document why it is broken.
13017
13018         * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13019         #ifdef INVALID_FLOAT.
13020         * infcmd.c (do_registers_info): Ditto.
13021         * values.c (unpack_double): Ditto.  Add comment.
13022
13023         * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13024         already commented out.
13025
13026 2002-01-26  Andreas Schwab  <[email protected]>
13027
13028         * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13029         * m68klinux-nat.c: Update ptrace interface for fetching/storing
13030         registers and add support for PTRACE_GETREGS.
13031
13032 2002-01-24  Andrew Cagney  <[email protected]>
13033
13034         GDB 5.1.1 released from 5.1 branch.
13035         * NEWS: Add 5.1.1 news.
13036         * README: Sync with 5.1 branch.
13037
13038 2002-01-23  Fred Fish  <[email protected]>
13039
13040         * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13041         stabstring on initial malloc.  Reallocing will copy it for us,
13042         if necessary.
13043
13044 2002-01-23  Elena Zannoni  <[email protected]>
13045
13046         * Makefile.in (hpread_h): Delete.
13047         (HFILES_NO_SRCDIR): Remove hpread.h.
13048         (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13049         (hpread.o): Update dependencies.
13050         (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13051
13052         * hp-psymtab-read.c: Remove file.
13053         * hp-symtab-read.c: Remove file.
13054         * hpread.h: Remove file.
13055
13056         * hpread.c: Merge all contents of hp-psymtab-read.c,
13057         hp-symtab-read.c and hpread.h into this file, as it was prior to
13058         January 1999.
13059
13060         * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13061         config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13062         config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13063         Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13064
13065 2002-01-23  Elena Zannoni  <[email protected]>
13066
13067         * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13068         fill_gregset): Call gdbarch_tdep() just once, assign result to
13069         variable and use that, instead of calling the function several
13070         times.
13071
13072 2002-01-24  Alexandre Oliva  <[email protected]>
13073
13074         * configure.host: Accept sparcv9 as alias for sparc64.
13075         * configure.tgt: Likewise.
13076
13077 2002-01-22  Kevin Buettner  <[email protected]>
13078
13079         * solib-aix5.c (build_so_list_from_mapfile)
13080         (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13081         arguments is not reversed.
13082         * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13083         * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13084
13085 2002-01-22  Elena Zannoni  <[email protected]>
13086
13087         * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13088         modified version of obsolete sh_fetch_pseudo_register.
13089         (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13090         (sh4_register_read): New function.
13091         (sh_pseudo_register_write): New function. Renamed and modified
13092         version of obsolete sh_store_pseudo_register.
13093         (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13094         (sh4_register_write): New function.
13095         (sh_gdbarch_init): Remove setting of gdbarch function
13096         fetch_pseudo_register and store_pseudo_register. Remove setting of
13097         register_convert_to_raw, register_convert_to_virtual,
13098         register_convertible.
13099         (sh_sh4_register_convertible): Delete. No longer needed. All is
13100         taken care by architecture specific functions
13101         register_read/register_write.
13102         (sh_sh4_register_convert_to_virtual): Make static.
13103         (sh_sh4_register_convert_to_raw): Ditto.
13104
13105 2002-01-22  Andrew Cagney  <[email protected]>
13106
13107         * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13108         (floatformat_is_nan, floatformat_mantissa): Ditto.
13109
13110         * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13111         for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13112         builtin_type_ieee_double_little,
13113         builtin_type_ieee_double_littlebyte_bigword,
13114         builtin_type_m68881_ext, builtin_type_i960_ext,
13115         builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13116         builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13117         builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13118         builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13119
13120 2002-01-22  Corinna Vinschen  <[email protected]>
13121
13122         * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13123         parameter.  Set frameless flag if it exists and depended of
13124         whether the scanned function is frameless or not.
13125         (xstormy16_skip_prologue): If function is frameless, return
13126         result of xstormy16_scan_prologue().
13127         (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13128         call.
13129
13130 2002-01-21  Elena Zannoni  <[email protected]>
13131
13132         * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13133         sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13134         sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13135         sh_sh4_register_byte, sh_sh4_register_raw_size,
13136         sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13137         sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13138         sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13139         sh_store_pseudo_register, sh_do_pseudo_register): Call
13140         gdbarch_tdep() just once, assign result to variable and use that,
13141         instead of calling the function several times.
13142
13143 2002-01-20  Mark Kettenis  <[email protected]>
13144
13145         * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13146         macros instead of LAST_FPU_CTRL_REGNUM.
13147         (store_register): Likewise.
13148
13149 2002-01-21  Jim Blandy  <[email protected]>
13150
13151         * infcmd.c (run_command): Check that the `exec' target layer's BFD
13152         is up-to-date before running the program, not just when a program
13153         exits.
13154
13155 2002-01-21  Fred Fish  <[email protected]>
13156
13157         * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13158         when we have found all instructions we are looking for.
13159
13160 2002-01-21  Richard Earnshaw  <[email protected]>
13161
13162         * arm-tdep.c (arm_register_name): New function.
13163         (arm_registers_names): Make static.
13164         * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13165         (arm_register_name): Declare.
13166         (REGISTER_NAME): Use it.
13167
13168 2002-01-21  Richard Earnshaw  <[email protected]>
13169             Kevin Buettner  <[email protected]>
13170
13171         Convert arm targets to new FRAME interface.
13172         * arm-tdep.c (struct frame_extra_info): Remove fsr.
13173         (arm_frame_find_save_regs): Delete.
13174         (arm_frame_init_saved_regs): New.
13175         (arm_init_extra_frame_info): Alloacte saved_regs as required.
13176         Allocate extra_info as required.  Convert all uses of fsr.regs
13177         to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13178         to use extra_info.
13179         (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13180         (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13181         (check_prologue_cache, save_prologue_cache): Likewise.
13182         (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13183         * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13184         (FRAME_FIND_SAVED_REGS): Delete.
13185         (arm_frame_find_saved_regs): Delete prototype.
13186         (arm_frame_init_saved_regs): New prototype.
13187         (FRAME_INIT_SAVED_REGS): Define.
13188
13189 2002-01-20  Andrew Cagney  <[email protected]>
13190
13191         * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13192
13193 2002-01-20  Andrew Cagney  <[email protected]>
13194
13195         From Jeff Law <[email protected]>:
13196         * infttrace.c: Include <sys/pstat.h>.
13197         (child_pid_to_exec_file): Revamp.  Use pstat call to get the
13198         exec file if the ttrace equivalent fails.
13199
13200 2002-01-20  Andrew Cagney  <[email protected]>
13201
13202         * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13203         (closeLogFile): Ditto.
13204
13205 2002-01-20  Michael Chastain  <[email protected]>
13206
13207         * top.c (print_gdb_version): Bump copyright year to 2002.
13208
13209 2002-01-20  Andrew Cagney  <[email protected]>
13210
13211         * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13212         Zannoni and Eli Zaretskii.
13213
13214 2002-01-20  Daniel Jacobowitz  <[email protected]>
13215
13216         * buildsym.c: Update copyright years.
13217         * c-typeprint.c: Likewise.
13218         * dwarf2read.c: Likewise.
13219         * f-typeprint.c: Likewise.
13220         * gdbtypes.c: Likewise.
13221         * gdbtypes.h: Likewise.
13222         * hp-symtab-read.c: Likewise.
13223         * hpread.c: Likewise.
13224         * mdebugread.c: Likewise.
13225         * p-typeprint.c: Likewise.
13226
13227 2002-01-20  Andrew Cagney  <[email protected]>
13228
13229         * remote-sim.c (gdbsim_open): Simplify code testing the macro
13230         TARGET_BYTE_ORDER_SELECTABLE_P.  Assume the target is always
13231         byte-order selectable.
13232         * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13233         * arch-utils.c: Ditto.
13234         (set_endian): Ditto.
13235         (set_endian_from_file): Ditto.
13236         * gdbserver/low-sim.c (create_inferior): Ditto.
13237         * gdbarch.sh: Ditto.
13238         * gdbarch.h: Re-generate.
13239         * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13240         * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13241         * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13242         * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13243         * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13244         * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13245         * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13246         * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13247         macro definition.
13248         * config/mips/tm-wince.h: Remove #undef of macro
13249         TARGET_BYTE_ORDER_SELECTABLE.
13250         * config/sh/tm-wince.h: Ditto.
13251
13252 2002-01-20  Daniel Jacobowitz  <[email protected]>
13253
13254         * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13255         member function fields.  Add accessor macro
13256         TYPE_FN_FIELD_ARTIFICIAL.
13257         * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13258         * c-typeprint.c (c_type_print_base): Skip artificial member
13259         functions.
13260
13261 2002-01-20  Daniel Jacobowitz  <[email protected]>
13262
13263         * f-typeprint.c: Delete unused function f_type_print_args.
13264         * p-typeprint.c: Delete unused function pascal_type_print_args.
13265
13266 2002-01-20  Daniel Jacobowitz  <[email protected]>
13267
13268         * gdbtypes.h (struct type): Fix whitespace.  Remove obsolete
13269         comment.  Add ``artificial'' to ``union field_location''.
13270
13271         * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13272
13273         * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13274         * mdebugread.c (parse_symbol): Likewise.
13275         * stabsread.c (define_symbol): Likewise.
13276         * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13277         initializing TYPE_FIELD_BITPOS to n (obsolete).
13278         (hpread_doc_function_type): Likewise.
13279         * hpread.c (hpread_function_type): Likewise.
13280
13281 2002-01-20  Andrew Cagney  <[email protected]>
13282
13283         * configure.in (host_makefile_frag): Only require a host makefile
13284         fragment when a native build.
13285         * configure: Re-generate.
13286
13287 2002-01-20  Andrew Cagney  <[email protected]>
13288
13289         * doublest.h (floatformat_from_type): Declare.
13290         * doublest.c (floatformat_from_type): New function.
13291         (convert_typed_floating): Use.
13292
13293         * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13294         call to function floatformat_from_type.
13295
13296         * gdbarch.sh (IEEE_FLOAT): Delete.
13297         * gdbarch.h, gdbarch.c: Re-generate.
13298         * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13299         * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13300         * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13301         * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13302         * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13303         * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13304         * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13305         * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13306         * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13307         * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13308         * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13309         * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13310
13311         * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13312         * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13313         * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13314         * sh-tdep.c (sh_gdbarch_init): Ditto.
13315         * mips-tdep.c (mips_gdbarch_init): Ditto.
13316         * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13317         * cris-tdep.c (cris_gdbarch_init): Ditto.
13318
13319 2002-01-20  Jiri Smid  <[email protected]>
13320
13321         * configure.host, configure.tgt: Support x86-64.
13322         * NEWS: Note new target x86-64.
13323
13324         * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13325         * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13326         * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13327         * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13328         x86-64-linux-nat.o): Fix dependencies.
13329
13330 2002-01-19  Andrew Cagney  <[email protected]>
13331
13332         * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13333         * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13334         * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13335         * config/sparc/xm-sun4os4.h: Delete file.
13336         * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13337
13338 2002-01-19  Andrew Cagney  <[email protected]>
13339
13340         * config/sparc/sparclynx.mh (XM_FILE): Delete.
13341         * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13342         * config/m68k/m68klynx.mh (XM_FILE): Delete.
13343         * config/i386/i386lynx.mh (XM_FILE): Delete.
13344         * config/rs6000/xm-rs6000ly.h: Delete file.
13345         * config/sparc/xm-sparclynx.h: Delete file.
13346         * config/m68k/xm-m68klynx.h: Delete file.
13347         * config/i386/xm-i386lynx.h: Delete file.
13348         * config/xm-lynx.h: Delete file.
13349         * config/djgpp/fnchange.lst: Update.
13350
13351 2002-01-19  Jason Thorpe  <[email protected]>
13352
13353         * alpha-tdep.c (alpha_register_byte): New function.
13354         (alpha_register_raw_size): Ditto.
13355         (alpha_register_virtual_size): Ditto.
13356         (alpha_skip_prologue_internal): Renamed from
13357         alpha_skip_prologue.
13358         (alpha_skip_prologue): New version that calls
13359         alpha_skip_prologue_internal.
13360         (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13361         * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13362         second argument from alpha_skip_prologue.
13363         (REGISTER_BYTE): Use alpha_register_byte.
13364         (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13365         (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13366         (FRAMELESS_FUNCTION_INVOCATION): Use
13367         generic_frameless_function_invocation_not.
13368         (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13369         (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13370
13371 2002-01-19  Andrew Cagney  <[email protected]>
13372
13373         * config/mips/xm-news-mips.h: Delete file.
13374         * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13375
13376         * config/m88k/xm-m88k.h: Delete file.
13377         * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13378         * config/m88k/xm-delta88v4.h: Ditto.
13379         * config/m88k/xm-delta88.h: Ditto.
13380
13381         * config/alpha/xm-fbsd.h: Delete file.
13382         * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13383
13384         * config/sparc/xm-sparc.h: Delete file.
13385         * Makefile.in (xm-sun4os4.h): Delete dependency.
13386         * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13387         * config/sparc/xm-sun4os4.h: Ditto.
13388         * config/sparc/xm-linux.h: Ditto.
13389
13390         * config/i386/xm-windows.h: Delete file.
13391
13392 2002-01-19  Andrew Cagney  <[email protected]>
13393
13394         * utils.c: Include <sys/param.h> for MAXPATHLEN.
13395         (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13396
13397 2002-01-19  Jason Thorpe  <[email protected]>
13398
13399         * alpha-tdep.c (alpha_call_dummy_words): New.
13400         * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13401         (CALL_DUMMY_P): Define.
13402         (CALL_DUMMY_WORDS): Define.
13403         (SIZEOF_CALL_DUMMY_WORDS): Define.
13404
13405 2002-01-19  Per Bothner  <[email protected]>
13406
13407         * gnu-v3-abi.c (gnuv3_rtti_type):  Guard that vtable_symbol_name
13408         isn't NULL, which can happen with some gcj-3.x-produced code.
13409
13410 2002-01-19  Jason Thorpe  <[email protected]>
13411
13412         * alpha-tdep.c (alpha_register_virtual_type): New function.
13413         (alpha_init_frame_pc_first): Ditto.
13414         (alpha_fix_call_dummy): Ditto.
13415         (alpha_store_struct_return): Ditto.
13416         (alpha_extract_struct_value_address): Ditto.
13417         * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13418         alpha_register_virtual_type.
13419         (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13420         (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13421         alpha_extract_struct_value_address.
13422         (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13423         (INIT_FRAME_PC): Use init_frame_pc_noop.
13424         (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13425
13426 2002-01-19  Mark Kettenis  <[email protected]>
13427
13428         * i386gnu-nat.c: Include "i386-tdep.h".
13429         (fetch_fpregs): Simplify code dealing with uninitialized floating
13430         point states such that it doesn't require FP7_REGNUM.
13431
13432 2002-01-18  Jason Thorpe  <[email protected]>
13433
13434         * alpha-tdep.c (frame_extra_info): New.
13435         (alpha_find_saved_regs): Make static.  Use
13436         frame->extra_info.
13437         (alpha_frame_init_saved_regs): New function.
13438         (alpha_frame_saved_pc): Use frame->extra_info.
13439         (temp_saved_regs): Don't declare as struct frame_saved_regs.
13440         (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13441         (init_extra_frame_info): Rename to...
13442         (alpha_init_extra_frame_info): ...this.  Use frame->extra_info.
13443         (alpha_print_extra_frame_info): New function.
13444         (alpha_frame_locals_address): Ditto.
13445         (alpha_frame_args_address): Ditto.
13446         (alpha_pop_frame): Use frame->extra_info.
13447         * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13448         alpha_frame_args_address.
13449         (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13450         (alpha_find_saved_regs): Remove prototype.
13451         (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13452         (EXTRA_FRAME_INFO): Remove.
13453         (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13454         (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13455
13456 2002-01-18  Jason Thorpe  <[email protected]>
13457
13458         * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13459         (alpha_cannot_fetch_register): Ditto.
13460         (alpha_cannot_store_register): Ditto.
13461         (alpha_register_convertible): Ditto.
13462         (alpha_use_struct_convention): Ditto.
13463         * config/alpha/tm-alpha.h: Update copyright years.
13464         (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13465         (INNER_THAN): Use core_addr_lessthan.
13466         (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13467         (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13468         (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13469         (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13470         (FRAME_CHAIN): Remove unnecessary cast.
13471
13472 2002-01-18  Andrew Cagney  <[email protected]>
13473
13474         * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13475         obsolete.
13476
13477 2002-01-18  Andrew Cagney  <[email protected]>
13478
13479         * infptrace.c: Remove ATTRIBUTE_UNUSED.  Update copyright.
13480         * monitor.c, remote-array.c, remote-bug.c: Ditto.
13481         * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13482         * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13483         * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13484         * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13485         * x86-64-linux-nat.c: Ditto.
13486
13487 2002-01-18  Jason Thorpe  <[email protected]>
13488
13489         * alpha-tdep.c (alpha_register_name): New function.
13490         * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13491         (REGISTER_NAME): Define.
13492
13493 2002-01-18  Jason Thorpe  <[email protected]>
13494
13495         * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13496
13497 2002-01-18  Jason Thorpe  <[email protected]>
13498
13499         * alpha-tdep.c: Update copyright years.
13500         (alpha_next_pc): New function.
13501         (alpha_software_single_step): Ditto.
13502         * config/alpha/tm-alpha.h: Add prototype for
13503         alpha_software_single_step.
13504
13505 2002-01-18  Jason Thorpe  <[email protected]>
13506
13507         * alphabsd-nat.c: Update copyright years.
13508         (fill_gregset): Use regcache_collect.
13509         (fill_fpregset): Likewise.
13510         (fetch_inferior_registers): Only fetch integer registers
13511         if requested to do so.
13512         (store_inferior_registers): Only store integer registers
13513         if requested to do so.
13514
13515 2002-01-17  Andrew Cagney  <[email protected]>
13516
13517         * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13518         * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13519         * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13520         * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13521         * config/alpha/fbsd.mh (XDEPFILES): Delete.
13522         * config/arm/linux.mh (XDEPFILES): Delete.
13523         * config/arm/nbsd.mh (XDEPFILES): Delete.
13524         * config/i386/i386dgux.mh (XDEPFILES): Delete.
13525         * config/i386/i386sol2.mh (XDEPFILES): Delete.
13526         * config/i386/i386m3.mh (XDEPFILES): Delete.
13527         (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13528         * config/i386/i386gnu.mh (XDEPFILES): Delete.
13529         * config/i386/fbsd.mh (XDEPFILES): Delete.
13530         * config/i386/i386bsd.mh (XDEPFILES): Delete.
13531         * config/i386/i386sco5.mh (XDEPFILES): Delete.
13532         * config/i386/i386v4.mh (XDEPFILES): Delete.
13533         * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13534         * config/i386/i386sco4.mh (XDEPFILES): Delete.
13535         * config/i386/i386aix.mh (XDEPFILES): Delete.
13536         * config/i386/go32.mh (XDEPFILES): Delete.
13537         * config/i386/cygwin.mh (XDEPFILES): Delete.
13538         * config/i386/i386lynx.mh (XDEPFILES): Delete.
13539         * config/i386/i386mach.mh (XDEPFILES): Delete.
13540         * config/i386/i386v32.mh (XDEPFILES): Delete.
13541         * config/i386/linux.mh (XDEPFILES): Delete.
13542         * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13543         * config/i386/ncr3000.mh (XDEPFILES): Delete.
13544         * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13545         * config/i386/i386sco.mh (XDEPFILES): Delete.
13546         * config/i386/i386v.mh (XDEPFILES): Delete.
13547         * config/i386/nbsd.mh (XDEPFILES): Delete.
13548         * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13549         * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13550         * config/i386/symmetry.mh (XDEPFILES): Delete.
13551         * config/i386/obsd.mh (XDEPFILES): Delete.
13552         * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13553         * config/ia64/linux.mh (XDEPFILES): Delete.
13554         * config/ia64/aix.mh (XDEPFILES): Delete.
13555         * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13556         * config/m68k/dpx2.mh (XDEPFILES): Delete.
13557         * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13558         * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13559         * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13560         * config/m68k/linux.mh (XDEPFILES): Delete.
13561         * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13562         * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13563         * config/m68k/nbsd.mh (XDEPFILES): Delete.
13564         * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13565         * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13566         * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13567         * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13568         * config/m88k/delta88.mh (XDEPFILES): Delete.
13569         * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13570         * config/m88k/m88k.mh (XDEPFILES): Delete.
13571         * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13572         * config/mips/linux.mh (XDEPFILES): Delete.
13573         * config/mips/irix6.mh (XDEPFILES): Delete.
13574         * config/mips/irix5.mh (XDEPFILES): Delete.
13575         * config/mips/irix4.mh (XDEPFILES): Delete.
13576         * config/mips/irix3.mh (XDEPFILES): Delete.
13577         * config/mips/decstation.mh (XDEPFILES): Delete.
13578         * config/mips/mipsm3.mh (XDEPFILES): Delete.
13579         (NATDEPFILES): Move core-aout.o to here.
13580         * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13581         * config/pa/hpux1020.mh (XDEPFILES): Delete.
13582         * config/pa/hppabsd.mh (XDEPFILES): Delete.
13583         * config/pa/hppahpux.mh (XDEPFILES): Delete.
13584         * config/pa/hpux11w.mh (XDEPFILES): Delete.
13585         * config/pa/hppaosf.mh (XDEPFILES): Delete.
13586         * config/pa/hpux11.mh (XDEPFILES): Delete.
13587         * config/powerpc/aix.mh (XDEPFILES): Delete.
13588         * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13589         * config/powerpc/linux.mh (XDEPFILES): Delete.
13590         * config/romp/rtbsd.mh: Rename XDEPFILES.
13591         * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13592         * config/rs6000/aix4.mh (XDEPFILES): Delete.
13593         * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13594         * config/s390/s390.mh (XDEPFILES): Delete.
13595         * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13596         * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13597         * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13598         * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13599         * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13600         * config/sparc/nbsd.mh (XDEPFILES): Delete.
13601         * config/sparc/linux.mh (XDEPFILES): Delete.
13602         * config/vax/vaxult.mh (XDEPFILES): Delete.
13603         * config/vax/vaxult2.mh (XDEPFILES): Delete.
13604         * Makefile.in (DEPFILES): Remove XDEPFILES.
13605
13606 2002-01-17  Andrew Cagney  <[email protected]>
13607
13608         * utils.c (internal_verror): Fix comments, default is yes not no.
13609         Update queries to match.  Default to quit and dump core.
13610
13611 2002-01-17  Andrew Cagney  <[email protected]>
13612
13613         * breakpoint.c: Update assuming #if UI_OUT is always true.  Update
13614         copyright.
13615         * defs.h, event-top.c, gdbcmd.h: Ditto.
13616         * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13617         * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13618         * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13619         * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13620         * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13621         * mi/mi-main.c:Ditto.
13622
13623         * stack.c, symfile.c: Update copyright.
13624
13625 2002-01-17  Daniel Jacobowitz  <[email protected]>
13626
13627         * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13628         gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13629         gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13630         gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13631
13632 2002-01-17  Daniel Jacobowitz  <[email protected]>
13633
13634         * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13635         * gdbserver/low-lynx.c (myattach): Likewise.
13636         * gdbserver/low-nbsd.c (myattach): Likewise.
13637         * gdbserver/low-sim.c (myattach): Likewise.
13638         * gdbserver/low-sparc.c (myattach): Likewise.
13639         * gdbserver/low-sun3.c (myattach): Likewise.
13640
13641         * gdbserver/low-linux.c (myattach): New function.
13642
13643         * gdbserver/server.c (attach_inferior): New function.
13644         (main): Handle "--attach".
13645
13646 2002-01-16  Andrew Cagney  <[email protected]>
13647
13648         * MAINTAINERS (language support): Daniel Jacobwitz is C++
13649         maintainer.
13650
13651 2002-01-15  Daniel Jacobowitz  <[email protected]>
13652
13653         * c-typeprint.c (is_type_conversion_operator): Add additional
13654         check for non-conversion operators.
13655
13656 2002-01-15  Michael Snyder  <[email protected]>
13657
13658         * linux-proc.c: Add "info proc" command, a la procfs.c.
13659         (read_mapping): New function, abstract and re-use code.
13660         (linux_find_memory_regions): Use new func read_mapping.
13661         (linux_info_proc_cmd): New function, implement "info proc".
13662         (_initialize_linux_proc): Add new command "info proc".
13663
13664 2002-01-15  Michael Snyder  <[email protected]>
13665
13666         * symfile.c (generic_load): Use bfd_map_over_sections method
13667         instead of manipulating bfd structure members directly.
13668         (add_section_size_callback): New function, bfd sections callback
13669         used by generic_load.
13670         (load_sections_callback): New function, bfd sections callback
13671         used by generic_load.
13672
13673 2002-01-15  Elena Zannoni  <[email protected]>
13674
13675         [Based on work by Jim Blandy]
13676         * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13677         (builtin_type_vec128): Export.
13678         * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13679         types.
13680         (builtin_type_vec128): New builtin type for 128 bit vector
13681         registers.
13682         (build_gdbtypes): Initialize builtin_type_v16qi and
13683         builtin_type_v8hi. Create the vec128 register builtin type
13684         structure.
13685         (build_builtin_type_vec128): New function.
13686         (_initialize_gdbtypes): Register builtin_type_v16qi and
13687         builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13688         * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13689         AltiVec register to new builtin type.
13690
13691 2001-01-15  Daniel Jacobowitz  <[email protected]>
13692
13693         * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13694         to make_cv_type.
13695
13696 2002-01-14  Andrew Cagney  <[email protected]>
13697
13698         * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13699         CLEAN_UP_REGISTER_VALUE.
13700         * regcache.c (supply_register): Update only call.
13701
13702 2002-01-14  Andrew Cagney  <[email protected]>
13703
13704         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13705         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13706         a29k-*-vxworks* targets as obsolete.
13707
13708 2002-01-14  Michael Snyder  <[email protected]>
13709
13710         * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13711         until we can resolve portability issues.
13712         * gregset.h: Remove references to fpxregs.
13713         * gcore.c (gcore_command): Initialize note_sec to NULL.
13714
13715 2002-01-13  Andrew Cagney  <[email protected]>
13716
13717         * signals.c (target_signal_to_name): Rewrite.  Only use
13718         signals[].name when in bounds and non-NULL.
13719
13720 2002-01-13  Andrew Cagney  <[email protected]>
13721
13722         From Petr Ledvina <[email protected]>:
13723         * signals.c (target_signal_to_name): Verify that SIG is within the
13724         bounds of the signals array.
13725
13726 2002-01-13  Andrew Cagney  <[email protected]>
13727
13728         * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13729
13730 2002-01-13  Keith Seitz  <[email protected]>
13731
13732         * stack.c (print_frame_info_base): Print the frame's pc
13733         only if when print_frame_info_listing_hook is not defined.
13734
13735 2002-01-13  Keith Seitz  <[email protected]>
13736
13737         * varobj.c (varobj_set_value): Make sure that there were no
13738         errors evaluating the object before attempting to set its
13739         value.
13740         value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13741         so this offset adjustment is no longer necessary.
13742         (create_child): Don't set the error flag if the child is
13743         a CPLUS_FAKE_CHILD.
13744         (value_of_child): If value_fetch_lazy fails, return NULL
13745         so that callers will be notified that an error occurred.
13746         (c_value_of_variable): Delay check of variable's validity
13747         until later. We actually want all structs and unions to have
13748         the value "{...}".
13749         Do not return "???" for variables which could not be evaluated.
13750         This error condition must be returned to the caller so that it
13751         can get the error condition from gdb.
13752         (cplus_name_of_child): Adjust index for vptr before figuring
13753         out the name of the child.
13754         (cplus_value_of_child): If a child's (real) parent is not valid,
13755         don't even bother trying to give a value for it. Just return
13756         an error. Change all instances in this function.
13757         (cplus_type_of_child): If our parent is one of the "fake"
13758         parents, we need to get at the type of the real parent, and
13759         derive the child's true type using this information.
13760
13761 2002-01-13  Andrew Cagney  <[email protected]>
13762
13763         From 2002-01-09 John Marshall <[email protected]>:
13764         * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13765         sources.redhat.com, and tweak some related URLs which had
13766         suffered from linkrot.
13767
13768 2002-01-13  Andrew Cagney  <[email protected]>
13769
13770         From Jeff law:
13771         * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13772         structures passed in registers.
13773
13774 2002-01-13  Eli Zaretskii  <[email protected]>
13775
13776         * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13777         white space which prevented compilation.  Reported by DSK
13778         <[email protected]>.
13779
13780 2002-01-11  Michael Snyder  <[email protected]>
13781
13782         * symfile.c (build_section_addr_info_from_section_tab):
13783         Use bfd access method instead of manipulating bfd directly.
13784         (syms_from_objfile): Ditto.
13785         (simple_overlay_update_1): Ditto.
13786         (simple_overlay_update): Ditto.
13787         (generic_load): Ditto.
13788         (overlay_unmapped_address): FIXME comment, bfd access methods.
13789         (sections_overlap): FIXME comment, bfd access methods.
13790         (pc_in_mapped_range): FIXME comment, bfd access methods.
13791         (pc_in_unmapped_range): FIXME comment, bfd access methods.
13792         (section_is_mapped): FIXME comment, bfd access methods.
13793         (section_is_overlay): FIXME comment, bfd access methods.
13794
13795         * symfile.c (generic_load): Whitespace and long line cleanups.
13796         Remove duplicate variable, change several local variables to
13797         more appropriate data types.
13798         (print_transfer_performance): Use %lu instead of %ld for ulongs.
13799
13800 2002-01-12  Andrew Cagney  <[email protected]>
13801
13802         From Peter Schauer:
13803         * language.c (longest_local_hex_string_custom): Use phex_nz to
13804         convert NUM to a hex string.
13805
13806 2002-01-12  Elena Zannoni  <[email protected]>
13807
13808         * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13809         the function.
13810         Update Copyright year.
13811
13812 2002-01-12  Andrew Cagney  <[email protected]>
13813
13814         * language.c (longest_raw_hex_string): Delete unused function.
13815
13816 2002-01-11  Petr Sorfa  <[email protected]>
13817
13818         * MAINTAINERS (write-after-approval): Add myself.
13819         * dwarf2read.c (read_tag_string_type): Handling of
13820         DW_AT_byte_size.
13821         (read_tag_string_type): FORTRAN fix to prevent propagation of
13822         first string size.
13823         (set_cu_language): Handling of DW_LANG_Fortran95
13824
13825 2002-01-11  Richard Earnshaw  <[email protected]>
13826
13827         * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13828         GETPID(inferior_ptid).
13829         (store_inferior_registers): Likewise.
13830
13831 2002-01-10  Jason Merrill  <[email protected]>
13832
13833         * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13834         Fix DW_OP_minus.
13835
13836 2002-01-10  Andrew Cagney  <[email protected]>
13837
13838         * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13839         and bfd/elf32-sh-nbsd.c.
13840
13841 2002-01-10  Michael Snyder  <[email protected]>
13842
13843         * NEWS: Mention --pid and corefile/proc-id behavior change.
13844
13845         * Makefile.in: Add rules for gcore.o and linux-proc.o.
13846         * gcore.c: Include cli/cli-decode.h instead of command.h.
13847
13848         * main.c (captured_main): Add new command line option "--pid".
13849         If the second command line argument (following the symbol-file)
13850         begins with a digit, try to attach to it before trying to open
13851         it as a corefile.
13852         (print_gdb_help): Document the "--pid" argument.
13853
13854 2002-01-10  Eli Zaretskii  <[email protected]>
13855
13856         * completer.c (command_completer): New function.
13857
13858         * completer.h <command_completer>: Add prototype.
13859
13860         * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13861         completer for the "help" command.
13862
13863 2002-01-09  Jason Merrill  <[email protected]>
13864
13865         * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13866
13867 2002-01-09  Michael Snyder  <[email protected]>
13868
13869         * i386-linux-nat.c (fill_fpxregset): Make global.
13870         (store_fpxregset): Ditto.
13871
13872         * gregset.h (gdb_fpxregset_t): Define.
13873         (supply_fpxregset): Prototype.
13874         (fill_fpxregset): Prototype.
13875
13876         * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13877
13878 2002-01-09  Richard Earnshaw  <[email protected]>
13879
13880         * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13881         * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13882         * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13883
13884 2002-01-09  Andrew Cagney  <[email protected]>
13885
13886         * MAINTAINERS: Update target maintainer rules so that any
13887         Maintainer can approve a tested patch for a maintenance-only
13888         target.
13889
13890 2002-01-09  Richard Earnshaw  <[email protected]>
13891
13892         * MAINTAINERS (write-after-approval): Add myself.
13893
13894         * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13895         IN_SIGTRAMP.
13896
13897 2002-01-08  Michael Snyder  <[email protected]>
13898
13899         * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13900         real name of the executable, rather than the /proc name.
13901
13902 2002-01-03  Michael Snyder  <[email protected]>
13903
13904         Implement a "generate-core-file" command in gdb, save target state.
13905         * gcore.c: New file.  Implement new command 'generate-core-file'.
13906         Save a corefile image of the current state of the inferior.
13907         * linux-proc.c: Add linux-specific code for saving corefiles.
13908         * target.h (struct target_ops): Add new target vectors for saving
13909         corefiles; to_find_memory_regions and to_make_corefile_notes.
13910         (target_find_memory_regions): New macro.
13911         (target_make_corefile_notes): New macro.
13912         * target.c (update_current_target): Inherit new target methods.
13913         (dummy_find_memory_regions): New place-holder method.
13914         (dummy_make_corefile_notes): New place-holder method.
13915         (init_dummy_target): Initialize new dummy target vectors.
13916         * exec.c (exec_set_find_memory_regions): New function.
13917         Allow the exec_ops vector for memory regions to be taken over.
13918         (exec_make_note_section): New function, target vector method.
13919         * defs.h (exec_set_find_memory_regions): Export prototype.
13920         * procfs.c (proc_find_memory_regions): New function, corefile method.
13921         (procfs_make_note_section): New function, corefile method.
13922         (init_procfs_ops): Set new target vector pointers.
13923         (find_memory_regions_callback): New function.
13924         (procfs_do_thread_registers): New function.
13925         (procfs_corefile_thread_callback): New function.
13926         * sol-thread.c (sol_find_memory_regions): New function.
13927         (sol_make_note_section): New function.
13928         (init_sol_thread_ops): Initialize new target vectors.
13929         * inftarg.c (inftarg_set_find_memory_regions): New function.
13930         Allow to_find_memory_regions vector to be taken over.
13931         (inftarg_set_make_corefile_notes): New function.
13932         Allow to_make_corefile_notes vector to be taken over.
13933         * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13934         interface layer if not target_has_execution (may be a corefile).
13935         * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13936         * config/sparc/sun4sol2.mh: Ditto.
13937         * config/alpha/alpha-linux.mh: Ditto.
13938         * config/arm/linux.mh: Ditto.
13939         * config/i386/x86-64linux.mh: Ditto.
13940         * config/ia64/linux.mh: Ditto.
13941         * config/m68k/linux.mh: Ditto.
13942         * config/mips/linux.mh: Ditto.
13943         * config/powerpc/linux.mh: Ditto.
13944         * config/sparc/linux.mh: Ditto.
13945
13946 2002-01-07  Michael Snyder  <[email protected]>
13947
13948         * arm-linux-nat.c: Remove references to regcache.c internal data
13949         (registers[] and register_valid[]).
13950
13951 2002-01-07  Michael Snyder  <[email protected]>
13952
13953         * linux-proc.c: New file.  Implement child_pid_to_exec_file,
13954         so that attaching to a pid will automatically read the process's
13955         symbol file and shlibs.
13956         * Makefile.in: Add rule for linux-proc.o.
13957         * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13958         * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13959         * config/arm/linux.mh: Ditto.
13960         * config/i386/linux.mh: Ditto.
13961         * config/i386/x86-64linux.mh: Ditto.
13962         * config/ia64/linux.mh: Ditto.
13963         * config/m68k/linux.mh: Ditto.
13964         * config/mips/linux.mh: Ditto.
13965         * config/powerpc/linux.mh: Ditto.
13966         * config/sparc/linux.mh: Ditto.
13967
13968 2002-01-06  Pierre Muller  <[email protected]>
13969
13970         * win32-nat.c: Add i386-tdep.h dependency.
13971
13972 2002-01-07  Michael Snyder  <[email protected]>
13973
13974         * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13975         instead of bfd_get_arch_size.  Don't bail out just because
13976         there's no exec_bfd.
13977
13978         * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13979         * p-valprint.c (pascal_object_print_value): Ditto.
13980         * somread.c (som_symtab_read): Ditto.
13981         * symfile.c (simple_free_overlay_region_table): Ditto.
13982         * valops.c (value_assign): Ditto.
13983
13984         * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13985         use tilde_expand and strerror for opening save-tracepoints file.
13986
13987         * thread-db.c (thread_db_new_objfile): Indendation fix.
13988
13989         * infptrace.c (GDB_MAX_ALLOCA): New define.
13990         (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13991         size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13992         can be overridden with whatever value is appropriate to the host).
13993         * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13994         alloca to allocate potentially large buffer.
13995         * rs6000-nat.c (child_xfer_memory): Ditto.
13996         * symm-nat.c (child_xfer_memory): Ditto.
13997         * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13998
13999 2002-01-07  Jackie Smith Cashion  <[email protected]>
14000
14001         From Nick Clifton  <[email protected]>
14002         * d10v-tdep.c: Set STACK_START to 0x200bffe.
14003
14004 2002-01-07  Michael Snyder  <[email protected]>
14005
14006         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14007         Don't use exec_bfd if it's NULL.
14008
14009 2002-01-06  Mark Kettenis  <[email protected]>
14010
14011         * valops.c (value_arg_coerce): Fix formatting.
14012
14013 2002-01-06  Andrew Cagney  <[email protected]>
14014
14015         * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14016         * gnu-nat.c: Ditto.
14017
14018 2002-01-06  Andrew Cagney  <[email protected]>
14019
14020         * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14021         arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14022         i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14023         ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14024         z8k-coff have not been multi-arched.  Update z8k-coff build
14025         status.
14026
14027 2002-01-06  Andrew Cagney  <[email protected]>
14028
14029         * MAINTAINERS: Mark a29k target as obsolete.
14030         * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14031         (remote-mm.o, remote-udi.o): Obsolete.  Remove references in
14032         comments.
14033         * NEWS: Note that a29k targets are obsolete.
14034         * a29k-tdep.c: Mark as obsolete.
14035         * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14036         a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14037         a29k-*-vxworks* targets as obsolete.
14038         * remote-adapt.c: Obsolete.
14039         * remote-eb.c: Obsolete.
14040         * remote-mm.c: Obsolete.
14041         * remote-udi.c: Obsolete.
14042         * config/a29k/a29k-udi.mt: Obsolete.
14043         * config/a29k/a29k.mt: Obsolete.
14044         * config/a29k/tm-a29k.h: Obsolete.
14045         * config/a29k/tm-vx29k.h: Obsolete.
14046         * config/a29k/vx29k.mt: Obsolete.
14047
14048 2002-01-05  Andrew Cagney  <[email protected]>
14049
14050         * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14051         with BFD_ENDIAN_BIG.
14052
14053 2002-01-05  Andrew Cagney  <[email protected]>
14054
14055         * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14056         * configure, config.in: Re-generate.
14057         * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14058         * defs.h: Do not include <endian.h>.
14059
14060 2002-01-05  Jason Thorpe  <[email protected]>
14061
14062         * acconfig.h (HAVE_PT_GETXMMREGS): New.
14063         * config.in: Regenerate.
14064         * configure.in: Update copyright years.
14065         Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14066         * configure: Regenerate.
14067         * i386bsd-nat.c: Update copyright years.
14068         (fill_gregset): Use regcache_collect.
14069         (fetch_inferior_registers): Only fetch integer registers
14070         if requested to do so.  Add support for XMM registers
14071         using PT_GETXMMREGS.
14072         (store_inferior_registers): Only store integer registers
14073         if requested to do so.  Add support for XMM registers
14074         using PT_SETXMMREGS.
14075         * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14076         (store_inferior_registers): Remove.
14077         (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14078         (fetch_elfcore_registers): New function.
14079         (i386nbsd_elfcore_fns): New.
14080         (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14081         * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14082         i386bsd-nat.o.
14083         * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14084         * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14085         * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14086         * config/i386/tm-nbsd.h: Update copyright years.
14087         (HAVE_SSE_REGS): Define.
14088         (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14089         (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14090         (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14091         (SIGCONTEXT_PC_OFFSET): Remove.
14092         (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14093
14094 2002-01-05  Andrew Cagney  <[email protected]>
14095
14096         * configure.tgt: Remove powerpc-*-macos* target.
14097         * config/m68k/xm-mpw.h: Delete file.
14098         * config/xm-mpw.h: Delete file.
14099         * ser-mac.c: Delete file.
14100         * mpw-make.sed: Delete file.
14101         * mpw-config.in: Delete file.
14102         * mac-xdep.c: Delete file.
14103         * mac-gdb.r: Delete file.
14104         * mac-defs.h: Delete file.
14105         * mac-nat.c: Delete file.
14106         * config/powerpc/macos.mh: Delete file.
14107         * config/powerpc/macos.mt: Delete file.
14108         * config/powerpc/nm-macos.h: Delete file.
14109         * config/powerpc/tm-macos.h: Delete file.
14110         * source.c (openp, open_source_file): Remove obsolete code.
14111         * top.c (gdb_readline): Ditto.
14112         * utils.c (query): Ditto.
14113         * event-top.c (display_gdb_prompt): Ditto.
14114         * Makefile.in (ser-mac.o): Delete obsolete target.
14115         * NEWS: Update.
14116
14117 2002-01-04  Andrew Cagney  <[email protected]>
14118
14119         * defs.h (BIG_ENDIAN): Delete macro definition.
14120         * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14121         coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14122         findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14123         printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14124         remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14125         stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14126         config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14127         config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14128         config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14129         config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14130         config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14131         config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14132         mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14133         * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14134         * gdbarch.c: Re-generate.
14135
14136 2002-01-04  Daniel Jacobowitz  <[email protected]>
14137
14138         * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14139         for core files.
14140
14141 2002-01-04  Jason Thorpe  <[email protected]>
14142
14143         * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14144
14145 2002-01-04  Andrew Cagney  <[email protected]>
14146
14147         * value.h (value_ptr): Delete typedef.
14148
14149 2002-01-04  Jason Thorpe  <[email protected]>
14150
14151         * i386nbsd-nat.c: Update copyright years.
14152         Include i386-tdep.h.
14153
14154 2002-01-04  Elena Zannoni  <[email protected]>
14155
14156         * stabsread.c: Update copyright years.
14157
14158         From Debashis Mahata <[email protected]>:
14159         (read_struct_fields): Deal with Sun C compiler erroneous stab
14160         output for structs and unions.
14161         Fix PR gdb/269.
14162
14163 2002-01-04  Daniel Jacobowitz  <[email protected]>
14164
14165         * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14166         prototype.
14167
14168 2002-01-04  Daniel Jacobowitz  <[email protected]>
14169
14170         * cp-abi.c: Fix whitespace.
14171         (baseclass_offset): New wrapper function.
14172         * cp-abi.h (baseclass_offset): Add prototype.
14173         (struct cp_abi_ops): Add baseclass_offset pointer.
14174
14175         * valops.c (vb_match): Move to...
14176         * gnu-v2-abi.c (vb_match): here.
14177         * valops.c (baseclass_offset): Move to...
14178         * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14179
14180         * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14181
14182         * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14183         * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14184         * hpacc-abi.c (init_hpacc_ops): Likewise.
14185
14186 2002-01-04  Daniel Jacobowitz  <[email protected]>
14187
14188         * valops.c (find_overload_match): Accept obj as a
14189         reference parameter.  Update it before returning.
14190         * value.h (find_overload_match): Update prototype.
14191         * eval.c (evaluate_subexp_standard): Pass object to
14192         find_overload_match by reference.
14193
14194 2002-01-03  Andrew Cagney  <[email protected]>
14195
14196         * valarith.c: Replace value_ptr with struct value pointer.  Remove
14197         register attribute from value declarations.
14198         * valops.c: Ditto.
14199         * value.h: Ditto.
14200         * scm-lang.c (scm_lookup_name): Ditto.
14201
14202 2002-01-03  Michael Snyder  <[email protected]>
14203
14204         Abstract the functionality of iterating over mapped memory
14205         regions into a general purpose iterator function.
14206         * procfs.c (iterate_over_mappings): New function, general purpose
14207         iterator for memory sections.
14208         (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14209         (solib_mappings_callback): New function, callback for above.
14210         (info_proc_mappings): Reimpliment using iterate_over_mappings.
14211         (info_mappings_callback): New function, callback for above.
14212
14213         * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14214
14215 2002-01-01  Mark Kettenis  <[email protected]>
14216
14217         * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14218         * i386-tdep.c: Include "elf-bfd.h".
14219         (process_note_abi_tag_sections): New function.
14220         (i386_gdbarch_init): Add code to recognize various OS/ABI
14221         combinations.
14222
14223         * maint.c (_initialize_maint_cmds): Add missing \ in
14224         string-literal.
14225
14226 For older changes see ChangeLog-2001
14227 \f
14228 Local Variables:
14229 mode: change-log
14230 left-margin: 8
14231 fill-column: 74
14232 version-control: never
14233 End:
This page took 0.86584 seconds and 4 git commands to generate.