2002-12-10 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-10 Andrew Cagney <ac131313@redhat.com>
2
3 * MAINTAINERS (gdb.c++): Add David Carlton.
4
5 2002-12-09 David Carlton <carlton@math.stanford.edu>
6
7 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
8 * cli/cli-cmds.c: Ditto.
9
10 2002-12-09 Andrew Cagney <cagney@redhat.com>
11
12 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
13 function address in <>.
14 * gdbarch.c: Re-generate.
15
16 2002-12-09 David Carlton <carlton@math.stanford.edu>
17
18 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
19
20 2002-12-09 David Carlton <carlton@math.stanford.edu>
21
22 * linespec.c (symtab_from_filename): New function.
23 (decode_line_1): Move code into symtab_from_filename.
24
25 2002-12-09 Kevin Buettner <kevinb@redhat.com>
26
27 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
28
29 2002-12-07 Andrew Cagney <ac131313@redhat.com>
30
31 * f-valprint.c (info_common_command): Use get_frame_pc.
32 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
33 * ax-gdb.c (agent_command): Ditto.
34 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
35 (rs6000_pop_frame): Ditto.
36 (rs6000_frameless_function_invocation): Ditto.
37 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
38 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
39 * macroscope.c (default_macro_scope): Ditto.
40 * stack.c (print_frame_info_base): Ditto.
41 (print_frame, frame_info, print_frame_label_vars): Ditto.
42 (return_command, func_command, get_frame_language): Ditto.
43 * infcmd.c (finish_command): Ditto.
44 * dummy-frame.c (cached_find_dummy_frame): Ditto.
45 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
46 (break_at_finish_at_depth_command_1): Ditto.
47 (break_at_finish_command_1): Ditto.
48 (until_break_command, get_catch_sals): Ditto.
49 * blockframe.c (func_frame_chain_valid): Ditto.
50 (frameless_look_for_prologue): Ditto.
51 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
52
53 2002-12-08 Andrew Cagney <ac131313@redhat.com>
54
55 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
56 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
57
58 2002-12-08 Andrew Cagney <ac131313@redhat.com>
59
60 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
61 to pure functions.
62 * gdbarch.h, gdbarch.c: Re-generate.
63 * frame.c (get_prev_frame): Explictly assign prev's pc with value
64 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
65
66 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
67 declaration to a function returning a CORE_ADDR.
68 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
69 * arch-utils.c (init_frame_pc_noop): Return the PC value.
70 (init_frame_pc_default): Ditto.
71 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
72 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
73 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
74 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
75 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
76 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
77
78 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
79 to init_frame_pc_noop.
80 (i386_interix_init_frame_pc): Delete function.
81 * z8k-tdep.c (init_frame_pc): Delete function.
82 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
83 (INIT_FRAME_PC_FIRST): Ditto.
84 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
85 (INIT_FRAME_PC_FIRST): Ditto.
86 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
87 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
88 init_frame_pc_noop.
89 (INIT_FRAME_PC_FIRST): Convert to an expression.
90 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
91
92 2002-12-08 Andrew Cagney <ac131313@redhat.com>
93
94 * blockframe.c: Use get_frame_base instead of directly accessing
95 the `struct frame_info' member frame.
96 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
97 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
98
99 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
100
101 * Makefile.in (readline_h): Define.
102 (completer.o): Depend on readline_h.
103 (corelow.o): Ditto.
104 (event-top.o): Ditto.
105 (exec.o): Ditto.
106 (solib.o): Ditto.
107 (source.o): Ditto.
108 (symfile.o): Ditto.
109 (symmisc.o): Ditto.
110 (top.o): Ditto.
111 (tracepoint.o): Ditto.
112 (utils.o): Ditto.
113 (cli-dump.o): Ditto.
114 (tui-hooks.o): Ditto.
115 (tuiWin.o): Ditto.
116
117 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
118
119 More cleanup from import of readline 4.3.
120 * completer.h (complete_line, readline_line_completion_function):
121 Update prototypes.
122 (line_completion_function): Removed, not used outside of completer.c.
123 * completer.c (readline_line_completion_function,
124 complete_function, line_completion_function): Use const for first
125 parameter.
126 (line_completion_function): Make static.
127 (filename_completer): filename_completion_function is now called
128 rl_filename_completion_function
129 * corelow.c: Include <readline/readline.h>.
130 * exec.c: Ditto.
131 * solib.c: Ditto.
132 * source.c: Ditto.
133 * symfile.c: Ditto.
134 * symmisc.c: Ditto.
135 * top.c (init_main): No need to coerce
136 readline_line_completion_function anymore.
137 * cli/cli-dump.c: Include <readline/readline.h>.
138
139 2002-12-08 Andrew Cagney <ac131313@redhat.com>
140
141 * stack.c (frame_info): Use get_prev_frame.
142 * blockframe.c (frame_address_in_block): Ditto.
143 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
144 (rs6000_frameless_function_invocation): Ditto.
145 (rs6000_frame_saved_pc): Ditto.
146 (rs6000_frame_chain): Ditto.
147 * arch-utils.c (init_frame_pc_default): Ditto.
148
149 2002-12-08 Andrew Cagney <ac131313@redhat.com>
150
151 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
152 Delete redundant definition.
153
154 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
155
156 Import of readline 4.3:
157 * cli/cli-cmds.c: Include readline/tilde.h.
158 * cli/cli-setshow.c: Ditto.
159 * defs.h: Don't declare tilde_expand anymore, since readline
160 exports it.
161
162 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
163
164 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
165 -Werror on this file.
166
167 2002-12-07 Andrew Cagney <ac131313@redhat.com>
168
169 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
170 the format name.
171 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
172 * gdbarch.c: Regenerate.
173
174 2002-12-06 Andrew Cagney <ac131313@redhat.com>
175
176 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
177 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
178 provide a default value.
179 * gdbarch.h, gdbarch.c: Regenerate.
180 * frame.c (get_prev_frame): Update. Check
181 DEPRECATED_INIT_FRAME_PC_FIRST_P.
182 * s390-tdep.c (s390_gdbarch_init): Update.
183 * mips-tdep.c (mips_gdbarch_init): Update.
184 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
185 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
186 * alpha-tdep.c (alpha_gdbarch_init): Update.
187
188 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
189
190 * ia64-linux-nat.c: Include gdb_string.h.
191 * alpha-nat.c: Ditto.
192 * ppc-linux-nat.c: Ditto.
193 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
194 Update dependencies.
195
196 2002-12-05 Andrew Cagney <ac131313@redhat.com>
197
198 * gdbthread.h: Include "frame.h".
199 (struct thread_info): Replace step_frame_address with
200 step_frame_id.
201 * inferior.h: Include "frame.h".
202 (step_frame_id): Replace external variable step_frame_address.
203 * gdbthread.h (save_infrun_state): Replace step_frame_address
204 parameter with step_frame_id parameter.
205 (load_infrun_state): Ditto.
206 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
207 * infcmd.c (step_frame_id, step_1, step_once): Update.
208 * thread.c (load_infrun_state, save_infrun_state): Update.
209 * infrun.c (clear_proceed_status, save_inferior_status): Update.
210 (handle_inferior_event, step_over_function): Update.
211 (normal_stop, context_switch, restore_inferior_status): Update.
212 (struct inferior_status): Replace step_frame_address with
213 step_frame_id.
214
215 2002-12-05 David Carlton <carlton@math.stanford.edu>
216
217 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
218 DW_TAG_member as well as a declaration as being a C++ static data
219 member.
220 (read_structure_scope): Combine tests for DW_TAG_member and
221 DW_TAG_variable.
222
223 2002-12-05 David Carlton <carlton@math.stanford.edu>
224
225 * linespec.c (decode_compound): New function.
226 (decode_line_1): Move code into decode_compound.
227
228 2002-12-05 David Carlton <carlton@math.stanford.edu>
229
230 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
231 argument.
232 (lookup_symbol_aux): Do the 'field_of_this' check before checking
233 the static block. See PR gdb/804.
234
235 2002-12-05 David Carlton <carlton@math.stanford.edu>
236
237 * symtab.c (lookup_symbol_aux_block): New function.
238 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
239
240 2002-12-05 Andrew Cagney <ac131313@redhat.com>
241
242 * gdbarch.sh: Dump the predicate function and macro values.
243 (read): Print error on standard error.
244 * gdbarch.c: Regenerate.
245
246 2002-12-04 Kevin Buettner <kevinb@redhat.com>
247
248 * Makefile.in (mips_tdep_h): Define.
249 (mips-tdep.o): Add mips_tdep_h to dependency list.
250 * mips-tdep.h: New file.
251 * mips-tdep.c (mips-tdep.h): Include.
252 (enum mips_abi): Move to mips-tdep.h.
253 (mips_abi): New function.
254
255 2002-12-04 David Carlton <carlton@math.stanford.edu>
256
257 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
258
259 2002-12-04 David Carlton <carlton@math.stanford.edu>
260
261 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
262 function.
263 (lookup_symbol_aux_minsyms): New function.
264
265 2002-12-04 J. Brobecker <brobecker@gnat.com>
266
267 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
268
269 2002-12-04 J. Brobecker <brobecker@gnat.com>
270
271 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
272 which is an obsolete macro name.
273
274 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
275
276 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
277 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
278
279 2002-12-03 H.J. Lu (hjl@gnu.org)
280
281 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
282 (create_breakpoints): Make sure the addr_string field is not
283 NULL.
284
285 2002-12-03 Andrew Cagney <ac131313@redhat.com>
286
287 * sparc-nat.c (fetch_inferior_registers)
288 (store_inferior_registers): Add comment on problem of LWP vs
289 threads.
290
291 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
292 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
293 (lin_lwp_store_registers): Remove.
294 (init_lin_lwp_ops): Use fetch_inferior_registers
295 and store_inferior_registers directly.
296 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
297 (store_inferior_registers): Likewise.
298 Fix PR gdb/725.
299
300 2002-12-03 Andrew Cagney <ac131313@redhat.com>
301
302 * frame.h (get_frame_id): Convert to a function.
303 (null_frame_id, frame_id_p): Declare.
304 (frame_id_eq, frame_id_inner): Declare.
305 (frame_id_build): New function.
306 * frame.c (get_frame_id): Update. Use null_frame_id.
307 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
308 frame_id_inner.
309 (null_frame_id, frame_id_p): Define.
310 (frame_id_eq, frame_id_inner): Define.
311 (frame_id_build): New function.
312 * varobj.c (varobj_create): Update.
313 (varobj_update): Update.
314 * valops.c (value_assign): Update.
315 (new_root_variable): Update.
316 * infrun.c (save_inferior_status): Update.
317 * breakpoint.c (watch_command_1): Update.
318
319 2002-12-03 J. Brobecker <brobecker@gnat.com>
320
321 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
322 (SNAP2): Likewise.
323
324 2002-12-03 Andrew Cagney <cagney@redhat.com>
325
326 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
327 patch.
328
329 * PROBLEMS: Mention PR gdb/725.
330
331 2002-12-03 Andreas Schwab <schwab@suse.de>
332
333 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
334
335 2002-12-02 Adam Fedor <fedor@gnu.org>
336 Klee Dienes <kdienes@apple.com>
337
338 * objc-lang.c (objc_printstr): Add width arg to match
339 printstr prototype.
340 (compare_selectors): Add 'const' to arg types.
341 (compare_classes): Likewise.
342 (find_imps): Cast msym pointer to avoid compiler warning.
343 (print_object_command): Validate the address before
344 passing it to the print routine.
345 (find_objc_msgcall_submethod): Change function argument to
346 return an int.
347 * objc-lang.h: Add 'extern' to all function declarations.
348 (value_nsstring): Add declaration.
349
350 2002-12-02 J. Brobecker <brobecker@gnat.com>
351
352 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
353 Fixes a build failure on HP/UX.
354
355 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
356 failure on HP/UX.
357 (hpread_has_name): Advance declaration to avoid a compilation warning.
358 (pst_syms_count): Add missing variable type. By change, the compiler
359 was defaulting to int, which seems a good choice. Fixes a compilation
360 warning.
361 (pst_syms_size): Likewise.
362
363 2002-12-02 J. Brobecker <brobecker@gnat.com>
364
365 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
366 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
367 later to set the proper gdbarch methods depending on the osabi.
368 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
369
370 2002-12-02 J. Brobecker <brobecker@gnat.com>
371
372 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
373 * osabi.c (gdb_osabi_name): Add strings images for the two new
374 enum values.
375 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
376
377 2002-12-02 Andrew Cagney <ac131313@redhat.com>
378
379 * MAINTAINERS (Java): Global maintainers are responible for Java.
380 (Past Maintainers): Mention both Anthony Green and Per Bothner as
381 part Java maintainers.
382
383 2002-12-02 J. Brobecker <brobecker@gnat.com>
384
385 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
386 Fixes a compilation failure on AiX.
387
388 2002-12-02 J. Brobecker <brobecker@gnat.com>
389
390 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
391 why aix-thread.o is not listed.
392
393 2002-12-01 Andrew Cagney <ac131313@redhat.com>
394
395 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
396 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
397 * gdbarch.h, gdbarch.c: Re-generate.
398 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
399 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
400 * config/pa/tm-hppa.h, frame.h: Update.
401 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
402 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
403 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
404 * cris-tdep.c, alpha-tdep.c: Update.
405 * frame.c (set_unwind_by_pc, create_new_frame): Use either
406 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
407 (get_prev_frame): Ditto.
408
409 2002-11-30 Andrew Cagney <cagney@redhat.com>
410
411 * exec.c (xfer_memory): Replace boolean with int.
412 * p-exp.y: Use 0 instead of false.
413 * corelow.c (gdb_check_format): Change return type to int from
414 boolean.
415 * utils.c: Don't include <curses.h> or <term.h> first.
416
417 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
418
419 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
420 (m68hc11_register_byte): Remove.
421 (m68hc11_gdbarch_init): Don't set the above.
422
423 2002-11-29 Andrew Cagney <cagney@redhat.com>
424
425 * remote-mips.c (mips_initialize): Force a selected frame rebuild
426 by calling get_selected_frame.
427 * ocd.c (ocd_start_remote): Use get_selected frame instead of
428 set_current_frame, create_new_frame, select_frame and
429 get_current_frame.
430 * remote-e7000.c (e7000_start_remote): Ditto.
431 * remote-mips.c (common_open): Ditto
432 * remote-rdp.c (remote_rdp_open): Ditto.
433
434 2002-11-29 Andreas Schwab <schwab@suse.de>
435
436 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
437 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
438 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
439 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
440 read_memory_unsigned_integer instead of read_memory_integer when
441 dealing with addresses and instruction opcodes.
442 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
443 (m68k_linux_frame_saved_pc): Likewise.
444
445 2002-11-29 Andrew Cagney <ac131313@redhat.com>
446
447 * stack.c (selected_frame, select_frame): Move from here ...
448 * frame.c (selected_frame, select_frame): ... to here. Include
449 "language.h".
450 * Makefile.in (frame.o): Update dependencies.
451 * frame.c (get_selected_frame): New function.
452 * frame.h (get_selected_frame): Declare.
453 (deprecated_selected_frame): Rename selected_frame.
454 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
455 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
456 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
457 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
458 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
459 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
460 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
461 * z8k-tdep.c, cli/cli-cmds.c: Update.
462
463 2002-11-29 Andrew Cagney <ac131313@redhat.com>
464
465 * frame.h (get_selected_block): Add comments.
466
467 2002-11-28 Andrew Cagney <ac131313@redhat.com>
468
469 * frame.c (pc_notcurrent): New function.
470 (find_frame_sal): New function.
471 * frame.h (find_frame_sal): Declare.
472 (struct symtab_and_line): Add opaque declaration.
473 * stack.c (print_frame_info_base): Use find_frame_sal instead of
474 find_pc_line.
475 (frame_info): Ditto.
476 * ada-lang.c (find_printable_frame): Ditto.
477
478 2002-11-28 J. Brobecker <brobecker@gnat.com>
479
480 * configure.in: Check that the pthdebug library is recent enough
481 before enabling thread support on native AiX.
482 * configure: Regenerate.
483
484 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
485 from the list of object files as it is now appended by configure
486 if thread support is enabled.
487 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
488 if thread support is enabled.
489
490 2002-11-28 Andrew Cagney <cagney@redhat.com>
491
492 * stack.c (get_selected_block): In-line get_current_block.
493 * frame.h (get_current_block): Delete declaration.
494 * blockframe.c (get_current_block): Delete function.
495
496 2002-11-28 Andrew Cagney <ac131313@redhat.com>
497
498 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
499 USE_GENERIC_DUMMY_FRAMES.
500 * gdbarch.h, gdbarch.c: Regenerate.
501 * valops.c, frame.c: Update.
502 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
503 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
504 * config/pa/tm-hppa.h, blockframe.c: Update.
505 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
506 * m68k-tdep.c, alpha-tdep.c: Ditto.
507
508 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
509 * mips-tdep.c: Ditto.
510
511 2002-11-27 Andrew Cagney <ac131313@redhat.com>
512
513 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
514 (USE_GENERIC_DUMMY_FRAMES): Default to true.
515 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
516 * gdbarch.c, gdbarch.h: Re-generate.
517 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
518 (CALL_DUMMY_LOCATION): Delete macro definition.
519 (PC_IN_CALL_DUMMY): Delete macro definitions.
520
521 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
522 default is already generic_pc_in_call_dummy.
523 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
524 * v850-tdep.c (v850_gdbarch_init): Ditto.
525 * sh-tdep.c (sh_gdbarch_init): Ditto.
526 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
527 * mips-tdep.c (mips_gdbarch_init): Ditto.
528 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
529 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
530 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
531 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
532 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
533 * avr-tdep.c (avr_gdbarch_init): Ditto.
534
535 * arm-tdep.c (arm_gdbarch_init): Do not set
536 use_generic_dummy_frames, default is already 1.
537 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
538 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
539 * v850-tdep.c (v850_gdbarch_init): Ditto.
540 * sh-tdep.c (sh_gdbarch_init): Ditto.
541 * s390-tdep.c (s390_gdbarch_init): Ditto.
542 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
543 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
544 * mips-tdep.c (mips_gdbarch_init): Ditto.
545 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
546 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
547 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
548 * i386-tdep.c (i386_gdbarch_init): Ditto.
549 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
550 * frv-tdep.c (frv_gdbarch_init): Ditto.
551 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
552 * cris-tdep.c (cris_gdbarch_init): Ditto.
553 * avr-tdep.c (avr_gdbarch_init): Ditto.
554
555 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
556 call_dummy_location, default is already AT_ENTRY_POINT.
557 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
558 * v850-tdep.c (v850_gdbarch_init): Ditto.
559 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
560 * sh-tdep.c (sh_gdbarch_init): Ditto.
561 * s390-tdep.c (s390_gdbarch_init): Ditto.
562 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
563 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
564 * mips-tdep.c (mips_gdbarch_init): Ditto.
565 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
566 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
567 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
568 * i386-tdep.c (i386_gdbarch_init): Ditto.
569 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
570 * frv-tdep.c (frv_gdbarch_init): Ditto.
571 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
572 * cris-tdep.c (cris_gdbarch_init): Ditto.
573 * avr-tdep.c (avr_gdbarch_init): Ditto.
574 * arm-tdep.c (arm_gdbarch_init): Ditto.
575 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
576
577 2002-11-28 Andrew Cagney <cagney@redhat.com>
578
579 * frame.h: Update comments on set_current_frame, create_new_frame,
580 flush_cached_frames, reinit_frame_cache, select_frame and
581 selected_frame.
582
583 2002-11-27 Andrew Cagney <cagney@redhat.com>
584
585 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
586 deprecated pc_in_call_dummy function.
587 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
588 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
589 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
590 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
591 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
592
593 2002-11-26 Martin M. Hunt <hunt@redhat.com>
594
595 * Makefile.in: Remove Tix dependencies.
596 * acinclude.m4: Ditto.
597 * aclocal.m4: Ditto.
598 * configure.in: Ditto.
599 * configure: Regenerated.
600
601 2002-11-26 Andrew Cagney <ac131313@redhat.com>
602
603 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
604 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
605 * gdbarch.c: Re-generate.
606
607 2002-11-26 Andrew Cagney <ac131313@redhat.com>
608
609 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
610 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
611 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
612 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
613 pc_in_call_dummy_at_entry_point.
614 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
615 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
616 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
617 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
618 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
619 pc_in_call_dummy_on_stack.
620 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
621 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
622 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
623 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
624 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
625
626 2002-11-26 Andrew Cagney <ac131313@redhat.com>
627
628 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
629 pc_in_call_dummy_before_text_end
630 (deprecated_pc_in_call_dummy_after_text_end): Rename
631 pc_in_call_dummy_after_text_end.
632 (deprecated_pc_in_call_dummy_on_stack): Rename
633 pc_in_call_dummy_on_stack.
634 (deprecated_pc_in_call_dummy_at_entry_point): Rename
635 pc_in_call_dummy_at_entry_point.
636 * m68k-tdep.c (m68k_gdbarch_init): Update.
637 * s390-tdep.c (s390_gdbarch_init): Update.
638 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
639 * vax-tdep.c (vax_gdbarch_init): Update.
640 * sparc-tdep.c (sparc_gdbarch_init): Update.
641 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
642 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
643 * i386-tdep.c (i386_gdbarch_init): Update.
644 * frv-tdep.c (frv_gdbarch_init): Update.
645 * cris-tdep.c (cris_gdbarch_init): Update.
646 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
647 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
648 (deprecated_pc_in_call_dummy_after_text_end)
649 (deprecated_pc_in_call_dummy_on_stack)
650 (deprecated_pc_in_call_dummy_at_entry_point): Update.
651 * alpha-tdep.c (alpha_gdbarch_init): Update.
652
653 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
654
655 * acconfig.h (HAVE_PREAD64): Add.
656 * configure.in: Check for pread64.
657 * config.in: Regenerated.
658 * configure: Regenerated.
659 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
660 * linux-proc.c (linux_proc_xfer_memory): New function.
661 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
662
663 2002-11-25 David Carlton <carlton@math.stanford.edu>
664
665 * dwarf2read.c (scan_partial_symbols): Descend into namespace
666 pdi's with no name.
667
668 2002-11-25 Andrew Cagney <ac131313@redhat.com>
669
670 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
671 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
672
673 2002-11-25 Jim Blandy <jimb@redhat.com>
674
675 * symfile.c (init_objfile_sect_indices): New function.
676 (default_symfile_offsets): Move the section-index-initializing
677 stuff into init_objfile_sect_indices, and call that.
678
679 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
680 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
681
682 * symfile.c (syms_from_objfile): Adjust indentation.
683
684 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
685 || info_verbose isn't true.
686
687 2002-11-24 Andrew Cagney <ac131313@redhat.com>
688
689 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
690 default to get_frame_base.
691 * gdbarch.h, gdbarch.c: Regenerate.
692 * arch-utils.c (default_frame_address): Delete function.
693 * arch-utils.h (default_frame_address): Delete declaration
694
695 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
696
697 * varobj.c (find_frame_addr_in_frame_chain):
698 Use get_frame_base instead of FRAME_FP,
699 obvious fix.
700
701 2002-11-19 Andrew Cagney <ac131313@redhat.com>
702
703 * frame.h (FRAME_FP): Delete macro.
704 (get_frame_base): New function declaration.
705 * frame.c (get_frame_base): New function.
706 (get_frame_id): Use ->frame.
707 (frame_find_by_id): Rewrite to use get_frame_id.
708 * blockframe.c: Use get_frame_base instead of FRAME_FP.
709 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
710 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
711 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
712 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
713 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
714 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
715
716 2002-11-24 Andrew Cagney <ac131313@redhat.com>
717
718 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
719
720 2002-11-24 Andrew Cagney <ac131313@redhat.com>
721
722 * frame.c (set_unwind_by_pc): Revert change below, use
723 PC_IN_CALL_DUMMY.
724 (get_prev_frame): Ditto.
725
726 2002-11-24 Andrew Cagney <ac131313@redhat.com>
727
728 * dummy-frame.c (pc_in_dummy_frame): New function.
729 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
730 (find_dummy_frame): Update comment.
731 (generic_pop_current_frame): Use get_frame_type.
732 * dummy-frame.h (pc_in_dummy_frame): Declare.
733 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
734 (create_new_frame): Use pc_in_dummy_frame.
735 (get_prev_frame): Use pc_in_dummy_frame.
736 (frame_saved_regs_register_unwind): Use get_prev_frame.
737 (deprecated_generic_get_saved_register): Use get_prev_frame.
738
739 2002-11-23 Andrew Cagney <ac131313@redhat.com>
740
741 * blockframe.c (find_frame_addr_in_frame_chain): Move function
742 from here ...
743 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
744 (varobj_create): Note that frame ID should be used.
745 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
746
747 2002-11-23 Andrew Cagney <ac131313@redhat.com>
748
749 * breakpoint.c: Include "gdb_assert.h".
750 (deprecated_frame_in_dummy): Assert that generic dummy frames are
751 not being used.
752 * Makefile.in (breakpoint.o): Update dependencies.
753 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
754 deprecated_frame_in_dummy.
755 * stack.c (print_frame_info_base): Ditto.
756 (frame_info): Ditto.
757 (print_frame_info_base): Ditto. Delete dead code.
758
759 2002-11-23 Andreas Schwab <schwab@suse.de>
760
761 * Makefile.in (m68k_tdep_h): Define.
762 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
763 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
764 * m68k-tdep.c: Move register number enum ...
765 * m68k-tdep.h: ... to this new file and rename the constants from
766 E_* to M68K_*. All uses changed.
767 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
768 * abug-rom.c: Include "m68k-tdep.h". Use
769 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
770 * cpu32bug-rom.c: Likewise.
771 * dbug-rom.c: Likewise.
772 * m68k-tdep.c: Likewise.
773 * m68klinux-nat.c: Likewise.
774 * remote-est.c: Likewise.
775 * rom68k-rom.c: Likewise.
776 * config/m68k/tm-linux.h: Likewise.
777
778 2002-11-23 Andrew Cagney <ac131313@redhat.com>
779
780 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
781 dummy frame initialization code.
782 * mips-tdep.c (mips_gdbarch_init): Ditto.
783
784 2002-11-22 Christopher Faylor <cgf@redhat.com>
785
786 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
787 attach will hang.
788
789 2002-11-22 Andrew Cagney <ac131313@redhat.com>
790
791 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
792 to default_frame_address.
793 * gdbarch.h, gdbarch.c: Re-generate.
794
795 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
796 or frame_locals_address to default_frame_address.
797 * m68k-tdep.c (m68k_gdbarch_init): Update.
798 * i386-tdep.c (i386_gdbarch_init): Update.
799 * frv-tdep.c (frv_gdbarch_init): Update.
800 * sh-tdep.c (sh_gdbarch_init): Update.
801 * v850-tdep.c (v850_gdbarch_init): Update.
802 * sparc-tdep.c (sparc_gdbarch_init): Update.
803 * mips-tdep.c (mips_gdbarch_init): Update.
804 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
805 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
806 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
807
808 * cris-tdep.c (cris_frame_args_address): Delete function.
809 (cris_frame_locals_address): Delete function.
810 (cris_gdbarch_init): Do not set frame_args_address or
811 frame_locals_address.
812
813 2002-11-22 Michael Snyder <msnyder@redhat.com>
814
815 * thread-db.c (thread_db_load): Tell the user what's going on
816 if dlopen fails on libthread_db.
817
818 2002-11-23 Andreas Schwab <schwab@suse.de>
819
820 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
821 invariant return values.
822
823 2002-11-22 Andreas Schwab <schwab@suse.de>
824
825 * valops.c (value_slice): Move declaration of `offset' to avoid
826 warning.
827
828 2002-11-22 Christopher Faylor <cgf@redhat.com>
829
830 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
831 (struct so_stuff): Add end_addr field.
832 (register_loaded_dll): Calculate and store end address of loaded dll.
833 (solib_address): New function.
834 (child_solib_loaded_library_pathname): Pass carefully constructed
835 section info to safe_symbol_file_add rather than ignoring it.
836 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
837 DLL is loaded.
838 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
839 (child_create_inferior): Fix a compiler warning.
840 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
841 (solib_address): Declare new function.
842
843 2002-11-22 Andreas Schwab <schwab@suse.de>
844
845 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
846 and FPS registers.
847
848 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
849
850 * maint.c (_initialize_maint_cmds): Fix typo. From
851 Francesco Potorti` <pot@gnu.org>.
852
853 2002-11-21 Andrew Cagney <cagney@redhat.com>
854
855 * mips-tdep.c (mips_dump_tdep): Delete references to
856 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
857 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
858 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
859 * printcmd.c (build_address_symbolic): Delete calls to
860 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
861 (address_info): Ditto.
862 Fix PR gdb/773.
863
864 2002-11-19 Klee Dienes <kdienes@apple.com>
865 Adam Fedor <fedor@gnu.org>
866
867 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
868 the ability to explicitly specify the quote characters and word
869 break characters; if NULL is specified for either, use the old
870 behavior of using the characters used by the completer.
871 (skip_chars): New function. Convenience wrapper around
872 skip_quoted_chars to provide the original skip_chars behavior.
873 * completer.h (skip_quoted_chars): Add prototype.
874
875 2002-11-19 Andrew Cagney <ac131313@redhat.com>
876
877 Problems reported by Paul Eggert.
878 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
879
880 2002-11-19 Andreas Schwab <schwab@suse.de>
881
882 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
883 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
884 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
885 (m68k_linux_frame_saved_pc): Move to ...
886 * m68klinux-tdep.c: ... here. New file.
887 * Makefile.in (m68klinux-tdep.o): Add dependencies.
888 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
889
890 2002-11-19 Adam Fedor <fedor@gnu.org>
891
892 * objc-exp.y: Revert to old skip_quoted usage.
893
894 2002-11-19 Adam Fedor <fedor@gnu.org>
895
896 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
897 (objc_lang_h): Define.
898 (YYFILES): Add objc-exp.tab.c.
899 (local-maintainer-clean): Remove objc-exp.tab.c.
900 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
901
902 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
903
904 * p-exp.y (typecast rule): Add automatic dereference of
905 pascal classes if needed.
906 (THIS): Set current_type.
907 Automatically dereference pascal classes.
908 (typebase rule): Add ^typebase recognition.
909
910 2002-11-18 Adam Fedor <fedor@gnu.org>
911
912 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
913 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
914 (op_name): Handle OP_OBJC_SELF.
915 * Makefile.in (expprint.o): Add additional depends.
916
917 2002-11-18 Adam Fedor <fedor@gnu.org>
918
919 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
920 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
921 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
922 * objc-exp.y: Likewise.
923
924 2002-11-18 Adam Fedor <fedor@gnu.org>
925
926 * gdb/parser-defs.h: (struct objc_class_str): New structure
927 for parsing ObjC classes.
928
929 2002-11-18 Andrew Cagney <ac131313@redhat.com>
930
931 * stack.c (frame_relative_level): Copy function from here ...
932 * frame.c (frame_relative_level): ...to here.
933
934 2002-11-18 Andrew Cagney <ac131313@redhat.com>
935
936 * frame.h (enum frame_type): Define.
937 (get_frame_type): Declare.
938 (struct frame_info): Add field `type'. Delete field
939 signal_handler_caller.
940 (deprecated_set_frame_signal_handler_caller): Declare.
941 * frame.c (get_frame_type): New function.
942 (deprecated_set_frame_type): New function.
943 (create_new_frame): Set the frame's type.
944 (get_prev_frame): Similar.
945 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
946 * s390-tdep.c: Ditto.
947 * m68klinux-nat.c: Ditto.
948 * ns32k-tdep.c: Ditto.
949 * x86-64-linux-tdep.c: Ditto.
950 * vax-tdep.c: Ditto.
951 * rs6000-tdep.c: Ditto.
952 * ppc-linux-tdep.c: Ditto.
953 * i386-interix-tdep.c: Ditto.
954 * mips-tdep.c: Ditto.
955 * m68k-tdep.c: Ditto.
956 * hppa-tdep.c: Ditto.
957 * ia64-tdep.c: Ditto.
958 * cris-tdep.c: Ditto.
959 * arm-tdep.c: Ditto.
960 * alpha-tdep.c: Ditto.
961 * i386-tdep.c: Ditto.
962 * stack.c: Ditto.
963 * ada-lang.c: Ditto.
964 * blockframe.c: Update.
965 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
966 deprecated_set_frame_type instead of signal_handler_caller.
967 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
968 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
969 * breakpoint.h: Delete FIXME suggesting get_frame_type.
970
971 2002-11-18 Klee Dienes <kdienes@apple.com>
972
973 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
974
975 2002-11-18 Klee Dienes <kdienes@apple.com>
976
977 * buildsym.c (pop_context): Add comment.
978
979 2002-11-18 Klee Dienes <kdienes@apple.com>
980
981 * buildsym.h (pop_context): Convert to function, defined in
982 buildsym.c.
983 * buildsym.c: Include gdb_assert.h.
984 (pop_context): Implement as C function. Add check for stack
985 underflow.
986 * dbxread.c (process_one_symbol): Complain and stop processing
987 that symbol if we are already at the top of the context stack for
988 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
989 when processing N_RBRAC.
990
991 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
992
993 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
994 define.
995 (struct target_waitstatus): Add opaque definition.
996 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
997 * exec.c (init_exec_ops): Likewise.
998 * fork-child.c (clone_and_follow_inferior): Remove.
999 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1000 * inferior.h (clone_and_follow_inferior): Remove prototype.
1001 * infrun.c (follow_fork_mode_both): Remove.
1002 (follow_fork_mode_kind_names): Remove commented out "both".
1003 (follow_inferior_fork): Remove follow_fork_mode_both support.
1004 * inftarg.c (child_clone_and_follow_inferior): Remove.
1005 (child_post_follow_inferior_by_clone): Remove.
1006 (init_child_ops): Don't set to_clone_and_follow_inferior
1007 or to_post_follow_inferior_by_clone.
1008 * target.c (default_clone_and_follow_inferior): Remove.
1009 (cleanup_target): Don't set to_clone_and_follow_inferior
1010 or to_post_follow_inferior_by_clone.
1011 (find_default_clone_and_follow_inferior): Remove.
1012 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1013 (debug_to_clone_and_follow_inferior): Remove.
1014 (debug_to_post_follow_inferior_by_clone): Remove.
1015 (setup_target_debug): Don't set to_clone_and_follow_inferior
1016 or to_post_follow_inferior_by_clone.
1017 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1018 and to_post_follow_inferior_by_clone.
1019 (child_clone_and_follow_inferior): Remove prototype.
1020 (child_post_follow_inferior_by_clone): Remove prototype.
1021 (target_clone_and_follow_inferior): Remove macro.
1022 (target_post_follow_inferior_by_clone): Remove macro.
1023 (find_default_clone_and_follow_inferior): Remove prototype.
1024
1025 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1026
1027 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1028 inferior_has_vforked, and inferior_has_execd instead of
1029 target_has_forked, target_has_vforked, and target_has_execd.
1030 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1031 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1032 (CHILD_WAIT): Define.
1033 (child_wait): Add prototype.
1034 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1035 Add prototype.
1036 (hpux_has_vforked): Likewise, from child_has_vforked.
1037 (hpux_has_execd): Likewise, from child_has_execd.
1038 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1039 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1040 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1041 and hpux_has_syscall_event instead of the target hooks.
1042 * infrun.c (inferior_has_forked, inferior_has_vforked)
1043 (inferior_has_execd): New functions.
1044 * inftarg.c (not_same_real_pid): Remove.
1045 (child_wait): Remove references to not_same_real_pid,
1046 target_has_forked, target_has_vforked, target_has_execd,
1047 and target_has_syscall_event.
1048 (child_has_forked, child_has_vforked, child_has_execd)
1049 (child_has_syscall_event): Remove.
1050 (init_child_ops): Remove references to child_has_forked,
1051 child_has_vforked, child_has_execd, and child_has_syscall_event.
1052 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1053 (hpux_has_vforked): Likewise, from child_has_vforked.
1054 (hpux_has_execd): Likewise, from child_has_execd.
1055 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1056 * target.c (cleanup_target): Remove references to
1057 to_has_forked, to_has_vforked, to_has_execd, and
1058 to_has_syscall_event.
1059 (update_current_target): Likewise.
1060 (setup_target_debug): Likewise.
1061 (debug_to_has_forked): Remove.
1062 (debug_to_has_vforked): Remove.
1063 (debug_to_has_execd): Remove.
1064 (debug_to_has_syscall_event): Remove.
1065 * target.h (struct target_ops): Remove to_has_forked.
1066 to_has_vforked, to_has_execd, and to_has_syscall_event.
1067 (child_has_forked, child_has_vforked, child_has_execd)
1068 (child_has_syscall_event): Remove prototypes.
1069 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1070 prototypes.
1071 (target_has_forked, target_has_vforked, target_has_execd)
1072 (target_has_syscall_event): Remove macros.
1073
1074 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1075
1076 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1077 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1078 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1079 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1080 * target.c (cleanup_target): Remove reference to
1081 to_can_follow_vfork_prior_to_exec.
1082 (update_current_target): Likewise.
1083 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1084 (setup_target_debug): Remove reference to
1085 to_can_follow_vfork_prior_to_exec.
1086 * target.h (struct target_ops): Remove
1087 to_can_follow_vfork_prior_to_exec.
1088 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1089 (target_can_follow_vfork_prior_to_exec): Remove definition.
1090 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1091 define.
1092 * infrun.c (follow_vfork_when_exec): Remove.
1093 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1094 (follow_exec): Likewise.
1095 (handle_inferior_event): Likewise.
1096 (keep_going): Likewise.
1097
1098 2002-11-15 Andrew Cagney <cagney@redhat.com>
1099
1100 * frame.c (generic_unwind_get_saved_register): Make static.
1101 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1102 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1103 defaults to generic_unwind_get_saved_register.
1104 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1105 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1106 * frv-tdep.c (frv_gdbarch_init): Ditto.
1107 * i386-tdep.c (i386_gdbarch_init): Ditto.
1108 * s390-tdep.c (s390_gdbarch_init): Ditto.
1109 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1110 * v850-tdep.c (v850_gdbarch_init): Ditto.
1111 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1112 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1113 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1114
1115 2002-11-15 Andrew Cagney <cagney@redhat.com>
1116
1117 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1118 i386-tdep.c.
1119
1120 2002-11-15 Andrew Cagney <cagney@redhat.com>
1121
1122 * frame.h (sigtramp_saved_pc): Delete declaration.
1123 * blockframe.c (sigtramp_saved_pc): Delete function.
1124 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1125 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1126 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1127 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1128
1129 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1130
1131 * frame.c (frame_pc_unwind): New function.
1132 (frame_saved_regs_pc_unwind): New function.
1133 (frame_register_unwind): Pass unwind_cache instead of
1134 register_unwind_cache.
1135 (set_unwind_by_pc): Add unwind_pc parameter, set.
1136 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1137 (get_prev_frame): Ditto.
1138 * frame.h (frame_pc_unwind_ftype): Declare.
1139 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1140 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1141 (frame_pc_unwind): Declare.
1142 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1143 (struct dummy_frame): Add comment mentioning that values are for
1144 previous frame.
1145 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1146 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1147 (generic_file_frame_chain_valid): Ditto.
1148 * stack.c (frame_info): Ditto.
1149
1150 2002-11-15 David Carlton <carlton@math.stanford.edu>
1151
1152 * linespec.c (locate_first_half): New function.
1153 (decode_line_1): Move code into locate_first_half.
1154
1155 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1156
1157 * complaints.h: Add comment explaining how to eliminate a
1158 deprecated_complain call.
1159 * complaints.h: Fix spelling errors.
1160
1161 2002-11-15 David Carlton <carlton@math.stanford.edu>
1162
1163 * printcmd.c: Remove #include "disasm.h".
1164
1165 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1166
1167 * frame.h: Move the most relevant interface functions to the start
1168 of the file.
1169
1170 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1171
1172 * regcache.h (deprecated_registers): Rename registers.
1173 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1174 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1175 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1176 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1177 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1178 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1179 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1180 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1181 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1182 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1183 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1184 * v850ice.c: Update.
1185
1186 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1187
1188 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1189 NULL buffer.
1190
1191 2002-11-13 Andrew Cagney <cagney@redhat.com>
1192
1193 * regcache.h (deprecated_read_register_bytes): Rename
1194 read_register_bytes.
1195 (deprecated_write_register_bytes): Rename write_register_bytes.
1196 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1197 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1198 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1199 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1200 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1201 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1202 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1203 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1204 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1205 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1206 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1207 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1208 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1209 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1210
1211 2002-11-13 Jim Blandy <jimb@redhat.com>
1212
1213 * findvar.c (read_var_value): Doc fix.
1214
1215 2002-11-13 Andrew Cagney <cagney@redhat.com>
1216
1217 * regcache.c (struct regcache): Replace passthough_p with
1218 readonly_p.
1219 (regcache_xmalloc): Initialize readonly_p.
1220 (build_regcache): Initialize readonly_p.
1221 (regcache_save): New function.
1222 (regcache_restore): New function.
1223 (regcache_cpy): Re-implement using regcache_save and
1224 regcache_restore.
1225 (regcache_raw_read): Update.
1226 (regcache_cooked_read): When a read-only cache, checked for cached
1227 pseudo register values.
1228 (regcache_raw_write): Assert that the cache is not read-only.
1229 Remove code handling a non-passthrough cache.
1230 * regcache.h (regcache_save): Declare.
1231 (regcache_restore): Declare.
1232
1233 2002-11-13 Andrew Cagney <cagney@redhat.com>
1234
1235 * regcache.c (struct regcache_descr): Add fields
1236 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1237 (init_legacy_regcache_descr): Compute the size of a cooked
1238 register cache and then assign that to sizeof_raw_registers. Set
1239 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1240 (init_legacy_regcache_descr): Ditto.
1241
1242 2002-11-13 Andrew Cagney <cagney@redhat.com>
1243
1244 * regcache.c (register_buffer): Move to near start of file, update
1245 description.
1246 (regcache_raw_read): Use.
1247 (regcache_raw_write): Use.
1248 (struct regcache): Rename raw_registers to registers and
1249 raw_register_valid_p to register_valid_p.
1250 (regcache_xmalloc): Update.
1251 (regcache_xfree): Update.
1252 (register_buffer): Update.
1253 (regcache_cpy): Update.
1254 (regcache_cpy_no_passthrough): Update.
1255 (regcache_valid_p): Update.
1256 (deprecated_grub_regcache_for_registers): Update.
1257 (deprecated_grub_regcache_for_register_valid): Update.
1258 (set_register_cached): Update.
1259 (regcache_raw_write): Update.
1260
1261 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1262
1263 * p-exp.y (name_not_typename): Use copy_name to
1264 set current_type variable for fields of THIS.
1265
1266 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1267
1268 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1269 * monitor.c (init_base_monitor_ops): Likewise.
1270 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1271 * remote-array.c (init_array_ops): Likewise.
1272 * remote-e7000.c (init_e7000_ops): Likewise.
1273 * remote-es.c (init_es1800_ops): Likewise.
1274 (init_es1800_child_ops): Likewise.
1275 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1276 * remote-sim.c (init_gdbsim_ops): Likewise.
1277 * remote-st.c (init_st2000_ops): Likewise.
1278 * sol-thread.c (init_sol_core_ops): Likewise.
1279 (init_sol_thread_ops): Likewise.
1280 * v850ice.c (init_850ice_ops): Likewise.
1281 * win32-nat.c (init_child_ops): Likewise.
1282 * wince.c (init_child_ops): Likewise.
1283
1284 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1285
1286 * utils.c (gdb_realpath): Make rp a constant pointer.
1287
1288 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1289
1290 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1291 a constant buffer; cannonicalize_file_name(); realpath() with a
1292 pathconf() defined buffer, xstrdup().
1293
1294 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1295
1296 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1297 to hang2.C; hang3.c to hang3.C.
1298
1299 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1300
1301 * findvar.c (read_var_value): Reenable TLS code.
1302
1303 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1304 Jim Blandy <jimb@redhat.com>
1305
1306 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1307 * target.c (update_current_target): Add
1308 to_get_thread_local_address.
1309 * target.h (to_get_thread_local_address): Export.
1310 (target_get_thread_local_address): Define.
1311 (target_get_thread_local_address_p): Define.
1312 * thread-db.c: Include solib-svr4.h.
1313 (td_thr_tls_get_addr_p): Define.
1314 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1315 (thread_db_get_thread_local_address): New function.
1316 (init_thread_db_ops): Initialize to_get_thread_local_address.
1317 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1318 * configure: Regenerate.
1319 * config.in: Regenerate.
1320
1321 2002-11-11 David Carlton <carlton@math.stanford.edu>
1322
1323 * linespec.c (set_flags): New function.
1324 (decode_line_1): Move code into set_flags.
1325
1326 2002-11-11 David Carlton <carlton@math.stanford.edu>
1327
1328 * linespec.c (decode_line_1): Move chunks of code to separate
1329 functions.
1330 (initialize_defaults): New function.
1331 (decode_indirect): New function.
1332
1333 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1334
1335 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1336 instead of void_code_ptr.
1337 (sigtramp_saved_pc): Ditto.
1338
1339 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1340 i386_fp_regnum_p.
1341
1342 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1343
1344 * gdbtypes.h (struct main_type): Move artificial flag out of
1345 loc. New member of ``struct field'' named static_kind. Reduce
1346 overloaded meaning of bitsize.
1347 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1348 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1349 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1350
1351 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1352 new fields.
1353 (template_to_fixed_record_type, template_to_static_fixed_type)
1354 (to_record_with_fixed_variant_part): Likewise.
1355 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1356 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1357 * dwarfread.c (struct_type, enum_type): Likewise.
1358 * hpread.c (hpread_read_enum_type)
1359 (hpread_read_function_type, hpread_read_doc_function_type)
1360 (hpread_read_struct_type): Likewise.
1361 * mdebugread.c (parse_symbol): Likewise.
1362
1363 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1364
1365 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1366 * stack.c (print_frame_info_base): Update.
1367 (print_frame_info_base, frame_info): Update.
1368 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1369 (sparc_frame_saved_pc): Update.
1370 * ada-lang.c (find_printable_frame): Update.
1371 * breakpoint.c (deprecated_frame_in_dummy): Update.
1372
1373 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1374
1375 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1376 defined.
1377 (regmap): Extend to cover all registers.
1378 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1379 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1380 definitions.
1381 (fetch_register, sore_register): Simplify.
1382 (old_fetch_inferior_registers, old_store_inferior_registers):
1383 Remove functions.
1384 (cannot_fetch_register, cannot_store_register): Change
1385 implementation to use regmap array to decide which registers
1386 cannot be fetched/stored. This removes $orig_eax from the
1387 registers that cannot be fetched/stored.
1388 (fetch_inferior_registers): Call fetch_register directly instead
1389 of calling old_fetch_inferior_registers.
1390 (store_inferior_registers): Call store_register directly instead
1391 of calling old_store_inferior_registers.
1392 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1393 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1394 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1395
1396 2002-11-09 Klee Dienes <kdienes@apple.com>
1397
1398 * i387-tdep.c (i387_supply_register): When called with NULL as a
1399 buffer, mark the register as not provided (to mirror the behavior
1400 of supply_register).
1401 (i387_supply_fxsave): Ditto.
1402 (i387_supply_fsave): Ditto (inherits the behavior from
1403 i387_supply_register).
1404
1405 2002-11-09 Klee Dienes <kdienes@apple.com>
1406
1407 * blockframe.c (sigtramp_saved_pc): Use
1408 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1409 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1410 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1411
1412 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1413
1414 * frame.c (get_prev_frame): Test prev_p to identify a previously
1415 unwound frame. Initialize prev_p.
1416 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1417 comment.
1418
1419 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1420
1421 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1422 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1423 more comments. Zap dead code.
1424
1425 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1426
1427 * infcmd.c (print_vector_info, print_float_info): Move code that
1428 checks whether the target has any registers and whether there is a
1429 selected frame up, such that it is also used if a target provides
1430 multi-arch definitions of these functions.
1431
1432 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1433
1434 * Makefile.in (DESTDIR): Define.
1435 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1436 prefix.
1437
1438 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1439 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1440
1441 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1442
1443 * i386-linux-tdep.c: Include "reggroups.h".
1444 (i386_linux_register_reggroup_p): New function.
1445 (i386_linux_init_abi): Set register_reggroup_p to
1446 i386_linux_register_reggroup_p.
1447 * i386-tdep.h (i386_register_reggroup_p): Declare.
1448 * i386-tdep.c: Include "reggroups.h".
1449 (i386_init_reggroups): New function.
1450 (i386_add_reggroups): New function.
1451 (i386_register_reggroup_p): New function.
1452 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1453 (_initialize_i386_tdep): Call i386_init_reggroups.
1454 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1455 specific reggroups.
1456
1457 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1458
1459 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1460 request that's available in *BSD.
1461
1462 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1463
1464 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1465 FDOFF_REGNUM.
1466
1467 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1468
1469 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1470 * dummy-frame.c (find_dummy_frame): Rename
1471 generic_find_dummy_frame, make static. Return the dummy frame
1472 instead of the regcache.
1473 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1474 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1475 (dummy_frame_register_unwind): Rename
1476 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1477 * dummy-frame.h (dummy_frame_register_unwind): Rename
1478 generic_call_dummy_register_unwind.
1479
1480 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1481
1482 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1483 except the inclusion of "i386/tm-i386.h", to...
1484 * config/i386/nm-i386v42mp.h: ...here.
1485 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1486
1487 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1488
1489 * Makefile.in (frame.o): Update dependencies.
1490 * blockframe.c (current_frame, frame_obstack_alloc)
1491 (frame_saved_regs_zalloc, get_current_frame)
1492 (set_current_frame, create_new_frame)
1493 (set_unwind_by_pc, get_next_frame)
1494 (flush_cached_frames, reinit_frame_cache)
1495 (frame_saved_regs_register_unwind)
1496 (deprecated_generic_get_saved_register)
1497 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1498 (_initialize_blockframe): Move frame code from here...
1499 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1500 "annotate.h" and "dummy-frame.h".
1501 (_initialize_frame): New function.
1502
1503 2002-11-08 Jim Blandy <jimb@redhat.com>
1504
1505 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1506 when we finish a function a context.
1507 * buildsym.h (outermost_context_p): New macro.
1508 (Bug analyzed by David Edelsohn.)
1509
1510 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1511
1512 * blockframe.c: Include "dummy-frame.h".
1513 (struct dummy_frame, dummy_frame_stack)
1514 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1515 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1516 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1517 (generic_save_call_dummy_addr, generic_pop_current_frame)
1518 (generic_pop_dummy_frame, generic_fix_call_dummy)
1519 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1520 dummy frame code from here...
1521 * dummy-frame.c: ...to here. New file.
1522 * dummy-frame.h: New file.
1523 (generic_call_dummy_register_unwind): Declare.
1524 (generic_find_dummy_frame): Declare.
1525 * Makefile.in (SFILES): Add dummy-frame.c.
1526 (dummy-frame.o): Specify dependencies.
1527 (dummy_frame_h): Define.
1528 (COMMON_OBS): Add dummy-frame.o.
1529 (blockframe.o): Update dependencies.
1530
1531 2002-11-08 Jim Blandy <jimb@redhat.com>
1532
1533 * dwarf2read.c (read_func_scope): Restore local_symbols and
1534 param_symbols after we finish the function context. (Based on a
1535 patch from David Edelsohn.)
1536
1537 2002-11-08 David Carlton <carlton@math.stanford.edu>
1538
1539 * linespec.c (symbol_found): New function.
1540 (minsym_found): New function.
1541 (decode_line_1): Separate out some code into separate functions.
1542
1543 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1544
1545 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1546 the benefit of the interix target.
1547 * i386-tdep.h (i386_frameless_signal_p): Declare.
1548
1549 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1550
1551 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1552 declaration that snuck in from change below.
1553
1554 2002-11-06 Andrew Cagney <cagney@redhat.com>
1555
1556 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1557 all callers.
1558 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1559 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1560 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1561 (i386_mxcsr_regnum_p): new function. Use instead of
1562 MXCSR_REGNUM_P.
1563 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1564 (i386_sse_regnum_p): Declare.
1565 (i386_mxcsr_regnum_p): Declare.
1566 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1567 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1568 (IS_FP_REGNUM): Update definition.
1569 (IS_FPU_CTRL_REGNUM): Update definition..
1570 (IS_SSE_REGNUM): Update definition..
1571 * i386v-nat.c (register_u_addr): Update.
1572 * go32-nat.c (fetch_register): Update.
1573 (store_register): Update.
1574
1575 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1576
1577 Preparation work to convert the hppa targets to multiarch partial.
1578
1579 * hppa-tdep.c: Add new functions replacing macro bodies from
1580 config/pa/tm-hppa.h. These function will be used to initialize
1581 the gdbarch structure. Import some comments from tm-hppa.h,
1582 and place them where appropriate, to avoid loosing them when
1583 we cleanup this file.
1584 (hppa_reg_struct_has_addr): New function.
1585 (hppa_inner_than): New function.
1586 (hppa_stack_align): New function.
1587 (hppa_pc_requires_run_before_use): New function.
1588 (hppa_instruction_nullified): New function.
1589 (hppa_register_byte): New function.
1590 (hppa_register_virtual_type): New function.
1591 (hppa_store_struct_return): New function.
1592 (hppa_cannot_store_register): New function.
1593 (hppa_frame_args_address): New function.
1594 (hppa_frame_locals_address): New function.
1595 (hppa_smash_text_address): New function.
1596 (hppa_coerce_float_to_double): New function. Requires the inclusion
1597 of "language.h".
1598
1599 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1600
1601 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1602 gdbarch-eligible macro to a call to the new associated function
1603 created in hppa-tdep.c.
1604 (INNER_THAN): Likewise.
1605 (STACK_ALIGN): Likewise.
1606 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1607 (INSTRUCTION_NULLIFIED): Likewise.
1608 (REGISTER_BYTE): Likewise.
1609 (REGISTER_VIRTUAL_TYPE): Likewise.
1610 (STORE_STRUCT_RETURN): Likewise.
1611 (CANNOT_STORE_REGISTER): Likewise.
1612 (FRAME_ARGS_ADDRESS): Likewise.
1613 (FRAME_LOCALS_ADDRESS): Likewise.
1614 (SMASH_TEXT_ADDRESS): Likewise.
1615 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1616 (ABOUT_TO_RETURN): Delete, as no longer used.
1617
1618 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1619
1620 * printcmd.c (disassemble_command): Remove obsolete function.
1621 (_initialize_printcmd): Do not create disassemble command here.
1622 * cli/cli-cmds.c (disassemble_command): New function. Implements
1623 disassemble command.
1624 (init_cli_cmds): Create disassemble command here instead.
1625
1626 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1627
1628 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1629
1630 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1631
1632 * regcache.h (regcache_cooked_read_using_offset_hack)
1633 (regcache_cooked_write_using_offset_hack): Delete declarations.
1634 (register_changed): Delete declaration.
1635 * regcache.c (regcache_cooked_read_using_offset_hack)
1636 (regcache_cooked_write_using_offset_hack): Delete functions.
1637 (cooked_xfer_using_offset_hack): Delete function.
1638 (register_changed): Delete function.
1639
1640 2002-11-07 Jim Blandy <jimb@redhat.com>
1641
1642 * macroscope.c: #include "complaints.h".
1643 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1644 but not in the macro table.
1645 * Makefile.in (macroscope.o): Record dependency.
1646
1647 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1648
1649 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1650
1651 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1652
1653 * regcache.c (deprecated_registers_fetched): Update.
1654 * regcache.h (deprecated_registers_fetched): Rename
1655 registers_fetched.
1656 * remote-vxsparc.c (vx_read_register): Update.
1657 * remote-vxmips.c (vx_read_register): Update.
1658 * remote-vx68.c (vx_read_register): Update.
1659 * irix5-nat.c (fetch_core_registers): Update.
1660 * mipsm3-nat.c (fetch_inferior_registers): Update.
1661 * sun3-nat.c (fetch_inferior_registers): Update.
1662 * symm-nat.c (fetch_inferior_registers): Update.
1663 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1664 (fetch_core_registers): Update.
1665 (fetch_kcore_registers): Update.
1666 * mips-nat.c (fetch_inferior_registers): Update.
1667 * corelow.c (get_core_registers): Update.
1668 * a68v-nat.c (fetch_inferior_registers): Update.
1669
1670 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1671
1672 Put in place the framework necessary for multiarching the hppa targets.
1673 * hppa-tdep.c (hppa_gdbarch_init): New function.
1674 (hppa_dump_tdep): New function.
1675 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1676 tdep structure dumper.
1677 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1678 until the multi-arching conversion has partially been completed.
1679
1680 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1681
1682 * valops.c (value_assign): Merge lval_register case into
1683 lval_reg_frame_relative. Use frame_register and
1684 regcache_cooked_write instead of get_saved_register and
1685 write_register_bytes. After flushing the register cache, try to
1686 re-select the selected frame.
1687
1688 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1689
1690 * regcache.h (deprecated_register_valid): Rename register_valid.
1691 * regcache.c: Update.
1692 * ia64-aix-nat.c: Update.
1693 * i386gnu-nat.c: Update.
1694 * alpha-nat.c: Update.
1695 * sparc-nat.c: Update.
1696 * lynx-nat.c: Update.
1697 * remote-mips.c: Update.
1698
1699 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1700
1701 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1702 to end of file, to be more consistent with the pratice followed
1703 by other targets.
1704
1705 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1706
1707 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1708 (print_float_info): Print registers in float_reggroup.
1709 (print_vector_info): Print registers in vector_reggroup.
1710 (default_print_registers_info): When all, print registers in
1711 all_reggroup. Otherwize, print registers in general_reggroup.
1712 (registers_info): Rewrite. Add support for register groups.
1713 Eliminate a goto.
1714
1715 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1716
1717 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1718 ages.
1719 (symtab_symbol_info): Remove eons old ifdeffed out code.
1720 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1721 command.
1722
1723 2002-11-06 Theodore A. Roth <troth@openavr.org>
1724
1725 * c-exp.y: Add missing semi-colons.
1726 * f-exp.y: Add missing semi-colons.
1727 * m2-exp.y: Add missing semi-colons.
1728 * p-exp.y: Add missing semi-colons.
1729 Add empty action to start rule to avoid a type clash error when
1730 building with bison >= 1.50.
1731
1732 2002-11-06 Jim Blandy <jimb@redhat.com>
1733
1734 * macrotab.h (struct macro_source_file): Doc fix.
1735
1736 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1737
1738 * varobj.c (child_exists, cplus_number_of_children): Change
1739 STREQ macro references to strcmp.
1740 (cplus_name_of_child): Change code to handle the fact that
1741 fields are not necessarily contiguous with regards to their
1742 access control. This is a fix for PR gdb/792.
1743
1744 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1745
1746 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1747 * gdbarch.h, gdbarch.c: Regnerate.
1748 * frame.h (frame_register): Declare.
1749 * frame.c (frame_register): New function.
1750 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1751 GET_SAVED_REGISTER, otherwize call
1752 generic_unwind_get_saved_register.
1753 (frame_register_read): Use frame_register instead of
1754 get_saved_register.
1755
1756 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1757
1758 From Jim Ingham <jingham@apple.com>:
1759 * event-top.c (gdb_disable_readline): New function.
1760 (_initialize_event_loop): Move comment.
1761
1762 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1763
1764 * event-loop.c (start_event_loop): Add comment.
1765 Update copyright.
1766
1767 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1768
1769 * infcmd.c (default_print_registers_info): Do not call
1770 PRINT_REGISTER_HOOK.
1771
1772 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1773
1774 * sparc-tdep.c (sparc_print_register_hook): Make static.
1775 (sparc_print_registers_info): New function.
1776 (sparc_do_registers_info): New function.
1777 (sparclet_print_registers_info): New function.
1778 (sparclet_do_registers_info): New function.
1779 (do_sparc_print_registers_info): New function.
1780 (sparc_print_registers): New static function, clone of infcmd.c's
1781 default_print_registers_info.
1782 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1783 (sparclet_do_registers_info): Declare.
1784 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1785 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1786 Re-define.
1787 (sparc_do_registers_info): Declare.
1788 (PRINT_REGISTER_HOOK): Delete macro.
1789 (sparc_print_register_hook): Delete declaration.
1790
1791 2002-11-05 David Carlton <carlton@math.stanford.edu>
1792
1793 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1794 functions.
1795 (lookup_symbol_aux_local): New function.
1796 (lookup_symbol_aux_symtabs): New function.
1797 (lookup_symbol_aux_psymtabs): New function.
1798
1799 2002-11-05 David Carlton <carlton@math.stanford.edu>
1800
1801 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1802 previous values of 'objfile' and 'block'.
1803
1804 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1805
1806 * values.c (value_change_enclosing_type): Set
1807 enclosing_type field correctly also for the case where
1808 more memory needs to be allocated.
1809
1810 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1811
1812 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1813 of puts_filtered.
1814
1815 * i387-tdep.c (i387_print_float_info): Replace calls to
1816 register_read and deprecated_read_register_gen with calls to
1817 frame_register_read, and make the necessary adjustments to the
1818 surrounding code.
1819
1820 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1821
1822 * gdbarch.sh (register_reggroup_p): Allow default value.
1823 * gdbarch.h, gdbarch.c: Regenerate.
1824
1825 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1826
1827 * regcache.h: Add coment indicating replacements for deprecated
1828 functions.
1829
1830 2002-11-02 Andrew Cagney <cagney@redhat.com>
1831
1832 * reggroups.h, reggroups.c: New files.
1833 * regcache.c: Include "reggroups.h".
1834 (enum regcache_dump_what): Add `regcache_dump_groups'.
1835 (regcache_dump): Contract size of the "Type" column. When
1836 specified, dump the register's groups.
1837 (maintenance_print_register_groups): New function.
1838 (_initialize_regcache): Add command `maint print register-groups'.
1839 * Makefile.in (COMMON_OBS): Add reggroups.o
1840 (SFILES): Add reggroups.c.
1841 (reggroups_h): Define.
1842 (regcache.o, gdbarch.o): Update dependencies.
1843 (reggroups.o): Specify dependencies.
1844 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1845 Add opaque declaration for `struct reggroup' in generated .h file.
1846 Include "reggroups.h" in generated .c file.
1847 gdbarch.h, gdbarch.c: Re-generate.
1848
1849 2002-11-02 Andrew Cagney <cagney@redhat.com>
1850
1851 * regcache.h (deprecated_read_register_gen): Rename
1852 read_register_gen.
1853 (deprecated_write_register_gen): Rename write_register_gen.
1854 * i387-tdep.c: Update.
1855 * x86-64-linux-nat.c: Update
1856 * wince.c: Update.
1857 * thread-db.c: Update.
1858 * win32-nat.c: Update.
1859 * mips-tdep.c: Update.
1860 * d10v-tdep.c: Update.
1861 * cris-tdep.c: Update.
1862 * remote-sim.c: Update.
1863 * remote-rdi.c: Update.
1864 * remote-rdp.c: Update.
1865 * frame.c: Update.
1866 * target.c: Update.
1867 * blockframe.c: Update.
1868 * x86-64-tdep.c: Update.
1869 * xstormy16-tdep.c: Update.
1870 * sh-tdep.c: Update.
1871 * s390-tdep.c: Update.
1872 * rs6000-tdep.c: Update.
1873 * sparc-tdep.c: Update.
1874 * i386-tdep.c: Update.
1875 * dwarf2cfi.c: Update.
1876 * regcache.c: Update.
1877
1878 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1879
1880 New interix-specific files:
1881 * config/i386/nm-interix.h: New file.
1882 * config/i386/interix.mh: New file.
1883 * config/i386/interix.mt: New file.
1884 * i386-interix-nat.c: New file.
1885 * i386-interix-tdep.c: New file.
1886
1887 2002-11-01 Andrew Cagney <cagney@redhat.com>
1888
1889 * frame.h (deprecated_generic_get_saved_register): Rename
1890 generic_get_saved_register.
1891 * blockframe.c (deprecated_generic_get_saved_register): Update.
1892 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1893 (xstormy16_frame_saved_register): Update.
1894 * sh-tdep.c (sh_gdbarch_init): Update.
1895 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1896 * ia64-tdep.c (ia64_get_saved_register): Update.
1897 * cris-tdep.c (cris_gdbarch_init): Update.
1898 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1899 * arm-tdep.c (arm_gdbarch_init): Update.
1900
1901 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1902
1903 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1904
1905 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1906
1907 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1908 trampolines in sigaction.
1909
1910 2002-10-31 Andrew Cagney <cagney@redhat.com>
1911
1912 * h8300-tdep.c: Include "gdb_assert.h".
1913 (h8300_print_register): Add gdbarch, file and frame parameters.
1914 Use frame_read_unsigned_register to read the register's value.
1915 Use fprintf_filtered to display output.
1916 (h8300_print_registers_info): Replace h8300_do_registers_info.
1917 (h8300_gdbarch_init): Set print_registers_info.
1918
1919 2002-10-31 Andrew Cagney <cagney@redhat.com>
1920
1921 * frame.c (frame_read_unsigned_register): New function.
1922 (frame_read_signed_register): New function.
1923 * frame.h (frame_read_unsigned_register): Declare.
1924 (frame_read_signed_register): Declare.
1925
1926 2002-10-31 Andrew Cagney <cagney@redhat.com>
1927
1928 * h8500-tdep.c (h8500_print_registers_info): New static function,
1929 clone of infcmd.c's default_print_registers_info.
1930 (h8500_do_registers_info): New funtion.
1931 (h8500_print_register_hook): Rename print_register_hook, make
1932 static.
1933
1934 * config/h8500/tm-h8500.h: Update copyright.
1935 (DEPRECATED_DO_REGISTERS_INFO): Define.
1936 (h8500_do_registers_info: Declare.
1937 (PRINT_REGISTER_HOOK): Delete macro.
1938 (print_register_hook): Delete function.
1939
1940 2002-10-31 Andrew Cagney <cagney@redhat.com>
1941
1942 * z8k-tdep.c (z8k_print_register_hook): Make static.
1943 (z8k_print_registers_info): New static function, clone of
1944 infcmd.c's default_print_registers_info.
1945 (z8k_do_registers_info): New function. Wrap
1946 z8k_print_registers_info.
1947 * config/z8k/tm-z8k.h: Update copyright.
1948 (PRINT_REGISTER_HOOK): Delete macro.
1949 (z8k_print_register_hook): Delete declaration.
1950 (DEPRECATED_DO_REGISTERS_INFO): Define.
1951 (z8k_do_registers_info): Declare.
1952
1953 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1954
1955 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1956 as this is already provided by value.h, and was actually causing
1957 a compilation error because of a conflict in parameter type
1958 declaration due to a missing const keyword.
1959 (low_text_segment_addres): Fix a compilation warning.
1960
1961 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1962
1963 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1964 registers without a name.
1965 (mips_linux_cannot_store_register): Don't store registers without
1966 a name.
1967
1968 2002-10-28 David Carlton <carlton@math.stanford.edu>
1969
1970 * symtab.c (find_addr_symbol): Delete. (It was already commented
1971 out.)
1972 * symtab.h: Delete prototype for find_addr_symbol.
1973
1974 2002-10-26 Andrew Cagney <cagney@redhat.com>
1975
1976 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1977 DO_REGISTERS_INFO.
1978 gdbarch.h, gdbarch.c: Re-generate.
1979 * infcmd.c (default_print_registers_info): Update reference.
1980 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1981 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1982 * sh-tdep.c (sh_gdbarch_init): Ditto.
1983 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1984 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1985
1986 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1987
1988 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1989 cfi_init_extra_frame_info.
1990 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1991 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1992
1993 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1994 target where necessary. Add more comments and remove the ones
1995 that don't provide any useful information.
1996
1997 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1998 deprecated_read_register_dummy with
1999 frame_unwind_unsigned_register.
2000
2001 * i386-tdep.c (i386_extract_struct_value_address): Use
2002 regcache_raw_read_unsigned instead of
2003 regcache_cooked_read_unsigned since we know that the register
2004 we're reading isn't a pseudo register. Rename variable 'val' into
2005 the more descriptive 'addr'.
2006
2007 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2008 (x86_64_push_return_address): Add comment.
2009 (x86_64_pop_frame): Make static.
2010 (examine_argument): Clarify comment.
2011 (x86_64_skip_prologue): Make prolog_expact variable static.
2012
2013 * dwarf2cfi.c: Fix some formatting problems.
2014 (context_cpy, read_encoded_pointer): Clarify comments.
2015
2016 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2017 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2018 i386 target back into x86_64_gdbarch_init. Add some comments and
2019 remove meaningless ones.
2020
2021 2002-10-25 Andrew Cagney <cagney@redhat.com>
2022
2023 * complaints.h (struct deprecated_complaint): Rename `struct
2024 complaint'.
2025 * complaints.c (complain): Update.
2026 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2027 incorrect comment indicating that "symfile.h" was being included
2028 for the `struct complaint' definition.
2029 * remote-vx.c: Update.
2030 * objc-lang.c: Update.
2031 * xcoffread.c: Update.
2032 * hpread.c: Update.
2033 * mdebugread.c: Update.
2034 * stabsread.c: Update.
2035 * dwarf2read.c: Update.
2036 * dwarfread.c: Update.
2037 * elfread.c: Update.
2038 * coffread.c: Update.
2039 * stabsread.h: Update.
2040 * dbxread.c: Update.
2041 * buildsym.c: Update.
2042 * gdbtypes.c: Update.
2043 * macrotab.c: Update.
2044
2045 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2046
2047 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2048 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2049 (x86_64_init_abi): ...new function.
2050
2051 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2052 * i386v-nat.c: Include "i386-tdep.h".
2053
2054 2002-10-25 Andrew Cagney <cagney@redhat.com>
2055
2056 * gdbtypes.c (address_space_name_to_int): Update.
2057 (address_space_int_to_name): Update.
2058 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2059 multi-arch predicate.
2060 (address_class_name_to_type_flags): Ditto.
2061 * gdbarch.h, gdbarch.c: Re-generate.
2062
2063 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2064
2065 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2066
2067 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2068
2069 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2070
2071 * symtab.h (INIT_SAL): Delete macro.
2072 (init_sal): Export.
2073 * symtab.c (init_sal): New function.
2074
2075 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2076 to init_sal function call.
2077 (find_sal_from_funcs_and_line): Ditto.
2078 (all_sals_for_line): Ditto.
2079 * breakpoint.c (create_internal_breakpoint): Ditto.
2080 (create_fork_vfork_event_catchpoint): Ditto.
2081 (create_exec_event_catchpoint): Ditto.
2082 (parse_breakpoint_sals): Ditto.
2083 (watch_command_1): Ditto.
2084 (handle_gnu_4_16_catch_command): Ditto.
2085 (clear_command): Ditto.
2086 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2087 * infcmd.c (run_stack_dummy): Ditto.
2088 * infrun.c (process_event_stop_test): Ditto.
2089 (check_sigtramp2): Ditto.
2090 (step_over_function): Ditto.
2091 * linespec.c (decode_line_2): Ditto.
2092 (decode_line_1): Ditto.
2093 * source.c (line_info): Ditto.
2094 * symtab.c (find_pc_sect_line): Ditto.
2095
2096 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2097
2098 * dwarf2cfi.c (struct context)
2099 (struct context_reg): Moved to dwarf2cfi.h
2100 (context_alloc, frame_state_alloc, context_cpy):
2101 Made extern instead of static, removed prototypes.
2102 * dwarf2cfi.h (struct context)
2103 (struct context_reg): New, moved from dwarf2cfi.c
2104 (context_alloc, frame_state_alloc, context_cpy):
2105 New prototypes.
2106 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2107 Changed from static to extern.
2108 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2109 (LINUX_SIGCONTEXT_FP_OFFSET)
2110 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2111 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2112 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2113 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2114 set_gdbarch_*() calls now use x86-64 specific functions
2115 instead of DWARF2 CFI ones.
2116 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2117 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2118 (x86_64_init_extra_frame_info): New prototypes.
2119
2120 2002-10-23 David Carlton <carlton@math.stanford.edu>
2121
2122 * linespec.c: #include "parser-defs.h".
2123 Delete prototype for find_template_name_end.
2124 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2125
2126 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2127
2128 * NEWS: add recent mi fixes.
2129 * varobj.c (struct varobj): Add new "updated" flag.
2130 (new_variable): Default "updated" flag to 0.
2131 (varobj_set_value): Set "updated" flag to 1 if value
2132 changes.
2133 (varobj_update): Check varobj "updated" flag before
2134 comparing old and refreshed values. Fix for
2135 PR gdb/702.
2136
2137 2002-10-23 David Carlton <carlton@math.stanford.edu>
2138
2139 * parse.c (parse_exp_1): Use BLOCK_START.
2140 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2141 SYMBOL_BLOCK_VALUE.
2142 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2143
2144 2002-10-23 David Carlton <carlton@math.stanford.edu>
2145
2146 * symtab.c: Delete cplusplus_hint.
2147 Delete prototype for find_template_name_end.
2148
2149 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2150
2151 * symtab.h: Update comment.
2152
2153 2002-10-23 Michael Snyder <msnyder@redhat.com>
2154
2155 * printcmd.c (address_info): Restore quotes in output.
2156 * valops.c (value_of_local): Restore quotes in error message.
2157
2158 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2159
2160 * symtab.c (symbol_demangled_name): New function.
2161 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2162 turning most of it into a function.
2163 (symbol_demangled_name): Export.
2164
2165 2002-10-23 Michael Snyder <msnyder@redhat.com>
2166
2167 * valops.c (value_of_local): Restore quotes in error message.
2168
2169 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2170
2171 * symtab.c (symbol_init_language_specific): New function.
2172 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2173 turning most of it into a function.
2174 (symbol_init_language_specific): Export.
2175
2176 2002-10-23 David Carlton <carlton@math.stanford.edu>
2177
2178 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2179 (dwarf_attr_name): Ditto.
2180 (dwarf_type_encoding_name): Ditto.
2181 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2182 (process_die): Handle DW_TAG_namespace,
2183 DW_TAG_imported_declaration, DW_TAG_imported_module.
2184 (read_namespace): New function.
2185
2186 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2187
2188 * configure.in: Define NEW_PROC_API on Interix too.
2189 * configure: Regenerate.
2190
2191 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2192
2193 * configure: Regenerate using the proper version of autoconf.
2194
2195 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2196
2197 * findvar.c (read_var_value): Temporarily disable TLS code, until
2198 complete TLS support is added.
2199
2200 2002-10-21 Jim Blandy <jimb@redhat.com>
2201 Elena Zannoni <ezannoni@redhat.com>
2202
2203 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2204 for thread local storage locations.
2205 (struct symbol): Add objfile field.
2206 (SYMBOL_OBJFILE): Define.
2207 * dwarf2read.c (is_thread_local): New static variable.
2208 (new_symbol): If variable is in thread local fill in address class
2209 and objfile appropriately.
2210 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2211 stack operation.
2212 * printcmd.c (address_info): Print the information for thread
2213 local storage variable.
2214 * findvar.c (read_var_value): In case of thread local variable,
2215 defer to the target vector code to compute address.
2216
2217 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2218
2219 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2220 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2221
2222 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2223
2224 * symtab.h (address_class): Rename
2225 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2226 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2227 * printcmd.c (address_info): Ditto.
2228 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2229
2230 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2231
2232 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2233 DBREG_DRX macro to acces debug registers.
2234
2235 * Makefile.in (i386obsd-tdep.o): New target.
2236
2237 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2238 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2239
2240 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2241 * config/i386/obsd.mt: New file.
2242 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2243 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2244 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2245 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2246 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2247 * i386obsd-tdep.c: New file.
2248
2249 2002-10-19 Adam Fedor <fedor@gnu.org>
2250
2251 * objc-exp.y (name_not_typename): Fix invalid comment.
2252
2253 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2254
2255 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2256 to allocate partial syms and macro byte caches.
2257
2258 2002-10-18 David Carlton <carlton@math.stanford.edu>
2259
2260 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2261
2262 2002-10-18 Adam Fedor <fedor@gnu.org>
2263
2264 * stabsread.c (find_name_end): New function.
2265 (define_symbol): Use it.
2266
2267 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2268
2269 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2270 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2271 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2272 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2273
2274 2002-10-17 David Carlton <carlton@math.stanford.edu>
2275
2276 * symfile.h: Add opaque declaration for struct obstack.
2277 Declare obsavestring to take a const char *.
2278 * symfile.c (obsavestring): Make first argument a const char *.
2279
2280 2002-10-16 Adam Fedor <fedor@gnu.org>
2281
2282 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2283 names when matching breakpoints in current file.
2284
2285 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2286
2287 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2288 (read_tag_pointer_type): Add address class support.
2289 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2290 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2291 New methods.
2292 * gdbarch.h, gdbarch.c: Regenerate.
2293 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2294 (make_type_with_address_space, recursive_type_dump): Add address
2295 class support.
2296 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2297 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2298 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2299
2300 2002-10-16 Klee Dienes <kdienes@apple.com>
2301
2302 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2303 to get the last character of a char[] buffer, not
2304 name[sizeof(vptr_name)-1].
2305
2306 2002-10-14 Adam Fedor <fedor@gnu.org>
2307
2308 * symtab.h: New objc_specific struct.
2309 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2310 (SYMBOL_DEMANGLED_NAME): Likewise.
2311
2312 2002-10-14 Adam Fedor <fedor@gnu.org>
2313
2314 * symfile.c (init_filename_language_table): Add ObjC file extension.
2315
2316 2002-10-14 Adam Fedor <fedor@gnu.org>
2317
2318 * utils.c (puts_filtered_tabular): New function.
2319 (fprintf_symbol_filtered): Get ObjC demangled name.
2320 * defs.h (puts_filtered_tabular): Declared.
2321
2322 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2323
2324 * c-lang.h (c_type_print_varspec_prefix): Delete.
2325 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2326 ``need_post_space'' parameter. Adjust all callers.
2327
2328 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2329
2330 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2331 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2332 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2333 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2334
2335 2002-10-13 Adam Fedor <fedor@gnu.org>
2336
2337 * source.c (print_source_lines): Update comments.
2338
2339 2002-10-13 Adam Fedor <fedor@gnu.org>
2340
2341 * valops.c (value_of_local): New function.
2342 (value_of_this): Use it.
2343 * value.h (value_of_local): Declared.
2344
2345 2002-10-13 Adam Fedor <fedor@gnu.org>
2346
2347 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2348 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2349
2350 2002-10-12 Adam Fedor <fedor@gnu.org>
2351
2352 * language.c (binop_result_type): Add language_objc to case.
2353 (integral_type): Likewise.
2354 (character_type): Likewise.
2355 (string_type): Likewise.
2356 (boolean_type): Likewise.
2357 (structured_type): Likewise.
2358 (binop_type_check): Likewise.
2359
2360 2002-10-11 Adam Fedor <fedor@gnu.org>
2361
2362 * printcmd.c (address_info): Print 'self' for ObjC.
2363
2364 2002-10-11 Adam Fedor <fedor@gnu.org>
2365
2366 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2367 OP_SELF.
2368
2369 2002-10-11 Adam Fedor <fedor@gnu.org>
2370
2371 * language.h (CAST_IS_CONVERSION): Add language_objc.
2372
2373 2002-10-11 Adam Fedor <fedor@gnu.org>
2374
2375 * defs.h (enum language): Add language_objc.
2376
2377 2002-10-11 Klee Dienes <kdienes@apple.com>
2378
2379 * corefile.c (read_memory_typed_address): New function.
2380 * gdbcore.h (read_memory_typed_address): Add prototype.
2381 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2382 to read a value destined for a CORE_ADDR, not read_memory_integer.
2383 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2384 (f77_get_dynamic_lowerbound): Ditto.
2385
2386 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2387
2388 * utils.c (string_to_core_addr): After turning string into
2389 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2390 which will do necessary sign-extension, etc.
2391
2392 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2393
2394 * c-exp.y (THIS): Delete token and grammar rule.
2395 (yylex): Don't return THIS.
2396 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2397 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2398 * demangle.c (cplus_markers): Update comment. Put '$'
2399 first. Remove CPLUS_MARKER.
2400 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2401 * jv-exp.y (THIS): Delete token and grammar rule.
2402 (yylex): Don't return THIS.
2403 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2404 * objc-exp.y (THIS): Delete token and grammar rule.
2405 (yylex): Don't return THIS.
2406 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2407 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2408 (read_member_functions): Likewise for opname.
2409 (read_tilde_fields): Use is_cplus_marker.
2410
2411 * defs.h (CPLUS_MARKER): Don't define.
2412 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2413 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2414 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2415 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2416 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2417
2418 * config/i386/tm-i386v4.h: Delete file.
2419 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2420 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2421 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2422 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2423 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2424 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2425 * config/i386/i386v4.mt (TM_FILE): Likewise.
2426 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2427
2428 2002-10-10 Marko Mlinar <markom@opencores.org>
2429
2430 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2431 accidentially not commited 2002-10-09
2432 * gdbarch.h, gdbarch.c: Re-generate.
2433
2434 2002-10-09 Marko Mlinar <markom@opencores.org>
2435
2436 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2437 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2438 * gdbarch.h, gdbarch.c: Re-generate.
2439
2440 2002-10-08 Petr Sorfa <petrs@caldera.com>
2441
2442 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2443
2444 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2445 so we can work on more than one compilation unit at a time. This
2446 helps prepare GDB to handle inter-CU die references.
2447 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2448 the code to be defined before struct comp_unit_head.
2449 (comp_unit_head): Added new members - offset, cu_head,
2450 begin_die, next and dwarf2_abbrevs.
2451 (dwarf2_abbrevs): Removed single static var; now member of
2452 struct comp_unit_head.
2453 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2454 members.
2455 (psymtab_to_symtab_1): Changed to work with the new
2456 struct comp_unit_head.
2457 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2458 constructs the dwarf2_abbrevs[] inside the cu_header.
2459 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2460 dwarf2_abbrev table to clean up.
2461 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2462 handling of dwarf2_abbrevs inside the cu_header.
2463 (read_partial_die): Now supports the call to the new
2464 dwarf2_lookup_abbrev.
2465 (read_full_die): Now supports the call to the new
2466 dwarf2_lookup_abbrev.
2467
2468 2002-10-06 Christopher Faylor <cgf@redhat.com>
2469
2470 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2471 insure that shell variables, such as "transformed_name" are propagated
2472 to later shell statements in rule.
2473
2474 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2475
2476 * config/i386/nm-i386sco.h: Add protection against
2477 multiple-inclusion. Include "i386/nm-i386v.h".
2478 (REGISTER_U_ADDR): Remove define.
2479 (i386_register_u_addr): Remove prototype.
2480
2481 2002-10-04 Michael Snyder <msnyder@redhat.com>
2482
2483 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2484 before treating it as a single-step event.
2485
2486 2002-10-03 Adam Fedor <fedor@gnu.org>
2487
2488 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2489 (objc_demangle): Remove assignment in if statements, Replace
2490 free with xfree.
2491 (add_msglist): Likewise.
2492 (end_msglist): Likewise.
2493 (complare_selectors): Likewise.
2494 (selectors_info): Likewise.
2495 (compare_classes): Likewise.
2496 (classes_info): Likewise.
2497 (print_object_command): Likewise.
2498 (find_objc_msgcall_submethod): Replace PTR with void *.
2499 * objc-lang.h: Remove check for __STDC__.
2500
2501 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2502
2503 * ui-out.h (ui_out_field_fmt_int): New prototype.
2504 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2505 of field width and alignment.
2506 * stack.c (print_frame_info_base): When printing frame level, use
2507 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2508 PR gdb/192
2509
2510 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2511
2512 * MAINTAINERS: Add self to Write After Approval list.
2513
2514 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2515
2516 * infcmd.c (interrupt_target_command_wrapper): Delete.
2517 (interrupt_target_command): Make non static.
2518 (nofp_registers_info): Make static.
2519 * stack.c (return_command_wrapper): Delete.
2520 (return_command): Make non static.
2521
2522 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2523
2524 * event-top.c (gdb_setup_readline): New function. Code moved from
2525 _initialize_event_loop().
2526 (_initialize_event_loop): Call gdb_setup_readline().
2527
2528 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2529
2530 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2531 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2532 * gdbarch.h, gdbarch.c: Re-generate.
2533
2534 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2535
2536 Fix PR gdb/778
2537 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2538 before recursing.
2539 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2540 of fill_in_vptr_fieldno.
2541
2542 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2543
2544 * inferior.h (registers_info, stepi_command, nexti_command,
2545 continue_command, interrupt_target_command): Export from infcmd.c.
2546 * frame.h (args_info, selected_frame_level_changed_hook,
2547 return_command): Export from stack.c.
2548 * v850ice.c (stepi_command, nexti_command, continue_command): use
2549 prototypes from inferior.h.
2550 * tracepoint.c (registers_info, args_info, locals_info): Use
2551 prototypes from frame.h and inferior.h.
2552 * Makefile.in (mi-main.o): Add dependency on frame.h.
2553
2554 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2555
2556 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2557 value in register 3 adjusted by ppc_gp0_regnum.
2558
2559 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2560
2561 2002-10-02 Marko Mlinar <markom@opencores.org>
2562
2563 * MAINTAINERS: Add myself to the Write After Approval list.
2564
2565 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2566
2567 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2568 of the section for the N64 ABI, fixed.
2569
2570 * config/mips/tm-irix6.h: Include solib.h.
2571
2572 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2573
2574 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2575 GNU operators.
2576
2577 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2578
2579 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2580 and that "mi0" syntax has been removed.
2581
2582 2002-09-30 David Carlton <carlton@math.stanford.edu>
2583
2584 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2585 * ppc-sysv-tdep.c: #include "gdb_string.h".
2586 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2587 pacify GCC.
2588
2589 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2590
2591 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2592 "vrsave"'s register number.
2593
2594 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2595
2596 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2597 use frame_unwind_signed_register to obtain the PC.
2598 (mips_frame_chain): Handle a generic dummy frame.
2599 (mips_init_extra_frame_info): When a generic dummy frame, don't
2600 re-compute the frame base.
2601 (mips_pop_frame): Handle generic dummy frames.
2602 (mips_gdbarch_init): When generic dummy frames, set
2603 use_generic_dummy_frames, push_dummy_frame to
2604 generic_push_dummy_frame, pc_in_call_dummy to
2605 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2606 generic_save_dummy_frame_tos.
2607
2608 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2609
2610 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2611 against TOP when TOP was explictly set.
2612 (generic_push_dummy_frame): Set TOP to zero.
2613
2614 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2615
2616 * event-loop.c (start_event_loop): Rename variable 'result' to
2617 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2618
2619 2002-09-30 Keith Seitz <keiths@redhat.com>
2620
2621 * gdb-events.sh (selected_thread_changed): New event.
2622 * gdb-events.c: Regenerated.
2623 * gdb-events.h: Regenerated.
2624
2625 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2626
2627 * MAINTAINERS: Add self to Write After Approval list.
2628
2629 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2630
2631 * disasm.c: New file.
2632 * disasm.h: New file.
2633 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2634 (compare_lines): Ditto.
2635 (dump_insns): Ditto.
2636 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2637 argument.
2638 (do_assembly_only): Ditto.
2639 (do_disassembly): Renamed to gdb_disassembly and moved to
2640 disasm.c. Sdded uiout argument.
2641 * Makefile.in: Add new files. Reorder SFILES list. Update
2642 dependencies. Include libgdb.a later in the insight executable.
2643
2644 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2645
2646 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2647 bfd/elf64-alpha-fbsd.c.
2648
2649 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2650
2651 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2652 i386gnu-tdep.c.
2653
2654 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2655
2656 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2657 __FUNCTION__.
2658 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2659 function name.
2660 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2661 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2662 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2663 (S_msg_sig_post_reply): Ditto.
2664
2665 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2666
2667 * sh-tdep.c (sh_use_struct_convention): Use definition according
2668 to ABI.
2669 (sh_push_arguments): Store in register with correct endianess.
2670 (sh_default_store_return_value): Ditto.
2671 (sh_gdbarch_init): Set sizeof long double to 8.
2672
2673 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2674
2675 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2676 Fix some whitespace problems.
2677
2678 2002-09-27 David Carlton <carlton@math.stanford.edu>
2679
2680 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2681 (mcore-tdep.o): Ditto.
2682 (ns32k-tdep.o): Ditto.
2683 (ns32knbsd-tdep.o): Ditto.
2684 (sh3-rom.o): Ditto.
2685 (vax-tdep.o): Ditto.
2686 * cris-tdep.c: #include "gdb_string.h"
2687 * mcore-tdep.c: Ditto.
2688 * ns32k-tdep.c: Ditto.
2689 * ns32knbsd-tdep.c: Ditto.
2690 * sh3-rom.c: Ditto.
2691 * vax-tdep.c: Ditto.
2692
2693 2002-09-27 David Carlton <carlton@math.stanford.edu>
2694
2695 * config/djgpp/fnchange.lst: Add entries for
2696 gdb/testsuite/gdb.c++/m-static files.
2697
2698 2002-09-27 Jim Wilson <wilson@redhat.com>
2699
2700 * MAINTAINERS: Add myself to the Write After Approval list.
2701
2702 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2703
2704 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2705
2706
2707 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2708
2709 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2710 frame.
2711
2712 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2713
2714 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2715 (rs6000_struct_return_address): Delete variable.
2716 (rs6000_store_struct_return): Update.
2717 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2718 deprecated_extract_struct_value_address.
2719 (rs6000_frame_align): New function.
2720 (rs6000_gdbarch_init): Set frame_align.
2721
2722 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2723
2724 From Grace Sainsbury <graces@redhat.com>:
2725 * Makefile.in (gdbtk-main.o): New target.
2726 (gdb.o): New target.
2727 (main_h): Define.
2728 (main.o): Update dependencies.
2729 (gdb$(EXEEXT)): Add gdb.o.
2730 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2731 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2732 (SUBDIR_GDBTK_CLEAN): Set.
2733 (install-gdbtk): Install the insight binary.
2734 (uninstall-gdbtk): New target.
2735 (all-gdbtk, clean-gdbtk): New rule.
2736 * top.c (use_windows): Default to zero.
2737 * main.c: Include "main.h".
2738 (main): Delete.
2739 (struct captured_main_args): Delete.
2740 (gdb_main): New function.
2741 * main.h: New file.
2742 * gdb.c: New File.
2743
2744 2002-09-25 Andrew Cagney <cagney@redhat.com>
2745
2746 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2747 (frame_map_regnum_to_name): New function.
2748 (frame_map_name_to_regnum): New function.
2749 * frame.h (frame_map_name_to_regnum): Declare.
2750 (frame_map_regnum_to_name): Declare.
2751 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2752 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2753 * parse.c: Do not include "builtin-regs.h".
2754 (target_map_name_to_register): Delete function.
2755 (write_dollar_variable): Use frame_map_name_to_regnum.
2756 * parser-defs.h (target_map_name_to_register): Delete declaration.
2757 * expprint.c: Include "frame.h".
2758 (print_subexp): Use frame_map_regnum_to_name.
2759 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2760 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2761
2762 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2763
2764 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2765 wasn't saved, and the next innermost frame is a dummy, return the
2766 dummy frame's link register.
2767
2768 2002-09-24 Jim Blandy <jimb@redhat.com>
2769
2770 Fix from Paul Breed:
2771 * main.c (captured_main): Add a `break' after the case for 'b'.
2772
2773 2002-09-24 Keith Seitz <keiths@redhat.com>
2774
2775 * varobj.c (c_type_of_child): Use get_target_type instead
2776 of TYPE_TARGET_TYPE.
2777
2778 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2779
2780 * source.c (get_current_or_default_source_symtab_and_line): Remove
2781 function.
2782 (set_default_source_symtab_and_line): New function. Attempts to
2783 determine a source file to list lines from if one is not currently
2784 defined.
2785 (get_current_source_symtab_and_line): Initialize sal.pc and
2786 sal.end fields.
2787 (set_current_source_symtab_and_line): Mark argument as const.
2788 * source.h: Update declarations and comments.
2789 * linespec.c (decode_line_1): Replace call to removed routine above.
2790 * stack.c (print_frame_info_base): Ditto.
2791 * cli/cli-cmds.c (edit_command): Ditto.
2792 (list_command): Ditto.
2793
2794 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2795
2796 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2797 sal.pc and sal.end fields.
2798 (get_current_or_default_source_symtab_and_line): Ditto.
2799 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2800 so we do not cause a new source symtab to be searched for (reverting an
2801 unintentional change from the 2002-09-20 patch).
2802 * scm-lang.c (scm_unpac): Ditto.
2803
2804 2002-09-21 Andrew Cagney <cagney@redhat.com>
2805
2806 * complaints.c (symfile_explanations): Remove new-line from
2807 ``isolated_message''.
2808 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2809 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2810
2811 2002-09-20 Nick Clifton <nickc@redhat.com>
2812
2813 * NEWS: Announce that V850EA ISA is no longer supported.
2814 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2815
2816 2002-09-20 David Carlton <carlton@math.stanford.edu>
2817
2818 * Makefile.in (c-lang.o): Correct dependencies.
2819 (utils.o): Gather dependencies.
2820 (charset.o): Move.
2821 * c-lang.c: #include "gdb_string.h"
2822
2823 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2824
2825 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2826 * cli/cli-cmds.c (list_command): New function. Implements the new
2827 cli edit command.
2828 (_init_cli_cmds): Add new command definition.
2829 * gdb.1: Document edit command.
2830 * doc/gdb.texinfo: Document edit command.
2831
2832 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2833
2834 * source.c: Make global variables current_source_symtab and
2835 current_source_line static.
2836 (list_command): Moved to cli/cli-cmds.c.
2837 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2838 (get_first_line_listed): New accessor function.
2839 (get_lines_to_list): New accessor function.
2840 (get_current_source_symtab_and_line): New function. Retrieves the
2841 position in the source code that we consider current.
2842 (get_current_or_default_source_symtab_and_line): New function.
2843 Like the above but attempts to determine a default position if one
2844 is not currently defined.
2845 (set_current_source_symtab_and_line): New function. Sets the source
2846 code position considered current and returns the previously set one.
2847 (clear_current_source_symtab_and_line): Reset stored information about
2848 a current source line.
2849 (_initialize_source): Remove registration for the "list" command and
2850 its alias.
2851 * source.h: Add declarations for the new functions above.
2852 * symtab.h: Remove declarations for the global variables mentioned
2853 above.
2854 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2855 obtain current source line.
2856 * linespec.c (decode_line_1): Ditto.
2857 * macroscope.c (default_macro_scope): Ditto.
2858 * scm-lang.c (scm_unpac): Ditto.
2859 * stack.c (print_frame_info_base): Ditto.
2860 * symfile.c (clear_symtab_users): Ditto.
2861 * symtab.c (decode_line_spec): Ditto.
2862 * cli/cli-cmds.c (list_command): Moved here from source.c.
2863 (ambiguous_line_spec): Moved here from source.c.
2864 (_init_cli_cmds): Add definition for "list" and its alias.
2865 * Makefile.in: Update dependencies.
2866
2867 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2868
2869 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2870 with what gcc thinks is correct.
2871
2872 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2873
2874 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2875 multiple register push instruction.
2876
2877 2002-09-19 Jim Blandy <jimb@redhat.com>
2878
2879 Add support for distinct host and target character sets.
2880 * charset.c, charset.h: New files.
2881 * c-exp.y: #include "charset.h".
2882 (yylex): Convert character and string literals to the target
2883 character set, before returning them as the semantic value of the
2884 token.
2885 * c-lang.c: #include "charset.h".
2886 (c_emit_char): Use charset-specific methods to recognize
2887 characters with backslash escape forms, to decide which characters
2888 to print literally and which to print using numeric escape
2889 sequences, and to convert target characters to host characters
2890 before printing.
2891 * utils.c: #include "charset.h".
2892 (no_control_char_error): New function.
2893 (parse_escape): Use charset-specific methods to recognize
2894 backslash escapes, parse `control character' notation, and convert
2895 characters from the host character set to the target character set.
2896 * configure.in: Set the default host character set.
2897 Check where to find iconv, and what its argument types might be.
2898 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2899 * Makefile.in (SFILES): List charset.c.
2900 (COMMON_OBS): List charset.o.
2901 (charset.o): New rule.
2902 (charset_h): New header dependency variable.
2903 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2904 (LIBICONV): New variable, set by configure.
2905 (CLIBS): Include $(LIBICONV) here.
2906 * aclocal.m4, config.in, configure: Regenerated.
2907
2908 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2909
2910 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2911 bison 1.35 warning.
2912
2913 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2914
2915 * gdb_mbuild.sh: New file.
2916
2917 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2918
2919 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2920
2921 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2922
2923 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2924 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2925 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2926 valops.c, value.h: Revert previous change.
2927
2928 2002-09-18 Michael Snyder <msnyder@redhat.com>
2929
2930 Preliminary support for Objective-C:
2931 * defs.h (language_objc): New enum value.
2932 (puts_filtered_tabular): Declaration only, exported from utils.c.
2933 (skip_quoted): Delete, declared in completer.h.
2934 * c-exp.y: Include completer.h.
2935 * p-exp.y: Ditto.
2936 * jv-exp.y: Ditto.
2937 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2938 New operator enum values.
2939 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2940 * language.c (binop_result_type): Handle language_objc case.
2941 (integral_type, character_type, string_type, boolean_type,
2942 structured_type, binop_type_check): Ditto.
2943 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2944 (struct objc_specific): Add to general_symbol_info.
2945 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2946 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2947 * parser-defs.h (struct objc_class_str): New struct type.
2948 (start_msglist, end_msglist, add_msglist): Declaration only,
2949 exported from objc-lang.c.
2950 * value.h (value_of_local, value_nsstring,
2951 call_function_by_hand_expecting_type): Exported from valops.c.
2952 * valops.c (find_function_addr): Export.
2953 (call_function_by_hand_expecting_type): New function.
2954 (value_of_local): New function.
2955 * symfile.c (init_filename_language_table): Add ".m" extension
2956 for Objective-C.
2957 * utils.c (puts_filtered_tabular): New function.
2958 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2959 (set/show demangle): Extend help-string to refer to ObjC.
2960 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2961 * stabsread.c (symbol_reference_defined): Objective-C symbols
2962 may contain colons: make allowances when scanning stabs strings
2963 for colons.
2964 (objc_find_colon): New function.
2965 * printcmd.c (address_info): If language == objc then print
2966 "self" instead of "this".
2967 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2968 OP_NSSTRING, and OP_SELF.
2969 (prefixify_subexp): Ditto.
2970 * source.c (print_source_lines): Mention objc in comment.
2971 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2972 method names.
2973
2974 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2975
2976 * complaints.h: Update copyright.
2977 (struct complaints): Declare.
2978 (struct complaint): Make `message' constant.
2979 (internal_complaint): Declare.
2980 (complaint): Declare.
2981 (complaint_root): Delete declaration.
2982 (symfile_complaints): Delete declaration.
2983 (struct complaints): Add opaque declaration.
2984 (clear_complaints): Add a complaints parameter.
2985 * complaints.c: Update copyright.
2986 (enum complaint_series): Define.
2987 (complaint_root): Delete.
2988 (struct complaints): Define.
2989 (complaint_sentinel, symfile_complaint_book): New variables.
2990 (symfile_explanations, symfile_complaints): New variables.
2991 New variables.
2992 (get_complaints): New function.
2993 (vcomplaint): New function.
2994 (complaint): New function.
2995 (internal_complaint): New function.
2996 (complain): Call vcomplain with symfile_complaint.
2997 (clear_complaints): Rewrite.
2998 (_initialize_complaints): Use add_setshow_command.
2999 * Makefile.in (complaints.o): Update dependencies.
3000 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3001 to call to clear_complaints.
3002 (new_symfile_objfile, reread_symbols): Ditto.
3003 (oldsyms_complaint): Delete.
3004 (empty_symtab_complaint, unknown_option_complaint): Delete.
3005 (free_named_symtabs): Use complaint instead of complain.
3006
3007 2002-09-18 Michael Snyder <msnyder@redhat.com>
3008
3009 Contributed by Apple Computer, Inc. Merged with current sources
3010 by Adam Fedor <fedor@doc.com> [cagney].
3011
3012 * objc-lang.c: First clean-up round: comments, indentation.
3013 * objc-lang.h: Ditto.
3014 * objc-lang.y: Ditto.
3015
3016 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3017
3018 * maint.c (maintenance_internal_error): Print the parameter as the
3019 error message.
3020 (maintenance_internal_warning): New function.
3021 (_initialize_maint_cmds): Add command `maint internal-warning'.
3022
3023 * defs.h (internal_warning, internal_vwarning): Declare.
3024 * utils.c (struct internal_problem): Define.
3025 (internal_vproblem): New function.
3026 (internal_warning): New function.
3027 (internal_vwarning): New function.
3028 (internal_warning_problem, internal_error_problem): New variables.
3029 (internal_verror): Just call internal_vproblem.
3030
3031 2002-09-18 Michael Snyder <msnyder@redhat.com>
3032
3033 * objc-lang.c: New file, support for Objective-C.
3034 Preliminary check-in, not yet integrated into gdb.
3035 * objc-lang.h: New file.
3036 * objc-exp.y: New file.
3037
3038 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3039
3040 * infrun.c (signal_stop_update): Convert definition to ISO C.
3041 (signal_print_update): Ditto.
3042 (signal_pass_update): Ditto.
3043 * inflow.c (terminal_save_ours): Ditto.
3044
3045 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3046 comments.
3047
3048 * config/djgpp/fnchange.lst: Handle name clashes between
3049 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3050 bfd/coff-tic80.c.
3051
3052 * i386-linux-tdep.h: Fix tipo.
3053
3054 2002-09-18 Adam Fedor <fedor@gnu.org>
3055
3056 * MAINTAINERS: Add myself to the Write After Approval list.
3057
3058 2002-09-18 Jim Blandy <jimb@redhat.com>
3059
3060 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3061 texthigh and textlow to reader-specific structs caused
3062 objfile_relocate to miss them. This is fixable, but the work that
3063 the change was supposed to prepare GDB for never got done anyway.
3064
3065 2002-09-18 David Carlton <carlton@math.stanford.edu>
3066
3067 * MAINTAINERS: Alphabetize Write After Approval list.
3068
3069 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3070
3071 Fix PR gdb/709
3072 * values.c (value_static_field): Call read_var_value.
3073
3074 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3075
3076 * valops.c (hand_function_call): Align the initial stack pointer
3077 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3078 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3079 return value.
3080 * mips-tdep.c (mips_frame_align): New function.
3081 (mips_gdbarch_init): Set frame_align.
3082 * gdbarch.sh (FRAME_ALIGN): New method.
3083 * gdbarch.h, gdbarch.c: Re-generate.
3084
3085 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3086
3087 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3088 registers.
3089
3090 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3091
3092 * NEWS: Mention that MIPS $fp behavior changed.
3093 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3094 reference to FP_REGNUM.
3095 (mipsnbsd_cannot_store_register): Ditto.
3096 * mips-linux-nat.c: Update copyright.
3097 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3098 (mips_linux_cannot_store_register): Ditto.
3099 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3100 * config/mips/tm-mips.h: Update copyright.
3101 (FP_REGNUM): Delete macro.
3102 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3103 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3104 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3105 (mips_r3041_reg_names, mips_r3051_reg_names)
3106 (mips_r3081_reg_names): Replace "fp" with "".
3107 Fix PR gdb/480.
3108
3109 2002-09-17 Theodore A. Roth <troth@verinet.com>
3110
3111 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3112 generic_read_register_dummy() (PR gdb/703).
3113 (avr_push_return_address): #if 0 out unused vars.
3114 (avr_gdbarch_init): Enable use of avr_push_return_address().
3115
3116 2002-09-17 Michael Snyder <msnyder@redhat.com>
3117
3118 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3119 RTE will take care of it.
3120
3121 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3122
3123 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3124 invalid, return SP_REGNUM.
3125
3126 2002-09-17 Michael Snyder <msnyder@redhat.com>
3127
3128 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3129 point registers without sign extension.
3130
3131 2002-09-17 Andrew Cagney <cagney@redhat.com>
3132
3133 * blockframe.c (deprecated_read_register_dummy): Rename
3134 generic_read_register_dummy.
3135 * frame.c (frame_unwind_signed_register): New function.
3136 (frame_unwind_unsigned_register): New function.
3137 * frame.h (frame_unwind_signed_register): Declare.
3138 (frame_unwind_unsigned_register): Declare.
3139 (deprecated_read_register_dummy): Rename
3140 generic_read_register_dummy.
3141
3142 * h8300-tdep.c (h8300_frame_chain): Update.
3143 (h8300_frame_saved_pc): Update.
3144 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3145 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3146 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3147 (s390_frame_chain): Update.
3148 * v850-tdep.c (v850_find_callers_reg): Update.
3149 (v850_frame_saved_pc): Update.
3150 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3151 (m32r_find_callers_reg): Update.
3152 (m32r_frame_saved_pc): Update.
3153 * sh-tdep.c (sh_find_callers_reg): Update.
3154 (sh64_get_saved_pr): Update.
3155 (sh_init_extra_frame_info): Update.
3156 (sh_init_extra_frame_info): Update.
3157 (sh64_init_extra_frame_info): Update.
3158 (sh64_init_extra_frame_info): Update.
3159 * mcore-tdep.c (mcore_find_callers_reg): Update.
3160 (mcore_frame_saved_pc): Update.
3161 (mcore_init_extra_frame_info): Update.
3162 * i386-tdep.c (i386_frame_saved_pc): Update.
3163 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3164 (ia64_init_extra_frame_info): Update.
3165 (ia64_init_extra_frame_info): Update.
3166 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3167 * cris-tdep.c (cris_init_extra_frame_info): Update.
3168 * avr-tdep.c (avr_frame_chain): Update.
3169 (avr_init_extra_frame_info): Update.
3170 (avr_frame_saved_pc): Update.
3171 * arm-tdep.c (arm_find_callers_reg): Update.
3172 (arm_init_extra_frame_info): Update.
3173 (arm_frame_saved_pc): Update.
3174
3175 2002-09-17 Tom Tromey <tromey@redhat.com>
3176
3177 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3178 is "'".
3179
3180 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3181
3182 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3183 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3184 NEXT_PROLOGUE_INSN.
3185 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3186 NEXT_PROLOGUE_INSN.
3187
3188 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3189
3190 * osfsolib.c: Remove file, replaced by solib-osf.c.
3191 * Makefile.in: Remove compilation rules for osfsolib.c.
3192
3193 2002-09-16 David Carlton <carlton@math.stanford.edu>
3194
3195 * cp-valprint.c (cp_print_class_method): Correct args to
3196 check_stub_method_group.
3197
3198 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3199
3200 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3201 `set architecture'. Unify naming convention of functions.
3202 (h8300_skip_prologue): Improve prologue analysis.
3203 (h8300_push_arguments): Rewritten to more closely match GCC's
3204 bizarre argument-passing behavior, along with the comment describing
3205 said behavior.
3206 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3207 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3208 sim, remote-e7000.c, remote-hms.c and remote.c
3209
3210 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3211
3212 * i386-tdep.c (gdb_print_insn_i386): Removed.
3213 (i386_print_insn): New function.
3214 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3215 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3216 tm_print_insn_info.
3217
3218 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3219
3220 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3221 zero.
3222
3223 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3224
3225 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3226 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3227 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3228
3229 2002-09-13 Christopher Faylor <cgf@redhat.com>
3230
3231 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3232
3233 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3234
3235 * gdbtypes.c (check_stub_method): Make static.
3236 (check_stub_method_group): New function.
3237 * gdbtypes.h: Update prototypes.
3238 * cp-support.c: New file.
3239 * cp-support.h: New file.
3240
3241 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3242 (update_method_name_from_physname): New function.
3243 (read_member_functions): Correct method names for operators
3244 and v3 constructors/destructors. Separate v2 constructors and
3245 destructors.
3246 * Makefile.in (stabsread.o): Update dependencies.
3247 (SFILES): Add cp-support.c.
3248 (COMMON_OBS): Add cp-support.o.
3249 (cp_support_h, cp-support.o): Add.
3250
3251 * cp-valprint.c (cp_print_class_method): Call
3252 check_stub_method_group instead of check_stub_method. Remove
3253 extraneous QUITs.
3254 * p-valprint.c (pascal_object_print_class_method): Likewise.
3255 * valops.c (search_struct_method): Likewise.
3256 (find_method_list, value_struct_elt_for_reference): Likewise.
3257
3258 2002-09-13 Andrew Cagney <cagney@redhat.com>
3259
3260 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3261 * gdbarch.h, gdbarch.c: Regenerate.
3262
3263 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3264
3265 * frame.c (find_saved_register): Delete function.
3266 * frame.h (find_saved_register): Delete declaration.
3267 Fix PR gdb/631.
3268
3269 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3270
3271 * mips-tdep.c (read_next_frame_reg): Re-hack using
3272 frame_register_unwind.
3273
3274 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3275
3276 * mips-tdep.c (mips_get_saved_register): Re-hack using
3277 frame_register_unwind.
3278
3279 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3280
3281 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3282 vector. Will be useful for Interix.
3283 * gdbarch.h, gdbarch.c: Regenerate.
3284
3285 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3286 name of the malloc function by NAME_OF_MALLOC.
3287
3288 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3289
3290 * value.h (find_function_in_inferior): Add const keyword to
3291 one of the parameters. Allows us to invoke this function with
3292 a const char *.
3293 * valops.c (find_function_in_inferior): Likewise.
3294
3295 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3296
3297 * exec.c (xfer_memory): Fix compilation warning with old versions
3298 of GCC.
3299 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3300
3301 2002-09-12 David Carlton <carlton@math.stanford.edu>
3302
3303 * symtab.h: Run through gdb_indent.h.
3304 Add 2002 to Copyright year list.
3305
3306 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3307
3308 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3309 mach constants.
3310 * MAINTAINERS: Add myself to write after approval list.
3311
3312 2002-09-11 J. Brobecker <brobecker@gnat.com>
3313
3314 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3315
3316 2002-09-11 J. Brobecker <brobecker@gnat.com>
3317
3318 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3319 Interix.
3320
3321 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3322
3323 * procfs.c (do_detach): Clear current signal, not just fault.
3324 Corrects problem with breakpoint trap signal leaking to detached
3325 process on Tru64.
3326
3327 2002-09-10 Michael Snyder <msnyder@redhat.com>
3328
3329 * buildsym.c (finish_block): Protect against null pointer.
3330
3331 2002-09-10 Andrew Cagney <cagney@redhat.com>
3332
3333 * infcmd.c (default_print_registers_info): Send all output to
3334 ``file'' instead of ``gdb_stdout''.
3335
3336 2002-09-10 Michael Snyder <msnyder@redhat.com>
3337
3338 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3339 LONGEST, and use signed register read (addresses are sign-
3340 extended for mips).
3341
3342 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3343
3344 * event-loop.c (gdb_do_one_event): Make public.
3345 * event-loop.h (gdb_do_one_event): Declare.
3346
3347 2002-09-10 Jeff Law <law@redhat.com>
3348
3349 * infttrace.c (child_resume): Simplify and rework to avoid
3350 TT_PROC_CONTINUE.
3351
3352 2002-09-09 Fred Fish <fnf@intrinsity.com>
3353
3354 * printcmd.c (print_scalar_formatted): "len" is the number of
3355 target bytes, NOT the number of target bits.
3356
3357 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3358
3359 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3360 * top.c (init_main): Set rl_terminal_name.
3361
3362 2002-09-08 Aidan Skinner <aidan@velvet.net>
3363
3364 * ada-lang.c (ada_array_bound, ada_type_match,
3365 _initialize_ada_language): Fix K&R definitions.
3366 * ada-tasks.c (get_current_task): Fix K&R definitions.
3367 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3368
3369 2002-09-07 Christopher Faylor <cgf@redhat.com>
3370
3371 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3372 Add XP.
3373
3374 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3375
3376 * i386-tdep.c (i386_register_virtual_type,
3377 i386_register_convertible, i386_register_convert_to_virtual,
3378 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3379 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3380 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3381 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3382 Don't set push_arguments twice.
3383
3384 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3385 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3386 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3387 sigtramp_end to NULL.
3388 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3389 defines.
3390 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3391
3392 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3393 whitespace.
3394
3395 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3396 * gdbarch.h, gdbarch.c: Re-generate.
3397 * blockframe.c (find_pc_sect_partial_function): Convert to use
3398 SIGTRAMP_START_P predicate.
3399
3400 2002-09-05 Michael Snyder <msnyder@redhat.com>
3401
3402 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3403 generic_dummy_frame method and old method. Also distinguish
3404 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3405 (arm_extract_return_value): Use new regcache method.
3406
3407 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3408 adjustment that doesn't conform to the ABI.
3409 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3410 saved regcache, not from current regcache.
3411
3412 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3413
3414 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3415 * README: Update.
3416
3417 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3418
3419 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3420 if arm_apcs_32 is false.
3421
3422 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3423
3424 GDB 5.3 branch created.
3425
3426 2002-09-03 Theodore A. Roth <troth@verinet.com>
3427
3428 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3429 generic_unwind_get_saved_register.
3430
3431 2002-09-03 David Carlton <carlton@math.stanford.edu>
3432
3433 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3434 argument (PR gdb/653). Update call to smash_to_method_type.
3435 (read_structure_scope): Update call to dwarf2_add_member_fn.
3436
3437 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3438
3439 * x86-64-linux-tdep.c: Include gdb_string.h
3440 * x86-64-linux-nat.c: Ditto.
3441
3442 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3443
3444 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3445 when YYDEBUG is set to 1.
3446 * c-exp.y: Likewise.
3447 * f-exp.y: Likewise.
3448 * jv-exp.y: Likewise.
3449 * m2-exp.y: Likewise.
3450 * p-exp.y: Likewise.
3451
3452 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3453
3454 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3455 dependency list.
3456 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3457 solib_svr4_fetch_link_map_offsets to
3458 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3459 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3460 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3461 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3462 solib-svr4.o, and solib-legacy.o.
3463 * config/i386/tm-nbsd.h: Include solib.h.
3464
3465 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3466
3467 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3468 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3469 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3470 comment noting that this needs its own target configuration.
3471 * config/i386/nbsd.mt: New file.
3472 * config/i386/nbsdaout.mt: Remove.
3473 * config/i386/nbsdelf.mt: Ditto.
3474 * config/i386/tm-nbsdaout.h: Ditto.
3475
3476 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3477
3478 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3479 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3480 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3481 tdep->sigtramp_end.
3482 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3483 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3484 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3485
3486 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3487
3488 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3489 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3490 * i386-tdep.h (i386bsd_init_abi): New prototype.
3491 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3492 function declaration.
3493 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3494 for NetBSD-a.out or NetBSD-ELF.
3495 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3496 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3497 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3498 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3499 and nbsd-tdep.h.
3500 (i386nbsd_pc_in_sigtramp): New function.
3501 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3502 i386nbsd_pc_in_sigtramp.
3503 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3504 and i386nbsdelf_init_abi OS ABI handlers.
3505 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3506 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3507
3508 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3509
3510 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3511 registers if the target really has them.
3512
3513 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3514
3515 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3516 than nbsd-tdep.h.
3517
3518 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3519
3520 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3521 list.
3522 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3523 (alphanbsd_skip_sigtramp_frame): New functions.
3524 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3525 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3526 to alphanbsd_sigcontext_addr.
3527
3528 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3529
3530 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3531 list.
3532 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3533 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3534 nbsd_pc_in_sigtramp.
3535 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3536 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3537 * nbsd-tdep.c: Include gdb_string.h.
3538 (nbsd_pc_in_sigtramp): New function.
3539 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3540 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3541 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3542 ppcnbsd_pc_in_sigtramp.
3543 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3544 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3545 shnbsd_pc_in_sigtramp.
3546 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3547 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3548 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3549
3550 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3551
3552 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3553 watchpoints to NULL.
3554 (insert_breakpoints): set val field of watchpoints if NULL.
3555
3556
3557 2002-08-29 Jim Blandy <jimb@redhat.com>
3558
3559 * symtab.c (lookup_symbol_aux): In the cases where we find a
3560 minimal symbol of an appropriate name and use its address to
3561 select a symtab to read and search, use `name' (as passed to us)
3562 as the demangled name when searching the symtab's global and
3563 static blocks, not the minsym's name.
3564
3565 2002-08-29 Keith Seitz <keiths@redhat.com>
3566
3567 * stack.c (print_frame_info_base): Always set current_source_symtab
3568 and current_source_line.
3569
3570 2002-08-29 Donn Terry <donnte@microsoft.com>
3571
3572 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3573
3574 2002-08-28 Keith Seitz <keiths@redhat.com>
3575
3576 * stack.c (select_frame): Add FIXME concerning selected-frame
3577 events.
3578 (select_frame_command): Send selected-frame-level-changed
3579 event notification, but only if the level actually changed.
3580 (up_silently_base): Add selected-frame-level-changed event
3581 notification.
3582 (down_silently_base): Likewise.
3583
3584 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3585
3586 * Makefile.in: Update dependencies for all gdb/*.c files.
3587
3588 2002-08-27 Tom Tromey <tromey@redhat.com>
3589
3590 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3591 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3592 Update dependencies.
3593 * i387-tdep.c: Include gdb_string.h.
3594 * osabi.c: Likewise.
3595 * i386-linux-nat.c: Likewise.
3596 * lin-lwp.c: Likewise.
3597 * ax-gdb.c: Likewise.
3598 * signals/signals.c: Likewise.
3599 * jv-valprint.c: Likewise.
3600 * p-lang.c: Likewise.
3601 * c-valprint.c: Likewise.
3602 * cp-abi.c: Likewise.
3603
3604 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3605
3606 * cli/cli-script.h (copy_command_lines): Export.
3607 * breakpoint.c: Include cli/cli-script.h.
3608 * Makefile.in (breakpoint.o): Update dependencies.
3609
3610 2002-08-26 Michael Snyder <msnyder@redhat.com>
3611
3612 * breakpoint.c (insert_breakpoints): Protect all references
3613 to 'process_warning'. Shorten long lines.
3614
3615 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3616
3617 * cli/cli-script.c (copy_command_lines): New function.
3618 * defs.h (copy_command_lines): Export.
3619 * testsuite/gdb.base/commands.exp: New tests for commands
3620 attached to a temporary breakpoint, and for commands that
3621 delete the breakpoint they are attached to.
3622
3623 2002-08-26 Michael Snyder <msnyder@redhat.com>
3624
3625 * breakpoint.c (bpstat_stop_status): Instead of copying the
3626 pointer to the breakpoint commands struct, make a new copy
3627 of the struct and point to that.
3628 (bpstat_clear): Free the commands struct.
3629 (bpstat_clear_actions): Free the commands struct.
3630 (bpstat_do_actions): Free the command actions. Also execute
3631 the local cleanups, instead of deleting them.
3632 (delete_breakpoint): Leave the commands field of the bpstat
3633 chain alone -- it will be freed later.
3634
3635 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3636
3637 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3638 deleted in 2002-08-20 commit. This function is still used by
3639 ppc-linux-nat.c.
3640
3641 2002-08-26 Keith Seitz <keiths@redhat.com>
3642
3643 * gdb-events.sh: Add selected-frame-level-changed event.
3644 * gdb-events.c: Regenerated.
3645 * gdb-events.h: Regenerated.
3646
3647 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3648
3649 Fix PR gdb/393:
3650 * inflow.c (terminal_save_ours): New function to save terminal
3651 settings.
3652 * inferior.h (terminal_save_ours): Declare.
3653 * target.c (debug_to_terminal_save_ours): New function.
3654 (cleanup_target): Defaults to_terminal_save_ours.
3655 (update_current_target): Inherit to_terminal_save_ours.
3656 (setup_target_debug): Set to_terminal_save_ours.
3657 * target.h (target_terminal_save_ours): New to save terminal settings.
3658 (target_ops): New member to_terminal_save_ours.
3659 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3660 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3661 * inftarg.c (init_child_ops): Likewise.
3662 * m3-nat.c (init_m3_ops): Likewise.
3663 * procfs.c (init_procfs_ops): Likewise.
3664 * wince.c (init_child_ops): Likewise.
3665 * win32-nat.c (init_child_ops): Likewise.
3666 * sol-thread.c (init_sol_thread_ops): Likewise.
3667
3668 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3669
3670 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3671 use regcache_* functions.
3672 (i386_gdbarch_init): Set store_return_value instead of
3673 deprecated_store_return_value.
3674
3675 * regcache.c (regcache_raw_write_signed,
3676 regcache_raw_write_unsigned): New functions.
3677 * regcache.h (regcache_raw_write_signed,
3678 regcache_raw_write_unsigned): New prototypes.
3679
3680 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3681
3682 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3683 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3684 source file dependencies. Cleanup corresponding generator rules.
3685
3686 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3687
3688 * regcache.h (register_offset_hack): Declare.
3689 (regcache_cooked_read_using_offset_hack): Declare.
3690 (regcache_cooked_write_using_offset_hack): Declare.
3691
3692 * regcache.c (register_offset_hack): New function.
3693 (regcache_cooked_read_using_offset_hack): New function.
3694 (regcache_cooked_write_using_offset_hack): New function.
3695 (regcache_dump): Check that the registers, according to their
3696 offset, are packed hard against each other.
3697 (cooked_xfer_using_offset_hack): New function.
3698
3699 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3700
3701 * regcache.c (struct regcache_descr): Add field register_type.
3702 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3703 in as a parameter
3704 (init_regcache_descr): Initialize register_type. Pass the descr
3705 to init_legacy_regcache_descr. Use register_type instead of
3706 REGISTER_VIRTUAL_TYPE.
3707 (register_type): New function.
3708 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3709 * regcache.h (register_type): Declare.
3710
3711 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3712
3713 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3714 instead of deprecated_store_return_value. Fix fallout from
3715 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3716
3717 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3718
3719 * regcache.c (max_register_size): New function.
3720 (init_legacy_regcache_descr): Ensure that max_register_size is
3721 large enough for REGISTER_VIRTUAL_SIZE.
3722 * regcache.h (max_register_size): Declare.
3723
3724 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3725
3726 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3727 store_return_value.
3728 (e500_extract_return_value): Change type of valbuf pointer to
3729 void.
3730
3731 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3732
3733 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3734 workaround.
3735
3736 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3737 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3738 long long) to prevent compiler warning on 64-bit systems.
3739
3740 2002-08-23 Andrew Cagney <cagney@redhat.com>
3741
3742 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3743 (DEPRECATED_STORE_RETURN_VALUE): New method.
3744 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3745 * gdbarch.h, gdbarch.c: Re-generate.
3746
3747 * values.c (set_return_value): Pass current_regcache to
3748 STORE_RETURN_VALUE.
3749 * arch-utils.h (legacy_store_return_value): Declare.
3750 * arch-utils.c (legacy_store_return_value): New function.
3751 (legacy_extract_return_value): Update parameters.
3752
3753 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3754 STORE_RETURN_VALUE.
3755 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3756 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3757 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3758 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3759 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3760 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3761 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3762 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3763 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3764 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3765
3766 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3767 * i386-tdep.c (i386_extract_return_value): Update.
3768 * arch-utils.c (legacy_extract_return_value): Update.
3769 * frv-tdep.c (frv_gdbarch_init): Update.
3770 * cris-tdep.c (cris_gdbarch_init): Update.
3771 * d10v-tdep.c (d10v_gdbarch_init): Update.
3772 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3773 * m68k-tdep.c (m68k_gdbarch_init): Update.
3774 * mcore-tdep.c (mcore_gdbarch_init): Update.
3775 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3776 * s390-tdep.c (s390_gdbarch_init): Update.
3777 * sparc-tdep.c (sparc_gdbarch_init): Update.
3778 * sh-tdep.c (sh_gdbarch_init): Update.
3779 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3780 * v850-tdep.c (v850_gdbarch_init): Update.
3781 * avr-tdep.c (avr_gdbarch_init): Update.
3782 * ia64-tdep.c (ia64_gdbarch_init): Update.
3783 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3784 * vax-tdep.c (vax_gdbarch_init): Update.
3785 * alpha-tdep.c (alpha_gdbarch_init): Update.
3786 * arm-tdep.c (arm_gdbarch_init): Update.
3787 * mips-tdep.c (mips_gdbarch_init): Update.
3788 * i386-tdep.c (i386_gdbarch_init): Update.
3789
3790 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3791
3792 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3793 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3794
3795 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3796
3797 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3798 problems.
3799
3800 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3801
3802 * infrun.c (handle_inferior_event): Move a comment outside of a
3803 function call, in order to avoid indent reformatting this part
3804 of the code in an unreadable way.
3805
3806 2002-08-23 Grace Sainsbury <graces@redhat.com>
3807
3808 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3809 when breakpoints fail. Move general breakpoint error messages to
3810 insert_breakpoints.
3811 * breakpoint.c (insert_breakpoints): Change warnings when
3812 breakpoints are nto inserted to specify the type. Remove call to
3813 memory_error when hardware breakpoints can't be inserted. Remove
3814 multiple calls to warning so all messages are sent to the user at
3815 once.
3816 (delete_breakpoints): Make insert error messsages more explicit.
3817
3818 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3819
3820 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3821 gdbserver/ChangeLog.
3822
3823 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3824
3825 * i386-tdep.c: Include "objfiles.h".
3826 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3827 skip_trampoline_code.
3828 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3829 (CPLUS_MARKER): Define to '.'.
3830
3831 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3832 member.
3833 (linux_corefile_thread_callback): Increase args->num_notes.
3834 (linux_make_note_section): Initialize thread_args.num_notes, and
3835 use it to determine whether notes for any threads were created.
3836
3837 2002-08-23 Donn Terry <donnte@microsoft.com>
3838
3839 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3840 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3841 and PCUNKILL.
3842 (write_with_trace): Conditionalize out the switch branch handling
3843 PCSHOLD if the corresponding macro is not defined. Likewise for
3844 PRSABORT and PRSTOP.
3845 This change will be needed by the Interix port.
3846
3847 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3848
3849 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3850 write_register wherever possible instead of manipulating the
3851 register bytes directly.
3852 Assign VALUE_CONTENTS to a variable and use that.
3853 The GPR numbers are now dependent on the architecture.
3854
3855 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3856
3857 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3858 ev_offset fields.
3859 (skip_prologue): Add support for BookE/e500 instructions.
3860 (e500_extract_return_value): New function.
3861 (frame_get_saved_regs): Add support for saving ev registers and
3862 pseudo gpr's.
3863 (e500_store_return_value): New function.
3864 (rs6000_gdbarch_init): Move up default intializations of
3865 deprecated_extract_return_value and store_return_value. Overwrite
3866 init of store_return_value with e500 specific version.
3867 Set extract_return_value for e500.
3868
3869 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3870
3871 * blockframe.c (generic_call_dummy_register_unwind): Use
3872 regcache_cooked_read to catch cases in which the variable is
3873 stored in a pseudo register.
3874
3875 2002-08-22 Andrew Cagney <cagney@redhat.com>
3876
3877 * NEWS: Mention that the i960 has been made obsolete.
3878 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3879 i960-tdep.c
3880 (remote-nrom.o): Obsolete target.
3881 (remote-nindy.o, i960-tdep.o): Ditto.
3882 * remote-nrom.c: Make file obsolete.
3883 * remote-nindy.c, remote-vx960.c: Ditto.
3884 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3885 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3886 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3887 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3888 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3889 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3890 i960-*-vxworks* obsolete.
3891 * MAINTAINERS: Note that the i960 is obsolete.
3892
3893 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3894
3895 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3896 detach to allow reinitialization.
3897
3898 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3899
3900 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3901 attempt).
3902
3903 2002-08-22 Jim Blandy <jimb@redhat.com>
3904
3905 * coffread.c (coff_symfile_read): Don't try to read the line
3906 number table from disk if the image file doesn't have a symbol
3907 table; we'll never actually look at the info anyway, and Windows
3908 ships DLL's with bogus file offsets for the line number data.
3909
3910 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3911
3912 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3913 an e500 executable.
3914
3915 2002-08-21 Michael Snyder <msnyder@redhat.com>
3916
3917 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3918 (MSYMBOL_SIZE): Replace macro with function.
3919 (DEFAULT_MIPS_TYPE): Delete unused macro.
3920 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3921 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3922
3923 2002-08-21 Jim Blandy <jimb@redhat.com>
3924
3925 * valops.c (value_cast): Simplify and correct logic for doing a
3926 static cast from a pointer to a base class to a pointer to a
3927 derived class.
3928
3929 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3930
3931 * infcmd.c (default_print_registers_info): Replace
3932 do_registers_info.
3933 (registers_info): Use gdbarch_print_registers_info instead of
3934 DO_REGISTERS_INFO.
3935 * inferior.h (default_print_registers_info): Replace
3936 do_registers_info.
3937 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3938 (DO_REGISTERS_INFO): Change to a predicate function.
3939 * gdbarch.h, gdbarch.c: Regenerate.
3940
3941 2002-08-21 Keith Seitz <keiths@redhat.com>
3942
3943 * gdb-events.sh: Add target-changed event.
3944 * gdb-events.c: Regenerated.
3945 * gdb-events.c: Regenerated.
3946 * valops.c (value_assign): Add target-changed event notification
3947 to inlval_register, lval_memory, and lval_reg_frame_relative.
3948
3949 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3950
3951 * NEWS: Add an entry regarding the improvement of the next/step
3952 operation on Alpha Tru64 multi-processor machines.
3953
3954 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3955
3956 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3957 directores.
3958 * Makefile.in: Update all _h macro definitions.
3959 * Makefile.in (install-gdbtk): Move to install section.
3960 (rdi-share/libangsd.a): Move to end of file.
3961
3962 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3963
3964 * frame.c (frame_register_unwind): When a register, set addrp to
3965 the register's byte.
3966
3967 2002-08-20 Michael Snyder <msnyder@redhat.com>
3968
3969 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3970 used locally, so move them from the target machine header to here.
3971 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3972 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3973 Make static.
3974 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3975
3976 2002-08-20 Andrew Cagney <cagney@redhat.com>
3977
3978 * NEWS: Mention that the Apollo line was made obsolete.
3979 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3980 m68*-hp-hpux* obsolete.
3981 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3982 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3983 * buildsym.c (make_blockvector): Make static.
3984 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3985 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3986 (ALLDEPFILES): Remove dstread.c.
3987 (dstread.o): Obsolete make rule.
3988 * dstread.c: Makefile obsolete.
3989 * dst.h: Ditto.
3990 * config/m68k/hp300hpux.mt: Ditto.
3991 * config/m68k/hp300hpux.mh: Ditto.
3992 * config/m68k/hp300bsd.mt: Ditto.
3993 * config/m68k/hp300bsd.mh: Ditto.
3994 * config/m68k/apollo68b.mt: Ditto.
3995 * config/m68k/apollo68v.mh: Ditto.
3996 * config/m68k/apollo68b.mh: Ditto.
3997
3998 2002-08-20 Michael Snyder <msnyder@redhat.com>
3999
4000 * mips-tdep.c (mips_in_return_stub): Make static.
4001 (mips_gdbarch_init): Set in_solib_return_trampoline.
4002 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4003
4004 2002-08-20 Michael Snyder <msnyder@redhat.com>
4005
4006 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4007 * gdbarch.c, gdbarch.h: Regenerate.
4008 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4009 Add.
4010 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4011
4012 2002-08-20 Michael Snyder <msnyder@redhat.com>
4013
4014 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4015 (mips_gdbarch_init): Set skip_trampoline_code,
4016 in_solib_call_trampoline.
4017 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4018 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4019
4020 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4021
4022 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4023
4024 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4025 vector type for ev registers.
4026 (e500_pseudo_register_read): New function.
4027 (e500_pseudo_register_write): New function.
4028 (e500_dwarf2_reg_to_regnum): New function.
4029 (PPC_UISA_NOFP_SPRS): New macro.
4030 (PPC_EV_REGS): New macro.
4031 (PPC_GPRS_PSEUDO_REGS): New macro.
4032 (registers_e500): New register set for e500.
4033 (variants): Add e500 variant.
4034 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4035 before setting architectural dependent variations. Initialize ev
4036 registers numbers. Add case for e500 architecture. Set the
4037 number of pseudo registers.
4038
4039 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4040
4041 * rs6000-tdep.c: Clean up comments.
4042
4043 2002-08-20 Andrew Cagney <cagney@redhat.com>
4044
4045 * h8300-tdep.c: Re-indent file.
4046
4047 2002-08-20 Jim Blandy <jimb@redhat.com>
4048
4049 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4050 default for this.
4051
4052 2002-08-20 Keith Seitz <keiths@redhat.com>
4053
4054 * breakpoints.c (watch_command_1): Use internal breakpoint
4055 when setting a watchpoint_scope breakpoint.
4056
4057 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4058
4059 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4060 (build_builtin_type_vec64i): Ditto.
4061 (build_builtin_type_vec128): Ditto.
4062 (build_builtin_type_vec128i): Ditto.
4063
4064 2002-08-19 Michael Snyder <msnyder@redhat.com>
4065
4066 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4067 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4068 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4069 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4070 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4071 CALL_DUMMY_ADDRESS): Delete.
4072 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4073 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4074 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4075 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4076 push_return_address.
4077 (mips_register_raw_size, mips_eabi_use_struct_convention,
4078 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4079 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4080 mips_init_extra_frame_info, mips_eabi_push_arguments,
4081 mips_n32n64_push_arguments, mips_push_return_address,
4082 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4083 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4084
4085 2002-08-19 Michael Snyder <msnyder@redhat.com>
4086
4087 * mips-tdep.c (mips_frame_num_args): New function.
4088 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4089 frame_saved_pc, frame_args_address, frame_locals_address,
4090 frame_num_args, and frame_args_skip.
4091 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4092 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4093 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4094 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4095
4096 2002-08-20 Michael Snyder <msnyder@redhat.com>
4097
4098 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4099 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4100 * mips-tdep.c (mips_store_struct_return): New function.
4101 (mips_extract_struct_value_address): New function.
4102 (mips_gdbarch_init): Set store_struct_return and
4103 extract_struct_value_address.
4104
4105 2002-08-20 David Carlton <carlton@math.stanford.edu>
4106
4107 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4108 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4109 (read_file_scope): Check that line_header is nonzero before
4110 decoding macro information.
4111
4112 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4113
4114 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4115 flag the general-purpose registers as floating-point on targets
4116 that don't support the floating-point registers.
4117
4118 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4119
4120 * rs6000-tdep.c (altivec_register_p): Delete.
4121 (rs6000_do_altivec_registers): Delete.
4122 (rs6000_altivec_registers_info): Delete.
4123 (rs6000_do_registers_info): Delete.
4124 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4125 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4126
4127 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4128
4129 * infcmd.c (do_registers_info): Print vector registers in hex
4130 format only.
4131 (print_vector_info): Check that printing registers
4132 makes sense.
4133 (print_float_info): Ditto.
4134
4135 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4136
4137 * mips-tdep.c (mips_gdbarch_init): Update.
4138 (mips_o32_extract_return_value): Rewrite.
4139 (mips_o32_store_return_value): Rewrite.
4140 (mips_o32_xfer_return_value): New function.
4141 (mips_xfer_register): Tweak debug print message. Allow for
4142 buf_offset when dumping the value transfered.
4143
4144 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4145
4146 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4147 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4148 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4149 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4150 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4151
4152 2002-08-14 Michael Snyder <msnyder@redhat.com>
4153
4154 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4155
4156 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4157
4158 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4159 register.
4160 (P): New macro to define a register as a pseudo register.
4161 (R, R4, R8, R16, FR32, R64, R0): Updated.
4162 (struct variant): Add new fields for number of pseudo registers
4163 and number of total registers.
4164 (tot_num_registers): New macro replacing....
4165 (num_registers): ...deleted macro.
4166 (num_registers): New function.
4167 (num_pseudo_registers): New function.
4168 (variants): Update all variants to intialize new fields correctly.
4169 Postpone initialization of number of pseudo regs and real regs.
4170 (init_variants): New function.
4171 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4172 registers offsets.
4173
4174 2002-08-19 David Carlton <carlton@math.stanford.edu>
4175
4176 * valops.c (search_struct_field): Change error message to treat
4177 return value of 0 from value_static_field as meaning that field is
4178 optimized out.
4179 (value_struct_elt_for_reference): Ditto.
4180 * values.c (value_static_field): Treat an unresolved location the
4181 same as a nonexistent symbol. Fix PR gdb/635.
4182 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4183 enclosed. Fix PR gdb/574.
4184 * MAINTAINERS: Add self to Write After Approval list.
4185
4186 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4187
4188 * mips-tdep.c (mips_xfer_register): New function.
4189 (mips_n32n64_extract_return_value): Rewrite.
4190 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4191 instead of deprecated_extract_return_value.
4192
4193 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4194
4195 * rs6000-tdep.c (TDEP): Delete macro.
4196 (branch_dest): Replace use of TDEP macro with its body.
4197 (rs6000_pop_frame): Ditto.
4198 (rs6000_push_arguments): Ditto.
4199 (rs6000_skip_trampoline_code): Ditto.
4200 (rs6000_frame_saved_pc): Ditto.
4201 (rs6000_frame_chain): Ditto.
4202 (rs6000_register_name): Ditto.
4203 (rs6000_register_byte): Ditto.
4204 (rs6000_register_raw_size): Ditto.
4205 (rs6000_register_virtual_type): Ditto.
4206 (rs6000_register_convertible): Ditto.
4207 (rs6000_convert_from_func_ptr_addr): Ditto.
4208
4209 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4210
4211 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4212 conditionally.
4213 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4214 MIPS_LINUX_JB_ELEMENT_SIZE.
4215 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4216 for MAX_REGISTER_RAW_SIZE arrays.
4217 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4218 MIPS_LINUX_JB_ELEMENT_SIZE.
4219
4220 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4221
4222 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4223
4224 2002-08-19 Aidan Skinner <aidan@velvet.net>
4225
4226 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4227 ada-valprint.c ada-tasks.c.
4228 (YYFILES): Add ada-exp.y.
4229 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4230 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4231 (ada-exp.tab.o): New target.
4232
4233 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4234
4235 * regcache.c (regcache_xfer_part): New function.
4236 (regcache_raw_read_part): New function.
4237 (regcache_raw_write_part): New function.
4238 (regcache_cooked_read_part): New function.
4239 (regcache_cooked_write_part): New function.
4240 * regcache.h (regcache_raw_read_part): Declare.
4241 (regcache_raw_write_part): Declare.
4242 (regcache_cooked_read_part): Declare.
4243 (regcache_cooked_write_part): Declare.
4244
4245 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4246
4247 * remote.c (remote_open_1): Add async_p.
4248 (remote_async_open_1): Delete.
4249 (open_remote_target): Delete.
4250 (remote_open, extended_remote_open): Update calls to remote_open_1.
4251 (remote_async_open, extended_remote_async_open): Call
4252 remote_open_1 instead of remote_async_open_1.
4253
4254 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4255
4256 * blockframe.c: Fix a few coding standard violations.
4257
4258 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4259
4260 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4261 here from ...
4262 * config/i386/tm-i386sco5.h: ... here. File removed.
4263 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4264
4265 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4266 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4267 (TM_FILE): Set to tm-i386.h.
4268 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4269 * config/i386/tm-i386v.h: Remove file.
4270 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4271 instead of "i386/tm-i386v.h".
4272 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4273 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4274 "i386/tm-i386v.h".
4275 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4276 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4277 "i386/tm-i386.h".
4278
4279 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4280
4281 * config/i386/nm-i386v.h: Add protection against
4282 multiple-inclusion.
4283 (i386_register_u_addr): Remove prototype.
4284 (register_u_addr): New prototype.
4285 (REGISTER_U_ADDR): Redefine accordingly.
4286 * i386v-nat.c: Improve several comments.
4287 (i386_register_u_addr): Change signature and rename to
4288 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4289 ubase variable.
4290
4291 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4292
4293 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4294 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4295 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4296 deprecated_extract_return_value.
4297 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4298 rename mips_o32o64_push_arguments.
4299 (mips_gdbarch_init): Update.
4300 (mips_extract_return_value): Delete.
4301 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4302 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4303 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4304 (mips_n32n64_extract_return_value): Clone
4305 mips_extract_return_value.
4306 (mips_store_return_value): Delete.
4307 (mips_o32_store_return_value): Clone mips_store_return_value.
4308 (mips_o64_store_return_value): Clone mips_store_return_value.
4309 (mips_eabi_store_return_value): Clone mips_store_return_value.
4310 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4311
4312 2002-08-18 Aidan Skinner <aidan@velvet.net>
4313
4314 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4315 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4316
4317 2002-08-18 Aidan Skinner <aidan@velvet.net>
4318
4319 * ada-lang.c: Run through gdb_indent.sh.
4320 * ada-lang.h: Run through gdb_indent.sh.
4321 * ada-tasks.c: Run through gdb_indent.sh.
4322 * ada-typeprint.c: Run through gdb_indent.sh.
4323 * ada-valprint.c: Run through gdb_indent.sh.
4324
4325 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4326
4327 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4328 ABI.
4329
4330 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4331
4332 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4333
4334 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4335 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4336
4337 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4338 write_register_gen instead of write_register_bytes.
4339
4340 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4341 i[3456]-*-osf1mk* configurations have been made obsolete.
4342 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4343 i[3456]86-*-osf1mk* hosts obsolete.
4344 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4345 targets obsolete.
4346 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4347 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4348 config/i386/i386m3.mt, config/i386/nm-m3.h,
4349 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4350 config/i386/i386mk.mh, config/i386/i386mk.mt,
4351 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4352 obsolete.
4353 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4354 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4355 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4356
4357 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4358
4359 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4360 (hppa_value_returned_from_stack): Declare.
4361 (hppa_extract_return_value): Declare.
4362 * config/pa/hppa.mt: New file.
4363 * configure.tgt: Recognize hppa*-*-*.
4364 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4365
4366 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4367
4368 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4369 comment.
4370
4371 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4372
4373 * top.c (gdb_rl_operate_and_get_next): Make sure
4374 operate-and-get-next functions correctly even when the history
4375 list is completely filled.
4376
4377 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4378
4379 * MAINTAINERS (Target Instruction Set Architectures): Rename
4380 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4381 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4382 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4383 already listed under Host/Native.
4384
4385 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4386 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4387 mips*-*-*.
4388
4389 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4390
4391 * config/ia64/ia64.mt: New file.
4392 * config/alpha/alpha.mt: New file.
4393 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4394 ia64-linux-gnu. Mention that ia64-elf is broken.
4395 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4396
4397 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4398
4399 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4400 generic_func_frame_valid instead of func_frame_valid.
4401
4402 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4403
4404 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4405 procfs appears to be broken when debugging on multi-processor
4406 machines. So enable software single stepping in order to avoid
4407 using the procfs interface to do next/step operations, using
4408 internal breakpoints instead.
4409
4410 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4411 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4412 make this pc address equal to the value it would have if the
4413 system stepping capability was used. Also set a new flag used
4414 to ensure that we don't readjust the PC one more time later.
4415
4416 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4417 address by DECR_PC_AFTER_BREAK when software single step is
4418 in use for this architecture, as this has already been taken
4419 care of in handle_inferior_event().
4420
4421 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4422
4423 * infrun.c (handle_inferior_event): Minor reformatting, to make
4424 a rather long condition expression easier to read.
4425
4426 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4427
4428 * Makefile.in (gdbtk.o): Move to end of file.
4429 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4430 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4431 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4432 (gdbtk-wrapper.o, gdbres.o): Ditto.
4433
4434 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4435
4436 * Makefile.in (copying.o): Separate out compile rule.
4437 (hpux-thread.o, procfs.o, signals.o): Ditto.
4438 (v850ice.o, z8k-tdep.o): Ditto.
4439 (tui-file.o): Move to TUI section.
4440 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4441 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4442
4443 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4444
4445 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4446 skip_trampoline_code, for better namespace-proofing.
4447
4448 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4449
4450 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4451
4452 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4453
4454 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4455
4456 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4457 signal, check whether we hit a breakpoint before checking for a
4458 single step breakpoint. Otherwise, GDB fails to notice that a
4459 breakpoint has been hit when stepping onto a breakpoint.
4460
4461 2002-08-16 Keith Seitz <keiths@redhat.com>
4462
4463 * gdb-events.sh (clear_gdb_event_hooks): New function.
4464 * gdb-events.c: Regenerate.
4465 * gdb-events.h: Regenerate.
4466
4467 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4468
4469 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4470 not_a_sw_breakpoint.
4471 * breakpoint.h (bpstat_stop_status): Add parameter names.
4472
4473 2002-08-16 Grace Sainsbury <graces@redhat.com>
4474
4475 * remote.c (remote_insert_hw_breakpoint)
4476 (remote_remove_hw_breakpoint): Fix calculation of length field
4477 for Z-packet.
4478
4479 2002-08-15 Michael Snyder <msnyder@redhat.com>
4480
4481 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4482 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4483 (supply_fpregset): Ditto.
4484
4485 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4486 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4487 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4488 (TARGET_READ_SP): Delete.
4489 (DO_REGISTERS_INFO): Delete.
4490 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4491 Delete.
4492 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4493 from macros to functions.
4494
4495 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4496 (mips_register_convertible, mips_register_convert_to_virtual,
4497 mips_register_convert_to_raw): Make static.
4498 (mips_read_sp): New function.
4499 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4500 (mips_do_registers_info): Make static.
4501 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4502 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4503 (mips_register_convert_from_type, mips_register_convert_to_type):
4504 New functions.
4505 (mips_gdbarch_init): Set up function_start_offset,
4506 register_virtual_size, pc_in_sigtramp.
4507
4508 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4509
4510 * infcmd.c (vector_info): New function.
4511 (_initialize_infcmd): Add command "info vector".
4512 (print_vector_info): New function.
4513
4514 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4515 * gdbarch.h, gdbarch.c: Regenerate.
4516
4517 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4518
4519 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4520 ``print_all''. Only print vector registers when ``print_all''.
4521
4522 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4523
4524 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4525 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4526
4527 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4528 Add `args' parameter.
4529 * gdbarch.h, gdbarch.c: Regenerate.
4530
4531 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4532
4533 * infcmd.c (float_info): Call print_float_info.
4534 (print_float_info): New function. By default, print the
4535 floating-point registers.
4536
4537 * arch-utils.h (default_print_float_info): Delete declaration.
4538 * arch-utils.c (default_print_float_info): Delete function.
4539
4540 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4541
4542 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4543 out define.
4544
4545 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4546 FRAME.
4547
4548 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4549 * configure.host: Make i[3456]86-*-aix host obsolete.
4550 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4551 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4552 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4553 config/i386/xm-i386aix.h: Make files obsolete.
4554 * i386aix-nat.c: Make file obsolete.
4555 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4556 (i386aix-nat.o): Make target obsolete.
4557
4558 * config/i386/nm-gnu.h: Removed.
4559 * config/i386/nm-i386gnu.h: New file.
4560 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4561 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4562 Moved here from ...
4563 * config/i386/tm-i386gnu.h: ... here. Removed.
4564 * config/i386/xm-i386gnu.h: Removed.
4565 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4566 (NAT_FILE): Set to nm-i386gnu.h.
4567 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4568 * i386-tdep.c: New file.
4569 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4570 (i386gnu-tdep.o): Specify dependencies.
4571
4572 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4573
4574 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4575 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4576 Adjust a few comments to reflect reality a bit closer.
4577 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4578 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4579 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4580 target_insert_watchpoint, target_remove_watchpoint):
4581 Move defines to ...
4582 * config/i386/nm-i386sco5.h: ... here.
4583 (kernel_u_size): Add prototype. Improve a few comments and add
4584 protection against multiple inclusion.
4585
4586 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4587 out define.
4588
4589 * uw-thread.c (SP_ARG0): Define if not already defined.
4590 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4591
4592 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4593
4594 * config/i386/tm-i386.h: Don't include "regcache.h".
4595
4596 * i387-tdep.h (i387_print_float_info): New prototype.
4597 * i387-tdep.c (print_i387_value, print_i387_ext,
4598 print_i387_status_word, print_i387_control_word): Add `struct
4599 ui_file *' argument and use it for output.
4600 (i387_print_float_info): Renamed from i387_float_info. Add
4601 `struct gdbarch *' and `struct ui_file *' arguments and use the
4602 latter for output.
4603 * i386-tdep.c: Include "i387-tdep.h".
4604 (i386_gdbarch_init): Set print_float_info.
4605 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4606 (FLOAT_INFO): Remove define.
4607
4608 2002-08-13 Michael Snyder <msnyder@redhat.com>
4609
4610 * mips-tdep.c (mips_push_arguments): Rename to
4611 mips_eabi_push_arguments, and tune for EABI.
4612 (MIPS_REGS_HAVE_HOME_P): Delete.
4613 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4614 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4615 Delete references to mips_regs_have_home_p.
4616
4617 2002-08-14 Keith Seitz <keiths@redhat.com>
4618
4619 * Makefile.in (install-gdbtk): Create insight plugin directory.
4620 Install plugins.tcl file.
4621
4622 2002-08-14 Keith Seitz <keiths@redhat.com>
4623
4624 * configure.in: Move SUBDIRS to near top of the file so that
4625 --enable options may add things to it.
4626 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4627 * configure: Regenerate.
4628
4629 2002-08-13 Michael Snyder <msnyder@redhat.com>
4630
4631 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4632 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4633 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4634
4635 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4636
4637 * vax-tdep.c (vax_get_saved_register): Delete function.
4638 (vax_gdbarch_init): Update.
4639 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4640 (ns32k_gdbarch_init): Update.
4641 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4642 (alpha_gdbarch_init): Update.
4643
4644 2002-08-13 Andrew Cagney <cagney@redhat.com>
4645
4646 * regcache.c (init_regcache_descr): Overallocate the
4647 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4648 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4649 nr_raw_registers.
4650 (set_register_cached): Add range checking assertions. Use
4651 current_regcache.
4652
4653 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4654
4655 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4656 numbers for MMX registers.
4657
4658 2002-08-13 Andrew Cagney <cagney@redhat.com>
4659
4660 * i386-tdep.c (i386_gdbarch_init): Use
4661 generic_unwind_get_saved_register.
4662
4663 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4664
4665 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4666 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4667 target vector.
4668 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4669 Delete. Add comment regarding this now-deleted target method.
4670
4671 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4672
4673 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4674 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4675 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4676 real PC and the page number (if it's within the memory bank window).
4677 (m68hc11_pseudo_register_write): Likewise when saving.
4678 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4679 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4680 (m68hc11_register_raw_size): And use 32-bit for it.
4681 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4682 16K memory bank is used by the prog; also use the virtual pc.
4683
4684 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4685
4686 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4687 (m68hc11_gdbarch_init): Install it in gdbarch.
4688 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4689 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4690 (MSYMBOL_SIZE): New for documentation.
4691 (insn_return_kind): Enum to specify how a function returns.
4692 (frame_extra_info): Cleanup and record the return mode.
4693 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4694 register in address computation.
4695 (m68hc11_get_return_insn): New to obtain the return instruction used
4696 by the function.
4697 (m68hc11_frame_init_saved_regs): Take into account the return
4698 instruction used by the function for far and interrupt functions.
4699 (m68hc11_init_extra_frame_info): Take into account page register.
4700 (m68hc11_frame_args_address): Adjust according to the return mode.
4701 (show_regs): Print page register only when it's used.
4702
4703 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4704
4705 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4706 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4707 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4708 registers.
4709 (m68hc11_register_raw_size): Likewise.
4710
4711 2002-08-13 Andrew Cagney <cagney@redhat.com>
4712
4713 * i386-tdep.c (i386_register_name): Handle mmx registers.
4714 (mmx_regnum_p): New function.
4715 (i386_mmx_names): New array.
4716 (mmx_num_regs): New variable.
4717 (i386_pseudo_register_read): New function.
4718 (i386_pseudo_register_write): New function.
4719 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4720
4721 * regcache.c (regcache_raw_read_unsigned): New function.
4722 (regcache_raw_read_signed): New function.
4723 * regcache.h (regcache_raw_read_unsigned): Declare.
4724 (regcache_raw_read_signed): Declare.
4725
4726 2002-08-13 Andrew Cagney <cagney@redhat.com>
4727
4728 * regcache.c (regcache_raw_read_as_address): Delete function.
4729 (regcache_cooked_read_signed): New function.
4730 (regcache_cooked_read_unsigned): New function.
4731 * regcache.h (regcache_cooked_read_signed): Declare.
4732 (regcache_cooked_read_unsigned): Declare.
4733 (regcache_raw_read_as_address): Delete declaration.
4734
4735 * blockframe.c (generic_read_register_dummy): Use
4736 regcache_cooked_read_unsigned.
4737 * i386-tdep.c (i386_extract_struct_value_address): Use
4738 regcache_cooked_read_unsigned.
4739
4740 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4741
4742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4743 double sizes according to ELF ABI flags.
4744 (gdbarch_tdep): Record elf_flags.
4745
4746 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4747
4748 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4749 (m6812_prolog): They can appear in 68HC12 function prologue.
4750 (m68hc11_frame_chain): Cleanup.
4751
4752 2002-08-12 Andrew Cagney <cagney@redhat.com>
4753
4754 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4755 declarations.
4756 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4757 (i386_linux_register_raw_size): Delete function.
4758 (i386_linux_init_abi): Update.
4759 * i386-tdep.c (i386_register_raw_size): Delete function.
4760 (i386_register_byte): Delete function.
4761 (i386_gdbarch_init): Update.
4762 (i386_register_size): Delete array.
4763 (i386_register_offset): Delete array.
4764
4765 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4766 (REGISTER_RAW_SIZE): Delete macro.
4767 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4768 (REGISTER_BYTE): Delete macro.
4769
4770 2002-08-11 Aidan Skinner <aidan@velvet.net>
4771
4772 * ada-lang.c (ada_lookup_partial_symbol)
4773 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4774 prototype names so that grep ^func works properly.
4775
4776 * ada-lang.c (ada_array_element_type)
4777 (ada_lookup_partial_symbol): Fix typos in parameter list.
4778
4779 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4780 Fix prototype names so that grep ^func works properly.
4781
4782 2002-08-10 Andrew Cagney <cagney@redhat.com>
4783 Elena Zannoni <ezannoni@redhat.com>
4784 Martin M. Hunt <hunt@redhat.com>
4785
4786 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4787 (build_builtin_type_vec128i): Set the vector bit.
4788 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4789 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4790 (build_builtin_type_vec64): New function.
4791 (build_builtin_type_vec64i): New function.
4792 (build_gdbtypes): Initialize builtin_type_vec64 and
4793 builtin_type_vec64i.
4794
4795 2002-08-09 Andrew Cagney <cagney@redhat.com>
4796
4797 * regcache.c (regcache_dump): Compare the register offset
4798 with REGISTER_BYTE.
4799 * arch-utils.c (generic_register_byte): New function.
4800 * arch-utils.h (generic_register_byte): Declare.
4801 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4802 * gdbarch.h, gdbarch.c: Regenerate.
4803
4804 2002-08-09 Andrew Cagney <cagney@redhat.com>
4805
4806 * regcache.c: Include "gdbcmd.h"
4807 (_initialize_regcache): Add commands "maintenance print
4808 registers", "maintenance print raw-registers" and "maintenance
4809 print cooked-registers".
4810 (enum regcache_dump_what): Define.
4811 (dump_endian_bytes): New function.
4812 (regcache_dump): New function.
4813 (regcache_print): New function.
4814 (maintenance_print_registers): New function.
4815 (maintenance_print_raw_registers): New function.
4816 (maintenance_print_cooked_registers): New function.
4817 * Makefile.in (regcache.o): Update dependencies.
4818
4819 2002-08-09 Michael Snyder <msnyder@redhat.com>
4820
4821 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4822 (mips_push_arguments): Correct some comments. Use paddr_nz
4823 for printing addresses in debug output. Replace static
4824 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4825 (mips_n32n64_push_arguments): New function, cloned from
4826 mips_push_arguments and tuned for the n32/n64 ABI.
4827 (mips_push_register): Buffer needs dynamic allocation.
4828 (mips_print_register): Ditto.
4829 (do_gp_register_row): Ditto.
4830 (mips_store_return_value): Ditto.
4831 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4832
4833 2002-08-09 Don Howard <dhoward@redhat.com>
4834
4835 * memattr.c (mem_info_command): Print special case of upper bound
4836 as max CORE_ADDR + 1.
4837
4838 2002-08-08 Michael Snyder <msnyder@redhat.com>
4839
4840 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4841 returns structs by ref if they're too big to fit in two registers.
4842
4843 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4844
4845 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4846 saved regs value.
4847 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4848 mips_find_saved_regs().
4849 (mips_pop_frame): Likewise.
4850
4851 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4852
4853 * blockframe.c (frame_saved_regs_register_unwind): Revise
4854 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4855 frames are in use.
4856
4857 2002-08-09 Grace Sainsbury <graces@redhat.com>
4858
4859 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4860 T-packets; the 'a' is not taken as a register number.
4861 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4862 (remote_stopped_data_address): New functions; add to target
4863 vector.
4864 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4865 prototypes to match other implementations of this
4866 function. replace integer argument with pointer -- the length
4867 field in the Z-packet is the length of what is pointed to or 1 if
4868 pointer is null. Add to target vector.
4869 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4870 target vector.
4871
4872 From Mark Salter:
4873 * remote.c (remote_wait): Add support to extract optional
4874 watchpoint information from T-packet. Ignore unrecognized
4875 optional info in T-packet.
4876 (remote_async_wait): Ditto.
4877
4878 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4879
4880 * cli/cli-dump.c: Change fopen modes to use binary open modes
4881 as defined in include/fopen-bin.h throughout.
4882
4883 2002-08-08 Michael Snyder <msnyder@redhat.com>
4884
4885 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4886
4887 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4888
4889 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4890 assertion failure by returning early after a warning.
4891
4892 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4893
4894 * mips-tdep.c (mips_find_saved_regs): Make static.
4895 (mips_frame_init_saved_regs): New function.
4896 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4897 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4898 (mips_find_saved_regs): Delete declaration.
4899
4900 2002-08-08 Grace Sainsbury <graces@redhat.com>
4901
4902 * remote.c (remote_wait, remote_async_wait): Change
4903 thread_num from int to ULONGEST.
4904 (unpack_varlen_hex): Change result parameter from
4905 int * to ULONGEST *.
4906
4907 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4908
4909 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4910 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4911 powerpc*-*-*.
4912 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4913
4914 2002-08-08 Andrew Cagney <cagney@redhat.com>
4915
4916 * gcore.c (override_derive_stack_segment): Delete variable.
4917 (preempt_derive_stack_segment): Delete function.
4918 (derive_stack_segment): Delete function.
4919 (default_derive_stack_segment): Renamed to derive_stack_segment.
4920 (override_derive_heap_segment): Delete variable.
4921 (preempt_derive_heap_segment): Delete function.
4922 (derive_heap_segment): Delete function.
4923 (default_derive_heap_segment): Rename to derive_heap_segment.
4924
4925 2002-08-06 Michael Snyder <msnyder@redhat.com>
4926
4927 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4928 * mips-tdep.c (mips_EABI_use_struct_convention,
4929 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4930 New functions. (mips_use_struct_convention): Delete.
4931 (mips_gdbarch_init): set use_gdbarch_convention.
4932
4933 2002-08-06 Michael Snyder <msnyder@redhat.com>
4934
4935 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4936 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4937 mips_o32_reg_struct_has_addr): New functions.
4938 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4939
4940 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4941
4942 * regcache.c (pseudo_register): Delete function.
4943 (fetch_register): Delete function.
4944 (store_register): Delete function.
4945 (regcache_raw_read, legacy_read_register_gen): Use
4946 target_fetch_registers instead of fetch_register.
4947 (legacy_write_register_gen, regcache_raw_write): Use
4948 target_store_register instead of store_register.
4949 (write_register_bytes): Ditto.
4950
4951 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4952 (STORE_PSEUDO_REGISTER): Delete.
4953 * gdbarch.h, gdbarch.c: Regenerate.
4954
4955 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4956
4957 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4958 write dump file binary.
4959
4960 2002-08-05 Michael Snyder <msnyder@redhat.com>
4961
4962 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4963 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4964 (mips_gdbarch_init): Set N32 target to be mips64.
4965
4966 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4967
4968 * frame.c (find_saved_register): Break out of loop once saved
4969 register address is found. Don't mention sparc in loop comment
4970 anymore.
4971
4972 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4973
4974 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4975 mips_default_saved_regsize to 8.
4976
4977 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4978
4979 * gcore.c: Do not include <sys/procfs.h>.
4980 * Makefile.in (gcore.o): Update dependencies.
4981
4982 2002-08-06 Andrew Cagney <cagney@redhat.com>
4983
4984 * configure.tgt: Make arc-*-* obsolete.
4985 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4986 * MAINTAINERS: Make arc-elf obsolete.
4987 * arc-tdep.c: Make file obsolete.
4988 * config/arc/arc.mt: Ditto.
4989 * config/arc/tm-arc.h: Ditto.
4990
4991 2002-08-05 Theodore A. Roth <troth@verinet.com>
4992
4993 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4994
4995 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4996
4997 * mcore-tdep.c (mcore_gdbarch_init): Use
4998 generic_unwind_get_saved_register instead of
4999 generic_get_saved_register.
5000 * v850-tdep.c (v850_gdbarch_init): Ditto.
5001 * frv-tdep.c (frv_gdbarch_init): Ditto.
5002 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5003 * s390-tdep.c (s390_gdbarch_init): Ditto.
5004 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5005 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5006 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5007
5008 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5009
5010 * objfiles.h: Add missing #include "symfile.h"
5011
5012 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5013
5014 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5015
5016 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5017 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5018 of FIELD_BITSIZE.
5019
5020 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5021
5022 * NEWS: Cleanup and nitpick.
5023
5024 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5025
5026 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5027
5028 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5029
5030 * Makefile.in (gdbtk-bp.o): Update dependencies.
5031 (gdbtk-register.o): Ditto.
5032 (gdbtk-varobj.o): Ditto.
5033
5034 2002-08-03 Andrew Cagney <cagney@redhat.com>
5035
5036 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5037 m68hc11_fetch_pseudo_register.
5038 (m68hc11_pseudo_register_write): Replace
5039 m68hc11_store_pseudo_register.
5040 (m68hc11_gdbarch_init): Update.
5041
5042 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5043
5044 * gdbarch.sh: Include "gdb_string.h".
5045 * gdbarch.c: Regenerate.
5046
5047 * regcache.c: Include "gdb_string.h".
5048 * ax-general.c: Ditto.
5049 * varobj.c: Ditto.
5050 * std-regs.c: Ditto.
5051 * fbsd-proc.c: Ditto.
5052 * thread.c: Ditto.
5053
5054 * Makefile.in (regcache.o): Update dependencies.
5055 (thread.o, gdbarch.o): Ditto.
5056 (ax-general.o, gdbarch.o): Ditto.
5057 (varobj.o, std-regs.o): Ditto.
5058 (fbsd-proc.o): Specify dependencies.
5059
5060 2002-08-02 Andrew Cagney <cagney@redhat.com>
5061
5062 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5063 regnum.
5064 (regcache_cooked_write): Ditto.
5065
5066 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5067
5068 * regcache.c (regcache_cooked_read): New function.
5069 (regcache_cooked_write): New function.
5070 (read_register_gen): Rewrite using regcache_cooked_read.
5071 (write_register_gen): Rewrite using regcache_cooked_write.
5072
5073 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5074 Declare.
5075
5076 2002-08-02 Andrew Cagney <cagney@redhat.com>
5077
5078 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5079 Replace the architecture methods register_read and register_write.
5080 * gdbarch.h, gdbarch.c: Regenerate.
5081 * regcache.c (init_regcache_descr): Update.
5082 (read_register_gen): Update.
5083 (write_register_gen): Update.
5084 (supply_register): Update comment.
5085
5086 * sh-tdep.c (sh_gdbarch_init): Update.
5087 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5088 `regcache' and `gdbarch' parameters. Make `buffer' a void
5089 pointer. Update code.
5090 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5091 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5092 void pointer. Update code.
5093 (sh64_register_write): Delete.
5094 (sh4_register_read): Delete.
5095 (sh64_register_read): Delete.
5096 (sh4_register_write): Delete.
5097 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5098 void pointer, `to' parameter a void pointer.
5099 (sh_sh64_register_convert_to_raw): Ditto.
5100
5101 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5102
5103 * mips-tdep.c (mips_register_virtual_type): Use architecture
5104 invariant return values.
5105
5106 2002-08-01 Andrew Cagney <cagney@redhat.com>
5107
5108 * linux-proc.c: Include "gdb_string.h".
5109 * Makefile.in (linux-proc.o): Update dependency list.
5110
5111 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5112
5113 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5114 comment.
5115
5116 2002-08-01 Grace Sainsbury <graces@redhat.com>
5117
5118 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5119 to_insert_watchpoint, to_remove_watchpoint,
5120 to_stopped_by_watchpoint, to_stopped_data_address,
5121 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5122 target vecctor. Define their corresponding macros so they call
5123 them.
5124
5125 * target.c: Add default and debug versions of for
5126 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5127 to_insert_watchpoint, to_remove_watchpoint,
5128 to_stopped_by_watchpoint, to_stopped_data_address,
5129 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5130
5131 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5132
5133 * mips-tdep.c (mips_register_virtual_type): New function.
5134 (mips_gdbarch_init): Register mips_register_virtual_type()
5135 with gdbarch machinery.
5136 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5137 this file instead of tm-bigmips.h.
5138 (MIPS_REGSIZE): Delete this macro.
5139 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5140 multiarch version in mips-tdep.c will be found.
5141
5142 2002-08-01 Andrew Cagney <cagney@redhat.com>
5143
5144 * NEWS: Menion that CHILL has been made obsolete.
5145
5146 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5147 * stabsread.c (read_range_type): Ditto.
5148 * gdbtypes.h: Ditto.
5149 * language.c (binop_type_check): Ditto.
5150 (binop_result_type): Ditto.
5151 (integral_type): Ditto.
5152 (character_type): Ditto.
5153 (string_type): Ditto.
5154 (boolean_type): Ditto.
5155 (structured_type): Ditto.
5156 (lang_bool_type): Ditto.
5157 (binop_type_check): Ditto.
5158 * language.h (_LANG_chill): Ditto.
5159 * dwarfread.c (set_cu_language): Ditto.
5160 * dwarfread.c (CHILL_PRODUCER): Ditto.
5161 * dwarfread.c (handle_producer): Ditto.
5162 * expression.h (enum exp_opcode): Ditto.
5163 * eval.c: Ditto for comments.
5164 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5165 * expprint.c (print_subexp): Ditto.
5166 (print_subexp): Ditto.
5167 * valops.c (value_cast): Ditto.
5168 (search_struct_field): Ditto.
5169 * value.h (COERCE_VARYING_ARRAY): Ditto.
5170 * symfile.c (init_filename_language_table): Ditto.
5171 (add_psymbol_with_dem_name_to_list): Ditto.
5172 * valarith.c (value_binop): Ditto.
5173 (value_neg): Ditto.
5174 * valops.c (value_slice): Ditto.
5175 * symtab.h (union language_specific): Ditto.
5176 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5177 (SYMBOL_DEMANGLED_NAME): Ditto.
5178 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5179 * defs.h (enum language): Ditto.
5180 * symtab.c (got_symtab): Ditto.
5181 * utils.c (fprintf_symbol_filtered): Ditto.
5182
5183 * ch-typeprint.c: Make file obsolete.
5184 * ch-valprint.c: Make file obsolete.
5185 * ch-lang.h: Make file obsolete.
5186 * ch-exp.c: Make file obsolete.
5187 * ch-lang.c: Make file obsolete.
5188
5189 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5190 CHILL_LIB.
5191 (TARGET_FLAGS_TO_PASS): Ditto.
5192 (CHILLFLAGS): Obsolete.
5193 (CHILL): Obsolete.
5194 (CHILL_FOR_TARGET): Obsolete.
5195 (CHILL_LIB): Obsolete.
5196 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5197 ch-valprint.c.
5198 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5199 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5200 ch-lang.o.
5201 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5202 targets.
5203
5204 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5205
5206 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5207 This does not change anything at the moment, but will be helpful
5208 later when full Ada support is integrated.
5209
5210 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5211
5212 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5213 help message.
5214
5215 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5216
5217 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5218 and save it in a local variable. Use variable in later test.
5219
5220 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5221
5222 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5223 test. (Thanks to Daniel Jacobowitz.)
5224
5225 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5226
5227 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5228 (mips_abi_strings): Add "n64".
5229 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5230
5231 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5232
5233 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5234 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5235
5236 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5237
5238 * utils.c (host_pointer_to_address, address_to_host_pointer):
5239 Use gdb_assert() instead of explicit call to internal_error().
5240
5241 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5242
5243 * Makefile.in (rs6000-nat.o): Update dependencies.
5244
5245 From Nicholas Duffek:
5246 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5247 (aix-thread.o): New rule.
5248 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5249 * config/powerpc/aix432.mh: New file.
5250
5251 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5252
5253 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5254 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5255 (fetch_core_registers, ppc_linux_supply_gregset)
5256 (ppc_linux_supply_fpregset): New functions.
5257 (ppc_linux_regset_core_fns): New.
5258 (_initialize_ppc_linux_tdep): Call add_core_fns.
5259 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5260 and ppc_linux_supply_gregset.
5261 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5262 (supply_fpregset): Call ppc_linux_supply_fpregset.
5263 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5264 corelow.o.
5265 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5266
5267 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5268
5269 * symtab.c (lookup_symbol): Demangle before lowercasing.
5270
5271 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5272
5273 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5274 declaration.
5275 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5276 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5277 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5278 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5279 "gdb_string.h".
5280 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5281 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5282 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5283 (avr-tdep.o, mon960-rom.o): Ditto.
5284 (aout_stabs_gnu_h): Define.
5285 (symtab_h): Remove $(gdb_obstack_h).
5286
5287 2002-07-30 Jim Blandy <jimb@redhat.com>
5288
5289 Patch from David Carlton <carlton@math.stanford.edu>:
5290 * gdbinit.in: Move the `dir' commands that add GDB's own source
5291 directory to the search path to the end, so that the `gdb' source
5292 directory will be searched first.
5293
5294 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5295
5296 * gdb_obstack.h: New file.
5297 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5298 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5299 * objfiles.h: Include "gdb_obstack.h".
5300 * Makefile.in (gdb_obstack_h): Define.
5301 (symtab_h): Add $(gdb_obstack_h).
5302 (objfiles_h): Add $(gdb_obstack_h).
5303
5304 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5305 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5306 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5307 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5308 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5309 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5310 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5311 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5312
5313 * Makefile.in (bcache.o): Update dependencies.
5314 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5315 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5316 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5317 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5318 (stabsread.o, symfile.o, symmisc.o): Ditto.
5319 (symtab.o, typeprint.o, macroexp.o): Ditto.
5320 (macrotab.o, mdebugread.o): Ditto.
5321 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5322 (coff_ecoff_h, aout_aout64_h): Define.
5323 (aout_stabs_gnu_h, libaout_h): Define.
5324
5325 2002-07-29 Andrew Cagney <cagney@redhat.com>
5326
5327 * regcache.c (struct regcache_descr): Rename nr_registers to
5328 nr_cooked_registers. Revise comments describing the structure
5329 member fields.
5330 (init_regcache_descr): Update.
5331 (init_legacy_regcache_descr): Update.
5332 (read_register_gen, write_register_gen): When a cooked register in
5333 the raw register range, directly access the value from the raw
5334 register cache.
5335
5336 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5337
5338 * z8k-tdep.c: Do not include "obstack.h".
5339 * h8300-tdep.c, h8500-tdep.c: Ditto.
5340 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5341 * valprint.c, v850-tdep.c: Ditto.
5342 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5343 * mn10200-tdep.c: Ditto.
5344
5345 * Makefile.in (z8k-tdep.o): Update dependencies.
5346 (m68hc11-tdep.o, valprint.o): Ditto.
5347 (v850-tdep.o, d10v-tdep.o): Ditto.
5348 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5349 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5350 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5351 (sh_opc_h, gdb_sim_sh_h): Define.
5352 (elf_sh_h, elf_bfd_h): Define.
5353 (opcode_m68hc11_h): Define.
5354 (OPCODES_SRC, OPCODES_DIR): define.
5355 (OPCODES): Use $(OPCODES_DIR).
5356 (gdb_sim_d10v_h): Rename sim_d10v_h.
5357 (gdb_sim_arm_h): Rename sim_arm_h.
5358
5359 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5360
5361 * utils.c (host_pointer_to_address, address_to_host_pointer):
5362 Change internal_error() message to indicate function responsible
5363 for the error.
5364
5365 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5366
5367 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5368 calls to local_hex_string_custom().
5369
5370 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5371
5372 * irix5-nat.c: Move IRIX shared library support from here...
5373 * solib-irix.c: ...to here. Revised substantially to work with
5374 generic solib framework.
5375
5376 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5377 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5378 * mips-irix-tdep.c: New file.
5379
5380 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5381 (mips-irix-tdep.o, solib-irix.o): New rules.
5382 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5383 solib-irix.o.
5384 * config/mips/irix6.mt (TDEPFILES): Likewise.
5385 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5386
5387 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5388
5389 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5390 disabled (via ``#if 0'') includes.
5391
5392 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5393
5394 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5395 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5396 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5397 Add support for the fpscr register.
5398 * rs6000-nat.c (regmap, fetch_inferior_registers)
5399 (store_inferior_registers, fetch_core_registers): Likewise.
5400
5401 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5402
5403 * rs6000-nat.c (language.h): Include.
5404 (special_regs): Delete this array.
5405 (regmap): New function.
5406 (fetch_register, store_register): Use regmap() to map gdb
5407 register numbers to ptrace register numbers. Also, use
5408 outputs from regmap() to make decisions regarding type of
5409 ptrace() call to make. In particular, don't compare against
5410 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5411 (fetch_inferior_registers, store_inferior_registers): Where
5412 possible, obtain register numbers from tdep struct. Don't
5413 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5414 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5415 (LAST_UISA_SP_REGNUM): Delete.
5416
5417 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5418
5419 * rs6000-nat.c (ppc-tdep.h): Include.
5420 (fetch_registers, store_register, fetch_core_registers): Don't
5421 access registers[] directly. Instead, use supply_register() or
5422 regcache_collect() as appropriate.
5423 (find_toc_address): Format hex address with local_hex_string().
5424
5425 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5426
5427 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5428 bfd/elf32-frv.c.
5429
5430 2002-07-24 Tom Tromey <tromey@redhat.com>
5431
5432 * jv-exp.y: Marked all strings with _().
5433 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5434 internal_error.
5435 (MethodInvocation, CastExpression, parse_number, yyerror,
5436 java_type_from_name, push_expression_name, yylex): Typo fixes.
5437
5438 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5439
5440 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5441 (tee_file_flush, tee_file_write, tee_file_fputs)
5442 (tee_file_isatty): New.
5443 * ui-file.h (tee_file_new): Add prototype.
5444
5445 2002-07-24 Aidan Skinner <aidan@velvet.net>
5446
5447 * ada-lang.c: Change k&r style function definitions to prototyped
5448 form.
5449 * ada-typeprint.c: Change k&r style function definitions to prototyped
5450 form.
5451 * ada-valprint.c: Change k&r style function definitions to prototyped
5452 form.
5453
5454 2002-07-24 Andrew Cagney <cagney@redhat.com>
5455
5456 * README: Remove reference to remote-bug.
5457 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5458 remote-bug.c.
5459 (m88k-nat.o): Delete rule.
5460 (m88k-tdep.o): Delete rule.
5461 (remote-bug.o): Delete rule.
5462 * MAINTAINERS: Mark as obsolete.
5463 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5464 * m88k-tdep.c: Make file obsolete.
5465 * config/m88k/m88k.mh: Ditto.
5466 * config/m88k/delta88v4.mh: Ditto.
5467 * config/m88k/delta88v4.mt: Ditto.
5468 * config/m88k/delta88.mt: Ditto.
5469 * config/m88k/delta88.mh: Ditto.
5470 * remote-bug.c: Ditto.
5471 * config/m88k/tm-delta88.h: Ditto.
5472 * config/m88k/nm-delta88v4.h: Ditto.
5473 * config/m88k/xm-delta88.h: Ditto.
5474 * config/m88k/xm-dgux.h: Ditto.
5475 * config/m88k/tm-m88k.h: Ditto.
5476 * config/m88k/nm-m88k.h: Ditto.
5477 * config/m88k/tm-delta88v4.h: Ditto.
5478 * m88k-nat.c: Ditto.
5479 * cxux-nat.c: Ditto.
5480 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5481 and m88*-*-* obsolete.
5482 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5483 m88*-*-* obsolete.
5484
5485 2002-07-24 Andrew Cagney <cagney@redhat.com>
5486
5487 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5488 constant. Same for local pointer variables.
5489 (extract_signed_integer): Ditto.
5490 * defs.h (extract_unsigned_integer): Update.
5491 (extract_signed_integer): Update.
5492
5493 2002-07-24 Andrew Cagney <cagney@redhat.com>
5494
5495 * regcache.c (regcache_raw_write): Change buf parameter to a
5496 constant void pointer.
5497 (regcache_raw_read): Change buf parameter to a void pointer.
5498 (legacy_write_register_gen): Change myaddr parameter a constant
5499 void pointer.
5500 (supply_register): Change val parameter to a const void pointer.
5501 * regcache.h (regcache_raw_write): Update declaration.
5502 (regcache_raw_read): Update declaration.
5503 (supply_register): Update declaration.
5504
5505 2002-07-24 Tom Tromey <tromey@redhat.com>
5506
5507 * defs.h (gdb_readline_wrapper): Declare.
5508 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5509 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5510 * top.c (gdb_readline_wrapper): New function.
5511 (command_line_input): Use it.
5512
5513 2002-07-24 Andrew Cagney <cagney@redhat.com>
5514
5515 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5516 regcache_read and regcache_write.
5517 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5518 * regcache.c: Update.
5519 * sh-tdep.c (sh64_push_arguments): Update comment.
5520 (sh_pseudo_register_read): Update.
5521 (sh_pseudo_register_write): Update.
5522 (sh4_register_read): Update.
5523 (sh4_register_write): Update.
5524 (sh64_pseudo_register_read): Update.
5525 (sh64_pseudo_register_write): Update.
5526 (sh64_register_read): Update.
5527 (sh64_register_write): Update.
5528 * i386-tdep.c (i386_extract_return_value): Update.
5529 (i386_extract_struct_value_address): Update.
5530 (i386_extract_return_value): Update.
5531 * blockframe.c (generic_read_register_dummy): Update.
5532 (generic_call_dummy_register_unwind): Update
5533 * infrun.c (write_inferior_status_register): Update.
5534
5535 2002-07-23 Jim Blandy <jimb@redhat.com>
5536
5537 * parser-defs.h (expression_context_pc): Make this extern.
5538 (Thanks to Michael Snyder.)
5539
5540 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5541
5542 GDB 5.2.1 released from 5.2 branch.
5543 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5544 * README: Update to mention 5.2.1.
5545
5546 2002-07-23 Mark Salter <msalter@redhat.com>
5547
5548 * remote.c (remote_read_bytes): Fix check for error.
5549
5550 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5551
5552 * aix-thread.c (language.h): Include.
5553 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5554 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5555 Print newlines at end of debug messages.
5556 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5557 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5558
5559 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5560
5561 * aix-thread.c (ppc-tdep.h): Include.
5562 (special_register_p): New function.
5563 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5564 (store_regs_user_thread): Use register number information from
5565 gdbarch_tdep struct instead of hardcoded offsets relative to
5566 FIRST_UISA_SP_REGNUM.
5567 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5568 special_register_p() instead of using FPLAST_REGNUM and
5569 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5570 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5571 will be MQ's register number.
5572
5573 2002-07-22 Michael Snyder <msnyder@redhat.com>
5574
5575 * aix-thread.c (ops): Rename to aix_thread_ops.
5576 (base_ops): Rename to base_target.
5577 (ops_attach): Rename to aix_thread_attach.
5578 (ops_detach): Rename to aix_thread_detach.
5579 (ops_resume): Rename to aix_thread_detach.
5580 (ops_wait): Rename to aix_thread_wait.
5581 (ops_kill): Rename to aix_thread_kill.
5582 (init_ops): Rename to init_aix_thread_ops.
5583 (ops_fetch_register): Rename to aix_thread_fetch_register.
5584 (ops_store_register): Rename to aix_thread_store_register.
5585 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5586 (ops_thread_alive): Rename to aix_thread_thread_alive.
5587 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5588 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5589 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5590 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5591 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5592 (store_regs_lib): Rename to store_regs_user_thread.
5593 (store_regs_kern): Rename to store_regs_kernel_thread.
5594
5595 2002-07-22 Michael Snyder <msnyder@redhat.com>
5596
5597 * aix-thread.c (ops_prepare_to_store): Eliminate.
5598 (init_ops): Don't initialize ops.prepare_to_store.
5599 (store_regs_kern): Pre-fetch register buffers from child,
5600 because some registers may not be in the cache. Copy
5601 regs from register cache only if they are cached.
5602 (store_regs_lib): Copy regs from register cache only
5603 if they are cached.
5604 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5605 fill_gprs64): Ditto.
5606
5607 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5608
5609 * aix-thread.c (gdb_assert.h): Include.
5610 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5611 register sizes (from register cache) match size of buffer holding
5612 register data.
5613 (fill_sprs32): Change parameter types to match those in the ptrace()
5614 buffer.
5615 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5616 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5617
5618 2002-07-22 Michael Snyder <msnyder@redhat.com>
5619
5620 * aix-thread.c (supply_sprs64): Cosmetic change.
5621 (supply_sprs32): Cosmetic change.
5622 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5623 (fill_sprs64): Use regcache_collect instead of read_register.
5624 (store_regs_lib): Use regcache_collect instead of
5625 read_register. Use fill_sprs32 instead of fill_sprs64,
5626 if debugging a 32-bit architecture.
5627 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5628 out of the register cache, instead of passing a pointer into
5629 the register cache directly to ptrace. Use regcache_collect
5630 insteaad of read_register.
5631 (ops_prepare_to_store): Use target_read_registers instead
5632 of read_register_bytes.
5633
5634 2002-07-20 Aidan Skinner <aidan@velvet.net>
5635
5636 * MAINTAINERS: Add self under write after approval.
5637
5638 2002-07-20 Aidan Skinner <aidan@velvet.net>
5639
5640 * ada-tasks.c: Change k&r style function definitions to prototyped
5641 form.
5642
5643 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5644
5645 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5646 * x86-64-tdep.c: Include "objfiles.h".
5647 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5648 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5649
5650 2002-07-17 Michal Ludvig <michal@suse.cz>
5651
5652 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5653 (update_context): Initialise cfa variable.
5654
5655 2002-07-17 Michael Snyder <msnyder@redhat.com>
5656
5657 * aix-thread.c: Shorten some long lines.
5658 Bring comments into line with code spec.
5659
5660 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5661
5662 * infrun.c: Re-indent using gdb_indent.sh.
5663
5664 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5665
5666 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5667 Leave the indentation temporarily untouched, to minimize the diffs.
5668
5669 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5670
5671 * stabsread.c: Make os9k sections of the code obsolete,
5672 for real this time.
5673 * stabsread.h: Make os9k sections of the code obsolete.
5674
5675 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5676
5677 * linux-low.c (regsets_store_inferior_registers): Add free()
5678 at the end of a loop to prevent memory leak.
5679 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5680 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5681 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5682 line a comment.
5683 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5684
5685 2002-07-17 Jim Blandy <jimb@redhat.com>
5686
5687 * macrocmd.c (info_macro_command): Remove newline from error
5688 message.
5689
5690 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5691
5692 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5693 (sh_gdbarch_init): Use it for sh-dsp.
5694
5695 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5696
5697 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5698 64-bit DWARF2 format.
5699
5700 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5701
5702 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5703 <sys/proc.h> when not available.
5704
5705 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5706
5707 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5708 * stabsread.c: Make os9k sections of the code obsolete.
5709 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5710 * config/i386/i386os9k.mt: Make file obsolete.
5711 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5712 (COMMON_OBS): Remove os9kread.o
5713 (SFILES): Remove os9kread.c.
5714 (os9kread.o, remote-os9k.o): Make target obsolete.
5715 * remote-os9k.c: Make file obsolete.
5716 * os9kread.c: Make file obsolete.
5717 * Makefile.in
5718
5719 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5720
5721 * NEWS: Mention that the FR30 has been made obsolete.
5722 * fr30-tdep.c: Make file obsolete.
5723 * config/fr30/tm-fr30.h: Ditto.
5724 * config/fr30/fr30.mt: Ditto.
5725 * configure.tgt: Make fr30-*-elf obsolete.
5726 * MAINTAINERS: Make fr30-elf obsolete.
5727
5728 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5729
5730 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5731 found is not inside a section.
5732
5733 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5734
5735 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5736 strerror().
5737 (pdc_realloc): Use xrealloc() instead of realloc().
5738
5739 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5740
5741 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5742 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5743 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5744 macros.
5745
5746 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5747
5748 * aix-thread.c (ptrace_check): Eliminate goto.
5749 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5750 problem.
5751
5752 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5753
5754 * aix-thread.c (gdbcmd.h): Include.
5755 (DEBUG, DBG, DBG2, dbg): Eliminate.
5756 (debug_aix_thread): New static global.
5757 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5758 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5759 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5760 invocations to DBG and DBG2 macros to test against
5761 ``debug_aix_thread'' and call fprintf_unfiltered().
5762 (_initialize_aix_thread): Add new command "set debug aix-thread".
5763
5764 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5765
5766 From Gerhard Tonn <TON@de.ibm.com>:
5767 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5768 instead of supply_register.
5769
5770 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5771
5772 * dwarf2cfi.c: Include "gdb_assert.h".
5773 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5774 non-NULL.
5775 (update_context): Do not use __func__. Add missing ``break''.
5776 (update_context): Do not use __func__.
5777
5778 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5779
5780 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5781 and its setting. Set gdbarch instruction printing functions
5782 directly. For non-rs6000 case use new function
5783 gdb_print_insn_powerpc.
5784 (gdb_print_insn_powerpc): New function.
5785
5786 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5787
5788 * NEWS: Mention that the d30v has been marked obsolete.
5789 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5790 * configure.tgt: Mark d30v-*-* as obsolete.
5791 * d30v-tdep.c: Mark file as obsolete.
5792 * config/d30v/d30v.mt: Ditto.
5793 * config/d30v/tm-d30v.h: Ditto.
5794
5795 2002-07-13 Aidan Skinner <aidan@velvet.net>
5796
5797 * ada-tasks.c (add_task_entry): replace calls to
5798 malloc() with xmalloc
5799 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5800
5801 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5802 ada_finish_decode_line_1, all_sals_for_line
5803 ada_breakpoint_rewrite): replace calls to free() with xfree()
5804
5805 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5806
5807 From Nicholas Duffek (with minor changes by Martin Hunt,
5808 Louis Hamilton, and Kevin Buettner):
5809 * aix-thread.c: New file.
5810
5811 2002-07-12 Petr Sorfa <petrs@caldera.com>
5812
5813 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5814 complaint for invalid attribute class or form.
5815 (read_func_scope): DW_AT_frame_base
5816 better handling of DW_AT_block*.
5817 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5818 better handling of DW_AT_block*.
5819 (read_common_block): DW_AT_location
5820 better handling of DW_AT_block*.
5821 (read_partial_die): DW_AT_location better handling
5822 of DW_AT_block*.
5823 (new_symbol): DW_AT_external better handling of
5824 DW_AT_block*. Proper initialization of variable
5825 "addr".
5826 (attr_form_is_block): New function that returns true
5827 if the attribute's form is of DW_FORM_block*.
5828
5829 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5830
5831 * valops.c (find_method_list): Remove comment about
5832 removed STATIC_MEMFUNCP argument.
5833 (value_find_oload_method_list): Likewise.
5834
5835 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5836
5837 From Nicholas Duffek:
5838 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5839 target_new_objfile_hook.
5840
5841 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5842
5843 From Nicholas Duffek:
5844 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5845 csect.
5846
5847 2002-07-12 Andrew Cagney <cagney@redhat.com>
5848
5849 * MAINTAINERS: Mention --enable-sim-build-warnings.
5850 (m68hc11-elf): Disable sim build warnings.
5851 (m32r-elf): Mark as broken obsolete candidate.
5852 (x86_64-linux-gnu): Mark as buildable with -Werror.
5853 (arm-elf): Change -w to ``,'' which enables warnings but not
5854 -Werror.
5855
5856 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5857
5858 * bcache.h: Update copyright.
5859 (struct bstring, struct bcache): Move definition to "bcache.c".
5860 Replaced by opaque declaration.
5861 (bcache_xfree): Replace free_bcache.
5862 (bcache_xmalloc, bcache_memory_used): Declare.
5863
5864 * bcache.c: Update copyright.
5865 (struct bstring, struct bcache): Moved to here from "bcache.h".
5866 Update comments.
5867 (bcache_xmalloc, bcache_memory_used): New functions.
5868 (bcache_xfree): Replace function free_bcache.
5869
5870 * Makefile.in (objfiles.o): Add $(bcache_h).
5871 (objfiles_h): Remove $(bcache_h).
5872 (symfile.o): Add $(bcache_h).
5873
5874 * symmisc.c: Update copyright.
5875 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5876 (print_objfile_statistics): Use bcache_memory_used.
5877
5878 * symfile.c: Include "bcache.h".
5879 (reread_symbols): Use bcache_xfree.
5880 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5881 (add_psymbol_to_list): Pass psymbol_cache by value.
5882 (add_psymbol_with_dem_name_to_list): Ditto.
5883
5884 * objfiles.h: Update copyright.
5885 (struct bcache): Declare opaque. Do not include "bcache.h".
5886 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5887 bcache'' pointers.
5888 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5889
5890 * objfiles.c: Include "bcache.h". Update copyright.
5891 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5892 macro_cache.
5893 (free_objfile): Use bcache_xfree.
5894
5895 2002-07-11 Grace Sainsbury <graces@redhat.com>
5896
5897 * monitor.c (monitor_fetch_register): Make name a constant.
5898 (monitor_store_register): Same.
5899
5900 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5901
5902 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5903 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5904 (finish_block) For non-function blocks, hash the symbol table. For
5905 function blocks, mark the symbol table as unhashed.
5906 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5907 (msymbol_hash_iw): Likewise.
5908 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5909 value.
5910 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5911 (lookup_minimal_symbol): Likewise for both.
5912 * symtab.h (struct block): Add `hashtable' flag. Comment the
5913 hashtable.
5914 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5915 (ALL_BLOCK_SYMBOLS): Update.
5916 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5917 (struct symbol): Add `hash_next' pointer.
5918 * symtab.c (lookup_block_symbol): Search using the hash table when
5919 possible.
5920 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5921 (search_symbols, find_addr_symbol): Likewise.
5922
5923 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5924 (read_dst_symtab): Likewise.
5925 * jv-lang.c (get_java_class_symtab): Likewise.
5926 * mdebugread.c: Include "gdb_assert.h".
5927 (shrink_block): Assert that the block being modified is not hashed.
5928 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5929 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5930 symbols.
5931 (dump_symtab): Recognize hashed blocks.
5932 * printcmd.c (print_frame_args): Assert that function blocks do not
5933 have hashed symbol tables.
5934 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5935 (fill_in_ada_prototype, debug_print_block): Likewise.
5936 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5937
5938 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5939
5940 * stack.c (print_frame): Use result of frame_address_in_block()
5941 instead of fi->pc when evaluating symbols.
5942 (backtrace_command_1): Ditto.
5943
5944 2002-07-11 Andrew Cagney <cagney@redhat.com>
5945
5946 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5947 Make static.
5948
5949 * arm-tdep.c (arm_register_name): Make return type constant.
5950
5951 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5952
5953 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5954 prototype.
5955 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5956 * s390-tdep.c (s390_fp_regnum): Ditto.
5957 (s390_read_fp): Ditto.
5958 (s390_pop_frame): Ditto.
5959 (_initialize_s390_tdep): Ditto.
5960 * remote.c (get_remote_state): Ditto.
5961 * procfs.c (mappingflags): Ditto.
5962 * memattr.c (_initialize_mem): Ditto.
5963 * mcore-tdep.c (mcore_pop_frame): Ditto.
5964 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5965 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5966 * language.c (set_case_str): Ditto.
5967 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5968 * frv-tdep.c (new_variant): Ditto.
5969 (frv_stopped_data_address): Ditto.
5970 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5971 (context_alloc): Ditto.
5972 (frame_state_alloc): Ditto.
5973 (unwind_tmp_obstack_init): Ditto.
5974 (unwind_tmp_obstack_free): Ditto.
5975 (cfi_read_fp): Ditto.
5976 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5977 (cris_pop_frame): Ditto.
5978 * c-lang.c (scanning_macro_expansion): Ditto.
5979 (finished_macro_expansion): Ditto.
5980 (c_preprocess_and_parse): Ditto.
5981 * gdbarch.sh: Ditto.
5982 * gdbarch.h, gdbarch.c: Regenerate.
5983 * config/mn10200/tm-mn10200.h: Adjust indentation.
5984 * target.c: Adjust indentation.
5985 * symtab.h: Adjust indentation.
5986 * stabsread.h: Adjust indentation.
5987 * remote-es.c: Adjust indentation.
5988 * os9kread.c: Adjust indentation.
5989
5990 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5991
5992 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5993 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5994
5995 2002-07-10 Grace Sainsbury <graces@redhat.com>
5996
5997 * NEWS: Mention m68k, mcore multi-arching.
5998 * MAINTAINERS: Change status of m68k, mcore to reflect
5999 multi-arching.
6000
6001 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
6002
6003 * valops.c (find_overload_match): Free oload_syms.
6004
6005 2002-07-09 Joel Brobecker <brobecker@gnat.com>
6006
6007 Define HAVE_SYS_PROC_H if sys/proc.h exists
6008 * configure.in: Add check for sys/proc.h
6009 * config.in: Regenerate.
6010 * configure: Regenerate.
6011
6012 2002-07-09 Grace Sainsbury <graces@redhat.com>
6013
6014 * config/m68k/tm-m68k.h: Remove macros wrapped in
6015 #if !GDB_MULTI_ARCH.
6016
6017 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6018
6019 * config.in, configure: Regenerate.
6020
6021 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6022
6023 * dwarf2cfi.c: Include "gcore.h".
6024 (execute_stack_op): Fix implementation of the
6025 DW_OP_deref and DW_OP_deref_size operators by letting do their
6026 lookup in the target.
6027
6028 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6029
6030 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6031 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6032 tdep->sc_sp_offset.
6033
6034 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6035
6036 Fix PR gdb/595, gdb/602
6037 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6038 Don't call value_cast, just read the vtable pointer; update comments
6039 to match.
6040
6041 2002-07-05 Grace Sainsbury <graces@redhat.com>
6042
6043 * config/mcore/tm-mcore.h: Remove file.
6044 * config/mcore/mcore.mt: Remove definition of TM_FILE
6045 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6046
6047 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6048
6049 * i386bsd-tdep.c: Include "gdb_string.h".
6050
6051 2002-07-04 Grace Sainsbury <graces@redhat.com>
6052
6053 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6054 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6055 mcore-tdep.
6056 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6057 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6058 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6059 (RETVAL_REGNUM): Move macros from tm-mcore.h
6060 (mcore_reg_struct_has_addr): New function.
6061 (mcore_gdbarch_init): Added initializations for the macros removed
6062 from tm-mcore.h.
6063
6064 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6065
6066 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6067 traditonal string branding within the ELF header.
6068
6069 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6070
6071 * symtab.c (remove_params): New function.
6072 (make_symbol_overload_list): Use it instead of cplus_demangle.
6073 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6074
6075 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6076
6077 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6078
6079 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6080 New variables.
6081 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6082 and tdep->sigtramp_end.
6083 * i386obsd-nat.c: New file.
6084 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6085
6086 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6087 Don't call get_current_frame().
6088
6089 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6090
6091 * i386-nat.c (child_post_startup_inferior): New function
6092 calling i386_cleanup_dregs if
6093 I386_USE_GENERIC_WATCHPOINTS is defined.
6094 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6095 conditional to acknowledge that i386-nat.c has its
6096 own child_post_startup_inferior function.
6097
6098 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6099
6100 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6101 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6102 instead of MAX_REGISTER_RAW_SIZE.
6103 (i386_extract_return_value, i386_extract_struct_value_address):
6104 Convert to use regcache.
6105 (i386_gdbarch_init): Set max_register_raw_size and
6106 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6107 Set extract_return_value and extract_struct_value_address instead
6108 of their deprecated variants.
6109
6110 Convert i386 target to generic dummy frames.
6111 * i386-tdep.c: Include "symfile.h".
6112 (i386_frameless_signal_p): Consider a function to be frameless if
6113 the pc points at the first instruction of the function.
6114 (i386_frame_chain): Handle (generic) call dummies.
6115 (i386_frame_saved_pc): Likewise.
6116 (i386_frame_init_saved_regs): Remove code dealing with call
6117 dummies on the stack.
6118 (i386_push_dummy_frame): Removed.
6119 (i386_call_dummy_words): Removed.
6120 (i386_fix_call_dummy): Removed.
6121 (i386_push_return_address): New function.
6122 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6123 parameter, and don't call get_current_frame.
6124 (i386_pop_frame): New function.
6125 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6126 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6127 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6128 call_dummy_length to 0, set call_dummy_words to NULL, set
6129 sizeof_call_dummy_words to 0, set fix_call_dummy to
6130 generic_fix_call_dummy, set pc_in_call_dummy to
6131 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6132 generic_push_dummy_frame, set push_return_address to
6133 i386_push_return_address and set frame_chain_valid to
6134 generic_file_frame_chain_valid.
6135
6136 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6137
6138 * gdbarch.sh (struct regcache): Add opaque declaration.
6139 (EXTRACT_RETURN_VALUE): New architecture method.
6140 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6141 * gdbarch.h, gdbarch.c: Regenerate.
6142 * arch-utils.c (legacy_extract_return_value): New function.
6143 * arch-utils.h (legacy_extract_return_value): Declare.
6144 * values.c (value_being_returned): Re-enable code handling
6145 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6146 deprecated_grub_regcache_for_registers call to block handling
6147 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6148 (EXTRACT_RETURN_VALUE): Do not define.
6149
6150 2002-07-03 Grace Sainsbury <graces@redhat.com>
6151
6152 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6153 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6154 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6155 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6156 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6157 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6158 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6159 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6160 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6161 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6162 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6163 argument so the function fits the prototype in the architecture
6164 vector.
6165 (mcore_pop_frame): Remove argument so the function fits the
6166 prototype. Use get_current_frame instead of the argument.
6167 (mcore_push_arguments): Change type of struct_return so the
6168 function can be used in the architecture vector.
6169 (mcore_store_struct_return): Add.
6170 (mcore_frame_init_saved_regs): Add.
6171 (mcore_gdbarch_init): Add function calls to replace the macros
6172 removed from tm-mcore.h
6173
6174 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6175
6176 * infcmd.c (print_return_value): Remove compatibility code calling
6177 deprecated_grub_regcache_for_registers.
6178
6179 * values.c: Include "regcache.h".
6180 (value_being_returned): Update. Use
6181 deprecated_grub_regcache_for_registers to extract the register
6182 buffer address.
6183 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6184 ``struct regcache''.
6185 * Makefile.in (values.o): Add dependency on $(regcache_h).
6186
6187 * inferior.h (run_stack_dummy): Change type of second parameter to
6188 a ``struct regcache''.
6189 * valops.c (hand_function_call): Change type of retbuf to ``struct
6190 regcache''. Allocate using regcache_xmalloc, clean using
6191 make_cleanup_regcache_xfree.
6192 * infcmd.c (run_stack_dummy): Update. Use
6193 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6194
6195 * regcache.c (do_regcache_xfree): New function.
6196 (make_cleanup_regcache_xfree): New function.
6197 * regcache.h (make_cleanup_regcache_xfree): Declare.
6198
6199 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6200
6201 * event-top.c (command_line_handler): Don't read past
6202 beginning of buffer.
6203
6204 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6205
6206 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6207 struct frame_id.
6208 (varobj_create): Store frame_id for root.
6209 (varobj_gen_name): Use xasprintf.
6210 (varobj_update): Save and restore frame using get_frame_id() and
6211 frame_find_by_id().
6212 (create_child): Use xasprintf.
6213 (new_root_variable): Initialize frame_id.
6214 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6215 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6216 to prevent memory leak.
6217
6218 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6219
6220 * valops.c (hand_function_call): Move declaration of retbuf to
6221 start of function, allocate using malloc, add a cleanup but before
6222 the inf_status cleanup, cleanup the buffer. Rename local variable
6223 old_chain to inf_status_cleanup.
6224
6225 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6226
6227 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6228
6229 * cli/cli-decode.c (cmd_func_p): New function.
6230 (cmd_func): New function.
6231
6232 * command.h: Add cmd_func() and cmd_func_p().
6233
6234 2002-07-03 Grace Sainsbury <graces@redhat.com>
6235
6236 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6237 (REGISTER_SIZE): Remove.
6238 (MAX_REGISTER_RAW_SIZE): Remove.
6239 (REGISTER_VIRTUAL_TYPE): Remove.
6240 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6241 (REGISTER_NAME): Remove.
6242 (USE_GENERIC_DUMMY_FRAMES): Remove.
6243 (CALL_DUMMY): Remove.
6244 (CALL_DUMMY_START_OFFSET): Remove.
6245 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6246 (CALL_DUMMY_LOCATION): Remove.
6247 (FIX_CALL_DUMMY): Remove.
6248 (CALL_DUMMY_ADDRESS): Remove.
6249 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6250 (SAVE_DUMMY_FRAME_TOS): Remove.
6251 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6252 (mcore_register_virtual_type): New function.
6253 (mcore_register_byte): New function.
6254 (mcore_register_size): New function.
6255 (mcore_register_name): New function.
6256 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6257 macros removed from tm-mcore.h.
6258 (mcore_dump_tdep): Add.
6259 (_initialize_mcore_tdep): Add gdbarch_register call.
6260
6261 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6262
6263 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6264 frameless_look_for_prologue, such that we actually call this
6265 function.
6266
6267 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6268
6269 * frame.h (frame_address_in_block): New function.
6270
6271 * blockframe.c (frame_address_in_block): New function extracted
6272 from get_frame_block().
6273 (get_frame_block): Use frame_address_in_block().
6274 (block_innermost_frame): Use frame_address_in_block() to match
6275 the frame pc address against the block boundaries rather than
6276 the frame pc directly. This prevents a failure when a frame pc
6277 is actually a return-address pointing immediately after the end
6278 of the given block.
6279
6280 2002-07-02 Grace Sainsbury <graces@redhat.com>
6281
6282 * MAINTAINERS: Add self under write after approval.
6283
6284 2002-07-02 Grace Sainsbury <graces@redhat.com>
6285
6286 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6287 used in architecture vector. The default is
6288 m68k_local_breakpoint_from_pc.
6289 (m68k_local_breakpoint_from_pc): Add.
6290 (enum): Add register numbers from tm-m68k.h.
6291 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6292 vector.
6293 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6294 GDB_MULTI_ARCH_PARTIAL.
6295 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6296 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6297 m68k-tdep.c.
6298 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6299 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6300 to enum in m68k-tdep.c
6301
6302 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6303
6304 * solib-osf.c (open_map): Compute the list of shared libraries
6305 loaded by the inferior, rather than the list of libraries loaded
6306 by GDB itself. Otherwise, GDB ends up reading the symbols from
6307 the wrong shared libraries...
6308
6309 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6310
6311 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6312 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6313 macros.
6314 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6315 Remove functions.
6316 (FRAMELESS_SIGNAL): Remove function.
6317 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6318 i386_linux_saved_pc_after_call): Removed.
6319 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6320 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6321 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6322
6323 * i386-tdep.c (i386_frameless_signal_p): New function.
6324 (i386_frame_chain): Deal with frameless signals.
6325 (i386_sigtramp_saved_sp): New function.
6326 (i386_frame_saved_pc): Deal with frameless signals.
6327 (i386_saved_pc_after_call): Make sure the correct value is
6328 returned just after entry into a sigtramp.
6329 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6330 i386fbsd4_sc_sp_offset): New variables.
6331 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6332 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6333 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6334 similiar to what we already did for sc_pc_offset.
6335 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6336 tdep->sc_sp_offset.
6337
6338 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6339
6340 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6341
6342 * config/i386/tm-x86-64linux.h: New.
6343 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6344 definitions.
6345 * config/i386/nm-x86-64.h: Rename to ...
6346 * config/i386/nm-x86-64linux.h: ... this one.
6347 * config/i386/x86-64linux.mh: Reflect the above change.
6348
6349 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6350
6351 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6352 with sigcontext_addr. Add sc_sp_offset.
6353 (i386bsd_sigtramp_saved_pc): Remove prototype.
6354 (i386bsd_sicontext_addr): Add prototype.
6355 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6356 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6357 (i386_svr4_sigtramp_saved_pc): Removed.
6358 (i386_svr4_sigcontext_addr): New function.
6359 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6360 Initialize tdep->sigcontext_addr instead. Initialize
6361 tdep->sc_pc_offset and tdep->sc_sp_offset.
6362 (i386_gdbarch_init): Likewise.
6363 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6364 any more.
6365 (i386bsd_sigtramp_saved_pc): Remove function.
6366 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6367 Initialize tdep->sigcontext_addr instead. Initialize
6368 tdep->sc_pc_offset.
6369 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6370 of tdep->sigtramp_saved_pc.
6371 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6372 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6373 instead.
6374
6375 * i386-tdep.c (i386_frameless_function_invocation,
6376 i386_frame_num_args, i386_frame_init_saved_regs,
6377 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6378 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6379 i386_extract_return_value, i386_store_return_value,
6380 i386_extract_struct_value_address, i386_register_virtual_type,
6381 i386_register_convertible, i386_register_convert_to_virtual,
6382 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6383 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6384 static.
6385
6386 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6387
6388 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6389
6390 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6391 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6392 this macro. Include "value.h".
6393
6394 2002-06-30 Aidan Skinner <aidan@velvet.net>
6395
6396 * ada-exp.tab.c: remove as it's a generated file
6397 * ada-lex.c: remove as it's a generated file
6398
6399 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6400
6401 * config/i386/tm-i386.h (struct frame_info, struct
6402 frame_saved_regs, struct value, struct type): Remove forward
6403 declarations.
6404
6405 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6406 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6407 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6408 (FILL_FPXREGSET): Define.
6409
6410 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6411
6412 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6413 i[3456]86-*-netbsd* case.
6414 * config/i386/tm-obsd.h: Removed.
6415 * config/i386/obsd.mt: Removed.
6416 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6417 core-aout.o.
6418 (MH_CFLAGS): Add -DYYDEBUG=0.
6419
6420 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6421 i386nbsd_sc_pc_offset on OpenBSD too.
6422
6423 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6424 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6425 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6426 define.
6427 * i386bsd-tdep.c: Include "arch-utils.h".
6428 (i386bsd_aout_in_solib_call_trampoline): New function.
6429 (i386bsd_init_abi): Set in_solib_call_trampoline to
6430 i386bsd_aout_in_solib_call_trampoline.
6431 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6432 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6433
6434 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6435
6436 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6437 (struct obstack, struct bcache): Add opaque declarations.
6438 * Makefile.in (macrotab_h): Update
6439
6440 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6441
6442 * blockframe.c (generic_find_dummy_frame): Change return type to
6443 ``struct regcache''.
6444 (struct dummy_frame): Replace field ``registers'' with regcache, a
6445 struct regcache object.
6446 (generic_find_dummy_frame): Update.
6447 (generic_push_dummy_frame): Update. Use regcache_xfree,
6448 regcache_xmalloc and regcache_cpy.
6449 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6450 regcache_xfree.
6451 (deprecated_generic_find_dummy_frame): Update.
6452 (generic_read_register_dummy): Update. Use
6453 regcache_read_as_address.
6454 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6455 (generic_get_saved_register): Update. Use regcache_read.
6456
6457 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6458
6459 * Makefile.in (objfiles_h): Add $(bcache_h).
6460 * objfiles.h: Include "bcache.h".
6461
6462 * Makefile.in (symtab_h): Remove $(bcache_h).
6463 * symtab.h: Do not include "bcache.h".
6464
6465 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6466
6467 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6468 generic_func_frame_chain_valid.
6469
6470 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6471
6472 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6473 * config/i386/tm-fbsd.h: Likewise.
6474
6475 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6476
6477 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6478 generic_unwind_get_saved_register.
6479
6480 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6481
6482 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6483 * regcache.c (supply_register): Add missing argument to
6484 register_buffer call.
6485
6486 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6487
6488 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6489 Solaris /bin/grep does not not like it. From Peter Schauer.
6490
6491 2002-06-26 Tom Tromey <tromey@redhat.com>
6492
6493 * command.h (add_setshow_cmd): Declare.
6494 (add_setshow_cmd_full): Declare.
6495 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6496 returns void. Use add_setshow_cmd_full.
6497 (add_setshow_cmd_full): New function.
6498 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6499 (add_setshow_boolean_cmd): Likewise.
6500
6501 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6502
6503 * config/vax/tm-vax.h: Protect from multiple inclusion.
6504 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6505 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6506 * config/vax/tm-vaxbsd.h: ...here. New file.
6507 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6508
6509 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6510
6511 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6512 (BELIEVE_PCC_PROMOTION): Remove.
6513 (AP_REGNUM): Move to...
6514 * config/vax/nm-vax.h: ...here.
6515 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6516 (vax_breakpoint_from_pc): New function.
6517 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6518 and gdbarch_believe_pcc_promotion.
6519
6520 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6521
6522 * Makefile.in (vax_tdep_h): Define.
6523 (vax-tdep.o): Use $(vax_tdep_h).
6524 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6525 (vax_dump_tdep): New function.
6526 (_initialize_vax_tdep): Register vax_dump_tdep.
6527 * vax-tdep.h: Include osabi.h.
6528 (struct gdbarch_tdep): New.
6529
6530 2002-06-26 Andrew Cagney <cagney@redhat.com>
6531
6532 * frame.h (deprecated_generic_find_dummy_frame): Rename
6533 generic_find_dummy_frame.
6534 * blockframe.c (generic_find_dummy_frame): Make static.
6535 (deprecated_generic_find_dummy_frame): New function.
6536 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6537 generic_find_dummy_frame with deprecated_find_dummy_frame.
6538 (sh64_nofp_frame_init_saved_regs): Ditto.
6539 (sh_fp_frame_init_saved_regs): Ditto.
6540 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6541 (s390_frame_chain): Ditto.
6542 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6543
6544 2002-06-26 Grace Sainsbury <graces@redhat.com>
6545
6546 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6547 gdbarch vector are at the top.
6548 (NUM_REGS): Remove.
6549 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6550 (FRAME_ARGS_ADDRESS): Remove.
6551 (FRAME_LOCALS_ADDRESS): Remove.
6552 (FRAME_NUM_ARGS): Remove.
6553 (FRAME_ARGS_SKIP): Remove.
6554 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6555 (m68k_gdbarch_init): Add gdbarch initializations for macros
6556 undefined in tm-m68k.h
6557
6558 2002-06-26 Grace Sainsbury <graces@redhat.com>
6559
6560 * monitor.h: Add the function regname to monitor_ops
6561 structure. This way NUM_REGS does not have to be a constant.
6562 * monitor.c (monitor_fetch_register): Added support for regname
6563 function. The function is called if the array regnames is NULL.
6564 (monitor_store_register): Same.
6565 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6566 regnames array.
6567 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6568 cpu32bug_cmds.regname to point to new function.
6569 * abug-rom.c (abug_regname): Same as above.
6570 (init_abug_cmds): Same.
6571 * dbug-rom.c (dbug_regname): Same as above.
6572 (init_dbug_cmds): Same.
6573 * remote-est.c (est_regname): Same.
6574 (init_est_cmds): Same.
6575 * rom68k-rom.c (rom68k_regname): Same.
6576 (init_rom68k_cmds): Same.
6577
6578 2002-06-25 Tom Tromey <tromey@redhat.com>
6579
6580 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6581
6582 2002-06-25 Andrew Cagney <cagney@redhat.com>
6583
6584 * infrun.c (stop_registers): Change variable's type to ``struct
6585 regcache'''.
6586 (xmalloc_inferior_status): Delete function.
6587 (free_inferior_status): Delete function.
6588 (normal_stop): Use regcache_cpy.
6589 (struct inferior_status): Change type of fields ``stop_registers''
6590 and ``registers'' to ``struct regcache''.
6591 (write_inferior_status_register): Use regcache_write.
6592 (save_inferior_status): Instead of calling
6593 xmalloc_inferior_status, allocate the inf_status buffer directly.
6594 Use regcache_dup_no_passthrough and regcache_dup to save the
6595 buffers.
6596 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6597 Replace the stop_registers regcache instead of overriding it. Use
6598 regcache_xfree. Instead of calling free_inferior_status, xfree
6599 the buffer directly.
6600 (discard_inferior_status): Use regcache_xfree. Instead of calling
6601 free_inferior_status, xfree the buffer directly.
6602 (build_infrun): Use regcache_xmalloc.
6603 (_initialize_infrun): Delete redundant call to build_infrun.
6604
6605 * Makefile.in (infcmd.o): Add $(regcache_h).
6606
6607 * infcmd.c: Include "regcache.h".
6608 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6609 obtain the address of `stop_registers' register buffer.
6610 (print_return_value): Ditto.
6611
6612 * inferior.h (struct regcache): Add opaque declaration.
6613 (stop_registers): Change variable's declared type to ``struct
6614 regcache''.
6615
6616 2002-06-24 Tom Tromey <tromey@redhat.com>
6617
6618 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6619 * target.c (initialize_targets): Fixed typo in
6620 trust-readonly-sections `show' documentation.
6621
6622 * main.c: Marked all strings with _().
6623
6624 2002-06-24 Don Howard <dhoward@redhat.com>
6625
6626 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6627 that means max CORE_ADDR+1.
6628 (lookup_mem_region): Ditto.
6629 (mem_info_command): Ditto.
6630
6631 2002-06-24 Grace Sainsbury <graces@redhat.com>
6632
6633 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6634 (REGISTER_BYTES_OK): Remove.
6635 (REGISTER_BYTES): Remove.
6636 (STORE_STRUCT_RETURN): Remove.
6637 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6638 (STORE_RETURN_VALUE): Remove.
6639 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6640 (FRAME_CHAIN): Remove.
6641 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6642 (FRAME_SAVED_PC): Remove.
6643 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6644 (m68k_store_struct_return): Add.
6645 (m68k_deprecated_extract_return_value): Add.
6646 (m68k_deprecated_extract_struct_value_address): Add.
6647 (m68k_store_return_value): Add.
6648 (m68k_frame_chain): Add.
6649 (m68k_frameless_function_invocation): Add.
6650 (m68k_frame_saved_pc): Add.
6651 (m68k_gdbarch_init): added set_gdbarch calls for new
6652 functions and deleted macros.
6653
6654 2002-06-23 Tom Tromey <tromey@redhat.com>
6655
6656 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6657 (ALLDEPFILES): Likewise.
6658 (udiheaders): Removed.
6659 (udip2soc.o): Likewise.
6660 (udi2go32.o): Likewise.
6661 (udr.o): Likewise.
6662 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6663
6664 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6665
6666 * infrun.c (_initialize_infrun): Delete unnecessary call to
6667 build_infrun.
6668
6669 * regcache.h: Update comments describing the regcache_cpy family
6670 of functions.
6671 (regcache_save, regcache_restore): Delete declaration.
6672 (regcache_save_no_passthrough): Delete declaration.
6673 (regcache_restore_no_passthrough): Delete declaration.
6674 * regcache.c (regcache_save): Delete function.
6675 (regcache_save_no_passthrough): Delete function.
6676 (regcache_restore): Delete function.
6677 (regcache_restore_no_passthrough): Delete function.
6678
6679 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6680
6681 * config/m68k/tm-m68k.h: Fix typo.
6682 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6683 (m68k_frame_init_saved_regs): Declare.
6684
6685 2002-06-21 Jim Blandy <jimb@redhat.com>
6686
6687 Remove some vestiges of Harris 88k support.
6688 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6689 register numbering quirk.
6690 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6691 odd symbols occurring in Harris 88k ELF targets.
6692
6693 2002-06-21 Tom Tromey <tromey@redhat.com>
6694
6695 * gdb_locale.h: New file.
6696 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6697 (defs_h): Added gdb_locale.h.
6698 * configure, config.in: Rebuilt.
6699 * configure.in (PACKAGE): Define.
6700 * defs.h: Include gdb_locale.h.
6701 * main.c (captured_main): Call setlocale, bindtextdomain,
6702 textdomain.
6703
6704 2002-06-21 Dave Brolley <brolley@redhat.com>
6705
6706 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6707 * config/frv/frv.mt: New file.
6708 * config/frv/tm-frv.h: New file.
6709 * configure.tgt: Support frv-*-*.
6710 * Makefile.in (frv-tdep.o): New target.
6711 * frv-tdep.c: New file.
6712 * NEWS: Mention frv.
6713
6714 2002-06-21 Dave Brolley <brolley@redhat.com>
6715
6716 * MAINTAINERS: Add self to "Write After Approval" list.
6717
6718 2002-06-21 Grace Sainsbury <graces@redhat.com>
6719
6720 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6721 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6722 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6723 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6724 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6725
6726 * m68k-tdep.c: Include arch-utils.h
6727 (m68k_register_raw_size): Add.
6728 (m68k_register_virtual_size): Add.
6729 (m68k_register_virtual_type): Add.
6730 (m68k_register_name): Add.
6731 (m68k_stack_align): Add.
6732 (m68k_register_byte): Add.
6733 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6734 tm-m68k.h.
6735
6736 2002-06-21 Grace Sainsbury <graces@redhat.com>
6737
6738 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6739 m68k_find_saved_regs.
6740 (m68k_pop_frame): Removed saved_regs structure, and replaced
6741 references to it with frame->saved_regs.
6742 (m68k_gdbarch_init): Added function calls to initialize the
6743 gdbarch structure.
6744 (m68k_fix_call_dummy): Add.
6745 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6746 (CALL_DUMMY): Remove.
6747 (CALL_DUMMY_LENGTH): Remove.
6748 (CALL_DUMMY_START_OFFSET): Remove.
6749 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6750 (FIX_CALL_DUMMY): Remove.
6751 (PUSH_DUMMY_FRAME): Remove.
6752 (POP_FRAME): Remove.
6753
6754 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6755
6756 * parse.c (parse_fprintf): New function used to avoid calls to
6757 fprintf in bison parser generated debug code.
6758 * parser-defs.h: Declaration of new parse_fprintf function.
6759 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6760 Set YYDEBUG to 1 by default.
6761 Set YYFPRINTF as parse_fprintf.
6762
6763 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6764
6765 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6766 encoding anymore.
6767 (pointer_encoding, enum ptr_encoding): New.
6768 (execute_cfa_program): Take care about pointer encoding.
6769 (dwarf2_build_frame_info): Only call parse_frame_info for
6770 .debug_frame and .eh_frame.
6771 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6772 fixed augmentation handling, added relative addressing,
6773 ignore duplicate FDEs. Added comments.
6774 * dwarf2cfi.c: Reindented.
6775
6776 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6777
6778 * event-top.c (command_handler): Don't use space_at_cmd_start
6779 unless there is sbrk() on the host. Assign time and space data
6780 to union fields of the appropriate length.
6781
6782 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6783
6784 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6785 x86_64_register_name. Return type changed to 'const char *'.
6786 (x86_64_register_name2nr): Rename to x86_64_register_number.
6787 (x86_64_gdbarch_init): Update to reflect the change.
6788 * x86-64-tdep.h: Ditto.
6789 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6790 (supply_fpregset): Ditto.
6791
6792 2002-06-19 Andrew Cagney <cagney@redhat.com>
6793
6794 * regcache.h: Update copyright.
6795 (struct regcache, struct gdbarch): Add opaque declarations.
6796 (current_regcache): Declare global variable.
6797 (regcache_read, regcache_write): Add gdbarch parameter.
6798 (regcache_save, regcache_save_no_passthrough)
6799 (regcache_restore, regcache_restore_no_passthrough)
6800 (regcache_dup, regcache_dup_no_passthrough)
6801 (regcache_cpy, regcache_cpy_no_passthrough)
6802 (deprecated_grub_regcache_for_registers)
6803 (deprecated_grub_regcache_for_register_valid)
6804 (regcache_valid_p): Add function declarations.
6805
6806 * regcache.c: Update copyright.
6807 (regcache_descr_handle): New global variable.
6808 (struct regcache_descr): Define.
6809 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6810 (regcache_descr, xfree_regcache_descr): New functions.
6811 (struct regcache): Define.
6812 (regcache_xmalloc, regcache_xfree): New functions.
6813 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6814 (regcache_dup, regcache_dup_no_passthrough): New functions.
6815 (regcache_valid_p, regcache_read_as_address): New functions.
6816 (deprecated_grub_regcache_for_registers): New function.
6817 (deprecated_grub_regcache_for_register_valid): New function.
6818 (current_regcache): New global variable.
6819 (register_buffer): Add regcache parameter. Update calls.
6820 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6821 (read_register_gen, write_register_gen): Update register_buffer
6822 call. Test for legacy_p instead of gdbarch_register_read_p or
6823 gdbarch_register_write_p.
6824 (regcache_collect): Update register_buffer call.
6825 (build_regcache): Rewrite. Use deprecated grub functions.
6826 (regcache_save, regcache_save_no_passthrough): New functions.
6827 (regcache_restore, regcache_restore_no_passthrough): New
6828 functions.
6829 (_initialize_regcache): Create the regcache_data_handle. Swap
6830 current_regcache global variable.
6831
6832 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6833 parameter to regcache_read and regcache_write calls.
6834 (sh4_register_read): Ditto.
6835 (sh64_pseudo_register_read): Ditto.
6836 (sh64_register_read): Ditto.
6837 (sh_pseudo_register_write): Ditto.
6838 (sh4_register_write): Ditto.
6839 (sh64_pseudo_register_write): Ditto.
6840 (sh64_register_write): Ditto.
6841
6842 * defs.h (XCALLOC): Define.
6843
6844 2002-06-19 Grace Sainsbury <graces@redhat.com>
6845
6846 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6847 * m68k-tdep.c (m68k_gdbarch_init): Added.
6848 (m68k_dump_tdep): Added.
6849
6850 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6851
6852 * ada-lang.c (fill_in_ada_prototype): Update comment.
6853
6854 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6855
6856 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6857 MIPS_ABI_LAST.
6858 (mips_abi_string, mips_abi_strings): New.
6859 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6860 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6861 tdep->mips_abi_string. Honor mips_abi_string. Default to
6862 O32 if no ABI is found.
6863 (mips_dump_tdep): Use mips_abi_strings.
6864 (mips_abi_update): New function.
6865 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6866 ``set mips abi'' and ``show mips abi''. Check the size of
6867 mips_abi_strings.
6868
6869 2002-06-19 Andrew Cagney <cagney@redhat.com>
6870
6871 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6872 constant.
6873
6874 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6875
6876 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6877 current frame using only the first stack size adjustment. All
6878 subsequent size adjustments are not considered to be part of
6879 the "static" part of the current frame.
6880 Compute the address of the saved registers relative to the
6881 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6882 in use in this frame.
6883
6884 2002-06-18 Don Howard <dhoward@redhat.com>
6885
6886 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6887 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6888 suggesting this solution.
6889
6890 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6891
6892 * config/romp/xm-rtbsd.h: Delete file.
6893 * config/romp/rtbsd.mh: Delete file.
6894
6895 2002-06-18 Keith Seitz <keiths@redhat.com>
6896
6897 * breakpoint.c (condition_command): Post breakpoint_modify
6898 when a condition is added to an existing breakpoint.
6899 (commands_command): Likewise for commands.
6900 (set_ignore_count): Likewise for ignore counts.
6901 If no tty, do not simply return, still need to send event
6902 notification.
6903 (ignore_command): Only print a newline if the command came
6904 from a tty.
6905 Don't call breakpoints_changed, since this is now properly
6906 handled by set_ignore_count.
6907
6908 2002-06-18 Andrew Cagney <cagney@redhat.com>
6909
6910 * MAINTAINERS: Note that cris-elf target can be compiled with
6911 -Werror.
6912 * cris-tdep.c (cris_register_name): Make return type constant.
6913 (cris_breakpoint_from_pc): Ditto.
6914
6915 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6916
6917 * frame.h (struct frame_info): Change type of context to
6918 'struct context'.
6919
6920 2002-06-17 Andrew Cagney <cagney@redhat.com>
6921
6922 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6923 pointer.
6924 * gdbarch.h, gdbarch.c: Regenerate.
6925 * config/mips/tm-mips.h (mips_register_name): Update.
6926 * i386-tdep.h (i386_register_name): Update.
6927 * mips-tdep.c (mips_register_name): Update
6928 * alpha-tdep.c (alpha_register_name): Update.
6929 * arch-utils.c (legacy_register_name): Update.
6930 * arch-utils.h (legacy_register_name): Update.
6931 * avr-tdep.c (avr_register_name): Update.
6932 * ia64-tdep.c (ia64_register_name): Update.
6933 * i386-tdep.c (i386_register_name): Update.
6934 * sparc-tdep.c (sparc32_register_name): Update.
6935 (sparc64_register_name): Update.
6936 (sparclite_register_name): Update.
6937 (sparclet_register_name): Update.
6938 * sh-tdep.c (sh_generic_register_name): Update.
6939 (sh_sh_register_name): Update.
6940 (sh_sh3_register_name): Update.
6941 (sh_sh3e_register_name): Update.
6942 (sh_sh_dsp_register_name): Update.
6943 (sh_sh3_dsp_register_name): Update.
6944 (sh_sh4_register_name): Update.
6945 (sh_sh64_register_name): Update.
6946 * s390-tdep.c (s390_register_name): Update.
6947 * rs6000-tdep.c (rs6000_register_name): Update.
6948 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6949 (ns32k_register_name_32382): Update.
6950 * d10v-tdep.c (d10v_ts2_register_name): Update.
6951 (d10v_ts3_register_name): Update.
6952 * xstormy16-tdep.c (xstormy16_register_name): Update.
6953 * vax-tdep.c (vax_register_name): Update.
6954 * v850-tdep.c (v850_register_name): Update.
6955 * m68hc11-tdep.c (m68hc11_register_name): Update.
6956 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6957 (am33_register_name): Update.
6958
6959 2002-06-17 Grace Sainsbury <graces@redhat.com>
6960
6961 * m68k-tdep.c: Reindented.
6962
6963 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6964
6965 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6966 list of predefined types.
6967
6968 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6969
6970 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6971 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6972 REGISTER_CONVERT_TO_RAW): Remove defines.
6973 (i386_register_virtual_type, i386_register_convertible,
6974 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6975 Remove prototypes.
6976 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6977 macros mentioned above.
6978
6979 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6980 (i386lynx_saved_pc_after_call): Remove prototype.
6981 * i386ly-tdep.c: Include "i386-tdep.h".
6982 (i386lynx_saved_pc_after_call): Make static. Use
6983 read_memory_nobpt instead of read_memory. Use
6984 read_memory_unsigned_integer instead of read_memory_integer.
6985 (i386lynx_init_abi): New function.
6986 (i386lynx_coff_osabi_sniffer): New function.
6987 (_initialize_i386bsd_tdep): New function.
6988
6989 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6990 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6991 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6992 (i386_fix_call_dummy): Remove prototype.
6993 * i386-tdep.c (i386_call_dummy_words): New variable.
6994 (i386_gdbarch_init): Adjust for removal of the
6995 macros mentioned above.
6996
6997 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6998
6999 * command.h (add_setshow_auto_boolean_cmd): Replace
7000 add_set_auto_boolean_cmd.
7001 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7002 add_set_auto_boolean_cmd.
7003 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7004 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7005 mask-address'' command.
7006 (show_mask_address): Add cmd parameter.
7007 * remote.c (add_packet_config_cmd): Update. Change type of
7008 set_func and show_func to cmd_sfunc_ftype.
7009 (_initialize_remote): Update `set remote Z-packet'
7010 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7011 (show_remote_protocol_e_packet_cmd): Ditto.
7012 (show_remote_protocol_E_packet_cmd): Ditto.
7013 (show_remote_protocol_P_packet_cmd): Ditto.
7014 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7015 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7016 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7017 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7018 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7019 (show_remote_protocol_Z_packet_cmd): Ditto.
7020 (show_remote_protocol_binary_download_cmd): Ditto.
7021 (show_remote_cmd): Pass NULL to all of above.
7022
7023 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7024
7025 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7026 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7027 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7028 POP_FRAME): Remove defines.
7029 (i386_push_arguments, i386_store_struct_return,
7030 i386_extract_return_value, i386_store_return_value,
7031 i386_extract_struct_value_address, i386_push_dummy_frame,
7032 i386_pop_frame): Renove prototypes.
7033 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7034 macros mentioned above.
7035
7036 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7037
7038 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7039 add_set_boolean_cmd.
7040 (add_setshow_cmd): New function.
7041 * command.h (add_setshow_boolean_cmd): Replace
7042 add_set_boolean_cmd.
7043 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7044 and ``set rdiromatzero''.
7045 * maint.c (_initialize_maint_cmds): Update commented out code.
7046 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7047 * target.c (initialize_targets): Update `set
7048 trust-readonly-sections'.
7049 * remote.c (_initialize_remote): Update `set remotebreak'.
7050
7051 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7052
7053 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7054 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7055 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7056 fit into multi-arch framework.
7057 (i386_breakpoint_from_pc): New function.
7058 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7059 above.
7060
7061 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7062 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7063 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7064 (i386_frameless_function_invocation, i386_frame_num_args,
7065 i386_frame_init_saved_regs): Remove prototypes.
7066 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7067 macros mentioned above.
7068
7069 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7070
7071 * cli/cli-decode.c (set_cmd_cfunc): Update.
7072 (set_cmd_sfunc): Update.
7073 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7074 (set_cmd_sfunc, set_cmd_cfunc): Update.
7075 * cli/cli-decode.h: Update.
7076
7077 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7078
7079 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7080 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7081
7082 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7083
7084 * defs.h (auto_boolean): Declare enum.
7085 * command.h (cmd_auto_boolean): Delete enum.
7086 * mips-tdep.c (mask_address_var): Update.
7087 (mips_mask_address_p): Update.
7088 (show_mask_address): Update.
7089 * remote.c (struct packet_config): Update.
7090 (update_packet_config): Update.
7091 (show_packet_config_cmd): Update.
7092 (packet_ok): Update.
7093 (add_packet_config_cmd): Update.
7094 (_initialize_remote):
7095 * command.h: Update.
7096 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7097 (do_setshow_command): Update.
7098 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7099 * cli/cli-decode.h: Update.
7100
7101 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7102
7103 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7104 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7105 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7106 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7107 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7108 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7109
7110 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7111 list of DJGPP COFF targets.
7112
7113 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7114 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7115 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7116 (FP0_REGNUM): Remove define.
7117 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7118 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7119 (i386_register_virtual_size): Remove protoype.
7120 * i386-tdep.c (i386_register_virtual_size): Removed.
7121 (i386_extract_return_value, i386_store_return_value): Use
7122 FP0_REGNUM instead of NUM_FREGS to determine whether the
7123 floating-point registers are available.
7124 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7125 Adjust for removal of macros mentioned above.
7126
7127 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7128
7129 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7130 comments.
7131 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7132 Remove prototypes.
7133 (supply_gregset, fill_gregset): Remove use of register keyword and
7134 remove declaration for regmap. Use I386_NUM_GREGS instead of
7135 NUM_REGS and NUM_FREGS.
7136 (FPREGSET_FSAVE_OFFSET): Remove.
7137 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7138 NUM_FREGS to determine whether the floating-point registers are
7139 available.
7140
7141 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7142 gnu_store_registers): Replace usage of NUM_GREGS with
7143 I386_NUM_GREGS.
7144
7145 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7146 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7147 usage of NUM_GREGS with I386_NUM_GREGS.
7148
7149 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7150
7151 * i386bsd-nat.c: Include "i386-tdep.h".
7152 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7153 I386_NUM_GREGS.
7154
7155 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7156 and associated comment. They no longer make any sense, since we
7157 don't use this file anymore on Linux.
7158
7159 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7160 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7161 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7162 elements in these arrays.
7163 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7164 MAX_NUM_REGS.
7165
7166 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7167
7168 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7169 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7170
7171 2002-06-14 Andrew Cagney <cagney@redhat.com>
7172
7173 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7174 EXTRACT_RETURN_VALUE.
7175 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7176 EXTRACT_STRUCT_VALUE_ADDRESS.
7177 * gdbarch.h, gdbarch.c: Regenerate.
7178
7179 * values.c (value_being_returned): Handle
7180 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7181 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7182
7183 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7184 * arm-tdep.c (arm_gdbarch_init): Update.
7185 * avr-tdep.c (avr_gdbarch_init): Update.
7186 * cris-tdep.c (cris_gdbarch_init): Update.
7187 * d10v-tdep.c (d10v_gdbarch_init): Update.
7188 * ia64-tdep.c (ia64_gdbarch_init): Update.
7189 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7190 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7191 * s390-tdep.c (s390_gdbarch_init): Update.
7192 * sh-tdep.c (sh_gdbarch_init): Update.
7193 * s390-tdep.c (s390_gdbarch_init): Update.
7194 * sparc-tdep.c (sparc_gdbarch_init): Update.
7195 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7196 * v850-tdep.c (v850_gdbarch_init): Update.
7197 * vax-tdep.c (vax_gdbarch_init): Update.
7198 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7200
7201 * config/arc/tm-arc.h: Update.
7202 * config/d30v/tm-d30v.h: Update.
7203 * config/fr30/tm-fr30.h: Update.
7204 * config/h8300/tm-h8300.h: Update.
7205 * config/h8500/tm-h8500.h: Update.
7206 * config/i386/tm-i386.h: Update.
7207 * config/i386/tm-ptx.h: Update.
7208 * config/i386/tm-symmetry.h: Update.
7209 * config/i960/tm-i960.h: Update.
7210 * config/m32r/tm-m32r.h: Update.
7211 * config/m68k/tm-delta68.h: Update.
7212 * config/m68k/tm-linux.h: Update.
7213 * config/m68k/tm-m68k.h: Update.
7214 * config/m88k/tm-m88k.h: Update.
7215 * config/mcore/tm-mcore.h: Update.
7216 * config/mips/tm-mips.h: Update.
7217 * config/mn10200/tm-mn10200.h: Update.
7218 * config/pa/tm-hppa.h: Update.
7219 * config/pa/tm-hppa64.h: Update.
7220 * config/sparc/tm-sp64.h: Update.
7221 * config/sparc/tm-sparc.h: Update.
7222 * config/sparc/tm-sparclet.h: Update.
7223 * config/z8k/tm-z8k.h: Update.
7224
7225 2002-06-14 Andrew Cagney <cagney@redhat.com>
7226
7227 * Makefile.in (i386_linux_tdep_h): Define.
7228 (i386_tdep_h, i387_tdep_h): Define.
7229 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7230 $(i386_tdep_h) and $(i387_tdep_h).
7231 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7232
7233 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7234
7235 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7236 Already covered by the default.
7237
7238 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7239 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7240 (i386_gdbarch_init): Initialize long_double_format and long_double
7241 bit.
7242
7243 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7244 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7245 Move these to ...
7246 * config/i386/i386sol2.mh: ... here.
7247 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7248 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7249 (SIGCONTEXT_PC_OFFSET): Remove define.
7250 (IN_SIGTRAMP): Remove define.
7251 * i386-sol2-tdep.c: New file.
7252
7253 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7254 * config/i386/tm-i386nw.h: Removed.
7255
7256 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7257 USE_STRUCT_CONVENTION): Remove defines.
7258 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7259 (get_longjmp_target): Remove prototype.
7260 (IN_SIGTRAMP): Remove define.
7261 (i386bsd_in_sigtramp): Remove prototype.
7262 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7263 function. Update comment accordingly
7264 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7265 (FRAME_SAVED_PC): Remove define.
7266 (i386bsd_frame_saved_pc): Remove prototype.
7267 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7268 GET_LONGJMP_TARGET): Remove defines.
7269 (get_longjmp_target): Remove prototype.
7270 (IN_SIGTRAMP): Remove define.
7271 (i386bsd_in_sigtramp): Remove prototype.
7272 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7273 function. Update comment accordingly
7274 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7275 (FRAME_SAVED_PC): Remove define.
7276 (i386bsd_frame_saved_pc): Remove prototype.
7277 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7278 Remove prototype.
7279 (USE_STRUCT_CONVENTION): Remove prototype.
7280 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7281 declaration.
7282 (_initialize_i386bsd_nat): Revise logic to determine some
7283 constants at compile time when compiling a native GDB. Warn if
7284 things don't match up with what we expect.
7285 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7286 Remove variables.
7287 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7288 to use date stored in `struct gdbarch_tdep'.
7289 (i386bsd_sigcontext_offset): Remove varaible.
7290 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7291 stored in `struct gdbarch_tdep'.
7292 (i386bsd_frame_saved_pc): Make static.
7293 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7294 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7295 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7296 i386fbsd4_sc_pc_offset): New variables.
7297 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7298 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7299 functions.
7300 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7301 functions.
7302 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7303 Modify the value of i386fbsd_sigtramp_start and
7304 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7305 i386fbsd_sigtramp_end.
7306 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7307 function.
7308
7309 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7310 define to i386-linux-tdep.h.
7311 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7312 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7313 defines.
7314 (i386_linux_register_name, i386_linux_register_byte,
7315 i386_linux_register_raw_size): Remove prototypes.
7316 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7317 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7318 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7319 TARGET_WRITE_PC): Remove defines.
7320 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7321 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7322 i386_linux_write_pc): Remove prototypes.
7323 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7324 (get_longjmp_target): Remove prototype.
7325 * i386-linux-tdep.h: New file.
7326 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7327 * i386-linux-tdep.c: Include "i386-tdep.h" and
7328 "i386-linux-tdep.h".
7329 (i386_linux_register_name, i386_linux_register_byte,
7330 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7331 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7332 Make static.
7333 (i386_linux_init_abi): New function.
7334 (_initialize_i386_linux_tdep): New function.
7335
7336 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7337 (i386_saved_pc_after_call): Remove prototype.
7338 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7339 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7340 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7341 (i386_register_name, i386_stab_reg_to_regnum,
7342 i386_dwarf_reg_to_regnum): Remove prototypes.
7343 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7344 SIZEOF_SSE_REGS): Remove defines.
7345 (REGISTER_BYTES): Remove define.
7346 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7347 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7348 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7349 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7350 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7351 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7352 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7353 (get_longjmp_target): Remove prototype.
7354 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7355 (sigtramp_saved_pc): Remove define.
7356 (i386v4_sigtramp_saved_pc): Remove prototype.
7357 * config/i386/tm-go32.h (FRAME_CHAIN,
7358 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7359 (i386go32_frame_saved_pc): Remove prototype.
7360 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7361 (get_longjmp_target): Remove prototype.
7362 * i386-tdep.h: Include "osabi.h".
7363 (enum i386_abi): Removed.
7364 (enum struct_return): New enum.
7365 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7366 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7367 sc_pc_offset members.
7368 (i386_gdbarch_register_os_abi): Remove prototype.
7369 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7370 I386_SSE_NUM_REGS): New defines.
7371 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7372 I386_SSE_SIZEOF_REGS): New defines.
7373 (i386_register_name, i386_register_byte, i386_register_raw_size):
7374 New prototypes.
7375 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7376 (i386bsd_sigtramp_saved_pc): New prototype.
7377 * i386-tdep.c: Don't include "elf-bfd.h".
7378 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7379 i386_frame_chain, i386_saved_pc_after_call): Make static.
7380 (i386_frame_saved_pc): Rewrite to call architecture dependent
7381 function to deal with signal handlers. Make static.
7382 (i386go32_frame_saved_pc): Removed.
7383 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7384 Removed.
7385 (i386_get_longjmp_target): New function.
7386 (default_struct_convention, pcc_struct_convention,
7387 reg_struct_convention, valid_conventions, struct_convention): New
7388 variables.
7389 (i386_use_struct_convention): New function.
7390 (i386v4_sigtramp_saved_pc): Renamed to
7391 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7392 (i386_pc_in_sigtramp): New function.
7393 (i386_abi_names): Removed.
7394 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7395 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7396 Removed.
7397 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7398 i386_gdbarch_register_os_abi): Removed.
7399 (struct i386_abi_handler): Removed.
7400 (i386_abi_handler_list): Removed.
7401 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7402 functions.
7403 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7404 i386_nw_init_abi): New functions.
7405 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7406 Use set_gdbarch_xxx() calls instead of relying on macros for a
7407 number of calls.
7408 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7409 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7410 Register the various architecture variants defined in this file.
7411
7412 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7413
7414 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7415 (struct main_type): Remove arg_types member. Update comments for
7416 struct field.
7417 (TYPE_ARG_TYPES): Remove.
7418 (TYPE_FN_FIELD_ARGS): Update.
7419 (smash_to_method_type): Update prototype.
7420
7421 * c-typeprint.c (cp_type_print_method_args): Take method type
7422 instead of argument list. Use new argument layout. Simplify.
7423 (c_type_print_args): Use new argument layout. Simplify.
7424 (c_type_print_base): Update call to cp_type_print_method_args.
7425 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7426 argument; use die->type instead. Update call to
7427 smash_to_method_type.
7428 (read_structure_scope): Update call to dwarf2_add_member_fn.
7429 * gdbtypes.c (allocate_stub_method): Update comment.
7430 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7431 Use new argument layout.
7432 (check_stub_method): Use new argument layout. Don't count
7433 void as an argument.
7434 (print_arg_types): Update comments. Use new argument layout.
7435 (recursive_dump_type): Don't print arg_types member.
7436 * hpread.c (hpread_read_struct_type): Use new argument layout.
7437 (fixup_class_method_type): Likewise.
7438 (hpread_type_lookup): Likewise.
7439 * stabsread.c (read_type): Update calls to read_args and
7440 smash_to_method_type.
7441 (read_args): Use new argument layout. Simplify.
7442 * valops.c (typecmp): Use new argument layout. Update parameters
7443 and comments. Simplify.
7444 (hand_function_call): Use new argument layout.
7445 (search_struct_method): Update call to typecmp.
7446 (find_overload_match): Use new argument layout.
7447
7448 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7449
7450 * NEWS: Mention multithreaded debug support for gdbserver.
7451
7452 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7453
7454 * MAINTAINERS: Mention NEWS.
7455
7456 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7457
7458 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7459 (struct mips_objfile_private, compare_pdr_entries): New.
7460 (non_heuristic_proc_desc): Read the ".pdr" section if it
7461 is present.
7462
7463 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7464
7465 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7466 (arm_debug): New static variable.
7467 (_initialize_arm_tdep): Add ``set debug arm'' command.
7468
7469 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7470
7471 * Makefile.in (sim_arm_h): Define.
7472 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7473 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7474 (arm_register_sim_regno): New function, map an internal REGNUM
7475 onto a simulator register number.
7476 (arm_gdbarch_init): Set register_sim_regno.
7477
7478 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7479
7480 * MAINTAINERS: Add self.
7481
7482 2002-06-11 Jim Blandy <jimb@redhat.com>
7483
7484 * source.c (source_info): Mention whether the symtab has
7485 information about preprocessor macros.
7486
7487 Call the command `info macro', not `show macro'.
7488 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7489 Fix error message.
7490 (_initialize_macrocmd): Register `info_macro_command' in
7491 `infolist', not `showlist'.
7492
7493 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7494
7495 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7496 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7497 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7498 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7499 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7500 unconditionally.
7501 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7502 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7503 (_initialize_mips_tdep): Remove dead code.
7504 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7505 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7506 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7507 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7508 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7509 MIPS_LAST_FP_ARG_REGNUM): Remove.
7510
7511 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7512
7513 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7514 (unwind_tmp_obstack_free, parse_frame_info)
7515 (update_context, cfi_read_fp, cfi_write_fp)
7516 (cfi_frame_chain, cfi_init_extra_frame_info)
7517 (cfi_virtual_frame_pointer): Use the above function.
7518 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7519
7520 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7521
7522 * v850-tdep.c (v850_type_is_scalar): New function.
7523 (v850_use_struct_convention): Match current gcc implementation
7524 as close as possible.
7525 (v850_push_arguments): Fix stack_offset handling. Don't write
7526 struct_addr into register. This is done by v850_store_struct_return.
7527 (v850_extract_return_value): Care for structs.
7528 (v850_store_return_value): Ditto.
7529 (v850_store_struct_return): Actually write address.
7530
7531 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7532
7533 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7534 without debug information too.
7535
7536 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7537
7538 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7539 Make multi-arch pure.
7540 * gdbarch.h, gdbarch.c: Re-generate.
7541 * arm-tdep.c (arm_print_float_info): Update.
7542 * arch-utils.h (default_print_float_info): Update.
7543 * arch-utils.c (default_print_float_info): Update.
7544 * infcmd.c (float_info): Update call.
7545
7546 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7547
7548 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7549 the front of the initialize list.
7550
7551 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7552
7553 * infrun.c (struct inferior_status): Replace fields
7554 selected_frame_address and selected_level with field
7555 selected_frame_id.
7556 (save_inferior_status): Update. Use get_frame_id.
7557 (struct restore_selected_frame_args): Delete.
7558 (restore_selected_frame): Update. Use frame_find_by_id.
7559 (restore_inferior_status): Update.
7560
7561 * breakpoint.h (struct breakpoint): Change type of
7562 watchpoint_frame to frame_id.
7563 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7564 call to get_current_frame.
7565 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7566 get_current_frame.
7567 (watchpoint_check): Use frame_find_by_id.
7568
7569 * frame.h (record_selected_frame): Delete declaration.
7570 * stack.c (record_selected_frame): Delete function.
7571
7572 * frame.h (struct frame_id): Define.
7573 (get_frame_id): Declare.
7574 (frame_find_by_id): Declare.
7575 * frame.c (frame_find_by_id): New function.
7576 (get_frame_id): New function.
7577
7578 2002-06-10 Andrey Volkov <avolkov@transas.com>
7579
7580 * ser-e7kpc.c: Fix duplicated define and call of
7581 _initialize_ser_e7000pc
7582
7583 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7584
7585 * signals/signals.c (target_signal_from_host): Fix #ifdef
7586 SIGRTMIN case.
7587 (do_target_signal_to_host): Likewise.
7588
7589 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7590
7591 * mips-tdep.c (mips_find_abi_section): New function.
7592 (mips_gdbarch_init): Call it.
7593
7594 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7595
7596 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7597 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7598 after Andrew's 2002-06-08 gdbarch change.
7599
7600 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7601
7602 * i386-linux-nat.c (suppy_gregset): Don't supply
7603 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7604 register cache.
7605 (fill_gregset): Don't fetch it under the same circumstances.
7606
7607 2002-06-09 Andrew Cagney <cagney@redhat.com>
7608
7609 * Makefile.in (callback_h): Define.
7610 (remote_sim_h): Update path to remote-sim.h.
7611 (remote-rdp.o): Add $(callback_h).
7612 (remote-sim.o): Use $(callback_h).
7613 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7614 * remote-rdp.c: Include "gdb/callback.h".
7615
7616 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7617
7618 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7619 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7620
7621 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7622
7623 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7624 * rdi-share/serpardr.c: Ditto.
7625 * rdi-share/unixcomm.c: Ditto.
7626 * rdi-share/serdrv.c: Ditto.
7627 * rdi-share/hostchan.h: Ditto.
7628 * rdi-share/hostchan.c: Ditto.
7629 * rdi-share/host.h: Ditto.
7630 * rdi-share/devsw.c: Ditto.
7631
7632 * objfiles.h: Change type of obj_private to void pointer.
7633 * pa64solib.c: Update copyright. Don't include "assert.h", use
7634 strcmp instead of STREQ, use LONGEST, do not use PTR
7635 * somsolib.c: Ditto.
7636
7637 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7638 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7639 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7640
7641 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7642
7643 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7644 (default_get_saved_register): Delete function.
7645 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7646 generic_unwind_get_saved_register.
7647 * gdbarch.h, gdbarch.c: Re-generate.
7648
7649 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7650
7651 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7652 generic_func_frame_chain_valid.
7653 * gdbarch.h, gdbarch.c: Re-generate.
7654 * blockframe.c (generic_func_frame_chain_valid): Only check
7655 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7656 passing FP to PC_IN_CALL_DUMMY.
7657 Fix PR gdb/360.
7658
7659 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7660
7661 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7662 (register_gdbarch_data): Initialize init_p.
7663 (gdbarch_data): Initialize data pointer using the init function.
7664 (init_gdbarch_data): Delete function.
7665 (gdbarch_update_p): Update.
7666 (initialize_non_multiarch): Update.
7667 (struct gdbarch): Add field initialized_p.
7668 * gdbarch.h, gdbarch.c: Re-generate.
7669
7670 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7671
7672 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7673 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7674 better do the things actually here.
7675 * x86-64-tdep.c (x86_64_register_name2nr): New.
7676 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7677 (x86_64_gdbarch_init): Respect the above change.
7678 * x86-64-tdep.h (x86_64_register_name2nr)
7679 (x86_64_register_nr2name): Add prototypes.
7680 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7681
7682 2002-06-06 Michael Snyder <msnyder@redhat.com>
7683
7684 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7685 Delete extra braces and re-indent.
7686 (d10v_store_return_value): Char return values
7687 must be shifted over by one byte in R0.
7688 (d10v_extract_return_value): Delete extra braces, re-indent.
7689
7690 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7691
7692 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7693 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7694 (d10v_integer_to_address): Rewrite.
7695 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7696 the d10v specific functions which take care of converting to the
7697 correct space.
7698
7699 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7700
7701 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7702 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7703
7704 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7705
7706 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7707 includes.
7708 * config/tm-linux.h: Ditto.
7709 * config/alpha/tm-alphalinux.h: Ditto.
7710 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7711 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7712 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7713 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7714 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7715 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7716 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7717 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7718 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7719 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7720 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7721 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7722 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7723 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7724 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7725 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7726 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7727 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7728 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7729 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7730 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7731 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7732 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7733 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7734 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7735 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7736 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7737 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7738 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7739 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7740 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7741 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7742 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7743 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7744 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7745 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7746 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7747
7748 2002-05-04 Aidan Skinner <aidan@velvet.net>
7749
7750 * ada-exp.tab.c: New file
7751 * ada-exp.y: New file
7752 * ada-lang.c: New file
7753 * ada-lang.h: New file
7754 * ada-lex.c: New file
7755 * ada-lex.l: New file
7756 * ada-tasks.c: New file
7757 * ada-typeprint.c: New file
7758 * ada-valprint.c: New file
7759
7760 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7761
7762 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7763 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7764
7765 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7766
7767 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7768 insetead of ppc-linux-tdep.o.
7769 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7770 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7771
7772 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7773
7774 2002-05-07 Christian Groessler <chris@groessler.org>
7775 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7776 bit register contents for little endian hosts.
7777
7778 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7779
7780 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7781 any maintainer.
7782
7783 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7784
7785 * gdbarch.h: Regenerate.
7786
7787 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7788
7789 * MAINTAINERS: Add everyone to write-after-approval list.
7790
7791 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7792
7793 * stack.c (frame_info): Use frame_register_unwind instead of
7794 saved_regs. Mention when the SP is on the stack or in a register.
7795
7796 * frame.h (frame_register_unwind_ftype): Define. Document.
7797 (struct frame_info): Add field register_unwind and
7798 register_unwind_cache.
7799 (frame_register_unwind): Declare.
7800 (generic_unwind_get_saved_register): Declare.
7801
7802 * frame.c (frame_register_unwind): New function.
7803 (generic_unwind_get_saved_register): New function.
7804
7805 * blockframe.c (generic_call_dummy_register_unwind): New function.
7806 (frame_saved_regs_register_unwind): New function.
7807 (set_unwind_by_pc): New function.
7808 (create_new_frame): New function.
7809 (get_prev_frame): New function.
7810
7811 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7812
7813 * a29k-share/: Delete directory.
7814 * remote-vx29k.c: Delete file.
7815
7816 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7817
7818 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7819 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7820
7821 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7822
7823 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7824 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7825 (sparc64nbsd-nat.o)
7826 (sparcnbsd-nat.o)
7827 (sparcnbsd-tdep.o): New dependency lists.
7828 * NEWS: Note new UltraSPARC NetBSD native configuration.
7829 * configure.host (sparc64-*-netbsd*): New host.
7830 * configure.tgt (sparc-*-netbsdelf*)
7831 (sparc-*-netbsd*): Set gdb_target to nbsd.
7832 (sparc64-*-netbsd*): New target.
7833 * sparc64nbsd-nat.c: New file.
7834 * sparcnbsd-nat.c: New file.
7835 * sparcnbsd-tdep.c: New file.
7836 * sparcnbsd-tdep.h: New file.
7837 * config/sparc/nbsd.mt: New file.
7838 * config/sparc/nbsd64.mh: New file.
7839 * config/sparc/nbsd64.mt: New file.
7840 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7841 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7842 (HOST_IPC): Remove.
7843 * config/sparc/nbsdaout.mt: Remove.
7844 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7845 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7846 (HOST_IPC): Remove.
7847 * config/sparc/nbsdelf.mt: Remove.
7848 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7849 sparc-nat.c compatiblity defines.
7850 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7851 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7852 * config/sparc/tm-nbsd64.h: New file.
7853 * config/sparc/tm-nbsdaout.h: Remove.
7854 * config/sparc/xm-nbsd.h: Remove.
7855
7856 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7857
7858 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7859 * sparc-tdep.c: Include osabi.h.
7860 (gdbarch_tdep): Add osabi member.
7861 (_initialize_sparc_tdep): Use gdbarch_register.
7862 (sparc_gdbarch_init): Use generic OS ABI framework.
7863 (sparc_dump_tdep): New function.
7864
7865 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7866
7867 * corefile.c (do_captured_read_memory_integer): Return non-zero
7868 result.
7869 (safe_read_memory_integer): Copy result of memory read when
7870 status is non-zero. Also, add comments.
7871
7872 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7873
7874 * Makefile.in (ppc_tdep_h): Define.
7875 (ppc-linux-nat.o)
7876 (ppc-linux-tdep.o)
7877 (rs6000-tdep.o): Use $(ppc_tdep_h).
7878 (ppc-sysv-tdep.o)
7879 (ppcnbsd-nat.o)
7880 (ppcnbsd-tdep.o): New dependency lists.
7881 * ppc-tdep.h: Use generic OS ABI framework.
7882 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7883 (ppc_linux_init_abi): New functions.
7884 (ppc_sysv_abi_broken_use_struct_convention)
7885 (ppc_sysv_abi_use_struct_convention)
7886 (ppc_sysv_abi_push_arguments): Move to...
7887 * ppc-sysv-tdep.c: ...here.
7888 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7889 * rs6000-tdep.c (process_note_abi_tag_sections)
7890 (get_elfosabi): Remove.
7891 (rs6000_gdbarch_init): Use generic OS ABI framework.
7892 (rs6000_dump_tdep): New function.
7893 (_initialize_rs6000_tdep): Use gdbarch_register.
7894 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7895 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7896 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7897 of ppc-linux-tdep.o.
7898 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7899 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7900 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7901 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7902 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7903 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7904
7905 2002-05-29 Jim Blandy <jimb@redhat.com>
7906
7907 * macroscope.c (default_macro_scope): Put `void' in empty argument
7908 list.
7909
7910 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7911
7912 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7913 * arch-utils.c: Include "sim-regno.h".
7914 * gdbarch.sh: Don't include "sim-regno.h".
7915 * gdbarch.h, gdbarch.c: Regenerate.
7916 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7917 here.
7918 * arch-utils.h (legacy_register_sim_regno): To here.
7919 * remote-sim.c (legacy_register_sim_regno): Move function from
7920 here.
7921 * arch-utils.c (legacy_register_sim_regno): To here.
7922
7923 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7924
7925 * sim-regno.h: New file.
7926 * Makefile.in (sim_regno_h): Define.
7927 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7928 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7929 (legacy_register_sim_regno): New function.
7930 (one2one_register_sim_regno): New function.
7931 (gdbsim_fetch_register): Rewrite.
7932 (gdbsim_store_register): Only store a register when
7933 REGISTER_SIM_REGNO is valid.
7934 * d10v-tdep.c: Include "sim-regno.h".
7935 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7936 (d10v_ts3_register_sim_regno): Ditto.
7937 * gdbarch.sh: Include "sim-regno.h".
7938 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7939 * gdbarch.h, gdbarch.c: Regenerate.
7940 * arch-utils.h (default_register_sim_regno): Delete declaration.
7941 * arch-utils.c (default_register_sim_regno): Delete function.
7942
7943 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7944
7945 * ppcnbsd-nat.c: Rewrite.
7946 * ppcnbsd-tdep.c: New file.
7947 * ppcnbsd-tdep.h: New file.
7948 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7949 solib.o, and solib-svr4.o.
7950 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7951 nbsd-tdep.o, and corelow.o.
7952
7953 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7954
7955 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7956 `tr' and `sed'. Mention that `broken' targets are not expected to
7957 build.
7958
7959 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7960
7961 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7962 Let PC point right after the prologue before looking up symbols.
7963
7964 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7965
7966 * i386-tdep.c (i386_register_virtual_type): Return
7967 builtin_type_vec128i for SSE registers.
7968
7969 * gdbtypes.h (builtin_type_vec128i): Declare.
7970
7971 * gdbtypes.c (build_builtin_type_vec128i): New function.
7972 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7973 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7974 (build_gdbtypes): Initialize new builtin vector types.
7975 (_initialize_gdbtypes): Register new vector types with gdbarch.
7976
7977 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7978
7979 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7980 since it has been multi-arch'd.
7981 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7982 Move Alpha and VAX multi-arch news entries to same section
7983 as other multi-arch news.
7984
7985 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7986
7987 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7988 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7989 static. Rename some register numbers to put them in ns32k-tdep
7990 private namespace.
7991 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7992 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7993 functions.
7994 (_initialize_ns32k_tdep): Use gdbarch_register.
7995 * ns32k-tdep.h: New file.
7996 * ns32knbsd-tdep.c: New file.
7997 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7998 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7999 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8000 REGISTER_BYTES, REGISTER_BYTE): Remove.
8001 * config/ns32k/tm-ns32k.h: New file.
8002 * config/ns32k/tm-umax.h: Remove.
8003
8004 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8005
8006 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8007 ns32k_store_struct_return, ns32k_extract_return_value,
8008 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8009 functions.
8010 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8011 ns32k_saved_pc_after_call.
8012 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8013 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8014 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8015 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8016 ns32k_extract_struct_value_address.
8017
8018 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8019
8020 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8021 ns32k_fix_call_dummy): New.
8022 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8023 ns32k_call_dummy_words.
8024 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8025 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8026 CALL_DUMMY_NARGS): Remove.
8027 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8028
8029 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8030
8031 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8032 ns32k_frame_saved_pc, ns32k_frame_args_address,
8033 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8034 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8035 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8036 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8037 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8038 (BREAKPOINT): Remove..
8039 (FRAME_CHAIN): Define as ns32k_frame_chain.
8040 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8041 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8042 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8043 (FRAME_FIND_SAVED_REGS): Remove.
8044 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8045 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8046 (POP_FRAME): Define as ns32k_pop_frame.
8047
8048 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8049
8050 * ns32k-tdep.c (ns32k_register_byte_32082,
8051 ns32k_register_byte_32382, ns32k_register_raw_size,
8052 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8053 functions.
8054 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8055 ns32k_register_byte_32382.
8056 * config/ns32k/tm-umax.h: Update copyright years.
8057 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8058 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8059 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8060 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8061 (ns32k_get_enter_addr): Fix prototype.
8062
8063 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8064
8065 * ns32k-tdep.c: Update copyright years.
8066 (ns32k_register_name_32082): New function.
8067 (ns32k_register_name_32382): Ditto.
8068 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8069 (REGISTER_NAME): Define as ns32k_register_name_32382.
8070 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8071 (REGISTER_NAME): Define as ns32k_register_name_32082.
8072
8073 2002-05-24 Jim Blandy <jimb@redhat.com>
8074
8075 * dwarf2read.c (free_line_header): Use xfree, not free.
8076
8077 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8078
8079 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8080 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8081
8082 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8083
8084 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8085
8086 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8087
8088 From Ross Alexander at NEC Europe:
8089 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8090
8091 2002-05-23 Michael Snyder <msnyder@redhat.com>
8092
8093 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8094 for input, rather than parse_and_eval_address.
8095
8096 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8097
8098 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8099 * Makefile.in (sim_d10v_h): Update definition.
8100
8101 2002-05-24 Andrew Cagney <cagney@redhat.com>
8102
8103 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8104 change `2002-05-22 Michael Snyder' below.
8105 (d10v_push_arguments): Ditto.
8106 (d10v_extract_return_value): Ditto.
8107
8108 2002-05-23 Jim Blandy <jimb@redhat.com>
8109
8110 * macrotab.c (check_for_redefinition): Don't complain if the new
8111 definition is the same as the previous one. Take more arguments
8112 to allow the comparison.
8113 (macro_define_object, macro_define_function): Pass more arguments
8114 to check_for_redefinition.
8115
8116 2002-05-22 Michael Snyder <msnyder@redhat.com>
8117
8118 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8119 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8120 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8121 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8122 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8123 Add a temp variable to save a call (and a memory read).
8124 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8125 if possible (so that PC_IN_CALL_DUMMY will work).
8126
8127 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8128
8129 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8130
8131 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8132
8133 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8134 fde->cie_ptr.
8135 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8136 (dwarf2_build_frame_info): Add offset to fde->initial_location
8137 so that frames of shared libraries are mapped correctly.
8138 (execute_stack_op): Change type of 'result' from ULONGEST to
8139 CORE_ADDR.
8140
8141 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8142
8143 * config/alpha/tm-nbsd.h: Include solib.h.
8144
8145 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8146
8147 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8148 assumptions about the host's byte order.
8149
8150 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8151
8152 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8153 to dependency list.
8154 * alphanbsd-tdep.c: Include solib-svr4.h.
8155 * shnbsd-tdep.c: Ditto.
8156
8157 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8158
8159 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8160 nbsd-tdep.h to dependency list.
8161 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8162 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8163 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8164 nbsdaout.mh and nbsdelf.mh consistently.
8165 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8166 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8167 nbsdaout.mt and nbsdelf.mh consistently.
8168 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8169 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8170 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8171 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8172 a.out shared library stuff from here...
8173 * config/nm-nbsdaout.h: ...to here.
8174 * config/tm-nbsd.h: Remove.
8175 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8176 * config/arm/nbsd.mh: Remove.
8177 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8178 nbsd-tdep.o.
8179 * config/arm/nbsdaout.mh: New file.
8180 * config/arm/nbsdelf.mh: New file.
8181 * config/arm/nm-nbsdaout.h: New file.
8182 * config/i386/nbsd.mh: Remove.
8183 * config/i386/nbsd.mt: Remove.
8184 * config/i386/nbsdaout.mh: New file.
8185 * config/i386/nbsdaout.mt: New file.
8186 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8187 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8188 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8189 i386_register_u_addr): Remove.
8190 * config/i386/nm-nbsdaout.h: New file.
8191 * config/i386/nm-nbsdelf.h: Remove.
8192 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8193 (USE_STRUCT_CONVENTION): Remove.
8194 * config/i386/tm-nbsdaout.h: New file.
8195 * config/i386/tm-nbsdelf.h: Remove.
8196 * config/m68k/nbsd.mh: Remove.
8197 * config/m68k/nbsd.mt: Remove.
8198 * config/m68k/nbsdaout.mh: New file.
8199 * config/m68k/nbsdaout.mt: New file.
8200 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8201 * config/m68k/nm-nbsdaout.h: New file.
8202 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8203 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8204 * config/ns32k/nbsd.mh: Remove.
8205 * config/ns32k/nbsd.mt: Remove.
8206 * config/ns32k/nbsdaout.mh: New file.
8207 * config/ns32k/nbsdaout.mt: New file.
8208 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8209 * config/ns32k/nm-nbsdaout.h: New file.
8210 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8211 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8212 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8213 (SVR4_SHARED_LIBS): Remove.
8214 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8215 * config/sparc/nbsd.mh: Remove.
8216 * config/sparc/nbsd.mt: Remove.
8217 * config/sparc/nbsdaout.mh: New file.
8218 * config/sparc/nbsdaout.mt: New file.
8219 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8220 * config/sparc/nbsdelf.mt: New file.
8221 * config/sparc/nm-nbsdaout.h: New file.
8222 * config/sparc/nm-nbsdelf.h: Remove.
8223 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8224 * config/sparc/tm-nbsdaout.h: New file.
8225
8226 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8227
8228 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8229 mipsnbsd-tdep.c
8230 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8231
8232 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8233
8234 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8235 shnbsd-nat.c.
8236 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8237
8238 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8239
8240 * NEWS: Note new MIPS NetBSD native configuration.
8241 * configure.host (mips*-*-netbsd*): New host.
8242 * configure.tgt (mips*-*-netbsd*): New target.
8243 * mipsnbsd-nat.c: New file.
8244 * mipsnbsd-tdep.c: New file.
8245 * mipsnbsd-tdep.h: New file.
8246 * config/mips/nbsd.mh: New file.
8247 * config/mips/nbsd.mt: New file.
8248 * config/mips/nm-nbsd.h: New file.
8249 * config/mips/tm-nbsd.h: New file.
8250
8251 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8252
8253 * Makefile.in (SFILES): Add osabi.c.
8254 (COMMON_OBS): Add osabi.o.
8255 (osabi.o): New dependency list.
8256 * osabi.c: New file.
8257 * osabi.h: New file.
8258 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8259
8260 * Makefile.in (alpha_tdep_h): Define and use instead of
8261 alpha-tdep.h.
8262 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8263 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8264 Remove.
8265 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8266 * alpha-tdep.h: Include osabi.h.
8267 (alpha_abi): Remove.
8268 (gdbarch_tdep): Use generic OS ABI framework.
8269 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8270 gdbarch_register_osabi.
8271 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8272 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8273 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8274
8275 * Makefile.in (sh_tdep_h): Add osabi.h.
8276 * sh-tdep.h (sh_osabi): Remove.
8277 (gdbarch_tdep): Use generic OS ABI framework.
8278 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8279 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8280 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8281 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8282
8283 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8284 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8285 gdbarch_register_osabi.
8286 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8287 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8288 (get_elfosabi): Rename to...
8289 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8290 ABI framework support routines.
8291 (arm_gdbarch_init): Use generic OS ABI framework.
8292 (arm_dump_tdep): Likewise.
8293 (_initialize_arm_tdep): Likewise.
8294 * arm-tdep.h: Include osabi.h.
8295 (arm_abi): Remove.
8296 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8297 osabi member.
8298 (arm_gdbarch_register_os_abi): Remove prototype.
8299 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8300 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8301
8302 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8303 * mips-tdep.c: Include osabi.h.
8304 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8305 OS ABI framework.
8306
8307 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8308
8309 * h8300-tdep.c: Fix formatting.
8310
8311 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8312
8313 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8314 printing vector registers.
8315
8316 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8317
8318 From Fernando Nasser:
8319 * remote.c (remote_async_open_1): Re-throw the exception when the
8320 connection fails.
8321 (remote_cisco_open): Ditto.
8322 (remote_open_1): Ditto.
8323
8324 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8325
8326 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8327 (remote_start_remote): Add uiout parameter. Pass through to
8328 remote_start_remote_dummy.
8329 (remote_open_1): Use catch_exception instead of catch_errors.
8330 (remote_async_open_1): Ditto.
8331 (remote_cisco_open): Ditto.
8332
8333 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8334
8335 * remote.c (remote_start_remote): Replace PTR with void pointer.
8336 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8337 static.
8338
8339 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8340
8341 * gdb_indent.sh: Allow the script to be run in the sim directory.
8342
8343 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8344
8345 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8346 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8347
8348 * corelow.c (core_open): Only call set_gdbarch_from_file if
8349 exec_bfd is NULL.
8350
8351 2002-05-17 Andrey Volkov <avolkov@transas.com>
8352
8353 * h8300-tdep.c: Add support of EXR register
8354 * config/h8300/tm-h8300.h: Ditto.
8355
8356 2002-05-17 Andrey Volkov <avolkov@transas.com>
8357
8358 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8359
8360 2002-05-17 Andrey Volkov <avolkov@transas.com>
8361
8362 * h8300-tdep.c: Change literal regnums to REGNO.
8363
8364 2002-05-17 Jim Blandy <jimb@redhat.com>
8365
8366 * NEWS: Note addition of macro support.
8367
8368 Expand preprocessor macros in C expressions.
8369 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8370 (scan_macro_expansion, scanning_macro_expansion,
8371 finished_macro_expansion): New function declarations.
8372 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8373 variable declarations.
8374 * parser-defs.h (expression_context_pc): New declaration.
8375 * parse.c (expression_context_pc): New variable.
8376 (parse_exp_1): Set expression_context_pc, as well as
8377 expression_context_block.
8378 * c-exp.y (yylex): If we're not already reading the result of a
8379 macro expansion, try to macro-expand the next token. When we're
8380 done scanning a macro expansion, switch back to the mainline text.
8381 Commas and `if's in a macro's expansion don't terminate the input.
8382 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8383 (macro_original_text, macro_expanded_text,
8384 expression_macro_lookup_func, expression_macro_lookup_baton): New
8385 variables.
8386 (scan_macro_expansion, scanning_macro_expansion,
8387 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8388 c_preprocess_and_parse): New functions.
8389 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8390 c_preprocess_and_parse, instead of c_parse.
8391 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8392 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8393
8394 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8395
8396 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8397 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8398 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8399
8400 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8401
8402 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8403
8404 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8405
8406 * Makefile.in (sh_tdep_h): Define and use.
8407 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8408 register enum): Move to...
8409 * * sh-tdep.h: ...here.
8410 * sh-tdep.c: Include sh-tdep.h.
8411 * sh3-rom.c: Likewise.
8412 * shnbsd-tdep.c: Likewise.
8413
8414 2002-05-16 Michael Snyder <msnyder@redhat.com>
8415
8416 * arm-tdep.c: Spelling fix in comment.
8417
8418 2002-05-16 Jim Blandy <jimb@redhat.com>
8419
8420 Add commands for manually expanding macros and showing their
8421 definitions.
8422 * macrocmd.c, macroscope.c, macroscope.h: New files.
8423 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8424 (macroscope_h): New variable.
8425 (HFILES_NO_SRCDIR): Add macroscope.h.
8426 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8427 (macroscope.o, macrocmd.o): New rules.
8428
8429 Teach the Dwarf 2 reader to read macro information.
8430 * dwarf2read.c: #include "macrotab.h".
8431 (dwarf_macinfo_buffer): New variable.
8432 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8433 dwarf_macinfo_size.
8434 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8435 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8436 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8437 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8438 dwarf2_macro_spaces_in_definition): New complaints.
8439 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8440 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8441 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8442 the partial symbol table.
8443 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8444 from what's recorded in the partial symbol table.
8445 (read_file_scope): If the compilation unit has a
8446 `DW_AT_macro_info' attribute, read its macro information.
8447 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8448
8449 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8450
8451 Fix PR gdb/546
8452 * ser-tcp.c: Don't include <netinet/udp.h>.
8453
8454 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8455
8456 * MAINTAINERS: Update my email address.
8457
8458 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8459
8460 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8461 include file of the same name.
8462
8463 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8464
8465 * configure.tgt: Mark v850 as multi-arched.
8466 * config/v850/tm-v850.h: Remove file.
8467 * config/v850/v850.mt: Eliminate TM_FILE.
8468
8469 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8470
8471 * v850-tdep.c: Full multi-arch.
8472 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8473 Define GDB_MULTI_ARCH to 2.
8474
8475 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8476
8477 * p-exp.y (current_type): New static variable.
8478 Carries the type of the expression at the position that is parsed.
8479 (push_current_type, pop_current_type): Two new functions. Used
8480 to store/restore current_type in expression on specific tokens.
8481 (search_field): New static variable. Set to one after parsing a point
8482 as at that point only a FIELDNAME token should be searched.
8483 (FIELDNAME): New token. After a point only a token belonging to
8484 current_type type definition is allowed.
8485 (all over token rules): reset and change current_type according
8486 to rules.
8487 (exp '[' rule): insert implicit array index field if
8488 exp is a pascal string type.
8489
8490 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8491
8492 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8493 frame info. Use frame_info's saved_regs instead of matching member
8494 in extra_frame_info throughout.
8495 (v850_frame_init_saved_regs): New function.
8496 (v850_init_extra_frame_info): Move most functionality into
8497 v850_frame_init_saved_regs().
8498 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8499 (v850_frame_find_saved_regs): Remove declaration.
8500 (FRAME_FIND_SAVED_REGS): Remove definition.
8501 (v850_frame_init_saved_regs): Add declaration.
8502 (FRAME_INIT_SAVED_REGS): Add definition.
8503
8504 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8505
8506 * v850-tdep.c: Begin multi-arch'ing v850.
8507 (v850_target_architecture_hook): Remove function.
8508 (v850_gdbarch_init): New function. Add code previously in
8509 v850_target_architecture_hook().
8510 (_initialize_v850_tdep): Don't set target_architecture_hook.
8511 Call register_gdbarch_init() instead.
8512
8513 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8514
8515 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8516 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8517 (fixup_class_method_type): Likewise.
8518
8519 2002-05-15 Jim Blandy <jimb@redhat.com>
8520
8521 Add macro structures to GDB's symbol tables. Nobody puts anything
8522 in them yet.
8523 * symtab.h (struct symtab): New member: `macro_table'.
8524 * buildsym.h (pending_macros): New global variable.
8525 * buildsym.c: #include "macrotab.h".
8526 (buildsym_init): Initialize `pending_macros'.
8527 (end_symtab): If we found macro information while reading a CU's
8528 debugging info, do build a symtab structure for it. Make the
8529 symtab point to the macro information, and clear the
8530 `pending_macros' pointer which held it while we were reading the
8531 debug info.
8532 (really_free_pendings): Free any pending macro table.
8533 * objfiles.h (struct objfile): New member: `macro_cache'.
8534 * objfiles.c (allocate_objfile): Set allocate and free functions
8535 for the macro cache's objstack.
8536 (free_objfile): Empty the macro cache's obstack.
8537 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8538 set new allocate and free functions for it.
8539 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8540 free functions for the macro cache's objstack. (Why is this
8541 function building its own objfile?)
8542 * symmisc.c (print_objfile_statistics): Print statistics on the
8543 macro bcache.
8544 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8545
8546 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8547
8548 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8549 (REGISTER_U_ADDR): Delete definition.
8550 (arm_register_u_addr): Delete declaration.
8551
8552 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8553
8554 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8555 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8556
8557 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8558
8559 * regcache.c (register_valid): Revise comments refering to "Not
8560 available" and "unavailable".
8561 * frame.c (frame_register_read): Ditto.
8562 * findvar.c (value_of_register): Ditto.
8563
8564 2002-05-15 Andrew Cagney <cagney@redhat.com>
8565
8566 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8567 (remote-sim.o): Update dependencies.
8568 (d10v-tdep.o): Specify dependencies.
8569 (sim_d10v_h): Define.
8570
8571 2002-05-14 Jim Blandy <jimb@redhat.com>
8572
8573 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8574 * macrotab.c (macro_lookup_inclusion, find_definition,
8575 new_macro_table): Same.
8576
8577 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8578 not `! strcmp ()'. This is a dubious improvement.
8579 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8580
8581 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8582 although it's not necessary, to avoid a warning.
8583
8584 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8585
8586 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8587 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8588 TYPE_INSTANCE_FLAGS.
8589 (struct main_type): New.
8590 (struct type): Move most members to struct main_type. Change
8591 cv_type and as_type to new type_chain member. Add instance_flags.
8592 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8593 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8594 (finish_cv_type): Remove prototype.
8595 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8596 Set TYPE_CHAIN.
8597 (alloc_type_instance): New function.
8598 (smash_type): New function.
8599 (make_pointer_type, make_reference_type, make_function_type)
8600 (smash_to_member_type, smash_to_method_type): Call smash_type.
8601 (make_qualified_type): New function.
8602 (make_type_with_address_space): Call make_qualified_type.
8603 (make_cv_type): Likewise.
8604 (finish_cv_type): Remove unnecessary function.
8605 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8606 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8607 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8608 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8609 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8610 * hpread.c (hpread_read_struct_type): Likewise.
8611 * stabsread.c (read_struct_type): Likewise.
8612
8613 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8614
8615 * configure.tgt: Add a catch all sh* target, for cases like
8616 sh[2,3,4]-elf and sh-hms.
8617
8618 2002-05-14 Keith Seitz <keiths@redhat.com>
8619
8620 * event-loop.c (create_file_handler): Don't do anything but
8621 update data when we are given a fd which we are already
8622 monitoring.
8623
8624 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8625
8626 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8627 (update_context): Use __func__ in warnings.
8628
8629 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8630
8631 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8632 and tcp_close to net_open and net_close.
8633 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8634 using UDP if requested. Don't try to disable Nagle on UDP
8635 sockets.
8636 * remote.c (remote_serial_open): New function. Warn about UDP.
8637 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8638
8639 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8640
8641 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8642
8643 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8644
8645 * configure.tgt: Remove sh-hms target.
8646 * MAINTAINERS: Don't list sh-hms as a separate target.
8647
8648 2002-05-13 Jim Blandy <jimb@redhat.com>
8649
8650 Add first preprocessor macro-expansion files.
8651 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8652 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8653 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8654 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8655 (COMMON_OBS): Add macrotab.o, macroexp.o.
8656 (macroexp.o, macrotab.o): New rules.
8657
8658 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8659
8660 * config/m88k/tm-m88k.h: Update copyright.
8661 (m88k_target_write_pc): Declare
8662 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8663 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8664 (SHIFT_INST_REGS): Update definition.
8665 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8666 using old definition of TARGET_WRITE_PC.
8667 * regcache.c (generic_target_write_pc): Delete code handling
8668 NNPC_REGNUM.
8669 * gdbarch.sh (NNPC_REGNUM): Delete.
8670 * gdbarch.h, gdbarch.c: Regenerate.
8671
8672 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8673
8674 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8675 builtin reg number.
8676
8677 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8678
8679 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8680 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8681 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8682 access macros.
8683 * c-typeprint.c (cp_type_print_method_args): Likewise.
8684 (c_type_print_args): Likewise.
8685 * d10v-tdep.c (d10v_push_arguments): Likewise.
8686 (d10v_extract_return_value): Likewise.
8687 * expprint.c (print_subexp): Likewise.
8688 * gdbtypes.c (lookup_primitive_typename): Likewise.
8689 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8690 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8691 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8692 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8693 (TYPE_VECTOR): Likewise.
8694 * hpread.c (hpread_read_struct_type)
8695 (fix_static_member_physnames, fixup_class_method_type)
8696 (hpread_type_lookup): Likewise.
8697 * mdebugread.c (parse_symbol, parse_type): Likewise.
8698 * p-lang.c (is_pascal_string_type): Likewise.
8699 * valops.c (hand_function_call): Likewise.
8700 * x86-64-tdep.c (classify_argument): Likewise.
8701
8702 * hpread.c (hpread_read_function_type)
8703 (hpread_read_doc_function_type): Call replace_type.
8704 * dstread.c (create_new_type): Delete.
8705 (decode_dst_structure, process_dst_function): Call alloc_type.
8706 Use type access macros.
8707
8708 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8709
8710 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8711 the're not supported by the current architecture.
8712 (i387_fill_fxsave): Likewise.
8713
8714 2002-05-12 Fred Fish <fnf@redhat.com>
8715
8716 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8717 sect_index_xxx members to index the first slot in section_offsets
8718 if all of the section_offsets are zero.
8719
8720 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8721
8722 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8723 checked in with last change.
8724
8725 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8726
8727 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8728 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8729 config.sub.
8730
8731 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8732
8733 * Makefile.in: Update dependencies.
8734
8735 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8736
8737 * language.c (local_hex_string_custom): Simplify. Do not depend
8738 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8739
8740 * memattr.c (mem_info_command): Replace calls to
8741 longest_local_hex_string and longest_local_hex_string_custom.
8742 * buildsym.c (make_blockvector): Ditto.
8743 * solib.c (info_sharedlibrary_command): Ditto.
8744 * tracepoint.c (tracepoints_info): Ditto.
8745 * symtab.c (print_msymbol_info): Ditto.
8746
8747 * language.c (local_hex_string): Delete.
8748 (local_hex_string_custom): Delete.
8749 (longest_local_hex_string): Rename to local_hex_string.
8750 (longest_local_hex_string_custom): Rename to
8751 local_hex_string_custom.
8752 * language.h (local_hex_string): Change parameter type to LONGEST.
8753 (local_hex_string_custom): Ditto.
8754 (longest_local_hex_string): Delete declaration.
8755 (longest_local_hex_string_custom): Ditto.
8756
8757 * solib.c: Update copyright.
8758 * memattr.c: Update copyright.
8759
8760 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8761
8762 * arch-utils.h (legacy_register_to_value): Declare.
8763 (legacy_value_to_register): Declare.
8764 (legacy_convert_register_p): Declare.
8765 * arch-utils.c (legacy_register_to_value): New function.
8766 (legacy_value_to_register): New function.
8767 (legacy_convert_register_p): New function.
8768
8769 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8770 (VALUE_TO_REGISTER): Define.
8771 (CONVERT_REGISTER_P): Define.
8772 * gdbarch.h, gdbarch.c: Regenerate.
8773
8774 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8775 VALUE_TO_REGISTER.
8776 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8777 CONVERT_REGISTER_P.
8778
8779 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8780 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8781
8782 * Makefile.in: Update dependencies for valops.c.
8783 * valops.c: Include "gdb_assert.h".
8784 (typecmp): Skip THIS parameter to methods.
8785 (find_method_list): Remove static_memfuncp argument,
8786 update callers. Check for stub methods.
8787 (find_value_oload_method_list): Don't set *static_memfuncp.
8788 (find_overload_match): Don't check for stub methods. Assert
8789 that methods are not stubbed. Handle static methods.
8790 (value_find_oload_method_list): Remove static_memfuncp argument.
8791 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8792 to the argument list for static stub methods.
8793 * value.h (value_find_oload_method_list): Update prototype.
8794
8795 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8796
8797 * arch-utils.h (generic_register_size): Declare.
8798 (generic_register_raw_size, generic_register_virtual_size): Delete
8799 declarations.
8800 * arch-utils.c (generic_register_raw_size): Delete.
8801 (generic_register_size): New function.
8802 (generic_register_virtual_size): Delete.
8803
8804 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8805 default generic_register_size.
8806 * gdbarch.h, gdbarch.c: Re-generate.
8807
8808 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8809 register_virtual_size.
8810 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8811 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8812
8813 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8814
8815 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8816 * gdbarch.h, gdbarch.c: Regenerate.
8817 * gnu-v3-abi.c: Update copyright.
8818 (vtable_address_point_offset): Update.
8819 (gnuv3_rtti_type): Update.
8820 (gnuv3_baseclass_offset): Update.
8821 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8822 (init_fetch_link_map_offsets): Update.
8823 * remote.c (get_remote_state): Update.
8824
8825 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8826
8827 * TODO: Remove value_headof/value_from_vtable_info comment.
8828 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8829 * values.c (value_headof, value_from_vtable_info): Delete.
8830 * value.h (value_from_vtable_info): Delete prototype.
8831
8832 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8833
8834 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8835 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8836 $(gdb_regex_h).
8837 (gdb_assert_h): Define.
8838 (gdb_wait_h): Define.
8839 (gdb_regex_h): Define.
8840
8841 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8842
8843 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8844 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8845
8846 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8847
8848 * nbsd-tdep.c: Fix comment.
8849
8850 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8851
8852 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8853 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8854 (nbsd-tdep.o): New dependency list.
8855 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8856 nbsd-tdep.h.
8857 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8858 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8859 * nbsd-tdep.c: New file.
8860 * nbsd-tdep.h: New file.
8861 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8862 nbsd-tdep.h.
8863 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8864 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8865 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8866 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8867
8868 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8869
8870 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8871 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8872 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8873 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8874 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8875 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8876
8877 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8878
8879 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8880 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8881 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8882 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8883 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8884 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8885 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8886
8887 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8888
8889 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8890 fetch_elfcore_registers to...
8891 * i386nbsd-tdep.c: ...here.
8892 (i386nbsd_use_struct_convention): Rename to...
8893 (i386nbsd_aout_use_struct_convention): ...this.
8894 (i386nbsd_supply_reg): New function.
8895 (i386nbsd_fill_reg): New function.
8896 (fetch_core_registers): Use i386nbsd_supply_reg.
8897 (fetch_elfcore_registers): Likewise.
8898 (_initialize_i386nbsd_tdep): New function.
8899 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8900 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8901 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8902 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8903 (i386nbsd_aout_use_struct_convention): ...this.
8904
8905 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8906
8907 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8908 (store_inferior_registers): Use shnbsd_fill_reg.
8909 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8910 sh_nbsd_supply_register): Collapse into...
8911 (shnbsd_supply_reg): ...this.
8912 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8913 (shnbsd_fill_reg): ...this.
8914 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8915 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8916 (fetch_core_registers): Use shnbsd_supply_reg.
8917 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8918 (sh_nbsd_core_fns): Rename to...
8919 (shnbsd_core_fns): ...this.
8920 (sh_nbsd_elfcore_fns): Rename to...
8921 (shnbsd_elfcore_fns): ...this.
8922 (sh_nbsd_init_abi): Rename to...
8923 (shnbsd_init_abi): ...this.
8924 (_initialize_sh_nbsd_tdep): Rename to...
8925 (_initialize_shnbsd_tdep): ...this.
8926 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8927 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8928 sh_nbsd_fill_register): Remove prototypes.
8929 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8930
8931 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8932
8933 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8934 (i387-nat.o): Delete dependency list.
8935 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8936 (x86-64-linux-nat.o): Likewise.
8937 * i387-nat.c: Delete file, moving contents to...
8938 * i387-tdep.c: ...here.
8939 * i387-nat.h: Rename...
8940 * i387-tdep.h: ...to this.
8941 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8942 * i386-linux-nat.c: Likewise.
8943 * i386bsd-nat.c: Likewise.
8944 * i386gnu-nat.c: Likewise.
8945 * i386nbsd-nat.c: Likewise.
8946 * i386v4-nat.c: Likewise.
8947 * x86-64-linux-nat.c: Likewise.
8948 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8949 * config/i386/go32.mh (NATDEPFILES): Likewise.
8950 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8951 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8952 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8953 * config/i386/linux.mh (NATDEPFILES): Likewise.
8954 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8955 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8956 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8957 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8958
8959 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8960
8961 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8962 (alphanbsd-nat.o): Remove dependency list.
8963 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8964 * alphanbsd-nat.c: Delete. Contents moved to...
8965 * alphanbsd-tdep.c: ...here.
8966 (_initialize_alphanbsd_tdep): Register core functions.
8967 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8968
8969 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8970
8971 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8972 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8973 (alphanbsd-nat.o): Likewise.
8974 (alphabsd-tdep.o): New dependency list.
8975 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8976 (fill_gregset): Use alphabsd_fill_reg.
8977 (supply_fpregset): Use alphabsd_supply_fpreg.
8978 (fill_fpregset): Use alphabsd_fill_fpreg.
8979 (fetch_inferior_registers): Use struct reg and struct fpreg
8980 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8981 and alphabsd_supply_fpreg.
8982 (store_inferior_registers): Use struct reg and struct fpreg
8983 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8984 and alphabsd_fill_fpreg.
8985 * alphabsd-tdep.c: New file.
8986 * alphabsd-tdep.h: New file.
8987 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8988 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8989 alphabsd_supply_fpreg.
8990 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8991 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8992
8993 2002-05-11 Eric Christopher <echristo@redhat.com>
8994
8995 * mips-tdep.c (mips_double_register_type): Fix thinko.
8996 (mips_single_register_type): Ditto.
8997 * MAINTAINERS: Add self.
8998
8999 2002-05-11 Mark Kettenis <kettenis@gnu.org>
9000
9001 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9002 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9003 right thing on architectures with different endianness and/or
9004 integer sizes.
9005
9006 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
9007
9008 From Christian Limpach <chris@Pin.LU>
9009 * configure.in: Change sed expression which comments out
9010 NATDEPFILES to also comment out continuation lines.
9011 * configure: Regenerate.
9012
9013 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9014
9015 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9016 big patch.
9017
9018 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9019
9020 * sh-tdep.c: Include correct file.
9021
9022 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9023
9024 New support for sh64-elf (sh5) target.
9025
9026 * configure.tgt: For sh64-elf target, default to sh-elf.
9027
9028 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9029 (struct gdbarch_tdep): Add new fields for new registers and ABI
9030 info.
9031
9032 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9033 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9034 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9035 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9036 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9037 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9038 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9039 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9040 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9041 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9042 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9043 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9044 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9045 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9046 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9047 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9048 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9049 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9050 sign_extend, sh64_nofp_frame_init_saved_regs,
9051 sh64_init_extra_frame_info, sh64_get_saved_register,
9052 sh64_extract_struct_value_address, sh64_pop_frame,
9053 sh64_push_arguments, sh64_extract_return_value,
9054 sh64_store_return_value, sh64_show_media_regs,
9055 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9056 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9057 sh_sh64_register_virtual_type,
9058 sh_sh64_register_convert_to_virtual,
9059 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9060 sh64_register_read, sh64_pseudo_register_write,
9061 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9062 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9063 sh64_do_pseudo_register, sh_compact_do_registers_info,
9064 sh64_do_registers_info, sh_gdbarch_init): New functions.
9065
9066 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9067
9068 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9069
9070 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9071
9072 * linespec.c (decode_line_1): Check for a double quote after
9073 a filename correctly.
9074
9075 2002-05-10 Jim Blandy <jimb@redhat.com>
9076
9077 Properly track the size of the current objfile's .debug_line section.
9078 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9079 (DWARF_LINE_SIZE): New macro.
9080 (dwarf2_build_psymtabs_hard): Record the line section's size in
9081 the partial symbol table.
9082 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9083 symbol table.
9084
9085 2002-05-10 Petr Sorfa <petrs@caldera.com>
9086
9087 * ia64-tdep.c: Handle breakpoints on L instruction type
9088 in MLX instruction bundle by moving the breakpoint to
9089 the third slot (X instruction type) as L holds only data.
9090
9091 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9092
9093 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9094 (process_one_symbol): Complain about discarding local symbols
9095 due to a misplaced N_LBRAC entry.
9096
9097 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9098
9099 From Daniel Berlin <dan@cgsoftware.com>
9100 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9101 decrease the depth we are at, in the case of templates.
9102
9103 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9104
9105 * mips-tdep.c (mips_float_register_type): New function.
9106 (mips_double_register_type): New function.
9107 (mips_print_register): Use them.
9108 (do_fp_register_row): Likewise.
9109
9110 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9111
9112 * signals/signals.c (signals): Remove conditional compilation around
9113 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9114 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9115
9116 2002-05-09 Michael Snyder <msnyder@redhat.com>
9117
9118 * remote-rdp.c (remote_rdp_can_run): Remove.
9119
9120 2002-05-09 Tom Tromey <tromey@redhat.com>
9121
9122 * jv-valprint.c (java_val_print): Handle `char' as a special case
9123 of TYPE_CODE_INT.
9124
9125 2002-05-09 Michael Snyder <msnyder@redhat.com>
9126
9127 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9128 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9129 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9130 str r(0123),[sp,#nn].
9131 (arm_skip_prologue): Ditto. Also make disassembly
9132 order-independent by placing it in a loop.
9133
9134 2002-05-06 Michael Snyder <msnyder@redhat.com>
9135
9136 * stabsread.c (read_type): Add recognition for new attribute:
9137 "@V;" means that an array type is actually a vector.
9138 This is analogous to the vector flag that's been added to dwarf2.
9139
9140 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9141
9142 * i386-tdep.h (i386_abi): New enum.
9143 (struct gdbarch_tdep): Replace os_ident member with abi.
9144 (i386_gdbarch_register_os_abi): New prototype.
9145 * i386-tdep.c (i386_abi_names): New array.
9146 (process_note_abi_tag_sections): Removed.
9147 (process_note_sections): New function.
9148 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9149 (struct i386_abi_handler): New struct.
9150 (i386_abi_handler_list): New variable.
9151 (i386_gdbarch_register_os_abi): New function.
9152 (i386_gdbarch_init): Adapt for the changes given above.
9153
9154 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9155
9156 * gregset.h: Say "GNU/Linux".
9157
9158 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9159
9160 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9161 (build_gdbtypes): Build builtin_type_v2_float.
9162 (_initialize_gdbtypes): Register new builtin type.
9163
9164 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9165
9166 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9167 (clear_gdbarch_swap): New function.
9168 (initialize_non_multiarch): Call.
9169 (gdbarch_update_p): Before calling init(), swap out and clear the
9170 existing architecture.
9171 * gdbarch.c: Regenerate.
9172
9173 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9174
9175 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9176 alphanbsd-tdep.c.
9177
9178 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9179
9180 * sh-nbsd-nat.c: Rename to...
9181 * shnbsd-nat.c: ...this.
9182 * sh-nbsd-tdep.c: Rename to...
9183 * shnbsd-tdep.c: ...this.
9184 * sh-nbsd-tdep.h: Rename to...
9185 * shnbsd-tdep.h: ...this.
9186 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9187 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9188
9189 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9190
9191 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9192 concatenation for command help messages.
9193
9194 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9195
9196 * NEWS: Note new sh*-*-netbsdelf* configuration.
9197 * configure.host: Set gdb_host_cpu to sh for all sh*.
9198 (sh*-*-netbsdelf*): New host.
9199 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9200 (sh*-*-netbsdelf*): New target.
9201 * sh-nbsd-nat.c: New file.
9202 * sh-nbsd-tdep.c: New file.
9203 * sh-nbsd-tdep.h: New file.
9204 * config/sh/nbsd.mh: New file.
9205 * config/sh/nbsd.mt: New file.
9206 * config/sh/nm-nbsd.h: New file.
9207 * config/sh/tm-nbsd.h: New file.
9208
9209 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9210
9211 * sh-tdep.c (sh_osabi_names): Declare.
9212 (process_note_abi_tag_sections): New function.
9213 (get_elfosabi): Ditto.
9214 (sh_gdbarch_register_os_abi): Ditto.
9215 (sh_dump_tdep): Ditto.
9216 _initialize_sh_tdep): Use gdbarch_register to register
9217 sh_gdbarch_init and sh_dump_tdep.
9218 * config/sh/tm-sh.h (sh_osabi): Declare.
9219 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9220
9221 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9222
9223 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9224 (thumb_scan_prologue): Ditto.
9225 (arm_find_callers_reg): Ditto.
9226 (arm_frame_chain): Ditto.
9227 (arm_init_extra_frame_info): Ditto.
9228 (arm_frame_saved_pc): Ditto.
9229 (arm_pop_frame): Ditto.
9230 (arm_push_return_address): New function.
9231 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9232 call_dummy_location, call_dummy_breakpoint_offset_p,
9233 call_dummy_breakpoint_offset, call_dummy_p,
9234 call_dummy_stack_adjust_p, call_dummy_words,
9235 sizeof_call_dummy_words, call_dummy_start_offset,
9236 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9237 call_dummy_address, push_return_address and push_dummy_frame for
9238 generic dummy frames.
9239
9240 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9241
9242 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9243 size computation for alloca.
9244 (sh_fp_frame_init_saved_regs): Likewise.
9245
9246 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9247
9248 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9249 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9250 * arm-tdep.c (arm_store_return_value): Use them.
9251 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9252 * remote-rdp.c (remote_rdp_fetch_register): Use
9253 ARM_MAX_REGISTER_RAW_SIZE.
9254 (remote_rdp_store_register): Likewise.
9255
9256 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9257
9258 * dwarf2cfi.c: Code cleanup, removed unused variables,
9259 added default labels to switch {} statements.
9260 * x86-64-tdep.c: Ditto.
9261 * x86-64-linux-nat.c: Ditto.
9262
9263 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9264
9265 * solib.h: Protect against multiple inclusion.
9266
9267 2002-05-06 Jim Blandy <jimb@redhat.com>
9268
9269 Add first preprocessor macro-expansion files.
9270 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9271 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9272 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9273 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9274 (COMMON_OBS): Add macrotab.o, macroexp.o.
9275 (macroexp.o, macrotab.o): New rules.
9276
9277 Separate the job of reading the line number info statement program
9278 header (...expialidocious) out into its own function.
9279 * dwarf2read.c (struct line_head, struct filenames, struct
9280 directories): Replace with...
9281 (struct line_header): New structure, containing the full
9282 contents of the statement program header, including the
9283 include directory and file name tables.
9284 (read_file_scope): If we have line number info, instead of just
9285 calling dwarf_decode_lines to do all the work, call
9286 dwarf_decode_line_header first to get a `struct line_header'
9287 containing the data in the statement program header, and then
9288 pass that to dwarf_decode_lines, which will pick up where that
9289 left off. Be sure to clean up the `struct line_header' object.
9290 (dwarf_decode_line_header, free_line_header, add_include_dir,
9291 add_file_name): New functions.
9292 (dwarf_decode_lines): Move all the code to read the statement
9293 program header into dwarf_decode_line_header. Take the line
9294 header it built as the first argument, instead of the offset to
9295 the compilation unit's line number info. Use the new `struct
9296 line_header' type instead of the old structures. No need to do
9297 cleanups here now, since we don't allocate anything.
9298 (dwarf2_statement_list_fits_in_line_number_section,
9299 dwarf2_line_header_too_long): New complaints.
9300
9301 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9302
9303 * gdbtypes.c (init_vector_type): New function.
9304 (build_builtin_type_vec128): Simplify the representation of SIMD
9305 registers.
9306 (build_gdbtypes): Initialize new builtin vector types.
9307 (_initialize_gdbtypes): Register new vector types with gdbarch.
9308 (builtin_type_v4_float, builtin_type_v4_int32,
9309 builtin_type_v8_int16, builtin_type_v16_int8,
9310 builtin_type_v2_int32, builtin_type_v4_int16,
9311 builtin_type_v8_int8): New (renamed) SIMD types.
9312
9313 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9314
9315 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9316 (i387_fill_fxsave): Likewise.
9317
9318 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9319
9320 * alpha-tdep.c (alpha_extract_return_value): Don't use
9321 non-constant array size in prototype.
9322
9323 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9324
9325 From Brian Taylor <briant at model dot com>:
9326 * ui-out.c (ui_out_field_core_addr): Use the function
9327 longest_local_hex_string_custom'to format addresses > 32 bits
9328 wide.
9329
9330 * ui-out.c (ui_out_field_core_addr): Update comment.
9331
9332 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9333
9334 * stack.c (select_and_print_frame): Make static. Delete the
9335 parameter `level'.
9336 (func_command): Update call.
9337 (select_frame_command): Delete code computing the frame level.
9338 * frame.h (select_and_print_frame): Delete declaration.
9339
9340 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9341
9342 * sparc-tdep.c (sparc_get_saved_register): Comment why
9343 get_prev_frame call is safe.
9344
9345 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9346
9347 * frame.h (select_frame): Delete level parameter.
9348 * stack.c (select_frame): Update. Use frame_relative_level to
9349 obtain the frame's level.
9350 (select_and_print_frame): Update call.
9351 (select_frame_command): Ditto.
9352 (up_silently_base): Ditto.
9353 (down_silently_base): Ditto.
9354 * ocd.c (ocd_start_remote): Ditto.
9355 * remote-rdp.c (remote_rdp_open): Ditto.
9356 * remote-mips.c (mips_initialize): Ditto.
9357 (common_open): Ditto.
9358 * remote-e7000.c (e7000_start_remote): Ditto.
9359 * m3-nat.c (select_thread): Ditto.
9360 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9361 (child_get_current_exception_event): Ditto.
9362 * varobj.c (varobj_create): Ditto.
9363 (varobj_update): Ditto.
9364 (c_value_of_root): Ditto.
9365 * tracepoint.c (finish_tfind_command): Ditto.
9366 * corelow.c (core_open): Ditto.
9367 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9368 * thread.c (info_threads_command): Ditto.
9369 (switch_to_thread): Ditto.
9370 * infrun.c (normal_stop): Ditto.
9371 (restore_selected_frame): Ditto.
9372 (restore_inferior_status): Ditto.
9373 * breakpoint.c (insert_breakpoints): Ditto.
9374 (watchpoint_check): Ditto.
9375 (bpstat_stop_status): Ditto.
9376 (do_enable_breakpoint): Ditto.
9377 * blockframe.c (flush_cached_frames): Ditto.
9378 (reinit_frame_cache): Ditto.
9379
9380 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9381
9382 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9383 maintainer.
9384
9385 2002-05-04 Jim Blandy <jimb@redhat.com>
9386
9387 * gdbtypes.c (replace_type): Doc fix.
9388
9389 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9390
9391 * valprint.c (strcat_longest): Delete commented out function.
9392 Update copyright.
9393
9394 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9395
9396 * MAINTAINERS: Mark a29k as deleted.
9397 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9398 Move new configurations to the top.
9399 * configure.tgt: Remove a29k.
9400 * config/a29k/tm-vx29k.h: Delete.
9401 * config/a29k/vx29k.mt: Delete.
9402 * config/a29k/tm-a29k.h: Delete.
9403 * config/a29k/a29k-udi.mt: Delete.
9404 * config/a29k/a29k.mt: Delete.
9405 * a29k-tdep.c: Delete.
9406 * remote-udi.c: Delete.
9407 * remote-mm.c: Delete.
9408 * remote-eb.c: Delete.
9409 * remote-adapt.c: Delete.
9410 * Makefile.in: Remove obsolete code.
9411 * config/s390/s390x.mt: Ditto.
9412 * config/s390/s390.mt: Ditto.
9413 * config/sparc/sparclynx.mh: Ditto.
9414 * config/sparc/linux.mh: Ditto.
9415 * config/pa/hppaosf.mh: Ditto.
9416 * config/pa/hppabsd.mh: Ditto.
9417 * config/ns32k/nbsd.mt: Ditto.
9418 * config/mips/vr5000.mt: Ditto.
9419 * config/m68k/sun3os4.mh: Ditto.
9420 * config/m68k/nbsd.mt: Ditto.
9421 * config/m68k/m68klynx.mh: Ditto.
9422 * config/m32r/m32r.mt: Ditto.
9423 * config/i386/x86-64linux.mt: Ditto.
9424 * config/i386/nbsdelf.mt: Ditto.
9425 * config/i386/nbsd.mt: Ditto.
9426 * config/i386/i386lynx.mh: Ditto.
9427
9428 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9429
9430 * target.c (debug_print_register): New function. Handle oversize
9431 registers.
9432 (debug_to_fetch_registers): Call.
9433 (debug_to_store_registers): Call.
9434
9435 2002-05-03 Jim Blandy <jimb@redhat.com>
9436
9437 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9438 (read_type): Doc fix.
9439 * gdbtypes.c (replace_type): Doc fix.
9440
9441 * stabsread.c (multiply_defined_struct): New complaint.
9442 (read_struct_type): If the type we were passed isn't empty, or
9443 incomplete, don't read the new struct type into it; complain,
9444 and return the original type unchanged. Take a new `type_code'
9445 argument, which is the type code for the new type.
9446 (read_type): Rather than storing the type's type code here, pass
9447 it as an argument to read_struct_type, and let that take care of
9448 storing it. That way, we don't overwrite the original type code,
9449 so read_struct_type can use it to decide whether we're overwriting
9450 something we shouldn't.
9451 (complain_about_struct_wipeout): New function.
9452
9453 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9454
9455 * gdbarch.sh: Assert that gdbarch is non-NULL.
9456 * gdbarch.c: Regenerate.
9457
9458 2002-05-03 Jason Merrill <jason@redhat.com>
9459
9460 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9461 and return NULL.
9462
9463 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9464
9465 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9466 (x86_64_dwarf2gdb_regno_map_length),
9467 (x86_64_dwarf2_reg_to_regnum): Added.
9468 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9469 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9470 (_initialize_x86_64_tdep): Synced with the change above.
9471 (x86_64_skip_prologue): Reformulated message.
9472
9473 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9474
9475 * f-exp.y: Also use new prev_lexptr variable
9476 to improve error reporting. Based on Michael Snyder
9477 2002-04-24 dated patch to c-exp.y.
9478 * jv-exp.y: Likewise.
9479 * m2-exp.y: Likewise.
9480
9481 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9482
9483 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9484 we are dealing with vectors.
9485
9486 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9487
9488 * config/m68k/tm-nbsd.h: Obvious fix,
9489 correct machine name.
9490
9491 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9492
9493 * p-typeprint.c (pascal_type_print_base): Add support
9494 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9495
9496 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9497
9498 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9499 for fondamental pascal 'char' type.
9500
9501 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9502
9503 * p-lang.h (is_pascal_string_type): Declaration changed,
9504 new sixth argument of type char ** added.
9505 * p-lang.c (is_pascal_string_type): Implementation
9506 changed. Args length_pos, length_size, string_pos, char_size
9507 can now be NULL. New argument arrayname set to the field
9508 name of the char array. Return value set to char array
9509 field index plus one.
9510 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9511 is_pascal_string_type function.
9512
9513 2002-05-02 Andrew Cagney <cagney@redhat.com>
9514
9515 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9516 <cagney@redhat.com> change.
9517 * gdbarch.c: Regenerate.
9518
9519 2002-05-02 Andrew Cagney <cagney@redhat.com>
9520
9521 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9522 before probing for a new one. Detect errorenous gdbarch_init
9523 functions.
9524 * gdbarch.c: Regenerate.
9525
9526 2002-05-01 Andrew Cagney <cagney@redhat.com>
9527
9528 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9529 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9530 * config/v850/tm-v850.h: Ditto. Update copyright.
9531
9532 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9533
9534 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9535 current_gdbarch.
9536
9537 2002-04-30 Michael Snyder <msnyder@redhat.com>
9538
9539 * arm-tdep.c: Whitespace clean-ups.
9540 (arm_skip_prologue): Fix thinko; two lines
9541 should have been removed as part of 4/24 change.
9542
9543 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9544
9545 * rs6000-tdep.c: Added comment describing how fpscr register
9546 numbers were chosen.
9547
9548 2002-04-30 Michael Snyder <msnyder@redhat.com>
9549
9550 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9551
9552 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9553
9554 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9555 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9556 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9557
9558 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9559
9560 From Louis Hamilton <hamilton@redhat.com>:
9561 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9562 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9563 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9564 not bfd-private xcoff data, to determine wordsize.
9565 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9566
9567 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9568
9569 GDB 5.2 released from 5.2 branch.
9570
9571 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9572
9573 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9574 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9575 (x86_64_register_info_table): Added comments with register numbers.
9576
9577 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9578
9579 * rs6000-tdep.c (rs6000_extract_return_value,
9580 rs6000_store_return_value): Handle returning vectors.
9581 (rs6000_gdbarch_init): Use
9582 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9583 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9584 New function.
9585 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9586 vectors.
9587 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9588 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9589
9590 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9591
9592 * hpread.c (hpread_psymtab_to_symtab_1,
9593 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9594 with fprintf_unfiltered (gdb_stderr,...).
9595
9596 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9597
9598 * remote-array.c (printf_monitor, write_monitor,
9599 array_insert_breakpoint, array_remove_breakpoint ):
9600 Replace fprintf (stderr,...
9601 with fprintf_unfiltered (gdb_stderr,....
9602 * remote-es.c: Likewise.
9603 * remote-os9k.c: Likewise.
9604 * remote-st.c: Likewise.
9605
9606 2002-04-28 Andreas Schwab <schwab@suse.de>
9607
9608 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9609 linux-proc.o and gcore.o.
9610
9611 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9612
9613 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9614 code without frame pointers.
9615
9616 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9617
9618 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9619 ON_STACK is needed.
9620
9621 2002-04-26 Ben Elliston <bje@redhat.com>
9622
9623 * target.c (do_xfer_memory): Correct reference to the new option
9624 "trust-readonly-sections".
9625
9626 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9627
9628 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9629 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9630 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9631 vectors.
9632 (read_array_type): Record the fact that this array type is really a
9633 vector (i.e. are passed in by value).
9634
9635 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9636
9637 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9638 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9639 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9640 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9641 * alpha-linux-tdep.c: Include frame.h.
9642 (alpha_linux_sigcontext_addr): New function.
9643 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9644 alpha_linux_sigcontext_addr.
9645 * alpha-osf1-tdep.c: Include gdbcore.h.
9646 (alpha_osf1_sigcontext_addr): New function.
9647 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9648 alpha_osf1_sigcontext_addr.
9649 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9650 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9651
9652 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9653
9654 * stack.c (selected_frame_level):
9655 (select_frame): Do not set selected_frame_level.
9656 * frame.h (selected_frame_level): Delete declaration.
9657
9658 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9659
9660 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9661 convert_from_func_ptr-addr when AIX / PowerOpen.
9662
9663 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9664
9665 * valops.c (hand_function_call): Call
9666 generic_save_call_dummy_addr.
9667 * frame.h (generic_save_call_dummy_addr): Declare.
9668 * blockframe.c (struct dummy_frame): Add fields call_lo and
9669 call_hi.
9670 (generic_find_dummy_frame): Check for PC in range call_lo to
9671 call_hi instead of entry_point_address.
9672 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9673 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9674 (generic_save_call_dummy_addr): New function.
9675
9676 2002-04-24 David S. Miller <davem@redhat.com>
9677
9678 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9679 sparc_skip_prologue.
9680 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9681 information to find prologue when possible.
9682 (sparc_prologue_frameless_p): Call examine_prologue directly.
9683 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9684 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9685 second argument.
9686 (SKIP_PROLOGUE): Likewise.
9687
9688 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9689
9690 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9691 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9692 indicate that the condition it was testing is always true.
9693 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9694 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9695 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9696
9697 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9698
9699 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9700 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9701 tdep->jb_pc and tdep->jb_elt_size.
9702 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9703 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9704 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9705 * alpha-nat.c (get_longjmp_target): Remove.
9706 (JB_ELEMENT_SIZE): Ditto.
9707 (JB_PC): Ditto.
9708 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9709 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9710 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9711 to alpha_get_longjmp_target.
9712 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9713 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9714 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9715
9716 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9717
9718 * README: Update to GDB 5.2.
9719
9720 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9721
9722 * gdbarch.sh (LC_ALL): Set to `c'.
9723
9724 2002-04-25 Theodore A. Roth <troth@verinet.com>
9725
9726 * avr-tdep.c: Ran through gdb_indent.sh.
9727
9728 2002-04-25 Theodore A. Roth <troth@verinet.com>
9729
9730 * MAINTAINERS: Add myself as AVR maintainer.
9731 * NEWS: Note new target avr.
9732
9733 2002-04-25 Theodore A. Roth <troth@verinet.com>
9734
9735 * Makefile.in: Add support for AVR target.
9736 * configure.tgt: Add support for AVR target.
9737 * avr-tdep.c: New file
9738 * config/avr/avr.mt: New file.
9739
9740 2002-04-25 Theodore A. Roth <troth@verinet.com>
9741
9742 * MAINTAINERS: Add myself to write-after-approval.
9743
9744 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9745
9746 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9747 with fprintf_unfiltered (gdb_stderr,....
9748
9749 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9750
9751 Fix PR gdb/508.
9752 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9753
9754 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9755
9756 * p-exp.y: Also use new prev_lexptr variable
9757 to improve error reporting. Based on Michael Snyder
9758 2002-04-24 dated patch to c-exp.y.
9759
9760 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9761
9762 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9763 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9764 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9765 to 0.
9766 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9767 and struct value.
9768 (FUNCTION_START_OFFSET): Remove.
9769 (BREAKPOINT): Ditto.
9770
9771 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9772
9773 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9774 * NEWS: Ditto.
9775
9776 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9777
9778 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9779 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9780 alpha_linux_pc_in_sigtramp.
9781 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9782 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9783 alpha_osf1_pc_in_sigtramp.
9784 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9785 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9786 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9787 alphafbsd_pc_in_sigtramp.
9788 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9789 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9790 alphanbsd_pc_in_sigtramp.
9791 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9792 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9793
9794 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9795
9796 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9797
9798 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9799
9800 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9801 alphanbsd-tdep.c.
9802 (alphanbsd-nat.o): New dependency list.
9803 (alphanbsd-tdep.o): Ditto.
9804 * NEWS: Note new native NetBSD/alpha configuration.
9805 * alphanbsd-nat.c: New file.
9806 * alphanbsd-tdep.c: Ditto.
9807 * configure.host (alpha*-*-netbsd*): New host.
9808 * configure.tgt (alpha*-*-netbsd*): New target.
9809 * config/alpha/nbsd.mh: New file.
9810 * config/alpha/nbsd.mt: Ditto.
9811 * config/alpha/nm-nbsd.h: Ditto.
9812 * config/alpha/tm-nbsd.h: Ditto.
9813
9814 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9815
9816 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9817 (alpha-osf1-tdep.o): New dependency list.
9818 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9819 and skip_sigtramp_frame members.
9820 * alpha-linux-tdep.c: Include gdbcore.h.
9821 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9822 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9823 * alpha-osf1-tdep.c: New file.
9824 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9825 alpha-osf1-dep.c.
9826 (alpha_frame_past_sigtramp_frame): New function.
9827 (alpha_dynamic_sigtramp_offset): Ditto.
9828 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9829 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9830 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9831 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9832 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9833 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9834 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9835 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9836 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9837 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9838 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9839 to find_solib_trampoline_target.
9840 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9841 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9842 (SKIP_TRAMPOLINE_CODE): Remove.
9843 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9844 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9845 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9846 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9847 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9848 (PROC_SIGTRAMP_MAGIC): Ditto.
9849 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9850 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9851 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9852 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9853 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9854
9855 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9856
9857 * NEWS: Note that Alpha targets are now multi-arch.
9858
9859 2002-04-24 Michael Snyder <msnyder@redhat.com>
9860
9861 * parser-defs.h (prev_lexptr): New external variable.
9862 * parse.c (parse_exp_1): Set prev_lexptr to null before
9863 calling the language-specific parser.
9864 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9865 (yyerror): Use prev_lexptr in error reporting.
9866
9867 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9868
9869 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9870 * gregset.h: If FILL_FPXREGSET is defined, provide
9871 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9872 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9873 is defined, call fill_fpxregset.
9874
9875 2002-04-24 Roland McGrath <roland@frob.com>
9876
9877 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9878 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9879 (supply_gregset, supply_fpregset): New functions.
9880
9881 * gnu-nat.c (gnu_find_memory_regions): New function.
9882 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9883 (gnu_xfer_memory): Add a cast.
9884
9885 2002-04-24 Michael Snyder <msnyder@redhat.com>
9886
9887 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9888 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9889 of argument regs ("str r(0123), [r11, #-nn"]).
9890 (arm_skip_prologue): Better handling for frameless functions.
9891 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9892 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9893
9894 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9895
9896 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9897 NUM_PSEUDO_REGS can be used.
9898
9899 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9900
9901 * arch-utils.h: Update copyright.
9902
9903 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9904 * gdbarch.h, gdbarch.c: Re-generate.
9905
9906 * inferior.h (IN_SIGTRAMP): Delete definition.
9907 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9908 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9909
9910 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9911 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9912 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9913 (find_proc_framesize): Ditto.
9914 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9915 (alpha_init_extra_frame_info): Ditto.
9916 * infrun.c (handle_inferior_event): Ditto.
9917 (handle_inferior_event): Ditto.
9918 (check_sigtramp2): Ditto.
9919 * blockframe.c (create_new_frame): Ditto.
9920 (get_prev_frame): Ditto.
9921 * ppc-linux-tdep.c: Update comments.
9922 * i386-linux-tdep.c: Update comments.
9923 * breakpoint.c (bpstat_what): Update comment.
9924
9925 2002-04-24 David S. Miller <davem@redhat.com>
9926
9927 * i960-tdep.c (register_in_window_p): New function.
9928 (i960_find_saved_register): Use it instead of
9929 REGISTER_IN_WINDOW_P.
9930 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9931
9932 * symtab.h (find_stab_function_addr): Kill extern.
9933 * minsyms.c (find_stab_function_addr): Remove from here...
9934 * dbxread.c: ... to here, and mark it static.
9935
9936 2002-04-20 David S. Miller <davem@redhat.com>
9937
9938 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9939 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9940
9941 2002-04-21 David S. Miller <davem@redhat.com>
9942
9943 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9944 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9945 (vx_write_register): Likewise.
9946
9947 2002-04-23 J. Brobecker <brobecker@gnat.com>
9948
9949 * source.c (is_regular_file): New function.
9950 (openp): Check wether file to open is a regular file
9951 to avoid opening directories.
9952
9953 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9954
9955 * findvar.c (extract_signed_integer): Cast printf argument
9956 to suppress format warning.
9957 (extract_unsigned_integer): Likewise.
9958 * infcmd.c (registers_info): Likewise.
9959 * top.c (get_prompt_1): Likewise.
9960 * valops.c (value_assign): Likewise.
9961 * valprint.c (print_decimal): Likewise.
9962
9963 2002-04-22 H.J. Lu (hjl@gnu.org)
9964
9965 * c-exp.y (typebase): Support
9966
9967 [long|long long|short] [signed|unsigned] [int|]
9968
9969 and
9970
9971 signed [long|long long|short] int
9972
9973 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9974
9975 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9976 and vax-tdep.h.
9977 * vax-tdep.h: New file.
9978 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9979 Make several routines static.
9980 (vax_get_saved_register): New function.
9981 (vax_gdbarch_init): New function.
9982 (_initialize_vax_tdep): Register vax_gdbarch_init.
9983 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9984 Remove macros now under the control of gdbarch.
9985
9986 2002-04-22 Michael Snyder <msnyder@redhat.com>
9987
9988 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9989 Some whitespace and coding standards tweaks.
9990
9991 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9992
9993 * vax-tdep.c: Include regcache.h.
9994 (vax_call_dummy_words): New.
9995 (sizeof_vax_call_dummy_words): New.
9996 (vax_fix_call_dummy): New function.
9997 (vax_saved_pc_after_call): Ditto.
9998 * config/vax/tm-vax.h: Don't include regcache.h.
9999 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10000 (CALL_DUMMY): Remove.
10001 (CALL_DUMMY_WORDS): Define.
10002 (SIZEOF_CALL_DUMMY_WORDS): Define.
10003 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10004
10005 2002-04-18 Michael Snyder <msnyder@redhat.com>
10006
10007 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10008
10009 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10010
10011 * vax-tdep.c (vax_frame_chain): New function.
10012 (vax_push_dummy_frame): Ditto.
10013 (vax_pop_frame): Ditto.
10014 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10015 (FRAMELESS_FUNCTION_INVOCATION): Use
10016 generic_frameless_function_invocation_not.
10017 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10018 (POP_FRAME): Use vax_pop_frame.
10019
10020 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10021
10022 * vax-tdep.c (vax_store_struct_return): New function.
10023 (vax_extract_return_value): Ditto.
10024 (vax_store_return_value): Ditto.
10025 (vax_extract_struct_value_address): Ditto.
10026 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10027 vax_store_struct_return.
10028 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10029 (STORE_RETURN_VALUE): Use vax_store_return_value.
10030 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10031
10032 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10033
10034 * vax-tdep.c (vax_frame_saved_pc): New function.
10035 (vax_frame_args_address_correct): Ditto.
10036 (vax_frame_args_address): Ditto.
10037 (vax_frame_locals_address): Ditto.
10038 (vax_frame_num_args): Move code to be in proximity to
10039 other frame-related functions.
10040 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10041 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10042 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10043 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10044 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10045
10046 2002-04-22 H.J. Lu (hjl@gnu.org)
10047
10048 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10049 includedir.
10050
10051 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10052
10053 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10054 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10055 (FRAME_INIT_SAVED_REGS): New macro.
10056
10057 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10058
10059 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10060
10061 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10062
10063 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10064 where needed.
10065 (fetch_osf_core_registers): Likewise.
10066 (supply_gregset): Likewise.
10067
10068 2002-04-22 J. Brobecker <brobecker@gnat.com>
10069
10070 * symfile.h (get_section_index): Define.
10071 * symfile.c (get_section_index): New function.
10072 * mdebugread.c (SC_IS_SBSS): New macro.
10073 (SC_IS_BSS): Return true for the scBss storage class only, as
10074 the scSBss storage class refers to the .sbss section.
10075 (parse_partial_symbols): Discard the symbols which associated
10076 section does not exist.
10077 Make sure to use the .sbss section index for symbols which
10078 storage class is scBss, rather than using the .bss section index.
10079
10080 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10081
10082 * vax-tdep.c: Update copyright years.
10083 (vax_register_name): New function.
10084 (vax_register_byte): Ditto.
10085 (vax_register_raw_size): Ditto.
10086 (vax_register_virtual_size): Ditto.
10087 (vax_register_virtual_type): Ditto.
10088 * config/vax/tm-vax.h: Update copyright years.
10089 (REGISTER_NAMES): Remove.
10090 (REGISTER_NAME): Define.
10091 (REGISTER_BYTE): Use vax_register_byte.
10092 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10093 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10094 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10095
10096 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10097
10098 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10099 declaration
10100 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10101
10102 2002-04-21 David S. Miller <davem@redhat.com>
10103
10104 * arch-utils.c (generic_prologue_frameless_p): Kill
10105 SKIP_PROLOGUE_FRAMELESS_P code.
10106 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10107 references.
10108 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10109 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10110 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10111 references.
10112 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10113 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10114 (sparc_gdbarch_init): Pass it to
10115 set_gdbarch_prologue_frameless_p.
10116
10117 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10118
10119 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10120 (alphabsd-nat.o): New dependency list.
10121
10122 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10123
10124 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10125 alphafbsd-tdep.c.
10126 (alpha-linux-tdep.o): New dependency list.
10127 (alphafbsd-tdep.o): Likewise.
10128
10129 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10130
10131 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10132 to here...
10133 * alpha-tdep.c: ...from here.
10134 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10135
10136 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10137
10138 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10139 prototype from here...
10140 * alpha-tdep.h: ...to here.
10141
10142 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10143
10144 * frame.h (selected_frame_level): Document as deprecated.
10145 (frame_relative_level): Declare.
10146 * stack.c (frame_relative_level): New function.
10147 (selected_frame_level): Document as deprecated.
10148 (select_frame): Do not set the selected_frame_level.
10149
10150 * stack.c (frame_info, record_selected_frame): Update.
10151 (frame_command, current_frame_command): Update.
10152 (up_silently_base, up_command, down_silently_base): Update.
10153 (down_command): Update.
10154 * inflow.c (kill_command): Update.
10155 * tracepoint.c (finish_tfind_command): Update.
10156 * corelow.c (core_open): Update.
10157 * thread.c (info_threads_command): Update.
10158 (do_captured_thread_select): Update.
10159 * infcmd.c (finish_command): Update.
10160 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10161
10162 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10163
10164 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10165
10166 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10167
10168 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10169 type const.
10170
10171 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10172
10173 * alphafbsd-tdep.c: Update copyright years. Include
10174 alpha-tdep.h.
10175 (alphafbsd_use_struct_convention): Make static.
10176 (alphafbsd_init_abi): New function.
10177 (_initialize_alphafbsd_tdep): New function.
10178 * config/alpha/tm-fbsd.h: Update copyright years.
10179 (USE_STRUCT_CONVENTION): Remove.
10180
10181 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10182
10183 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10184 an Alpha ABI variant.
10185 (alpha_abi_handler_list): Declare.
10186 (alpha_gdbarch_register_os_abi): New function.
10187 (alpha_gdbarch_init): Give registered ABI variant handlers a
10188 chance to tweak the gdbarch once we have set up defaults.
10189 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10190
10191 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10192
10193 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10194 to standard_coerce_float_to_double.
10195 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10196
10197 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10198
10199 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10200 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10201 from gdbarch_tdep rather than a constant.
10202 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10203 the default text address for all Alpha Unix ABIs.
10204 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10205 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10206
10207 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10208
10209 * alpha-tdep.h: New file. Includes several Alpha target constants
10210 taken from...
10211 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10212 let gdbarch deal with.
10213 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10214 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10215 to dependency list.
10216 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10217 Alpha target register names.
10218 * alphabsd-nat.c: Likewise.
10219 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10220 Alpha target register names. Make serveral routines static.
10221 (alpha_get_saved_register): New function.
10222 (alpha_abi_names): New.
10223 (process_note_abi_tag_sections): New function.
10224 (get_elfosabi): New function.
10225 (alpha_gdbarch_init): New function.
10226 (alpha_dump_tdep): New function.
10227 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10228
10229 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10230
10231 * frame.c (find_saved_register): Delete #ifdef
10232 HAVE_REGISTER_WINDOWS code.
10233 * config/sparc/tm-sparc.h: Update comments.
10234 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10235
10236 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10237
10238 * i960-tdep.c (i960_find_saved_register): New function.
10239 (i960_get_saved_register): New function.
10240 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10241 (i960_get_saved_register): Declare.
10242 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10243
10244 2002-04-20 David S. Miller <davem@redhat.com>
10245
10246 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10247
10248 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10249
10250 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10251 instead of NUM_PSEUDO_REGS.
10252
10253 2002-04-20 David S. Miller <davem@redhat.com>
10254
10255 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10256 GDB_MULTI_ARCH_PARTIAL
10257 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10258 define, let tm-sp64.h do it.
10259
10260 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10261
10262 * frame.c (find_saved_register): Avoid a NULL pointer
10263 dereference and actually walk the frame list.
10264
10265 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10266
10267 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10268 sorted in most most-recent-used order. Document.
10269 * gdbarch.h, gdbarch.c: Regenerate.
10270
10271 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10272
10273 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10274 instead of ->prev.
10275 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10276 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10277 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10278 instead of ->prev.
10279
10280 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10281
10282 Fix PR gdb/471.
10283 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10284 (build_builtin_type_vec128): Ditto.
10285 (append_composite_type_field): Fix calculation of type length in
10286 union case.
10287
10288 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10289
10290 * config/djgpp/README: Update.
10291
10292 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10293 compiler warnings.
10294
10295 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10296
10297 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10298 (alpha_setup_arbitrary_frame): ...to this.
10299 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10300 for alpha_setup_arbitrary_frame.
10301
10302 2002-04-18 Andrew Cagney <cagney@redhat.com>
10303
10304 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10305 * gdbarch.h, gdbarch.c: Regenerate.
10306
10307 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10308 * target.h (memory_breakpoint_from_pc): Update declaration.
10309 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10310
10311 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10312 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10313 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10314 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10315 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10316 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10317 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10318 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10319 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10320 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10321 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10322 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10323
10324 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10325 const pointer.
10326 * monitor.c (monitor_insert_breakpoint): Ditto.
10327 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10328
10329 * config/mcore/tm-mcore.h: Update copyright.
10330 * mem-break.c: Ditto.
10331 * xstormy16-tdep.c: Ditto.
10332
10333 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10334
10335 * p-exp.y: Add precedence rule for '^' token.
10336 This removes the shift/reduce conflicts.
10337 Remove the comment concerning these shift/reduce conflicts.
10338
10339 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10340
10341 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10342 (registers_powerpc_nofp): New register set for processors
10343 without floating point unit.
10344
10345 2002-04-18 David S. Miller <davem@redhat.com>
10346
10347 * MAINTAINERS: Add myself to write-after-approval.
10348
10349 2002-04-17 Michael Snyder <msnyder@redhat.com>
10350
10351 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10352
10353 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10354
10355 * rs6000-tdep.c (frame_initial_stack_address): Use
10356 frame_register_read to read the alloca_reg.
10357
10358 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10359
10360 * frame.c (find_saved_register): Find saved registers in the next
10361 not prev frame.
10362 Fix PR gdb/365.
10363
10364 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10365
10366 * gdbarch.sh (LANG): Set to ``c''.
10367
10368 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10369
10370 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10371
10372 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10373
10374 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10375 Update copyright.
10376
10377 * hpread.c (hpread_get_lntt): Add declaration.
10378 Also fix PR gdb/391.
10379
10380 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10381
10382 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10383 * aclocal.m4, configure: Re-generate.
10384 Fix PR gdb/391.
10385
10386 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10387
10388 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10389 instead of tm_print_insn.
10390
10391 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10392
10393 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10394
10395 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10396
10397 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10398 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10399 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10400
10401 2002-04-12 Don Howard <dhoward@redhat.com>
10402
10403 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10404 max_user_call_depth.
10405 (init_cmd_lists): Initialize the new value;
10406 * cli/cli-script.c (execute_user_command): Limit the call depth of
10407 user defined commands. This avoids a core-dump when user commands
10408 are infinitly recursive.
10409
10410 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10411
10412 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10413 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10414 from tdep struct instead of DEFAULT_LR_SAVE.
10415 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10416 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10417 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10418
10419 2002-04-12 Michael Snyder <msnyder@redhat.com>
10420
10421 * Remote.c: Spelling fix.
10422 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10423 If no symbol found for "sbrk", try "_sbrk".
10424 (make_output_phdrs): Use bfd_section_name.
10425 (gcore_copy_callback): Use bfd_section_name.
10426 * eval.c: Indentation fix-ups.
10427 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10428 in case it gets applied to an address that is already
10429 in the instruction space.
10430 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10431 * symfile.c: Fix indentation, long lines.
10432 * source.c: White space fix-up.
10433
10434 2002-04-12 Andrew Cagney <cagney@redhat.com>
10435
10436 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10437 * frame.c (frame_register_read): New function. Return non-zero on
10438 success.
10439 (read_relative_register_raw_bytes_for_frame): Delete.
10440 (read_relative_register_raw_bytes): Delete.
10441 * frame.h (frame_register_read): Declare.
10442 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10443 * sh-tdep.c: Ditto.
10444 * infcmd.c (do_registers_info): Ditto.
10445 * hppa-tdep.c: Ditto.
10446 * rs6000-tdep.c: Ditto.
10447 * h8500-tdep.c: Ditto.
10448 * mips-tdep.c: Ditto.
10449 * h8300-tdep.c: Ditto.
10450 * z8k-tdep.c: Ditto.
10451
10452 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10453
10454 From Jimi X <jimix@watson.ibm.com>:
10455 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10456 64-bit SysV ABI.
10457
10458 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10459
10460 From Jimi X <jimix@watson.ibm.com>:
10461 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10462 bfd info.
10463
10464 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10465
10466 From Jimi X <jimix@watson.ibm.com>:
10467 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10468 register sets for these processor variants.
10469
10470 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10471
10472 * regformats/reg-ppc.dat: Support FPSCR.
10473
10474 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10475
10476 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10477 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10478 Add fpscr as an invalid/unfetchable register.
10479 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10480 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10481 (fill_fpregset): Add support for register fpscr.
10482 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10483 (fill_gregset): Account for the fact that register ``mq'' might
10484 not exist.
10485 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10486 (registers_power): Add fpscr to register set at slot 71.
10487 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10488 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10489
10490 2002-04-11 Michael Snyder <msnyder@redhat.com>
10491
10492 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10493 * configure: Regenerate.
10494 * config.in: Regenerate.
10495 * acconfig.h: Add define for _SYSCALL32.
10496 * core-sol2.c: Remove #define _SYSCALL32.
10497 * solib-legacy.c: Remove #define _SYSCALL32.
10498
10499 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10500
10501 * stack.c (select_frame): Cleanup internal error message, do not
10502 use %p.
10503
10504 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10505
10506 * stack.c (select_frame): Check that selected_frame and the
10507 specified level are as expected.
10508 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10509 Update copyright.
10510 * frame.h (struct frame_info): Add field `level'. Update
10511 copyright.
10512 Work-in-progress PR gdb/464.
10513
10514 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10515
10516 * maint.c (maint_print_section_info): Rename print_section_info.
10517 (print_bfd_section_info, print_objfile_section_info): Update.
10518 * inferior.h (struct gdbarch): Add opaque declaration.
10519 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10520 * gdbarch.h: Regenerate.
10521
10522 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10523
10524 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10525 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10526 (kernel_u_size): Added.
10527 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10528 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10529
10530 2002-04-04 Jim Ingham <jingham@apple.com>
10531
10532 * valarith.c (find_size_for_pointer_math): New function, either returns
10533 the size for a pointer's target, returns 1 for void *, or errors for
10534 incomplete types.
10535 (value_add, value_sub): use find_size_for_pointer_math.
10536
10537 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10538
10539 * linux-low.c (linux_look_up_symbols): New hook.
10540 (linux_target_ops): Add linux_look_up_symbols.
10541 * remote-utils.c (decode_address): New function.
10542 (look_up_one_symbol): New function.
10543 * server.c (handle_query): Call target look_up_symbols hook.
10544 * server.h (look_up_one_symbol): Add prototype.
10545 * target.h (struct target_ops): Add look_up_symbols hook.
10546
10547 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10548
10549 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10550 override FP_REGNUM with frame->fp. Update copyright.
10551 * parse.c (num_std_regs, std_regs): Delete.
10552 (target_map_name_to_register): Do not search std_regs. Update
10553 function description.
10554 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10555 declarations. Update copyright.
10556 Fix PR gdb/251.
10557
10558 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10559
10560 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10561 after the last symbol in a block.
10562
10563 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10564
10565 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10566 is non zero as a found symbol.
10567
10568 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10569
10570 * findvar.c: Include "builtin-regs.h".
10571 (value_of_register): Call value_of_builtin_reg when applicable.
10572 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10573 (target_map_name_to_register): Call
10574 builtin_reg_map_name_to_regnum.
10575 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10576 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10577 (builtin_regs_h): Define.
10578 (builtin-regs.o): New target.
10579 (findvar.o): Add $(builtin_regs_h).
10580 * builtin-regs.c, builtin-regs.h: New files.
10581 * std-regs.c: New file.
10582 Partial fix for PR gdb/251.
10583
10584 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10585
10586 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10587 it's no longer required.
10588
10589 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10590
10591 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10592
10593 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10594
10595 From Jimi X <jimix@watson.ibm.com>:
10596 * rs6000-tdep.c (rs6000_software_single_step): Use
10597 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10598 and size. Use target_insert_breakpoint() and
10599 target_remove_breakpoint() to insert and remove breakpoints
10600 instead of explicit memory reads and writes.
10601
10602 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10603
10604 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10605 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10606 ELF_OBJECT_FORMAT ifdef.
10607
10608 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10609
10610 From Jimi X <jimix@watson.ibm.com>:
10611 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10612
10613 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10614
10615 From Jimi X <jimix@watson.ibm.com>:
10616 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10617 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10618
10619 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10620
10621 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10622 s/asprintf/xasprintf/.
10623 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10624
10625 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10626
10627 I believe Jeff Law denies responsability for this one:
10628 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10629 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10630 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10631 Work-around for PR gdb/366.
10632
10633 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10634
10635 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10636 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10637 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10638
10639 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10640
10641 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10642 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10643 information.
10644
10645 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10646
10647 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10648 maintainer.
10649
10650 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10651
10652 * README (Reporting Bugs in GDB): Document the bug web page as the
10653 prefered way of submitting bugs.
10654 Fix PR gdb/402.
10655
10656 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10657
10658 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10659 -1. Update comment.
10660 * gdbarch.h, gdbarch.c: Re-generate.
10661
10662 2002-04-07 Andreas Schwab <schwab@suse.de>
10663
10664 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10665 buffer to regcache_collect.
10666
10667 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10668
10669 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10670 * gdbarch.c, gdbarch.h: Re-generate.
10671
10672 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10673
10674 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10675 declaration. Fix -Werror.
10676
10677 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10678
10679 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10680 * gdbarch.c: Regenerate.
10681
10682 2002-04-05 Michael Snyder <msnyder@redhat.com>
10683
10684 * breakpoint.c (clear_command): Rewrite middle section to
10685 combine two loops with identical control conditions.
10686 Add a cleanup to eliminate a memory leak.
10687 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10688
10689 2002-04-05 H.J. Lu (hjl@gnu.org)
10690
10691 * solib-svr4.c (bkpt_names): Add "__start".
10692
10693 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10694
10695 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10696 as test for 64 bit target.
10697
10698 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10699
10700 * h8500-tdep.c (h8500_write_fp): Delete function.
10701 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10702 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10703 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10704 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10705 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10706 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10707 (s390_write_fp):
10708 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10709 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10710 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10711 (d10v_write_fp): Delete function.
10712 * inferior.h (write_fp, generic_target_write_fp): Delete
10713 declarations.
10714 * regcache.c (generic_target_write_fp): Delete function.
10715 (write_fp): Delete function.
10716 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10717 * gdbarch.h, gdbarch.c: Regenerate.
10718 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10719 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10720 (sparc64_write_fp): Delete declaration.
10721 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10722 (h8500_write_fp): Delete declaration.
10723
10724 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10725
10726 * sparc-tdep.c (sparc64_write_fp): Delete.
10727 (sparc_push_dummy_frame): Replace write_fp call with code to store
10728 the FP directly.
10729 (sparc_gdbarch_init): Do not initialize write_fp.
10730
10731 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10732
10733 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10734 clause.
10735
10736 2002-03-29 Jim Blandy <jimb@redhat.com>
10737
10738 * stack.c (get_selected_block): Add new argument `addr_in_block',
10739 used to return the exact code address we used to select the block,
10740 not just the block.
10741 * blockframe.c (get_frame_block, get_current_block): Same.
10742 * frame.h (get_frame_block, get_current_block,
10743 get_selected_block): Update declarations.
10744 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10745 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10746
10747 2002-04-05 Michael Snyder <msnyder@redhat.com>
10748
10749 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10750 warning message.
10751
10752 2002-04-05 J. Brobecker <brobecker@gnat.com>
10753
10754 * utils.c (xfullpath): New function.
10755 * defs.h (xfullpath): Add declaration.
10756 * source.c (openp): Use xfullpath in place of gdb_realpath to
10757 avoid resolving the basename part of filenames when the
10758 associated file is a symbolic link. This fixes a potential
10759 inconsistency between the filenames known to GDB and the
10760 filenames it prints in the annotations.
10761 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10762 to be able to match a filename with either the real filename, or
10763 the name of any symbolic link to this file.
10764 (lookup_partial_symtab): Ditto.
10765
10766 2002-04-04 Michael Snyder <msnyder@redhat.com>
10767
10768 * breakpoint.c: Add support for hardware breakpoints in overlays.
10769 (overlay_events_enabled): New state variable.
10770 (insert_breakpoints): Use overlay_events_enabled to decide
10771 whether to attempt to set a breakpoint at the overlay load addr.
10772 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10773 (remove_breakpoint): Use overlay_events_enabled to decide
10774 whether breakpoints need to be removed from overlay load addr.
10775 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10776 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10777 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10778 disable_overlay_breakpoints): Update overlay_events_enabled.
10779
10780 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10781
10782 * dwarf2read.c (struct function_range): New.
10783 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10784 (check_cu_functions): New.
10785 (read_file_scope): Initialize global function lists.
10786 Call dwarf_decode_line after processing children.
10787 (read_func_scope): Add to global function list.
10788 (dwarf_decode_lines): Call check_cu_functions everywhere
10789 record_line is called. Call record_line with a linenumber
10790 of 0 to mark sequence ends.
10791
10792 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10793
10794 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10795 change sync with glibc.
10796
10797 2002-04-03 Jim Blandy <jimb@redhat.com>
10798
10799 * configure.in: Call AC_C_INLINE.
10800 * configure: Regenerated.
10801
10802 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10803
10804 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10805 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10806
10807 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10808
10809 * NEWS: Mention gcore support on FreeBSD/i386.
10810
10811 * fbsd-proc.c: New file.
10812 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10813 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10814
10815 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10816 while statement.
10817
10818 2002-03-29 Jim Blandy <jimb@redhat.com>
10819
10820 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10821 unescaped newlines in string literals, but newer ones don't. So
10822 escape them.
10823
10824 2002-03-26 Michael Snyder <msnyder@redhat.com>
10825 Andrew Cagney <cagney@redhat.com>
10826
10827 * cli/cli-dump.c: New file. Dump memory to file,
10828 restore file to memory.
10829 * cli/cli-dump.h: New file.
10830 * Makefile.in: Add rules, dependencies for cli-dump.o.
10831 * NEWS: Mention new commands.
10832
10833 2002-03-28 Michael Snyder <msnyder@redhat.com>
10834
10835 * symfile.c (symbol_file_add): Move test for null symbols to later.
10836
10837 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10838
10839 From veksler at il.ibm.com:
10840 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10841 the xstrduped original path.
10842 Fix PR gdb/417.
10843
10844 2002-03-27 Michael Snyder <msnyder@redhat.com>
10845
10846 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10847 * infcmd.c (_initialize_infcmd): Ditto.
10848 * language.c (_initialize_language): Ditto.
10849 * symfile.c (_initialize_symfile): Ditto.
10850 * top.c (_init_main): Ditto.
10851 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10852
10853 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10854
10855 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10856 vector registers handling.
10857 (skip_prologue): Handle new AltiVec instructions. Fill in new
10858 fields of frame data.
10859 (frame_get_saved_regs): Fill in information for AltiVec registers.
10860
10861 2002-03-27 Jim Blandy <jimb@redhat.com>
10862
10863 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10864 a function; leave this macro here to invoke that function.
10865 (symbol_init_mangled_name): Declaration for that function.
10866 * symtab.c (symbol_init_mangled_name): New function.
10867
10868 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10869
10870 * valarith.c: Replace strerror with safe_strerror.
10871 * tracepoint.c: Ditto.
10872 * lin-lwp.c: Ditto.
10873 * go32-nat.c: Ditto.
10874 * inflow.c: Ditto.
10875 * gnu-nat.c: Ditto.
10876
10877 2002-03-27 Andreas Schwab <schwab@suse.de>
10878
10879 * event-top.c (command_line_handler): Remove useless if.
10880
10881 2002-03-27 Andreas Jaeger <aj@suse.de>
10882
10883 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10884 comment.
10885
10886 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10887
10888 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10889 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10890 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10891 (x86_64_linux_dr_get_status, supply_gregset),
10892 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10893 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10894 (x86_64_register_info_table): Add.
10895 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10896 (x86_64_register_raw_size, x86_64_register_virtual_type),
10897 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10898 general x86_64_register_info_table.
10899 (i386_gdbarch_init): gdbarch_register_bytes is now set
10900 dynamicaly during initialization.
10901 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10902 * gdbserver/linux-x86-64-low.c: Ditto.
10903
10904 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10905
10906 * gdbserver/server.c (main): Call target_signal_to_host_p
10907 and target_signal_to_host on signals received from the remote.
10908 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10909 target_signal_from_host on signals sent to the remote.
10910 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10911 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10912
10913 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10914
10915 * signals/signals.c: Include "server.h" in gdbserver build.
10916 (target_signal_from_name): Don't use STREQ.
10917 (_initialize_signals): Likewise. Don't include function in
10918 gdbserver build.
10919
10920 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10921
10922 * signals.c: Moved to...
10923 * signals/signals.c: Here.
10924 * Makefile (signals.o): Update.
10925
10926 2002-03-26 Jeff Law (law@redhat.com)
10927
10928 * somread.c (som_symtab_read): Remove some commented out code and
10929 updated related comments. Do not set the minimal symbol table to
10930 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10931 in a dynamic executable.
10932 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10933 where we are unable to find the minimal symbol for the given
10934 PC value.
10935
10936 2002-03-25 Jeff Law (law@redhat.com)
10937
10938 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10939
10940 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10941
10942 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10943
10944 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10945
10946 * command.h: Update copyright.
10947 (struct cmd_list_element): Replace definition with opaque
10948 declaration.
10949 (enum cmd_types): Document that it will eventually be moved to
10950 cli/cli-decode.h
10951 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10952 (MALLOCED_REPLACEMENT): Delete macro.
10953 * Makefile.in (cli_decode_h): Add $(command_h).
10954 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10955 * top.c: Include "cli/cli-decode.h".
10956 * completer.c: Include "cli/cli-decode.h".
10957 * maint.c: Include "cli/cli-decode.h".
10958 * cli/cli-decode.h: Include "command.h".
10959 (enum command_class): Delete.
10960 (enum cmd_types): Comment out.
10961 (enum cmd_auto_boolean): Delete.
10962 (enum var_types): Delete.
10963
10964 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10965
10966 * cli/cli-decode.c: Include "gdb_assert.h".
10967 (add_set_or_show_cmd): New static function.
10968 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10969 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10970 all fields, such as func, from the set command.
10971
10972 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10973
10974 * MAINTAINERS (sh-elf): Change warning flag to -w.
10975
10976 2002-03-23 Andrew Cagney <cagney@redhat.com>
10977
10978 * defs.h (error): Add printf format attribute.
10979 * thread-db.c (thread_from_lwp): Fix error format string.
10980 * stack.c (parse_frame_specification): Ditto.
10981 * cli/cli-decode.c (undef_cmd_error): Ditto.
10982 * scm-lang.c (scm_lookup_name): Ditto.
10983 * tracepoint.c (trace_error): Ditto.
10984 * remote-utils.c (usage): Ditto.
10985 * remote.c (compare_sections_command): Ditto.
10986 Fix PR gdb/328.
10987
10988 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10989
10990 * gdbtypes.c (append_composite_type_field): New function.
10991 (init_composite_type): New function.
10992 * gdbtypes.h (append_composite_type_field): Declare.
10993 (init_composite_type): Ditto.
10994
10995 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10996
10997 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10998 function.
10999 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11000 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11001 structure returning convention for SYSV ABI case, but not
11002 for GNU/Linux, FreeBSD, or NetBSD.
11003
11004 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
11005
11006 * symtab.h (lookup_block_symbol): Add mangled_name argument
11007 to prototype.
11008
11009 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11010 with new mangled_name argument.
11011 * linespec.c (decode_line_1): Likewise.
11012 * valops (value_of_this): Likewise.
11013 * symtab.c (lookup_transparent_type): Likewise.
11014 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11015 (lookup_symbol): If we are given a mangled name, pass it down
11016 to lookup_symbol_aux.
11017 (lookup_block_symbol): If we are given a mangled name to check
11018 against, only return symbols which match it.
11019
11020 2002-03-22 Christopher Faylor <cgf@redhat.com>
11021
11022 * win32-nat.c (child_create_inferior): Check for proper shell to use
11023 here, in case the user changes it on the fly.
11024 (_initialize_inftarg): Remove shell path considerations.
11025
11026 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11027
11028 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11029 for gdbarch_max_register_raw_size and max_register_virtual_size.
11030 Adjust copyright year.
11031
11032 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11033
11034 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11035 in a function to cover the entire beginning of the function
11036 as well if it does not already.
11037
11038 2002-03-21 Tom Rix <trix@redhat.com>
11039
11040 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11041 (rs6000_ptrace64): Renamed from ptrace64.
11042
11043 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11044
11045 * gdbserver/remote-utils.c (remote_open): Don't call
11046 getprotobyname, we're all using TCP here so just use
11047 IPPROTO_TCP.
11048 * gdbserver/gdbreplay.c (remote_open): Ditto.
11049
11050 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11051
11052 * regcache.c (_initialize_regcache): No need to call
11053 build_regcache() at this time; it gets called whenever
11054 the gdbarch changes.
11055
11056 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11057
11058 * sparc-nat.c: Include sys/param.h where possible.
11059
11060 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11061
11062 Fix PR gdb/422.
11063 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11064 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11065 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11066 complex types.
11067 * stabsread.c (rs6000_builtin_type): Likewise.
11068 (read_sun_floating_type): Likewise.
11069
11070 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11071
11072 * stabsread.c (read_member_functions): Remove skip code for duplicate
11073 constructor/destructor methods. Use standard parsing for these
11074 methods and just do not chain them to the list of methods after
11075 parsing.
11076
11077 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11078
11079 * coffread.c: Remove redundant static declarations. Replace
11080 occurrences of `PTR' with `void *'.
11081 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11082 * top.h (quit_cover): Likewise.
11083 * defs.h (catch_errors): Likewise.
11084
11085 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11086
11087 * defs.h (XMALLOC): Define.
11088 * gdb-events.sh (XMALLOC): Delete macro.
11089 * gdb-events.c, gdb-events.h: Regenerate.
11090 * gdbarch.sh (XMALLOC): Delete macro.
11091 * gdbarch.c: Regenerate.
11092 * serial.c (XMALLOC): Delete macro.
11093 * ui-file.c (XMALLOC): Ditto.
11094 * ser-unix.h (XMALLOC): Ditto.
11095 * sh-tdep.c (XMALLOC): Ditto.
11096 * ui-out.c (XMALLOC): Ditto.
11097 * utils.c (XMALLOC): Ditto.
11098 * i386-tdep.c (XMALLOC): Ditto.
11099 * gdb-events.c (XMALLOC): Ditto.
11100 * d10v-tdep.c (XMALLOC): Ditto.
11101 * cli-out.c (XMALLOC): Ditto.
11102
11103 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11104 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11105 * ui-file.c, ui-out.c: Ditto.
11106
11107 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11108
11109 * command.h (struct cmd_list_element): Add field context.
11110 (set_cmd_context, get_cmd_context): Declare.
11111 * cli/cli-decode.h: Ditto.
11112 * cli/cli-decode.c (get_cmd_context): New function.
11113 (set_cmd_context): New function.
11114 (add_cmd): Initialize context.
11115 Part of fixing PR gdb/145 and PR gdb/146.
11116
11117 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11118
11119 * cli/cli-decode.c (cmd_type): New function.
11120 * command.h (cmd_type): Declare.
11121 * infrun.c (set_schedlock_func): Call function cmd_type.
11122 * kod.c (kod_set_os): Call cmd_type.
11123 * cris-tdep.c (cris_version_update): Use function cmd_type.
11124 (cris_mode_update, cris_abi_update): Ditto.
11125
11126 * command.h: (execute_cmd_post_hook): Declare.
11127 (execute_cmd_pre_hook): Declare.
11128 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11129 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11130 functions. Execute pre/post hook while ensuring that afterwords
11131 hook_in is cleared.
11132 * top.c (execute_command): Use execute_cmd_post_hook, and
11133 execute_cmd_pre_hook to execute pre/post commands.
11134 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11135 hook_stop_stub.
11136 (hook_stop_stub): Call execute_cmd_pre_hook.
11137
11138 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11139
11140 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11141 set'' and this leads to a core dump. Move xstrdup of
11142 operating_system to after check that it is not NULL.
11143
11144 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11145
11146 * kod.c (kod_set_os): Remove unnecessary check that
11147 ``command->type'' is set_cmd.
11148
11149 * valprint.c (set_input_radix): Use input_radix.
11150 (set_output_radix): Use output_radix.
11151 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11152 isn't reverted.
11153
11154 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11155
11156 * value.h (struct value): Delete field ``substring_addr''. Change
11157 aligner fields to force_doublest_align, force_longest_align,
11158 force_core_addr_align and force_pointer_aligh.
11159
11160 * value.h (struct value): Fix typo in above change.
11161
11162 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11163
11164 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11165 to fix internal_error from ``maintenance print architecture''.
11166
11167 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11168
11169 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11170 for gcc versions after gcc-2.8.1.
11171
11172 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11173
11174 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11175 for method resolution. Restore adjustment of ``this'' pointer after
11176 calling value_struct_elt, which was accidentally removed during the
11177 HP merge.
11178
11179 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11180
11181 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11182 value_of_register.
11183 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11184 get_saved_register.
11185 * value.h (value_of_register): Update.
11186
11187 2002-03-14 Richard Henderson <rth@redhat.com>
11188
11189 * configure.in: Detect declaration for canonicalize_file_name.
11190 * utils.c (canonicalize_file_name): Declare, if needed.
11191 (gdb_realpath): Prefer realpath if available and usable.
11192 * config.in, configure: Rebuild.
11193
11194 2002-03-14 Richard Henderson <rth@redhat.com>
11195
11196 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11197 a constant array bound.
11198
11199 * MAINTAINERS: Add myself to write-after-approval.
11200
11201 2002-03-14 Michael Snyder <msnyder@redhat.com>
11202
11203 * symfile.c (syms_from_objfile): Return immediately if no syms.
11204 (symbol_file_add): Return immediately if no syms.
11205 (find_sym_fns): Return immediately if no syms.
11206
11207 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11208
11209 * gdbserver/remote-util.c (remote_open): Print remote-side's
11210 IP address when remote debugging over the network.
11211
11212 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11213
11214 * config/sparc/fbsd.mh: Fix copyright.
11215 * config/sparc/fbsd.mt: Likewise.
11216
11217 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11218
11219 * MAINTAINERS: Fix typo in name of gdb warnings option.
11220 (x86-64): Fix formating so that this can be parsed by awk.
11221
11222 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11223
11224 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11225 * defs.h: Include "gdb/signals.h".
11226 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11227
11228 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11229
11230 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11231 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11232 from x86-64-tdep.h
11233
11234 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11235 Don Howard <dhoward@redhat.com>
11236
11237 * mips-tdep.c (ST0_FR): Define.
11238 (mips2_fp_compat): New function, temporarily disabled.
11239 (mips_read_fp_register_single): New function.
11240 (mips_read_fp_register_double): New function.
11241 (mips_print_register): Use them.
11242 (do_fp_register_row): Likewise.
11243
11244 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11245
11246 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11247 approval''.
11248
11249 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11250
11251 * stabsread.c (read_member_functions): Fix is_stub test for
11252 static member functions, improve comment.
11253
11254 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11255
11256 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11257 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11258 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11259 commands that set boolean values.
11260 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11261 (arm_rdi_resume): Always initialize PC.
11262 (arm_rdi_open): Don't use rslt as a boolean.
11263 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11264 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11265 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11266 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11267
11268 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11269
11270 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11271 * configure: Rebuilt.
11272
11273 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11274
11275 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11276 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11277
11278 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11279
11280 * cli/cli-decode.c (set_cmd_completer): New function.
11281 * command.h (set_cmd_completer): Declare.
11282 * cli/cli-decode.h (set_cmd_completer): Ditto.
11283
11284 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11285 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11286 * win32-nat.c (_initialize_inftarg): Ditto.
11287 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11288 * proc-api.c (_initialize_proc_api): Ditto.
11289 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11290 * source.c (_initialize_source): Ditto.
11291 * exec.c (_initialize_exec): Ditto.
11292 * solib.c (_initialize_solib): Ditto.
11293 * top.c (init_main): Ditto.
11294 * tracepoint.c (_initialize_tracepoint): Ditto.
11295 * symfile.c (_initialize_symfile): Ditto.
11296 * printcmd.c (_initialize_printcmd): Ditto.
11297 * infcmd.c (_initialize_infcmd): Ditto.
11298 * corefile.c (_initialize_core): Ditto.
11299
11300 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11301
11302 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11303
11304 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11305
11306 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11307
11308 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11309
11310 * NEWS: Update headings, 5.2 has branched.
11311
11312 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11313
11314 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11315 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11316 (register_addr, REGISTER_RAW_SIZE): Likewise.
11317 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11318 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11319
11320 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11321
11322 * MAINTAINERS (x86-64): Add myself.
11323 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11324 changed value_ptr -> struct value *
11325
11326 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11327
11328 * configure.host (sparc64-*-freebsd): Add.
11329 * configure.tgt: Likewise.
11330 * config/sparc/fbsd.mh: New file.
11331 * config/sparc/fbsd.mt: Likewise.
11332 * config/sparc/nm-fbsd.h: Likewise.
11333 * config/sparc/tm-fbsd.h: Likewise.
11334
11335 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11336
11337 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11338 regformats/reg-s390x.dat.
11339
11340 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11341
11342 * utils.c: Add FIXME explaining true/false problem.
11343
11344 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11345
11346 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11347
11348 2002-02-28 Michael Chastain <mec@shout.net>
11349
11350 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11351
11352 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11353
11354 * gdbserver/linux-s390-low.c: New file.
11355 * regformats/reg-s390.dat: New file.
11356 * regformats/reg-s390x.dat: New file.
11357 * gdbserver/configure.srv: Add S/390.
11358 * gdbserver/Makefile.in: Add S/390.
11359 * configure.tgt: Enable gdbserver for S/390.
11360
11361 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11362
11363 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11364 first line of the doc string for "info dos", except at the end of
11365 the sentence, since the short help stops at the first period.
11366
11367 2002-02-28 Jason Merrill <jason@redhat.com>
11368
11369 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11370
11371 2002-02-27 Fred Fish <fnf@redhat.com>
11372
11373 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11374 comment (dumy -> dummy).
11375
11376 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11377
11378 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11379
11380 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11381
11382 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11383
11384 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11385
11386 * gdbserver/acconfig.h: New file.
11387 * gdbserver/i387-fp.c: New file.
11388 * gdbserver/i387-fp.h: New file.
11389 * gdbserver/linux-x86-64.c: New file.
11390 * regformats/reg-x86-64.dat: New file.
11391 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11392 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11393 * gdbserver/configure.in: Add support for regsets.
11394 * gdbserver/config.in: Regenerate.
11395 * gdbserver/configure: Regenerate.
11396 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11397 * gdbserver/linux-low.h: New file.
11398 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11399 for regsets.
11400 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11401 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11402 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11403 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11404 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11405 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11406 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11407 "i387-fp.h". Add PTRACE_GETREGS and friends.
11408 * gdbserver/regcache.c (supply_register): New function.
11409 (supply_register_by_name): New function.
11410 (collect_register): New function.
11411 (collect_register_by_name): New function.
11412
11413 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11414
11415 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11416 (config.status): Add configure.srv dependency.
11417 (server_h): Add config.h dependency.
11418
11419 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11420
11421 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11422 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11423 * gdbserver/configure.srv: Change i386-*-linux* to use
11424 reg-i386-linux.o.
11425
11426 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11427
11428 * x86-64-tdep.c: Re-indent. Update copyright date.
11429
11430 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11431
11432 From Michal Ludvig <mludvig@suse.cz>:
11433 * x86-64-tdep.c (value.h): Delete.
11434 (gdb_assert.h): Include.
11435 (x86_64_register_convert_to_virtual,
11436 x86_64_register_convert_to_raw ): Add check which lets only
11437 floating-point values to be converted.
11438 (value_push): Delete.
11439 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11440 (i386_gdbarch_init): Number of register_bytes fixed.
11441
11442 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11443
11444 * MAINTAINERS: Add x86-64 target.
11445
11446 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11447
11448 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11449 * osfsolib.c (solib_map_sections): Ditto.
11450 * irix5-nat.c (solib_map_sections): Ditto.
11451 * corelow.c (gdb_check_format): Ditto.
11452 * symfile.c (symfile_bfd_open): Ditto.
11453 * solib.c (solib_map_sections): Ditto.
11454 Fix PR gdb/354.
11455
11456 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11457
11458 * remote.c (_initialize_remote): By default, disable ``e'' and
11459 ``E'' step out-of-range packets.
11460
11461 2002-02-26 Andreas Schwab <schwab@suse.de>
11462
11463 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11464 m68k_linux_frame_saved_pc.
11465 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11466 in_sigtramp.
11467 (SIGCONTEXT_PC_OFFSET): Remove.
11468 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11469 m68k_linux_sigtramp_saved_pc): New functions.
11470 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11471 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11472 (UCONTEXT_PC_OFFSET): Define.
11473 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11474 non-RT and RT signal trampolines.
11475
11476 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11477
11478 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11479 (TARGET_NBPG, STACK_END_ADDR): Delete
11480 (VARIABLES_INSIDE_BLOCK): Delete.
11481
11482 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11483
11484 * utils.c (perror_with_name): Make string parameter constant.
11485 (print_sys_errmsg): Ditto.
11486 (query): Ditto.
11487 * defs.h (perror_with_name): Update.
11488 (print_sys_errmsg): Update.
11489 (query): Update.
11490
11491 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11492
11493 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11494 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11495
11496 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11497
11498 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11499 if it already matches the current architecture from the exec file.
11500 Include arch-utils.h for gdbarch_info_init prototype.
11501 * Makefile.in (rs6000-nat.o): Update dependencies.
11502
11503 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11504
11505 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11506 list of exported variables.
11507
11508 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11509
11510 * gdbserver/configure.srv: New file.
11511 * gdbserver/configure.in: Use configure.srv instead
11512 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11513 from it.
11514 * gdbserver/configure: Regenerated.
11515 * gdbserver/terminal.h: New file.
11516 * gdbserver/Makefile.in: Update for configure changes. Remove
11517 more unneeded include paths.
11518
11519 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11520
11521 From wiz at danbala:
11522 * config/sparc/tm-sp64.h: Fix grammar and typos.
11523 Fix PR gdb/287.
11524
11525 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11526
11527 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11528 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11529 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11530 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11531 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11532 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11533 * s390-tdep.c: Ditto.
11534 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11535 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11536 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11537 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11538 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11539 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11540 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11541 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11542 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11543 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11544 Fix PR gdb/378.
11545
11546 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11547
11548 * lin-thread.c: Delete file.
11549 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11550 to gdb_proc_service.h.
11551 * configure: Re-generate.
11552
11553 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11554 * serial.c (serial_open): Delete check for "ocd".
11555 Fix PR gdb/349.
11556
11557 * Makefile.in (linux-thread.o): Delete target.
11558 * linux-thread.c: Delete file.
11559
11560 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11561 renamed SH files to be consistent.
11562
11563 * symtab.c (sort_search_symbols): Use xfree.
11564
11565 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11566
11567 * arm-linux-tdep.c (arm_linux_init_abi): Register
11568 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11569 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11570 definition with undef, since we don't want the sysvr4 definition.
11571 (SKIP_TRAMPOLINE_CODE): Likewise.
11572
11573 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11574
11575 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11576
11577 * configure.in: (AC_CHECK_FUNCS) Added test for
11578 canonicalize_file_name Regenerated.
11579 * config.in, configure: Regenerated.
11580 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11581 defined use canonicalize_file_name.
11582
11583 2002-02-23 Michael Chastain <mec@shout.net>
11584
11585 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11586
11587 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11588
11589 * README: Remove references to cygnus.com.
11590 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11591 dot com'' form. Remove references to cygnus.com and sourceware.
11592
11593 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11594
11595 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11596 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11597 1003.1-2001 no longer allows "head -1".
11598 * gdb/Makefile.in (version.c): Likewise.
11599 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11600 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11601 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11602
11603 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11604
11605 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11606 * command.h (cmd_cfunc_eq): Declare.
11607 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11608
11609 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11610 ``struct cmd_list_element *''.
11611 * cli/cli-cmds.c (is_complete_command): Update. Use
11612 cmd_cfunc_eq.
11613 * top.c (execute_command): Pass the command to
11614 is_complete_command.
11615 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11616
11617 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11618
11619 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11620 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11621 architecture defines.
11622 * s390-tdep.c (s390_gdbarch_init): Likewise.
11623
11624 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11625
11626 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11627 (arm_linux_push_arguments): Likewise.
11628 (arm_linux_init_abi): Register them. Also register linux-specific
11629 call_dummy_words.
11630 (find_minsym_and_objfile): Use strcmp, not STREQ.
11631 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11632 (arm_linux_call_dummy_words): Delete declaration.
11633 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11634 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11635 declarations.
11636 (LOWEST_PC): Delete.
11637
11638 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11639
11640 * maint.c (print_section_info): Do not prepend `0x' to filepos
11641 output, it will be handled by local_hex_string_custom.
11642
11643 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11644
11645 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11646 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11647 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11648
11649 2002-02-22 Jim Blandy <jimb@redhat.com>
11650
11651 Indicate that the bcache functions don't change the strings
11652 they're passed.
11653 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11654 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11655
11656 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11657
11658 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11659
11660 2002-02-21 Christopher Faylor <cgf@redhat.com>
11661
11662 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11663 find the complete path to a loaded DLL.
11664
11665 2002-02-21 Fred Fish <fnf@redhat.com>
11666
11667 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11668 that marks the end of the range of a function, enter a line number
11669 entry that has a line number of zero and a PC offset that matches
11670 the end of the function. This starts a range of PC's for which no
11671 line number information is known.
11672 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11673 PC's for which no line number info is found (line number is zero)
11674 then we didn't find any valid line information.
11675 * symtab.h: Document use of zero line number entry.
11676
11677 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11678
11679 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11680 (have_ptrace_getvrregs): Define for run time checks.
11681 (gdb_vrregset_t): New type for Altivec register handling.
11682 (fetch_register, store_register): Fetch/store altivec register
11683 when needed.
11684 (fetch_altivec_register, store_altivec_register): New functions.
11685 (supply_vrregset, fill_vrregset): New functions.
11686 (fetch_altivec_registers, store_altivec_registers): New functions.
11687 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11688 registers as well.
11689
11690 2002-02-21 Jiri Smid <smid@suse.cz>
11691
11692 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11693
11694 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11695
11696 * Makefile.in (armnbsd-nat.o): Update dependencies.
11697 * armnbsd-nat.c (supply_gregset): New function. Common code to
11698 supply the integer register set.
11699 (supply_fparegset): New function. Similar for FPA registers.
11700 (fetch_regs, fetch_fp_regs): Use them.
11701 (fetch_core_registers): Likewise.
11702 (fetch_elfcore_registers): New function.
11703 (arm_netbsd_elfcore_fns): New core-file type specification.
11704 (_initialize_arm_netbsd_nat): Register it.
11705
11706 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11707
11708 * armnbsd-nat.c: Include gdbcore.h.
11709 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11710 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11711 'void' to declaration, to shut up ARI.
11712 (fetch_core_registers): Make static. Rewrite using supply_register.
11713 (arm_netbsd_core_fns): New core-file type specification.
11714 (_initialize_arm_netbsd_nat): New function.
11715
11716 2002-02-21 Christopher Faylor <cgf@redhat.com>
11717
11718 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11719 value.
11720
11721 2002-02-20 Christopher Faylor <cgf@redhat.com>
11722
11723 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11724 fails.
11725
11726 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11727
11728 * jv-exp.y (parse_number): Change type of implicit longs
11729 to builtin_type_uint64.
11730
11731 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11732
11733 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11734 to be an integer instead of a `union wait'.
11735
11736 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11737
11738 * mips-linux-nat.c: Call the operating system GNU/Linux.
11739 * mips-linux-tdep.c: Likewise.
11740 * mips-tdep.c: Likewise.
11741
11742 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11743
11744 Fix PR gdb/265.
11745 * jv-exp.y (parse_number): Handle 64-bit integers.
11746
11747 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11748
11749 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11750 AC_STDC_HEADERS to AC_HEADER_STDC.
11751 * gdbserver/configure: Regenerated.
11752
11753 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11754
11755 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11756 is defined.
11757 * sparc-tdep.c (get_longjmp_target): Likewise.
11758
11759 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11760
11761 * News: Add news about ARM and Multi-arch. Mention the new target
11762 arm*-*-netbsd*.
11763
11764 2002-02-19 Jim Blandy <jimb@redhat.com>
11765
11766 * stabsread.c (error_type_complaint): Improve error message.
11767
11768 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11769
11770 * gdbserver/README: Update documentation.
11771 * gdbserver/configure.in: Update configury to match documentation.
11772 * gdbserver/Makefile.in: Likewise.
11773 * gdbserver/configure: Regenerated.
11774 * gdbserver/aclocal.m4: New file, generated by aclocal.
11775 * gdbserver/config.in: New file, generated by autoheader.
11776
11777 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11778
11779 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11780 armnbsd-nat.c.
11781
11782 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11783
11784 * arm-tdep.h (enum arm_float_model): New enum.
11785 (struct gdbarch_tdep): Add fp_model.
11786 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11787 up floating-point conversions until we know the floating-point model
11788 in use by the inferior. Don't complain about being unable to
11789 determine the ABI of the inferior when we don't have one.
11790 (arm_extract_return_value): Support different floating-point models.
11791 (arm_store_return_value): Likewise.
11792 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11793 ARM_FLOAT_SOFT.
11794 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11795
11796 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11797
11798 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11799 of ``current_gdbarch''.
11800
11801 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11802
11803 * armnbsd-nat.c : ANSIfy all function declarations.
11804 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11805 (fetch_inferior_registers): Re-implement in terms of above.
11806 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11807 (store_inferior_registers): Re-implement in terms of above.
11808
11809 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11810
11811 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11812 kernel.
11813 * arm-linux-tdep.c: Likewise.
11814 * config/arm/tm-linux.h: Likewise.
11815
11816 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11817
11818 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11819 * config/arm/nbsd.mt (TM_FILE): Delete.
11820 * config/arm/tm-nbsd.h: Delete.
11821
11822 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11823
11824 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11825 Initialize CALL_DUMMY_LENGTH.
11826
11827 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11828
11829 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11830 function.
11831 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11832 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11833 defines one thing and that is incorrect for this port.
11834 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11835
11836 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11837
11838 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11839
11840 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11841
11842 * win32-nat.c (display_selector): New function. Displays information
11843 about the information returned by GetThreadSelectorEntry API function.
11844 (display_selectors): New function. Displays the infomation of
11845 the selector given as argument, or of CS, DS ans FS selectors
11846 if no argument is given.
11847 ( _initialize_inftarg): Add "w32" as info prefix command.
11848 Add "info w32 selector" as command calling display_selectors.
11849
11850 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11851
11852 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11853 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11854 if not defined.
11855
11856 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11857
11858 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11859
11860 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11861
11862 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11863 (arm_fix_call_dummy): Call it.
11864 (arm_call_dummy_breakpoint_offset): Delete.
11865 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11866 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11867
11868 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11869
11870 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11871 Default to func_frame_chain_valid.
11872 * gdbarch.h, gdbarch.c: Re-generate.
11873 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11874
11875 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11876
11877 * ppc-linux-nat.c: Update copyright.
11878 (fetch_register, store_register): Add tid parameter, don't compute
11879 tid here.
11880 (fetch_ppc_registers, store_ppc_registers): Add tid
11881 parameter. Pass it along to callees.
11882 (fetch_inferior_registers, store_inferior_registers): Compute tid
11883 here, and pass it to calleed functions.
11884 (fill_gregset, supply_fpregset): Clean up formatting.
11885
11886 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11887
11888 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11889 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11890
11891 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11892
11893 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11894 * gdbarch.c gdbarch.h: Regenerate.
11895 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11896 function.
11897 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11898 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11899 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11900
11901 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11902 * arm-tdep.c (arm_get_longjmp_target): New function.
11903 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11904 this to a positive value register arm_get_longjmp_target as the
11905 longjmp handler.
11906 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11907 (arm_linux_init_abi): Set up longjmp description in tdep.
11908 * armnbsd-nat.c (get_longjmp_target): Delete.
11909 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11910 description in tdep.
11911 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11912 (get_longjmp_target): Delete declaration.
11913 (GET_LONGJMP_TARGET): Delete.
11914 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11915 (GET_LONGJMP_TARGET): Delete.
11916
11917 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11918
11919 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11920 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11921 of ``current_gdbarch''.
11922
11923 2002-02-17 Tom Tromey <tromey@redhat.com>
11924
11925 * cli/cli-cmds.c (compare_strings): New function.
11926 (complete_command): Only print each unique item once.
11927 * completer.h (complete_line): Declare.
11928 * completer.c (complete_line): New function.
11929 (line_completion_function): Use it.
11930
11931 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11932
11933 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11934 * gdbarch.h, gdbarch.c: Re-generate.
11935
11936 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11937
11938 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11939
11940 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11941
11942 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11943 * valops.c (value_arg_coerce): Don't take the address of a reference
11944 to convert an argument to a reference.
11945
11946 2002-02-15 Christopher Faylor <cgf@redhat.com>
11947
11948 * win32-nat.c (get_image_name): New function.
11949 (handle_load_dll): Use get_image_name function.
11950 (get_child_debug_event): Avoid registering debug events until possibly
11951 execed process is started.
11952 (child_create_inferior): Allow invocation via shell so that command
11953 line redirection, etc. works ok.
11954 (_initialize_inftarg): Add new command: "set shell" to control whether
11955 a shell is used to start a process.
11956
11957 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11958
11959 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11960 instead of find_register_by_number.
11961 (cannot_store_register): Likewise.
11962
11963 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11964
11965 * dwarf2read.c: Replace fprintf (stderr, ...) by
11966 fprintf_unfiltered (gdb_stderr, ...).
11967
11968 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11969
11970 * gdbserver/gdbserver.1: Document --attach.
11971
11972 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11973
11974 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11975 descriptions.
11976 * arm-tdep.c (arm_default_arm_le_breakpoint)
11977 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11978 (arm_default_thumb_be_breakpoint): New. Initialize them from
11979 traditional breakpoint defines.
11980 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11981 (arm_gdbarch_init): Initialize new breakpoint variables.
11982 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11983 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11984 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11985 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11986 code out to ...
11987 (arm_netbsd_init_abi_common): ... here; new function.
11988 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11989 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11990 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11991 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11992
11993 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11994
11995 * arm-tdep.h (enum arm_abi): New enum.
11996 (struct gdbarch_tdep): New structure.
11997 (LOWEST_PC): Provide a default.
11998 (arm_gdbarch_register_os_abi): Declare new function.
11999 * arm-tdep.c (arm_abi_names): New array.
12000 (process_note_abi_tag_sections): New function.
12001 (get_elfosabi): New function.
12002 (arm_gdbarch_register_os_abi): New function.
12003 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12004 support for that ABI has been built in, then call the appropriate
12005 configuration routine. Use gdbarch_num_regs() to get the number
12006 of registers.
12007 (arm_dump_tdep): New function.
12008 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12009 place-holder functions.
12010 (_initialize_arm_tdep): Register them.
12011 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12012
12013 * armnbsd-tdep.c: New file.
12014 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12015 * config/arm/nbsd.mt (TDEPFILES): Add it.
12016 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12017
12018 * armnbsd-nat.c: Include regcache.h.
12019 * Makefile.in (armnbsd-nat.o): Update dependency list.
12020
12021 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12022
12023 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12024
12025 * gdbserver/Makefile.in: Fix typos in target rules.
12026
12027 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12028
12029 Fix part of PR gdb/267.
12030 * linespec.c (find_methods): Handle constructors specially for now.
12031
12032 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12033
12034 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12035 handling.
12036 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12037 standard_coerce_float_to_double().
12038
12039 2002-02-14 Christopher Faylor <cgf@redhat.com>
12040
12041 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12042 GDBINIT_FILENAME.
12043
12044 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12045
12046 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12047 find_variant_by_name, because it confuses the multiarch
12048 framework. Return NULL if there isn't an architecture with the
12049 user supplied name, instead of forcing a different one without
12050 recording the change with the multiarch machinery.
12051 (find_variant_by_name): Delete.
12052
12053 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12054
12055 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12056 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12057
12058 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12059
12060 * stack.c (print_frame_info_base): When calling
12061 print_frame_info_listing_hook, set current_source_symtab.
12062
12063 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12064
12065 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12066 and remove unused $(INCLUDE_DIR).
12067 Add regcache.c to OBS.
12068 Add generated register protocol files to clean target.
12069 Update dependencies for new objects, obsolete old target code.
12070
12071 * gdbserver/linux-low.c: Remove all platform-specific code to
12072 new files. Remove various dead code. Update to use regcache
12073 functionality.
12074 * gdbserver/remote-utils.c (fromhex): Add return statement
12075 to quiet warning.
12076 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12077 constant.
12078 (input_interrupt): Add integer parameter to match prototype
12079 of a signal handler.
12080 (outreg): Use register_data ().
12081 (prepare_resume_reply): Use gdbserver_expedite_regs.
12082 * gdbserver/server.c (main): Dynamically allocate own_buf because
12083 PBUFSIZ is no longer constant. Use registers_to_string () and
12084 registers_from_string ().
12085 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12086 for error (), fatal (), and warning (). Update definition of
12087 PBUFSIZ to use regcache functionality. Add include guard.
12088 * gdbserver/utils.c (fatal): Add missing ``const''.
12089 (warning): New function.
12090
12091 * regformats/regdat.sh: Include "regcache.h" in generated files.
12092 Provide init_registers () function.
12093 * regformats/regdef.h: Add prototype for set_register_cache ().
12094 Add include guard.
12095
12096 * gdbserver/linux-arm-low.c: New file.
12097 * gdbserver/linux-i386-low.c: New file.
12098 * gdbserver/linux-ia64-low.c: New file.
12099 * gdbserver/linux-m68k-low.c: New file.
12100 * gdbserver/linux-mips-low.c: New file.
12101 * gdbserver/linux-ppc-low.c: New file.
12102 * gdbserver/linux-sh-low.c: New file.
12103
12104 * gdbserver/regcache.c: New file.
12105 * gdbserver/regcache.h: New file.
12106
12107 * gdbserver/low-linux.c: Removed obsolete file.
12108
12109 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12110
12111 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12112 * config/i386/linux.mt: Likewise.
12113 * config/ia64/linux.mt: Likewise.
12114 * config/m68k/linux.mh: Likewise.
12115 * config/powerpc/linux.mh: Likewise.
12116 * config/mips/linux.mt: Likewise.
12117
12118 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12119
12120 * config/i386/i386lynx.mh: Mark gdbserver variables
12121 as (currently) obsolete for this target.
12122 * config/i386/nbsd.mt: Likewise.
12123 * config/i386/nbsdelf.mt: Likewise.
12124 * config/m32r/m32r.mt: Likewise.
12125 * config/m68k/m68klynx.mh: Likewise.
12126 * config/m68k/nbsd.mt: Likewise.
12127 * config/m68k/sun3os4.mh: Likewise.
12128 * config/mips/vr5000.mt: Likewise.
12129 * config/ns32k/nbsd.mt: Likewise.
12130 * config/pa/hppabsd.mh: Likewise.
12131 * config/pa/hppaosf.mh: Likewise.
12132 * config/powerpc/nbsd.mt: Likewise.
12133 * config/rs6000/rs6000lynx.mh: Likewise.
12134 * config/s390/s390.mt: Likewise.
12135 * config/s390/s390x.mt: Likewise.
12136 * config/sparc/sparclynx.mh: Likewise.
12137 * config/sparc/sun4os4.mh: Likewise.
12138 * config/i386/x86-64linux.mt: Likewise.
12139 * config/sparc/linux.mh: Likewise.
12140
12141 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12142
12143 * configure.tgt: Configure gdbserver only for known working
12144 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12145 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12146 SUBDIRS if it is configured. Update comment for ${nativefile}.
12147 * configure: Regenerated.
12148
12149 2002-02-13 Michael Snyder <msnyder@redhat.com>
12150
12151 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12152
12153 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12154 (default_gcore_mach): Just return 0, work around a problem in bfd.
12155 (default_gcore_target): OK to return NULL if exec_bfd is null.
12156 (make_mem_sec): Use a cast, avoid a warning.
12157
12158 * procfs.c (find_memory_regions_callback): Use a cast instead of
12159 calling host_pointer_to_address (which complains if
12160 sizeof (host pointer) != sizeof (target pointer)).
12161 (procfs_make_note_section): Avoid overflow in psargs string.
12162
12163 * procfs.c (procfs_make_note_section): Make the default
12164 implementation return an error.
12165
12166 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12167
12168 * procfs.c (procfs_make_note_section): Provide a default definition
12169 (for alpha-dec-osf4.0f). Fix typos.
12170
12171 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12172
12173 * linux-proc.c: Add include of regcache.h.
12174 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12175
12176 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12177
12178 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12179 * memattr.c (create_mem_region): Disallow useless empty region.
12180 Regions are half-open intervals, so allow [A..B) [B..C) as
12181 non-overlapping.
12182
12183 2002-02-13 Michael Chastain <mec@shout.net>
12184
12185 * defs.h: Kill CONST_PTR.
12186 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12187 * c-lang.c (c_builtin_types): Likewise.
12188 * ch-lang.c (ch_builtin_types): Likewise.
12189 * f-lang.c (f_builtin_types): Likewise.
12190 * language.c (unknown_builtin_types): Likewise.
12191 * m2-lang.c (m2_builtin_types): Likewise.
12192 * p-lang.c (pascal_builtin_types): Likewise.
12193 * scm-lang.c (c_builtin_types): Likewise.
12194
12195 2002-02-13 Keith Seitz <keiths@redhat.com>
12196
12197 * arm-tdep.h (arm_get_next_pc): Add declaration.
12198
12199 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12200
12201 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12202 with other related struct-returning functions.
12203 (arm_extract_struct_value_address): New function.
12204 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12205 initialize float_format, double_format and long_double_format as
12206 appropriate to the endianness of the target.
12207 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12208 (arm_use_struct_convention): Delete declaration.
12209 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12210
12211 2002-02-13 Keith Seitz <keiths@redhat.com>
12212
12213 * defs.h (core_addr_to_string_nz): New function.
12214
12215 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12216
12217 Apply missing bits of 2002-01-15 patch.
12218 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12219 (fill_fpregset): Use i387_fill_fsave.
12220
12221 2002-02-12 Keith Seitz <keiths@redhat.com>
12222
12223 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12224 (core_addr_to_string_nz): New function.
12225
12226 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12227
12228 * arm-linux-nat.c: Really include arm-tdep.h.
12229 * config/arm/tm-linux.h (struct type, struct value): Declare.
12230
12231 2002-02-11 Michael Snyder <msnyder@redhat.com>
12232
12233 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12234 (gcore section): Ifdef for Solaris and Unixware only.
12235 (procfs_do_thread_registers): Unixware needs one lwpstatus
12236 per thread (not one prstatus or pstatus).
12237 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12238 not over all gdb threads. For unixware, call elfcore_write_pstatus
12239 once before iterating over threads.
12240
12241 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12242
12243 * arm-tdep.h: New file.
12244 * arm-tdep.c: Include arm-tdep.h.
12245 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12246 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12247 (arm_print_float_info, arm_register_type, convert_to_extended)
12248 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12249 (arm_extract_return_value, arm_register_name): Make static.
12250 (arm_software_single_step): Similarly. Fix types in declaration.
12251 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12252 (arm_store_return_value, arm_store_struct_return): New functions.
12253 (arm_gdbarch_init): Register the above functions. Also register
12254 call_dummy_start_offset, sizeof_call_dummy_words,
12255 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12256 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12257 max_register_virtual_size, register_size. Set up
12258 prologue_cache.saved_regs here, rather than ...
12259 (_initialize_arm_tdep): ... here.
12260 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12261 declarations.
12262 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12263 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12264 (arm_print_float_info, arm_register_type, convert_to_extended)
12265 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12266 (arm_extract_return_value, arm_register_name): Delete declarations.
12267 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12268 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12269 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12270 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12271 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12272 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12273 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12274 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12275 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12276 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12277 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12278 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12279 interface.
12280 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12281 * remote-rdi.c remote-rdp.c: Likewise.
12282 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12283 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12284 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12285 definition.
12286
12287 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12288 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12289 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12290 from non-ARM_ prefixed definitions.
12291 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12292 all uses of above.
12293 * remote-rdi.c remote-rdp.c: Likewise.
12294 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12295
12296 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12297
12298 * arm-tdep.c (arm_frameless_function_invocation)
12299 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12300 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12301 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12302 (arm_pop_frame, arm_get_next_pc): Make static.
12303 (arm_gdbarch_init): Register above in gdbarch structure.
12304 (arm_read_fp): Renamed from arm_target_read_fp.
12305 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12306 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12307 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12308 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12309 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12310 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12311 (arm_pc_is_thumb_dummy): Delete declarations.
12312 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12313 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12314 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12315 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12316
12317 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12318
12319 * symtab.c (compare_search_syms): New function.
12320 (sort_search_symbols): New function.
12321 (search_symbols): Sort symbols after searching rather than
12322 before.
12323
12324 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12325
12326 * NEWS: Linux -> GNU/Linux.
12327
12328 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12329
12330 * gdbarch.sh: For for level one methods, disallow a definition
12331 when partially multi-arched. Add comments explaining rationale.
12332 * gdbarch.h: Re-generate.
12333
12334 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12335
12336 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12337 multi-arch partial.
12338
12339 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12340
12341 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12342 field. Use diff -u.
12343 * gdbarch.c: Re-generate.
12344
12345 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12346
12347 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12348 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12349 partial.
12350
12351 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12352
12353 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12354 multi-arch partial.
12355 (PUSH_ARGUMENTS): Switch to using predefault.
12356 * gdbarch.c: Regenerate.
12357
12358 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12359
12360 * valops.c (PUSH_ARGUMENTS): Delete definition.
12361 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12362 partial. Default to default_push_arguments.
12363 * gdbarch.h, gdbarch.c: Regenerate.
12364
12365 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12366
12367 * defs.h (throw_exception): Rename return_to_top_level. Update
12368 comments.
12369 * utils.c (error_stream, internal_verror, quit): Ditto.
12370 * top.c (throw_exception, catcher): Ditto.
12371 * sparclet-rom.c (sparclet_load): Ditto.
12372 * remote.c (interrupt_query, minitelnet): Ditto.
12373 * remote-sds.c (interrupt_query): Ditto.
12374 * remote-mips.c (mips_error, mips_kill): Ditto.
12375 * ocd.c (interrupt_query): Ditto.
12376 * monitor.c (monitor_interrupt_query): Ditto.
12377 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12378 * target.h: Update comment.
12379
12380 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12381
12382 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12383
12384 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12385 default_double_format.
12386 * gdbarch.h, gdbarch.c: Re-generate.
12387 * findvar.c (floatformat_unknown): Delete variable definition.
12388 * doublest.h (floatformat_unknown): Delete variable declaration.
12389
12390 2002-02-09 Jim Blandy <jimb@redhat.com>
12391
12392 * stabsread.c (read_type): Add code to parse Sun's syntax for
12393 prototyped function types.
12394
12395 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12396
12397 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12398 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12399
12400 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12401
12402 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12403 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12404 now _initialize_xcoffsolib gets called again and overrides the
12405 commands from solib.c in a native configuration.
12406
12407 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12408
12409 * doublest.c (store_typed_floating): Don't try to return a value.
12410 Fixes PR gdb/290.
12411
12412 2002-02-08 Jim Blandy <jimb@redhat.com>
12413
12414 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12415 is prototyped and has no arguments, print its argument list as
12416 `(void)'.
12417
12418 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12419
12420 * MAINTAINERS (write-after-approval): Add myself.
12421 (paper-trail): I've escaped!
12422
12423 2002-02-08 Christopher Faylor <cgf@redhat.com>
12424
12425 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12426 changes.
12427 (_initialize_check_for_gdb_ini): Ditto.
12428
12429 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12430
12431 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12432 xaprintf -> xasprintf.
12433
12434 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12435
12436 * win32-nat.c: Remove use of printf and sprintf functions.
12437
12438 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12439
12440 * arm-tdep.c (arm_frame_chain_valid): Make static.
12441 (arm_push_arguments): Likewise.
12442 (arm_gdbarch_init): New function.
12443 (_initialize_arm_tdep): Call it.
12444 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12445 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12446 (FRAME_CHAIN_VALID): Delete.
12447 (arm_frame_chain_valid): Delete declaration.
12448 (PUSH_ARGUMENTS): Delete.
12449 (arm_push_arguments): Delete declaration.
12450 (CALL_DUMMY_P): Delete.
12451
12452 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12453 Corinna Vinschen <vinschen@redhat.com>
12454
12455 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12456 on builtin float types.
12457
12458 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12459
12460 * utils.c: Include <curses.h> before "bfd.h".
12461 * tui/tui-hooks.c: Likewise.
12462 * tui/tui.c: Likewise.
12463 * tui/tuiCommand.c: Likewise.
12464 * tui/tuiData.c: Likewise.
12465 * tui/tuiDataWin.c: Likewise.
12466 * tui/tuiDisassem.c: Likewise.
12467 * tui/tuiGeneralWin.c: Likewise.
12468 * tui/tuiIO.c: Likewise.
12469 * tui/tuiLayout.c: Likewise.
12470 * tui/tuiRegs.c: Likewise.
12471 * tui/tuiSource.c: Likewise.
12472 * tui/tuiSourceWin.c: Likewise.
12473 * tui/tuiStack.c: Likewise.
12474 * tui/tuiWin.c: Likewise.
12475
12476 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12477
12478 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12479 to include space for pseudoregs as well. Update loops accordingly.
12480 (sh_fp_frame_init_saved_regs): Ditto.
12481 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12482
12483 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12484
12485 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12486 Add Richard Earnshaw to Arm maintainers.
12487
12488 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12489
12490 * defs.h (warning_begin): Delete declaration.
12491
12492 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12493 Delete macro.
12494
12495 2002-02-07 Michael Snyder <msnyder@redhat.com>
12496
12497 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12498 Logic bug, remove misplaced else.
12499
12500 2002-02-07 Klee Dienes <klee@apple.com>
12501
12502 * fork-inferior.c (fork_inferior): Add '!' to the list of
12503 characters that need to be quoted when building a string for the
12504 shell. Quote '!' specifically with a backslash, since CSH chokes
12505 when trying to evaluate "str!str".
12506
12507 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12508
12509 * rdi-share/host.h: Only provide a typedef for bool if it is not
12510 defined.
12511
12512 2002-02-04 Michael Snyder <msnyder@redhat.com>
12513
12514 * breakpoint.h (enum bptype): Add new overlay event bp type.
12515 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12516
12517 * breakpoint.c (create_internal_breakpoint): New function.
12518 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12519 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12520 (create_thread_event_breakpoint): Ditto.
12521 (create_solib_event_breakpoint): Ditto.
12522 (create_overlay_event_breakpoint): New function.
12523 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12524 (update_breakpoints_after_exec): Delete and re-initialize
12525 overlay event breakpoints after an exec. Add FIXME comment
12526 about longjmp breakpoint.
12527 (print_it_typical): Ignore overlay event breakpoints.
12528 (print_one_breakpoint): Ditto.
12529 (mention): Ditto.
12530 (bpstat_what): Do not stop for overlay event breakpoints.
12531 (delete_breakpoint): Don't delete overlay event breakpoints.
12532 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12533 (breakpoint_re_set): Re-create overlay event breakpoint.
12534
12535 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12536 (overlay_manual_command): Disable overlay breakpoints.
12537 (overlay_off_command): Disable overlay breakpoints.
12538
12539 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12540
12541 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12542 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12543 to here from config/tm-arm.h.
12544 (coff_sym_is_thumb): Make static.
12545 (arm_elf_make_msymbol_special): New function.
12546 (arm_coff_make_msymbol_special): New function.
12547 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12548 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12549 (coff_sym_is_thumb): Delete declaration.
12550 (arm_elf_make_msymbol_special): Declare.
12551 (arm_coff_make_msymbol_special): Declare.
12552 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12553 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12554
12555 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12556
12557 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12558
12559 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12560
12561 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12562 * gdbarch.c gdbarch.h: Regenerate.
12563 * arch-utils.c (default_print_float_info): New function.
12564 * arch-utils.h (default_print_float_info): Prototype it.
12565 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12566 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12567 (PRINT_FLOAT_INFO): Document it.
12568
12569 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12570 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12571 (PRINT_FLOAT_INFO): Define.
12572
12573 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12574
12575 * win32-nat.c (_initialize_check_for_gdb_ini):
12576 Add typecast to sprintf argument to suppress a warning.
12577
12578 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12579
12580 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12581 to allow easier handling of pass state.
12582 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12583 that gives exception name and address.
12584 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12585 and set last_sig value to ourstatus->value.sig. Some missing
12586 exceptions added.
12587 (child_continue): Correctly report continue_status.
12588 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12589 TARGET_SIGNAL_0 (new default value).
12590 (child_resume): consider sig argument passed to decide if
12591 the exception should be passed to debuggee or not.
12592
12593 2002-02-05 Michael Snyder <msnyder@redhat.com>
12594
12595 * regcache.c (fetch_register): Call target_fetch_register
12596 only if we don't call FETCH_PSEUDO_REGISTER.
12597 (store_register): Call target_store_register only if we
12598 don't call STORE_PSEUDO_REGISTER.
12599
12600 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12601
12602 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12603 ELF_MAKE_MSYMBOL_SPECIAL.
12604 * gdbarch.c, gdbarch.h: Regenerate.
12605 * arch-utils.c (default_make_msymbol_special): New function.
12606 * arch-utils.h (default_make_msymbol_special): Export.
12607 * elfread.c (elf_symtab_read): Compile use of
12608 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12609 multiarched.
12610 * coffread.c (coff_symtab_read): Ditto, for
12611 COFF_MAKE_MSYMBOL_SPECIAL.
12612
12613 2002-02-05 Jim Blandy <jimb@redhat.com>
12614
12615 * solib-svr4.c (svr4_truncate_ptr): New function.
12616 (svr4_relocate_section_addresses): Do the address arithmetic with
12617 the appropriate truncation for target addresses, even when
12618 CORE_ADDR is larger than a target address.
12619
12620 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12621
12622 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12623 to (int *).
12624
12625 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12626
12627 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12628 code.
12629
12630 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12631
12632 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12633
12634 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12635
12636 * gdbserver/linux-low.c: Remove unused include files.
12637
12638 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12639
12640 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12641 (read_inferior_memory): Use it.
12642 (write_inferior_memory): Likewise.
12643
12644 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12645
12646 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12647 grubbing through sys_errlist.
12648
12649 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12650
12651 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12652
12653 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12654 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12655
12656 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12657
12658 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12659 (do_sfunc, set_cmd_sfunc): New functions.
12660
12661 * command.h (struct cmd_list_element): Add field func.
12662 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12663 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12664 * cli/cli-decode.h: Ditto.
12665
12666 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12667 (help_all, help_cmd_list): Ditto.
12668 (find_cmd, complete_on_cmdlist): Ditto.
12669 * top.c (execute_command): Ditto.
12670
12671 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12672 function.sfunc.
12673
12674 * infcmd.c (notice_args_read): Fix function signature.
12675
12676 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12677 * cli/cli-decode.c (add_set_cmd): Ditto.
12678 * utils.c (initialize_utils): Ditto.
12679 * maint.c (_initialize_maint_cmds): Ditto.
12680 * infrun.c (_initialize_infrun): Ditto.
12681 * demangle.c (_initialize_demangler): Ditto.
12682 * remote.c (add_packet_config_cmd): Ditto.
12683 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12684 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12685 * proc-api.c (_initialize_proc_api): Ditto.
12686 * kod.c (_initialize_kod): Ditto.
12687 * valprint.c (_initialize_valprint): Ditto.
12688 * top.c (init_main): Ditto.
12689 * infcmd.c (_initialize_infcmd): Ditto.
12690 * corefile.c (_initialize_core): Ditto.
12691 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12692 * arch-utils.c (initialize_current_architecture): Ditto.
12693 (_initialize_gdbarch_utils): Ditto.
12694 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12695
12696 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12697 * wince.c (_initialize_inftarg): Ditto.
12698 * symfile.c (_initialize_symfile): Ditto.
12699 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12700 * language.c (_initialize_language): Ditto.
12701 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12702
12703 2002-02-04 Michael Snyder <msnyder@redhat.com>
12704
12705 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12706
12707 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12708
12709 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12710 Add rules for building the register data files.
12711
12712 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12713
12714 * regformats/regdat.sh: Add braces to the definition of
12715 expedite_regs_${arch}.
12716
12717 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12718
12719 * regformats/regdef.h (struct reg): Add comment describing the
12720 requirements for offset and size fields.
12721
12722 2002-02-04 Andreas Schwab <schwab@suse.de>
12723
12724 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12725 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12726
12727 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12728
12729 * gdbarch.sh (copyright): Update years in generated header.
12730 (SMASH_TEXT_ADDRESS): Add rule.
12731 * gdbarch.h, gdbarch.c: Re-generate.
12732 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12733 * dbxread.c: Likewise.
12734 * dwarfread.c: Likewise.
12735 * elfread.c: Likewise.
12736 * somread.c: Likewise.
12737
12738 * arm-tdep.c (arm_smash_text_address): New function.
12739 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12740
12741 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12742
12743 Add support for hardware watchpoints on win32 native.
12744 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12745 CONTEXT_DEBUG_REGISTERS.
12746 (dr variable): New variable. Static array containing a local copy
12747 of debug registers.
12748 (debug_registers_changed): New variable. Reflects when debug registers
12749 are changed and need to be written to inferior.
12750 (debug_registers_used): New variable. Reflects when any debug register
12751 was set, used when new threads are created.
12752 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12753 i386-nat code.
12754 (thread_rec): Set dr array if id is the thread of current_event .
12755 (child_continue, child_resume): Change the debug registers for all
12756 threads if debug_registers_changed.
12757 (child_add_thread): Change the debug registers if debug_registers_used.
12758 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12759 Link nm.h to new nm-cygwin.h file.
12760 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12761 of hardware registers.
12762
12763 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12764
12765 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12766 Restore behavour broken by 2002-01-20 Andrew Cagney
12767 <ac131313@redhat.com> IEEE_FLOAT removal.
12768
12769 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12770
12771 * c-valprint.c (c_val_print): Pass a proper valaddr to
12772 cp_print_class_method.
12773 * valops.c (search_struct_method): If there is only one method
12774 and args is NULL, return that method.
12775
12776 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12777
12778 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12779 accessing tag_name directly.
12780
12781 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12782
12783 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12784 of accessing tag_name directly.
12785
12786 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12787
12788 PR gdb/280
12789 * gdbtypes.c (replace_type): New function.
12790 * gdbtypes.h (replace_type): Add prototype.
12791 * stabsread.c (read_type): Use replace_type.
12792
12793 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12794
12795 * Makefile.in (memattr.o): Add missing dependencies rule.
12796
12797 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12798
12799 * breakpoint.c (break_at_finish_command): Really export.
12800 (break_at_finish_at_depth_command): Ditto.
12801 (tbreak_at_finish_command): Ditto.
12802 * hppa-tdep.c: Include completer.h.
12803 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12804 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12805
12806 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12807
12808 * utils.c (do_write): New function.
12809 (error_stream): Rewrite combining the code from error_begin and
12810 verror.
12811 (verror): Rewrite using error_stream.
12812 (error_begin): Delete function.
12813
12814 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12815
12816 * utils.c (error_begin): Make static.
12817 * defs.h (error_begin): Delete declaration.
12818
12819 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12820 (decode_line_1): Use cplusplus_error instead of error_begin,
12821 cplusplus_hint and return_to_top_level.
12822 * coffread.c (coff_symfile_read): Use error instead of error_begin
12823 and return_to_top_level.
12824 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12825
12826 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12827
12828 * language.h (type_error, range_error): Make string parameter
12829 constant.
12830 * language.c (warning_pre_print): Delete extern declaration.
12831 * dwarfread.c (warning_pre_print): Ditto.
12832 * language.c (type_error, range_error): Rewrite to use verror and
12833 vwarning instead of warning_begin.
12834
12835 2002-02-01 Michael Snyder <msnyder@redhat.com>
12836
12837 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12838 (set_ignore_count): Move misplaced comment back where it belongs.
12839
12840 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12841
12842 * command.h (NO_FUNCTION): Delete macro.
12843 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12844 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12845 * tracepoint.c (_initialize_tracepoint): Ditto.
12846 * cli/cli-decode.c (add_set_cmd): Ditto.
12847 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12848
12849 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12850
12851 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12852 Update ``this'' pointer when calling virtual functions.
12853
12854 2002-02-01 Michael Snyder <msnyder@redhat.com>
12855
12856 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12857 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12858
12859 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12860
12861 * regformats/reg-arm.dat: New file.
12862 * regformats/reg-i386.dat: New file.
12863 * regformats/reg-ia64.dat: New file.
12864 * regformats/reg-m68k.dat: New file.
12865 * regformats/reg-mips.dat: New file.
12866 * regformats/reg-ppc.dat: New file.
12867 * regformats/reg-sh.dat: New file.
12868 * regformats/regdef.h: New file.
12869 * regformats/regdat.sh: New file.
12870
12871 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12872
12873 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12874 (arm_frame_args_address, arm_frame_locals_address): New functions.
12875 (arm_frame_num_args): New function.
12876 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12877 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12878 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12879
12880 2002-01-31 Michael Snyder <msnyder@redhat.com>
12881
12882 * breakpoint.c (break_at_finish_command): Export.
12883 (break_at_finish_at_depth_command): Export.
12884 (tbreak_at_finish_command): Export.
12885 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12886 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12887 "txbreak" commands, which are HPPA specific.
12888
12889 * printcmd.c (disassemble_command): Remove an ancient
12890 artifact of an old merge.
12891
12892 * symfile.h (enum overlay_debugging_state):
12893 Define enum constant values for overlay mode.
12894 * symfile.c (overlay_debugging): Use enums instead of literals.
12895 (overlay_is_mapped, overlay_auto_command,
12896 overlay_manual_command): Ditto.
12897
12898 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12899 breakpoint_here_p, breakpoint_inserted_here_p,
12900 breakpoint_thread_match, bpstat_stop_status,
12901 describe_other_breakpoints, check_duplicates, clear_command):
12902 Coding standard fixes.
12903
12904 * target.c (target_xfer_memory): Add spaces, coding standard.
12905 (do_xfer_memory): Add missing line to trust-readonly
12906 code: check bfd SEC_READONLY flag for section.
12907
12908 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12909
12910 * PROBLEMS: Fix typo, 5.1->5.1.1.
12911
12912 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12913
12914 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12915 data symbols, since we search based on textlow and texthigh.
12916 (find_pc_sect_symtab): Likewise.
12917
12918 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12919
12920 * defs.h (vwarning): Declare.
12921 * utils.c (vwarning): New function.
12922 (warning): Call vwarning.
12923 (warning_begin): Delete function.
12924
12925 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12926 the warning message.
12927 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12928 warning_begin.
12929
12930 2002-01-30 Michael Snyder <msnyder@redhat.com>
12931
12932 * NEWS: Mention "set trust-readonly-sections" command.
12933 Mention generate-core-file command.
12934
12935 2002-01-15 Michael Snyder <msnyder@redhat.com>
12936
12937 * target.c: New command, "set trust-readonly-sections on".
12938 (do_xfer_memory): Honor the suggestion to trust readonly sections
12939 by reading them from the object file instead of from the target.
12940 (initialize_targets): Register command "set trust-readonly-sections".
12941
12942 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12943
12944 * parse.c (target_map_name_to_register): Simplify, search regs and
12945 pseudo-regs using a single loop.
12946
12947 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12948
12949 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12950
12951 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12952
12953 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12954 * config/i386/i386v42mp.mh: Add i387-nat.o .
12955 * i386v4-nat.c: Include i387-nat.h.
12956 (supply_fpregset): Use i387_supply_fsave.
12957 (fill_fpregset): Use i387_fill_fsave.
12958
12959 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12960
12961 * arm-tdep.c (arm_call_dummy_words): Define.
12962 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12963 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12964 (CALL_DUMMY_WORDS): Define.
12965 (arm_call_dummy_words): Declare.
12966 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12967 (arm_linux_call_dummy_words): Declare.
12968
12969 2002-01-30 Andreas Schwab <schwab@suse.de>
12970
12971 * m68klinux-nat.c: Fix last change to use regcache_collect
12972 instead of referencing registers[] directly.
12973
12974 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12975
12976 * parse.c (target_map_name_to_register): Delete code wrapped in
12977 #ifdef REGISTER_NAME_ALIAS_HOOK.
12978
12979 2002-01-28 Michael Snyder <msnyder@redhat.com>
12980
12981 * regcache.c (legacy_read_register_gen): Need to be able to
12982 read pseudo-register as well as real register.
12983 (legacy_write_register_gen): Ditto.
12984
12985 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12986
12987 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12988 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12989 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12990 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12991 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12992 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12993 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12994 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12995 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12996 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12997 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12998 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12999 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13000 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13001 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13002 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13003 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13004 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13005 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13006 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13007
13008 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13009
13010 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13011 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13012 (initialize_current_architecture): Update target_byte_order using
13013 information from BFD.
13014 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13015 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13016
13017 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13018
13019 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13020 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13021
13022 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13023 #ifdef INVALID_FLOAT.
13024 * infcmd.c (do_registers_info): Ditto.
13025 * values.c (unpack_double): Ditto. Add comment.
13026
13027 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13028 already commented out.
13029
13030 2002-01-26 Andreas Schwab <schwab@suse.de>
13031
13032 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13033 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13034 registers and add support for PTRACE_GETREGS.
13035
13036 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13037
13038 GDB 5.1.1 released from 5.1 branch.
13039 * NEWS: Add 5.1.1 news.
13040 * README: Sync with 5.1 branch.
13041
13042 2002-01-23 Fred Fish <fnf@redhat.com>
13043
13044 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13045 stabstring on initial malloc. Reallocing will copy it for us,
13046 if necessary.
13047
13048 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13049
13050 * Makefile.in (hpread_h): Delete.
13051 (HFILES_NO_SRCDIR): Remove hpread.h.
13052 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13053 (hpread.o): Update dependencies.
13054 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13055
13056 * hp-psymtab-read.c: Remove file.
13057 * hp-symtab-read.c: Remove file.
13058 * hpread.h: Remove file.
13059
13060 * hpread.c: Merge all contents of hp-psymtab-read.c,
13061 hp-symtab-read.c and hpread.h into this file, as it was prior to
13062 January 1999.
13063
13064 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13065 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13066 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13067 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13068
13069 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13070
13071 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13072 fill_gregset): Call gdbarch_tdep() just once, assign result to
13073 variable and use that, instead of calling the function several
13074 times.
13075
13076 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13077
13078 * configure.host: Accept sparcv9 as alias for sparc64.
13079 * configure.tgt: Likewise.
13080
13081 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13082
13083 * solib-aix5.c (build_so_list_from_mapfile)
13084 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13085 arguments is not reversed.
13086 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13087 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13088
13089 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13090
13091 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13092 modified version of obsolete sh_fetch_pseudo_register.
13093 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13094 (sh4_register_read): New function.
13095 (sh_pseudo_register_write): New function. Renamed and modified
13096 version of obsolete sh_store_pseudo_register.
13097 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13098 (sh4_register_write): New function.
13099 (sh_gdbarch_init): Remove setting of gdbarch function
13100 fetch_pseudo_register and store_pseudo_register. Remove setting of
13101 register_convert_to_raw, register_convert_to_virtual,
13102 register_convertible.
13103 (sh_sh4_register_convertible): Delete. No longer needed. All is
13104 taken care by architecture specific functions
13105 register_read/register_write.
13106 (sh_sh4_register_convert_to_virtual): Make static.
13107 (sh_sh4_register_convert_to_raw): Ditto.
13108
13109 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13110
13111 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13112 (floatformat_is_nan, floatformat_mantissa): Ditto.
13113
13114 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13115 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13116 builtin_type_ieee_double_little,
13117 builtin_type_ieee_double_littlebyte_bigword,
13118 builtin_type_m68881_ext, builtin_type_i960_ext,
13119 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13120 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13121 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13122 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13123
13124 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13125
13126 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13127 parameter. Set frameless flag if it exists and depended of
13128 whether the scanned function is frameless or not.
13129 (xstormy16_skip_prologue): If function is frameless, return
13130 result of xstormy16_scan_prologue().
13131 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13132 call.
13133
13134 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13135
13136 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13137 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13138 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13139 sh_sh4_register_byte, sh_sh4_register_raw_size,
13140 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13141 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13142 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13143 sh_store_pseudo_register, sh_do_pseudo_register): Call
13144 gdbarch_tdep() just once, assign result to variable and use that,
13145 instead of calling the function several times.
13146
13147 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13148
13149 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13150 macros instead of LAST_FPU_CTRL_REGNUM.
13151 (store_register): Likewise.
13152
13153 2002-01-21 Jim Blandy <jimb@redhat.com>
13154
13155 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13156 is up-to-date before running the program, not just when a program
13157 exits.
13158
13159 2002-01-21 Fred Fish <fnf@redhat.com>
13160
13161 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13162 when we have found all instructions we are looking for.
13163
13164 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13165
13166 * arm-tdep.c (arm_register_name): New function.
13167 (arm_registers_names): Make static.
13168 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13169 (arm_register_name): Declare.
13170 (REGISTER_NAME): Use it.
13171
13172 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13173 Kevin Buettner <kevinb@redhat.com>
13174
13175 Convert arm targets to new FRAME interface.
13176 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13177 (arm_frame_find_save_regs): Delete.
13178 (arm_frame_init_saved_regs): New.
13179 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13180 Allocate extra_info as required. Convert all uses of fsr.regs
13181 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13182 to use extra_info.
13183 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13184 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13185 (check_prologue_cache, save_prologue_cache): Likewise.
13186 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13187 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13188 (FRAME_FIND_SAVED_REGS): Delete.
13189 (arm_frame_find_saved_regs): Delete prototype.
13190 (arm_frame_init_saved_regs): New prototype.
13191 (FRAME_INIT_SAVED_REGS): Define.
13192
13193 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13194
13195 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13196
13197 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13198
13199 From Jeff Law <law@redhat.com>:
13200 * infttrace.c: Include <sys/pstat.h>.
13201 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13202 exec file if the ttrace equivalent fails.
13203
13204 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13205
13206 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13207 (closeLogFile): Ditto.
13208
13209 2002-01-20 Michael Chastain <mec@shout.net>
13210
13211 * top.c (print_gdb_version): Bump copyright year to 2002.
13212
13213 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13214
13215 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13216 Zannoni and Eli Zaretskii.
13217
13218 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13219
13220 * buildsym.c: Update copyright years.
13221 * c-typeprint.c: Likewise.
13222 * dwarf2read.c: Likewise.
13223 * f-typeprint.c: Likewise.
13224 * gdbtypes.c: Likewise.
13225 * gdbtypes.h: Likewise.
13226 * hp-symtab-read.c: Likewise.
13227 * hpread.c: Likewise.
13228 * mdebugread.c: Likewise.
13229 * p-typeprint.c: Likewise.
13230
13231 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13232
13233 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13234 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13235 byte-order selectable.
13236 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13237 * arch-utils.c: Ditto.
13238 (set_endian): Ditto.
13239 (set_endian_from_file): Ditto.
13240 * gdbserver/low-sim.c (create_inferior): Ditto.
13241 * gdbarch.sh: Ditto.
13242 * gdbarch.h: Re-generate.
13243 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13244 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13245 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13246 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13247 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13248 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13249 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13250 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13251 macro definition.
13252 * config/mips/tm-wince.h: Remove #undef of macro
13253 TARGET_BYTE_ORDER_SELECTABLE.
13254 * config/sh/tm-wince.h: Ditto.
13255
13256 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13257
13258 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13259 member function fields. Add accessor macro
13260 TYPE_FN_FIELD_ARTIFICIAL.
13261 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13262 * c-typeprint.c (c_type_print_base): Skip artificial member
13263 functions.
13264
13265 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13266
13267 * f-typeprint.c: Delete unused function f_type_print_args.
13268 * p-typeprint.c: Delete unused function pascal_type_print_args.
13269
13270 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13271
13272 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13273 comment. Add ``artificial'' to ``union field_location''.
13274
13275 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13276
13277 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13278 * mdebugread.c (parse_symbol): Likewise.
13279 * stabsread.c (define_symbol): Likewise.
13280 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13281 initializing TYPE_FIELD_BITPOS to n (obsolete).
13282 (hpread_doc_function_type): Likewise.
13283 * hpread.c (hpread_function_type): Likewise.
13284
13285 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13286
13287 * configure.in (host_makefile_frag): Only require a host makefile
13288 fragment when a native build.
13289 * configure: Re-generate.
13290
13291 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13292
13293 * doublest.h (floatformat_from_type): Declare.
13294 * doublest.c (floatformat_from_type): New function.
13295 (convert_typed_floating): Use.
13296
13297 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13298 call to function floatformat_from_type.
13299
13300 * gdbarch.sh (IEEE_FLOAT): Delete.
13301 * gdbarch.h, gdbarch.c: Re-generate.
13302 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13303 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13304 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13305 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13306 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13307 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13308 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13309 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13310 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13311 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13312 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13313 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13314
13315 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13316 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13317 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13318 * sh-tdep.c (sh_gdbarch_init): Ditto.
13319 * mips-tdep.c (mips_gdbarch_init): Ditto.
13320 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13321 * cris-tdep.c (cris_gdbarch_init): Ditto.
13322
13323 2002-01-20 Jiri Smid <smid@suse.cz>
13324
13325 * configure.host, configure.tgt: Support x86-64.
13326 * NEWS: Note new target x86-64.
13327
13328 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13329 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13330 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13331 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13332 x86-64-linux-nat.o): Fix dependencies.
13333
13334 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13335
13336 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13337 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13338 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13339 * config/sparc/xm-sun4os4.h: Delete file.
13340 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13341
13342 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13343
13344 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13345 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13346 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13347 * config/i386/i386lynx.mh (XM_FILE): Delete.
13348 * config/rs6000/xm-rs6000ly.h: Delete file.
13349 * config/sparc/xm-sparclynx.h: Delete file.
13350 * config/m68k/xm-m68klynx.h: Delete file.
13351 * config/i386/xm-i386lynx.h: Delete file.
13352 * config/xm-lynx.h: Delete file.
13353 * config/djgpp/fnchange.lst: Update.
13354
13355 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13356
13357 * alpha-tdep.c (alpha_register_byte): New function.
13358 (alpha_register_raw_size): Ditto.
13359 (alpha_register_virtual_size): Ditto.
13360 (alpha_skip_prologue_internal): Renamed from
13361 alpha_skip_prologue.
13362 (alpha_skip_prologue): New version that calls
13363 alpha_skip_prologue_internal.
13364 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13365 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13366 second argument from alpha_skip_prologue.
13367 (REGISTER_BYTE): Use alpha_register_byte.
13368 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13369 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13370 (FRAMELESS_FUNCTION_INVOCATION): Use
13371 generic_frameless_function_invocation_not.
13372 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13373 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13374
13375 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13376
13377 * config/mips/xm-news-mips.h: Delete file.
13378 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13379
13380 * config/m88k/xm-m88k.h: Delete file.
13381 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13382 * config/m88k/xm-delta88v4.h: Ditto.
13383 * config/m88k/xm-delta88.h: Ditto.
13384
13385 * config/alpha/xm-fbsd.h: Delete file.
13386 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13387
13388 * config/sparc/xm-sparc.h: Delete file.
13389 * Makefile.in (xm-sun4os4.h): Delete dependency.
13390 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13391 * config/sparc/xm-sun4os4.h: Ditto.
13392 * config/sparc/xm-linux.h: Ditto.
13393
13394 * config/i386/xm-windows.h: Delete file.
13395
13396 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13397
13398 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13399 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13400
13401 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13402
13403 * alpha-tdep.c (alpha_call_dummy_words): New.
13404 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13405 (CALL_DUMMY_P): Define.
13406 (CALL_DUMMY_WORDS): Define.
13407 (SIZEOF_CALL_DUMMY_WORDS): Define.
13408
13409 2002-01-19 Per Bothner <per@bothner.com>
13410
13411 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13412 isn't NULL, which can happen with some gcj-3.x-produced code.
13413
13414 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13415
13416 * alpha-tdep.c (alpha_register_virtual_type): New function.
13417 (alpha_init_frame_pc_first): Ditto.
13418 (alpha_fix_call_dummy): Ditto.
13419 (alpha_store_struct_return): Ditto.
13420 (alpha_extract_struct_value_address): Ditto.
13421 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13422 alpha_register_virtual_type.
13423 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13424 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13425 alpha_extract_struct_value_address.
13426 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13427 (INIT_FRAME_PC): Use init_frame_pc_noop.
13428 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13429
13430 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13431
13432 * i386gnu-nat.c: Include "i386-tdep.h".
13433 (fetch_fpregs): Simplify code dealing with uninitialized floating
13434 point states such that it doesn't require FP7_REGNUM.
13435
13436 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13437
13438 * alpha-tdep.c (frame_extra_info): New.
13439 (alpha_find_saved_regs): Make static. Use
13440 frame->extra_info.
13441 (alpha_frame_init_saved_regs): New function.
13442 (alpha_frame_saved_pc): Use frame->extra_info.
13443 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13444 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13445 (init_extra_frame_info): Rename to...
13446 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13447 (alpha_print_extra_frame_info): New function.
13448 (alpha_frame_locals_address): Ditto.
13449 (alpha_frame_args_address): Ditto.
13450 (alpha_pop_frame): Use frame->extra_info.
13451 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13452 alpha_frame_args_address.
13453 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13454 (alpha_find_saved_regs): Remove prototype.
13455 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13456 (EXTRA_FRAME_INFO): Remove.
13457 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13458 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13459
13460 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13461
13462 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13463 (alpha_cannot_fetch_register): Ditto.
13464 (alpha_cannot_store_register): Ditto.
13465 (alpha_register_convertible): Ditto.
13466 (alpha_use_struct_convention): Ditto.
13467 * config/alpha/tm-alpha.h: Update copyright years.
13468 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13469 (INNER_THAN): Use core_addr_lessthan.
13470 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13471 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13472 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13473 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13474 (FRAME_CHAIN): Remove unnecessary cast.
13475
13476 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13477
13478 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13479 obsolete.
13480
13481 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13482
13483 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13484 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13485 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13486 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13487 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13488 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13489 * x86-64-linux-nat.c: Ditto.
13490
13491 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13492
13493 * alpha-tdep.c (alpha_register_name): New function.
13494 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13495 (REGISTER_NAME): Define.
13496
13497 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13498
13499 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13500
13501 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13502
13503 * alpha-tdep.c: Update copyright years.
13504 (alpha_next_pc): New function.
13505 (alpha_software_single_step): Ditto.
13506 * config/alpha/tm-alpha.h: Add prototype for
13507 alpha_software_single_step.
13508
13509 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13510
13511 * alphabsd-nat.c: Update copyright years.
13512 (fill_gregset): Use regcache_collect.
13513 (fill_fpregset): Likewise.
13514 (fetch_inferior_registers): Only fetch integer registers
13515 if requested to do so.
13516 (store_inferior_registers): Only store integer registers
13517 if requested to do so.
13518
13519 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13520
13521 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13522 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13523 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13524 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13525 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13526 * config/arm/linux.mh (XDEPFILES): Delete.
13527 * config/arm/nbsd.mh (XDEPFILES): Delete.
13528 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13529 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13530 * config/i386/i386m3.mh (XDEPFILES): Delete.
13531 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13532 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13533 * config/i386/fbsd.mh (XDEPFILES): Delete.
13534 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13535 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13536 * config/i386/i386v4.mh (XDEPFILES): Delete.
13537 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13538 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13539 * config/i386/i386aix.mh (XDEPFILES): Delete.
13540 * config/i386/go32.mh (XDEPFILES): Delete.
13541 * config/i386/cygwin.mh (XDEPFILES): Delete.
13542 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13543 * config/i386/i386mach.mh (XDEPFILES): Delete.
13544 * config/i386/i386v32.mh (XDEPFILES): Delete.
13545 * config/i386/linux.mh (XDEPFILES): Delete.
13546 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13547 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13548 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13549 * config/i386/i386sco.mh (XDEPFILES): Delete.
13550 * config/i386/i386v.mh (XDEPFILES): Delete.
13551 * config/i386/nbsd.mh (XDEPFILES): Delete.
13552 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13553 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13554 * config/i386/symmetry.mh (XDEPFILES): Delete.
13555 * config/i386/obsd.mh (XDEPFILES): Delete.
13556 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13557 * config/ia64/linux.mh (XDEPFILES): Delete.
13558 * config/ia64/aix.mh (XDEPFILES): Delete.
13559 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13560 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13561 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13562 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13563 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13564 * config/m68k/linux.mh (XDEPFILES): Delete.
13565 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13566 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13567 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13568 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13569 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13570 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13571 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13572 * config/m88k/delta88.mh (XDEPFILES): Delete.
13573 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13574 * config/m88k/m88k.mh (XDEPFILES): Delete.
13575 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13576 * config/mips/linux.mh (XDEPFILES): Delete.
13577 * config/mips/irix6.mh (XDEPFILES): Delete.
13578 * config/mips/irix5.mh (XDEPFILES): Delete.
13579 * config/mips/irix4.mh (XDEPFILES): Delete.
13580 * config/mips/irix3.mh (XDEPFILES): Delete.
13581 * config/mips/decstation.mh (XDEPFILES): Delete.
13582 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13583 (NATDEPFILES): Move core-aout.o to here.
13584 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13585 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13586 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13587 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13588 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13589 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13590 * config/pa/hpux11.mh (XDEPFILES): Delete.
13591 * config/powerpc/aix.mh (XDEPFILES): Delete.
13592 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13593 * config/powerpc/linux.mh (XDEPFILES): Delete.
13594 * config/romp/rtbsd.mh: Rename XDEPFILES.
13595 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13596 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13597 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13598 * config/s390/s390.mh (XDEPFILES): Delete.
13599 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13600 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13601 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13602 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13603 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13604 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13605 * config/sparc/linux.mh (XDEPFILES): Delete.
13606 * config/vax/vaxult.mh (XDEPFILES): Delete.
13607 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13608 * Makefile.in (DEPFILES): Remove XDEPFILES.
13609
13610 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13611
13612 * utils.c (internal_verror): Fix comments, default is yes not no.
13613 Update queries to match. Default to quit and dump core.
13614
13615 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13616
13617 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13618 copyright.
13619 * defs.h, event-top.c, gdbcmd.h: Ditto.
13620 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13621 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13622 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13623 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13624 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13625 * mi/mi-main.c:Ditto.
13626
13627 * stack.c, symfile.c: Update copyright.
13628
13629 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13630
13631 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13632 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13633 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13634 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13635
13636 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13637
13638 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13639 * gdbserver/low-lynx.c (myattach): Likewise.
13640 * gdbserver/low-nbsd.c (myattach): Likewise.
13641 * gdbserver/low-sim.c (myattach): Likewise.
13642 * gdbserver/low-sparc.c (myattach): Likewise.
13643 * gdbserver/low-sun3.c (myattach): Likewise.
13644
13645 * gdbserver/low-linux.c (myattach): New function.
13646
13647 * gdbserver/server.c (attach_inferior): New function.
13648 (main): Handle "--attach".
13649
13650 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13651
13652 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13653 maintainer.
13654
13655 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13656
13657 * c-typeprint.c (is_type_conversion_operator): Add additional
13658 check for non-conversion operators.
13659
13660 2002-01-15 Michael Snyder <msnyder@redhat.com>
13661
13662 * linux-proc.c: Add "info proc" command, a la procfs.c.
13663 (read_mapping): New function, abstract and re-use code.
13664 (linux_find_memory_regions): Use new func read_mapping.
13665 (linux_info_proc_cmd): New function, implement "info proc".
13666 (_initialize_linux_proc): Add new command "info proc".
13667
13668 2002-01-15 Michael Snyder <msnyder@redhat.com>
13669
13670 * symfile.c (generic_load): Use bfd_map_over_sections method
13671 instead of manipulating bfd structure members directly.
13672 (add_section_size_callback): New function, bfd sections callback
13673 used by generic_load.
13674 (load_sections_callback): New function, bfd sections callback
13675 used by generic_load.
13676
13677 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13678
13679 [Based on work by Jim Blandy]
13680 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13681 (builtin_type_vec128): Export.
13682 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13683 types.
13684 (builtin_type_vec128): New builtin type for 128 bit vector
13685 registers.
13686 (build_gdbtypes): Initialize builtin_type_v16qi and
13687 builtin_type_v8hi. Create the vec128 register builtin type
13688 structure.
13689 (build_builtin_type_vec128): New function.
13690 (_initialize_gdbtypes): Register builtin_type_v16qi and
13691 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13692 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13693 AltiVec register to new builtin type.
13694
13695 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13696
13697 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13698 to make_cv_type.
13699
13700 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13701
13702 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13703 CLEAN_UP_REGISTER_VALUE.
13704 * regcache.c (supply_register): Update only call.
13705
13706 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13707
13708 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13709 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13710 a29k-*-vxworks* targets as obsolete.
13711
13712 2002-01-14 Michael Snyder <msnyder@redhat.com>
13713
13714 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13715 until we can resolve portability issues.
13716 * gregset.h: Remove references to fpxregs.
13717 * gcore.c (gcore_command): Initialize note_sec to NULL.
13718
13719 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13720
13721 * signals.c (target_signal_to_name): Rewrite. Only use
13722 signals[].name when in bounds and non-NULL.
13723
13724 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13725
13726 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13727 * signals.c (target_signal_to_name): Verify that SIG is within the
13728 bounds of the signals array.
13729
13730 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13731
13732 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13733
13734 2002-01-13 Keith Seitz <keiths@redhat.com>
13735
13736 * stack.c (print_frame_info_base): Print the frame's pc
13737 only if when print_frame_info_listing_hook is not defined.
13738
13739 2002-01-13 Keith Seitz <keiths@redhat.com>
13740
13741 * varobj.c (varobj_set_value): Make sure that there were no
13742 errors evaluating the object before attempting to set its
13743 value.
13744 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13745 so this offset adjustment is no longer necessary.
13746 (create_child): Don't set the error flag if the child is
13747 a CPLUS_FAKE_CHILD.
13748 (value_of_child): If value_fetch_lazy fails, return NULL
13749 so that callers will be notified that an error occurred.
13750 (c_value_of_variable): Delay check of variable's validity
13751 until later. We actually want all structs and unions to have
13752 the value "{...}".
13753 Do not return "???" for variables which could not be evaluated.
13754 This error condition must be returned to the caller so that it
13755 can get the error condition from gdb.
13756 (cplus_name_of_child): Adjust index for vptr before figuring
13757 out the name of the child.
13758 (cplus_value_of_child): If a child's (real) parent is not valid,
13759 don't even bother trying to give a value for it. Just return
13760 an error. Change all instances in this function.
13761 (cplus_type_of_child): If our parent is one of the "fake"
13762 parents, we need to get at the type of the real parent, and
13763 derive the child's true type using this information.
13764
13765 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13766
13767 From 2002-01-09 John Marshall <johnm@falch.net>:
13768 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13769 sources.redhat.com, and tweak some related URLs which had
13770 suffered from linkrot.
13771
13772 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13773
13774 From Jeff law:
13775 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13776 structures passed in registers.
13777
13778 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13779
13780 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13781 white space which prevented compilation. Reported by DSK
13782 <dsk@student.unsw.edu.au>.
13783
13784 2002-01-11 Michael Snyder <msnyder@redhat.com>
13785
13786 * symfile.c (build_section_addr_info_from_section_tab):
13787 Use bfd access method instead of manipulating bfd directly.
13788 (syms_from_objfile): Ditto.
13789 (simple_overlay_update_1): Ditto.
13790 (simple_overlay_update): Ditto.
13791 (generic_load): Ditto.
13792 (overlay_unmapped_address): FIXME comment, bfd access methods.
13793 (sections_overlap): FIXME comment, bfd access methods.
13794 (pc_in_mapped_range): FIXME comment, bfd access methods.
13795 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13796 (section_is_mapped): FIXME comment, bfd access methods.
13797 (section_is_overlay): FIXME comment, bfd access methods.
13798
13799 * symfile.c (generic_load): Whitespace and long line cleanups.
13800 Remove duplicate variable, change several local variables to
13801 more appropriate data types.
13802 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13803
13804 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13805
13806 From Peter Schauer:
13807 * language.c (longest_local_hex_string_custom): Use phex_nz to
13808 convert NUM to a hex string.
13809
13810 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13811
13812 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13813 the function.
13814 Update Copyright year.
13815
13816 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13817
13818 * language.c (longest_raw_hex_string): Delete unused function.
13819
13820 2002-01-11 Petr Sorfa <petrs@caldera.com>
13821
13822 * MAINTAINERS (write-after-approval): Add myself.
13823 * dwarf2read.c (read_tag_string_type): Handling of
13824 DW_AT_byte_size.
13825 (read_tag_string_type): FORTRAN fix to prevent propagation of
13826 first string size.
13827 (set_cu_language): Handling of DW_LANG_Fortran95
13828
13829 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13830
13831 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13832 GETPID(inferior_ptid).
13833 (store_inferior_registers): Likewise.
13834
13835 2002-01-10 Jason Merrill <jason@redhat.com>
13836
13837 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13838 Fix DW_OP_minus.
13839
13840 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13841
13842 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13843 and bfd/elf32-sh-nbsd.c.
13844
13845 2002-01-10 Michael Snyder <msnyder@redhat.com>
13846
13847 * NEWS: Mention --pid and corefile/proc-id behavior change.
13848
13849 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13850 * gcore.c: Include cli/cli-decode.h instead of command.h.
13851
13852 * main.c (captured_main): Add new command line option "--pid".
13853 If the second command line argument (following the symbol-file)
13854 begins with a digit, try to attach to it before trying to open
13855 it as a corefile.
13856 (print_gdb_help): Document the "--pid" argument.
13857
13858 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13859
13860 * completer.c (command_completer): New function.
13861
13862 * completer.h <command_completer>: Add prototype.
13863
13864 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13865 completer for the "help" command.
13866
13867 2002-01-09 Jason Merrill <jason@redhat.com>
13868
13869 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13870
13871 2002-01-09 Michael Snyder <msnyder@redhat.com>
13872
13873 * i386-linux-nat.c (fill_fpxregset): Make global.
13874 (store_fpxregset): Ditto.
13875
13876 * gregset.h (gdb_fpxregset_t): Define.
13877 (supply_fpxregset): Prototype.
13878 (fill_fpxregset): Prototype.
13879
13880 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13881
13882 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13883
13884 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13885 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13886 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13887
13888 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13889
13890 * MAINTAINERS: Update target maintainer rules so that any
13891 Maintainer can approve a tested patch for a maintenance-only
13892 target.
13893
13894 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13895
13896 * MAINTAINERS (write-after-approval): Add myself.
13897
13898 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13899 IN_SIGTRAMP.
13900
13901 2002-01-08 Michael Snyder <msnyder@redhat.com>
13902
13903 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13904 real name of the executable, rather than the /proc name.
13905
13906 2002-01-03 Michael Snyder <msnyder@redhat.com>
13907
13908 Implement a "generate-core-file" command in gdb, save target state.
13909 * gcore.c: New file. Implement new command 'generate-core-file'.
13910 Save a corefile image of the current state of the inferior.
13911 * linux-proc.c: Add linux-specific code for saving corefiles.
13912 * target.h (struct target_ops): Add new target vectors for saving
13913 corefiles; to_find_memory_regions and to_make_corefile_notes.
13914 (target_find_memory_regions): New macro.
13915 (target_make_corefile_notes): New macro.
13916 * target.c (update_current_target): Inherit new target methods.
13917 (dummy_find_memory_regions): New place-holder method.
13918 (dummy_make_corefile_notes): New place-holder method.
13919 (init_dummy_target): Initialize new dummy target vectors.
13920 * exec.c (exec_set_find_memory_regions): New function.
13921 Allow the exec_ops vector for memory regions to be taken over.
13922 (exec_make_note_section): New function, target vector method.
13923 * defs.h (exec_set_find_memory_regions): Export prototype.
13924 * procfs.c (proc_find_memory_regions): New function, corefile method.
13925 (procfs_make_note_section): New function, corefile method.
13926 (init_procfs_ops): Set new target vector pointers.
13927 (find_memory_regions_callback): New function.
13928 (procfs_do_thread_registers): New function.
13929 (procfs_corefile_thread_callback): New function.
13930 * sol-thread.c (sol_find_memory_regions): New function.
13931 (sol_make_note_section): New function.
13932 (init_sol_thread_ops): Initialize new target vectors.
13933 * inftarg.c (inftarg_set_find_memory_regions): New function.
13934 Allow to_find_memory_regions vector to be taken over.
13935 (inftarg_set_make_corefile_notes): New function.
13936 Allow to_make_corefile_notes vector to be taken over.
13937 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13938 interface layer if not target_has_execution (may be a corefile).
13939 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13940 * config/sparc/sun4sol2.mh: Ditto.
13941 * config/alpha/alpha-linux.mh: Ditto.
13942 * config/arm/linux.mh: Ditto.
13943 * config/i386/x86-64linux.mh: Ditto.
13944 * config/ia64/linux.mh: Ditto.
13945 * config/m68k/linux.mh: Ditto.
13946 * config/mips/linux.mh: Ditto.
13947 * config/powerpc/linux.mh: Ditto.
13948 * config/sparc/linux.mh: Ditto.
13949
13950 2002-01-07 Michael Snyder <msnyder@redhat.com>
13951
13952 * arm-linux-nat.c: Remove references to regcache.c internal data
13953 (registers[] and register_valid[]).
13954
13955 2002-01-07 Michael Snyder <msnyder@redhat.com>
13956
13957 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13958 so that attaching to a pid will automatically read the process's
13959 symbol file and shlibs.
13960 * Makefile.in: Add rule for linux-proc.o.
13961 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13962 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13963 * config/arm/linux.mh: Ditto.
13964 * config/i386/linux.mh: Ditto.
13965 * config/i386/x86-64linux.mh: Ditto.
13966 * config/ia64/linux.mh: Ditto.
13967 * config/m68k/linux.mh: Ditto.
13968 * config/mips/linux.mh: Ditto.
13969 * config/powerpc/linux.mh: Ditto.
13970 * config/sparc/linux.mh: Ditto.
13971
13972 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13973
13974 * win32-nat.c: Add i386-tdep.h dependency.
13975
13976 2002-01-07 Michael Snyder <msnyder@redhat.com>
13977
13978 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13979 instead of bfd_get_arch_size. Don't bail out just because
13980 there's no exec_bfd.
13981
13982 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13983 * p-valprint.c (pascal_object_print_value): Ditto.
13984 * somread.c (som_symtab_read): Ditto.
13985 * symfile.c (simple_free_overlay_region_table): Ditto.
13986 * valops.c (value_assign): Ditto.
13987
13988 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13989 use tilde_expand and strerror for opening save-tracepoints file.
13990
13991 * thread-db.c (thread_db_new_objfile): Indendation fix.
13992
13993 * infptrace.c (GDB_MAX_ALLOCA): New define.
13994 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13995 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13996 can be overridden with whatever value is appropriate to the host).
13997 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13998 alloca to allocate potentially large buffer.
13999 * rs6000-nat.c (child_xfer_memory): Ditto.
14000 * symm-nat.c (child_xfer_memory): Ditto.
14001 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14002
14003 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
14004
14005 From Nick Clifton <nickc@redhat.com>
14006 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14007
14008 2002-01-07 Michael Snyder <msnyder@redhat.com>
14009
14010 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14011 Don't use exec_bfd if it's NULL.
14012
14013 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14014
14015 * valops.c (value_arg_coerce): Fix formatting.
14016
14017 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14018
14019 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14020 * gnu-nat.c: Ditto.
14021
14022 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14023
14024 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14025 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14026 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14027 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14028 z8k-coff have not been multi-arched. Update z8k-coff build
14029 status.
14030
14031 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14032
14033 * MAINTAINERS: Mark a29k target as obsolete.
14034 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14035 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14036 comments.
14037 * NEWS: Note that a29k targets are obsolete.
14038 * a29k-tdep.c: Mark as obsolete.
14039 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14040 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14041 a29k-*-vxworks* targets as obsolete.
14042 * remote-adapt.c: Obsolete.
14043 * remote-eb.c: Obsolete.
14044 * remote-mm.c: Obsolete.
14045 * remote-udi.c: Obsolete.
14046 * config/a29k/a29k-udi.mt: Obsolete.
14047 * config/a29k/a29k.mt: Obsolete.
14048 * config/a29k/tm-a29k.h: Obsolete.
14049 * config/a29k/tm-vx29k.h: Obsolete.
14050 * config/a29k/vx29k.mt: Obsolete.
14051
14052 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14053
14054 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14055 with BFD_ENDIAN_BIG.
14056
14057 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14058
14059 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14060 * configure, config.in: Re-generate.
14061 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14062 * defs.h: Do not include <endian.h>.
14063
14064 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14065
14066 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14067 * config.in: Regenerate.
14068 * configure.in: Update copyright years.
14069 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14070 * configure: Regenerate.
14071 * i386bsd-nat.c: Update copyright years.
14072 (fill_gregset): Use regcache_collect.
14073 (fetch_inferior_registers): Only fetch integer registers
14074 if requested to do so. Add support for XMM registers
14075 using PT_GETXMMREGS.
14076 (store_inferior_registers): Only store integer registers
14077 if requested to do so. Add support for XMM registers
14078 using PT_SETXMMREGS.
14079 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14080 (store_inferior_registers): Remove.
14081 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14082 (fetch_elfcore_registers): New function.
14083 (i386nbsd_elfcore_fns): New.
14084 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14085 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14086 i386bsd-nat.o.
14087 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14088 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14089 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14090 * config/i386/tm-nbsd.h: Update copyright years.
14091 (HAVE_SSE_REGS): Define.
14092 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14093 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14094 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14095 (SIGCONTEXT_PC_OFFSET): Remove.
14096 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14097
14098 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14099
14100 * configure.tgt: Remove powerpc-*-macos* target.
14101 * config/m68k/xm-mpw.h: Delete file.
14102 * config/xm-mpw.h: Delete file.
14103 * ser-mac.c: Delete file.
14104 * mpw-make.sed: Delete file.
14105 * mpw-config.in: Delete file.
14106 * mac-xdep.c: Delete file.
14107 * mac-gdb.r: Delete file.
14108 * mac-defs.h: Delete file.
14109 * mac-nat.c: Delete file.
14110 * config/powerpc/macos.mh: Delete file.
14111 * config/powerpc/macos.mt: Delete file.
14112 * config/powerpc/nm-macos.h: Delete file.
14113 * config/powerpc/tm-macos.h: Delete file.
14114 * source.c (openp, open_source_file): Remove obsolete code.
14115 * top.c (gdb_readline): Ditto.
14116 * utils.c (query): Ditto.
14117 * event-top.c (display_gdb_prompt): Ditto.
14118 * Makefile.in (ser-mac.o): Delete obsolete target.
14119 * NEWS: Update.
14120
14121 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14122
14123 * defs.h (BIG_ENDIAN): Delete macro definition.
14124 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14125 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14126 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14127 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14128 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14129 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14130 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14131 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14132 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14133 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14134 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14135 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14136 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14137 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14138 * gdbarch.c: Re-generate.
14139
14140 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14141
14142 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14143 for core files.
14144
14145 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14146
14147 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14148
14149 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14150
14151 * value.h (value_ptr): Delete typedef.
14152
14153 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14154
14155 * i386nbsd-nat.c: Update copyright years.
14156 Include i386-tdep.h.
14157
14158 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14159
14160 * stabsread.c: Update copyright years.
14161
14162 From Debashis Mahata <debashis.mahata@wipro.com>:
14163 (read_struct_fields): Deal with Sun C compiler erroneous stab
14164 output for structs and unions.
14165 Fix PR gdb/269.
14166
14167 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14168
14169 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14170 prototype.
14171
14172 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14173
14174 * cp-abi.c: Fix whitespace.
14175 (baseclass_offset): New wrapper function.
14176 * cp-abi.h (baseclass_offset): Add prototype.
14177 (struct cp_abi_ops): Add baseclass_offset pointer.
14178
14179 * valops.c (vb_match): Move to...
14180 * gnu-v2-abi.c (vb_match): here.
14181 * valops.c (baseclass_offset): Move to...
14182 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14183
14184 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14185
14186 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14187 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14188 * hpacc-abi.c (init_hpacc_ops): Likewise.
14189
14190 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14191
14192 * valops.c (find_overload_match): Accept obj as a
14193 reference parameter. Update it before returning.
14194 * value.h (find_overload_match): Update prototype.
14195 * eval.c (evaluate_subexp_standard): Pass object to
14196 find_overload_match by reference.
14197
14198 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14199
14200 * valarith.c: Replace value_ptr with struct value pointer. Remove
14201 register attribute from value declarations.
14202 * valops.c: Ditto.
14203 * value.h: Ditto.
14204 * scm-lang.c (scm_lookup_name): Ditto.
14205
14206 2002-01-03 Michael Snyder <msnyder@redhat.com>
14207
14208 Abstract the functionality of iterating over mapped memory
14209 regions into a general purpose iterator function.
14210 * procfs.c (iterate_over_mappings): New function, general purpose
14211 iterator for memory sections.
14212 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14213 (solib_mappings_callback): New function, callback for above.
14214 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14215 (info_mappings_callback): New function, callback for above.
14216
14217 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14218
14219 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14220
14221 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14222 * i386-tdep.c: Include "elf-bfd.h".
14223 (process_note_abi_tag_sections): New function.
14224 (i386_gdbarch_init): Add code to recognize various OS/ABI
14225 combinations.
14226
14227 * maint.c (_initialize_maint_cmds): Add missing \ in
14228 string-literal.
14229
14230 For older changes see ChangeLog-2001
14231 \f
14232 Local Variables:
14233 mode: change-log
14234 left-margin: 8
14235 fill-column: 74
14236 version-control: never
14237 End:
This page took 0.324557 seconds and 4 git commands to generate.