* gdbarch.sh (gdbarch_dump): Wrap function addresses in <>.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-09 Andrew Cagney <cagney@redhat.com>
2
3 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
4 function address in <>.
5 * gdbarch.c: Re-generate.
6
7 2002-12-09 David Carlton <carlton@math.stanford.edu>
8
9 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
10
11 2002-12-09 David Carlton <carlton@math.stanford.edu>
12
13 * linespec.c (symtab_from_filename): New function.
14 (decode_line_1): Move code into symtab_from_filename.
15
16 2002-12-09 Kevin Buettner <kevinb@redhat.com>
17
18 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
19
20 2002-12-07 Andrew Cagney <ac131313@redhat.com>
21
22 * f-valprint.c (info_common_command): Use get_frame_pc.
23 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
24 * ax-gdb.c (agent_command): Ditto.
25 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
26 (rs6000_pop_frame): Ditto.
27 (rs6000_frameless_function_invocation): Ditto.
28 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
29 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
30 * macroscope.c (default_macro_scope): Ditto.
31 * stack.c (print_frame_info_base): Ditto.
32 (print_frame, frame_info, print_frame_label_vars): Ditto.
33 (return_command, func_command, get_frame_language): Ditto.
34 * infcmd.c (finish_command): Ditto.
35 * dummy-frame.c (cached_find_dummy_frame): Ditto.
36 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
37 (break_at_finish_at_depth_command_1): Ditto.
38 (break_at_finish_command_1): Ditto.
39 (until_break_command, get_catch_sals): Ditto.
40 * blockframe.c (func_frame_chain_valid): Ditto.
41 (frameless_look_for_prologue): Ditto.
42 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
43
44 2002-12-08 Andrew Cagney <ac131313@redhat.com>
45
46 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
47 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
48
49 2002-12-08 Andrew Cagney <ac131313@redhat.com>
50
51 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
52 to pure functions.
53 * gdbarch.h, gdbarch.c: Re-generate.
54 * frame.c (get_prev_frame): Explictly assign prev's pc with value
55 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
56
57 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
58 declaration to a function returning a CORE_ADDR.
59 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
60 * arch-utils.c (init_frame_pc_noop): Return the PC value.
61 (init_frame_pc_default): Ditto.
62 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
63 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
64 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
65 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
66 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
67 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
68
69 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
70 to init_frame_pc_noop.
71 (i386_interix_init_frame_pc): Delete function.
72 * z8k-tdep.c (init_frame_pc): Delete function.
73 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
74 (INIT_FRAME_PC_FIRST): Ditto.
75 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
76 (INIT_FRAME_PC_FIRST): Ditto.
77 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
78 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
79 init_frame_pc_noop.
80 (INIT_FRAME_PC_FIRST): Convert to an expression.
81 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
82
83 2002-12-08 Andrew Cagney <ac131313@redhat.com>
84
85 * blockframe.c: Use get_frame_base instead of directly accessing
86 the `struct frame_info' member frame.
87 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
88 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
89
90 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
91
92 * Makefile.in (readline_h): Define.
93 (completer.o): Depend on readline_h.
94 (corelow.o): Ditto.
95 (event-top.o): Ditto.
96 (exec.o): Ditto.
97 (solib.o): Ditto.
98 (source.o): Ditto.
99 (symfile.o): Ditto.
100 (symmisc.o): Ditto.
101 (top.o): Ditto.
102 (tracepoint.o): Ditto.
103 (utils.o): Ditto.
104 (cli-dump.o): Ditto.
105 (tui-hooks.o): Ditto.
106 (tuiWin.o): Ditto.
107
108 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
109
110 More cleanup from import of readline 4.3.
111 * completer.h (complete_line, readline_line_completion_function):
112 Update prototypes.
113 (line_completion_function): Removed, not used outside of completer.c.
114 * completer.c (readline_line_completion_function,
115 complete_function, line_completion_function): Use const for first
116 parameter.
117 (line_completion_function): Make static.
118 (filename_completer): filename_completion_function is now called
119 rl_filename_completion_function
120 * corelow.c: Include <readline/readline.h>.
121 * exec.c: Ditto.
122 * solib.c: Ditto.
123 * source.c: Ditto.
124 * symfile.c: Ditto.
125 * symmisc.c: Ditto.
126 * top.c (init_main): No need to coerce
127 readline_line_completion_function anymore.
128 * cli/cli-dump.c: Include <readline/readline.h>.
129
130 2002-12-08 Andrew Cagney <ac131313@redhat.com>
131
132 * stack.c (frame_info): Use get_prev_frame.
133 * blockframe.c (frame_address_in_block): Ditto.
134 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
135 (rs6000_frameless_function_invocation): Ditto.
136 (rs6000_frame_saved_pc): Ditto.
137 (rs6000_frame_chain): Ditto.
138 * arch-utils.c (init_frame_pc_default): Ditto.
139
140 2002-12-08 Andrew Cagney <ac131313@redhat.com>
141
142 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
143 Delete redundant definition.
144
145 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
146
147 Import of readline 4.3:
148 * cli/cli-cmds.c: Include readline/tilde.h.
149 * cli/cli-setshow.c: Ditto.
150 * defs.h: Don't declare tilde_expand anymore, since readline
151 exports it.
152
153 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
154
155 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
156 -Werror on this file.
157
158 2002-12-07 Andrew Cagney <ac131313@redhat.com>
159
160 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
161 the format name.
162 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
163 * gdbarch.c: Regenerate.
164
165 2002-12-06 Andrew Cagney <ac131313@redhat.com>
166
167 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
168 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
169 provide a default value.
170 * gdbarch.h, gdbarch.c: Regenerate.
171 * frame.c (get_prev_frame): Update. Check
172 DEPRECATED_INIT_FRAME_PC_FIRST_P.
173 * s390-tdep.c (s390_gdbarch_init): Update.
174 * mips-tdep.c (mips_gdbarch_init): Update.
175 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
176 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
177 * alpha-tdep.c (alpha_gdbarch_init): Update.
178
179 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
180
181 * ia64-linux-nat.c: Include gdb_string.h.
182 * alpha-nat.c: Ditto.
183 * ppc-linux-nat.c: Ditto.
184 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
185 Update dependencies.
186
187 2002-12-05 Andrew Cagney <ac131313@redhat.com>
188
189 * gdbthread.h: Include "frame.h".
190 (struct thread_info): Replace step_frame_address with
191 step_frame_id.
192 * inferior.h: Include "frame.h".
193 (step_frame_id): Replace external variable step_frame_address.
194 * gdbthread.h (save_infrun_state): Replace step_frame_address
195 parameter with step_frame_id parameter.
196 (load_infrun_state): Ditto.
197 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
198 * infcmd.c (step_frame_id, step_1, step_once): Update.
199 * thread.c (load_infrun_state, save_infrun_state): Update.
200 * infrun.c (clear_proceed_status, save_inferior_status): Update.
201 (handle_inferior_event, step_over_function): Update.
202 (normal_stop, context_switch, restore_inferior_status): Update.
203 (struct inferior_status): Replace step_frame_address with
204 step_frame_id.
205
206 2002-12-05 David Carlton <carlton@math.stanford.edu>
207
208 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
209 DW_TAG_member as well as a declaration as being a C++ static data
210 member.
211 (read_structure_scope): Combine tests for DW_TAG_member and
212 DW_TAG_variable.
213
214 2002-12-05 David Carlton <carlton@math.stanford.edu>
215
216 * linespec.c (decode_compound): New function.
217 (decode_line_1): Move code into decode_compound.
218
219 2002-12-05 David Carlton <carlton@math.stanford.edu>
220
221 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
222 argument.
223 (lookup_symbol_aux): Do the 'field_of_this' check before checking
224 the static block. See PR gdb/804.
225
226 2002-12-05 David Carlton <carlton@math.stanford.edu>
227
228 * symtab.c (lookup_symbol_aux_block): New function.
229 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
230
231 2002-12-05 Andrew Cagney <ac131313@redhat.com>
232
233 * gdbarch.sh: Dump the predicate function and macro values.
234 (read): Print error on standard error.
235 * gdbarch.c: Regenerate.
236
237 2002-12-04 Kevin Buettner <kevinb@redhat.com>
238
239 * Makefile.in (mips_tdep_h): Define.
240 (mips-tdep.o): Add mips_tdep_h to dependency list.
241 * mips-tdep.h: New file.
242 * mips-tdep.c (mips-tdep.h): Include.
243 (enum mips_abi): Move to mips-tdep.h.
244 (mips_abi): New function.
245
246 2002-12-04 David Carlton <carlton@math.stanford.edu>
247
248 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
249
250 2002-12-04 David Carlton <carlton@math.stanford.edu>
251
252 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
253 function.
254 (lookup_symbol_aux_minsyms): New function.
255
256 2002-12-04 J. Brobecker <brobecker@gnat.com>
257
258 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
259
260 2002-12-04 J. Brobecker <brobecker@gnat.com>
261
262 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
263 which is an obsolete macro name.
264
265 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
266
267 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
268 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
269
270 2002-12-03 H.J. Lu (hjl@gnu.org)
271
272 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
273 (create_breakpoints): Make sure the addr_string field is not
274 NULL.
275
276 2002-12-03 Andrew Cagney <ac131313@redhat.com>
277
278 * sparc-nat.c (fetch_inferior_registers)
279 (store_inferior_registers): Add comment on problem of LWP vs
280 threads.
281
282 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
283 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
284 (lin_lwp_store_registers): Remove.
285 (init_lin_lwp_ops): Use fetch_inferior_registers
286 and store_inferior_registers directly.
287 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
288 (store_inferior_registers): Likewise.
289 Fix PR gdb/725.
290
291 2002-12-03 Andrew Cagney <ac131313@redhat.com>
292
293 * frame.h (get_frame_id): Convert to a function.
294 (null_frame_id, frame_id_p): Declare.
295 (frame_id_eq, frame_id_inner): Declare.
296 (frame_id_build): New function.
297 * frame.c (get_frame_id): Update. Use null_frame_id.
298 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
299 frame_id_inner.
300 (null_frame_id, frame_id_p): Define.
301 (frame_id_eq, frame_id_inner): Define.
302 (frame_id_build): New function.
303 * varobj.c (varobj_create): Update.
304 (varobj_update): Update.
305 * valops.c (value_assign): Update.
306 (new_root_variable): Update.
307 * infrun.c (save_inferior_status): Update.
308 * breakpoint.c (watch_command_1): Update.
309
310 2002-12-03 J. Brobecker <brobecker@gnat.com>
311
312 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
313 (SNAP2): Likewise.
314
315 2002-12-03 Andrew Cagney <cagney@redhat.com>
316
317 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
318 patch.
319
320 * PROBLEMS: Mention PR gdb/725.
321
322 2002-12-03 Andreas Schwab <schwab@suse.de>
323
324 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
325
326 2002-12-02 Adam Fedor <fedor@gnu.org>
327 Klee Dienes <kdienes@apple.com>
328
329 * objc-lang.c (objc_printstr): Add width arg to match
330 printstr prototype.
331 (compare_selectors): Add 'const' to arg types.
332 (compare_classes): Likewise.
333 (find_imps): Cast msym pointer to avoid compiler warning.
334 (print_object_command): Validate the address before
335 passing it to the print routine.
336 (find_objc_msgcall_submethod): Change function argument to
337 return an int.
338 * objc-lang.h: Add 'extern' to all function declarations.
339 (value_nsstring): Add declaration.
340
341 2002-12-02 J. Brobecker <brobecker@gnat.com>
342
343 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
344 Fixes a build failure on HP/UX.
345
346 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
347 failure on HP/UX.
348 (hpread_has_name): Advance declaration to avoid a compilation warning.
349 (pst_syms_count): Add missing variable type. By change, the compiler
350 was defaulting to int, which seems a good choice. Fixes a compilation
351 warning.
352 (pst_syms_size): Likewise.
353
354 2002-12-02 J. Brobecker <brobecker@gnat.com>
355
356 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
357 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
358 later to set the proper gdbarch methods depending on the osabi.
359 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
360
361 2002-12-02 J. Brobecker <brobecker@gnat.com>
362
363 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
364 * osabi.c (gdb_osabi_name): Add strings images for the two new
365 enum values.
366 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
367
368 2002-12-02 Andrew Cagney <ac131313@redhat.com>
369
370 * MAINTAINERS (Java): Global maintainers are responible for Java.
371 (Past Maintainers): Mention both Anthony Green and Per Bothner as
372 part Java maintainers.
373
374 2002-12-02 J. Brobecker <brobecker@gnat.com>
375
376 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
377 Fixes a compilation failure on AiX.
378
379 2002-12-02 J. Brobecker <brobecker@gnat.com>
380
381 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
382 why aix-thread.o is not listed.
383
384 2002-12-01 Andrew Cagney <ac131313@redhat.com>
385
386 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
387 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
388 * gdbarch.h, gdbarch.c: Re-generate.
389 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
390 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
391 * config/pa/tm-hppa.h, frame.h: Update.
392 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
393 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
394 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
395 * cris-tdep.c, alpha-tdep.c: Update.
396 * frame.c (set_unwind_by_pc, create_new_frame): Use either
397 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
398 (get_prev_frame): Ditto.
399
400 2002-11-30 Andrew Cagney <cagney@redhat.com>
401
402 * exec.c (xfer_memory): Replace boolean with int.
403 * p-exp.y: Use 0 instead of false.
404 * corelow.c (gdb_check_format): Change return type to int from
405 boolean.
406 * utils.c: Don't include <curses.h> or <term.h> first.
407
408 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
409
410 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
411 (m68hc11_register_byte): Remove.
412 (m68hc11_gdbarch_init): Don't set the above.
413
414 2002-11-29 Andrew Cagney <cagney@redhat.com>
415
416 * remote-mips.c (mips_initialize): Force a selected frame rebuild
417 by calling get_selected_frame.
418 * ocd.c (ocd_start_remote): Use get_selected frame instead of
419 set_current_frame, create_new_frame, select_frame and
420 get_current_frame.
421 * remote-e7000.c (e7000_start_remote): Ditto.
422 * remote-mips.c (common_open): Ditto
423 * remote-rdp.c (remote_rdp_open): Ditto.
424
425 2002-11-29 Andreas Schwab <schwab@suse.de>
426
427 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
428 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
429 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
430 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
431 read_memory_unsigned_integer instead of read_memory_integer when
432 dealing with addresses and instruction opcodes.
433 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
434 (m68k_linux_frame_saved_pc): Likewise.
435
436 2002-11-29 Andrew Cagney <ac131313@redhat.com>
437
438 * stack.c (selected_frame, select_frame): Move from here ...
439 * frame.c (selected_frame, select_frame): ... to here. Include
440 "language.h".
441 * Makefile.in (frame.o): Update dependencies.
442 * frame.c (get_selected_frame): New function.
443 * frame.h (get_selected_frame): Declare.
444 (deprecated_selected_frame): Rename selected_frame.
445 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
446 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
447 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
448 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
449 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
450 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
451 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
452 * z8k-tdep.c, cli/cli-cmds.c: Update.
453
454 2002-11-29 Andrew Cagney <ac131313@redhat.com>
455
456 * frame.h (get_selected_block): Add comments.
457
458 2002-11-28 Andrew Cagney <ac131313@redhat.com>
459
460 * frame.c (pc_notcurrent): New function.
461 (find_frame_sal): New function.
462 * frame.h (find_frame_sal): Declare.
463 (struct symtab_and_line): Add opaque declaration.
464 * stack.c (print_frame_info_base): Use find_frame_sal instead of
465 find_pc_line.
466 (frame_info): Ditto.
467 * ada-lang.c (find_printable_frame): Ditto.
468
469 2002-11-28 J. Brobecker <brobecker@gnat.com>
470
471 * configure.in: Check that the pthdebug library is recent enough
472 before enabling thread support on native AiX.
473 * configure: Regenerate.
474
475 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
476 from the list of object files as it is now appended by configure
477 if thread support is enabled.
478 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
479 if thread support is enabled.
480
481 2002-11-28 Andrew Cagney <cagney@redhat.com>
482
483 * stack.c (get_selected_block): In-line get_current_block.
484 * frame.h (get_current_block): Delete declaration.
485 * blockframe.c (get_current_block): Delete function.
486
487 2002-11-28 Andrew Cagney <ac131313@redhat.com>
488
489 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
490 USE_GENERIC_DUMMY_FRAMES.
491 * gdbarch.h, gdbarch.c: Regenerate.
492 * valops.c, frame.c: Update.
493 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
494 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
495 * config/pa/tm-hppa.h, blockframe.c: Update.
496 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
497 * m68k-tdep.c, alpha-tdep.c: Ditto.
498
499 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
500 * mips-tdep.c: Ditto.
501
502 2002-11-27 Andrew Cagney <ac131313@redhat.com>
503
504 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
505 (USE_GENERIC_DUMMY_FRAMES): Default to true.
506 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
507 * gdbarch.c, gdbarch.h: Re-generate.
508 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
509 (CALL_DUMMY_LOCATION): Delete macro definition.
510 (PC_IN_CALL_DUMMY): Delete macro definitions.
511
512 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
513 default is already generic_pc_in_call_dummy.
514 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
515 * v850-tdep.c (v850_gdbarch_init): Ditto.
516 * sh-tdep.c (sh_gdbarch_init): Ditto.
517 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
518 * mips-tdep.c (mips_gdbarch_init): Ditto.
519 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
520 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
521 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
522 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
523 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
524 * avr-tdep.c (avr_gdbarch_init): Ditto.
525
526 * arm-tdep.c (arm_gdbarch_init): Do not set
527 use_generic_dummy_frames, default is already 1.
528 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
529 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
530 * v850-tdep.c (v850_gdbarch_init): Ditto.
531 * sh-tdep.c (sh_gdbarch_init): Ditto.
532 * s390-tdep.c (s390_gdbarch_init): Ditto.
533 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
534 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
535 * mips-tdep.c (mips_gdbarch_init): Ditto.
536 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
538 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
539 * i386-tdep.c (i386_gdbarch_init): Ditto.
540 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
541 * frv-tdep.c (frv_gdbarch_init): Ditto.
542 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
543 * cris-tdep.c (cris_gdbarch_init): Ditto.
544 * avr-tdep.c (avr_gdbarch_init): Ditto.
545
546 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
547 call_dummy_location, default is already AT_ENTRY_POINT.
548 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
549 * v850-tdep.c (v850_gdbarch_init): Ditto.
550 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
551 * sh-tdep.c (sh_gdbarch_init): Ditto.
552 * s390-tdep.c (s390_gdbarch_init): Ditto.
553 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
554 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
555 * mips-tdep.c (mips_gdbarch_init): Ditto.
556 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
557 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
558 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
559 * i386-tdep.c (i386_gdbarch_init): Ditto.
560 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
561 * frv-tdep.c (frv_gdbarch_init): Ditto.
562 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
563 * cris-tdep.c (cris_gdbarch_init): Ditto.
564 * avr-tdep.c (avr_gdbarch_init): Ditto.
565 * arm-tdep.c (arm_gdbarch_init): Ditto.
566 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
567
568 2002-11-28 Andrew Cagney <cagney@redhat.com>
569
570 * frame.h: Update comments on set_current_frame, create_new_frame,
571 flush_cached_frames, reinit_frame_cache, select_frame and
572 selected_frame.
573
574 2002-11-27 Andrew Cagney <cagney@redhat.com>
575
576 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
577 deprecated pc_in_call_dummy function.
578 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
579 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
580 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
581 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
582 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
583
584 2002-11-26 Martin M. Hunt <hunt@redhat.com>
585
586 * Makefile.in: Remove Tix dependencies.
587 * acinclude.m4: Ditto.
588 * aclocal.m4: Ditto.
589 * configure.in: Ditto.
590 * configure: Regenerated.
591
592 2002-11-26 Andrew Cagney <ac131313@redhat.com>
593
594 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
595 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
596 * gdbarch.c: Re-generate.
597
598 2002-11-26 Andrew Cagney <ac131313@redhat.com>
599
600 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
601 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
602 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
603 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
604 pc_in_call_dummy_at_entry_point.
605 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
606 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
607 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
608 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
609 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
610 pc_in_call_dummy_on_stack.
611 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
612 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
613 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
614 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
615 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
616
617 2002-11-26 Andrew Cagney <ac131313@redhat.com>
618
619 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
620 pc_in_call_dummy_before_text_end
621 (deprecated_pc_in_call_dummy_after_text_end): Rename
622 pc_in_call_dummy_after_text_end.
623 (deprecated_pc_in_call_dummy_on_stack): Rename
624 pc_in_call_dummy_on_stack.
625 (deprecated_pc_in_call_dummy_at_entry_point): Rename
626 pc_in_call_dummy_at_entry_point.
627 * m68k-tdep.c (m68k_gdbarch_init): Update.
628 * s390-tdep.c (s390_gdbarch_init): Update.
629 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
630 * vax-tdep.c (vax_gdbarch_init): Update.
631 * sparc-tdep.c (sparc_gdbarch_init): Update.
632 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
633 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
634 * i386-tdep.c (i386_gdbarch_init): Update.
635 * frv-tdep.c (frv_gdbarch_init): Update.
636 * cris-tdep.c (cris_gdbarch_init): Update.
637 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
638 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
639 (deprecated_pc_in_call_dummy_after_text_end)
640 (deprecated_pc_in_call_dummy_on_stack)
641 (deprecated_pc_in_call_dummy_at_entry_point): Update.
642 * alpha-tdep.c (alpha_gdbarch_init): Update.
643
644 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
645
646 * acconfig.h (HAVE_PREAD64): Add.
647 * configure.in: Check for pread64.
648 * config.in: Regenerated.
649 * configure: Regenerated.
650 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
651 * linux-proc.c (linux_proc_xfer_memory): New function.
652 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
653
654 2002-11-25 David Carlton <carlton@math.stanford.edu>
655
656 * dwarf2read.c (scan_partial_symbols): Descend into namespace
657 pdi's with no name.
658
659 2002-11-25 Andrew Cagney <ac131313@redhat.com>
660
661 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
662 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
663
664 2002-11-25 Jim Blandy <jimb@redhat.com>
665
666 * symfile.c (init_objfile_sect_indices): New function.
667 (default_symfile_offsets): Move the section-index-initializing
668 stuff into init_objfile_sect_indices, and call that.
669
670 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
671 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
672
673 * symfile.c (syms_from_objfile): Adjust indentation.
674
675 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
676 || info_verbose isn't true.
677
678 2002-11-24 Andrew Cagney <ac131313@redhat.com>
679
680 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
681 default to get_frame_base.
682 * gdbarch.h, gdbarch.c: Regenerate.
683 * arch-utils.c (default_frame_address): Delete function.
684 * arch-utils.h (default_frame_address): Delete declaration
685
686 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
687
688 * varobj.c (find_frame_addr_in_frame_chain):
689 Use get_frame_base instead of FRAME_FP,
690 obvious fix.
691
692 2002-11-19 Andrew Cagney <ac131313@redhat.com>
693
694 * frame.h (FRAME_FP): Delete macro.
695 (get_frame_base): New function declaration.
696 * frame.c (get_frame_base): New function.
697 (get_frame_id): Use ->frame.
698 (frame_find_by_id): Rewrite to use get_frame_id.
699 * blockframe.c: Use get_frame_base instead of FRAME_FP.
700 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
701 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
702 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
703 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
704 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
705 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
706
707 2002-11-24 Andrew Cagney <ac131313@redhat.com>
708
709 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
710
711 2002-11-24 Andrew Cagney <ac131313@redhat.com>
712
713 * frame.c (set_unwind_by_pc): Revert change below, use
714 PC_IN_CALL_DUMMY.
715 (get_prev_frame): Ditto.
716
717 2002-11-24 Andrew Cagney <ac131313@redhat.com>
718
719 * dummy-frame.c (pc_in_dummy_frame): New function.
720 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
721 (find_dummy_frame): Update comment.
722 (generic_pop_current_frame): Use get_frame_type.
723 * dummy-frame.h (pc_in_dummy_frame): Declare.
724 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
725 (create_new_frame): Use pc_in_dummy_frame.
726 (get_prev_frame): Use pc_in_dummy_frame.
727 (frame_saved_regs_register_unwind): Use get_prev_frame.
728 (deprecated_generic_get_saved_register): Use get_prev_frame.
729
730 2002-11-23 Andrew Cagney <ac131313@redhat.com>
731
732 * blockframe.c (find_frame_addr_in_frame_chain): Move function
733 from here ...
734 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
735 (varobj_create): Note that frame ID should be used.
736 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
737
738 2002-11-23 Andrew Cagney <ac131313@redhat.com>
739
740 * breakpoint.c: Include "gdb_assert.h".
741 (deprecated_frame_in_dummy): Assert that generic dummy frames are
742 not being used.
743 * Makefile.in (breakpoint.o): Update dependencies.
744 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
745 deprecated_frame_in_dummy.
746 * stack.c (print_frame_info_base): Ditto.
747 (frame_info): Ditto.
748 (print_frame_info_base): Ditto. Delete dead code.
749
750 2002-11-23 Andreas Schwab <schwab@suse.de>
751
752 * Makefile.in (m68k_tdep_h): Define.
753 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
754 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
755 * m68k-tdep.c: Move register number enum ...
756 * m68k-tdep.h: ... to this new file and rename the constants from
757 E_* to M68K_*. All uses changed.
758 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
759 * abug-rom.c: Include "m68k-tdep.h". Use
760 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
761 * cpu32bug-rom.c: Likewise.
762 * dbug-rom.c: Likewise.
763 * m68k-tdep.c: Likewise.
764 * m68klinux-nat.c: Likewise.
765 * remote-est.c: Likewise.
766 * rom68k-rom.c: Likewise.
767 * config/m68k/tm-linux.h: Likewise.
768
769 2002-11-23 Andrew Cagney <ac131313@redhat.com>
770
771 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
772 dummy frame initialization code.
773 * mips-tdep.c (mips_gdbarch_init): Ditto.
774
775 2002-11-22 Christopher Faylor <cgf@redhat.com>
776
777 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
778 attach will hang.
779
780 2002-11-22 Andrew Cagney <ac131313@redhat.com>
781
782 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
783 to default_frame_address.
784 * gdbarch.h, gdbarch.c: Re-generate.
785
786 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
787 or frame_locals_address to default_frame_address.
788 * m68k-tdep.c (m68k_gdbarch_init): Update.
789 * i386-tdep.c (i386_gdbarch_init): Update.
790 * frv-tdep.c (frv_gdbarch_init): Update.
791 * sh-tdep.c (sh_gdbarch_init): Update.
792 * v850-tdep.c (v850_gdbarch_init): Update.
793 * sparc-tdep.c (sparc_gdbarch_init): Update.
794 * mips-tdep.c (mips_gdbarch_init): Update.
795 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
796 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
797 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
798
799 * cris-tdep.c (cris_frame_args_address): Delete function.
800 (cris_frame_locals_address): Delete function.
801 (cris_gdbarch_init): Do not set frame_args_address or
802 frame_locals_address.
803
804 2002-11-22 Michael Snyder <msnyder@redhat.com>
805
806 * thread-db.c (thread_db_load): Tell the user what's going on
807 if dlopen fails on libthread_db.
808
809 2002-11-23 Andreas Schwab <schwab@suse.de>
810
811 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
812 invariant return values.
813
814 2002-11-22 Andreas Schwab <schwab@suse.de>
815
816 * valops.c (value_slice): Move declaration of `offset' to avoid
817 warning.
818
819 2002-11-22 Christopher Faylor <cgf@redhat.com>
820
821 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
822 (struct so_stuff): Add end_addr field.
823 (register_loaded_dll): Calculate and store end address of loaded dll.
824 (solib_address): New function.
825 (child_solib_loaded_library_pathname): Pass carefully constructed
826 section info to safe_symbol_file_add rather than ignoring it.
827 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
828 DLL is loaded.
829 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
830 (child_create_inferior): Fix a compiler warning.
831 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
832 (solib_address): Declare new function.
833
834 2002-11-22 Andreas Schwab <schwab@suse.de>
835
836 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
837 and FPS registers.
838
839 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
840
841 * maint.c (_initialize_maint_cmds): Fix typo. From
842 Francesco Potorti` <pot@gnu.org>.
843
844 2002-11-21 Andrew Cagney <cagney@redhat.com>
845
846 * mips-tdep.c (mips_dump_tdep): Delete references to
847 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
848 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
849 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
850 * printcmd.c (build_address_symbolic): Delete calls to
851 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
852 (address_info): Ditto.
853 Fix PR gdb/773.
854
855 2002-11-19 Klee Dienes <kdienes@apple.com>
856 Adam Fedor <fedor@gnu.org>
857
858 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
859 the ability to explicitly specify the quote characters and word
860 break characters; if NULL is specified for either, use the old
861 behavior of using the characters used by the completer.
862 (skip_chars): New function. Convenience wrapper around
863 skip_quoted_chars to provide the original skip_chars behavior.
864 * completer.h (skip_quoted_chars): Add prototype.
865
866 2002-11-19 Andrew Cagney <ac131313@redhat.com>
867
868 Problems reported by Paul Eggert.
869 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
870
871 2002-11-19 Andreas Schwab <schwab@suse.de>
872
873 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
874 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
875 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
876 (m68k_linux_frame_saved_pc): Move to ...
877 * m68klinux-tdep.c: ... here. New file.
878 * Makefile.in (m68klinux-tdep.o): Add dependencies.
879 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
880
881 2002-11-19 Adam Fedor <fedor@gnu.org>
882
883 * objc-exp.y: Revert to old skip_quoted usage.
884
885 2002-11-19 Adam Fedor <fedor@gnu.org>
886
887 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
888 (objc_lang_h): Define.
889 (YYFILES): Add objc-exp.tab.c.
890 (local-maintainer-clean): Remove objc-exp.tab.c.
891 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
892
893 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
894
895 * p-exp.y (typecast rule): Add automatic dereference of
896 pascal classes if needed.
897 (THIS): Set current_type.
898 Automatically dereference pascal classes.
899 (typebase rule): Add ^typebase recognition.
900
901 2002-11-18 Adam Fedor <fedor@gnu.org>
902
903 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
904 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
905 (op_name): Handle OP_OBJC_SELF.
906 * Makefile.in (expprint.o): Add additional depends.
907
908 2002-11-18 Adam Fedor <fedor@gnu.org>
909
910 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
911 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
912 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
913 * objc-exp.y: Likewise.
914
915 2002-11-18 Adam Fedor <fedor@gnu.org>
916
917 * gdb/parser-defs.h: (struct objc_class_str): New structure
918 for parsing ObjC classes.
919
920 2002-11-18 Andrew Cagney <ac131313@redhat.com>
921
922 * stack.c (frame_relative_level): Copy function from here ...
923 * frame.c (frame_relative_level): ...to here.
924
925 2002-11-18 Andrew Cagney <ac131313@redhat.com>
926
927 * frame.h (enum frame_type): Define.
928 (get_frame_type): Declare.
929 (struct frame_info): Add field `type'. Delete field
930 signal_handler_caller.
931 (deprecated_set_frame_signal_handler_caller): Declare.
932 * frame.c (get_frame_type): New function.
933 (deprecated_set_frame_type): New function.
934 (create_new_frame): Set the frame's type.
935 (get_prev_frame): Similar.
936 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
937 * s390-tdep.c: Ditto.
938 * m68klinux-nat.c: Ditto.
939 * ns32k-tdep.c: Ditto.
940 * x86-64-linux-tdep.c: Ditto.
941 * vax-tdep.c: Ditto.
942 * rs6000-tdep.c: Ditto.
943 * ppc-linux-tdep.c: Ditto.
944 * i386-interix-tdep.c: Ditto.
945 * mips-tdep.c: Ditto.
946 * m68k-tdep.c: Ditto.
947 * hppa-tdep.c: Ditto.
948 * ia64-tdep.c: Ditto.
949 * cris-tdep.c: Ditto.
950 * arm-tdep.c: Ditto.
951 * alpha-tdep.c: Ditto.
952 * i386-tdep.c: Ditto.
953 * stack.c: Ditto.
954 * ada-lang.c: Ditto.
955 * blockframe.c: Update.
956 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
957 deprecated_set_frame_type instead of signal_handler_caller.
958 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
959 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
960 * breakpoint.h: Delete FIXME suggesting get_frame_type.
961
962 2002-11-18 Klee Dienes <kdienes@apple.com>
963
964 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
965
966 2002-11-18 Klee Dienes <kdienes@apple.com>
967
968 * buildsym.c (pop_context): Add comment.
969
970 2002-11-18 Klee Dienes <kdienes@apple.com>
971
972 * buildsym.h (pop_context): Convert to function, defined in
973 buildsym.c.
974 * buildsym.c: Include gdb_assert.h.
975 (pop_context): Implement as C function. Add check for stack
976 underflow.
977 * dbxread.c (process_one_symbol): Complain and stop processing
978 that symbol if we are already at the top of the context stack for
979 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
980 when processing N_RBRAC.
981
982 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
983
984 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
985 define.
986 (struct target_waitstatus): Add opaque definition.
987 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
988 * exec.c (init_exec_ops): Likewise.
989 * fork-child.c (clone_and_follow_inferior): Remove.
990 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
991 * inferior.h (clone_and_follow_inferior): Remove prototype.
992 * infrun.c (follow_fork_mode_both): Remove.
993 (follow_fork_mode_kind_names): Remove commented out "both".
994 (follow_inferior_fork): Remove follow_fork_mode_both support.
995 * inftarg.c (child_clone_and_follow_inferior): Remove.
996 (child_post_follow_inferior_by_clone): Remove.
997 (init_child_ops): Don't set to_clone_and_follow_inferior
998 or to_post_follow_inferior_by_clone.
999 * target.c (default_clone_and_follow_inferior): Remove.
1000 (cleanup_target): Don't set to_clone_and_follow_inferior
1001 or to_post_follow_inferior_by_clone.
1002 (find_default_clone_and_follow_inferior): Remove.
1003 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1004 (debug_to_clone_and_follow_inferior): Remove.
1005 (debug_to_post_follow_inferior_by_clone): Remove.
1006 (setup_target_debug): Don't set to_clone_and_follow_inferior
1007 or to_post_follow_inferior_by_clone.
1008 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1009 and to_post_follow_inferior_by_clone.
1010 (child_clone_and_follow_inferior): Remove prototype.
1011 (child_post_follow_inferior_by_clone): Remove prototype.
1012 (target_clone_and_follow_inferior): Remove macro.
1013 (target_post_follow_inferior_by_clone): Remove macro.
1014 (find_default_clone_and_follow_inferior): Remove prototype.
1015
1016 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1017
1018 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1019 inferior_has_vforked, and inferior_has_execd instead of
1020 target_has_forked, target_has_vforked, and target_has_execd.
1021 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1022 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1023 (CHILD_WAIT): Define.
1024 (child_wait): Add prototype.
1025 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1026 Add prototype.
1027 (hpux_has_vforked): Likewise, from child_has_vforked.
1028 (hpux_has_execd): Likewise, from child_has_execd.
1029 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1030 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1031 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1032 and hpux_has_syscall_event instead of the target hooks.
1033 * infrun.c (inferior_has_forked, inferior_has_vforked)
1034 (inferior_has_execd): New functions.
1035 * inftarg.c (not_same_real_pid): Remove.
1036 (child_wait): Remove references to not_same_real_pid,
1037 target_has_forked, target_has_vforked, target_has_execd,
1038 and target_has_syscall_event.
1039 (child_has_forked, child_has_vforked, child_has_execd)
1040 (child_has_syscall_event): Remove.
1041 (init_child_ops): Remove references to child_has_forked,
1042 child_has_vforked, child_has_execd, and child_has_syscall_event.
1043 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1044 (hpux_has_vforked): Likewise, from child_has_vforked.
1045 (hpux_has_execd): Likewise, from child_has_execd.
1046 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1047 * target.c (cleanup_target): Remove references to
1048 to_has_forked, to_has_vforked, to_has_execd, and
1049 to_has_syscall_event.
1050 (update_current_target): Likewise.
1051 (setup_target_debug): Likewise.
1052 (debug_to_has_forked): Remove.
1053 (debug_to_has_vforked): Remove.
1054 (debug_to_has_execd): Remove.
1055 (debug_to_has_syscall_event): Remove.
1056 * target.h (struct target_ops): Remove to_has_forked.
1057 to_has_vforked, to_has_execd, and to_has_syscall_event.
1058 (child_has_forked, child_has_vforked, child_has_execd)
1059 (child_has_syscall_event): Remove prototypes.
1060 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1061 prototypes.
1062 (target_has_forked, target_has_vforked, target_has_execd)
1063 (target_has_syscall_event): Remove macros.
1064
1065 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
1066
1067 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1068 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1069 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1070 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1071 * target.c (cleanup_target): Remove reference to
1072 to_can_follow_vfork_prior_to_exec.
1073 (update_current_target): Likewise.
1074 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1075 (setup_target_debug): Remove reference to
1076 to_can_follow_vfork_prior_to_exec.
1077 * target.h (struct target_ops): Remove
1078 to_can_follow_vfork_prior_to_exec.
1079 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1080 (target_can_follow_vfork_prior_to_exec): Remove definition.
1081 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1082 define.
1083 * infrun.c (follow_vfork_when_exec): Remove.
1084 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1085 (follow_exec): Likewise.
1086 (handle_inferior_event): Likewise.
1087 (keep_going): Likewise.
1088
1089 2002-11-15 Andrew Cagney <cagney@redhat.com>
1090
1091 * frame.c (generic_unwind_get_saved_register): Make static.
1092 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1093 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1094 defaults to generic_unwind_get_saved_register.
1095 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1096 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1097 * frv-tdep.c (frv_gdbarch_init): Ditto.
1098 * i386-tdep.c (i386_gdbarch_init): Ditto.
1099 * s390-tdep.c (s390_gdbarch_init): Ditto.
1100 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1101 * v850-tdep.c (v850_gdbarch_init): Ditto.
1102 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1103 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1104 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1105
1106 2002-11-15 Andrew Cagney <cagney@redhat.com>
1107
1108 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1109 i386-tdep.c.
1110
1111 2002-11-15 Andrew Cagney <cagney@redhat.com>
1112
1113 * frame.h (sigtramp_saved_pc): Delete declaration.
1114 * blockframe.c (sigtramp_saved_pc): Delete function.
1115 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1116 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1117 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1118 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1119
1120 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1121
1122 * frame.c (frame_pc_unwind): New function.
1123 (frame_saved_regs_pc_unwind): New function.
1124 (frame_register_unwind): Pass unwind_cache instead of
1125 register_unwind_cache.
1126 (set_unwind_by_pc): Add unwind_pc parameter, set.
1127 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1128 (get_prev_frame): Ditto.
1129 * frame.h (frame_pc_unwind_ftype): Declare.
1130 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1131 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1132 (frame_pc_unwind): Declare.
1133 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1134 (struct dummy_frame): Add comment mentioning that values are for
1135 previous frame.
1136 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1137 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1138 (generic_file_frame_chain_valid): Ditto.
1139 * stack.c (frame_info): Ditto.
1140
1141 2002-11-15 David Carlton <carlton@math.stanford.edu>
1142
1143 * linespec.c (locate_first_half): New function.
1144 (decode_line_1): Move code into locate_first_half.
1145
1146 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1147
1148 * complaints.h: Add comment explaining how to eliminate a
1149 deprecated_complain call.
1150 * complaints.h: Fix spelling errors.
1151
1152 2002-11-15 David Carlton <carlton@math.stanford.edu>
1153
1154 * printcmd.c: Remove #include "disasm.h".
1155
1156 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1157
1158 * frame.h: Move the most relevant interface functions to the start
1159 of the file.
1160
1161 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1162
1163 * regcache.h (deprecated_registers): Rename registers.
1164 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1165 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1166 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1167 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1168 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1169 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1170 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1171 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1172 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1173 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1174 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1175 * v850ice.c: Update.
1176
1177 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1178
1179 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1180 NULL buffer.
1181
1182 2002-11-13 Andrew Cagney <cagney@redhat.com>
1183
1184 * regcache.h (deprecated_read_register_bytes): Rename
1185 read_register_bytes.
1186 (deprecated_write_register_bytes): Rename write_register_bytes.
1187 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1188 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1189 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1190 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1191 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1192 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1193 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1194 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1195 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1196 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1197 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1198 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1199 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1200 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1201
1202 2002-11-13 Jim Blandy <jimb@redhat.com>
1203
1204 * findvar.c (read_var_value): Doc fix.
1205
1206 2002-11-13 Andrew Cagney <cagney@redhat.com>
1207
1208 * regcache.c (struct regcache): Replace passthough_p with
1209 readonly_p.
1210 (regcache_xmalloc): Initialize readonly_p.
1211 (build_regcache): Initialize readonly_p.
1212 (regcache_save): New function.
1213 (regcache_restore): New function.
1214 (regcache_cpy): Re-implement using regcache_save and
1215 regcache_restore.
1216 (regcache_raw_read): Update.
1217 (regcache_cooked_read): When a read-only cache, checked for cached
1218 pseudo register values.
1219 (regcache_raw_write): Assert that the cache is not read-only.
1220 Remove code handling a non-passthrough cache.
1221 * regcache.h (regcache_save): Declare.
1222 (regcache_restore): Declare.
1223
1224 2002-11-13 Andrew Cagney <cagney@redhat.com>
1225
1226 * regcache.c (struct regcache_descr): Add fields
1227 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1228 (init_legacy_regcache_descr): Compute the size of a cooked
1229 register cache and then assign that to sizeof_raw_registers. Set
1230 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1231 (init_legacy_regcache_descr): Ditto.
1232
1233 2002-11-13 Andrew Cagney <cagney@redhat.com>
1234
1235 * regcache.c (register_buffer): Move to near start of file, update
1236 description.
1237 (regcache_raw_read): Use.
1238 (regcache_raw_write): Use.
1239 (struct regcache): Rename raw_registers to registers and
1240 raw_register_valid_p to register_valid_p.
1241 (regcache_xmalloc): Update.
1242 (regcache_xfree): Update.
1243 (register_buffer): Update.
1244 (regcache_cpy): Update.
1245 (regcache_cpy_no_passthrough): Update.
1246 (regcache_valid_p): Update.
1247 (deprecated_grub_regcache_for_registers): Update.
1248 (deprecated_grub_regcache_for_register_valid): Update.
1249 (set_register_cached): Update.
1250 (regcache_raw_write): Update.
1251
1252 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1253
1254 * p-exp.y (name_not_typename): Use copy_name to
1255 set current_type variable for fields of THIS.
1256
1257 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1258
1259 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1260 * monitor.c (init_base_monitor_ops): Likewise.
1261 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1262 * remote-array.c (init_array_ops): Likewise.
1263 * remote-e7000.c (init_e7000_ops): Likewise.
1264 * remote-es.c (init_es1800_ops): Likewise.
1265 (init_es1800_child_ops): Likewise.
1266 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1267 * remote-sim.c (init_gdbsim_ops): Likewise.
1268 * remote-st.c (init_st2000_ops): Likewise.
1269 * sol-thread.c (init_sol_core_ops): Likewise.
1270 (init_sol_thread_ops): Likewise.
1271 * v850ice.c (init_850ice_ops): Likewise.
1272 * win32-nat.c (init_child_ops): Likewise.
1273 * wince.c (init_child_ops): Likewise.
1274
1275 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1276
1277 * utils.c (gdb_realpath): Make rp a constant pointer.
1278
1279 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1280
1281 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1282 a constant buffer; cannonicalize_file_name(); realpath() with a
1283 pathconf() defined buffer, xstrdup().
1284
1285 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1286
1287 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1288 to hang2.C; hang3.c to hang3.C.
1289
1290 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1291
1292 * findvar.c (read_var_value): Reenable TLS code.
1293
1294 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1295 Jim Blandy <jimb@redhat.com>
1296
1297 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1298 * target.c (update_current_target): Add
1299 to_get_thread_local_address.
1300 * target.h (to_get_thread_local_address): Export.
1301 (target_get_thread_local_address): Define.
1302 (target_get_thread_local_address_p): Define.
1303 * thread-db.c: Include solib-svr4.h.
1304 (td_thr_tls_get_addr_p): Define.
1305 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1306 (thread_db_get_thread_local_address): New function.
1307 (init_thread_db_ops): Initialize to_get_thread_local_address.
1308 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1309 * configure: Regenerate.
1310 * config.in: Regenerate.
1311
1312 2002-11-11 David Carlton <carlton@math.stanford.edu>
1313
1314 * linespec.c (set_flags): New function.
1315 (decode_line_1): Move code into set_flags.
1316
1317 2002-11-11 David Carlton <carlton@math.stanford.edu>
1318
1319 * linespec.c (decode_line_1): Move chunks of code to separate
1320 functions.
1321 (initialize_defaults): New function.
1322 (decode_indirect): New function.
1323
1324 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1325
1326 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1327 instead of void_code_ptr.
1328 (sigtramp_saved_pc): Ditto.
1329
1330 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1331 i386_fp_regnum_p.
1332
1333 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1334
1335 * gdbtypes.h (struct main_type): Move artificial flag out of
1336 loc. New member of ``struct field'' named static_kind. Reduce
1337 overloaded meaning of bitsize.
1338 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1339 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1340 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1341
1342 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1343 new fields.
1344 (template_to_fixed_record_type, template_to_static_fixed_type)
1345 (to_record_with_fixed_variant_part): Likewise.
1346 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1347 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1348 * dwarfread.c (struct_type, enum_type): Likewise.
1349 * hpread.c (hpread_read_enum_type)
1350 (hpread_read_function_type, hpread_read_doc_function_type)
1351 (hpread_read_struct_type): Likewise.
1352 * mdebugread.c (parse_symbol): Likewise.
1353
1354 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1355
1356 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1357 * stack.c (print_frame_info_base): Update.
1358 (print_frame_info_base, frame_info): Update.
1359 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1360 (sparc_frame_saved_pc): Update.
1361 * ada-lang.c (find_printable_frame): Update.
1362 * breakpoint.c (deprecated_frame_in_dummy): Update.
1363
1364 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1365
1366 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1367 defined.
1368 (regmap): Extend to cover all registers.
1369 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1370 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1371 definitions.
1372 (fetch_register, sore_register): Simplify.
1373 (old_fetch_inferior_registers, old_store_inferior_registers):
1374 Remove functions.
1375 (cannot_fetch_register, cannot_store_register): Change
1376 implementation to use regmap array to decide which registers
1377 cannot be fetched/stored. This removes $orig_eax from the
1378 registers that cannot be fetched/stored.
1379 (fetch_inferior_registers): Call fetch_register directly instead
1380 of calling old_fetch_inferior_registers.
1381 (store_inferior_registers): Call store_register directly instead
1382 of calling old_store_inferior_registers.
1383 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1384 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1385 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1386
1387 2002-11-09 Klee Dienes <kdienes@apple.com>
1388
1389 * i387-tdep.c (i387_supply_register): When called with NULL as a
1390 buffer, mark the register as not provided (to mirror the behavior
1391 of supply_register).
1392 (i387_supply_fxsave): Ditto.
1393 (i387_supply_fsave): Ditto (inherits the behavior from
1394 i387_supply_register).
1395
1396 2002-11-09 Klee Dienes <kdienes@apple.com>
1397
1398 * blockframe.c (sigtramp_saved_pc): Use
1399 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1400 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1401 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1402
1403 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1404
1405 * frame.c (get_prev_frame): Test prev_p to identify a previously
1406 unwound frame. Initialize prev_p.
1407 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1408 comment.
1409
1410 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1411
1412 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1413 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1414 more comments. Zap dead code.
1415
1416 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1417
1418 * infcmd.c (print_vector_info, print_float_info): Move code that
1419 checks whether the target has any registers and whether there is a
1420 selected frame up, such that it is also used if a target provides
1421 multi-arch definitions of these functions.
1422
1423 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1424
1425 * Makefile.in (DESTDIR): Define.
1426 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1427 prefix.
1428
1429 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1430 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1431
1432 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1433
1434 * i386-linux-tdep.c: Include "reggroups.h".
1435 (i386_linux_register_reggroup_p): New function.
1436 (i386_linux_init_abi): Set register_reggroup_p to
1437 i386_linux_register_reggroup_p.
1438 * i386-tdep.h (i386_register_reggroup_p): Declare.
1439 * i386-tdep.c: Include "reggroups.h".
1440 (i386_init_reggroups): New function.
1441 (i386_add_reggroups): New function.
1442 (i386_register_reggroup_p): New function.
1443 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1444 (_initialize_i386_tdep): Call i386_init_reggroups.
1445 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1446 specific reggroups.
1447
1448 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1449
1450 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1451 request that's available in *BSD.
1452
1453 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1454
1455 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1456 FDOFF_REGNUM.
1457
1458 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1459
1460 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1461 * dummy-frame.c (find_dummy_frame): Rename
1462 generic_find_dummy_frame, make static. Return the dummy frame
1463 instead of the regcache.
1464 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1465 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1466 (dummy_frame_register_unwind): Rename
1467 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1468 * dummy-frame.h (dummy_frame_register_unwind): Rename
1469 generic_call_dummy_register_unwind.
1470
1471 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1472
1473 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1474 except the inclusion of "i386/tm-i386.h", to...
1475 * config/i386/nm-i386v42mp.h: ...here.
1476 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1477
1478 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1479
1480 * Makefile.in (frame.o): Update dependencies.
1481 * blockframe.c (current_frame, frame_obstack_alloc)
1482 (frame_saved_regs_zalloc, get_current_frame)
1483 (set_current_frame, create_new_frame)
1484 (set_unwind_by_pc, get_next_frame)
1485 (flush_cached_frames, reinit_frame_cache)
1486 (frame_saved_regs_register_unwind)
1487 (deprecated_generic_get_saved_register)
1488 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1489 (_initialize_blockframe): Move frame code from here...
1490 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1491 "annotate.h" and "dummy-frame.h".
1492 (_initialize_frame): New function.
1493
1494 2002-11-08 Jim Blandy <jimb@redhat.com>
1495
1496 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1497 when we finish a function a context.
1498 * buildsym.h (outermost_context_p): New macro.
1499 (Bug analyzed by David Edelsohn.)
1500
1501 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1502
1503 * blockframe.c: Include "dummy-frame.h".
1504 (struct dummy_frame, dummy_frame_stack)
1505 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1506 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1507 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1508 (generic_save_call_dummy_addr, generic_pop_current_frame)
1509 (generic_pop_dummy_frame, generic_fix_call_dummy)
1510 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1511 dummy frame code from here...
1512 * dummy-frame.c: ...to here. New file.
1513 * dummy-frame.h: New file.
1514 (generic_call_dummy_register_unwind): Declare.
1515 (generic_find_dummy_frame): Declare.
1516 * Makefile.in (SFILES): Add dummy-frame.c.
1517 (dummy-frame.o): Specify dependencies.
1518 (dummy_frame_h): Define.
1519 (COMMON_OBS): Add dummy-frame.o.
1520 (blockframe.o): Update dependencies.
1521
1522 2002-11-08 Jim Blandy <jimb@redhat.com>
1523
1524 * dwarf2read.c (read_func_scope): Restore local_symbols and
1525 param_symbols after we finish the function context. (Based on a
1526 patch from David Edelsohn.)
1527
1528 2002-11-08 David Carlton <carlton@math.stanford.edu>
1529
1530 * linespec.c (symbol_found): New function.
1531 (minsym_found): New function.
1532 (decode_line_1): Separate out some code into separate functions.
1533
1534 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1535
1536 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1537 the benefit of the interix target.
1538 * i386-tdep.h (i386_frameless_signal_p): Declare.
1539
1540 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1541
1542 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1543 declaration that snuck in from change below.
1544
1545 2002-11-06 Andrew Cagney <cagney@redhat.com>
1546
1547 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1548 all callers.
1549 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1550 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1551 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1552 (i386_mxcsr_regnum_p): new function. Use instead of
1553 MXCSR_REGNUM_P.
1554 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1555 (i386_sse_regnum_p): Declare.
1556 (i386_mxcsr_regnum_p): Declare.
1557 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1558 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1559 (IS_FP_REGNUM): Update definition.
1560 (IS_FPU_CTRL_REGNUM): Update definition..
1561 (IS_SSE_REGNUM): Update definition..
1562 * i386v-nat.c (register_u_addr): Update.
1563 * go32-nat.c (fetch_register): Update.
1564 (store_register): Update.
1565
1566 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1567
1568 Preparation work to convert the hppa targets to multiarch partial.
1569
1570 * hppa-tdep.c: Add new functions replacing macro bodies from
1571 config/pa/tm-hppa.h. These function will be used to initialize
1572 the gdbarch structure. Import some comments from tm-hppa.h,
1573 and place them where appropriate, to avoid loosing them when
1574 we cleanup this file.
1575 (hppa_reg_struct_has_addr): New function.
1576 (hppa_inner_than): New function.
1577 (hppa_stack_align): New function.
1578 (hppa_pc_requires_run_before_use): New function.
1579 (hppa_instruction_nullified): New function.
1580 (hppa_register_byte): New function.
1581 (hppa_register_virtual_type): New function.
1582 (hppa_store_struct_return): New function.
1583 (hppa_cannot_store_register): New function.
1584 (hppa_frame_args_address): New function.
1585 (hppa_frame_locals_address): New function.
1586 (hppa_smash_text_address): New function.
1587 (hppa_coerce_float_to_double): New function. Requires the inclusion
1588 of "language.h".
1589
1590 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1591
1592 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1593 gdbarch-eligible macro to a call to the new associated function
1594 created in hppa-tdep.c.
1595 (INNER_THAN): Likewise.
1596 (STACK_ALIGN): Likewise.
1597 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1598 (INSTRUCTION_NULLIFIED): Likewise.
1599 (REGISTER_BYTE): Likewise.
1600 (REGISTER_VIRTUAL_TYPE): Likewise.
1601 (STORE_STRUCT_RETURN): Likewise.
1602 (CANNOT_STORE_REGISTER): Likewise.
1603 (FRAME_ARGS_ADDRESS): Likewise.
1604 (FRAME_LOCALS_ADDRESS): Likewise.
1605 (SMASH_TEXT_ADDRESS): Likewise.
1606 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1607 (ABOUT_TO_RETURN): Delete, as no longer used.
1608
1609 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1610
1611 * printcmd.c (disassemble_command): Remove obsolete function.
1612 (_initialize_printcmd): Do not create disassemble command here.
1613 * cli/cli-cmds.c (disassemble_command): New function. Implements
1614 disassemble command.
1615 (init_cli_cmds): Create disassemble command here instead.
1616
1617 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1618
1619 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1620
1621 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1622
1623 * regcache.h (regcache_cooked_read_using_offset_hack)
1624 (regcache_cooked_write_using_offset_hack): Delete declarations.
1625 (register_changed): Delete declaration.
1626 * regcache.c (regcache_cooked_read_using_offset_hack)
1627 (regcache_cooked_write_using_offset_hack): Delete functions.
1628 (cooked_xfer_using_offset_hack): Delete function.
1629 (register_changed): Delete function.
1630
1631 2002-11-07 Jim Blandy <jimb@redhat.com>
1632
1633 * macroscope.c: #include "complaints.h".
1634 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1635 but not in the macro table.
1636 * Makefile.in (macroscope.o): Record dependency.
1637
1638 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1639
1640 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1641
1642 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1643
1644 * regcache.c (deprecated_registers_fetched): Update.
1645 * regcache.h (deprecated_registers_fetched): Rename
1646 registers_fetched.
1647 * remote-vxsparc.c (vx_read_register): Update.
1648 * remote-vxmips.c (vx_read_register): Update.
1649 * remote-vx68.c (vx_read_register): Update.
1650 * irix5-nat.c (fetch_core_registers): Update.
1651 * mipsm3-nat.c (fetch_inferior_registers): Update.
1652 * sun3-nat.c (fetch_inferior_registers): Update.
1653 * symm-nat.c (fetch_inferior_registers): Update.
1654 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1655 (fetch_core_registers): Update.
1656 (fetch_kcore_registers): Update.
1657 * mips-nat.c (fetch_inferior_registers): Update.
1658 * corelow.c (get_core_registers): Update.
1659 * a68v-nat.c (fetch_inferior_registers): Update.
1660
1661 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1662
1663 Put in place the framework necessary for multiarching the hppa targets.
1664 * hppa-tdep.c (hppa_gdbarch_init): New function.
1665 (hppa_dump_tdep): New function.
1666 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1667 tdep structure dumper.
1668 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1669 until the multi-arching conversion has partially been completed.
1670
1671 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1672
1673 * valops.c (value_assign): Merge lval_register case into
1674 lval_reg_frame_relative. Use frame_register and
1675 regcache_cooked_write instead of get_saved_register and
1676 write_register_bytes. After flushing the register cache, try to
1677 re-select the selected frame.
1678
1679 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1680
1681 * regcache.h (deprecated_register_valid): Rename register_valid.
1682 * regcache.c: Update.
1683 * ia64-aix-nat.c: Update.
1684 * i386gnu-nat.c: Update.
1685 * alpha-nat.c: Update.
1686 * sparc-nat.c: Update.
1687 * lynx-nat.c: Update.
1688 * remote-mips.c: Update.
1689
1690 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1691
1692 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1693 to end of file, to be more consistent with the pratice followed
1694 by other targets.
1695
1696 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1697
1698 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1699 (print_float_info): Print registers in float_reggroup.
1700 (print_vector_info): Print registers in vector_reggroup.
1701 (default_print_registers_info): When all, print registers in
1702 all_reggroup. Otherwize, print registers in general_reggroup.
1703 (registers_info): Rewrite. Add support for register groups.
1704 Eliminate a goto.
1705
1706 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1707
1708 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1709 ages.
1710 (symtab_symbol_info): Remove eons old ifdeffed out code.
1711 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1712 command.
1713
1714 2002-11-06 Theodore A. Roth <troth@openavr.org>
1715
1716 * c-exp.y: Add missing semi-colons.
1717 * f-exp.y: Add missing semi-colons.
1718 * m2-exp.y: Add missing semi-colons.
1719 * p-exp.y: Add missing semi-colons.
1720 Add empty action to start rule to avoid a type clash error when
1721 building with bison >= 1.50.
1722
1723 2002-11-06 Jim Blandy <jimb@redhat.com>
1724
1725 * macrotab.h (struct macro_source_file): Doc fix.
1726
1727 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1728
1729 * varobj.c (child_exists, cplus_number_of_children): Change
1730 STREQ macro references to strcmp.
1731 (cplus_name_of_child): Change code to handle the fact that
1732 fields are not necessarily contiguous with regards to their
1733 access control. This is a fix for PR gdb/792.
1734
1735 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1736
1737 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1738 * gdbarch.h, gdbarch.c: Regnerate.
1739 * frame.h (frame_register): Declare.
1740 * frame.c (frame_register): New function.
1741 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1742 GET_SAVED_REGISTER, otherwize call
1743 generic_unwind_get_saved_register.
1744 (frame_register_read): Use frame_register instead of
1745 get_saved_register.
1746
1747 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1748
1749 From Jim Ingham <jingham@apple.com>:
1750 * event-top.c (gdb_disable_readline): New function.
1751 (_initialize_event_loop): Move comment.
1752
1753 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1754
1755 * event-loop.c (start_event_loop): Add comment.
1756 Update copyright.
1757
1758 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1759
1760 * infcmd.c (default_print_registers_info): Do not call
1761 PRINT_REGISTER_HOOK.
1762
1763 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1764
1765 * sparc-tdep.c (sparc_print_register_hook): Make static.
1766 (sparc_print_registers_info): New function.
1767 (sparc_do_registers_info): New function.
1768 (sparclet_print_registers_info): New function.
1769 (sparclet_do_registers_info): New function.
1770 (do_sparc_print_registers_info): New function.
1771 (sparc_print_registers): New static function, clone of infcmd.c's
1772 default_print_registers_info.
1773 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1774 (sparclet_do_registers_info): Declare.
1775 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1776 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1777 Re-define.
1778 (sparc_do_registers_info): Declare.
1779 (PRINT_REGISTER_HOOK): Delete macro.
1780 (sparc_print_register_hook): Delete declaration.
1781
1782 2002-11-05 David Carlton <carlton@math.stanford.edu>
1783
1784 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1785 functions.
1786 (lookup_symbol_aux_local): New function.
1787 (lookup_symbol_aux_symtabs): New function.
1788 (lookup_symbol_aux_psymtabs): New function.
1789
1790 2002-11-05 David Carlton <carlton@math.stanford.edu>
1791
1792 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1793 previous values of 'objfile' and 'block'.
1794
1795 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1796
1797 * values.c (value_change_enclosing_type): Set
1798 enclosing_type field correctly also for the case where
1799 more memory needs to be allocated.
1800
1801 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1802
1803 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1804 of puts_filtered.
1805
1806 * i387-tdep.c (i387_print_float_info): Replace calls to
1807 register_read and deprecated_read_register_gen with calls to
1808 frame_register_read, and make the necessary adjustments to the
1809 surrounding code.
1810
1811 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1812
1813 * gdbarch.sh (register_reggroup_p): Allow default value.
1814 * gdbarch.h, gdbarch.c: Regenerate.
1815
1816 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1817
1818 * regcache.h: Add coment indicating replacements for deprecated
1819 functions.
1820
1821 2002-11-02 Andrew Cagney <cagney@redhat.com>
1822
1823 * reggroups.h, reggroups.c: New files.
1824 * regcache.c: Include "reggroups.h".
1825 (enum regcache_dump_what): Add `regcache_dump_groups'.
1826 (regcache_dump): Contract size of the "Type" column. When
1827 specified, dump the register's groups.
1828 (maintenance_print_register_groups): New function.
1829 (_initialize_regcache): Add command `maint print register-groups'.
1830 * Makefile.in (COMMON_OBS): Add reggroups.o
1831 (SFILES): Add reggroups.c.
1832 (reggroups_h): Define.
1833 (regcache.o, gdbarch.o): Update dependencies.
1834 (reggroups.o): Specify dependencies.
1835 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1836 Add opaque declaration for `struct reggroup' in generated .h file.
1837 Include "reggroups.h" in generated .c file.
1838 gdbarch.h, gdbarch.c: Re-generate.
1839
1840 2002-11-02 Andrew Cagney <cagney@redhat.com>
1841
1842 * regcache.h (deprecated_read_register_gen): Rename
1843 read_register_gen.
1844 (deprecated_write_register_gen): Rename write_register_gen.
1845 * i387-tdep.c: Update.
1846 * x86-64-linux-nat.c: Update
1847 * wince.c: Update.
1848 * thread-db.c: Update.
1849 * win32-nat.c: Update.
1850 * mips-tdep.c: Update.
1851 * d10v-tdep.c: Update.
1852 * cris-tdep.c: Update.
1853 * remote-sim.c: Update.
1854 * remote-rdi.c: Update.
1855 * remote-rdp.c: Update.
1856 * frame.c: Update.
1857 * target.c: Update.
1858 * blockframe.c: Update.
1859 * x86-64-tdep.c: Update.
1860 * xstormy16-tdep.c: Update.
1861 * sh-tdep.c: Update.
1862 * s390-tdep.c: Update.
1863 * rs6000-tdep.c: Update.
1864 * sparc-tdep.c: Update.
1865 * i386-tdep.c: Update.
1866 * dwarf2cfi.c: Update.
1867 * regcache.c: Update.
1868
1869 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1870
1871 New interix-specific files:
1872 * config/i386/nm-interix.h: New file.
1873 * config/i386/interix.mh: New file.
1874 * config/i386/interix.mt: New file.
1875 * i386-interix-nat.c: New file.
1876 * i386-interix-tdep.c: New file.
1877
1878 2002-11-01 Andrew Cagney <cagney@redhat.com>
1879
1880 * frame.h (deprecated_generic_get_saved_register): Rename
1881 generic_get_saved_register.
1882 * blockframe.c (deprecated_generic_get_saved_register): Update.
1883 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1884 (xstormy16_frame_saved_register): Update.
1885 * sh-tdep.c (sh_gdbarch_init): Update.
1886 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1887 * ia64-tdep.c (ia64_get_saved_register): Update.
1888 * cris-tdep.c (cris_gdbarch_init): Update.
1889 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1890 * arm-tdep.c (arm_gdbarch_init): Update.
1891
1892 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1893
1894 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1895
1896 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1897
1898 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1899 trampolines in sigaction.
1900
1901 2002-10-31 Andrew Cagney <cagney@redhat.com>
1902
1903 * h8300-tdep.c: Include "gdb_assert.h".
1904 (h8300_print_register): Add gdbarch, file and frame parameters.
1905 Use frame_read_unsigned_register to read the register's value.
1906 Use fprintf_filtered to display output.
1907 (h8300_print_registers_info): Replace h8300_do_registers_info.
1908 (h8300_gdbarch_init): Set print_registers_info.
1909
1910 2002-10-31 Andrew Cagney <cagney@redhat.com>
1911
1912 * frame.c (frame_read_unsigned_register): New function.
1913 (frame_read_signed_register): New function.
1914 * frame.h (frame_read_unsigned_register): Declare.
1915 (frame_read_signed_register): Declare.
1916
1917 2002-10-31 Andrew Cagney <cagney@redhat.com>
1918
1919 * h8500-tdep.c (h8500_print_registers_info): New static function,
1920 clone of infcmd.c's default_print_registers_info.
1921 (h8500_do_registers_info): New funtion.
1922 (h8500_print_register_hook): Rename print_register_hook, make
1923 static.
1924
1925 * config/h8500/tm-h8500.h: Update copyright.
1926 (DEPRECATED_DO_REGISTERS_INFO): Define.
1927 (h8500_do_registers_info: Declare.
1928 (PRINT_REGISTER_HOOK): Delete macro.
1929 (print_register_hook): Delete function.
1930
1931 2002-10-31 Andrew Cagney <cagney@redhat.com>
1932
1933 * z8k-tdep.c (z8k_print_register_hook): Make static.
1934 (z8k_print_registers_info): New static function, clone of
1935 infcmd.c's default_print_registers_info.
1936 (z8k_do_registers_info): New function. Wrap
1937 z8k_print_registers_info.
1938 * config/z8k/tm-z8k.h: Update copyright.
1939 (PRINT_REGISTER_HOOK): Delete macro.
1940 (z8k_print_register_hook): Delete declaration.
1941 (DEPRECATED_DO_REGISTERS_INFO): Define.
1942 (z8k_do_registers_info): Declare.
1943
1944 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1945
1946 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1947 as this is already provided by value.h, and was actually causing
1948 a compilation error because of a conflict in parameter type
1949 declaration due to a missing const keyword.
1950 (low_text_segment_addres): Fix a compilation warning.
1951
1952 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1953
1954 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1955 registers without a name.
1956 (mips_linux_cannot_store_register): Don't store registers without
1957 a name.
1958
1959 2002-10-28 David Carlton <carlton@math.stanford.edu>
1960
1961 * symtab.c (find_addr_symbol): Delete. (It was already commented
1962 out.)
1963 * symtab.h: Delete prototype for find_addr_symbol.
1964
1965 2002-10-26 Andrew Cagney <cagney@redhat.com>
1966
1967 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1968 DO_REGISTERS_INFO.
1969 gdbarch.h, gdbarch.c: Re-generate.
1970 * infcmd.c (default_print_registers_info): Update reference.
1971 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1972 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1973 * sh-tdep.c (sh_gdbarch_init): Ditto.
1974 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1975 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1976
1977 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1978
1979 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1980 cfi_init_extra_frame_info.
1981 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1982 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1983
1984 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1985 target where necessary. Add more comments and remove the ones
1986 that don't provide any useful information.
1987
1988 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1989 deprecated_read_register_dummy with
1990 frame_unwind_unsigned_register.
1991
1992 * i386-tdep.c (i386_extract_struct_value_address): Use
1993 regcache_raw_read_unsigned instead of
1994 regcache_cooked_read_unsigned since we know that the register
1995 we're reading isn't a pseudo register. Rename variable 'val' into
1996 the more descriptive 'addr'.
1997
1998 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1999 (x86_64_push_return_address): Add comment.
2000 (x86_64_pop_frame): Make static.
2001 (examine_argument): Clarify comment.
2002 (x86_64_skip_prologue): Make prolog_expact variable static.
2003
2004 * dwarf2cfi.c: Fix some formatting problems.
2005 (context_cpy, read_encoded_pointer): Clarify comments.
2006
2007 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2008 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2009 i386 target back into x86_64_gdbarch_init. Add some comments and
2010 remove meaningless ones.
2011
2012 2002-10-25 Andrew Cagney <cagney@redhat.com>
2013
2014 * complaints.h (struct deprecated_complaint): Rename `struct
2015 complaint'.
2016 * complaints.c (complain): Update.
2017 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2018 incorrect comment indicating that "symfile.h" was being included
2019 for the `struct complaint' definition.
2020 * remote-vx.c: Update.
2021 * objc-lang.c: Update.
2022 * xcoffread.c: Update.
2023 * hpread.c: Update.
2024 * mdebugread.c: Update.
2025 * stabsread.c: Update.
2026 * dwarf2read.c: Update.
2027 * dwarfread.c: Update.
2028 * elfread.c: Update.
2029 * coffread.c: Update.
2030 * stabsread.h: Update.
2031 * dbxread.c: Update.
2032 * buildsym.c: Update.
2033 * gdbtypes.c: Update.
2034 * macrotab.c: Update.
2035
2036 2002-10-25 Mark Kettenis <kettenis@gnu.org>
2037
2038 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2039 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2040 (x86_64_init_abi): ...new function.
2041
2042 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
2043 * i386v-nat.c: Include "i386-tdep.h".
2044
2045 2002-10-25 Andrew Cagney <cagney@redhat.com>
2046
2047 * gdbtypes.c (address_space_name_to_int): Update.
2048 (address_space_int_to_name): Update.
2049 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2050 multi-arch predicate.
2051 (address_class_name_to_type_flags): Ditto.
2052 * gdbarch.h, gdbarch.c: Re-generate.
2053
2054 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2055
2056 2002-10-24 Martin M. Hunt <hunt@redhat.com>
2057
2058 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2059
2060 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
2061
2062 * symtab.h (INIT_SAL): Delete macro.
2063 (init_sal): Export.
2064 * symtab.c (init_sal): New function.
2065
2066 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2067 to init_sal function call.
2068 (find_sal_from_funcs_and_line): Ditto.
2069 (all_sals_for_line): Ditto.
2070 * breakpoint.c (create_internal_breakpoint): Ditto.
2071 (create_fork_vfork_event_catchpoint): Ditto.
2072 (create_exec_event_catchpoint): Ditto.
2073 (parse_breakpoint_sals): Ditto.
2074 (watch_command_1): Ditto.
2075 (handle_gnu_4_16_catch_command): Ditto.
2076 (clear_command): Ditto.
2077 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2078 * infcmd.c (run_stack_dummy): Ditto.
2079 * infrun.c (process_event_stop_test): Ditto.
2080 (check_sigtramp2): Ditto.
2081 (step_over_function): Ditto.
2082 * linespec.c (decode_line_2): Ditto.
2083 (decode_line_1): Ditto.
2084 * source.c (line_info): Ditto.
2085 * symtab.c (find_pc_sect_line): Ditto.
2086
2087 2002-10-24 Michal Ludvig <mludvig@suse.cz>
2088
2089 * dwarf2cfi.c (struct context)
2090 (struct context_reg): Moved to dwarf2cfi.h
2091 (context_alloc, frame_state_alloc, context_cpy):
2092 Made extern instead of static, removed prototypes.
2093 * dwarf2cfi.h (struct context)
2094 (struct context_reg): New, moved from dwarf2cfi.c
2095 (context_alloc, frame_state_alloc, context_cpy):
2096 New prototypes.
2097 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2098 Changed from static to extern.
2099 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2100 (LINUX_SIGCONTEXT_FP_OFFSET)
2101 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2102 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2103 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2104 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2105 set_gdbarch_*() calls now use x86-64 specific functions
2106 instead of DWARF2 CFI ones.
2107 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2108 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2109 (x86_64_init_extra_frame_info): New prototypes.
2110
2111 2002-10-23 David Carlton <carlton@math.stanford.edu>
2112
2113 * linespec.c: #include "parser-defs.h".
2114 Delete prototype for find_template_name_end.
2115 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2116
2117 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2118
2119 * NEWS: add recent mi fixes.
2120 * varobj.c (struct varobj): Add new "updated" flag.
2121 (new_variable): Default "updated" flag to 0.
2122 (varobj_set_value): Set "updated" flag to 1 if value
2123 changes.
2124 (varobj_update): Check varobj "updated" flag before
2125 comparing old and refreshed values. Fix for
2126 PR gdb/702.
2127
2128 2002-10-23 David Carlton <carlton@math.stanford.edu>
2129
2130 * parse.c (parse_exp_1): Use BLOCK_START.
2131 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2132 SYMBOL_BLOCK_VALUE.
2133 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2134
2135 2002-10-23 David Carlton <carlton@math.stanford.edu>
2136
2137 * symtab.c: Delete cplusplus_hint.
2138 Delete prototype for find_template_name_end.
2139
2140 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2141
2142 * symtab.h: Update comment.
2143
2144 2002-10-23 Michael Snyder <msnyder@redhat.com>
2145
2146 * printcmd.c (address_info): Restore quotes in output.
2147 * valops.c (value_of_local): Restore quotes in error message.
2148
2149 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2150
2151 * symtab.c (symbol_demangled_name): New function.
2152 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2153 turning most of it into a function.
2154 (symbol_demangled_name): Export.
2155
2156 2002-10-23 Michael Snyder <msnyder@redhat.com>
2157
2158 * valops.c (value_of_local): Restore quotes in error message.
2159
2160 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2161
2162 * symtab.c (symbol_init_language_specific): New function.
2163 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2164 turning most of it into a function.
2165 (symbol_init_language_specific): Export.
2166
2167 2002-10-23 David Carlton <carlton@math.stanford.edu>
2168
2169 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2170 (dwarf_attr_name): Ditto.
2171 (dwarf_type_encoding_name): Ditto.
2172 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2173 (process_die): Handle DW_TAG_namespace,
2174 DW_TAG_imported_declaration, DW_TAG_imported_module.
2175 (read_namespace): New function.
2176
2177 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2178
2179 * configure.in: Define NEW_PROC_API on Interix too.
2180 * configure: Regenerate.
2181
2182 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2183
2184 * configure: Regenerate using the proper version of autoconf.
2185
2186 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2187
2188 * findvar.c (read_var_value): Temporarily disable TLS code, until
2189 complete TLS support is added.
2190
2191 2002-10-21 Jim Blandy <jimb@redhat.com>
2192 Elena Zannoni <ezannoni@redhat.com>
2193
2194 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2195 for thread local storage locations.
2196 (struct symbol): Add objfile field.
2197 (SYMBOL_OBJFILE): Define.
2198 * dwarf2read.c (is_thread_local): New static variable.
2199 (new_symbol): If variable is in thread local fill in address class
2200 and objfile appropriately.
2201 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2202 stack operation.
2203 * printcmd.c (address_info): Print the information for thread
2204 local storage variable.
2205 * findvar.c (read_var_value): In case of thread local variable,
2206 defer to the target vector code to compute address.
2207
2208 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2209
2210 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2211 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2212
2213 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2214
2215 * symtab.h (address_class): Rename
2216 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2217 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2218 * printcmd.c (address_info): Ditto.
2219 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2220
2221 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2222
2223 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2224 DBREG_DRX macro to acces debug registers.
2225
2226 * Makefile.in (i386obsd-tdep.o): New target.
2227
2228 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2229 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2230
2231 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2232 * config/i386/obsd.mt: New file.
2233 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2234 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2235 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2236 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2237 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2238 * i386obsd-tdep.c: New file.
2239
2240 2002-10-19 Adam Fedor <fedor@gnu.org>
2241
2242 * objc-exp.y (name_not_typename): Fix invalid comment.
2243
2244 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2245
2246 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2247 to allocate partial syms and macro byte caches.
2248
2249 2002-10-18 David Carlton <carlton@math.stanford.edu>
2250
2251 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2252
2253 2002-10-18 Adam Fedor <fedor@gnu.org>
2254
2255 * stabsread.c (find_name_end): New function.
2256 (define_symbol): Use it.
2257
2258 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2259
2260 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2261 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2262 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2263 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2264
2265 2002-10-17 David Carlton <carlton@math.stanford.edu>
2266
2267 * symfile.h: Add opaque declaration for struct obstack.
2268 Declare obsavestring to take a const char *.
2269 * symfile.c (obsavestring): Make first argument a const char *.
2270
2271 2002-10-16 Adam Fedor <fedor@gnu.org>
2272
2273 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2274 names when matching breakpoints in current file.
2275
2276 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2277
2278 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2279 (read_tag_pointer_type): Add address class support.
2280 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2281 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2282 New methods.
2283 * gdbarch.h, gdbarch.c: Regenerate.
2284 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2285 (make_type_with_address_space, recursive_type_dump): Add address
2286 class support.
2287 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2288 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2289 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2290
2291 2002-10-16 Klee Dienes <kdienes@apple.com>
2292
2293 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2294 to get the last character of a char[] buffer, not
2295 name[sizeof(vptr_name)-1].
2296
2297 2002-10-14 Adam Fedor <fedor@gnu.org>
2298
2299 * symtab.h: New objc_specific struct.
2300 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2301 (SYMBOL_DEMANGLED_NAME): Likewise.
2302
2303 2002-10-14 Adam Fedor <fedor@gnu.org>
2304
2305 * symfile.c (init_filename_language_table): Add ObjC file extension.
2306
2307 2002-10-14 Adam Fedor <fedor@gnu.org>
2308
2309 * utils.c (puts_filtered_tabular): New function.
2310 (fprintf_symbol_filtered): Get ObjC demangled name.
2311 * defs.h (puts_filtered_tabular): Declared.
2312
2313 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2314
2315 * c-lang.h (c_type_print_varspec_prefix): Delete.
2316 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2317 ``need_post_space'' parameter. Adjust all callers.
2318
2319 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2320
2321 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2322 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2323 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2324 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2325
2326 2002-10-13 Adam Fedor <fedor@gnu.org>
2327
2328 * source.c (print_source_lines): Update comments.
2329
2330 2002-10-13 Adam Fedor <fedor@gnu.org>
2331
2332 * valops.c (value_of_local): New function.
2333 (value_of_this): Use it.
2334 * value.h (value_of_local): Declared.
2335
2336 2002-10-13 Adam Fedor <fedor@gnu.org>
2337
2338 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2339 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2340
2341 2002-10-12 Adam Fedor <fedor@gnu.org>
2342
2343 * language.c (binop_result_type): Add language_objc to case.
2344 (integral_type): Likewise.
2345 (character_type): Likewise.
2346 (string_type): Likewise.
2347 (boolean_type): Likewise.
2348 (structured_type): Likewise.
2349 (binop_type_check): Likewise.
2350
2351 2002-10-11 Adam Fedor <fedor@gnu.org>
2352
2353 * printcmd.c (address_info): Print 'self' for ObjC.
2354
2355 2002-10-11 Adam Fedor <fedor@gnu.org>
2356
2357 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2358 OP_SELF.
2359
2360 2002-10-11 Adam Fedor <fedor@gnu.org>
2361
2362 * language.h (CAST_IS_CONVERSION): Add language_objc.
2363
2364 2002-10-11 Adam Fedor <fedor@gnu.org>
2365
2366 * defs.h (enum language): Add language_objc.
2367
2368 2002-10-11 Klee Dienes <kdienes@apple.com>
2369
2370 * corefile.c (read_memory_typed_address): New function.
2371 * gdbcore.h (read_memory_typed_address): Add prototype.
2372 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2373 to read a value destined for a CORE_ADDR, not read_memory_integer.
2374 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2375 (f77_get_dynamic_lowerbound): Ditto.
2376
2377 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2378
2379 * utils.c (string_to_core_addr): After turning string into
2380 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2381 which will do necessary sign-extension, etc.
2382
2383 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2384
2385 * c-exp.y (THIS): Delete token and grammar rule.
2386 (yylex): Don't return THIS.
2387 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2388 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2389 * demangle.c (cplus_markers): Update comment. Put '$'
2390 first. Remove CPLUS_MARKER.
2391 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2392 * jv-exp.y (THIS): Delete token and grammar rule.
2393 (yylex): Don't return THIS.
2394 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2395 * objc-exp.y (THIS): Delete token and grammar rule.
2396 (yylex): Don't return THIS.
2397 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2398 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2399 (read_member_functions): Likewise for opname.
2400 (read_tilde_fields): Use is_cplus_marker.
2401
2402 * defs.h (CPLUS_MARKER): Don't define.
2403 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2404 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2405 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2406 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2407 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2408
2409 * config/i386/tm-i386v4.h: Delete file.
2410 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2411 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2412 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2413 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2414 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2415 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2416 * config/i386/i386v4.mt (TM_FILE): Likewise.
2417 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2418
2419 2002-10-10 Marko Mlinar <markom@opencores.org>
2420
2421 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2422 accidentially not commited 2002-10-09
2423 * gdbarch.h, gdbarch.c: Re-generate.
2424
2425 2002-10-09 Marko Mlinar <markom@opencores.org>
2426
2427 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2428 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2429 * gdbarch.h, gdbarch.c: Re-generate.
2430
2431 2002-10-08 Petr Sorfa <petrs@caldera.com>
2432
2433 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2434
2435 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2436 so we can work on more than one compilation unit at a time. This
2437 helps prepare GDB to handle inter-CU die references.
2438 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2439 the code to be defined before struct comp_unit_head.
2440 (comp_unit_head): Added new members - offset, cu_head,
2441 begin_die, next and dwarf2_abbrevs.
2442 (dwarf2_abbrevs): Removed single static var; now member of
2443 struct comp_unit_head.
2444 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2445 members.
2446 (psymtab_to_symtab_1): Changed to work with the new
2447 struct comp_unit_head.
2448 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2449 constructs the dwarf2_abbrevs[] inside the cu_header.
2450 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2451 dwarf2_abbrev table to clean up.
2452 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2453 handling of dwarf2_abbrevs inside the cu_header.
2454 (read_partial_die): Now supports the call to the new
2455 dwarf2_lookup_abbrev.
2456 (read_full_die): Now supports the call to the new
2457 dwarf2_lookup_abbrev.
2458
2459 2002-10-06 Christopher Faylor <cgf@redhat.com>
2460
2461 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2462 insure that shell variables, such as "transformed_name" are propagated
2463 to later shell statements in rule.
2464
2465 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2466
2467 * config/i386/nm-i386sco.h: Add protection against
2468 multiple-inclusion. Include "i386/nm-i386v.h".
2469 (REGISTER_U_ADDR): Remove define.
2470 (i386_register_u_addr): Remove prototype.
2471
2472 2002-10-04 Michael Snyder <msnyder@redhat.com>
2473
2474 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2475 before treating it as a single-step event.
2476
2477 2002-10-03 Adam Fedor <fedor@gnu.org>
2478
2479 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2480 (objc_demangle): Remove assignment in if statements, Replace
2481 free with xfree.
2482 (add_msglist): Likewise.
2483 (end_msglist): Likewise.
2484 (complare_selectors): Likewise.
2485 (selectors_info): Likewise.
2486 (compare_classes): Likewise.
2487 (classes_info): Likewise.
2488 (print_object_command): Likewise.
2489 (find_objc_msgcall_submethod): Replace PTR with void *.
2490 * objc-lang.h: Remove check for __STDC__.
2491
2492 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2493
2494 * ui-out.h (ui_out_field_fmt_int): New prototype.
2495 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2496 of field width and alignment.
2497 * stack.c (print_frame_info_base): When printing frame level, use
2498 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2499 PR gdb/192
2500
2501 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2502
2503 * MAINTAINERS: Add self to Write After Approval list.
2504
2505 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2506
2507 * infcmd.c (interrupt_target_command_wrapper): Delete.
2508 (interrupt_target_command): Make non static.
2509 (nofp_registers_info): Make static.
2510 * stack.c (return_command_wrapper): Delete.
2511 (return_command): Make non static.
2512
2513 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2514
2515 * event-top.c (gdb_setup_readline): New function. Code moved from
2516 _initialize_event_loop().
2517 (_initialize_event_loop): Call gdb_setup_readline().
2518
2519 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2520
2521 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2522 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2523 * gdbarch.h, gdbarch.c: Re-generate.
2524
2525 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2526
2527 Fix PR gdb/778
2528 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2529 before recursing.
2530 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2531 of fill_in_vptr_fieldno.
2532
2533 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2534
2535 * inferior.h (registers_info, stepi_command, nexti_command,
2536 continue_command, interrupt_target_command): Export from infcmd.c.
2537 * frame.h (args_info, selected_frame_level_changed_hook,
2538 return_command): Export from stack.c.
2539 * v850ice.c (stepi_command, nexti_command, continue_command): use
2540 prototypes from inferior.h.
2541 * tracepoint.c (registers_info, args_info, locals_info): Use
2542 prototypes from frame.h and inferior.h.
2543 * Makefile.in (mi-main.o): Add dependency on frame.h.
2544
2545 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2546
2547 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2548 value in register 3 adjusted by ppc_gp0_regnum.
2549
2550 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2551
2552 2002-10-02 Marko Mlinar <markom@opencores.org>
2553
2554 * MAINTAINERS: Add myself to the Write After Approval list.
2555
2556 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2557
2558 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2559 of the section for the N64 ABI, fixed.
2560
2561 * config/mips/tm-irix6.h: Include solib.h.
2562
2563 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2564
2565 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2566 GNU operators.
2567
2568 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2569
2570 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2571 and that "mi0" syntax has been removed.
2572
2573 2002-09-30 David Carlton <carlton@math.stanford.edu>
2574
2575 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2576 * ppc-sysv-tdep.c: #include "gdb_string.h".
2577 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2578 pacify GCC.
2579
2580 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2581
2582 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2583 "vrsave"'s register number.
2584
2585 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2586
2587 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2588 use frame_unwind_signed_register to obtain the PC.
2589 (mips_frame_chain): Handle a generic dummy frame.
2590 (mips_init_extra_frame_info): When a generic dummy frame, don't
2591 re-compute the frame base.
2592 (mips_pop_frame): Handle generic dummy frames.
2593 (mips_gdbarch_init): When generic dummy frames, set
2594 use_generic_dummy_frames, push_dummy_frame to
2595 generic_push_dummy_frame, pc_in_call_dummy to
2596 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2597 generic_save_dummy_frame_tos.
2598
2599 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2600
2601 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2602 against TOP when TOP was explictly set.
2603 (generic_push_dummy_frame): Set TOP to zero.
2604
2605 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2606
2607 * event-loop.c (start_event_loop): Rename variable 'result' to
2608 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2609
2610 2002-09-30 Keith Seitz <keiths@redhat.com>
2611
2612 * gdb-events.sh (selected_thread_changed): New event.
2613 * gdb-events.c: Regenerated.
2614 * gdb-events.h: Regenerated.
2615
2616 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2617
2618 * MAINTAINERS: Add self to Write After Approval list.
2619
2620 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2621
2622 * disasm.c: New file.
2623 * disasm.h: New file.
2624 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2625 (compare_lines): Ditto.
2626 (dump_insns): Ditto.
2627 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2628 argument.
2629 (do_assembly_only): Ditto.
2630 (do_disassembly): Renamed to gdb_disassembly and moved to
2631 disasm.c. Sdded uiout argument.
2632 * Makefile.in: Add new files. Reorder SFILES list. Update
2633 dependencies. Include libgdb.a later in the insight executable.
2634
2635 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2636
2637 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2638 bfd/elf64-alpha-fbsd.c.
2639
2640 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2641
2642 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2643 i386gnu-tdep.c.
2644
2645 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2646
2647 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2648 __FUNCTION__.
2649 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2650 function name.
2651 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2652 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2653 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2654 (S_msg_sig_post_reply): Ditto.
2655
2656 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2657
2658 * sh-tdep.c (sh_use_struct_convention): Use definition according
2659 to ABI.
2660 (sh_push_arguments): Store in register with correct endianess.
2661 (sh_default_store_return_value): Ditto.
2662 (sh_gdbarch_init): Set sizeof long double to 8.
2663
2664 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2665
2666 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2667 Fix some whitespace problems.
2668
2669 2002-09-27 David Carlton <carlton@math.stanford.edu>
2670
2671 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2672 (mcore-tdep.o): Ditto.
2673 (ns32k-tdep.o): Ditto.
2674 (ns32knbsd-tdep.o): Ditto.
2675 (sh3-rom.o): Ditto.
2676 (vax-tdep.o): Ditto.
2677 * cris-tdep.c: #include "gdb_string.h"
2678 * mcore-tdep.c: Ditto.
2679 * ns32k-tdep.c: Ditto.
2680 * ns32knbsd-tdep.c: Ditto.
2681 * sh3-rom.c: Ditto.
2682 * vax-tdep.c: Ditto.
2683
2684 2002-09-27 David Carlton <carlton@math.stanford.edu>
2685
2686 * config/djgpp/fnchange.lst: Add entries for
2687 gdb/testsuite/gdb.c++/m-static files.
2688
2689 2002-09-27 Jim Wilson <wilson@redhat.com>
2690
2691 * MAINTAINERS: Add myself to the Write After Approval list.
2692
2693 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2694
2695 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2696
2697
2698 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2699
2700 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2701 frame.
2702
2703 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2704
2705 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2706 (rs6000_struct_return_address): Delete variable.
2707 (rs6000_store_struct_return): Update.
2708 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2709 deprecated_extract_struct_value_address.
2710 (rs6000_frame_align): New function.
2711 (rs6000_gdbarch_init): Set frame_align.
2712
2713 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2714
2715 From Grace Sainsbury <graces@redhat.com>:
2716 * Makefile.in (gdbtk-main.o): New target.
2717 (gdb.o): New target.
2718 (main_h): Define.
2719 (main.o): Update dependencies.
2720 (gdb$(EXEEXT)): Add gdb.o.
2721 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2722 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2723 (SUBDIR_GDBTK_CLEAN): Set.
2724 (install-gdbtk): Install the insight binary.
2725 (uninstall-gdbtk): New target.
2726 (all-gdbtk, clean-gdbtk): New rule.
2727 * top.c (use_windows): Default to zero.
2728 * main.c: Include "main.h".
2729 (main): Delete.
2730 (struct captured_main_args): Delete.
2731 (gdb_main): New function.
2732 * main.h: New file.
2733 * gdb.c: New File.
2734
2735 2002-09-25 Andrew Cagney <cagney@redhat.com>
2736
2737 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2738 (frame_map_regnum_to_name): New function.
2739 (frame_map_name_to_regnum): New function.
2740 * frame.h (frame_map_name_to_regnum): Declare.
2741 (frame_map_regnum_to_name): Declare.
2742 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2743 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2744 * parse.c: Do not include "builtin-regs.h".
2745 (target_map_name_to_register): Delete function.
2746 (write_dollar_variable): Use frame_map_name_to_regnum.
2747 * parser-defs.h (target_map_name_to_register): Delete declaration.
2748 * expprint.c: Include "frame.h".
2749 (print_subexp): Use frame_map_regnum_to_name.
2750 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2751 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2752
2753 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2754
2755 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2756 wasn't saved, and the next innermost frame is a dummy, return the
2757 dummy frame's link register.
2758
2759 2002-09-24 Jim Blandy <jimb@redhat.com>
2760
2761 Fix from Paul Breed:
2762 * main.c (captured_main): Add a `break' after the case for 'b'.
2763
2764 2002-09-24 Keith Seitz <keiths@redhat.com>
2765
2766 * varobj.c (c_type_of_child): Use get_target_type instead
2767 of TYPE_TARGET_TYPE.
2768
2769 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2770
2771 * source.c (get_current_or_default_source_symtab_and_line): Remove
2772 function.
2773 (set_default_source_symtab_and_line): New function. Attempts to
2774 determine a source file to list lines from if one is not currently
2775 defined.
2776 (get_current_source_symtab_and_line): Initialize sal.pc and
2777 sal.end fields.
2778 (set_current_source_symtab_and_line): Mark argument as const.
2779 * source.h: Update declarations and comments.
2780 * linespec.c (decode_line_1): Replace call to removed routine above.
2781 * stack.c (print_frame_info_base): Ditto.
2782 * cli/cli-cmds.c (edit_command): Ditto.
2783 (list_command): Ditto.
2784
2785 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2786
2787 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2788 sal.pc and sal.end fields.
2789 (get_current_or_default_source_symtab_and_line): Ditto.
2790 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2791 so we do not cause a new source symtab to be searched for (reverting an
2792 unintentional change from the 2002-09-20 patch).
2793 * scm-lang.c (scm_unpac): Ditto.
2794
2795 2002-09-21 Andrew Cagney <cagney@redhat.com>
2796
2797 * complaints.c (symfile_explanations): Remove new-line from
2798 ``isolated_message''.
2799 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2800 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2801
2802 2002-09-20 Nick Clifton <nickc@redhat.com>
2803
2804 * NEWS: Announce that V850EA ISA is no longer supported.
2805 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2806
2807 2002-09-20 David Carlton <carlton@math.stanford.edu>
2808
2809 * Makefile.in (c-lang.o): Correct dependencies.
2810 (utils.o): Gather dependencies.
2811 (charset.o): Move.
2812 * c-lang.c: #include "gdb_string.h"
2813
2814 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2815
2816 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2817 * cli/cli-cmds.c (list_command): New function. Implements the new
2818 cli edit command.
2819 (_init_cli_cmds): Add new command definition.
2820 * gdb.1: Document edit command.
2821 * doc/gdb.texinfo: Document edit command.
2822
2823 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2824
2825 * source.c: Make global variables current_source_symtab and
2826 current_source_line static.
2827 (list_command): Moved to cli/cli-cmds.c.
2828 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2829 (get_first_line_listed): New accessor function.
2830 (get_lines_to_list): New accessor function.
2831 (get_current_source_symtab_and_line): New function. Retrieves the
2832 position in the source code that we consider current.
2833 (get_current_or_default_source_symtab_and_line): New function.
2834 Like the above but attempts to determine a default position if one
2835 is not currently defined.
2836 (set_current_source_symtab_and_line): New function. Sets the source
2837 code position considered current and returns the previously set one.
2838 (clear_current_source_symtab_and_line): Reset stored information about
2839 a current source line.
2840 (_initialize_source): Remove registration for the "list" command and
2841 its alias.
2842 * source.h: Add declarations for the new functions above.
2843 * symtab.h: Remove declarations for the global variables mentioned
2844 above.
2845 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2846 obtain current source line.
2847 * linespec.c (decode_line_1): Ditto.
2848 * macroscope.c (default_macro_scope): Ditto.
2849 * scm-lang.c (scm_unpac): Ditto.
2850 * stack.c (print_frame_info_base): Ditto.
2851 * symfile.c (clear_symtab_users): Ditto.
2852 * symtab.c (decode_line_spec): Ditto.
2853 * cli/cli-cmds.c (list_command): Moved here from source.c.
2854 (ambiguous_line_spec): Moved here from source.c.
2855 (_init_cli_cmds): Add definition for "list" and its alias.
2856 * Makefile.in: Update dependencies.
2857
2858 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2859
2860 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2861 with what gcc thinks is correct.
2862
2863 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2864
2865 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2866 multiple register push instruction.
2867
2868 2002-09-19 Jim Blandy <jimb@redhat.com>
2869
2870 Add support for distinct host and target character sets.
2871 * charset.c, charset.h: New files.
2872 * c-exp.y: #include "charset.h".
2873 (yylex): Convert character and string literals to the target
2874 character set, before returning them as the semantic value of the
2875 token.
2876 * c-lang.c: #include "charset.h".
2877 (c_emit_char): Use charset-specific methods to recognize
2878 characters with backslash escape forms, to decide which characters
2879 to print literally and which to print using numeric escape
2880 sequences, and to convert target characters to host characters
2881 before printing.
2882 * utils.c: #include "charset.h".
2883 (no_control_char_error): New function.
2884 (parse_escape): Use charset-specific methods to recognize
2885 backslash escapes, parse `control character' notation, and convert
2886 characters from the host character set to the target character set.
2887 * configure.in: Set the default host character set.
2888 Check where to find iconv, and what its argument types might be.
2889 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2890 * Makefile.in (SFILES): List charset.c.
2891 (COMMON_OBS): List charset.o.
2892 (charset.o): New rule.
2893 (charset_h): New header dependency variable.
2894 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2895 (LIBICONV): New variable, set by configure.
2896 (CLIBS): Include $(LIBICONV) here.
2897 * aclocal.m4, config.in, configure: Regenerated.
2898
2899 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2900
2901 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2902 bison 1.35 warning.
2903
2904 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2905
2906 * gdb_mbuild.sh: New file.
2907
2908 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2909
2910 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2911
2912 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2913
2914 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2915 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2916 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2917 valops.c, value.h: Revert previous change.
2918
2919 2002-09-18 Michael Snyder <msnyder@redhat.com>
2920
2921 Preliminary support for Objective-C:
2922 * defs.h (language_objc): New enum value.
2923 (puts_filtered_tabular): Declaration only, exported from utils.c.
2924 (skip_quoted): Delete, declared in completer.h.
2925 * c-exp.y: Include completer.h.
2926 * p-exp.y: Ditto.
2927 * jv-exp.y: Ditto.
2928 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2929 New operator enum values.
2930 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2931 * language.c (binop_result_type): Handle language_objc case.
2932 (integral_type, character_type, string_type, boolean_type,
2933 structured_type, binop_type_check): Ditto.
2934 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2935 (struct objc_specific): Add to general_symbol_info.
2936 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2937 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2938 * parser-defs.h (struct objc_class_str): New struct type.
2939 (start_msglist, end_msglist, add_msglist): Declaration only,
2940 exported from objc-lang.c.
2941 * value.h (value_of_local, value_nsstring,
2942 call_function_by_hand_expecting_type): Exported from valops.c.
2943 * valops.c (find_function_addr): Export.
2944 (call_function_by_hand_expecting_type): New function.
2945 (value_of_local): New function.
2946 * symfile.c (init_filename_language_table): Add ".m" extension
2947 for Objective-C.
2948 * utils.c (puts_filtered_tabular): New function.
2949 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2950 (set/show demangle): Extend help-string to refer to ObjC.
2951 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2952 * stabsread.c (symbol_reference_defined): Objective-C symbols
2953 may contain colons: make allowances when scanning stabs strings
2954 for colons.
2955 (objc_find_colon): New function.
2956 * printcmd.c (address_info): If language == objc then print
2957 "self" instead of "this".
2958 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2959 OP_NSSTRING, and OP_SELF.
2960 (prefixify_subexp): Ditto.
2961 * source.c (print_source_lines): Mention objc in comment.
2962 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2963 method names.
2964
2965 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2966
2967 * complaints.h: Update copyright.
2968 (struct complaints): Declare.
2969 (struct complaint): Make `message' constant.
2970 (internal_complaint): Declare.
2971 (complaint): Declare.
2972 (complaint_root): Delete declaration.
2973 (symfile_complaints): Delete declaration.
2974 (struct complaints): Add opaque declaration.
2975 (clear_complaints): Add a complaints parameter.
2976 * complaints.c: Update copyright.
2977 (enum complaint_series): Define.
2978 (complaint_root): Delete.
2979 (struct complaints): Define.
2980 (complaint_sentinel, symfile_complaint_book): New variables.
2981 (symfile_explanations, symfile_complaints): New variables.
2982 New variables.
2983 (get_complaints): New function.
2984 (vcomplaint): New function.
2985 (complaint): New function.
2986 (internal_complaint): New function.
2987 (complain): Call vcomplain with symfile_complaint.
2988 (clear_complaints): Rewrite.
2989 (_initialize_complaints): Use add_setshow_command.
2990 * Makefile.in (complaints.o): Update dependencies.
2991 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2992 to call to clear_complaints.
2993 (new_symfile_objfile, reread_symbols): Ditto.
2994 (oldsyms_complaint): Delete.
2995 (empty_symtab_complaint, unknown_option_complaint): Delete.
2996 (free_named_symtabs): Use complaint instead of complain.
2997
2998 2002-09-18 Michael Snyder <msnyder@redhat.com>
2999
3000 Contributed by Apple Computer, Inc. Merged with current sources
3001 by Adam Fedor <fedor@doc.com> [cagney].
3002
3003 * objc-lang.c: First clean-up round: comments, indentation.
3004 * objc-lang.h: Ditto.
3005 * objc-lang.y: Ditto.
3006
3007 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3008
3009 * maint.c (maintenance_internal_error): Print the parameter as the
3010 error message.
3011 (maintenance_internal_warning): New function.
3012 (_initialize_maint_cmds): Add command `maint internal-warning'.
3013
3014 * defs.h (internal_warning, internal_vwarning): Declare.
3015 * utils.c (struct internal_problem): Define.
3016 (internal_vproblem): New function.
3017 (internal_warning): New function.
3018 (internal_vwarning): New function.
3019 (internal_warning_problem, internal_error_problem): New variables.
3020 (internal_verror): Just call internal_vproblem.
3021
3022 2002-09-18 Michael Snyder <msnyder@redhat.com>
3023
3024 * objc-lang.c: New file, support for Objective-C.
3025 Preliminary check-in, not yet integrated into gdb.
3026 * objc-lang.h: New file.
3027 * objc-exp.y: New file.
3028
3029 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3030
3031 * infrun.c (signal_stop_update): Convert definition to ISO C.
3032 (signal_print_update): Ditto.
3033 (signal_pass_update): Ditto.
3034 * inflow.c (terminal_save_ours): Ditto.
3035
3036 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3037 comments.
3038
3039 * config/djgpp/fnchange.lst: Handle name clashes between
3040 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3041 bfd/coff-tic80.c.
3042
3043 * i386-linux-tdep.h: Fix tipo.
3044
3045 2002-09-18 Adam Fedor <fedor@gnu.org>
3046
3047 * MAINTAINERS: Add myself to the Write After Approval list.
3048
3049 2002-09-18 Jim Blandy <jimb@redhat.com>
3050
3051 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3052 texthigh and textlow to reader-specific structs caused
3053 objfile_relocate to miss them. This is fixable, but the work that
3054 the change was supposed to prepare GDB for never got done anyway.
3055
3056 2002-09-18 David Carlton <carlton@math.stanford.edu>
3057
3058 * MAINTAINERS: Alphabetize Write After Approval list.
3059
3060 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
3061
3062 Fix PR gdb/709
3063 * values.c (value_static_field): Call read_var_value.
3064
3065 2002-09-18 Andrew Cagney <ac131313@redhat.com>
3066
3067 * valops.c (hand_function_call): Align the initial stack pointer
3068 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3069 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3070 return value.
3071 * mips-tdep.c (mips_frame_align): New function.
3072 (mips_gdbarch_init): Set frame_align.
3073 * gdbarch.sh (FRAME_ALIGN): New method.
3074 * gdbarch.h, gdbarch.c: Re-generate.
3075
3076 2002-09-18 Michal Ludvig <mludvig@suse.cz>
3077
3078 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3079 registers.
3080
3081 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3082
3083 * NEWS: Mention that MIPS $fp behavior changed.
3084 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3085 reference to FP_REGNUM.
3086 (mipsnbsd_cannot_store_register): Ditto.
3087 * mips-linux-nat.c: Update copyright.
3088 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3089 (mips_linux_cannot_store_register): Ditto.
3090 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3091 * config/mips/tm-mips.h: Update copyright.
3092 (FP_REGNUM): Delete macro.
3093 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3094 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3095 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3096 (mips_r3041_reg_names, mips_r3051_reg_names)
3097 (mips_r3081_reg_names): Replace "fp" with "".
3098 Fix PR gdb/480.
3099
3100 2002-09-17 Theodore A. Roth <troth@verinet.com>
3101
3102 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3103 generic_read_register_dummy() (PR gdb/703).
3104 (avr_push_return_address): #if 0 out unused vars.
3105 (avr_gdbarch_init): Enable use of avr_push_return_address().
3106
3107 2002-09-17 Michael Snyder <msnyder@redhat.com>
3108
3109 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3110 RTE will take care of it.
3111
3112 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3113
3114 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3115 invalid, return SP_REGNUM.
3116
3117 2002-09-17 Michael Snyder <msnyder@redhat.com>
3118
3119 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3120 point registers without sign extension.
3121
3122 2002-09-17 Andrew Cagney <cagney@redhat.com>
3123
3124 * blockframe.c (deprecated_read_register_dummy): Rename
3125 generic_read_register_dummy.
3126 * frame.c (frame_unwind_signed_register): New function.
3127 (frame_unwind_unsigned_register): New function.
3128 * frame.h (frame_unwind_signed_register): Declare.
3129 (frame_unwind_unsigned_register): Declare.
3130 (deprecated_read_register_dummy): Rename
3131 generic_read_register_dummy.
3132
3133 * h8300-tdep.c (h8300_frame_chain): Update.
3134 (h8300_frame_saved_pc): Update.
3135 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3136 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3137 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3138 (s390_frame_chain): Update.
3139 * v850-tdep.c (v850_find_callers_reg): Update.
3140 (v850_frame_saved_pc): Update.
3141 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3142 (m32r_find_callers_reg): Update.
3143 (m32r_frame_saved_pc): Update.
3144 * sh-tdep.c (sh_find_callers_reg): Update.
3145 (sh64_get_saved_pr): Update.
3146 (sh_init_extra_frame_info): Update.
3147 (sh_init_extra_frame_info): Update.
3148 (sh64_init_extra_frame_info): Update.
3149 (sh64_init_extra_frame_info): Update.
3150 * mcore-tdep.c (mcore_find_callers_reg): Update.
3151 (mcore_frame_saved_pc): Update.
3152 (mcore_init_extra_frame_info): Update.
3153 * i386-tdep.c (i386_frame_saved_pc): Update.
3154 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3155 (ia64_init_extra_frame_info): Update.
3156 (ia64_init_extra_frame_info): Update.
3157 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3158 * cris-tdep.c (cris_init_extra_frame_info): Update.
3159 * avr-tdep.c (avr_frame_chain): Update.
3160 (avr_init_extra_frame_info): Update.
3161 (avr_frame_saved_pc): Update.
3162 * arm-tdep.c (arm_find_callers_reg): Update.
3163 (arm_init_extra_frame_info): Update.
3164 (arm_frame_saved_pc): Update.
3165
3166 2002-09-17 Tom Tromey <tromey@redhat.com>
3167
3168 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3169 is "'".
3170
3171 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3172
3173 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3174 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3175 NEXT_PROLOGUE_INSN.
3176 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3177 NEXT_PROLOGUE_INSN.
3178
3179 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3180
3181 * osfsolib.c: Remove file, replaced by solib-osf.c.
3182 * Makefile.in: Remove compilation rules for osfsolib.c.
3183
3184 2002-09-16 David Carlton <carlton@math.stanford.edu>
3185
3186 * cp-valprint.c (cp_print_class_method): Correct args to
3187 check_stub_method_group.
3188
3189 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3190
3191 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3192 `set architecture'. Unify naming convention of functions.
3193 (h8300_skip_prologue): Improve prologue analysis.
3194 (h8300_push_arguments): Rewritten to more closely match GCC's
3195 bizarre argument-passing behavior, along with the comment describing
3196 said behavior.
3197 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3198 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3199 sim, remote-e7000.c, remote-hms.c and remote.c
3200
3201 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3202
3203 * i386-tdep.c (gdb_print_insn_i386): Removed.
3204 (i386_print_insn): New function.
3205 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3206 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3207 tm_print_insn_info.
3208
3209 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3210
3211 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3212 zero.
3213
3214 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3215
3216 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3217 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3218 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3219
3220 2002-09-13 Christopher Faylor <cgf@redhat.com>
3221
3222 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3223
3224 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3225
3226 * gdbtypes.c (check_stub_method): Make static.
3227 (check_stub_method_group): New function.
3228 * gdbtypes.h: Update prototypes.
3229 * cp-support.c: New file.
3230 * cp-support.h: New file.
3231
3232 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3233 (update_method_name_from_physname): New function.
3234 (read_member_functions): Correct method names for operators
3235 and v3 constructors/destructors. Separate v2 constructors and
3236 destructors.
3237 * Makefile.in (stabsread.o): Update dependencies.
3238 (SFILES): Add cp-support.c.
3239 (COMMON_OBS): Add cp-support.o.
3240 (cp_support_h, cp-support.o): Add.
3241
3242 * cp-valprint.c (cp_print_class_method): Call
3243 check_stub_method_group instead of check_stub_method. Remove
3244 extraneous QUITs.
3245 * p-valprint.c (pascal_object_print_class_method): Likewise.
3246 * valops.c (search_struct_method): Likewise.
3247 (find_method_list, value_struct_elt_for_reference): Likewise.
3248
3249 2002-09-13 Andrew Cagney <cagney@redhat.com>
3250
3251 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3252 * gdbarch.h, gdbarch.c: Regenerate.
3253
3254 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3255
3256 * frame.c (find_saved_register): Delete function.
3257 * frame.h (find_saved_register): Delete declaration.
3258 Fix PR gdb/631.
3259
3260 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3261
3262 * mips-tdep.c (read_next_frame_reg): Re-hack using
3263 frame_register_unwind.
3264
3265 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3266
3267 * mips-tdep.c (mips_get_saved_register): Re-hack using
3268 frame_register_unwind.
3269
3270 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3271
3272 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3273 vector. Will be useful for Interix.
3274 * gdbarch.h, gdbarch.c: Regenerate.
3275
3276 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3277 name of the malloc function by NAME_OF_MALLOC.
3278
3279 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3280
3281 * value.h (find_function_in_inferior): Add const keyword to
3282 one of the parameters. Allows us to invoke this function with
3283 a const char *.
3284 * valops.c (find_function_in_inferior): Likewise.
3285
3286 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3287
3288 * exec.c (xfer_memory): Fix compilation warning with old versions
3289 of GCC.
3290 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3291
3292 2002-09-12 David Carlton <carlton@math.stanford.edu>
3293
3294 * symtab.h: Run through gdb_indent.h.
3295 Add 2002 to Copyright year list.
3296
3297 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3298
3299 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3300 mach constants.
3301 * MAINTAINERS: Add myself to write after approval list.
3302
3303 2002-09-11 J. Brobecker <brobecker@gnat.com>
3304
3305 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3306
3307 2002-09-11 J. Brobecker <brobecker@gnat.com>
3308
3309 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3310 Interix.
3311
3312 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3313
3314 * procfs.c (do_detach): Clear current signal, not just fault.
3315 Corrects problem with breakpoint trap signal leaking to detached
3316 process on Tru64.
3317
3318 2002-09-10 Michael Snyder <msnyder@redhat.com>
3319
3320 * buildsym.c (finish_block): Protect against null pointer.
3321
3322 2002-09-10 Andrew Cagney <cagney@redhat.com>
3323
3324 * infcmd.c (default_print_registers_info): Send all output to
3325 ``file'' instead of ``gdb_stdout''.
3326
3327 2002-09-10 Michael Snyder <msnyder@redhat.com>
3328
3329 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3330 LONGEST, and use signed register read (addresses are sign-
3331 extended for mips).
3332
3333 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3334
3335 * event-loop.c (gdb_do_one_event): Make public.
3336 * event-loop.h (gdb_do_one_event): Declare.
3337
3338 2002-09-10 Jeff Law <law@redhat.com>
3339
3340 * infttrace.c (child_resume): Simplify and rework to avoid
3341 TT_PROC_CONTINUE.
3342
3343 2002-09-09 Fred Fish <fnf@intrinsity.com>
3344
3345 * printcmd.c (print_scalar_formatted): "len" is the number of
3346 target bytes, NOT the number of target bits.
3347
3348 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3349
3350 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3351 * top.c (init_main): Set rl_terminal_name.
3352
3353 2002-09-08 Aidan Skinner <aidan@velvet.net>
3354
3355 * ada-lang.c (ada_array_bound, ada_type_match,
3356 _initialize_ada_language): Fix K&R definitions.
3357 * ada-tasks.c (get_current_task): Fix K&R definitions.
3358 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3359
3360 2002-09-07 Christopher Faylor <cgf@redhat.com>
3361
3362 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3363 Add XP.
3364
3365 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3366
3367 * i386-tdep.c (i386_register_virtual_type,
3368 i386_register_convertible, i386_register_convert_to_virtual,
3369 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3370 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3371 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3372 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3373 Don't set push_arguments twice.
3374
3375 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3376 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3377 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3378 sigtramp_end to NULL.
3379 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3380 defines.
3381 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3382
3383 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3384 whitespace.
3385
3386 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3387 * gdbarch.h, gdbarch.c: Re-generate.
3388 * blockframe.c (find_pc_sect_partial_function): Convert to use
3389 SIGTRAMP_START_P predicate.
3390
3391 2002-09-05 Michael Snyder <msnyder@redhat.com>
3392
3393 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3394 generic_dummy_frame method and old method. Also distinguish
3395 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3396 (arm_extract_return_value): Use new regcache method.
3397
3398 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3399 adjustment that doesn't conform to the ABI.
3400 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3401 saved regcache, not from current regcache.
3402
3403 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3404
3405 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3406 * README: Update.
3407
3408 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3409
3410 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3411 if arm_apcs_32 is false.
3412
3413 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3414
3415 GDB 5.3 branch created.
3416
3417 2002-09-03 Theodore A. Roth <troth@verinet.com>
3418
3419 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3420 generic_unwind_get_saved_register.
3421
3422 2002-09-03 David Carlton <carlton@math.stanford.edu>
3423
3424 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3425 argument (PR gdb/653). Update call to smash_to_method_type.
3426 (read_structure_scope): Update call to dwarf2_add_member_fn.
3427
3428 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3429
3430 * x86-64-linux-tdep.c: Include gdb_string.h
3431 * x86-64-linux-nat.c: Ditto.
3432
3433 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3434
3435 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3436 when YYDEBUG is set to 1.
3437 * c-exp.y: Likewise.
3438 * f-exp.y: Likewise.
3439 * jv-exp.y: Likewise.
3440 * m2-exp.y: Likewise.
3441 * p-exp.y: Likewise.
3442
3443 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3444
3445 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3446 dependency list.
3447 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3448 solib_svr4_fetch_link_map_offsets to
3449 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3450 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3451 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3452 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3453 solib-svr4.o, and solib-legacy.o.
3454 * config/i386/tm-nbsd.h: Include solib.h.
3455
3456 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3457
3458 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3459 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3460 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3461 comment noting that this needs its own target configuration.
3462 * config/i386/nbsd.mt: New file.
3463 * config/i386/nbsdaout.mt: Remove.
3464 * config/i386/nbsdelf.mt: Ditto.
3465 * config/i386/tm-nbsdaout.h: Ditto.
3466
3467 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3468
3469 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3470 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3471 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3472 tdep->sigtramp_end.
3473 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3474 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3475 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3476
3477 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3478
3479 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3480 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3481 * i386-tdep.h (i386bsd_init_abi): New prototype.
3482 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3483 function declaration.
3484 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3485 for NetBSD-a.out or NetBSD-ELF.
3486 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3487 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3488 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3489 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3490 and nbsd-tdep.h.
3491 (i386nbsd_pc_in_sigtramp): New function.
3492 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3493 i386nbsd_pc_in_sigtramp.
3494 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3495 and i386nbsdelf_init_abi OS ABI handlers.
3496 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3497 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3498
3499 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3500
3501 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3502 registers if the target really has them.
3503
3504 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3505
3506 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3507 than nbsd-tdep.h.
3508
3509 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3510
3511 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3512 list.
3513 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3514 (alphanbsd_skip_sigtramp_frame): New functions.
3515 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3516 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3517 to alphanbsd_sigcontext_addr.
3518
3519 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3520
3521 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3522 list.
3523 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3524 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3525 nbsd_pc_in_sigtramp.
3526 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3527 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3528 * nbsd-tdep.c: Include gdb_string.h.
3529 (nbsd_pc_in_sigtramp): New function.
3530 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3531 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3532 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3533 ppcnbsd_pc_in_sigtramp.
3534 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3535 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3536 shnbsd_pc_in_sigtramp.
3537 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3538 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3539 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3540
3541 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3542
3543 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3544 watchpoints to NULL.
3545 (insert_breakpoints): set val field of watchpoints if NULL.
3546
3547
3548 2002-08-29 Jim Blandy <jimb@redhat.com>
3549
3550 * symtab.c (lookup_symbol_aux): In the cases where we find a
3551 minimal symbol of an appropriate name and use its address to
3552 select a symtab to read and search, use `name' (as passed to us)
3553 as the demangled name when searching the symtab's global and
3554 static blocks, not the minsym's name.
3555
3556 2002-08-29 Keith Seitz <keiths@redhat.com>
3557
3558 * stack.c (print_frame_info_base): Always set current_source_symtab
3559 and current_source_line.
3560
3561 2002-08-29 Donn Terry <donnte@microsoft.com>
3562
3563 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3564
3565 2002-08-28 Keith Seitz <keiths@redhat.com>
3566
3567 * stack.c (select_frame): Add FIXME concerning selected-frame
3568 events.
3569 (select_frame_command): Send selected-frame-level-changed
3570 event notification, but only if the level actually changed.
3571 (up_silently_base): Add selected-frame-level-changed event
3572 notification.
3573 (down_silently_base): Likewise.
3574
3575 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3576
3577 * Makefile.in: Update dependencies for all gdb/*.c files.
3578
3579 2002-08-27 Tom Tromey <tromey@redhat.com>
3580
3581 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3582 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3583 Update dependencies.
3584 * i387-tdep.c: Include gdb_string.h.
3585 * osabi.c: Likewise.
3586 * i386-linux-nat.c: Likewise.
3587 * lin-lwp.c: Likewise.
3588 * ax-gdb.c: Likewise.
3589 * signals/signals.c: Likewise.
3590 * jv-valprint.c: Likewise.
3591 * p-lang.c: Likewise.
3592 * c-valprint.c: Likewise.
3593 * cp-abi.c: Likewise.
3594
3595 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3596
3597 * cli/cli-script.h (copy_command_lines): Export.
3598 * breakpoint.c: Include cli/cli-script.h.
3599 * Makefile.in (breakpoint.o): Update dependencies.
3600
3601 2002-08-26 Michael Snyder <msnyder@redhat.com>
3602
3603 * breakpoint.c (insert_breakpoints): Protect all references
3604 to 'process_warning'. Shorten long lines.
3605
3606 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3607
3608 * cli/cli-script.c (copy_command_lines): New function.
3609 * defs.h (copy_command_lines): Export.
3610 * testsuite/gdb.base/commands.exp: New tests for commands
3611 attached to a temporary breakpoint, and for commands that
3612 delete the breakpoint they are attached to.
3613
3614 2002-08-26 Michael Snyder <msnyder@redhat.com>
3615
3616 * breakpoint.c (bpstat_stop_status): Instead of copying the
3617 pointer to the breakpoint commands struct, make a new copy
3618 of the struct and point to that.
3619 (bpstat_clear): Free the commands struct.
3620 (bpstat_clear_actions): Free the commands struct.
3621 (bpstat_do_actions): Free the command actions. Also execute
3622 the local cleanups, instead of deleting them.
3623 (delete_breakpoint): Leave the commands field of the bpstat
3624 chain alone -- it will be freed later.
3625
3626 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3627
3628 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3629 deleted in 2002-08-20 commit. This function is still used by
3630 ppc-linux-nat.c.
3631
3632 2002-08-26 Keith Seitz <keiths@redhat.com>
3633
3634 * gdb-events.sh: Add selected-frame-level-changed event.
3635 * gdb-events.c: Regenerated.
3636 * gdb-events.h: Regenerated.
3637
3638 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3639
3640 Fix PR gdb/393:
3641 * inflow.c (terminal_save_ours): New function to save terminal
3642 settings.
3643 * inferior.h (terminal_save_ours): Declare.
3644 * target.c (debug_to_terminal_save_ours): New function.
3645 (cleanup_target): Defaults to_terminal_save_ours.
3646 (update_current_target): Inherit to_terminal_save_ours.
3647 (setup_target_debug): Set to_terminal_save_ours.
3648 * target.h (target_terminal_save_ours): New to save terminal settings.
3649 (target_ops): New member to_terminal_save_ours.
3650 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3651 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3652 * inftarg.c (init_child_ops): Likewise.
3653 * m3-nat.c (init_m3_ops): Likewise.
3654 * procfs.c (init_procfs_ops): Likewise.
3655 * wince.c (init_child_ops): Likewise.
3656 * win32-nat.c (init_child_ops): Likewise.
3657 * sol-thread.c (init_sol_thread_ops): Likewise.
3658
3659 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3660
3661 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3662 use regcache_* functions.
3663 (i386_gdbarch_init): Set store_return_value instead of
3664 deprecated_store_return_value.
3665
3666 * regcache.c (regcache_raw_write_signed,
3667 regcache_raw_write_unsigned): New functions.
3668 * regcache.h (regcache_raw_write_signed,
3669 regcache_raw_write_unsigned): New prototypes.
3670
3671 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3672
3673 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3674 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3675 source file dependencies. Cleanup corresponding generator rules.
3676
3677 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3678
3679 * regcache.h (register_offset_hack): Declare.
3680 (regcache_cooked_read_using_offset_hack): Declare.
3681 (regcache_cooked_write_using_offset_hack): Declare.
3682
3683 * regcache.c (register_offset_hack): New function.
3684 (regcache_cooked_read_using_offset_hack): New function.
3685 (regcache_cooked_write_using_offset_hack): New function.
3686 (regcache_dump): Check that the registers, according to their
3687 offset, are packed hard against each other.
3688 (cooked_xfer_using_offset_hack): New function.
3689
3690 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3691
3692 * regcache.c (struct regcache_descr): Add field register_type.
3693 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3694 in as a parameter
3695 (init_regcache_descr): Initialize register_type. Pass the descr
3696 to init_legacy_regcache_descr. Use register_type instead of
3697 REGISTER_VIRTUAL_TYPE.
3698 (register_type): New function.
3699 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3700 * regcache.h (register_type): Declare.
3701
3702 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3703
3704 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3705 instead of deprecated_store_return_value. Fix fallout from
3706 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3707
3708 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3709
3710 * regcache.c (max_register_size): New function.
3711 (init_legacy_regcache_descr): Ensure that max_register_size is
3712 large enough for REGISTER_VIRTUAL_SIZE.
3713 * regcache.h (max_register_size): Declare.
3714
3715 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3716
3717 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3718 store_return_value.
3719 (e500_extract_return_value): Change type of valbuf pointer to
3720 void.
3721
3722 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3723
3724 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3725 workaround.
3726
3727 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3728 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3729 long long) to prevent compiler warning on 64-bit systems.
3730
3731 2002-08-23 Andrew Cagney <cagney@redhat.com>
3732
3733 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3734 (DEPRECATED_STORE_RETURN_VALUE): New method.
3735 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3736 * gdbarch.h, gdbarch.c: Re-generate.
3737
3738 * values.c (set_return_value): Pass current_regcache to
3739 STORE_RETURN_VALUE.
3740 * arch-utils.h (legacy_store_return_value): Declare.
3741 * arch-utils.c (legacy_store_return_value): New function.
3742 (legacy_extract_return_value): Update parameters.
3743
3744 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3745 STORE_RETURN_VALUE.
3746 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3747 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3748 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3749 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3750 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3751 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3752 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3753 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3754 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3755 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3756
3757 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3758 * i386-tdep.c (i386_extract_return_value): Update.
3759 * arch-utils.c (legacy_extract_return_value): Update.
3760 * frv-tdep.c (frv_gdbarch_init): Update.
3761 * cris-tdep.c (cris_gdbarch_init): Update.
3762 * d10v-tdep.c (d10v_gdbarch_init): Update.
3763 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3764 * m68k-tdep.c (m68k_gdbarch_init): Update.
3765 * mcore-tdep.c (mcore_gdbarch_init): Update.
3766 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3767 * s390-tdep.c (s390_gdbarch_init): Update.
3768 * sparc-tdep.c (sparc_gdbarch_init): Update.
3769 * sh-tdep.c (sh_gdbarch_init): Update.
3770 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3771 * v850-tdep.c (v850_gdbarch_init): Update.
3772 * avr-tdep.c (avr_gdbarch_init): Update.
3773 * ia64-tdep.c (ia64_gdbarch_init): Update.
3774 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3775 * vax-tdep.c (vax_gdbarch_init): Update.
3776 * alpha-tdep.c (alpha_gdbarch_init): Update.
3777 * arm-tdep.c (arm_gdbarch_init): Update.
3778 * mips-tdep.c (mips_gdbarch_init): Update.
3779 * i386-tdep.c (i386_gdbarch_init): Update.
3780
3781 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3782
3783 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3784 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3785
3786 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3787
3788 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3789 problems.
3790
3791 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3792
3793 * infrun.c (handle_inferior_event): Move a comment outside of a
3794 function call, in order to avoid indent reformatting this part
3795 of the code in an unreadable way.
3796
3797 2002-08-23 Grace Sainsbury <graces@redhat.com>
3798
3799 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3800 when breakpoints fail. Move general breakpoint error messages to
3801 insert_breakpoints.
3802 * breakpoint.c (insert_breakpoints): Change warnings when
3803 breakpoints are nto inserted to specify the type. Remove call to
3804 memory_error when hardware breakpoints can't be inserted. Remove
3805 multiple calls to warning so all messages are sent to the user at
3806 once.
3807 (delete_breakpoints): Make insert error messsages more explicit.
3808
3809 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3810
3811 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3812 gdbserver/ChangeLog.
3813
3814 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3815
3816 * i386-tdep.c: Include "objfiles.h".
3817 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3818 skip_trampoline_code.
3819 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3820 (CPLUS_MARKER): Define to '.'.
3821
3822 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3823 member.
3824 (linux_corefile_thread_callback): Increase args->num_notes.
3825 (linux_make_note_section): Initialize thread_args.num_notes, and
3826 use it to determine whether notes for any threads were created.
3827
3828 2002-08-23 Donn Terry <donnte@microsoft.com>
3829
3830 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3831 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3832 and PCUNKILL.
3833 (write_with_trace): Conditionalize out the switch branch handling
3834 PCSHOLD if the corresponding macro is not defined. Likewise for
3835 PRSABORT and PRSTOP.
3836 This change will be needed by the Interix port.
3837
3838 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3839
3840 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3841 write_register wherever possible instead of manipulating the
3842 register bytes directly.
3843 Assign VALUE_CONTENTS to a variable and use that.
3844 The GPR numbers are now dependent on the architecture.
3845
3846 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3847
3848 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3849 ev_offset fields.
3850 (skip_prologue): Add support for BookE/e500 instructions.
3851 (e500_extract_return_value): New function.
3852 (frame_get_saved_regs): Add support for saving ev registers and
3853 pseudo gpr's.
3854 (e500_store_return_value): New function.
3855 (rs6000_gdbarch_init): Move up default intializations of
3856 deprecated_extract_return_value and store_return_value. Overwrite
3857 init of store_return_value with e500 specific version.
3858 Set extract_return_value for e500.
3859
3860 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3861
3862 * blockframe.c (generic_call_dummy_register_unwind): Use
3863 regcache_cooked_read to catch cases in which the variable is
3864 stored in a pseudo register.
3865
3866 2002-08-22 Andrew Cagney <cagney@redhat.com>
3867
3868 * NEWS: Mention that the i960 has been made obsolete.
3869 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3870 i960-tdep.c
3871 (remote-nrom.o): Obsolete target.
3872 (remote-nindy.o, i960-tdep.o): Ditto.
3873 * remote-nrom.c: Make file obsolete.
3874 * remote-nindy.c, remote-vx960.c: Ditto.
3875 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3876 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3877 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3878 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3879 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3880 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3881 i960-*-vxworks* obsolete.
3882 * MAINTAINERS: Note that the i960 is obsolete.
3883
3884 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3885
3886 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3887 detach to allow reinitialization.
3888
3889 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3890
3891 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3892 attempt).
3893
3894 2002-08-22 Jim Blandy <jimb@redhat.com>
3895
3896 * coffread.c (coff_symfile_read): Don't try to read the line
3897 number table from disk if the image file doesn't have a symbol
3898 table; we'll never actually look at the info anyway, and Windows
3899 ships DLL's with bogus file offsets for the line number data.
3900
3901 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3902
3903 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3904 an e500 executable.
3905
3906 2002-08-21 Michael Snyder <msnyder@redhat.com>
3907
3908 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3909 (MSYMBOL_SIZE): Replace macro with function.
3910 (DEFAULT_MIPS_TYPE): Delete unused macro.
3911 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3912 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3913
3914 2002-08-21 Jim Blandy <jimb@redhat.com>
3915
3916 * valops.c (value_cast): Simplify and correct logic for doing a
3917 static cast from a pointer to a base class to a pointer to a
3918 derived class.
3919
3920 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3921
3922 * infcmd.c (default_print_registers_info): Replace
3923 do_registers_info.
3924 (registers_info): Use gdbarch_print_registers_info instead of
3925 DO_REGISTERS_INFO.
3926 * inferior.h (default_print_registers_info): Replace
3927 do_registers_info.
3928 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3929 (DO_REGISTERS_INFO): Change to a predicate function.
3930 * gdbarch.h, gdbarch.c: Regenerate.
3931
3932 2002-08-21 Keith Seitz <keiths@redhat.com>
3933
3934 * gdb-events.sh: Add target-changed event.
3935 * gdb-events.c: Regenerated.
3936 * gdb-events.c: Regenerated.
3937 * valops.c (value_assign): Add target-changed event notification
3938 to inlval_register, lval_memory, and lval_reg_frame_relative.
3939
3940 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3941
3942 * NEWS: Add an entry regarding the improvement of the next/step
3943 operation on Alpha Tru64 multi-processor machines.
3944
3945 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3946
3947 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3948 directores.
3949 * Makefile.in: Update all _h macro definitions.
3950 * Makefile.in (install-gdbtk): Move to install section.
3951 (rdi-share/libangsd.a): Move to end of file.
3952
3953 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3954
3955 * frame.c (frame_register_unwind): When a register, set addrp to
3956 the register's byte.
3957
3958 2002-08-20 Michael Snyder <msnyder@redhat.com>
3959
3960 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3961 used locally, so move them from the target machine header to here.
3962 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3963 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3964 Make static.
3965 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3966
3967 2002-08-20 Andrew Cagney <cagney@redhat.com>
3968
3969 * NEWS: Mention that the Apollo line was made obsolete.
3970 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3971 m68*-hp-hpux* obsolete.
3972 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3973 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3974 * buildsym.c (make_blockvector): Make static.
3975 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3976 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3977 (ALLDEPFILES): Remove dstread.c.
3978 (dstread.o): Obsolete make rule.
3979 * dstread.c: Makefile obsolete.
3980 * dst.h: Ditto.
3981 * config/m68k/hp300hpux.mt: Ditto.
3982 * config/m68k/hp300hpux.mh: Ditto.
3983 * config/m68k/hp300bsd.mt: Ditto.
3984 * config/m68k/hp300bsd.mh: Ditto.
3985 * config/m68k/apollo68b.mt: Ditto.
3986 * config/m68k/apollo68v.mh: Ditto.
3987 * config/m68k/apollo68b.mh: Ditto.
3988
3989 2002-08-20 Michael Snyder <msnyder@redhat.com>
3990
3991 * mips-tdep.c (mips_in_return_stub): Make static.
3992 (mips_gdbarch_init): Set in_solib_return_trampoline.
3993 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3994
3995 2002-08-20 Michael Snyder <msnyder@redhat.com>
3996
3997 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3998 * gdbarch.c, gdbarch.h: Regenerate.
3999 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4000 Add.
4001 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4002
4003 2002-08-20 Michael Snyder <msnyder@redhat.com>
4004
4005 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4006 (mips_gdbarch_init): Set skip_trampoline_code,
4007 in_solib_call_trampoline.
4008 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4009 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4010
4011 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4012
4013 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4014
4015 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4016 vector type for ev registers.
4017 (e500_pseudo_register_read): New function.
4018 (e500_pseudo_register_write): New function.
4019 (e500_dwarf2_reg_to_regnum): New function.
4020 (PPC_UISA_NOFP_SPRS): New macro.
4021 (PPC_EV_REGS): New macro.
4022 (PPC_GPRS_PSEUDO_REGS): New macro.
4023 (registers_e500): New register set for e500.
4024 (variants): Add e500 variant.
4025 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4026 before setting architectural dependent variations. Initialize ev
4027 registers numbers. Add case for e500 architecture. Set the
4028 number of pseudo registers.
4029
4030 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4031
4032 * rs6000-tdep.c: Clean up comments.
4033
4034 2002-08-20 Andrew Cagney <cagney@redhat.com>
4035
4036 * h8300-tdep.c: Re-indent file.
4037
4038 2002-08-20 Jim Blandy <jimb@redhat.com>
4039
4040 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4041 default for this.
4042
4043 2002-08-20 Keith Seitz <keiths@redhat.com>
4044
4045 * breakpoints.c (watch_command_1): Use internal breakpoint
4046 when setting a watchpoint_scope breakpoint.
4047
4048 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4049
4050 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4051 (build_builtin_type_vec64i): Ditto.
4052 (build_builtin_type_vec128): Ditto.
4053 (build_builtin_type_vec128i): Ditto.
4054
4055 2002-08-19 Michael Snyder <msnyder@redhat.com>
4056
4057 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4058 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4059 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4060 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4061 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4062 CALL_DUMMY_ADDRESS): Delete.
4063 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4064 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4065 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4066 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4067 push_return_address.
4068 (mips_register_raw_size, mips_eabi_use_struct_convention,
4069 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4070 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4071 mips_init_extra_frame_info, mips_eabi_push_arguments,
4072 mips_n32n64_push_arguments, mips_push_return_address,
4073 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4074 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4075
4076 2002-08-19 Michael Snyder <msnyder@redhat.com>
4077
4078 * mips-tdep.c (mips_frame_num_args): New function.
4079 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4080 frame_saved_pc, frame_args_address, frame_locals_address,
4081 frame_num_args, and frame_args_skip.
4082 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4083 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4084 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4085 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4086
4087 2002-08-20 Michael Snyder <msnyder@redhat.com>
4088
4089 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4090 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4091 * mips-tdep.c (mips_store_struct_return): New function.
4092 (mips_extract_struct_value_address): New function.
4093 (mips_gdbarch_init): Set store_struct_return and
4094 extract_struct_value_address.
4095
4096 2002-08-20 David Carlton <carlton@math.stanford.edu>
4097
4098 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4099 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4100 (read_file_scope): Check that line_header is nonzero before
4101 decoding macro information.
4102
4103 2002-08-20 Mark Kettenis <kettenis@gnu.org>
4104
4105 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4106 flag the general-purpose registers as floating-point on targets
4107 that don't support the floating-point registers.
4108
4109 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4110
4111 * rs6000-tdep.c (altivec_register_p): Delete.
4112 (rs6000_do_altivec_registers): Delete.
4113 (rs6000_altivec_registers_info): Delete.
4114 (rs6000_do_registers_info): Delete.
4115 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4116 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4117
4118 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4119
4120 * infcmd.c (do_registers_info): Print vector registers in hex
4121 format only.
4122 (print_vector_info): Check that printing registers
4123 makes sense.
4124 (print_float_info): Ditto.
4125
4126 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4127
4128 * mips-tdep.c (mips_gdbarch_init): Update.
4129 (mips_o32_extract_return_value): Rewrite.
4130 (mips_o32_store_return_value): Rewrite.
4131 (mips_o32_xfer_return_value): New function.
4132 (mips_xfer_register): Tweak debug print message. Allow for
4133 buf_offset when dumping the value transfered.
4134
4135 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4136
4137 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4138 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4139 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4140 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4141 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4142
4143 2002-08-14 Michael Snyder <msnyder@redhat.com>
4144
4145 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4146
4147 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4148
4149 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4150 register.
4151 (P): New macro to define a register as a pseudo register.
4152 (R, R4, R8, R16, FR32, R64, R0): Updated.
4153 (struct variant): Add new fields for number of pseudo registers
4154 and number of total registers.
4155 (tot_num_registers): New macro replacing....
4156 (num_registers): ...deleted macro.
4157 (num_registers): New function.
4158 (num_pseudo_registers): New function.
4159 (variants): Update all variants to intialize new fields correctly.
4160 Postpone initialization of number of pseudo regs and real regs.
4161 (init_variants): New function.
4162 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4163 registers offsets.
4164
4165 2002-08-19 David Carlton <carlton@math.stanford.edu>
4166
4167 * valops.c (search_struct_field): Change error message to treat
4168 return value of 0 from value_static_field as meaning that field is
4169 optimized out.
4170 (value_struct_elt_for_reference): Ditto.
4171 * values.c (value_static_field): Treat an unresolved location the
4172 same as a nonexistent symbol. Fix PR gdb/635.
4173 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4174 enclosed. Fix PR gdb/574.
4175 * MAINTAINERS: Add self to Write After Approval list.
4176
4177 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4178
4179 * mips-tdep.c (mips_xfer_register): New function.
4180 (mips_n32n64_extract_return_value): Rewrite.
4181 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4182 instead of deprecated_extract_return_value.
4183
4184 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4185
4186 * rs6000-tdep.c (TDEP): Delete macro.
4187 (branch_dest): Replace use of TDEP macro with its body.
4188 (rs6000_pop_frame): Ditto.
4189 (rs6000_push_arguments): Ditto.
4190 (rs6000_skip_trampoline_code): Ditto.
4191 (rs6000_frame_saved_pc): Ditto.
4192 (rs6000_frame_chain): Ditto.
4193 (rs6000_register_name): Ditto.
4194 (rs6000_register_byte): Ditto.
4195 (rs6000_register_raw_size): Ditto.
4196 (rs6000_register_virtual_type): Ditto.
4197 (rs6000_register_convertible): Ditto.
4198 (rs6000_convert_from_func_ptr_addr): Ditto.
4199
4200 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4201
4202 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4203 conditionally.
4204 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4205 MIPS_LINUX_JB_ELEMENT_SIZE.
4206 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4207 for MAX_REGISTER_RAW_SIZE arrays.
4208 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4209 MIPS_LINUX_JB_ELEMENT_SIZE.
4210
4211 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4212
4213 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4214
4215 2002-08-19 Aidan Skinner <aidan@velvet.net>
4216
4217 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4218 ada-valprint.c ada-tasks.c.
4219 (YYFILES): Add ada-exp.y.
4220 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4221 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4222 (ada-exp.tab.o): New target.
4223
4224 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4225
4226 * regcache.c (regcache_xfer_part): New function.
4227 (regcache_raw_read_part): New function.
4228 (regcache_raw_write_part): New function.
4229 (regcache_cooked_read_part): New function.
4230 (regcache_cooked_write_part): New function.
4231 * regcache.h (regcache_raw_read_part): Declare.
4232 (regcache_raw_write_part): Declare.
4233 (regcache_cooked_read_part): Declare.
4234 (regcache_cooked_write_part): Declare.
4235
4236 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4237
4238 * remote.c (remote_open_1): Add async_p.
4239 (remote_async_open_1): Delete.
4240 (open_remote_target): Delete.
4241 (remote_open, extended_remote_open): Update calls to remote_open_1.
4242 (remote_async_open, extended_remote_async_open): Call
4243 remote_open_1 instead of remote_async_open_1.
4244
4245 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4246
4247 * blockframe.c: Fix a few coding standard violations.
4248
4249 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4250
4251 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4252 here from ...
4253 * config/i386/tm-i386sco5.h: ... here. File removed.
4254 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4255
4256 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4257 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4258 (TM_FILE): Set to tm-i386.h.
4259 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4260 * config/i386/tm-i386v.h: Remove file.
4261 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4262 instead of "i386/tm-i386v.h".
4263 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4264 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4265 "i386/tm-i386v.h".
4266 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4267 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4268 "i386/tm-i386.h".
4269
4270 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4271
4272 * config/i386/nm-i386v.h: Add protection against
4273 multiple-inclusion.
4274 (i386_register_u_addr): Remove prototype.
4275 (register_u_addr): New prototype.
4276 (REGISTER_U_ADDR): Redefine accordingly.
4277 * i386v-nat.c: Improve several comments.
4278 (i386_register_u_addr): Change signature and rename to
4279 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4280 ubase variable.
4281
4282 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4283
4284 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4285 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4286 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4287 deprecated_extract_return_value.
4288 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4289 rename mips_o32o64_push_arguments.
4290 (mips_gdbarch_init): Update.
4291 (mips_extract_return_value): Delete.
4292 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4293 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4294 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4295 (mips_n32n64_extract_return_value): Clone
4296 mips_extract_return_value.
4297 (mips_store_return_value): Delete.
4298 (mips_o32_store_return_value): Clone mips_store_return_value.
4299 (mips_o64_store_return_value): Clone mips_store_return_value.
4300 (mips_eabi_store_return_value): Clone mips_store_return_value.
4301 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4302
4303 2002-08-18 Aidan Skinner <aidan@velvet.net>
4304
4305 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4306 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4307
4308 2002-08-18 Aidan Skinner <aidan@velvet.net>
4309
4310 * ada-lang.c: Run through gdb_indent.sh.
4311 * ada-lang.h: Run through gdb_indent.sh.
4312 * ada-tasks.c: Run through gdb_indent.sh.
4313 * ada-typeprint.c: Run through gdb_indent.sh.
4314 * ada-valprint.c: Run through gdb_indent.sh.
4315
4316 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4317
4318 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4319 ABI.
4320
4321 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4322
4323 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4324
4325 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4326 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4327
4328 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4329 write_register_gen instead of write_register_bytes.
4330
4331 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4332 i[3456]-*-osf1mk* configurations have been made obsolete.
4333 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4334 i[3456]86-*-osf1mk* hosts obsolete.
4335 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4336 targets obsolete.
4337 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4338 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4339 config/i386/i386m3.mt, config/i386/nm-m3.h,
4340 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4341 config/i386/i386mk.mh, config/i386/i386mk.mt,
4342 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4343 obsolete.
4344 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4345 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4346 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4347
4348 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4349
4350 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4351 (hppa_value_returned_from_stack): Declare.
4352 (hppa_extract_return_value): Declare.
4353 * config/pa/hppa.mt: New file.
4354 * configure.tgt: Recognize hppa*-*-*.
4355 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4356
4357 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4358
4359 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4360 comment.
4361
4362 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4363
4364 * top.c (gdb_rl_operate_and_get_next): Make sure
4365 operate-and-get-next functions correctly even when the history
4366 list is completely filled.
4367
4368 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4369
4370 * MAINTAINERS (Target Instruction Set Architectures): Rename
4371 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4372 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4373 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4374 already listed under Host/Native.
4375
4376 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4377 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4378 mips*-*-*.
4379
4380 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4381
4382 * config/ia64/ia64.mt: New file.
4383 * config/alpha/alpha.mt: New file.
4384 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4385 ia64-linux-gnu. Mention that ia64-elf is broken.
4386 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4387
4388 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4389
4390 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4391 generic_func_frame_valid instead of func_frame_valid.
4392
4393 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4394
4395 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4396 procfs appears to be broken when debugging on multi-processor
4397 machines. So enable software single stepping in order to avoid
4398 using the procfs interface to do next/step operations, using
4399 internal breakpoints instead.
4400
4401 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4402 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4403 make this pc address equal to the value it would have if the
4404 system stepping capability was used. Also set a new flag used
4405 to ensure that we don't readjust the PC one more time later.
4406
4407 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4408 address by DECR_PC_AFTER_BREAK when software single step is
4409 in use for this architecture, as this has already been taken
4410 care of in handle_inferior_event().
4411
4412 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4413
4414 * infrun.c (handle_inferior_event): Minor reformatting, to make
4415 a rather long condition expression easier to read.
4416
4417 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4418
4419 * Makefile.in (gdbtk.o): Move to end of file.
4420 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4421 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4422 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4423 (gdbtk-wrapper.o, gdbres.o): Ditto.
4424
4425 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4426
4427 * Makefile.in (copying.o): Separate out compile rule.
4428 (hpux-thread.o, procfs.o, signals.o): Ditto.
4429 (v850ice.o, z8k-tdep.o): Ditto.
4430 (tui-file.o): Move to TUI section.
4431 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4432 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4433
4434 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4435
4436 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4437 skip_trampoline_code, for better namespace-proofing.
4438
4439 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4440
4441 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4442
4443 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4444
4445 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4446
4447 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4448 signal, check whether we hit a breakpoint before checking for a
4449 single step breakpoint. Otherwise, GDB fails to notice that a
4450 breakpoint has been hit when stepping onto a breakpoint.
4451
4452 2002-08-16 Keith Seitz <keiths@redhat.com>
4453
4454 * gdb-events.sh (clear_gdb_event_hooks): New function.
4455 * gdb-events.c: Regenerate.
4456 * gdb-events.h: Regenerate.
4457
4458 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4459
4460 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4461 not_a_sw_breakpoint.
4462 * breakpoint.h (bpstat_stop_status): Add parameter names.
4463
4464 2002-08-16 Grace Sainsbury <graces@redhat.com>
4465
4466 * remote.c (remote_insert_hw_breakpoint)
4467 (remote_remove_hw_breakpoint): Fix calculation of length field
4468 for Z-packet.
4469
4470 2002-08-15 Michael Snyder <msnyder@redhat.com>
4471
4472 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4473 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4474 (supply_fpregset): Ditto.
4475
4476 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4477 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4478 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4479 (TARGET_READ_SP): Delete.
4480 (DO_REGISTERS_INFO): Delete.
4481 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4482 Delete.
4483 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4484 from macros to functions.
4485
4486 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4487 (mips_register_convertible, mips_register_convert_to_virtual,
4488 mips_register_convert_to_raw): Make static.
4489 (mips_read_sp): New function.
4490 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4491 (mips_do_registers_info): Make static.
4492 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4493 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4494 (mips_register_convert_from_type, mips_register_convert_to_type):
4495 New functions.
4496 (mips_gdbarch_init): Set up function_start_offset,
4497 register_virtual_size, pc_in_sigtramp.
4498
4499 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4500
4501 * infcmd.c (vector_info): New function.
4502 (_initialize_infcmd): Add command "info vector".
4503 (print_vector_info): New function.
4504
4505 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4506 * gdbarch.h, gdbarch.c: Regenerate.
4507
4508 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4509
4510 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4511 ``print_all''. Only print vector registers when ``print_all''.
4512
4513 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4514
4515 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4516 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4517
4518 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4519 Add `args' parameter.
4520 * gdbarch.h, gdbarch.c: Regenerate.
4521
4522 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4523
4524 * infcmd.c (float_info): Call print_float_info.
4525 (print_float_info): New function. By default, print the
4526 floating-point registers.
4527
4528 * arch-utils.h (default_print_float_info): Delete declaration.
4529 * arch-utils.c (default_print_float_info): Delete function.
4530
4531 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4532
4533 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4534 out define.
4535
4536 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4537 FRAME.
4538
4539 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4540 * configure.host: Make i[3456]86-*-aix host obsolete.
4541 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4542 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4543 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4544 config/i386/xm-i386aix.h: Make files obsolete.
4545 * i386aix-nat.c: Make file obsolete.
4546 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4547 (i386aix-nat.o): Make target obsolete.
4548
4549 * config/i386/nm-gnu.h: Removed.
4550 * config/i386/nm-i386gnu.h: New file.
4551 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4552 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4553 Moved here from ...
4554 * config/i386/tm-i386gnu.h: ... here. Removed.
4555 * config/i386/xm-i386gnu.h: Removed.
4556 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4557 (NAT_FILE): Set to nm-i386gnu.h.
4558 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4559 * i386-tdep.c: New file.
4560 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4561 (i386gnu-tdep.o): Specify dependencies.
4562
4563 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4564
4565 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4566 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4567 Adjust a few comments to reflect reality a bit closer.
4568 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4569 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4570 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4571 target_insert_watchpoint, target_remove_watchpoint):
4572 Move defines to ...
4573 * config/i386/nm-i386sco5.h: ... here.
4574 (kernel_u_size): Add prototype. Improve a few comments and add
4575 protection against multiple inclusion.
4576
4577 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4578 out define.
4579
4580 * uw-thread.c (SP_ARG0): Define if not already defined.
4581 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4582
4583 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4584
4585 * config/i386/tm-i386.h: Don't include "regcache.h".
4586
4587 * i387-tdep.h (i387_print_float_info): New prototype.
4588 * i387-tdep.c (print_i387_value, print_i387_ext,
4589 print_i387_status_word, print_i387_control_word): Add `struct
4590 ui_file *' argument and use it for output.
4591 (i387_print_float_info): Renamed from i387_float_info. Add
4592 `struct gdbarch *' and `struct ui_file *' arguments and use the
4593 latter for output.
4594 * i386-tdep.c: Include "i387-tdep.h".
4595 (i386_gdbarch_init): Set print_float_info.
4596 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4597 (FLOAT_INFO): Remove define.
4598
4599 2002-08-13 Michael Snyder <msnyder@redhat.com>
4600
4601 * mips-tdep.c (mips_push_arguments): Rename to
4602 mips_eabi_push_arguments, and tune for EABI.
4603 (MIPS_REGS_HAVE_HOME_P): Delete.
4604 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4605 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4606 Delete references to mips_regs_have_home_p.
4607
4608 2002-08-14 Keith Seitz <keiths@redhat.com>
4609
4610 * Makefile.in (install-gdbtk): Create insight plugin directory.
4611 Install plugins.tcl file.
4612
4613 2002-08-14 Keith Seitz <keiths@redhat.com>
4614
4615 * configure.in: Move SUBDIRS to near top of the file so that
4616 --enable options may add things to it.
4617 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4618 * configure: Regenerate.
4619
4620 2002-08-13 Michael Snyder <msnyder@redhat.com>
4621
4622 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4623 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4624 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4625
4626 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4627
4628 * vax-tdep.c (vax_get_saved_register): Delete function.
4629 (vax_gdbarch_init): Update.
4630 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4631 (ns32k_gdbarch_init): Update.
4632 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4633 (alpha_gdbarch_init): Update.
4634
4635 2002-08-13 Andrew Cagney <cagney@redhat.com>
4636
4637 * regcache.c (init_regcache_descr): Overallocate the
4638 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4639 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4640 nr_raw_registers.
4641 (set_register_cached): Add range checking assertions. Use
4642 current_regcache.
4643
4644 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4645
4646 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4647 numbers for MMX registers.
4648
4649 2002-08-13 Andrew Cagney <cagney@redhat.com>
4650
4651 * i386-tdep.c (i386_gdbarch_init): Use
4652 generic_unwind_get_saved_register.
4653
4654 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4655
4656 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4657 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4658 target vector.
4659 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4660 Delete. Add comment regarding this now-deleted target method.
4661
4662 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4663
4664 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4665 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4666 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4667 real PC and the page number (if it's within the memory bank window).
4668 (m68hc11_pseudo_register_write): Likewise when saving.
4669 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4670 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4671 (m68hc11_register_raw_size): And use 32-bit for it.
4672 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4673 16K memory bank is used by the prog; also use the virtual pc.
4674
4675 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4676
4677 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4678 (m68hc11_gdbarch_init): Install it in gdbarch.
4679 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4680 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4681 (MSYMBOL_SIZE): New for documentation.
4682 (insn_return_kind): Enum to specify how a function returns.
4683 (frame_extra_info): Cleanup and record the return mode.
4684 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4685 register in address computation.
4686 (m68hc11_get_return_insn): New to obtain the return instruction used
4687 by the function.
4688 (m68hc11_frame_init_saved_regs): Take into account the return
4689 instruction used by the function for far and interrupt functions.
4690 (m68hc11_init_extra_frame_info): Take into account page register.
4691 (m68hc11_frame_args_address): Adjust according to the return mode.
4692 (show_regs): Print page register only when it's used.
4693
4694 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4695
4696 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4697 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4698 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4699 registers.
4700 (m68hc11_register_raw_size): Likewise.
4701
4702 2002-08-13 Andrew Cagney <cagney@redhat.com>
4703
4704 * i386-tdep.c (i386_register_name): Handle mmx registers.
4705 (mmx_regnum_p): New function.
4706 (i386_mmx_names): New array.
4707 (mmx_num_regs): New variable.
4708 (i386_pseudo_register_read): New function.
4709 (i386_pseudo_register_write): New function.
4710 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4711
4712 * regcache.c (regcache_raw_read_unsigned): New function.
4713 (regcache_raw_read_signed): New function.
4714 * regcache.h (regcache_raw_read_unsigned): Declare.
4715 (regcache_raw_read_signed): Declare.
4716
4717 2002-08-13 Andrew Cagney <cagney@redhat.com>
4718
4719 * regcache.c (regcache_raw_read_as_address): Delete function.
4720 (regcache_cooked_read_signed): New function.
4721 (regcache_cooked_read_unsigned): New function.
4722 * regcache.h (regcache_cooked_read_signed): Declare.
4723 (regcache_cooked_read_unsigned): Declare.
4724 (regcache_raw_read_as_address): Delete declaration.
4725
4726 * blockframe.c (generic_read_register_dummy): Use
4727 regcache_cooked_read_unsigned.
4728 * i386-tdep.c (i386_extract_struct_value_address): Use
4729 regcache_cooked_read_unsigned.
4730
4731 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4732
4733 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4734 double sizes according to ELF ABI flags.
4735 (gdbarch_tdep): Record elf_flags.
4736
4737 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4738
4739 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4740 (m6812_prolog): They can appear in 68HC12 function prologue.
4741 (m68hc11_frame_chain): Cleanup.
4742
4743 2002-08-12 Andrew Cagney <cagney@redhat.com>
4744
4745 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4746 declarations.
4747 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4748 (i386_linux_register_raw_size): Delete function.
4749 (i386_linux_init_abi): Update.
4750 * i386-tdep.c (i386_register_raw_size): Delete function.
4751 (i386_register_byte): Delete function.
4752 (i386_gdbarch_init): Update.
4753 (i386_register_size): Delete array.
4754 (i386_register_offset): Delete array.
4755
4756 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4757 (REGISTER_RAW_SIZE): Delete macro.
4758 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4759 (REGISTER_BYTE): Delete macro.
4760
4761 2002-08-11 Aidan Skinner <aidan@velvet.net>
4762
4763 * ada-lang.c (ada_lookup_partial_symbol)
4764 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4765 prototype names so that grep ^func works properly.
4766
4767 * ada-lang.c (ada_array_element_type)
4768 (ada_lookup_partial_symbol): Fix typos in parameter list.
4769
4770 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4771 Fix prototype names so that grep ^func works properly.
4772
4773 2002-08-10 Andrew Cagney <cagney@redhat.com>
4774 Elena Zannoni <ezannoni@redhat.com>
4775 Martin M. Hunt <hunt@redhat.com>
4776
4777 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4778 (build_builtin_type_vec128i): Set the vector bit.
4779 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4780 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4781 (build_builtin_type_vec64): New function.
4782 (build_builtin_type_vec64i): New function.
4783 (build_gdbtypes): Initialize builtin_type_vec64 and
4784 builtin_type_vec64i.
4785
4786 2002-08-09 Andrew Cagney <cagney@redhat.com>
4787
4788 * regcache.c (regcache_dump): Compare the register offset
4789 with REGISTER_BYTE.
4790 * arch-utils.c (generic_register_byte): New function.
4791 * arch-utils.h (generic_register_byte): Declare.
4792 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4793 * gdbarch.h, gdbarch.c: Regenerate.
4794
4795 2002-08-09 Andrew Cagney <cagney@redhat.com>
4796
4797 * regcache.c: Include "gdbcmd.h"
4798 (_initialize_regcache): Add commands "maintenance print
4799 registers", "maintenance print raw-registers" and "maintenance
4800 print cooked-registers".
4801 (enum regcache_dump_what): Define.
4802 (dump_endian_bytes): New function.
4803 (regcache_dump): New function.
4804 (regcache_print): New function.
4805 (maintenance_print_registers): New function.
4806 (maintenance_print_raw_registers): New function.
4807 (maintenance_print_cooked_registers): New function.
4808 * Makefile.in (regcache.o): Update dependencies.
4809
4810 2002-08-09 Michael Snyder <msnyder@redhat.com>
4811
4812 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4813 (mips_push_arguments): Correct some comments. Use paddr_nz
4814 for printing addresses in debug output. Replace static
4815 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4816 (mips_n32n64_push_arguments): New function, cloned from
4817 mips_push_arguments and tuned for the n32/n64 ABI.
4818 (mips_push_register): Buffer needs dynamic allocation.
4819 (mips_print_register): Ditto.
4820 (do_gp_register_row): Ditto.
4821 (mips_store_return_value): Ditto.
4822 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4823
4824 2002-08-09 Don Howard <dhoward@redhat.com>
4825
4826 * memattr.c (mem_info_command): Print special case of upper bound
4827 as max CORE_ADDR + 1.
4828
4829 2002-08-08 Michael Snyder <msnyder@redhat.com>
4830
4831 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4832 returns structs by ref if they're too big to fit in two registers.
4833
4834 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4835
4836 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4837 saved regs value.
4838 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4839 mips_find_saved_regs().
4840 (mips_pop_frame): Likewise.
4841
4842 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4843
4844 * blockframe.c (frame_saved_regs_register_unwind): Revise
4845 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4846 frames are in use.
4847
4848 2002-08-09 Grace Sainsbury <graces@redhat.com>
4849
4850 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4851 T-packets; the 'a' is not taken as a register number.
4852 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4853 (remote_stopped_data_address): New functions; add to target
4854 vector.
4855 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4856 prototypes to match other implementations of this
4857 function. replace integer argument with pointer -- the length
4858 field in the Z-packet is the length of what is pointed to or 1 if
4859 pointer is null. Add to target vector.
4860 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4861 target vector.
4862
4863 From Mark Salter:
4864 * remote.c (remote_wait): Add support to extract optional
4865 watchpoint information from T-packet. Ignore unrecognized
4866 optional info in T-packet.
4867 (remote_async_wait): Ditto.
4868
4869 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4870
4871 * cli/cli-dump.c: Change fopen modes to use binary open modes
4872 as defined in include/fopen-bin.h throughout.
4873
4874 2002-08-08 Michael Snyder <msnyder@redhat.com>
4875
4876 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4877
4878 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4879
4880 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4881 assertion failure by returning early after a warning.
4882
4883 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4884
4885 * mips-tdep.c (mips_find_saved_regs): Make static.
4886 (mips_frame_init_saved_regs): New function.
4887 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4888 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4889 (mips_find_saved_regs): Delete declaration.
4890
4891 2002-08-08 Grace Sainsbury <graces@redhat.com>
4892
4893 * remote.c (remote_wait, remote_async_wait): Change
4894 thread_num from int to ULONGEST.
4895 (unpack_varlen_hex): Change result parameter from
4896 int * to ULONGEST *.
4897
4898 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4899
4900 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4901 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4902 powerpc*-*-*.
4903 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4904
4905 2002-08-08 Andrew Cagney <cagney@redhat.com>
4906
4907 * gcore.c (override_derive_stack_segment): Delete variable.
4908 (preempt_derive_stack_segment): Delete function.
4909 (derive_stack_segment): Delete function.
4910 (default_derive_stack_segment): Renamed to derive_stack_segment.
4911 (override_derive_heap_segment): Delete variable.
4912 (preempt_derive_heap_segment): Delete function.
4913 (derive_heap_segment): Delete function.
4914 (default_derive_heap_segment): Rename to derive_heap_segment.
4915
4916 2002-08-06 Michael Snyder <msnyder@redhat.com>
4917
4918 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4919 * mips-tdep.c (mips_EABI_use_struct_convention,
4920 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4921 New functions. (mips_use_struct_convention): Delete.
4922 (mips_gdbarch_init): set use_gdbarch_convention.
4923
4924 2002-08-06 Michael Snyder <msnyder@redhat.com>
4925
4926 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4927 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4928 mips_o32_reg_struct_has_addr): New functions.
4929 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4930
4931 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4932
4933 * regcache.c (pseudo_register): Delete function.
4934 (fetch_register): Delete function.
4935 (store_register): Delete function.
4936 (regcache_raw_read, legacy_read_register_gen): Use
4937 target_fetch_registers instead of fetch_register.
4938 (legacy_write_register_gen, regcache_raw_write): Use
4939 target_store_register instead of store_register.
4940 (write_register_bytes): Ditto.
4941
4942 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4943 (STORE_PSEUDO_REGISTER): Delete.
4944 * gdbarch.h, gdbarch.c: Regenerate.
4945
4946 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4947
4948 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4949 write dump file binary.
4950
4951 2002-08-05 Michael Snyder <msnyder@redhat.com>
4952
4953 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4954 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4955 (mips_gdbarch_init): Set N32 target to be mips64.
4956
4957 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4958
4959 * frame.c (find_saved_register): Break out of loop once saved
4960 register address is found. Don't mention sparc in loop comment
4961 anymore.
4962
4963 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4964
4965 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4966 mips_default_saved_regsize to 8.
4967
4968 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4969
4970 * gcore.c: Do not include <sys/procfs.h>.
4971 * Makefile.in (gcore.o): Update dependencies.
4972
4973 2002-08-06 Andrew Cagney <cagney@redhat.com>
4974
4975 * configure.tgt: Make arc-*-* obsolete.
4976 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4977 * MAINTAINERS: Make arc-elf obsolete.
4978 * arc-tdep.c: Make file obsolete.
4979 * config/arc/arc.mt: Ditto.
4980 * config/arc/tm-arc.h: Ditto.
4981
4982 2002-08-05 Theodore A. Roth <troth@verinet.com>
4983
4984 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4985
4986 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4987
4988 * mcore-tdep.c (mcore_gdbarch_init): Use
4989 generic_unwind_get_saved_register instead of
4990 generic_get_saved_register.
4991 * v850-tdep.c (v850_gdbarch_init): Ditto.
4992 * frv-tdep.c (frv_gdbarch_init): Ditto.
4993 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4994 * s390-tdep.c (s390_gdbarch_init): Ditto.
4995 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4996 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4997 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4998
4999 2002-08-05 Joel Brobecker <brobecker@gnat.com>
5000
5001 * objfiles.h: Add missing #include "symfile.h"
5002
5003 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5004
5005 2002-08-04 Andrew Cagney <ac131313@redhat.com>
5006
5007 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
5008 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5009 of FIELD_BITSIZE.
5010
5011 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
5012
5013 * NEWS: Cleanup and nitpick.
5014
5015 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5016
5017 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5018
5019 2002-08-03 Andrew Cagney <ac131313@redhat.com>
5020
5021 * Makefile.in (gdbtk-bp.o): Update dependencies.
5022 (gdbtk-register.o): Ditto.
5023 (gdbtk-varobj.o): Ditto.
5024
5025 2002-08-03 Andrew Cagney <cagney@redhat.com>
5026
5027 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5028 m68hc11_fetch_pseudo_register.
5029 (m68hc11_pseudo_register_write): Replace
5030 m68hc11_store_pseudo_register.
5031 (m68hc11_gdbarch_init): Update.
5032
5033 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
5034
5035 * gdbarch.sh: Include "gdb_string.h".
5036 * gdbarch.c: Regenerate.
5037
5038 * regcache.c: Include "gdb_string.h".
5039 * ax-general.c: Ditto.
5040 * varobj.c: Ditto.
5041 * std-regs.c: Ditto.
5042 * fbsd-proc.c: Ditto.
5043 * thread.c: Ditto.
5044
5045 * Makefile.in (regcache.o): Update dependencies.
5046 (thread.o, gdbarch.o): Ditto.
5047 (ax-general.o, gdbarch.o): Ditto.
5048 (varobj.o, std-regs.o): Ditto.
5049 (fbsd-proc.o): Specify dependencies.
5050
5051 2002-08-02 Andrew Cagney <cagney@redhat.com>
5052
5053 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5054 regnum.
5055 (regcache_cooked_write): Ditto.
5056
5057 2002-08-02 Andrew Cagney <ac131313@redhat.com>
5058
5059 * regcache.c (regcache_cooked_read): New function.
5060 (regcache_cooked_write): New function.
5061 (read_register_gen): Rewrite using regcache_cooked_read.
5062 (write_register_gen): Rewrite using regcache_cooked_write.
5063
5064 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5065 Declare.
5066
5067 2002-08-02 Andrew Cagney <cagney@redhat.com>
5068
5069 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5070 Replace the architecture methods register_read and register_write.
5071 * gdbarch.h, gdbarch.c: Regenerate.
5072 * regcache.c (init_regcache_descr): Update.
5073 (read_register_gen): Update.
5074 (write_register_gen): Update.
5075 (supply_register): Update comment.
5076
5077 * sh-tdep.c (sh_gdbarch_init): Update.
5078 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5079 `regcache' and `gdbarch' parameters. Make `buffer' a void
5080 pointer. Update code.
5081 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5082 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5083 void pointer. Update code.
5084 (sh64_register_write): Delete.
5085 (sh4_register_read): Delete.
5086 (sh64_register_read): Delete.
5087 (sh4_register_write): Delete.
5088 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5089 void pointer, `to' parameter a void pointer.
5090 (sh_sh64_register_convert_to_raw): Ditto.
5091
5092 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5093
5094 * mips-tdep.c (mips_register_virtual_type): Use architecture
5095 invariant return values.
5096
5097 2002-08-01 Andrew Cagney <cagney@redhat.com>
5098
5099 * linux-proc.c: Include "gdb_string.h".
5100 * Makefile.in (linux-proc.o): Update dependency list.
5101
5102 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5103
5104 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5105 comment.
5106
5107 2002-08-01 Grace Sainsbury <graces@redhat.com>
5108
5109 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5110 to_insert_watchpoint, to_remove_watchpoint,
5111 to_stopped_by_watchpoint, to_stopped_data_address,
5112 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5113 target vecctor. Define their corresponding macros so they call
5114 them.
5115
5116 * target.c: Add default and debug versions of for
5117 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5118 to_insert_watchpoint, to_remove_watchpoint,
5119 to_stopped_by_watchpoint, to_stopped_data_address,
5120 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5121
5122 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5123
5124 * mips-tdep.c (mips_register_virtual_type): New function.
5125 (mips_gdbarch_init): Register mips_register_virtual_type()
5126 with gdbarch machinery.
5127 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5128 this file instead of tm-bigmips.h.
5129 (MIPS_REGSIZE): Delete this macro.
5130 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5131 multiarch version in mips-tdep.c will be found.
5132
5133 2002-08-01 Andrew Cagney <cagney@redhat.com>
5134
5135 * NEWS: Menion that CHILL has been made obsolete.
5136
5137 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5138 * stabsread.c (read_range_type): Ditto.
5139 * gdbtypes.h: Ditto.
5140 * language.c (binop_type_check): Ditto.
5141 (binop_result_type): Ditto.
5142 (integral_type): Ditto.
5143 (character_type): Ditto.
5144 (string_type): Ditto.
5145 (boolean_type): Ditto.
5146 (structured_type): Ditto.
5147 (lang_bool_type): Ditto.
5148 (binop_type_check): Ditto.
5149 * language.h (_LANG_chill): Ditto.
5150 * dwarfread.c (set_cu_language): Ditto.
5151 * dwarfread.c (CHILL_PRODUCER): Ditto.
5152 * dwarfread.c (handle_producer): Ditto.
5153 * expression.h (enum exp_opcode): Ditto.
5154 * eval.c: Ditto for comments.
5155 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5156 * expprint.c (print_subexp): Ditto.
5157 (print_subexp): Ditto.
5158 * valops.c (value_cast): Ditto.
5159 (search_struct_field): Ditto.
5160 * value.h (COERCE_VARYING_ARRAY): Ditto.
5161 * symfile.c (init_filename_language_table): Ditto.
5162 (add_psymbol_with_dem_name_to_list): Ditto.
5163 * valarith.c (value_binop): Ditto.
5164 (value_neg): Ditto.
5165 * valops.c (value_slice): Ditto.
5166 * symtab.h (union language_specific): Ditto.
5167 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5168 (SYMBOL_DEMANGLED_NAME): Ditto.
5169 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5170 * defs.h (enum language): Ditto.
5171 * symtab.c (got_symtab): Ditto.
5172 * utils.c (fprintf_symbol_filtered): Ditto.
5173
5174 * ch-typeprint.c: Make file obsolete.
5175 * ch-valprint.c: Make file obsolete.
5176 * ch-lang.h: Make file obsolete.
5177 * ch-exp.c: Make file obsolete.
5178 * ch-lang.c: Make file obsolete.
5179
5180 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5181 CHILL_LIB.
5182 (TARGET_FLAGS_TO_PASS): Ditto.
5183 (CHILLFLAGS): Obsolete.
5184 (CHILL): Obsolete.
5185 (CHILL_FOR_TARGET): Obsolete.
5186 (CHILL_LIB): Obsolete.
5187 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5188 ch-valprint.c.
5189 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5190 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5191 ch-lang.o.
5192 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5193 targets.
5194
5195 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5196
5197 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5198 This does not change anything at the moment, but will be helpful
5199 later when full Ada support is integrated.
5200
5201 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5202
5203 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5204 help message.
5205
5206 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5207
5208 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5209 and save it in a local variable. Use variable in later test.
5210
5211 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5212
5213 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5214 test. (Thanks to Daniel Jacobowitz.)
5215
5216 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5217
5218 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5219 (mips_abi_strings): Add "n64".
5220 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5221
5222 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5223
5224 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5225 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5226
5227 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5228
5229 * utils.c (host_pointer_to_address, address_to_host_pointer):
5230 Use gdb_assert() instead of explicit call to internal_error().
5231
5232 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5233
5234 * Makefile.in (rs6000-nat.o): Update dependencies.
5235
5236 From Nicholas Duffek:
5237 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5238 (aix-thread.o): New rule.
5239 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5240 * config/powerpc/aix432.mh: New file.
5241
5242 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5243
5244 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5245 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5246 (fetch_core_registers, ppc_linux_supply_gregset)
5247 (ppc_linux_supply_fpregset): New functions.
5248 (ppc_linux_regset_core_fns): New.
5249 (_initialize_ppc_linux_tdep): Call add_core_fns.
5250 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5251 and ppc_linux_supply_gregset.
5252 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5253 (supply_fpregset): Call ppc_linux_supply_fpregset.
5254 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5255 corelow.o.
5256 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5257
5258 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5259
5260 * symtab.c (lookup_symbol): Demangle before lowercasing.
5261
5262 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5263
5264 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5265 declaration.
5266 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5267 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5268 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5269 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5270 "gdb_string.h".
5271 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5272 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5273 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5274 (avr-tdep.o, mon960-rom.o): Ditto.
5275 (aout_stabs_gnu_h): Define.
5276 (symtab_h): Remove $(gdb_obstack_h).
5277
5278 2002-07-30 Jim Blandy <jimb@redhat.com>
5279
5280 Patch from David Carlton <carlton@math.stanford.edu>:
5281 * gdbinit.in: Move the `dir' commands that add GDB's own source
5282 directory to the search path to the end, so that the `gdb' source
5283 directory will be searched first.
5284
5285 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5286
5287 * gdb_obstack.h: New file.
5288 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5289 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5290 * objfiles.h: Include "gdb_obstack.h".
5291 * Makefile.in (gdb_obstack_h): Define.
5292 (symtab_h): Add $(gdb_obstack_h).
5293 (objfiles_h): Add $(gdb_obstack_h).
5294
5295 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5296 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5297 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5298 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5299 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5300 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5301 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5302 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5303
5304 * Makefile.in (bcache.o): Update dependencies.
5305 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5306 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5307 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5308 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5309 (stabsread.o, symfile.o, symmisc.o): Ditto.
5310 (symtab.o, typeprint.o, macroexp.o): Ditto.
5311 (macrotab.o, mdebugread.o): Ditto.
5312 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5313 (coff_ecoff_h, aout_aout64_h): Define.
5314 (aout_stabs_gnu_h, libaout_h): Define.
5315
5316 2002-07-29 Andrew Cagney <cagney@redhat.com>
5317
5318 * regcache.c (struct regcache_descr): Rename nr_registers to
5319 nr_cooked_registers. Revise comments describing the structure
5320 member fields.
5321 (init_regcache_descr): Update.
5322 (init_legacy_regcache_descr): Update.
5323 (read_register_gen, write_register_gen): When a cooked register in
5324 the raw register range, directly access the value from the raw
5325 register cache.
5326
5327 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5328
5329 * z8k-tdep.c: Do not include "obstack.h".
5330 * h8300-tdep.c, h8500-tdep.c: Ditto.
5331 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5332 * valprint.c, v850-tdep.c: Ditto.
5333 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5334 * mn10200-tdep.c: Ditto.
5335
5336 * Makefile.in (z8k-tdep.o): Update dependencies.
5337 (m68hc11-tdep.o, valprint.o): Ditto.
5338 (v850-tdep.o, d10v-tdep.o): Ditto.
5339 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5340 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5341 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5342 (sh_opc_h, gdb_sim_sh_h): Define.
5343 (elf_sh_h, elf_bfd_h): Define.
5344 (opcode_m68hc11_h): Define.
5345 (OPCODES_SRC, OPCODES_DIR): define.
5346 (OPCODES): Use $(OPCODES_DIR).
5347 (gdb_sim_d10v_h): Rename sim_d10v_h.
5348 (gdb_sim_arm_h): Rename sim_arm_h.
5349
5350 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5351
5352 * utils.c (host_pointer_to_address, address_to_host_pointer):
5353 Change internal_error() message to indicate function responsible
5354 for the error.
5355
5356 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5357
5358 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5359 calls to local_hex_string_custom().
5360
5361 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5362
5363 * irix5-nat.c: Move IRIX shared library support from here...
5364 * solib-irix.c: ...to here. Revised substantially to work with
5365 generic solib framework.
5366
5367 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5368 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5369 * mips-irix-tdep.c: New file.
5370
5371 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5372 (mips-irix-tdep.o, solib-irix.o): New rules.
5373 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5374 solib-irix.o.
5375 * config/mips/irix6.mt (TDEPFILES): Likewise.
5376 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5377
5378 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5379
5380 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5381 disabled (via ``#if 0'') includes.
5382
5383 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5384
5385 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5386 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5387 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5388 Add support for the fpscr register.
5389 * rs6000-nat.c (regmap, fetch_inferior_registers)
5390 (store_inferior_registers, fetch_core_registers): Likewise.
5391
5392 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5393
5394 * rs6000-nat.c (language.h): Include.
5395 (special_regs): Delete this array.
5396 (regmap): New function.
5397 (fetch_register, store_register): Use regmap() to map gdb
5398 register numbers to ptrace register numbers. Also, use
5399 outputs from regmap() to make decisions regarding type of
5400 ptrace() call to make. In particular, don't compare against
5401 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5402 (fetch_inferior_registers, store_inferior_registers): Where
5403 possible, obtain register numbers from tdep struct. Don't
5404 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5405 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5406 (LAST_UISA_SP_REGNUM): Delete.
5407
5408 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5409
5410 * rs6000-nat.c (ppc-tdep.h): Include.
5411 (fetch_registers, store_register, fetch_core_registers): Don't
5412 access registers[] directly. Instead, use supply_register() or
5413 regcache_collect() as appropriate.
5414 (find_toc_address): Format hex address with local_hex_string().
5415
5416 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5417
5418 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5419 bfd/elf32-frv.c.
5420
5421 2002-07-24 Tom Tromey <tromey@redhat.com>
5422
5423 * jv-exp.y: Marked all strings with _().
5424 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5425 internal_error.
5426 (MethodInvocation, CastExpression, parse_number, yyerror,
5427 java_type_from_name, push_expression_name, yylex): Typo fixes.
5428
5429 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5430
5431 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5432 (tee_file_flush, tee_file_write, tee_file_fputs)
5433 (tee_file_isatty): New.
5434 * ui-file.h (tee_file_new): Add prototype.
5435
5436 2002-07-24 Aidan Skinner <aidan@velvet.net>
5437
5438 * ada-lang.c: Change k&r style function definitions to prototyped
5439 form.
5440 * ada-typeprint.c: Change k&r style function definitions to prototyped
5441 form.
5442 * ada-valprint.c: Change k&r style function definitions to prototyped
5443 form.
5444
5445 2002-07-24 Andrew Cagney <cagney@redhat.com>
5446
5447 * README: Remove reference to remote-bug.
5448 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5449 remote-bug.c.
5450 (m88k-nat.o): Delete rule.
5451 (m88k-tdep.o): Delete rule.
5452 (remote-bug.o): Delete rule.
5453 * MAINTAINERS: Mark as obsolete.
5454 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5455 * m88k-tdep.c: Make file obsolete.
5456 * config/m88k/m88k.mh: Ditto.
5457 * config/m88k/delta88v4.mh: Ditto.
5458 * config/m88k/delta88v4.mt: Ditto.
5459 * config/m88k/delta88.mt: Ditto.
5460 * config/m88k/delta88.mh: Ditto.
5461 * remote-bug.c: Ditto.
5462 * config/m88k/tm-delta88.h: Ditto.
5463 * config/m88k/nm-delta88v4.h: Ditto.
5464 * config/m88k/xm-delta88.h: Ditto.
5465 * config/m88k/xm-dgux.h: Ditto.
5466 * config/m88k/tm-m88k.h: Ditto.
5467 * config/m88k/nm-m88k.h: Ditto.
5468 * config/m88k/tm-delta88v4.h: Ditto.
5469 * m88k-nat.c: Ditto.
5470 * cxux-nat.c: Ditto.
5471 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5472 and m88*-*-* obsolete.
5473 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5474 m88*-*-* obsolete.
5475
5476 2002-07-24 Andrew Cagney <cagney@redhat.com>
5477
5478 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5479 constant. Same for local pointer variables.
5480 (extract_signed_integer): Ditto.
5481 * defs.h (extract_unsigned_integer): Update.
5482 (extract_signed_integer): Update.
5483
5484 2002-07-24 Andrew Cagney <cagney@redhat.com>
5485
5486 * regcache.c (regcache_raw_write): Change buf parameter to a
5487 constant void pointer.
5488 (regcache_raw_read): Change buf parameter to a void pointer.
5489 (legacy_write_register_gen): Change myaddr parameter a constant
5490 void pointer.
5491 (supply_register): Change val parameter to a const void pointer.
5492 * regcache.h (regcache_raw_write): Update declaration.
5493 (regcache_raw_read): Update declaration.
5494 (supply_register): Update declaration.
5495
5496 2002-07-24 Tom Tromey <tromey@redhat.com>
5497
5498 * defs.h (gdb_readline_wrapper): Declare.
5499 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5500 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5501 * top.c (gdb_readline_wrapper): New function.
5502 (command_line_input): Use it.
5503
5504 2002-07-24 Andrew Cagney <cagney@redhat.com>
5505
5506 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5507 regcache_read and regcache_write.
5508 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5509 * regcache.c: Update.
5510 * sh-tdep.c (sh64_push_arguments): Update comment.
5511 (sh_pseudo_register_read): Update.
5512 (sh_pseudo_register_write): Update.
5513 (sh4_register_read): Update.
5514 (sh4_register_write): Update.
5515 (sh64_pseudo_register_read): Update.
5516 (sh64_pseudo_register_write): Update.
5517 (sh64_register_read): Update.
5518 (sh64_register_write): Update.
5519 * i386-tdep.c (i386_extract_return_value): Update.
5520 (i386_extract_struct_value_address): Update.
5521 (i386_extract_return_value): Update.
5522 * blockframe.c (generic_read_register_dummy): Update.
5523 (generic_call_dummy_register_unwind): Update
5524 * infrun.c (write_inferior_status_register): Update.
5525
5526 2002-07-23 Jim Blandy <jimb@redhat.com>
5527
5528 * parser-defs.h (expression_context_pc): Make this extern.
5529 (Thanks to Michael Snyder.)
5530
5531 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5532
5533 GDB 5.2.1 released from 5.2 branch.
5534 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5535 * README: Update to mention 5.2.1.
5536
5537 2002-07-23 Mark Salter <msalter@redhat.com>
5538
5539 * remote.c (remote_read_bytes): Fix check for error.
5540
5541 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5542
5543 * aix-thread.c (language.h): Include.
5544 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5545 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5546 Print newlines at end of debug messages.
5547 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5548 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5549
5550 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5551
5552 * aix-thread.c (ppc-tdep.h): Include.
5553 (special_register_p): New function.
5554 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5555 (store_regs_user_thread): Use register number information from
5556 gdbarch_tdep struct instead of hardcoded offsets relative to
5557 FIRST_UISA_SP_REGNUM.
5558 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5559 special_register_p() instead of using FPLAST_REGNUM and
5560 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5561 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5562 will be MQ's register number.
5563
5564 2002-07-22 Michael Snyder <msnyder@redhat.com>
5565
5566 * aix-thread.c (ops): Rename to aix_thread_ops.
5567 (base_ops): Rename to base_target.
5568 (ops_attach): Rename to aix_thread_attach.
5569 (ops_detach): Rename to aix_thread_detach.
5570 (ops_resume): Rename to aix_thread_detach.
5571 (ops_wait): Rename to aix_thread_wait.
5572 (ops_kill): Rename to aix_thread_kill.
5573 (init_ops): Rename to init_aix_thread_ops.
5574 (ops_fetch_register): Rename to aix_thread_fetch_register.
5575 (ops_store_register): Rename to aix_thread_store_register.
5576 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5577 (ops_thread_alive): Rename to aix_thread_thread_alive.
5578 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5579 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5580 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5581 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5582 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5583 (store_regs_lib): Rename to store_regs_user_thread.
5584 (store_regs_kern): Rename to store_regs_kernel_thread.
5585
5586 2002-07-22 Michael Snyder <msnyder@redhat.com>
5587
5588 * aix-thread.c (ops_prepare_to_store): Eliminate.
5589 (init_ops): Don't initialize ops.prepare_to_store.
5590 (store_regs_kern): Pre-fetch register buffers from child,
5591 because some registers may not be in the cache. Copy
5592 regs from register cache only if they are cached.
5593 (store_regs_lib): Copy regs from register cache only
5594 if they are cached.
5595 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5596 fill_gprs64): Ditto.
5597
5598 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5599
5600 * aix-thread.c (gdb_assert.h): Include.
5601 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5602 register sizes (from register cache) match size of buffer holding
5603 register data.
5604 (fill_sprs32): Change parameter types to match those in the ptrace()
5605 buffer.
5606 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5607 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5608
5609 2002-07-22 Michael Snyder <msnyder@redhat.com>
5610
5611 * aix-thread.c (supply_sprs64): Cosmetic change.
5612 (supply_sprs32): Cosmetic change.
5613 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5614 (fill_sprs64): Use regcache_collect instead of read_register.
5615 (store_regs_lib): Use regcache_collect instead of
5616 read_register. Use fill_sprs32 instead of fill_sprs64,
5617 if debugging a 32-bit architecture.
5618 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5619 out of the register cache, instead of passing a pointer into
5620 the register cache directly to ptrace. Use regcache_collect
5621 insteaad of read_register.
5622 (ops_prepare_to_store): Use target_read_registers instead
5623 of read_register_bytes.
5624
5625 2002-07-20 Aidan Skinner <aidan@velvet.net>
5626
5627 * MAINTAINERS: Add self under write after approval.
5628
5629 2002-07-20 Aidan Skinner <aidan@velvet.net>
5630
5631 * ada-tasks.c: Change k&r style function definitions to prototyped
5632 form.
5633
5634 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5635
5636 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5637 * x86-64-tdep.c: Include "objfiles.h".
5638 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5639 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5640
5641 2002-07-17 Michal Ludvig <michal@suse.cz>
5642
5643 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5644 (update_context): Initialise cfa variable.
5645
5646 2002-07-17 Michael Snyder <msnyder@redhat.com>
5647
5648 * aix-thread.c: Shorten some long lines.
5649 Bring comments into line with code spec.
5650
5651 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5652
5653 * infrun.c: Re-indent using gdb_indent.sh.
5654
5655 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5656
5657 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5658 Leave the indentation temporarily untouched, to minimize the diffs.
5659
5660 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5661
5662 * stabsread.c: Make os9k sections of the code obsolete,
5663 for real this time.
5664 * stabsread.h: Make os9k sections of the code obsolete.
5665
5666 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5667
5668 * linux-low.c (regsets_store_inferior_registers): Add free()
5669 at the end of a loop to prevent memory leak.
5670 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5671 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5672 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5673 line a comment.
5674 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5675
5676 2002-07-17 Jim Blandy <jimb@redhat.com>
5677
5678 * macrocmd.c (info_macro_command): Remove newline from error
5679 message.
5680
5681 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5682
5683 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5684 (sh_gdbarch_init): Use it for sh-dsp.
5685
5686 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5687
5688 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5689 64-bit DWARF2 format.
5690
5691 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5692
5693 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5694 <sys/proc.h> when not available.
5695
5696 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5697
5698 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5699 * stabsread.c: Make os9k sections of the code obsolete.
5700 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5701 * config/i386/i386os9k.mt: Make file obsolete.
5702 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5703 (COMMON_OBS): Remove os9kread.o
5704 (SFILES): Remove os9kread.c.
5705 (os9kread.o, remote-os9k.o): Make target obsolete.
5706 * remote-os9k.c: Make file obsolete.
5707 * os9kread.c: Make file obsolete.
5708 * Makefile.in
5709
5710 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5711
5712 * NEWS: Mention that the FR30 has been made obsolete.
5713 * fr30-tdep.c: Make file obsolete.
5714 * config/fr30/tm-fr30.h: Ditto.
5715 * config/fr30/fr30.mt: Ditto.
5716 * configure.tgt: Make fr30-*-elf obsolete.
5717 * MAINTAINERS: Make fr30-elf obsolete.
5718
5719 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5720
5721 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5722 found is not inside a section.
5723
5724 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5725
5726 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5727 strerror().
5728 (pdc_realloc): Use xrealloc() instead of realloc().
5729
5730 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5731
5732 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5733 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5734 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5735 macros.
5736
5737 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5738
5739 * aix-thread.c (ptrace_check): Eliminate goto.
5740 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5741 problem.
5742
5743 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5744
5745 * aix-thread.c (gdbcmd.h): Include.
5746 (DEBUG, DBG, DBG2, dbg): Eliminate.
5747 (debug_aix_thread): New static global.
5748 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5749 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5750 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5751 invocations to DBG and DBG2 macros to test against
5752 ``debug_aix_thread'' and call fprintf_unfiltered().
5753 (_initialize_aix_thread): Add new command "set debug aix-thread".
5754
5755 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5756
5757 From Gerhard Tonn <TON@de.ibm.com>:
5758 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5759 instead of supply_register.
5760
5761 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5762
5763 * dwarf2cfi.c: Include "gdb_assert.h".
5764 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5765 non-NULL.
5766 (update_context): Do not use __func__. Add missing ``break''.
5767 (update_context): Do not use __func__.
5768
5769 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5770
5771 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5772 and its setting. Set gdbarch instruction printing functions
5773 directly. For non-rs6000 case use new function
5774 gdb_print_insn_powerpc.
5775 (gdb_print_insn_powerpc): New function.
5776
5777 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5778
5779 * NEWS: Mention that the d30v has been marked obsolete.
5780 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5781 * configure.tgt: Mark d30v-*-* as obsolete.
5782 * d30v-tdep.c: Mark file as obsolete.
5783 * config/d30v/d30v.mt: Ditto.
5784 * config/d30v/tm-d30v.h: Ditto.
5785
5786 2002-07-13 Aidan Skinner <aidan@velvet.net>
5787
5788 * ada-tasks.c (add_task_entry): replace calls to
5789 malloc() with xmalloc
5790 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5791
5792 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5793 ada_finish_decode_line_1, all_sals_for_line
5794 ada_breakpoint_rewrite): replace calls to free() with xfree()
5795
5796 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5797
5798 From Nicholas Duffek (with minor changes by Martin Hunt,
5799 Louis Hamilton, and Kevin Buettner):
5800 * aix-thread.c: New file.
5801
5802 2002-07-12 Petr Sorfa <petrs@caldera.com>
5803
5804 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5805 complaint for invalid attribute class or form.
5806 (read_func_scope): DW_AT_frame_base
5807 better handling of DW_AT_block*.
5808 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5809 better handling of DW_AT_block*.
5810 (read_common_block): DW_AT_location
5811 better handling of DW_AT_block*.
5812 (read_partial_die): DW_AT_location better handling
5813 of DW_AT_block*.
5814 (new_symbol): DW_AT_external better handling of
5815 DW_AT_block*. Proper initialization of variable
5816 "addr".
5817 (attr_form_is_block): New function that returns true
5818 if the attribute's form is of DW_FORM_block*.
5819
5820 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5821
5822 * valops.c (find_method_list): Remove comment about
5823 removed STATIC_MEMFUNCP argument.
5824 (value_find_oload_method_list): Likewise.
5825
5826 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5827
5828 From Nicholas Duffek:
5829 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5830 target_new_objfile_hook.
5831
5832 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5833
5834 From Nicholas Duffek:
5835 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5836 csect.
5837
5838 2002-07-12 Andrew Cagney <cagney@redhat.com>
5839
5840 * MAINTAINERS: Mention --enable-sim-build-warnings.
5841 (m68hc11-elf): Disable sim build warnings.
5842 (m32r-elf): Mark as broken obsolete candidate.
5843 (x86_64-linux-gnu): Mark as buildable with -Werror.
5844 (arm-elf): Change -w to ``,'' which enables warnings but not
5845 -Werror.
5846
5847 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5848
5849 * bcache.h: Update copyright.
5850 (struct bstring, struct bcache): Move definition to "bcache.c".
5851 Replaced by opaque declaration.
5852 (bcache_xfree): Replace free_bcache.
5853 (bcache_xmalloc, bcache_memory_used): Declare.
5854
5855 * bcache.c: Update copyright.
5856 (struct bstring, struct bcache): Moved to here from "bcache.h".
5857 Update comments.
5858 (bcache_xmalloc, bcache_memory_used): New functions.
5859 (bcache_xfree): Replace function free_bcache.
5860
5861 * Makefile.in (objfiles.o): Add $(bcache_h).
5862 (objfiles_h): Remove $(bcache_h).
5863 (symfile.o): Add $(bcache_h).
5864
5865 * symmisc.c: Update copyright.
5866 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5867 (print_objfile_statistics): Use bcache_memory_used.
5868
5869 * symfile.c: Include "bcache.h".
5870 (reread_symbols): Use bcache_xfree.
5871 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5872 (add_psymbol_to_list): Pass psymbol_cache by value.
5873 (add_psymbol_with_dem_name_to_list): Ditto.
5874
5875 * objfiles.h: Update copyright.
5876 (struct bcache): Declare opaque. Do not include "bcache.h".
5877 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5878 bcache'' pointers.
5879 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5880
5881 * objfiles.c: Include "bcache.h". Update copyright.
5882 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5883 macro_cache.
5884 (free_objfile): Use bcache_xfree.
5885
5886 2002-07-11 Grace Sainsbury <graces@redhat.com>
5887
5888 * monitor.c (monitor_fetch_register): Make name a constant.
5889 (monitor_store_register): Same.
5890
5891 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5892
5893 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5894 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5895 (finish_block) For non-function blocks, hash the symbol table. For
5896 function blocks, mark the symbol table as unhashed.
5897 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5898 (msymbol_hash_iw): Likewise.
5899 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5900 value.
5901 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5902 (lookup_minimal_symbol): Likewise for both.
5903 * symtab.h (struct block): Add `hashtable' flag. Comment the
5904 hashtable.
5905 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5906 (ALL_BLOCK_SYMBOLS): Update.
5907 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5908 (struct symbol): Add `hash_next' pointer.
5909 * symtab.c (lookup_block_symbol): Search using the hash table when
5910 possible.
5911 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5912 (search_symbols, find_addr_symbol): Likewise.
5913
5914 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5915 (read_dst_symtab): Likewise.
5916 * jv-lang.c (get_java_class_symtab): Likewise.
5917 * mdebugread.c: Include "gdb_assert.h".
5918 (shrink_block): Assert that the block being modified is not hashed.
5919 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5920 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5921 symbols.
5922 (dump_symtab): Recognize hashed blocks.
5923 * printcmd.c (print_frame_args): Assert that function blocks do not
5924 have hashed symbol tables.
5925 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5926 (fill_in_ada_prototype, debug_print_block): Likewise.
5927 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5928
5929 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5930
5931 * stack.c (print_frame): Use result of frame_address_in_block()
5932 instead of fi->pc when evaluating symbols.
5933 (backtrace_command_1): Ditto.
5934
5935 2002-07-11 Andrew Cagney <cagney@redhat.com>
5936
5937 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5938 Make static.
5939
5940 * arm-tdep.c (arm_register_name): Make return type constant.
5941
5942 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5943
5944 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5945 prototype.
5946 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5947 * s390-tdep.c (s390_fp_regnum): Ditto.
5948 (s390_read_fp): Ditto.
5949 (s390_pop_frame): Ditto.
5950 (_initialize_s390_tdep): Ditto.
5951 * remote.c (get_remote_state): Ditto.
5952 * procfs.c (mappingflags): Ditto.
5953 * memattr.c (_initialize_mem): Ditto.
5954 * mcore-tdep.c (mcore_pop_frame): Ditto.
5955 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5956 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5957 * language.c (set_case_str): Ditto.
5958 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5959 * frv-tdep.c (new_variant): Ditto.
5960 (frv_stopped_data_address): Ditto.
5961 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5962 (context_alloc): Ditto.
5963 (frame_state_alloc): Ditto.
5964 (unwind_tmp_obstack_init): Ditto.
5965 (unwind_tmp_obstack_free): Ditto.
5966 (cfi_read_fp): Ditto.
5967 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5968 (cris_pop_frame): Ditto.
5969 * c-lang.c (scanning_macro_expansion): Ditto.
5970 (finished_macro_expansion): Ditto.
5971 (c_preprocess_and_parse): Ditto.
5972 * gdbarch.sh: Ditto.
5973 * gdbarch.h, gdbarch.c: Regenerate.
5974 * config/mn10200/tm-mn10200.h: Adjust indentation.
5975 * target.c: Adjust indentation.
5976 * symtab.h: Adjust indentation.
5977 * stabsread.h: Adjust indentation.
5978 * remote-es.c: Adjust indentation.
5979 * os9kread.c: Adjust indentation.
5980
5981 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5982
5983 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5984 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5985
5986 2002-07-10 Grace Sainsbury <graces@redhat.com>
5987
5988 * NEWS: Mention m68k, mcore multi-arching.
5989 * MAINTAINERS: Change status of m68k, mcore to reflect
5990 multi-arching.
5991
5992 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5993
5994 * valops.c (find_overload_match): Free oload_syms.
5995
5996 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5997
5998 Define HAVE_SYS_PROC_H if sys/proc.h exists
5999 * configure.in: Add check for sys/proc.h
6000 * config.in: Regenerate.
6001 * configure: Regenerate.
6002
6003 2002-07-09 Grace Sainsbury <graces@redhat.com>
6004
6005 * config/m68k/tm-m68k.h: Remove macros wrapped in
6006 #if !GDB_MULTI_ARCH.
6007
6008 2002-07-08 Andrew Cagney <ac131313@redhat.com>
6009
6010 * config.in, configure: Regenerate.
6011
6012 2002-07-08 Mark Kettenis <kettenis@gnu.org>
6013
6014 * dwarf2cfi.c: Include "gcore.h".
6015 (execute_stack_op): Fix implementation of the
6016 DW_OP_deref and DW_OP_deref_size operators by letting do their
6017 lookup in the target.
6018
6019 2002-07-07 Mark Kettenis <kettenis@gnu.org>
6020
6021 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
6022 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6023 tdep->sc_sp_offset.
6024
6025 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
6026
6027 Fix PR gdb/595, gdb/602
6028 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6029 Don't call value_cast, just read the vtable pointer; update comments
6030 to match.
6031
6032 2002-07-05 Grace Sainsbury <graces@redhat.com>
6033
6034 * config/mcore/tm-mcore.h: Remove file.
6035 * config/mcore/mcore.mt: Remove definition of TM_FILE
6036 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6037
6038 2002-07-05 Mark Kettenis <kettenis@gnu.org>
6039
6040 * i386bsd-tdep.c: Include "gdb_string.h".
6041
6042 2002-07-04 Grace Sainsbury <graces@redhat.com>
6043
6044 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6045 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6046 mcore-tdep.
6047 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6048 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6049 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6050 (RETVAL_REGNUM): Move macros from tm-mcore.h
6051 (mcore_reg_struct_has_addr): New function.
6052 (mcore_gdbarch_init): Added initializations for the macros removed
6053 from tm-mcore.h.
6054
6055 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6056
6057 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6058 traditonal string branding within the ELF header.
6059
6060 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
6061
6062 * symtab.c (remove_params): New function.
6063 (make_symbol_overload_list): Use it instead of cplus_demangle.
6064 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6065
6066 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6067
6068 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6069
6070 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6071 New variables.
6072 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6073 and tdep->sigtramp_end.
6074 * i386obsd-nat.c: New file.
6075 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6076
6077 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6078 Don't call get_current_frame().
6079
6080 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
6081
6082 * i386-nat.c (child_post_startup_inferior): New function
6083 calling i386_cleanup_dregs if
6084 I386_USE_GENERIC_WATCHPOINTS is defined.
6085 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6086 conditional to acknowledge that i386-nat.c has its
6087 own child_post_startup_inferior function.
6088
6089 2002-07-04 Mark Kettenis <kettenis@gnu.org>
6090
6091 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6092 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6093 instead of MAX_REGISTER_RAW_SIZE.
6094 (i386_extract_return_value, i386_extract_struct_value_address):
6095 Convert to use regcache.
6096 (i386_gdbarch_init): Set max_register_raw_size and
6097 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6098 Set extract_return_value and extract_struct_value_address instead
6099 of their deprecated variants.
6100
6101 Convert i386 target to generic dummy frames.
6102 * i386-tdep.c: Include "symfile.h".
6103 (i386_frameless_signal_p): Consider a function to be frameless if
6104 the pc points at the first instruction of the function.
6105 (i386_frame_chain): Handle (generic) call dummies.
6106 (i386_frame_saved_pc): Likewise.
6107 (i386_frame_init_saved_regs): Remove code dealing with call
6108 dummies on the stack.
6109 (i386_push_dummy_frame): Removed.
6110 (i386_call_dummy_words): Removed.
6111 (i386_fix_call_dummy): Removed.
6112 (i386_push_return_address): New function.
6113 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6114 parameter, and don't call get_current_frame.
6115 (i386_pop_frame): New function.
6116 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6117 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6118 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6119 call_dummy_length to 0, set call_dummy_words to NULL, set
6120 sizeof_call_dummy_words to 0, set fix_call_dummy to
6121 generic_fix_call_dummy, set pc_in_call_dummy to
6122 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6123 generic_push_dummy_frame, set push_return_address to
6124 i386_push_return_address and set frame_chain_valid to
6125 generic_file_frame_chain_valid.
6126
6127 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6128
6129 * gdbarch.sh (struct regcache): Add opaque declaration.
6130 (EXTRACT_RETURN_VALUE): New architecture method.
6131 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6132 * gdbarch.h, gdbarch.c: Regenerate.
6133 * arch-utils.c (legacy_extract_return_value): New function.
6134 * arch-utils.h (legacy_extract_return_value): Declare.
6135 * values.c (value_being_returned): Re-enable code handling
6136 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6137 deprecated_grub_regcache_for_registers call to block handling
6138 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6139 (EXTRACT_RETURN_VALUE): Do not define.
6140
6141 2002-07-03 Grace Sainsbury <graces@redhat.com>
6142
6143 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6144 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6145 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6146 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6147 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6148 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6149 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6150 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6151 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6152 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6153 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6154 argument so the function fits the prototype in the architecture
6155 vector.
6156 (mcore_pop_frame): Remove argument so the function fits the
6157 prototype. Use get_current_frame instead of the argument.
6158 (mcore_push_arguments): Change type of struct_return so the
6159 function can be used in the architecture vector.
6160 (mcore_store_struct_return): Add.
6161 (mcore_frame_init_saved_regs): Add.
6162 (mcore_gdbarch_init): Add function calls to replace the macros
6163 removed from tm-mcore.h
6164
6165 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6166
6167 * infcmd.c (print_return_value): Remove compatibility code calling
6168 deprecated_grub_regcache_for_registers.
6169
6170 * values.c: Include "regcache.h".
6171 (value_being_returned): Update. Use
6172 deprecated_grub_regcache_for_registers to extract the register
6173 buffer address.
6174 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6175 ``struct regcache''.
6176 * Makefile.in (values.o): Add dependency on $(regcache_h).
6177
6178 * inferior.h (run_stack_dummy): Change type of second parameter to
6179 a ``struct regcache''.
6180 * valops.c (hand_function_call): Change type of retbuf to ``struct
6181 regcache''. Allocate using regcache_xmalloc, clean using
6182 make_cleanup_regcache_xfree.
6183 * infcmd.c (run_stack_dummy): Update. Use
6184 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6185
6186 * regcache.c (do_regcache_xfree): New function.
6187 (make_cleanup_regcache_xfree): New function.
6188 * regcache.h (make_cleanup_regcache_xfree): Declare.
6189
6190 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6191
6192 * event-top.c (command_line_handler): Don't read past
6193 beginning of buffer.
6194
6195 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6196
6197 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6198 struct frame_id.
6199 (varobj_create): Store frame_id for root.
6200 (varobj_gen_name): Use xasprintf.
6201 (varobj_update): Save and restore frame using get_frame_id() and
6202 frame_find_by_id().
6203 (create_child): Use xasprintf.
6204 (new_root_variable): Initialize frame_id.
6205 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6206 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6207 to prevent memory leak.
6208
6209 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6210
6211 * valops.c (hand_function_call): Move declaration of retbuf to
6212 start of function, allocate using malloc, add a cleanup but before
6213 the inf_status cleanup, cleanup the buffer. Rename local variable
6214 old_chain to inf_status_cleanup.
6215
6216 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6217
6218 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6219
6220 * cli/cli-decode.c (cmd_func_p): New function.
6221 (cmd_func): New function.
6222
6223 * command.h: Add cmd_func() and cmd_func_p().
6224
6225 2002-07-03 Grace Sainsbury <graces@redhat.com>
6226
6227 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6228 (REGISTER_SIZE): Remove.
6229 (MAX_REGISTER_RAW_SIZE): Remove.
6230 (REGISTER_VIRTUAL_TYPE): Remove.
6231 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6232 (REGISTER_NAME): Remove.
6233 (USE_GENERIC_DUMMY_FRAMES): Remove.
6234 (CALL_DUMMY): Remove.
6235 (CALL_DUMMY_START_OFFSET): Remove.
6236 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6237 (CALL_DUMMY_LOCATION): Remove.
6238 (FIX_CALL_DUMMY): Remove.
6239 (CALL_DUMMY_ADDRESS): Remove.
6240 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6241 (SAVE_DUMMY_FRAME_TOS): Remove.
6242 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6243 (mcore_register_virtual_type): New function.
6244 (mcore_register_byte): New function.
6245 (mcore_register_size): New function.
6246 (mcore_register_name): New function.
6247 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6248 macros removed from tm-mcore.h.
6249 (mcore_dump_tdep): Add.
6250 (_initialize_mcore_tdep): Add gdbarch_register call.
6251
6252 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6253
6254 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6255 frameless_look_for_prologue, such that we actually call this
6256 function.
6257
6258 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6259
6260 * frame.h (frame_address_in_block): New function.
6261
6262 * blockframe.c (frame_address_in_block): New function extracted
6263 from get_frame_block().
6264 (get_frame_block): Use frame_address_in_block().
6265 (block_innermost_frame): Use frame_address_in_block() to match
6266 the frame pc address against the block boundaries rather than
6267 the frame pc directly. This prevents a failure when a frame pc
6268 is actually a return-address pointing immediately after the end
6269 of the given block.
6270
6271 2002-07-02 Grace Sainsbury <graces@redhat.com>
6272
6273 * MAINTAINERS: Add self under write after approval.
6274
6275 2002-07-02 Grace Sainsbury <graces@redhat.com>
6276
6277 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6278 used in architecture vector. The default is
6279 m68k_local_breakpoint_from_pc.
6280 (m68k_local_breakpoint_from_pc): Add.
6281 (enum): Add register numbers from tm-m68k.h.
6282 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6283 vector.
6284 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6285 GDB_MULTI_ARCH_PARTIAL.
6286 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6287 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6288 m68k-tdep.c.
6289 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6290 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6291 to enum in m68k-tdep.c
6292
6293 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6294
6295 * solib-osf.c (open_map): Compute the list of shared libraries
6296 loaded by the inferior, rather than the list of libraries loaded
6297 by GDB itself. Otherwise, GDB ends up reading the symbols from
6298 the wrong shared libraries...
6299
6300 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6301
6302 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6303 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6304 macros.
6305 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6306 Remove functions.
6307 (FRAMELESS_SIGNAL): Remove function.
6308 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6309 i386_linux_saved_pc_after_call): Removed.
6310 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6311 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6312 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6313
6314 * i386-tdep.c (i386_frameless_signal_p): New function.
6315 (i386_frame_chain): Deal with frameless signals.
6316 (i386_sigtramp_saved_sp): New function.
6317 (i386_frame_saved_pc): Deal with frameless signals.
6318 (i386_saved_pc_after_call): Make sure the correct value is
6319 returned just after entry into a sigtramp.
6320 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6321 i386fbsd4_sc_sp_offset): New variables.
6322 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6323 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6324 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6325 similiar to what we already did for sc_pc_offset.
6326 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6327 tdep->sc_sp_offset.
6328
6329 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6330
6331 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6332
6333 * config/i386/tm-x86-64linux.h: New.
6334 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6335 definitions.
6336 * config/i386/nm-x86-64.h: Rename to ...
6337 * config/i386/nm-x86-64linux.h: ... this one.
6338 * config/i386/x86-64linux.mh: Reflect the above change.
6339
6340 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6341
6342 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6343 with sigcontext_addr. Add sc_sp_offset.
6344 (i386bsd_sigtramp_saved_pc): Remove prototype.
6345 (i386bsd_sicontext_addr): Add prototype.
6346 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6347 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6348 (i386_svr4_sigtramp_saved_pc): Removed.
6349 (i386_svr4_sigcontext_addr): New function.
6350 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6351 Initialize tdep->sigcontext_addr instead. Initialize
6352 tdep->sc_pc_offset and tdep->sc_sp_offset.
6353 (i386_gdbarch_init): Likewise.
6354 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6355 any more.
6356 (i386bsd_sigtramp_saved_pc): Remove function.
6357 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6358 Initialize tdep->sigcontext_addr instead. Initialize
6359 tdep->sc_pc_offset.
6360 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6361 of tdep->sigtramp_saved_pc.
6362 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6363 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6364 instead.
6365
6366 * i386-tdep.c (i386_frameless_function_invocation,
6367 i386_frame_num_args, i386_frame_init_saved_regs,
6368 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6369 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6370 i386_extract_return_value, i386_store_return_value,
6371 i386_extract_struct_value_address, i386_register_virtual_type,
6372 i386_register_convertible, i386_register_convert_to_virtual,
6373 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6374 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6375 static.
6376
6377 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6378
6379 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6380
6381 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6382 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6383 this macro. Include "value.h".
6384
6385 2002-06-30 Aidan Skinner <aidan@velvet.net>
6386
6387 * ada-exp.tab.c: remove as it's a generated file
6388 * ada-lex.c: remove as it's a generated file
6389
6390 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6391
6392 * config/i386/tm-i386.h (struct frame_info, struct
6393 frame_saved_regs, struct value, struct type): Remove forward
6394 declarations.
6395
6396 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6397 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6398 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6399 (FILL_FPXREGSET): Define.
6400
6401 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6402
6403 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6404 i[3456]86-*-netbsd* case.
6405 * config/i386/tm-obsd.h: Removed.
6406 * config/i386/obsd.mt: Removed.
6407 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6408 core-aout.o.
6409 (MH_CFLAGS): Add -DYYDEBUG=0.
6410
6411 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6412 i386nbsd_sc_pc_offset on OpenBSD too.
6413
6414 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6415 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6416 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6417 define.
6418 * i386bsd-tdep.c: Include "arch-utils.h".
6419 (i386bsd_aout_in_solib_call_trampoline): New function.
6420 (i386bsd_init_abi): Set in_solib_call_trampoline to
6421 i386bsd_aout_in_solib_call_trampoline.
6422 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6423 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6424
6425 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6426
6427 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6428 (struct obstack, struct bcache): Add opaque declarations.
6429 * Makefile.in (macrotab_h): Update
6430
6431 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6432
6433 * blockframe.c (generic_find_dummy_frame): Change return type to
6434 ``struct regcache''.
6435 (struct dummy_frame): Replace field ``registers'' with regcache, a
6436 struct regcache object.
6437 (generic_find_dummy_frame): Update.
6438 (generic_push_dummy_frame): Update. Use regcache_xfree,
6439 regcache_xmalloc and regcache_cpy.
6440 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6441 regcache_xfree.
6442 (deprecated_generic_find_dummy_frame): Update.
6443 (generic_read_register_dummy): Update. Use
6444 regcache_read_as_address.
6445 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6446 (generic_get_saved_register): Update. Use regcache_read.
6447
6448 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6449
6450 * Makefile.in (objfiles_h): Add $(bcache_h).
6451 * objfiles.h: Include "bcache.h".
6452
6453 * Makefile.in (symtab_h): Remove $(bcache_h).
6454 * symtab.h: Do not include "bcache.h".
6455
6456 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6457
6458 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6459 generic_func_frame_chain_valid.
6460
6461 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6462
6463 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6464 * config/i386/tm-fbsd.h: Likewise.
6465
6466 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6467
6468 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6469 generic_unwind_get_saved_register.
6470
6471 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6472
6473 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6474 * regcache.c (supply_register): Add missing argument to
6475 register_buffer call.
6476
6477 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6478
6479 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6480 Solaris /bin/grep does not not like it. From Peter Schauer.
6481
6482 2002-06-26 Tom Tromey <tromey@redhat.com>
6483
6484 * command.h (add_setshow_cmd): Declare.
6485 (add_setshow_cmd_full): Declare.
6486 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6487 returns void. Use add_setshow_cmd_full.
6488 (add_setshow_cmd_full): New function.
6489 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6490 (add_setshow_boolean_cmd): Likewise.
6491
6492 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6493
6494 * config/vax/tm-vax.h: Protect from multiple inclusion.
6495 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6496 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6497 * config/vax/tm-vaxbsd.h: ...here. New file.
6498 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6499
6500 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6501
6502 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6503 (BELIEVE_PCC_PROMOTION): Remove.
6504 (AP_REGNUM): Move to...
6505 * config/vax/nm-vax.h: ...here.
6506 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6507 (vax_breakpoint_from_pc): New function.
6508 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6509 and gdbarch_believe_pcc_promotion.
6510
6511 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6512
6513 * Makefile.in (vax_tdep_h): Define.
6514 (vax-tdep.o): Use $(vax_tdep_h).
6515 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6516 (vax_dump_tdep): New function.
6517 (_initialize_vax_tdep): Register vax_dump_tdep.
6518 * vax-tdep.h: Include osabi.h.
6519 (struct gdbarch_tdep): New.
6520
6521 2002-06-26 Andrew Cagney <cagney@redhat.com>
6522
6523 * frame.h (deprecated_generic_find_dummy_frame): Rename
6524 generic_find_dummy_frame.
6525 * blockframe.c (generic_find_dummy_frame): Make static.
6526 (deprecated_generic_find_dummy_frame): New function.
6527 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6528 generic_find_dummy_frame with deprecated_find_dummy_frame.
6529 (sh64_nofp_frame_init_saved_regs): Ditto.
6530 (sh_fp_frame_init_saved_regs): Ditto.
6531 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6532 (s390_frame_chain): Ditto.
6533 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6534
6535 2002-06-26 Grace Sainsbury <graces@redhat.com>
6536
6537 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6538 gdbarch vector are at the top.
6539 (NUM_REGS): Remove.
6540 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6541 (FRAME_ARGS_ADDRESS): Remove.
6542 (FRAME_LOCALS_ADDRESS): Remove.
6543 (FRAME_NUM_ARGS): Remove.
6544 (FRAME_ARGS_SKIP): Remove.
6545 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6546 (m68k_gdbarch_init): Add gdbarch initializations for macros
6547 undefined in tm-m68k.h
6548
6549 2002-06-26 Grace Sainsbury <graces@redhat.com>
6550
6551 * monitor.h: Add the function regname to monitor_ops
6552 structure. This way NUM_REGS does not have to be a constant.
6553 * monitor.c (monitor_fetch_register): Added support for regname
6554 function. The function is called if the array regnames is NULL.
6555 (monitor_store_register): Same.
6556 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6557 regnames array.
6558 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6559 cpu32bug_cmds.regname to point to new function.
6560 * abug-rom.c (abug_regname): Same as above.
6561 (init_abug_cmds): Same.
6562 * dbug-rom.c (dbug_regname): Same as above.
6563 (init_dbug_cmds): Same.
6564 * remote-est.c (est_regname): Same.
6565 (init_est_cmds): Same.
6566 * rom68k-rom.c (rom68k_regname): Same.
6567 (init_rom68k_cmds): Same.
6568
6569 2002-06-25 Tom Tromey <tromey@redhat.com>
6570
6571 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6572
6573 2002-06-25 Andrew Cagney <cagney@redhat.com>
6574
6575 * infrun.c (stop_registers): Change variable's type to ``struct
6576 regcache'''.
6577 (xmalloc_inferior_status): Delete function.
6578 (free_inferior_status): Delete function.
6579 (normal_stop): Use regcache_cpy.
6580 (struct inferior_status): Change type of fields ``stop_registers''
6581 and ``registers'' to ``struct regcache''.
6582 (write_inferior_status_register): Use regcache_write.
6583 (save_inferior_status): Instead of calling
6584 xmalloc_inferior_status, allocate the inf_status buffer directly.
6585 Use regcache_dup_no_passthrough and regcache_dup to save the
6586 buffers.
6587 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6588 Replace the stop_registers regcache instead of overriding it. Use
6589 regcache_xfree. Instead of calling free_inferior_status, xfree
6590 the buffer directly.
6591 (discard_inferior_status): Use regcache_xfree. Instead of calling
6592 free_inferior_status, xfree the buffer directly.
6593 (build_infrun): Use regcache_xmalloc.
6594 (_initialize_infrun): Delete redundant call to build_infrun.
6595
6596 * Makefile.in (infcmd.o): Add $(regcache_h).
6597
6598 * infcmd.c: Include "regcache.h".
6599 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6600 obtain the address of `stop_registers' register buffer.
6601 (print_return_value): Ditto.
6602
6603 * inferior.h (struct regcache): Add opaque declaration.
6604 (stop_registers): Change variable's declared type to ``struct
6605 regcache''.
6606
6607 2002-06-24 Tom Tromey <tromey@redhat.com>
6608
6609 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6610 * target.c (initialize_targets): Fixed typo in
6611 trust-readonly-sections `show' documentation.
6612
6613 * main.c: Marked all strings with _().
6614
6615 2002-06-24 Don Howard <dhoward@redhat.com>
6616
6617 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6618 that means max CORE_ADDR+1.
6619 (lookup_mem_region): Ditto.
6620 (mem_info_command): Ditto.
6621
6622 2002-06-24 Grace Sainsbury <graces@redhat.com>
6623
6624 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6625 (REGISTER_BYTES_OK): Remove.
6626 (REGISTER_BYTES): Remove.
6627 (STORE_STRUCT_RETURN): Remove.
6628 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6629 (STORE_RETURN_VALUE): Remove.
6630 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6631 (FRAME_CHAIN): Remove.
6632 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6633 (FRAME_SAVED_PC): Remove.
6634 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6635 (m68k_store_struct_return): Add.
6636 (m68k_deprecated_extract_return_value): Add.
6637 (m68k_deprecated_extract_struct_value_address): Add.
6638 (m68k_store_return_value): Add.
6639 (m68k_frame_chain): Add.
6640 (m68k_frameless_function_invocation): Add.
6641 (m68k_frame_saved_pc): Add.
6642 (m68k_gdbarch_init): added set_gdbarch calls for new
6643 functions and deleted macros.
6644
6645 2002-06-23 Tom Tromey <tromey@redhat.com>
6646
6647 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6648 (ALLDEPFILES): Likewise.
6649 (udiheaders): Removed.
6650 (udip2soc.o): Likewise.
6651 (udi2go32.o): Likewise.
6652 (udr.o): Likewise.
6653 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6654
6655 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6656
6657 * infrun.c (_initialize_infrun): Delete unnecessary call to
6658 build_infrun.
6659
6660 * regcache.h: Update comments describing the regcache_cpy family
6661 of functions.
6662 (regcache_save, regcache_restore): Delete declaration.
6663 (regcache_save_no_passthrough): Delete declaration.
6664 (regcache_restore_no_passthrough): Delete declaration.
6665 * regcache.c (regcache_save): Delete function.
6666 (regcache_save_no_passthrough): Delete function.
6667 (regcache_restore): Delete function.
6668 (regcache_restore_no_passthrough): Delete function.
6669
6670 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6671
6672 * config/m68k/tm-m68k.h: Fix typo.
6673 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6674 (m68k_frame_init_saved_regs): Declare.
6675
6676 2002-06-21 Jim Blandy <jimb@redhat.com>
6677
6678 Remove some vestiges of Harris 88k support.
6679 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6680 register numbering quirk.
6681 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6682 odd symbols occurring in Harris 88k ELF targets.
6683
6684 2002-06-21 Tom Tromey <tromey@redhat.com>
6685
6686 * gdb_locale.h: New file.
6687 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6688 (defs_h): Added gdb_locale.h.
6689 * configure, config.in: Rebuilt.
6690 * configure.in (PACKAGE): Define.
6691 * defs.h: Include gdb_locale.h.
6692 * main.c (captured_main): Call setlocale, bindtextdomain,
6693 textdomain.
6694
6695 2002-06-21 Dave Brolley <brolley@redhat.com>
6696
6697 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6698 * config/frv/frv.mt: New file.
6699 * config/frv/tm-frv.h: New file.
6700 * configure.tgt: Support frv-*-*.
6701 * Makefile.in (frv-tdep.o): New target.
6702 * frv-tdep.c: New file.
6703 * NEWS: Mention frv.
6704
6705 2002-06-21 Dave Brolley <brolley@redhat.com>
6706
6707 * MAINTAINERS: Add self to "Write After Approval" list.
6708
6709 2002-06-21 Grace Sainsbury <graces@redhat.com>
6710
6711 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6712 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6713 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6714 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6715 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6716
6717 * m68k-tdep.c: Include arch-utils.h
6718 (m68k_register_raw_size): Add.
6719 (m68k_register_virtual_size): Add.
6720 (m68k_register_virtual_type): Add.
6721 (m68k_register_name): Add.
6722 (m68k_stack_align): Add.
6723 (m68k_register_byte): Add.
6724 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6725 tm-m68k.h.
6726
6727 2002-06-21 Grace Sainsbury <graces@redhat.com>
6728
6729 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6730 m68k_find_saved_regs.
6731 (m68k_pop_frame): Removed saved_regs structure, and replaced
6732 references to it with frame->saved_regs.
6733 (m68k_gdbarch_init): Added function calls to initialize the
6734 gdbarch structure.
6735 (m68k_fix_call_dummy): Add.
6736 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6737 (CALL_DUMMY): Remove.
6738 (CALL_DUMMY_LENGTH): Remove.
6739 (CALL_DUMMY_START_OFFSET): Remove.
6740 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6741 (FIX_CALL_DUMMY): Remove.
6742 (PUSH_DUMMY_FRAME): Remove.
6743 (POP_FRAME): Remove.
6744
6745 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6746
6747 * parse.c (parse_fprintf): New function used to avoid calls to
6748 fprintf in bison parser generated debug code.
6749 * parser-defs.h: Declaration of new parse_fprintf function.
6750 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6751 Set YYDEBUG to 1 by default.
6752 Set YYFPRINTF as parse_fprintf.
6753
6754 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6755
6756 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6757 encoding anymore.
6758 (pointer_encoding, enum ptr_encoding): New.
6759 (execute_cfa_program): Take care about pointer encoding.
6760 (dwarf2_build_frame_info): Only call parse_frame_info for
6761 .debug_frame and .eh_frame.
6762 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6763 fixed augmentation handling, added relative addressing,
6764 ignore duplicate FDEs. Added comments.
6765 * dwarf2cfi.c: Reindented.
6766
6767 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6768
6769 * event-top.c (command_handler): Don't use space_at_cmd_start
6770 unless there is sbrk() on the host. Assign time and space data
6771 to union fields of the appropriate length.
6772
6773 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6774
6775 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6776 x86_64_register_name. Return type changed to 'const char *'.
6777 (x86_64_register_name2nr): Rename to x86_64_register_number.
6778 (x86_64_gdbarch_init): Update to reflect the change.
6779 * x86-64-tdep.h: Ditto.
6780 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6781 (supply_fpregset): Ditto.
6782
6783 2002-06-19 Andrew Cagney <cagney@redhat.com>
6784
6785 * regcache.h: Update copyright.
6786 (struct regcache, struct gdbarch): Add opaque declarations.
6787 (current_regcache): Declare global variable.
6788 (regcache_read, regcache_write): Add gdbarch parameter.
6789 (regcache_save, regcache_save_no_passthrough)
6790 (regcache_restore, regcache_restore_no_passthrough)
6791 (regcache_dup, regcache_dup_no_passthrough)
6792 (regcache_cpy, regcache_cpy_no_passthrough)
6793 (deprecated_grub_regcache_for_registers)
6794 (deprecated_grub_regcache_for_register_valid)
6795 (regcache_valid_p): Add function declarations.
6796
6797 * regcache.c: Update copyright.
6798 (regcache_descr_handle): New global variable.
6799 (struct regcache_descr): Define.
6800 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6801 (regcache_descr, xfree_regcache_descr): New functions.
6802 (struct regcache): Define.
6803 (regcache_xmalloc, regcache_xfree): New functions.
6804 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6805 (regcache_dup, regcache_dup_no_passthrough): New functions.
6806 (regcache_valid_p, regcache_read_as_address): New functions.
6807 (deprecated_grub_regcache_for_registers): New function.
6808 (deprecated_grub_regcache_for_register_valid): New function.
6809 (current_regcache): New global variable.
6810 (register_buffer): Add regcache parameter. Update calls.
6811 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6812 (read_register_gen, write_register_gen): Update register_buffer
6813 call. Test for legacy_p instead of gdbarch_register_read_p or
6814 gdbarch_register_write_p.
6815 (regcache_collect): Update register_buffer call.
6816 (build_regcache): Rewrite. Use deprecated grub functions.
6817 (regcache_save, regcache_save_no_passthrough): New functions.
6818 (regcache_restore, regcache_restore_no_passthrough): New
6819 functions.
6820 (_initialize_regcache): Create the regcache_data_handle. Swap
6821 current_regcache global variable.
6822
6823 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6824 parameter to regcache_read and regcache_write calls.
6825 (sh4_register_read): Ditto.
6826 (sh64_pseudo_register_read): Ditto.
6827 (sh64_register_read): Ditto.
6828 (sh_pseudo_register_write): Ditto.
6829 (sh4_register_write): Ditto.
6830 (sh64_pseudo_register_write): Ditto.
6831 (sh64_register_write): Ditto.
6832
6833 * defs.h (XCALLOC): Define.
6834
6835 2002-06-19 Grace Sainsbury <graces@redhat.com>
6836
6837 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6838 * m68k-tdep.c (m68k_gdbarch_init): Added.
6839 (m68k_dump_tdep): Added.
6840
6841 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6842
6843 * ada-lang.c (fill_in_ada_prototype): Update comment.
6844
6845 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6846
6847 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6848 MIPS_ABI_LAST.
6849 (mips_abi_string, mips_abi_strings): New.
6850 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6851 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6852 tdep->mips_abi_string. Honor mips_abi_string. Default to
6853 O32 if no ABI is found.
6854 (mips_dump_tdep): Use mips_abi_strings.
6855 (mips_abi_update): New function.
6856 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6857 ``set mips abi'' and ``show mips abi''. Check the size of
6858 mips_abi_strings.
6859
6860 2002-06-19 Andrew Cagney <cagney@redhat.com>
6861
6862 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6863 constant.
6864
6865 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6866
6867 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6868 current frame using only the first stack size adjustment. All
6869 subsequent size adjustments are not considered to be part of
6870 the "static" part of the current frame.
6871 Compute the address of the saved registers relative to the
6872 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6873 in use in this frame.
6874
6875 2002-06-18 Don Howard <dhoward@redhat.com>
6876
6877 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6878 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6879 suggesting this solution.
6880
6881 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6882
6883 * config/romp/xm-rtbsd.h: Delete file.
6884 * config/romp/rtbsd.mh: Delete file.
6885
6886 2002-06-18 Keith Seitz <keiths@redhat.com>
6887
6888 * breakpoint.c (condition_command): Post breakpoint_modify
6889 when a condition is added to an existing breakpoint.
6890 (commands_command): Likewise for commands.
6891 (set_ignore_count): Likewise for ignore counts.
6892 If no tty, do not simply return, still need to send event
6893 notification.
6894 (ignore_command): Only print a newline if the command came
6895 from a tty.
6896 Don't call breakpoints_changed, since this is now properly
6897 handled by set_ignore_count.
6898
6899 2002-06-18 Andrew Cagney <cagney@redhat.com>
6900
6901 * MAINTAINERS: Note that cris-elf target can be compiled with
6902 -Werror.
6903 * cris-tdep.c (cris_register_name): Make return type constant.
6904 (cris_breakpoint_from_pc): Ditto.
6905
6906 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6907
6908 * frame.h (struct frame_info): Change type of context to
6909 'struct context'.
6910
6911 2002-06-17 Andrew Cagney <cagney@redhat.com>
6912
6913 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6914 pointer.
6915 * gdbarch.h, gdbarch.c: Regenerate.
6916 * config/mips/tm-mips.h (mips_register_name): Update.
6917 * i386-tdep.h (i386_register_name): Update.
6918 * mips-tdep.c (mips_register_name): Update
6919 * alpha-tdep.c (alpha_register_name): Update.
6920 * arch-utils.c (legacy_register_name): Update.
6921 * arch-utils.h (legacy_register_name): Update.
6922 * avr-tdep.c (avr_register_name): Update.
6923 * ia64-tdep.c (ia64_register_name): Update.
6924 * i386-tdep.c (i386_register_name): Update.
6925 * sparc-tdep.c (sparc32_register_name): Update.
6926 (sparc64_register_name): Update.
6927 (sparclite_register_name): Update.
6928 (sparclet_register_name): Update.
6929 * sh-tdep.c (sh_generic_register_name): Update.
6930 (sh_sh_register_name): Update.
6931 (sh_sh3_register_name): Update.
6932 (sh_sh3e_register_name): Update.
6933 (sh_sh_dsp_register_name): Update.
6934 (sh_sh3_dsp_register_name): Update.
6935 (sh_sh4_register_name): Update.
6936 (sh_sh64_register_name): Update.
6937 * s390-tdep.c (s390_register_name): Update.
6938 * rs6000-tdep.c (rs6000_register_name): Update.
6939 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6940 (ns32k_register_name_32382): Update.
6941 * d10v-tdep.c (d10v_ts2_register_name): Update.
6942 (d10v_ts3_register_name): Update.
6943 * xstormy16-tdep.c (xstormy16_register_name): Update.
6944 * vax-tdep.c (vax_register_name): Update.
6945 * v850-tdep.c (v850_register_name): Update.
6946 * m68hc11-tdep.c (m68hc11_register_name): Update.
6947 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6948 (am33_register_name): Update.
6949
6950 2002-06-17 Grace Sainsbury <graces@redhat.com>
6951
6952 * m68k-tdep.c: Reindented.
6953
6954 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6955
6956 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6957 list of predefined types.
6958
6959 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6960
6961 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6962 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6963 REGISTER_CONVERT_TO_RAW): Remove defines.
6964 (i386_register_virtual_type, i386_register_convertible,
6965 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6966 Remove prototypes.
6967 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6968 macros mentioned above.
6969
6970 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6971 (i386lynx_saved_pc_after_call): Remove prototype.
6972 * i386ly-tdep.c: Include "i386-tdep.h".
6973 (i386lynx_saved_pc_after_call): Make static. Use
6974 read_memory_nobpt instead of read_memory. Use
6975 read_memory_unsigned_integer instead of read_memory_integer.
6976 (i386lynx_init_abi): New function.
6977 (i386lynx_coff_osabi_sniffer): New function.
6978 (_initialize_i386bsd_tdep): New function.
6979
6980 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6981 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6982 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6983 (i386_fix_call_dummy): Remove prototype.
6984 * i386-tdep.c (i386_call_dummy_words): New variable.
6985 (i386_gdbarch_init): Adjust for removal of the
6986 macros mentioned above.
6987
6988 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6989
6990 * command.h (add_setshow_auto_boolean_cmd): Replace
6991 add_set_auto_boolean_cmd.
6992 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6993 add_set_auto_boolean_cmd.
6994 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6995 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6996 mask-address'' command.
6997 (show_mask_address): Add cmd parameter.
6998 * remote.c (add_packet_config_cmd): Update. Change type of
6999 set_func and show_func to cmd_sfunc_ftype.
7000 (_initialize_remote): Update `set remote Z-packet'
7001 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7002 (show_remote_protocol_e_packet_cmd): Ditto.
7003 (show_remote_protocol_E_packet_cmd): Ditto.
7004 (show_remote_protocol_P_packet_cmd): Ditto.
7005 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7006 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7007 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7008 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7009 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7010 (show_remote_protocol_Z_packet_cmd): Ditto.
7011 (show_remote_protocol_binary_download_cmd): Ditto.
7012 (show_remote_cmd): Pass NULL to all of above.
7013
7014 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7015
7016 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7017 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7018 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7019 POP_FRAME): Remove defines.
7020 (i386_push_arguments, i386_store_struct_return,
7021 i386_extract_return_value, i386_store_return_value,
7022 i386_extract_struct_value_address, i386_push_dummy_frame,
7023 i386_pop_frame): Renove prototypes.
7024 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7025 macros mentioned above.
7026
7027 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7028
7029 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7030 add_set_boolean_cmd.
7031 (add_setshow_cmd): New function.
7032 * command.h (add_setshow_boolean_cmd): Replace
7033 add_set_boolean_cmd.
7034 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7035 and ``set rdiromatzero''.
7036 * maint.c (_initialize_maint_cmds): Update commented out code.
7037 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7038 * target.c (initialize_targets): Update `set
7039 trust-readonly-sections'.
7040 * remote.c (_initialize_remote): Update `set remotebreak'.
7041
7042 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7043
7044 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7045 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7046 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7047 fit into multi-arch framework.
7048 (i386_breakpoint_from_pc): New function.
7049 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7050 above.
7051
7052 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7053 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7054 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7055 (i386_frameless_function_invocation, i386_frame_num_args,
7056 i386_frame_init_saved_regs): Remove prototypes.
7057 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7058 macros mentioned above.
7059
7060 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7061
7062 * cli/cli-decode.c (set_cmd_cfunc): Update.
7063 (set_cmd_sfunc): Update.
7064 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7065 (set_cmd_sfunc, set_cmd_cfunc): Update.
7066 * cli/cli-decode.h: Update.
7067
7068 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7069
7070 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7071 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7072
7073 2002-06-15 Andrew Cagney <ac131313@redhat.com>
7074
7075 * defs.h (auto_boolean): Declare enum.
7076 * command.h (cmd_auto_boolean): Delete enum.
7077 * mips-tdep.c (mask_address_var): Update.
7078 (mips_mask_address_p): Update.
7079 (show_mask_address): Update.
7080 * remote.c (struct packet_config): Update.
7081 (update_packet_config): Update.
7082 (show_packet_config_cmd): Update.
7083 (packet_ok): Update.
7084 (add_packet_config_cmd): Update.
7085 (_initialize_remote):
7086 * command.h: Update.
7087 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7088 (do_setshow_command): Update.
7089 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7090 * cli/cli-decode.h: Update.
7091
7092 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7093
7094 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7095 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7096 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7097 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7098 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7099 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7100
7101 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7102 list of DJGPP COFF targets.
7103
7104 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7105 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7106 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7107 (FP0_REGNUM): Remove define.
7108 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7109 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7110 (i386_register_virtual_size): Remove protoype.
7111 * i386-tdep.c (i386_register_virtual_size): Removed.
7112 (i386_extract_return_value, i386_store_return_value): Use
7113 FP0_REGNUM instead of NUM_FREGS to determine whether the
7114 floating-point registers are available.
7115 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7116 Adjust for removal of macros mentioned above.
7117
7118 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7119
7120 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7121 comments.
7122 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7123 Remove prototypes.
7124 (supply_gregset, fill_gregset): Remove use of register keyword and
7125 remove declaration for regmap. Use I386_NUM_GREGS instead of
7126 NUM_REGS and NUM_FREGS.
7127 (FPREGSET_FSAVE_OFFSET): Remove.
7128 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7129 NUM_FREGS to determine whether the floating-point registers are
7130 available.
7131
7132 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7133 gnu_store_registers): Replace usage of NUM_GREGS with
7134 I386_NUM_GREGS.
7135
7136 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7137 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7138 usage of NUM_GREGS with I386_NUM_GREGS.
7139
7140 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7141
7142 * i386bsd-nat.c: Include "i386-tdep.h".
7143 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7144 I386_NUM_GREGS.
7145
7146 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7147 and associated comment. They no longer make any sense, since we
7148 don't use this file anymore on Linux.
7149
7150 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7151 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7152 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7153 elements in these arrays.
7154 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7155 MAX_NUM_REGS.
7156
7157 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7158
7159 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7160 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7161
7162 2002-06-14 Andrew Cagney <cagney@redhat.com>
7163
7164 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7165 EXTRACT_RETURN_VALUE.
7166 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7167 EXTRACT_STRUCT_VALUE_ADDRESS.
7168 * gdbarch.h, gdbarch.c: Regenerate.
7169
7170 * values.c (value_being_returned): Handle
7171 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7172 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7173
7174 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7175 * arm-tdep.c (arm_gdbarch_init): Update.
7176 * avr-tdep.c (avr_gdbarch_init): Update.
7177 * cris-tdep.c (cris_gdbarch_init): Update.
7178 * d10v-tdep.c (d10v_gdbarch_init): Update.
7179 * ia64-tdep.c (ia64_gdbarch_init): Update.
7180 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7181 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7182 * s390-tdep.c (s390_gdbarch_init): Update.
7183 * sh-tdep.c (sh_gdbarch_init): Update.
7184 * s390-tdep.c (s390_gdbarch_init): Update.
7185 * sparc-tdep.c (sparc_gdbarch_init): Update.
7186 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7187 * v850-tdep.c (v850_gdbarch_init): Update.
7188 * vax-tdep.c (vax_gdbarch_init): Update.
7189 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7190 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7191
7192 * config/arc/tm-arc.h: Update.
7193 * config/d30v/tm-d30v.h: Update.
7194 * config/fr30/tm-fr30.h: Update.
7195 * config/h8300/tm-h8300.h: Update.
7196 * config/h8500/tm-h8500.h: Update.
7197 * config/i386/tm-i386.h: Update.
7198 * config/i386/tm-ptx.h: Update.
7199 * config/i386/tm-symmetry.h: Update.
7200 * config/i960/tm-i960.h: Update.
7201 * config/m32r/tm-m32r.h: Update.
7202 * config/m68k/tm-delta68.h: Update.
7203 * config/m68k/tm-linux.h: Update.
7204 * config/m68k/tm-m68k.h: Update.
7205 * config/m88k/tm-m88k.h: Update.
7206 * config/mcore/tm-mcore.h: Update.
7207 * config/mips/tm-mips.h: Update.
7208 * config/mn10200/tm-mn10200.h: Update.
7209 * config/pa/tm-hppa.h: Update.
7210 * config/pa/tm-hppa64.h: Update.
7211 * config/sparc/tm-sp64.h: Update.
7212 * config/sparc/tm-sparc.h: Update.
7213 * config/sparc/tm-sparclet.h: Update.
7214 * config/z8k/tm-z8k.h: Update.
7215
7216 2002-06-14 Andrew Cagney <cagney@redhat.com>
7217
7218 * Makefile.in (i386_linux_tdep_h): Define.
7219 (i386_tdep_h, i387_tdep_h): Define.
7220 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7221 $(i386_tdep_h) and $(i387_tdep_h).
7222 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7223
7224 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7225
7226 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7227 Already covered by the default.
7228
7229 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7230 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7231 (i386_gdbarch_init): Initialize long_double_format and long_double
7232 bit.
7233
7234 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7235 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7236 Move these to ...
7237 * config/i386/i386sol2.mh: ... here.
7238 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7239 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7240 (SIGCONTEXT_PC_OFFSET): Remove define.
7241 (IN_SIGTRAMP): Remove define.
7242 * i386-sol2-tdep.c: New file.
7243
7244 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7245 * config/i386/tm-i386nw.h: Removed.
7246
7247 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7248 USE_STRUCT_CONVENTION): Remove defines.
7249 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7250 (get_longjmp_target): Remove prototype.
7251 (IN_SIGTRAMP): Remove define.
7252 (i386bsd_in_sigtramp): Remove prototype.
7253 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7254 function. Update comment accordingly
7255 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7256 (FRAME_SAVED_PC): Remove define.
7257 (i386bsd_frame_saved_pc): Remove prototype.
7258 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7259 GET_LONGJMP_TARGET): Remove defines.
7260 (get_longjmp_target): Remove prototype.
7261 (IN_SIGTRAMP): Remove define.
7262 (i386bsd_in_sigtramp): Remove prototype.
7263 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7264 function. Update comment accordingly
7265 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7266 (FRAME_SAVED_PC): Remove define.
7267 (i386bsd_frame_saved_pc): Remove prototype.
7268 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7269 Remove prototype.
7270 (USE_STRUCT_CONVENTION): Remove prototype.
7271 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7272 declaration.
7273 (_initialize_i386bsd_nat): Revise logic to determine some
7274 constants at compile time when compiling a native GDB. Warn if
7275 things don't match up with what we expect.
7276 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7277 Remove variables.
7278 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7279 to use date stored in `struct gdbarch_tdep'.
7280 (i386bsd_sigcontext_offset): Remove varaible.
7281 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7282 stored in `struct gdbarch_tdep'.
7283 (i386bsd_frame_saved_pc): Make static.
7284 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7285 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7286 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7287 i386fbsd4_sc_pc_offset): New variables.
7288 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7289 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7290 functions.
7291 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7292 functions.
7293 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7294 Modify the value of i386fbsd_sigtramp_start and
7295 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7296 i386fbsd_sigtramp_end.
7297 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7298 function.
7299
7300 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7301 define to i386-linux-tdep.h.
7302 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7303 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7304 defines.
7305 (i386_linux_register_name, i386_linux_register_byte,
7306 i386_linux_register_raw_size): Remove prototypes.
7307 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7308 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7309 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7310 TARGET_WRITE_PC): Remove defines.
7311 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7312 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7313 i386_linux_write_pc): Remove prototypes.
7314 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7315 (get_longjmp_target): Remove prototype.
7316 * i386-linux-tdep.h: New file.
7317 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7318 * i386-linux-tdep.c: Include "i386-tdep.h" and
7319 "i386-linux-tdep.h".
7320 (i386_linux_register_name, i386_linux_register_byte,
7321 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7322 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7323 Make static.
7324 (i386_linux_init_abi): New function.
7325 (_initialize_i386_linux_tdep): New function.
7326
7327 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7328 (i386_saved_pc_after_call): Remove prototype.
7329 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7330 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7331 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7332 (i386_register_name, i386_stab_reg_to_regnum,
7333 i386_dwarf_reg_to_regnum): Remove prototypes.
7334 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7335 SIZEOF_SSE_REGS): Remove defines.
7336 (REGISTER_BYTES): Remove define.
7337 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7338 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7339 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7340 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7341 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7342 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7343 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7344 (get_longjmp_target): Remove prototype.
7345 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7346 (sigtramp_saved_pc): Remove define.
7347 (i386v4_sigtramp_saved_pc): Remove prototype.
7348 * config/i386/tm-go32.h (FRAME_CHAIN,
7349 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7350 (i386go32_frame_saved_pc): Remove prototype.
7351 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7352 (get_longjmp_target): Remove prototype.
7353 * i386-tdep.h: Include "osabi.h".
7354 (enum i386_abi): Removed.
7355 (enum struct_return): New enum.
7356 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7357 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7358 sc_pc_offset members.
7359 (i386_gdbarch_register_os_abi): Remove prototype.
7360 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7361 I386_SSE_NUM_REGS): New defines.
7362 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7363 I386_SSE_SIZEOF_REGS): New defines.
7364 (i386_register_name, i386_register_byte, i386_register_raw_size):
7365 New prototypes.
7366 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7367 (i386bsd_sigtramp_saved_pc): New prototype.
7368 * i386-tdep.c: Don't include "elf-bfd.h".
7369 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7370 i386_frame_chain, i386_saved_pc_after_call): Make static.
7371 (i386_frame_saved_pc): Rewrite to call architecture dependent
7372 function to deal with signal handlers. Make static.
7373 (i386go32_frame_saved_pc): Removed.
7374 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7375 Removed.
7376 (i386_get_longjmp_target): New function.
7377 (default_struct_convention, pcc_struct_convention,
7378 reg_struct_convention, valid_conventions, struct_convention): New
7379 variables.
7380 (i386_use_struct_convention): New function.
7381 (i386v4_sigtramp_saved_pc): Renamed to
7382 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7383 (i386_pc_in_sigtramp): New function.
7384 (i386_abi_names): Removed.
7385 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7386 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7387 Removed.
7388 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7389 i386_gdbarch_register_os_abi): Removed.
7390 (struct i386_abi_handler): Removed.
7391 (i386_abi_handler_list): Removed.
7392 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7393 functions.
7394 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7395 i386_nw_init_abi): New functions.
7396 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7397 Use set_gdbarch_xxx() calls instead of relying on macros for a
7398 number of calls.
7399 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7400 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7401 Register the various architecture variants defined in this file.
7402
7403 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7404
7405 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7406 (struct main_type): Remove arg_types member. Update comments for
7407 struct field.
7408 (TYPE_ARG_TYPES): Remove.
7409 (TYPE_FN_FIELD_ARGS): Update.
7410 (smash_to_method_type): Update prototype.
7411
7412 * c-typeprint.c (cp_type_print_method_args): Take method type
7413 instead of argument list. Use new argument layout. Simplify.
7414 (c_type_print_args): Use new argument layout. Simplify.
7415 (c_type_print_base): Update call to cp_type_print_method_args.
7416 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7417 argument; use die->type instead. Update call to
7418 smash_to_method_type.
7419 (read_structure_scope): Update call to dwarf2_add_member_fn.
7420 * gdbtypes.c (allocate_stub_method): Update comment.
7421 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7422 Use new argument layout.
7423 (check_stub_method): Use new argument layout. Don't count
7424 void as an argument.
7425 (print_arg_types): Update comments. Use new argument layout.
7426 (recursive_dump_type): Don't print arg_types member.
7427 * hpread.c (hpread_read_struct_type): Use new argument layout.
7428 (fixup_class_method_type): Likewise.
7429 (hpread_type_lookup): Likewise.
7430 * stabsread.c (read_type): Update calls to read_args and
7431 smash_to_method_type.
7432 (read_args): Use new argument layout. Simplify.
7433 * valops.c (typecmp): Use new argument layout. Update parameters
7434 and comments. Simplify.
7435 (hand_function_call): Use new argument layout.
7436 (search_struct_method): Update call to typecmp.
7437 (find_overload_match): Use new argument layout.
7438
7439 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7440
7441 * NEWS: Mention multithreaded debug support for gdbserver.
7442
7443 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7444
7445 * MAINTAINERS: Mention NEWS.
7446
7447 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7448
7449 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7450 (struct mips_objfile_private, compare_pdr_entries): New.
7451 (non_heuristic_proc_desc): Read the ".pdr" section if it
7452 is present.
7453
7454 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7455
7456 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7457 (arm_debug): New static variable.
7458 (_initialize_arm_tdep): Add ``set debug arm'' command.
7459
7460 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7461
7462 * Makefile.in (sim_arm_h): Define.
7463 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7464 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7465 (arm_register_sim_regno): New function, map an internal REGNUM
7466 onto a simulator register number.
7467 (arm_gdbarch_init): Set register_sim_regno.
7468
7469 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7470
7471 * MAINTAINERS: Add self.
7472
7473 2002-06-11 Jim Blandy <jimb@redhat.com>
7474
7475 * source.c (source_info): Mention whether the symtab has
7476 information about preprocessor macros.
7477
7478 Call the command `info macro', not `show macro'.
7479 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7480 Fix error message.
7481 (_initialize_macrocmd): Register `info_macro_command' in
7482 `infolist', not `showlist'.
7483
7484 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7485
7486 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7487 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7488 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7489 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7490 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7491 unconditionally.
7492 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7493 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7494 (_initialize_mips_tdep): Remove dead code.
7495 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7496 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7497 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7498 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7499 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7500 MIPS_LAST_FP_ARG_REGNUM): Remove.
7501
7502 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7503
7504 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7505 (unwind_tmp_obstack_free, parse_frame_info)
7506 (update_context, cfi_read_fp, cfi_write_fp)
7507 (cfi_frame_chain, cfi_init_extra_frame_info)
7508 (cfi_virtual_frame_pointer): Use the above function.
7509 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7510
7511 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7512
7513 * v850-tdep.c (v850_type_is_scalar): New function.
7514 (v850_use_struct_convention): Match current gcc implementation
7515 as close as possible.
7516 (v850_push_arguments): Fix stack_offset handling. Don't write
7517 struct_addr into register. This is done by v850_store_struct_return.
7518 (v850_extract_return_value): Care for structs.
7519 (v850_store_return_value): Ditto.
7520 (v850_store_struct_return): Actually write address.
7521
7522 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7523
7524 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7525 without debug information too.
7526
7527 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7528
7529 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7530 Make multi-arch pure.
7531 * gdbarch.h, gdbarch.c: Re-generate.
7532 * arm-tdep.c (arm_print_float_info): Update.
7533 * arch-utils.h (default_print_float_info): Update.
7534 * arch-utils.c (default_print_float_info): Update.
7535 * infcmd.c (float_info): Update call.
7536
7537 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7538
7539 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7540 the front of the initialize list.
7541
7542 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7543
7544 * infrun.c (struct inferior_status): Replace fields
7545 selected_frame_address and selected_level with field
7546 selected_frame_id.
7547 (save_inferior_status): Update. Use get_frame_id.
7548 (struct restore_selected_frame_args): Delete.
7549 (restore_selected_frame): Update. Use frame_find_by_id.
7550 (restore_inferior_status): Update.
7551
7552 * breakpoint.h (struct breakpoint): Change type of
7553 watchpoint_frame to frame_id.
7554 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7555 call to get_current_frame.
7556 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7557 get_current_frame.
7558 (watchpoint_check): Use frame_find_by_id.
7559
7560 * frame.h (record_selected_frame): Delete declaration.
7561 * stack.c (record_selected_frame): Delete function.
7562
7563 * frame.h (struct frame_id): Define.
7564 (get_frame_id): Declare.
7565 (frame_find_by_id): Declare.
7566 * frame.c (frame_find_by_id): New function.
7567 (get_frame_id): New function.
7568
7569 2002-06-10 Andrey Volkov <avolkov@transas.com>
7570
7571 * ser-e7kpc.c: Fix duplicated define and call of
7572 _initialize_ser_e7000pc
7573
7574 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7575
7576 * signals/signals.c (target_signal_from_host): Fix #ifdef
7577 SIGRTMIN case.
7578 (do_target_signal_to_host): Likewise.
7579
7580 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7581
7582 * mips-tdep.c (mips_find_abi_section): New function.
7583 (mips_gdbarch_init): Call it.
7584
7585 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7586
7587 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7588 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7589 after Andrew's 2002-06-08 gdbarch change.
7590
7591 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7592
7593 * i386-linux-nat.c (suppy_gregset): Don't supply
7594 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7595 register cache.
7596 (fill_gregset): Don't fetch it under the same circumstances.
7597
7598 2002-06-09 Andrew Cagney <cagney@redhat.com>
7599
7600 * Makefile.in (callback_h): Define.
7601 (remote_sim_h): Update path to remote-sim.h.
7602 (remote-rdp.o): Add $(callback_h).
7603 (remote-sim.o): Use $(callback_h).
7604 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7605 * remote-rdp.c: Include "gdb/callback.h".
7606
7607 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7608
7609 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7610 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7611
7612 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7613
7614 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7615 * rdi-share/serpardr.c: Ditto.
7616 * rdi-share/unixcomm.c: Ditto.
7617 * rdi-share/serdrv.c: Ditto.
7618 * rdi-share/hostchan.h: Ditto.
7619 * rdi-share/hostchan.c: Ditto.
7620 * rdi-share/host.h: Ditto.
7621 * rdi-share/devsw.c: Ditto.
7622
7623 * objfiles.h: Change type of obj_private to void pointer.
7624 * pa64solib.c: Update copyright. Don't include "assert.h", use
7625 strcmp instead of STREQ, use LONGEST, do not use PTR
7626 * somsolib.c: Ditto.
7627
7628 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7629 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7630 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7631
7632 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7633
7634 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7635 (default_get_saved_register): Delete function.
7636 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7637 generic_unwind_get_saved_register.
7638 * gdbarch.h, gdbarch.c: Re-generate.
7639
7640 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7641
7642 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7643 generic_func_frame_chain_valid.
7644 * gdbarch.h, gdbarch.c: Re-generate.
7645 * blockframe.c (generic_func_frame_chain_valid): Only check
7646 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7647 passing FP to PC_IN_CALL_DUMMY.
7648 Fix PR gdb/360.
7649
7650 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7651
7652 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7653 (register_gdbarch_data): Initialize init_p.
7654 (gdbarch_data): Initialize data pointer using the init function.
7655 (init_gdbarch_data): Delete function.
7656 (gdbarch_update_p): Update.
7657 (initialize_non_multiarch): Update.
7658 (struct gdbarch): Add field initialized_p.
7659 * gdbarch.h, gdbarch.c: Re-generate.
7660
7661 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7662
7663 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7664 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7665 better do the things actually here.
7666 * x86-64-tdep.c (x86_64_register_name2nr): New.
7667 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7668 (x86_64_gdbarch_init): Respect the above change.
7669 * x86-64-tdep.h (x86_64_register_name2nr)
7670 (x86_64_register_nr2name): Add prototypes.
7671 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7672
7673 2002-06-06 Michael Snyder <msnyder@redhat.com>
7674
7675 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7676 Delete extra braces and re-indent.
7677 (d10v_store_return_value): Char return values
7678 must be shifted over by one byte in R0.
7679 (d10v_extract_return_value): Delete extra braces, re-indent.
7680
7681 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7682
7683 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7684 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7685 (d10v_integer_to_address): Rewrite.
7686 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7687 the d10v specific functions which take care of converting to the
7688 correct space.
7689
7690 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7691
7692 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7693 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7694
7695 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7696
7697 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7698 includes.
7699 * config/tm-linux.h: Ditto.
7700 * config/alpha/tm-alphalinux.h: Ditto.
7701 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7702 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7703 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7704 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7705 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7706 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7707 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7708 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7709 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7710 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7711 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7712 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7713 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7714 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7715 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7716 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7717 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7718 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7719 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7720 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7721 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7722 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7723 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7724 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7725 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7726 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7727 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7728 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7729 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7730 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7731 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7732 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7733 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7734 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7735 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7736 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7737 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7738
7739 2002-05-04 Aidan Skinner <aidan@velvet.net>
7740
7741 * ada-exp.tab.c: New file
7742 * ada-exp.y: New file
7743 * ada-lang.c: New file
7744 * ada-lang.h: New file
7745 * ada-lex.c: New file
7746 * ada-lex.l: New file
7747 * ada-tasks.c: New file
7748 * ada-typeprint.c: New file
7749 * ada-valprint.c: New file
7750
7751 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7752
7753 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7754 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7755
7756 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7757
7758 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7759 insetead of ppc-linux-tdep.o.
7760 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7761 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7762
7763 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7764
7765 2002-05-07 Christian Groessler <chris@groessler.org>
7766 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7767 bit register contents for little endian hosts.
7768
7769 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7770
7771 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7772 any maintainer.
7773
7774 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7775
7776 * gdbarch.h: Regenerate.
7777
7778 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7779
7780 * MAINTAINERS: Add everyone to write-after-approval list.
7781
7782 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7783
7784 * stack.c (frame_info): Use frame_register_unwind instead of
7785 saved_regs. Mention when the SP is on the stack or in a register.
7786
7787 * frame.h (frame_register_unwind_ftype): Define. Document.
7788 (struct frame_info): Add field register_unwind and
7789 register_unwind_cache.
7790 (frame_register_unwind): Declare.
7791 (generic_unwind_get_saved_register): Declare.
7792
7793 * frame.c (frame_register_unwind): New function.
7794 (generic_unwind_get_saved_register): New function.
7795
7796 * blockframe.c (generic_call_dummy_register_unwind): New function.
7797 (frame_saved_regs_register_unwind): New function.
7798 (set_unwind_by_pc): New function.
7799 (create_new_frame): New function.
7800 (get_prev_frame): New function.
7801
7802 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7803
7804 * a29k-share/: Delete directory.
7805 * remote-vx29k.c: Delete file.
7806
7807 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7808
7809 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7810 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7811
7812 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7813
7814 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7815 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7816 (sparc64nbsd-nat.o)
7817 (sparcnbsd-nat.o)
7818 (sparcnbsd-tdep.o): New dependency lists.
7819 * NEWS: Note new UltraSPARC NetBSD native configuration.
7820 * configure.host (sparc64-*-netbsd*): New host.
7821 * configure.tgt (sparc-*-netbsdelf*)
7822 (sparc-*-netbsd*): Set gdb_target to nbsd.
7823 (sparc64-*-netbsd*): New target.
7824 * sparc64nbsd-nat.c: New file.
7825 * sparcnbsd-nat.c: New file.
7826 * sparcnbsd-tdep.c: New file.
7827 * sparcnbsd-tdep.h: New file.
7828 * config/sparc/nbsd.mt: New file.
7829 * config/sparc/nbsd64.mh: New file.
7830 * config/sparc/nbsd64.mt: New file.
7831 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7832 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7833 (HOST_IPC): Remove.
7834 * config/sparc/nbsdaout.mt: Remove.
7835 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7836 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7837 (HOST_IPC): Remove.
7838 * config/sparc/nbsdelf.mt: Remove.
7839 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7840 sparc-nat.c compatiblity defines.
7841 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7842 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7843 * config/sparc/tm-nbsd64.h: New file.
7844 * config/sparc/tm-nbsdaout.h: Remove.
7845 * config/sparc/xm-nbsd.h: Remove.
7846
7847 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7848
7849 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7850 * sparc-tdep.c: Include osabi.h.
7851 (gdbarch_tdep): Add osabi member.
7852 (_initialize_sparc_tdep): Use gdbarch_register.
7853 (sparc_gdbarch_init): Use generic OS ABI framework.
7854 (sparc_dump_tdep): New function.
7855
7856 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7857
7858 * corefile.c (do_captured_read_memory_integer): Return non-zero
7859 result.
7860 (safe_read_memory_integer): Copy result of memory read when
7861 status is non-zero. Also, add comments.
7862
7863 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7864
7865 * Makefile.in (ppc_tdep_h): Define.
7866 (ppc-linux-nat.o)
7867 (ppc-linux-tdep.o)
7868 (rs6000-tdep.o): Use $(ppc_tdep_h).
7869 (ppc-sysv-tdep.o)
7870 (ppcnbsd-nat.o)
7871 (ppcnbsd-tdep.o): New dependency lists.
7872 * ppc-tdep.h: Use generic OS ABI framework.
7873 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7874 (ppc_linux_init_abi): New functions.
7875 (ppc_sysv_abi_broken_use_struct_convention)
7876 (ppc_sysv_abi_use_struct_convention)
7877 (ppc_sysv_abi_push_arguments): Move to...
7878 * ppc-sysv-tdep.c: ...here.
7879 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7880 * rs6000-tdep.c (process_note_abi_tag_sections)
7881 (get_elfosabi): Remove.
7882 (rs6000_gdbarch_init): Use generic OS ABI framework.
7883 (rs6000_dump_tdep): New function.
7884 (_initialize_rs6000_tdep): Use gdbarch_register.
7885 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7886 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7887 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7888 of ppc-linux-tdep.o.
7889 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7890 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7891 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7892 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7893 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7894 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7895
7896 2002-05-29 Jim Blandy <jimb@redhat.com>
7897
7898 * macroscope.c (default_macro_scope): Put `void' in empty argument
7899 list.
7900
7901 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7902
7903 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7904 * arch-utils.c: Include "sim-regno.h".
7905 * gdbarch.sh: Don't include "sim-regno.h".
7906 * gdbarch.h, gdbarch.c: Regenerate.
7907 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7908 here.
7909 * arch-utils.h (legacy_register_sim_regno): To here.
7910 * remote-sim.c (legacy_register_sim_regno): Move function from
7911 here.
7912 * arch-utils.c (legacy_register_sim_regno): To here.
7913
7914 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7915
7916 * sim-regno.h: New file.
7917 * Makefile.in (sim_regno_h): Define.
7918 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7919 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7920 (legacy_register_sim_regno): New function.
7921 (one2one_register_sim_regno): New function.
7922 (gdbsim_fetch_register): Rewrite.
7923 (gdbsim_store_register): Only store a register when
7924 REGISTER_SIM_REGNO is valid.
7925 * d10v-tdep.c: Include "sim-regno.h".
7926 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7927 (d10v_ts3_register_sim_regno): Ditto.
7928 * gdbarch.sh: Include "sim-regno.h".
7929 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7930 * gdbarch.h, gdbarch.c: Regenerate.
7931 * arch-utils.h (default_register_sim_regno): Delete declaration.
7932 * arch-utils.c (default_register_sim_regno): Delete function.
7933
7934 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7935
7936 * ppcnbsd-nat.c: Rewrite.
7937 * ppcnbsd-tdep.c: New file.
7938 * ppcnbsd-tdep.h: New file.
7939 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7940 solib.o, and solib-svr4.o.
7941 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7942 nbsd-tdep.o, and corelow.o.
7943
7944 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7945
7946 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7947 `tr' and `sed'. Mention that `broken' targets are not expected to
7948 build.
7949
7950 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7951
7952 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7953 Let PC point right after the prologue before looking up symbols.
7954
7955 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7956
7957 * i386-tdep.c (i386_register_virtual_type): Return
7958 builtin_type_vec128i for SSE registers.
7959
7960 * gdbtypes.h (builtin_type_vec128i): Declare.
7961
7962 * gdbtypes.c (build_builtin_type_vec128i): New function.
7963 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7964 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7965 (build_gdbtypes): Initialize new builtin vector types.
7966 (_initialize_gdbtypes): Register new vector types with gdbarch.
7967
7968 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7969
7970 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7971 since it has been multi-arch'd.
7972 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7973 Move Alpha and VAX multi-arch news entries to same section
7974 as other multi-arch news.
7975
7976 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7977
7978 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7979 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7980 static. Rename some register numbers to put them in ns32k-tdep
7981 private namespace.
7982 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7983 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7984 functions.
7985 (_initialize_ns32k_tdep): Use gdbarch_register.
7986 * ns32k-tdep.h: New file.
7987 * ns32knbsd-tdep.c: New file.
7988 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7989 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7990 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7991 REGISTER_BYTES, REGISTER_BYTE): Remove.
7992 * config/ns32k/tm-ns32k.h: New file.
7993 * config/ns32k/tm-umax.h: Remove.
7994
7995 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7996
7997 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7998 ns32k_store_struct_return, ns32k_extract_return_value,
7999 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8000 functions.
8001 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8002 ns32k_saved_pc_after_call.
8003 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8004 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8005 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8006 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8007 ns32k_extract_struct_value_address.
8008
8009 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8010
8011 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8012 ns32k_fix_call_dummy): New.
8013 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8014 ns32k_call_dummy_words.
8015 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8016 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8017 CALL_DUMMY_NARGS): Remove.
8018 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8019
8020 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8021
8022 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8023 ns32k_frame_saved_pc, ns32k_frame_args_address,
8024 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8025 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8026 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8027 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8028 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8029 (BREAKPOINT): Remove..
8030 (FRAME_CHAIN): Define as ns32k_frame_chain.
8031 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8032 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8033 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8034 (FRAME_FIND_SAVED_REGS): Remove.
8035 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8036 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8037 (POP_FRAME): Define as ns32k_pop_frame.
8038
8039 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8040
8041 * ns32k-tdep.c (ns32k_register_byte_32082,
8042 ns32k_register_byte_32382, ns32k_register_raw_size,
8043 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8044 functions.
8045 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8046 ns32k_register_byte_32382.
8047 * config/ns32k/tm-umax.h: Update copyright years.
8048 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8049 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8050 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8051 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8052 (ns32k_get_enter_addr): Fix prototype.
8053
8054 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
8055
8056 * ns32k-tdep.c: Update copyright years.
8057 (ns32k_register_name_32082): New function.
8058 (ns32k_register_name_32382): Ditto.
8059 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8060 (REGISTER_NAME): Define as ns32k_register_name_32382.
8061 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8062 (REGISTER_NAME): Define as ns32k_register_name_32082.
8063
8064 2002-05-24 Jim Blandy <jimb@redhat.com>
8065
8066 * dwarf2read.c (free_line_header): Use xfree, not free.
8067
8068 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
8069
8070 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8071 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8072
8073 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8074
8075 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8076
8077 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8078
8079 From Ross Alexander at NEC Europe:
8080 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8081
8082 2002-05-23 Michael Snyder <msnyder@redhat.com>
8083
8084 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8085 for input, rather than parse_and_eval_address.
8086
8087 2002-05-23 Andrew Cagney <ac131313@redhat.com>
8088
8089 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8090 * Makefile.in (sim_d10v_h): Update definition.
8091
8092 2002-05-24 Andrew Cagney <cagney@redhat.com>
8093
8094 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8095 change `2002-05-22 Michael Snyder' below.
8096 (d10v_push_arguments): Ditto.
8097 (d10v_extract_return_value): Ditto.
8098
8099 2002-05-23 Jim Blandy <jimb@redhat.com>
8100
8101 * macrotab.c (check_for_redefinition): Don't complain if the new
8102 definition is the same as the previous one. Take more arguments
8103 to allow the comparison.
8104 (macro_define_object, macro_define_function): Pass more arguments
8105 to check_for_redefinition.
8106
8107 2002-05-22 Michael Snyder <msnyder@redhat.com>
8108
8109 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8110 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8111 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8112 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8113 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8114 Add a temp variable to save a call (and a memory read).
8115 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8116 if possible (so that PC_IN_CALL_DUMMY will work).
8117
8118 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8119
8120 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8121
8122 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8123
8124 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8125 fde->cie_ptr.
8126 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8127 (dwarf2_build_frame_info): Add offset to fde->initial_location
8128 so that frames of shared libraries are mapped correctly.
8129 (execute_stack_op): Change type of 'result' from ULONGEST to
8130 CORE_ADDR.
8131
8132 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8133
8134 * config/alpha/tm-nbsd.h: Include solib.h.
8135
8136 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8137
8138 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8139 assumptions about the host's byte order.
8140
8141 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8142
8143 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8144 to dependency list.
8145 * alphanbsd-tdep.c: Include solib-svr4.h.
8146 * shnbsd-tdep.c: Ditto.
8147
8148 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8149
8150 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8151 nbsd-tdep.h to dependency list.
8152 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8153 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8154 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8155 nbsdaout.mh and nbsdelf.mh consistently.
8156 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8157 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8158 nbsdaout.mt and nbsdelf.mh consistently.
8159 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8160 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8161 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8162 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8163 a.out shared library stuff from here...
8164 * config/nm-nbsdaout.h: ...to here.
8165 * config/tm-nbsd.h: Remove.
8166 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8167 * config/arm/nbsd.mh: Remove.
8168 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8169 nbsd-tdep.o.
8170 * config/arm/nbsdaout.mh: New file.
8171 * config/arm/nbsdelf.mh: New file.
8172 * config/arm/nm-nbsdaout.h: New file.
8173 * config/i386/nbsd.mh: Remove.
8174 * config/i386/nbsd.mt: Remove.
8175 * config/i386/nbsdaout.mh: New file.
8176 * config/i386/nbsdaout.mt: New file.
8177 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8178 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8179 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8180 i386_register_u_addr): Remove.
8181 * config/i386/nm-nbsdaout.h: New file.
8182 * config/i386/nm-nbsdelf.h: Remove.
8183 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8184 (USE_STRUCT_CONVENTION): Remove.
8185 * config/i386/tm-nbsdaout.h: New file.
8186 * config/i386/tm-nbsdelf.h: Remove.
8187 * config/m68k/nbsd.mh: Remove.
8188 * config/m68k/nbsd.mt: Remove.
8189 * config/m68k/nbsdaout.mh: New file.
8190 * config/m68k/nbsdaout.mt: New file.
8191 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8192 * config/m68k/nm-nbsdaout.h: New file.
8193 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8194 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8195 * config/ns32k/nbsd.mh: Remove.
8196 * config/ns32k/nbsd.mt: Remove.
8197 * config/ns32k/nbsdaout.mh: New file.
8198 * config/ns32k/nbsdaout.mt: New file.
8199 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8200 * config/ns32k/nm-nbsdaout.h: New file.
8201 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8202 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8203 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8204 (SVR4_SHARED_LIBS): Remove.
8205 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8206 * config/sparc/nbsd.mh: Remove.
8207 * config/sparc/nbsd.mt: Remove.
8208 * config/sparc/nbsdaout.mh: New file.
8209 * config/sparc/nbsdaout.mt: New file.
8210 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8211 * config/sparc/nbsdelf.mt: New file.
8212 * config/sparc/nm-nbsdaout.h: New file.
8213 * config/sparc/nm-nbsdelf.h: Remove.
8214 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8215 * config/sparc/tm-nbsdaout.h: New file.
8216
8217 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8218
8219 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8220 mipsnbsd-tdep.c
8221 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8222
8223 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8224
8225 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8226 shnbsd-nat.c.
8227 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8228
8229 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8230
8231 * NEWS: Note new MIPS NetBSD native configuration.
8232 * configure.host (mips*-*-netbsd*): New host.
8233 * configure.tgt (mips*-*-netbsd*): New target.
8234 * mipsnbsd-nat.c: New file.
8235 * mipsnbsd-tdep.c: New file.
8236 * mipsnbsd-tdep.h: New file.
8237 * config/mips/nbsd.mh: New file.
8238 * config/mips/nbsd.mt: New file.
8239 * config/mips/nm-nbsd.h: New file.
8240 * config/mips/tm-nbsd.h: New file.
8241
8242 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8243
8244 * Makefile.in (SFILES): Add osabi.c.
8245 (COMMON_OBS): Add osabi.o.
8246 (osabi.o): New dependency list.
8247 * osabi.c: New file.
8248 * osabi.h: New file.
8249 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8250
8251 * Makefile.in (alpha_tdep_h): Define and use instead of
8252 alpha-tdep.h.
8253 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8254 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8255 Remove.
8256 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8257 * alpha-tdep.h: Include osabi.h.
8258 (alpha_abi): Remove.
8259 (gdbarch_tdep): Use generic OS ABI framework.
8260 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8261 gdbarch_register_osabi.
8262 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8263 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8264 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8265
8266 * Makefile.in (sh_tdep_h): Add osabi.h.
8267 * sh-tdep.h (sh_osabi): Remove.
8268 (gdbarch_tdep): Use generic OS ABI framework.
8269 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8270 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8271 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8272 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8273
8274 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8275 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8276 gdbarch_register_osabi.
8277 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8278 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8279 (get_elfosabi): Rename to...
8280 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8281 ABI framework support routines.
8282 (arm_gdbarch_init): Use generic OS ABI framework.
8283 (arm_dump_tdep): Likewise.
8284 (_initialize_arm_tdep): Likewise.
8285 * arm-tdep.h: Include osabi.h.
8286 (arm_abi): Remove.
8287 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8288 osabi member.
8289 (arm_gdbarch_register_os_abi): Remove prototype.
8290 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8291 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8292
8293 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8294 * mips-tdep.c: Include osabi.h.
8295 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8296 OS ABI framework.
8297
8298 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8299
8300 * h8300-tdep.c: Fix formatting.
8301
8302 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8303
8304 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8305 printing vector registers.
8306
8307 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8308
8309 From Fernando Nasser:
8310 * remote.c (remote_async_open_1): Re-throw the exception when the
8311 connection fails.
8312 (remote_cisco_open): Ditto.
8313 (remote_open_1): Ditto.
8314
8315 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8316
8317 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8318 (remote_start_remote): Add uiout parameter. Pass through to
8319 remote_start_remote_dummy.
8320 (remote_open_1): Use catch_exception instead of catch_errors.
8321 (remote_async_open_1): Ditto.
8322 (remote_cisco_open): Ditto.
8323
8324 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8325
8326 * remote.c (remote_start_remote): Replace PTR with void pointer.
8327 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8328 static.
8329
8330 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8331
8332 * gdb_indent.sh: Allow the script to be run in the sim directory.
8333
8334 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8335
8336 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8337 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8338
8339 * corelow.c (core_open): Only call set_gdbarch_from_file if
8340 exec_bfd is NULL.
8341
8342 2002-05-17 Andrey Volkov <avolkov@transas.com>
8343
8344 * h8300-tdep.c: Add support of EXR register
8345 * config/h8300/tm-h8300.h: Ditto.
8346
8347 2002-05-17 Andrey Volkov <avolkov@transas.com>
8348
8349 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8350
8351 2002-05-17 Andrey Volkov <avolkov@transas.com>
8352
8353 * h8300-tdep.c: Change literal regnums to REGNO.
8354
8355 2002-05-17 Jim Blandy <jimb@redhat.com>
8356
8357 * NEWS: Note addition of macro support.
8358
8359 Expand preprocessor macros in C expressions.
8360 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8361 (scan_macro_expansion, scanning_macro_expansion,
8362 finished_macro_expansion): New function declarations.
8363 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8364 variable declarations.
8365 * parser-defs.h (expression_context_pc): New declaration.
8366 * parse.c (expression_context_pc): New variable.
8367 (parse_exp_1): Set expression_context_pc, as well as
8368 expression_context_block.
8369 * c-exp.y (yylex): If we're not already reading the result of a
8370 macro expansion, try to macro-expand the next token. When we're
8371 done scanning a macro expansion, switch back to the mainline text.
8372 Commas and `if's in a macro's expansion don't terminate the input.
8373 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8374 (macro_original_text, macro_expanded_text,
8375 expression_macro_lookup_func, expression_macro_lookup_baton): New
8376 variables.
8377 (scan_macro_expansion, scanning_macro_expansion,
8378 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8379 c_preprocess_and_parse): New functions.
8380 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8381 c_preprocess_and_parse, instead of c_parse.
8382 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8383 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8384
8385 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8386
8387 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8388 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8389 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8390
8391 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8392
8393 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8394
8395 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8396
8397 * Makefile.in (sh_tdep_h): Define and use.
8398 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8399 register enum): Move to...
8400 * * sh-tdep.h: ...here.
8401 * sh-tdep.c: Include sh-tdep.h.
8402 * sh3-rom.c: Likewise.
8403 * shnbsd-tdep.c: Likewise.
8404
8405 2002-05-16 Michael Snyder <msnyder@redhat.com>
8406
8407 * arm-tdep.c: Spelling fix in comment.
8408
8409 2002-05-16 Jim Blandy <jimb@redhat.com>
8410
8411 Add commands for manually expanding macros and showing their
8412 definitions.
8413 * macrocmd.c, macroscope.c, macroscope.h: New files.
8414 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8415 (macroscope_h): New variable.
8416 (HFILES_NO_SRCDIR): Add macroscope.h.
8417 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8418 (macroscope.o, macrocmd.o): New rules.
8419
8420 Teach the Dwarf 2 reader to read macro information.
8421 * dwarf2read.c: #include "macrotab.h".
8422 (dwarf_macinfo_buffer): New variable.
8423 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8424 dwarf_macinfo_size.
8425 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8426 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8427 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8428 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8429 dwarf2_macro_spaces_in_definition): New complaints.
8430 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8431 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8432 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8433 the partial symbol table.
8434 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8435 from what's recorded in the partial symbol table.
8436 (read_file_scope): If the compilation unit has a
8437 `DW_AT_macro_info' attribute, read its macro information.
8438 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8439
8440 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8441
8442 Fix PR gdb/546
8443 * ser-tcp.c: Don't include <netinet/udp.h>.
8444
8445 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8446
8447 * MAINTAINERS: Update my email address.
8448
8449 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8450
8451 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8452 include file of the same name.
8453
8454 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8455
8456 * configure.tgt: Mark v850 as multi-arched.
8457 * config/v850/tm-v850.h: Remove file.
8458 * config/v850/v850.mt: Eliminate TM_FILE.
8459
8460 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8461
8462 * v850-tdep.c: Full multi-arch.
8463 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8464 Define GDB_MULTI_ARCH to 2.
8465
8466 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8467
8468 * p-exp.y (current_type): New static variable.
8469 Carries the type of the expression at the position that is parsed.
8470 (push_current_type, pop_current_type): Two new functions. Used
8471 to store/restore current_type in expression on specific tokens.
8472 (search_field): New static variable. Set to one after parsing a point
8473 as at that point only a FIELDNAME token should be searched.
8474 (FIELDNAME): New token. After a point only a token belonging to
8475 current_type type definition is allowed.
8476 (all over token rules): reset and change current_type according
8477 to rules.
8478 (exp '[' rule): insert implicit array index field if
8479 exp is a pascal string type.
8480
8481 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8482
8483 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8484 frame info. Use frame_info's saved_regs instead of matching member
8485 in extra_frame_info throughout.
8486 (v850_frame_init_saved_regs): New function.
8487 (v850_init_extra_frame_info): Move most functionality into
8488 v850_frame_init_saved_regs().
8489 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8490 (v850_frame_find_saved_regs): Remove declaration.
8491 (FRAME_FIND_SAVED_REGS): Remove definition.
8492 (v850_frame_init_saved_regs): Add declaration.
8493 (FRAME_INIT_SAVED_REGS): Add definition.
8494
8495 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8496
8497 * v850-tdep.c: Begin multi-arch'ing v850.
8498 (v850_target_architecture_hook): Remove function.
8499 (v850_gdbarch_init): New function. Add code previously in
8500 v850_target_architecture_hook().
8501 (_initialize_v850_tdep): Don't set target_architecture_hook.
8502 Call register_gdbarch_init() instead.
8503
8504 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8505
8506 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8507 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8508 (fixup_class_method_type): Likewise.
8509
8510 2002-05-15 Jim Blandy <jimb@redhat.com>
8511
8512 Add macro structures to GDB's symbol tables. Nobody puts anything
8513 in them yet.
8514 * symtab.h (struct symtab): New member: `macro_table'.
8515 * buildsym.h (pending_macros): New global variable.
8516 * buildsym.c: #include "macrotab.h".
8517 (buildsym_init): Initialize `pending_macros'.
8518 (end_symtab): If we found macro information while reading a CU's
8519 debugging info, do build a symtab structure for it. Make the
8520 symtab point to the macro information, and clear the
8521 `pending_macros' pointer which held it while we were reading the
8522 debug info.
8523 (really_free_pendings): Free any pending macro table.
8524 * objfiles.h (struct objfile): New member: `macro_cache'.
8525 * objfiles.c (allocate_objfile): Set allocate and free functions
8526 for the macro cache's objstack.
8527 (free_objfile): Empty the macro cache's obstack.
8528 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8529 set new allocate and free functions for it.
8530 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8531 free functions for the macro cache's objstack. (Why is this
8532 function building its own objfile?)
8533 * symmisc.c (print_objfile_statistics): Print statistics on the
8534 macro bcache.
8535 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8536
8537 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8538
8539 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8540 (REGISTER_U_ADDR): Delete definition.
8541 (arm_register_u_addr): Delete declaration.
8542
8543 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8544
8545 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8546 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8547
8548 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8549
8550 * regcache.c (register_valid): Revise comments refering to "Not
8551 available" and "unavailable".
8552 * frame.c (frame_register_read): Ditto.
8553 * findvar.c (value_of_register): Ditto.
8554
8555 2002-05-15 Andrew Cagney <cagney@redhat.com>
8556
8557 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8558 (remote-sim.o): Update dependencies.
8559 (d10v-tdep.o): Specify dependencies.
8560 (sim_d10v_h): Define.
8561
8562 2002-05-14 Jim Blandy <jimb@redhat.com>
8563
8564 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8565 * macrotab.c (macro_lookup_inclusion, find_definition,
8566 new_macro_table): Same.
8567
8568 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8569 not `! strcmp ()'. This is a dubious improvement.
8570 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8571
8572 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8573 although it's not necessary, to avoid a warning.
8574
8575 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8576
8577 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8578 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8579 TYPE_INSTANCE_FLAGS.
8580 (struct main_type): New.
8581 (struct type): Move most members to struct main_type. Change
8582 cv_type and as_type to new type_chain member. Add instance_flags.
8583 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8584 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8585 (finish_cv_type): Remove prototype.
8586 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8587 Set TYPE_CHAIN.
8588 (alloc_type_instance): New function.
8589 (smash_type): New function.
8590 (make_pointer_type, make_reference_type, make_function_type)
8591 (smash_to_member_type, smash_to_method_type): Call smash_type.
8592 (make_qualified_type): New function.
8593 (make_type_with_address_space): Call make_qualified_type.
8594 (make_cv_type): Likewise.
8595 (finish_cv_type): Remove unnecessary function.
8596 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8597 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8598 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8599 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8600 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8601 * hpread.c (hpread_read_struct_type): Likewise.
8602 * stabsread.c (read_struct_type): Likewise.
8603
8604 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8605
8606 * configure.tgt: Add a catch all sh* target, for cases like
8607 sh[2,3,4]-elf and sh-hms.
8608
8609 2002-05-14 Keith Seitz <keiths@redhat.com>
8610
8611 * event-loop.c (create_file_handler): Don't do anything but
8612 update data when we are given a fd which we are already
8613 monitoring.
8614
8615 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8616
8617 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8618 (update_context): Use __func__ in warnings.
8619
8620 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8621
8622 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8623 and tcp_close to net_open and net_close.
8624 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8625 using UDP if requested. Don't try to disable Nagle on UDP
8626 sockets.
8627 * remote.c (remote_serial_open): New function. Warn about UDP.
8628 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8629
8630 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8631
8632 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8633
8634 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8635
8636 * configure.tgt: Remove sh-hms target.
8637 * MAINTAINERS: Don't list sh-hms as a separate target.
8638
8639 2002-05-13 Jim Blandy <jimb@redhat.com>
8640
8641 Add first preprocessor macro-expansion files.
8642 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8643 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8644 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8645 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8646 (COMMON_OBS): Add macrotab.o, macroexp.o.
8647 (macroexp.o, macrotab.o): New rules.
8648
8649 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8650
8651 * config/m88k/tm-m88k.h: Update copyright.
8652 (m88k_target_write_pc): Declare
8653 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8654 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8655 (SHIFT_INST_REGS): Update definition.
8656 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8657 using old definition of TARGET_WRITE_PC.
8658 * regcache.c (generic_target_write_pc): Delete code handling
8659 NNPC_REGNUM.
8660 * gdbarch.sh (NNPC_REGNUM): Delete.
8661 * gdbarch.h, gdbarch.c: Regenerate.
8662
8663 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8664
8665 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8666 builtin reg number.
8667
8668 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8669
8670 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8671 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8672 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8673 access macros.
8674 * c-typeprint.c (cp_type_print_method_args): Likewise.
8675 (c_type_print_args): Likewise.
8676 * d10v-tdep.c (d10v_push_arguments): Likewise.
8677 (d10v_extract_return_value): Likewise.
8678 * expprint.c (print_subexp): Likewise.
8679 * gdbtypes.c (lookup_primitive_typename): Likewise.
8680 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8681 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8682 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8683 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8684 (TYPE_VECTOR): Likewise.
8685 * hpread.c (hpread_read_struct_type)
8686 (fix_static_member_physnames, fixup_class_method_type)
8687 (hpread_type_lookup): Likewise.
8688 * mdebugread.c (parse_symbol, parse_type): Likewise.
8689 * p-lang.c (is_pascal_string_type): Likewise.
8690 * valops.c (hand_function_call): Likewise.
8691 * x86-64-tdep.c (classify_argument): Likewise.
8692
8693 * hpread.c (hpread_read_function_type)
8694 (hpread_read_doc_function_type): Call replace_type.
8695 * dstread.c (create_new_type): Delete.
8696 (decode_dst_structure, process_dst_function): Call alloc_type.
8697 Use type access macros.
8698
8699 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8700
8701 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8702 the're not supported by the current architecture.
8703 (i387_fill_fxsave): Likewise.
8704
8705 2002-05-12 Fred Fish <fnf@redhat.com>
8706
8707 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8708 sect_index_xxx members to index the first slot in section_offsets
8709 if all of the section_offsets are zero.
8710
8711 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8712
8713 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8714 checked in with last change.
8715
8716 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8717
8718 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8719 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8720 config.sub.
8721
8722 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8723
8724 * Makefile.in: Update dependencies.
8725
8726 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8727
8728 * language.c (local_hex_string_custom): Simplify. Do not depend
8729 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8730
8731 * memattr.c (mem_info_command): Replace calls to
8732 longest_local_hex_string and longest_local_hex_string_custom.
8733 * buildsym.c (make_blockvector): Ditto.
8734 * solib.c (info_sharedlibrary_command): Ditto.
8735 * tracepoint.c (tracepoints_info): Ditto.
8736 * symtab.c (print_msymbol_info): Ditto.
8737
8738 * language.c (local_hex_string): Delete.
8739 (local_hex_string_custom): Delete.
8740 (longest_local_hex_string): Rename to local_hex_string.
8741 (longest_local_hex_string_custom): Rename to
8742 local_hex_string_custom.
8743 * language.h (local_hex_string): Change parameter type to LONGEST.
8744 (local_hex_string_custom): Ditto.
8745 (longest_local_hex_string): Delete declaration.
8746 (longest_local_hex_string_custom): Ditto.
8747
8748 * solib.c: Update copyright.
8749 * memattr.c: Update copyright.
8750
8751 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8752
8753 * arch-utils.h (legacy_register_to_value): Declare.
8754 (legacy_value_to_register): Declare.
8755 (legacy_convert_register_p): Declare.
8756 * arch-utils.c (legacy_register_to_value): New function.
8757 (legacy_value_to_register): New function.
8758 (legacy_convert_register_p): New function.
8759
8760 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8761 (VALUE_TO_REGISTER): Define.
8762 (CONVERT_REGISTER_P): Define.
8763 * gdbarch.h, gdbarch.c: Regenerate.
8764
8765 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8766 VALUE_TO_REGISTER.
8767 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8768 CONVERT_REGISTER_P.
8769
8770 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8771 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8772
8773 * Makefile.in: Update dependencies for valops.c.
8774 * valops.c: Include "gdb_assert.h".
8775 (typecmp): Skip THIS parameter to methods.
8776 (find_method_list): Remove static_memfuncp argument,
8777 update callers. Check for stub methods.
8778 (find_value_oload_method_list): Don't set *static_memfuncp.
8779 (find_overload_match): Don't check for stub methods. Assert
8780 that methods are not stubbed. Handle static methods.
8781 (value_find_oload_method_list): Remove static_memfuncp argument.
8782 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8783 to the argument list for static stub methods.
8784 * value.h (value_find_oload_method_list): Update prototype.
8785
8786 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8787
8788 * arch-utils.h (generic_register_size): Declare.
8789 (generic_register_raw_size, generic_register_virtual_size): Delete
8790 declarations.
8791 * arch-utils.c (generic_register_raw_size): Delete.
8792 (generic_register_size): New function.
8793 (generic_register_virtual_size): Delete.
8794
8795 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8796 default generic_register_size.
8797 * gdbarch.h, gdbarch.c: Re-generate.
8798
8799 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8800 register_virtual_size.
8801 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8802 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8803
8804 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8805
8806 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8807 * gdbarch.h, gdbarch.c: Regenerate.
8808 * gnu-v3-abi.c: Update copyright.
8809 (vtable_address_point_offset): Update.
8810 (gnuv3_rtti_type): Update.
8811 (gnuv3_baseclass_offset): Update.
8812 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8813 (init_fetch_link_map_offsets): Update.
8814 * remote.c (get_remote_state): Update.
8815
8816 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8817
8818 * TODO: Remove value_headof/value_from_vtable_info comment.
8819 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8820 * values.c (value_headof, value_from_vtable_info): Delete.
8821 * value.h (value_from_vtable_info): Delete prototype.
8822
8823 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8824
8825 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8826 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8827 $(gdb_regex_h).
8828 (gdb_assert_h): Define.
8829 (gdb_wait_h): Define.
8830 (gdb_regex_h): Define.
8831
8832 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8833
8834 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8835 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8836
8837 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8838
8839 * nbsd-tdep.c: Fix comment.
8840
8841 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8842
8843 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8844 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8845 (nbsd-tdep.o): New dependency list.
8846 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8847 nbsd-tdep.h.
8848 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8849 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8850 * nbsd-tdep.c: New file.
8851 * nbsd-tdep.h: New file.
8852 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8853 nbsd-tdep.h.
8854 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8855 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8856 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8857 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8858
8859 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8860
8861 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8862 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8863 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8864 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8865 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8866 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8867
8868 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8869
8870 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8871 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8872 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8873 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8874 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8875 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8876 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8877
8878 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8879
8880 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8881 fetch_elfcore_registers to...
8882 * i386nbsd-tdep.c: ...here.
8883 (i386nbsd_use_struct_convention): Rename to...
8884 (i386nbsd_aout_use_struct_convention): ...this.
8885 (i386nbsd_supply_reg): New function.
8886 (i386nbsd_fill_reg): New function.
8887 (fetch_core_registers): Use i386nbsd_supply_reg.
8888 (fetch_elfcore_registers): Likewise.
8889 (_initialize_i386nbsd_tdep): New function.
8890 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8891 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8892 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8893 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8894 (i386nbsd_aout_use_struct_convention): ...this.
8895
8896 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8897
8898 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8899 (store_inferior_registers): Use shnbsd_fill_reg.
8900 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8901 sh_nbsd_supply_register): Collapse into...
8902 (shnbsd_supply_reg): ...this.
8903 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8904 (shnbsd_fill_reg): ...this.
8905 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8906 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8907 (fetch_core_registers): Use shnbsd_supply_reg.
8908 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8909 (sh_nbsd_core_fns): Rename to...
8910 (shnbsd_core_fns): ...this.
8911 (sh_nbsd_elfcore_fns): Rename to...
8912 (shnbsd_elfcore_fns): ...this.
8913 (sh_nbsd_init_abi): Rename to...
8914 (shnbsd_init_abi): ...this.
8915 (_initialize_sh_nbsd_tdep): Rename to...
8916 (_initialize_shnbsd_tdep): ...this.
8917 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8918 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8919 sh_nbsd_fill_register): Remove prototypes.
8920 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8921
8922 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8923
8924 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8925 (i387-nat.o): Delete dependency list.
8926 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8927 (x86-64-linux-nat.o): Likewise.
8928 * i387-nat.c: Delete file, moving contents to...
8929 * i387-tdep.c: ...here.
8930 * i387-nat.h: Rename...
8931 * i387-tdep.h: ...to this.
8932 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8933 * i386-linux-nat.c: Likewise.
8934 * i386bsd-nat.c: Likewise.
8935 * i386gnu-nat.c: Likewise.
8936 * i386nbsd-nat.c: Likewise.
8937 * i386v4-nat.c: Likewise.
8938 * x86-64-linux-nat.c: Likewise.
8939 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8940 * config/i386/go32.mh (NATDEPFILES): Likewise.
8941 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8942 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8943 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8944 * config/i386/linux.mh (NATDEPFILES): Likewise.
8945 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8946 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8947 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8948 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8949
8950 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8951
8952 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8953 (alphanbsd-nat.o): Remove dependency list.
8954 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8955 * alphanbsd-nat.c: Delete. Contents moved to...
8956 * alphanbsd-tdep.c: ...here.
8957 (_initialize_alphanbsd_tdep): Register core functions.
8958 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8959
8960 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8961
8962 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8963 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8964 (alphanbsd-nat.o): Likewise.
8965 (alphabsd-tdep.o): New dependency list.
8966 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8967 (fill_gregset): Use alphabsd_fill_reg.
8968 (supply_fpregset): Use alphabsd_supply_fpreg.
8969 (fill_fpregset): Use alphabsd_fill_fpreg.
8970 (fetch_inferior_registers): Use struct reg and struct fpreg
8971 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8972 and alphabsd_supply_fpreg.
8973 (store_inferior_registers): Use struct reg and struct fpreg
8974 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8975 and alphabsd_fill_fpreg.
8976 * alphabsd-tdep.c: New file.
8977 * alphabsd-tdep.h: New file.
8978 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8979 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8980 alphabsd_supply_fpreg.
8981 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8982 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8983
8984 2002-05-11 Eric Christopher <echristo@redhat.com>
8985
8986 * mips-tdep.c (mips_double_register_type): Fix thinko.
8987 (mips_single_register_type): Ditto.
8988 * MAINTAINERS: Add self.
8989
8990 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8991
8992 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8993 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8994 right thing on architectures with different endianness and/or
8995 integer sizes.
8996
8997 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8998
8999 From Christian Limpach <chris@Pin.LU>
9000 * configure.in: Change sed expression which comments out
9001 NATDEPFILES to also comment out continuation lines.
9002 * configure: Regenerate.
9003
9004 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9005
9006 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9007 big patch.
9008
9009 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9010
9011 * sh-tdep.c: Include correct file.
9012
9013 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9014
9015 New support for sh64-elf (sh5) target.
9016
9017 * configure.tgt: For sh64-elf target, default to sh-elf.
9018
9019 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9020 (struct gdbarch_tdep): Add new fields for new registers and ABI
9021 info.
9022
9023 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9024 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9025 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9026 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9027 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9028 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9029 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9030 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9031 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9032 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9033 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9034 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9035 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9036 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9037 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9038 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9039 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9040 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9041 sign_extend, sh64_nofp_frame_init_saved_regs,
9042 sh64_init_extra_frame_info, sh64_get_saved_register,
9043 sh64_extract_struct_value_address, sh64_pop_frame,
9044 sh64_push_arguments, sh64_extract_return_value,
9045 sh64_store_return_value, sh64_show_media_regs,
9046 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9047 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9048 sh_sh64_register_virtual_type,
9049 sh_sh64_register_convert_to_virtual,
9050 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9051 sh64_register_read, sh64_pseudo_register_write,
9052 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9053 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9054 sh64_do_pseudo_register, sh_compact_do_registers_info,
9055 sh64_do_registers_info, sh_gdbarch_init): New functions.
9056
9057 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
9058
9059 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9060
9061 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
9062
9063 * linespec.c (decode_line_1): Check for a double quote after
9064 a filename correctly.
9065
9066 2002-05-10 Jim Blandy <jimb@redhat.com>
9067
9068 Properly track the size of the current objfile's .debug_line section.
9069 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9070 (DWARF_LINE_SIZE): New macro.
9071 (dwarf2_build_psymtabs_hard): Record the line section's size in
9072 the partial symbol table.
9073 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9074 symbol table.
9075
9076 2002-05-10 Petr Sorfa <petrs@caldera.com>
9077
9078 * ia64-tdep.c: Handle breakpoints on L instruction type
9079 in MLX instruction bundle by moving the breakpoint to
9080 the third slot (X instruction type) as L holds only data.
9081
9082 2002-05-10 Kevin Buettner <kevinb@redhat.com>
9083
9084 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9085 (process_one_symbol): Complain about discarding local symbols
9086 due to a misplaced N_LBRAC entry.
9087
9088 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
9089
9090 From Daniel Berlin <dan@cgsoftware.com>
9091 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9092 decrease the depth we are at, in the case of templates.
9093
9094 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9095
9096 * mips-tdep.c (mips_float_register_type): New function.
9097 (mips_double_register_type): New function.
9098 (mips_print_register): Use them.
9099 (do_fp_register_row): Likewise.
9100
9101 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
9102
9103 * signals/signals.c (signals): Remove conditional compilation around
9104 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
9105 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
9106
9107 2002-05-09 Michael Snyder <msnyder@redhat.com>
9108
9109 * remote-rdp.c (remote_rdp_can_run): Remove.
9110
9111 2002-05-09 Tom Tromey <tromey@redhat.com>
9112
9113 * jv-valprint.c (java_val_print): Handle `char' as a special case
9114 of TYPE_CODE_INT.
9115
9116 2002-05-09 Michael Snyder <msnyder@redhat.com>
9117
9118 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9119 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9120 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9121 str r(0123),[sp,#nn].
9122 (arm_skip_prologue): Ditto. Also make disassembly
9123 order-independent by placing it in a loop.
9124
9125 2002-05-06 Michael Snyder <msnyder@redhat.com>
9126
9127 * stabsread.c (read_type): Add recognition for new attribute:
9128 "@V;" means that an array type is actually a vector.
9129 This is analogous to the vector flag that's been added to dwarf2.
9130
9131 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9132
9133 * i386-tdep.h (i386_abi): New enum.
9134 (struct gdbarch_tdep): Replace os_ident member with abi.
9135 (i386_gdbarch_register_os_abi): New prototype.
9136 * i386-tdep.c (i386_abi_names): New array.
9137 (process_note_abi_tag_sections): Removed.
9138 (process_note_sections): New function.
9139 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9140 (struct i386_abi_handler): New struct.
9141 (i386_abi_handler_list): New variable.
9142 (i386_gdbarch_register_os_abi): New function.
9143 (i386_gdbarch_init): Adapt for the changes given above.
9144
9145 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9146
9147 * gregset.h: Say "GNU/Linux".
9148
9149 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9150
9151 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9152 (build_gdbtypes): Build builtin_type_v2_float.
9153 (_initialize_gdbtypes): Register new builtin type.
9154
9155 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9156
9157 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9158 (clear_gdbarch_swap): New function.
9159 (initialize_non_multiarch): Call.
9160 (gdbarch_update_p): Before calling init(), swap out and clear the
9161 existing architecture.
9162 * gdbarch.c: Regenerate.
9163
9164 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9165
9166 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9167 alphanbsd-tdep.c.
9168
9169 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9170
9171 * sh-nbsd-nat.c: Rename to...
9172 * shnbsd-nat.c: ...this.
9173 * sh-nbsd-tdep.c: Rename to...
9174 * shnbsd-tdep.c: ...this.
9175 * sh-nbsd-tdep.h: Rename to...
9176 * shnbsd-tdep.h: ...this.
9177 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9178 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9179
9180 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9181
9182 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9183 concatenation for command help messages.
9184
9185 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9186
9187 * NEWS: Note new sh*-*-netbsdelf* configuration.
9188 * configure.host: Set gdb_host_cpu to sh for all sh*.
9189 (sh*-*-netbsdelf*): New host.
9190 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9191 (sh*-*-netbsdelf*): New target.
9192 * sh-nbsd-nat.c: New file.
9193 * sh-nbsd-tdep.c: New file.
9194 * sh-nbsd-tdep.h: New file.
9195 * config/sh/nbsd.mh: New file.
9196 * config/sh/nbsd.mt: New file.
9197 * config/sh/nm-nbsd.h: New file.
9198 * config/sh/tm-nbsd.h: New file.
9199
9200 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9201
9202 * sh-tdep.c (sh_osabi_names): Declare.
9203 (process_note_abi_tag_sections): New function.
9204 (get_elfosabi): Ditto.
9205 (sh_gdbarch_register_os_abi): Ditto.
9206 (sh_dump_tdep): Ditto.
9207 _initialize_sh_tdep): Use gdbarch_register to register
9208 sh_gdbarch_init and sh_dump_tdep.
9209 * config/sh/tm-sh.h (sh_osabi): Declare.
9210 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9211
9212 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9213
9214 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9215 (thumb_scan_prologue): Ditto.
9216 (arm_find_callers_reg): Ditto.
9217 (arm_frame_chain): Ditto.
9218 (arm_init_extra_frame_info): Ditto.
9219 (arm_frame_saved_pc): Ditto.
9220 (arm_pop_frame): Ditto.
9221 (arm_push_return_address): New function.
9222 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9223 call_dummy_location, call_dummy_breakpoint_offset_p,
9224 call_dummy_breakpoint_offset, call_dummy_p,
9225 call_dummy_stack_adjust_p, call_dummy_words,
9226 sizeof_call_dummy_words, call_dummy_start_offset,
9227 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9228 call_dummy_address, push_return_address and push_dummy_frame for
9229 generic dummy frames.
9230
9231 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9232
9233 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9234 size computation for alloca.
9235 (sh_fp_frame_init_saved_regs): Likewise.
9236
9237 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9238
9239 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9240 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9241 * arm-tdep.c (arm_store_return_value): Use them.
9242 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9243 * remote-rdp.c (remote_rdp_fetch_register): Use
9244 ARM_MAX_REGISTER_RAW_SIZE.
9245 (remote_rdp_store_register): Likewise.
9246
9247 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9248
9249 * dwarf2cfi.c: Code cleanup, removed unused variables,
9250 added default labels to switch {} statements.
9251 * x86-64-tdep.c: Ditto.
9252 * x86-64-linux-nat.c: Ditto.
9253
9254 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9255
9256 * solib.h: Protect against multiple inclusion.
9257
9258 2002-05-06 Jim Blandy <jimb@redhat.com>
9259
9260 Add first preprocessor macro-expansion files.
9261 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9262 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9263 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9264 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9265 (COMMON_OBS): Add macrotab.o, macroexp.o.
9266 (macroexp.o, macrotab.o): New rules.
9267
9268 Separate the job of reading the line number info statement program
9269 header (...expialidocious) out into its own function.
9270 * dwarf2read.c (struct line_head, struct filenames, struct
9271 directories): Replace with...
9272 (struct line_header): New structure, containing the full
9273 contents of the statement program header, including the
9274 include directory and file name tables.
9275 (read_file_scope): If we have line number info, instead of just
9276 calling dwarf_decode_lines to do all the work, call
9277 dwarf_decode_line_header first to get a `struct line_header'
9278 containing the data in the statement program header, and then
9279 pass that to dwarf_decode_lines, which will pick up where that
9280 left off. Be sure to clean up the `struct line_header' object.
9281 (dwarf_decode_line_header, free_line_header, add_include_dir,
9282 add_file_name): New functions.
9283 (dwarf_decode_lines): Move all the code to read the statement
9284 program header into dwarf_decode_line_header. Take the line
9285 header it built as the first argument, instead of the offset to
9286 the compilation unit's line number info. Use the new `struct
9287 line_header' type instead of the old structures. No need to do
9288 cleanups here now, since we don't allocate anything.
9289 (dwarf2_statement_list_fits_in_line_number_section,
9290 dwarf2_line_header_too_long): New complaints.
9291
9292 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9293
9294 * gdbtypes.c (init_vector_type): New function.
9295 (build_builtin_type_vec128): Simplify the representation of SIMD
9296 registers.
9297 (build_gdbtypes): Initialize new builtin vector types.
9298 (_initialize_gdbtypes): Register new vector types with gdbarch.
9299 (builtin_type_v4_float, builtin_type_v4_int32,
9300 builtin_type_v8_int16, builtin_type_v16_int8,
9301 builtin_type_v2_int32, builtin_type_v4_int16,
9302 builtin_type_v8_int8): New (renamed) SIMD types.
9303
9304 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9305
9306 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9307 (i387_fill_fxsave): Likewise.
9308
9309 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9310
9311 * alpha-tdep.c (alpha_extract_return_value): Don't use
9312 non-constant array size in prototype.
9313
9314 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9315
9316 From Brian Taylor <briant at model dot com>:
9317 * ui-out.c (ui_out_field_core_addr): Use the function
9318 longest_local_hex_string_custom'to format addresses > 32 bits
9319 wide.
9320
9321 * ui-out.c (ui_out_field_core_addr): Update comment.
9322
9323 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9324
9325 * stack.c (select_and_print_frame): Make static. Delete the
9326 parameter `level'.
9327 (func_command): Update call.
9328 (select_frame_command): Delete code computing the frame level.
9329 * frame.h (select_and_print_frame): Delete declaration.
9330
9331 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9332
9333 * sparc-tdep.c (sparc_get_saved_register): Comment why
9334 get_prev_frame call is safe.
9335
9336 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9337
9338 * frame.h (select_frame): Delete level parameter.
9339 * stack.c (select_frame): Update. Use frame_relative_level to
9340 obtain the frame's level.
9341 (select_and_print_frame): Update call.
9342 (select_frame_command): Ditto.
9343 (up_silently_base): Ditto.
9344 (down_silently_base): Ditto.
9345 * ocd.c (ocd_start_remote): Ditto.
9346 * remote-rdp.c (remote_rdp_open): Ditto.
9347 * remote-mips.c (mips_initialize): Ditto.
9348 (common_open): Ditto.
9349 * remote-e7000.c (e7000_start_remote): Ditto.
9350 * m3-nat.c (select_thread): Ditto.
9351 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9352 (child_get_current_exception_event): Ditto.
9353 * varobj.c (varobj_create): Ditto.
9354 (varobj_update): Ditto.
9355 (c_value_of_root): Ditto.
9356 * tracepoint.c (finish_tfind_command): Ditto.
9357 * corelow.c (core_open): Ditto.
9358 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9359 * thread.c (info_threads_command): Ditto.
9360 (switch_to_thread): Ditto.
9361 * infrun.c (normal_stop): Ditto.
9362 (restore_selected_frame): Ditto.
9363 (restore_inferior_status): Ditto.
9364 * breakpoint.c (insert_breakpoints): Ditto.
9365 (watchpoint_check): Ditto.
9366 (bpstat_stop_status): Ditto.
9367 (do_enable_breakpoint): Ditto.
9368 * blockframe.c (flush_cached_frames): Ditto.
9369 (reinit_frame_cache): Ditto.
9370
9371 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9372
9373 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9374 maintainer.
9375
9376 2002-05-04 Jim Blandy <jimb@redhat.com>
9377
9378 * gdbtypes.c (replace_type): Doc fix.
9379
9380 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9381
9382 * valprint.c (strcat_longest): Delete commented out function.
9383 Update copyright.
9384
9385 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9386
9387 * MAINTAINERS: Mark a29k as deleted.
9388 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9389 Move new configurations to the top.
9390 * configure.tgt: Remove a29k.
9391 * config/a29k/tm-vx29k.h: Delete.
9392 * config/a29k/vx29k.mt: Delete.
9393 * config/a29k/tm-a29k.h: Delete.
9394 * config/a29k/a29k-udi.mt: Delete.
9395 * config/a29k/a29k.mt: Delete.
9396 * a29k-tdep.c: Delete.
9397 * remote-udi.c: Delete.
9398 * remote-mm.c: Delete.
9399 * remote-eb.c: Delete.
9400 * remote-adapt.c: Delete.
9401 * Makefile.in: Remove obsolete code.
9402 * config/s390/s390x.mt: Ditto.
9403 * config/s390/s390.mt: Ditto.
9404 * config/sparc/sparclynx.mh: Ditto.
9405 * config/sparc/linux.mh: Ditto.
9406 * config/pa/hppaosf.mh: Ditto.
9407 * config/pa/hppabsd.mh: Ditto.
9408 * config/ns32k/nbsd.mt: Ditto.
9409 * config/mips/vr5000.mt: Ditto.
9410 * config/m68k/sun3os4.mh: Ditto.
9411 * config/m68k/nbsd.mt: Ditto.
9412 * config/m68k/m68klynx.mh: Ditto.
9413 * config/m32r/m32r.mt: Ditto.
9414 * config/i386/x86-64linux.mt: Ditto.
9415 * config/i386/nbsdelf.mt: Ditto.
9416 * config/i386/nbsd.mt: Ditto.
9417 * config/i386/i386lynx.mh: Ditto.
9418
9419 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9420
9421 * target.c (debug_print_register): New function. Handle oversize
9422 registers.
9423 (debug_to_fetch_registers): Call.
9424 (debug_to_store_registers): Call.
9425
9426 2002-05-03 Jim Blandy <jimb@redhat.com>
9427
9428 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9429 (read_type): Doc fix.
9430 * gdbtypes.c (replace_type): Doc fix.
9431
9432 * stabsread.c (multiply_defined_struct): New complaint.
9433 (read_struct_type): If the type we were passed isn't empty, or
9434 incomplete, don't read the new struct type into it; complain,
9435 and return the original type unchanged. Take a new `type_code'
9436 argument, which is the type code for the new type.
9437 (read_type): Rather than storing the type's type code here, pass
9438 it as an argument to read_struct_type, and let that take care of
9439 storing it. That way, we don't overwrite the original type code,
9440 so read_struct_type can use it to decide whether we're overwriting
9441 something we shouldn't.
9442 (complain_about_struct_wipeout): New function.
9443
9444 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9445
9446 * gdbarch.sh: Assert that gdbarch is non-NULL.
9447 * gdbarch.c: Regenerate.
9448
9449 2002-05-03 Jason Merrill <jason@redhat.com>
9450
9451 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9452 and return NULL.
9453
9454 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9455
9456 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9457 (x86_64_dwarf2gdb_regno_map_length),
9458 (x86_64_dwarf2_reg_to_regnum): Added.
9459 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9460 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9461 (_initialize_x86_64_tdep): Synced with the change above.
9462 (x86_64_skip_prologue): Reformulated message.
9463
9464 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9465
9466 * f-exp.y: Also use new prev_lexptr variable
9467 to improve error reporting. Based on Michael Snyder
9468 2002-04-24 dated patch to c-exp.y.
9469 * jv-exp.y: Likewise.
9470 * m2-exp.y: Likewise.
9471
9472 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9473
9474 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9475 we are dealing with vectors.
9476
9477 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9478
9479 * config/m68k/tm-nbsd.h: Obvious fix,
9480 correct machine name.
9481
9482 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9483
9484 * p-typeprint.c (pascal_type_print_base): Add support
9485 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9486
9487 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9488
9489 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9490 for fondamental pascal 'char' type.
9491
9492 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9493
9494 * p-lang.h (is_pascal_string_type): Declaration changed,
9495 new sixth argument of type char ** added.
9496 * p-lang.c (is_pascal_string_type): Implementation
9497 changed. Args length_pos, length_size, string_pos, char_size
9498 can now be NULL. New argument arrayname set to the field
9499 name of the char array. Return value set to char array
9500 field index plus one.
9501 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9502 is_pascal_string_type function.
9503
9504 2002-05-02 Andrew Cagney <cagney@redhat.com>
9505
9506 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9507 <cagney@redhat.com> change.
9508 * gdbarch.c: Regenerate.
9509
9510 2002-05-02 Andrew Cagney <cagney@redhat.com>
9511
9512 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9513 before probing for a new one. Detect errorenous gdbarch_init
9514 functions.
9515 * gdbarch.c: Regenerate.
9516
9517 2002-05-01 Andrew Cagney <cagney@redhat.com>
9518
9519 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9520 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9521 * config/v850/tm-v850.h: Ditto. Update copyright.
9522
9523 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9524
9525 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9526 current_gdbarch.
9527
9528 2002-04-30 Michael Snyder <msnyder@redhat.com>
9529
9530 * arm-tdep.c: Whitespace clean-ups.
9531 (arm_skip_prologue): Fix thinko; two lines
9532 should have been removed as part of 4/24 change.
9533
9534 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9535
9536 * rs6000-tdep.c: Added comment describing how fpscr register
9537 numbers were chosen.
9538
9539 2002-04-30 Michael Snyder <msnyder@redhat.com>
9540
9541 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9542
9543 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9544
9545 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9546 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9547 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9548
9549 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9550
9551 From Louis Hamilton <hamilton@redhat.com>:
9552 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9553 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9554 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9555 not bfd-private xcoff data, to determine wordsize.
9556 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9557
9558 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9559
9560 GDB 5.2 released from 5.2 branch.
9561
9562 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9563
9564 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9565 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9566 (x86_64_register_info_table): Added comments with register numbers.
9567
9568 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9569
9570 * rs6000-tdep.c (rs6000_extract_return_value,
9571 rs6000_store_return_value): Handle returning vectors.
9572 (rs6000_gdbarch_init): Use
9573 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9574 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9575 New function.
9576 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9577 vectors.
9578 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9579 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9580
9581 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9582
9583 * hpread.c (hpread_psymtab_to_symtab_1,
9584 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9585 with fprintf_unfiltered (gdb_stderr,...).
9586
9587 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9588
9589 * remote-array.c (printf_monitor, write_monitor,
9590 array_insert_breakpoint, array_remove_breakpoint ):
9591 Replace fprintf (stderr,...
9592 with fprintf_unfiltered (gdb_stderr,....
9593 * remote-es.c: Likewise.
9594 * remote-os9k.c: Likewise.
9595 * remote-st.c: Likewise.
9596
9597 2002-04-28 Andreas Schwab <schwab@suse.de>
9598
9599 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9600 linux-proc.o and gcore.o.
9601
9602 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9603
9604 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9605 code without frame pointers.
9606
9607 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9608
9609 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9610 ON_STACK is needed.
9611
9612 2002-04-26 Ben Elliston <bje@redhat.com>
9613
9614 * target.c (do_xfer_memory): Correct reference to the new option
9615 "trust-readonly-sections".
9616
9617 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9618
9619 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9620 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9621 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9622 vectors.
9623 (read_array_type): Record the fact that this array type is really a
9624 vector (i.e. are passed in by value).
9625
9626 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9627
9628 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9629 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9630 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9631 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9632 * alpha-linux-tdep.c: Include frame.h.
9633 (alpha_linux_sigcontext_addr): New function.
9634 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9635 alpha_linux_sigcontext_addr.
9636 * alpha-osf1-tdep.c: Include gdbcore.h.
9637 (alpha_osf1_sigcontext_addr): New function.
9638 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9639 alpha_osf1_sigcontext_addr.
9640 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9641 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9642
9643 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9644
9645 * stack.c (selected_frame_level):
9646 (select_frame): Do not set selected_frame_level.
9647 * frame.h (selected_frame_level): Delete declaration.
9648
9649 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9650
9651 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9652 convert_from_func_ptr-addr when AIX / PowerOpen.
9653
9654 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9655
9656 * valops.c (hand_function_call): Call
9657 generic_save_call_dummy_addr.
9658 * frame.h (generic_save_call_dummy_addr): Declare.
9659 * blockframe.c (struct dummy_frame): Add fields call_lo and
9660 call_hi.
9661 (generic_find_dummy_frame): Check for PC in range call_lo to
9662 call_hi instead of entry_point_address.
9663 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9664 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9665 (generic_save_call_dummy_addr): New function.
9666
9667 2002-04-24 David S. Miller <davem@redhat.com>
9668
9669 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9670 sparc_skip_prologue.
9671 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9672 information to find prologue when possible.
9673 (sparc_prologue_frameless_p): Call examine_prologue directly.
9674 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9675 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9676 second argument.
9677 (SKIP_PROLOGUE): Likewise.
9678
9679 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9680
9681 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9682 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9683 indicate that the condition it was testing is always true.
9684 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9685 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9686 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9687
9688 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9689
9690 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9691 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9692 tdep->jb_pc and tdep->jb_elt_size.
9693 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9694 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9695 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9696 * alpha-nat.c (get_longjmp_target): Remove.
9697 (JB_ELEMENT_SIZE): Ditto.
9698 (JB_PC): Ditto.
9699 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9700 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9701 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9702 to alpha_get_longjmp_target.
9703 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9704 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9705 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9706
9707 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9708
9709 * README: Update to GDB 5.2.
9710
9711 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9712
9713 * gdbarch.sh (LC_ALL): Set to `c'.
9714
9715 2002-04-25 Theodore A. Roth <troth@verinet.com>
9716
9717 * avr-tdep.c: Ran through gdb_indent.sh.
9718
9719 2002-04-25 Theodore A. Roth <troth@verinet.com>
9720
9721 * MAINTAINERS: Add myself as AVR maintainer.
9722 * NEWS: Note new target avr.
9723
9724 2002-04-25 Theodore A. Roth <troth@verinet.com>
9725
9726 * Makefile.in: Add support for AVR target.
9727 * configure.tgt: Add support for AVR target.
9728 * avr-tdep.c: New file
9729 * config/avr/avr.mt: New file.
9730
9731 2002-04-25 Theodore A. Roth <troth@verinet.com>
9732
9733 * MAINTAINERS: Add myself to write-after-approval.
9734
9735 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9736
9737 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9738 with fprintf_unfiltered (gdb_stderr,....
9739
9740 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9741
9742 Fix PR gdb/508.
9743 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9744
9745 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9746
9747 * p-exp.y: Also use new prev_lexptr variable
9748 to improve error reporting. Based on Michael Snyder
9749 2002-04-24 dated patch to c-exp.y.
9750
9751 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9752
9753 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9754 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9755 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9756 to 0.
9757 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9758 and struct value.
9759 (FUNCTION_START_OFFSET): Remove.
9760 (BREAKPOINT): Ditto.
9761
9762 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9763
9764 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9765 * NEWS: Ditto.
9766
9767 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9768
9769 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9770 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9771 alpha_linux_pc_in_sigtramp.
9772 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9773 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9774 alpha_osf1_pc_in_sigtramp.
9775 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9776 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9777 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9778 alphafbsd_pc_in_sigtramp.
9779 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9780 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9781 alphanbsd_pc_in_sigtramp.
9782 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9783 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9784
9785 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9786
9787 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9788
9789 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9790
9791 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9792 alphanbsd-tdep.c.
9793 (alphanbsd-nat.o): New dependency list.
9794 (alphanbsd-tdep.o): Ditto.
9795 * NEWS: Note new native NetBSD/alpha configuration.
9796 * alphanbsd-nat.c: New file.
9797 * alphanbsd-tdep.c: Ditto.
9798 * configure.host (alpha*-*-netbsd*): New host.
9799 * configure.tgt (alpha*-*-netbsd*): New target.
9800 * config/alpha/nbsd.mh: New file.
9801 * config/alpha/nbsd.mt: Ditto.
9802 * config/alpha/nm-nbsd.h: Ditto.
9803 * config/alpha/tm-nbsd.h: Ditto.
9804
9805 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9806
9807 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9808 (alpha-osf1-tdep.o): New dependency list.
9809 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9810 and skip_sigtramp_frame members.
9811 * alpha-linux-tdep.c: Include gdbcore.h.
9812 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9813 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9814 * alpha-osf1-tdep.c: New file.
9815 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9816 alpha-osf1-dep.c.
9817 (alpha_frame_past_sigtramp_frame): New function.
9818 (alpha_dynamic_sigtramp_offset): Ditto.
9819 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9820 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9821 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9822 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9823 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9824 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9825 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9826 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9827 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9828 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9829 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9830 to find_solib_trampoline_target.
9831 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9832 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9833 (SKIP_TRAMPOLINE_CODE): Remove.
9834 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9835 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9836 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9837 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9838 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9839 (PROC_SIGTRAMP_MAGIC): Ditto.
9840 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9841 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9842 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9843 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9844 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9845
9846 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9847
9848 * NEWS: Note that Alpha targets are now multi-arch.
9849
9850 2002-04-24 Michael Snyder <msnyder@redhat.com>
9851
9852 * parser-defs.h (prev_lexptr): New external variable.
9853 * parse.c (parse_exp_1): Set prev_lexptr to null before
9854 calling the language-specific parser.
9855 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9856 (yyerror): Use prev_lexptr in error reporting.
9857
9858 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9859
9860 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9861 * gregset.h: If FILL_FPXREGSET is defined, provide
9862 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9863 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9864 is defined, call fill_fpxregset.
9865
9866 2002-04-24 Roland McGrath <roland@frob.com>
9867
9868 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9869 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9870 (supply_gregset, supply_fpregset): New functions.
9871
9872 * gnu-nat.c (gnu_find_memory_regions): New function.
9873 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9874 (gnu_xfer_memory): Add a cast.
9875
9876 2002-04-24 Michael Snyder <msnyder@redhat.com>
9877
9878 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9879 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9880 of argument regs ("str r(0123), [r11, #-nn"]).
9881 (arm_skip_prologue): Better handling for frameless functions.
9882 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9883 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9884
9885 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9886
9887 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9888 NUM_PSEUDO_REGS can be used.
9889
9890 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9891
9892 * arch-utils.h: Update copyright.
9893
9894 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9895 * gdbarch.h, gdbarch.c: Re-generate.
9896
9897 * inferior.h (IN_SIGTRAMP): Delete definition.
9898 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9899 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9900
9901 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9902 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9903 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9904 (find_proc_framesize): Ditto.
9905 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9906 (alpha_init_extra_frame_info): Ditto.
9907 * infrun.c (handle_inferior_event): Ditto.
9908 (handle_inferior_event): Ditto.
9909 (check_sigtramp2): Ditto.
9910 * blockframe.c (create_new_frame): Ditto.
9911 (get_prev_frame): Ditto.
9912 * ppc-linux-tdep.c: Update comments.
9913 * i386-linux-tdep.c: Update comments.
9914 * breakpoint.c (bpstat_what): Update comment.
9915
9916 2002-04-24 David S. Miller <davem@redhat.com>
9917
9918 * i960-tdep.c (register_in_window_p): New function.
9919 (i960_find_saved_register): Use it instead of
9920 REGISTER_IN_WINDOW_P.
9921 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9922
9923 * symtab.h (find_stab_function_addr): Kill extern.
9924 * minsyms.c (find_stab_function_addr): Remove from here...
9925 * dbxread.c: ... to here, and mark it static.
9926
9927 2002-04-20 David S. Miller <davem@redhat.com>
9928
9929 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9930 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9931
9932 2002-04-21 David S. Miller <davem@redhat.com>
9933
9934 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9935 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9936 (vx_write_register): Likewise.
9937
9938 2002-04-23 J. Brobecker <brobecker@gnat.com>
9939
9940 * source.c (is_regular_file): New function.
9941 (openp): Check wether file to open is a regular file
9942 to avoid opening directories.
9943
9944 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9945
9946 * findvar.c (extract_signed_integer): Cast printf argument
9947 to suppress format warning.
9948 (extract_unsigned_integer): Likewise.
9949 * infcmd.c (registers_info): Likewise.
9950 * top.c (get_prompt_1): Likewise.
9951 * valops.c (value_assign): Likewise.
9952 * valprint.c (print_decimal): Likewise.
9953
9954 2002-04-22 H.J. Lu (hjl@gnu.org)
9955
9956 * c-exp.y (typebase): Support
9957
9958 [long|long long|short] [signed|unsigned] [int|]
9959
9960 and
9961
9962 signed [long|long long|short] int
9963
9964 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9965
9966 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9967 and vax-tdep.h.
9968 * vax-tdep.h: New file.
9969 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9970 Make several routines static.
9971 (vax_get_saved_register): New function.
9972 (vax_gdbarch_init): New function.
9973 (_initialize_vax_tdep): Register vax_gdbarch_init.
9974 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9975 Remove macros now under the control of gdbarch.
9976
9977 2002-04-22 Michael Snyder <msnyder@redhat.com>
9978
9979 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9980 Some whitespace and coding standards tweaks.
9981
9982 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9983
9984 * vax-tdep.c: Include regcache.h.
9985 (vax_call_dummy_words): New.
9986 (sizeof_vax_call_dummy_words): New.
9987 (vax_fix_call_dummy): New function.
9988 (vax_saved_pc_after_call): Ditto.
9989 * config/vax/tm-vax.h: Don't include regcache.h.
9990 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9991 (CALL_DUMMY): Remove.
9992 (CALL_DUMMY_WORDS): Define.
9993 (SIZEOF_CALL_DUMMY_WORDS): Define.
9994 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9995
9996 2002-04-18 Michael Snyder <msnyder@redhat.com>
9997
9998 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9999
10000 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10001
10002 * vax-tdep.c (vax_frame_chain): New function.
10003 (vax_push_dummy_frame): Ditto.
10004 (vax_pop_frame): Ditto.
10005 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10006 (FRAMELESS_FUNCTION_INVOCATION): Use
10007 generic_frameless_function_invocation_not.
10008 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10009 (POP_FRAME): Use vax_pop_frame.
10010
10011 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10012
10013 * vax-tdep.c (vax_store_struct_return): New function.
10014 (vax_extract_return_value): Ditto.
10015 (vax_store_return_value): Ditto.
10016 (vax_extract_struct_value_address): Ditto.
10017 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10018 vax_store_struct_return.
10019 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10020 (STORE_RETURN_VALUE): Use vax_store_return_value.
10021 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10022
10023 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10024
10025 * vax-tdep.c (vax_frame_saved_pc): New function.
10026 (vax_frame_args_address_correct): Ditto.
10027 (vax_frame_args_address): Ditto.
10028 (vax_frame_locals_address): Ditto.
10029 (vax_frame_num_args): Move code to be in proximity to
10030 other frame-related functions.
10031 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10032 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10033 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10034 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10035 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10036
10037 2002-04-22 H.J. Lu (hjl@gnu.org)
10038
10039 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10040 includedir.
10041
10042 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10043
10044 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10045 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10046 (FRAME_INIT_SAVED_REGS): New macro.
10047
10048 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10049
10050 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10051
10052 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10053
10054 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10055 where needed.
10056 (fetch_osf_core_registers): Likewise.
10057 (supply_gregset): Likewise.
10058
10059 2002-04-22 J. Brobecker <brobecker@gnat.com>
10060
10061 * symfile.h (get_section_index): Define.
10062 * symfile.c (get_section_index): New function.
10063 * mdebugread.c (SC_IS_SBSS): New macro.
10064 (SC_IS_BSS): Return true for the scBss storage class only, as
10065 the scSBss storage class refers to the .sbss section.
10066 (parse_partial_symbols): Discard the symbols which associated
10067 section does not exist.
10068 Make sure to use the .sbss section index for symbols which
10069 storage class is scBss, rather than using the .bss section index.
10070
10071 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
10072
10073 * vax-tdep.c: Update copyright years.
10074 (vax_register_name): New function.
10075 (vax_register_byte): Ditto.
10076 (vax_register_raw_size): Ditto.
10077 (vax_register_virtual_size): Ditto.
10078 (vax_register_virtual_type): Ditto.
10079 * config/vax/tm-vax.h: Update copyright years.
10080 (REGISTER_NAMES): Remove.
10081 (REGISTER_NAME): Define.
10082 (REGISTER_BYTE): Use vax_register_byte.
10083 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10084 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10085 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10086
10087 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10088
10089 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10090 declaration
10091 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10092
10093 2002-04-21 David S. Miller <davem@redhat.com>
10094
10095 * arch-utils.c (generic_prologue_frameless_p): Kill
10096 SKIP_PROLOGUE_FRAMELESS_P code.
10097 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10098 references.
10099 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10100 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10101 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10102 references.
10103 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10104 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10105 (sparc_gdbarch_init): Pass it to
10106 set_gdbarch_prologue_frameless_p.
10107
10108 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10109
10110 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10111 (alphabsd-nat.o): New dependency list.
10112
10113 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10114
10115 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10116 alphafbsd-tdep.c.
10117 (alpha-linux-tdep.o): New dependency list.
10118 (alphafbsd-tdep.o): Likewise.
10119
10120 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10121
10122 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10123 to here...
10124 * alpha-tdep.c: ...from here.
10125 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10126
10127 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10128
10129 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10130 prototype from here...
10131 * alpha-tdep.h: ...to here.
10132
10133 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10134
10135 * frame.h (selected_frame_level): Document as deprecated.
10136 (frame_relative_level): Declare.
10137 * stack.c (frame_relative_level): New function.
10138 (selected_frame_level): Document as deprecated.
10139 (select_frame): Do not set the selected_frame_level.
10140
10141 * stack.c (frame_info, record_selected_frame): Update.
10142 (frame_command, current_frame_command): Update.
10143 (up_silently_base, up_command, down_silently_base): Update.
10144 (down_command): Update.
10145 * inflow.c (kill_command): Update.
10146 * tracepoint.c (finish_tfind_command): Update.
10147 * corelow.c (core_open): Update.
10148 * thread.c (info_threads_command): Update.
10149 (do_captured_thread_select): Update.
10150 * infcmd.c (finish_command): Update.
10151 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10152
10153 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10154
10155 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10156
10157 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10158
10159 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10160 type const.
10161
10162 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10163
10164 * alphafbsd-tdep.c: Update copyright years. Include
10165 alpha-tdep.h.
10166 (alphafbsd_use_struct_convention): Make static.
10167 (alphafbsd_init_abi): New function.
10168 (_initialize_alphafbsd_tdep): New function.
10169 * config/alpha/tm-fbsd.h: Update copyright years.
10170 (USE_STRUCT_CONVENTION): Remove.
10171
10172 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10173
10174 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10175 an Alpha ABI variant.
10176 (alpha_abi_handler_list): Declare.
10177 (alpha_gdbarch_register_os_abi): New function.
10178 (alpha_gdbarch_init): Give registered ABI variant handlers a
10179 chance to tweak the gdbarch once we have set up defaults.
10180 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10181
10182 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10183
10184 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10185 to standard_coerce_float_to_double.
10186 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10187
10188 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10189
10190 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10191 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10192 from gdbarch_tdep rather than a constant.
10193 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10194 the default text address for all Alpha Unix ABIs.
10195 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10196 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10197
10198 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10199
10200 * alpha-tdep.h: New file. Includes several Alpha target constants
10201 taken from...
10202 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10203 let gdbarch deal with.
10204 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10205 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10206 to dependency list.
10207 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10208 Alpha target register names.
10209 * alphabsd-nat.c: Likewise.
10210 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10211 Alpha target register names. Make serveral routines static.
10212 (alpha_get_saved_register): New function.
10213 (alpha_abi_names): New.
10214 (process_note_abi_tag_sections): New function.
10215 (get_elfosabi): New function.
10216 (alpha_gdbarch_init): New function.
10217 (alpha_dump_tdep): New function.
10218 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10219
10220 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10221
10222 * frame.c (find_saved_register): Delete #ifdef
10223 HAVE_REGISTER_WINDOWS code.
10224 * config/sparc/tm-sparc.h: Update comments.
10225 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10226
10227 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10228
10229 * i960-tdep.c (i960_find_saved_register): New function.
10230 (i960_get_saved_register): New function.
10231 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10232 (i960_get_saved_register): Declare.
10233 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10234
10235 2002-04-20 David S. Miller <davem@redhat.com>
10236
10237 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10238
10239 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10240
10241 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10242 instead of NUM_PSEUDO_REGS.
10243
10244 2002-04-20 David S. Miller <davem@redhat.com>
10245
10246 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10247 GDB_MULTI_ARCH_PARTIAL
10248 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10249 define, let tm-sp64.h do it.
10250
10251 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10252
10253 * frame.c (find_saved_register): Avoid a NULL pointer
10254 dereference and actually walk the frame list.
10255
10256 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10257
10258 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10259 sorted in most most-recent-used order. Document.
10260 * gdbarch.h, gdbarch.c: Regenerate.
10261
10262 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10263
10264 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10265 instead of ->prev.
10266 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10267 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10268 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10269 instead of ->prev.
10270
10271 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10272
10273 Fix PR gdb/471.
10274 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10275 (build_builtin_type_vec128): Ditto.
10276 (append_composite_type_field): Fix calculation of type length in
10277 union case.
10278
10279 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10280
10281 * config/djgpp/README: Update.
10282
10283 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10284 compiler warnings.
10285
10286 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10287
10288 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10289 (alpha_setup_arbitrary_frame): ...to this.
10290 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10291 for alpha_setup_arbitrary_frame.
10292
10293 2002-04-18 Andrew Cagney <cagney@redhat.com>
10294
10295 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10296 * gdbarch.h, gdbarch.c: Regenerate.
10297
10298 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10299 * target.h (memory_breakpoint_from_pc): Update declaration.
10300 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10301
10302 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10303 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10304 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10305 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10306 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10307 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10308 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10309 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10310 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10311 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10312 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10313 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10314
10315 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10316 const pointer.
10317 * monitor.c (monitor_insert_breakpoint): Ditto.
10318 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10319
10320 * config/mcore/tm-mcore.h: Update copyright.
10321 * mem-break.c: Ditto.
10322 * xstormy16-tdep.c: Ditto.
10323
10324 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10325
10326 * p-exp.y: Add precedence rule for '^' token.
10327 This removes the shift/reduce conflicts.
10328 Remove the comment concerning these shift/reduce conflicts.
10329
10330 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10331
10332 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10333 (registers_powerpc_nofp): New register set for processors
10334 without floating point unit.
10335
10336 2002-04-18 David S. Miller <davem@redhat.com>
10337
10338 * MAINTAINERS: Add myself to write-after-approval.
10339
10340 2002-04-17 Michael Snyder <msnyder@redhat.com>
10341
10342 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10343
10344 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10345
10346 * rs6000-tdep.c (frame_initial_stack_address): Use
10347 frame_register_read to read the alloca_reg.
10348
10349 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10350
10351 * frame.c (find_saved_register): Find saved registers in the next
10352 not prev frame.
10353 Fix PR gdb/365.
10354
10355 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10356
10357 * gdbarch.sh (LANG): Set to ``c''.
10358
10359 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10360
10361 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10362
10363 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10364
10365 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10366 Update copyright.
10367
10368 * hpread.c (hpread_get_lntt): Add declaration.
10369 Also fix PR gdb/391.
10370
10371 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10372
10373 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10374 * aclocal.m4, configure: Re-generate.
10375 Fix PR gdb/391.
10376
10377 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10378
10379 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10380 instead of tm_print_insn.
10381
10382 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10383
10384 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10385
10386 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10387
10388 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10389 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10390 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10391
10392 2002-04-12 Don Howard <dhoward@redhat.com>
10393
10394 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10395 max_user_call_depth.
10396 (init_cmd_lists): Initialize the new value;
10397 * cli/cli-script.c (execute_user_command): Limit the call depth of
10398 user defined commands. This avoids a core-dump when user commands
10399 are infinitly recursive.
10400
10401 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10402
10403 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10404 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10405 from tdep struct instead of DEFAULT_LR_SAVE.
10406 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10407 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10408 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10409
10410 2002-04-12 Michael Snyder <msnyder@redhat.com>
10411
10412 * Remote.c: Spelling fix.
10413 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10414 If no symbol found for "sbrk", try "_sbrk".
10415 (make_output_phdrs): Use bfd_section_name.
10416 (gcore_copy_callback): Use bfd_section_name.
10417 * eval.c: Indentation fix-ups.
10418 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10419 in case it gets applied to an address that is already
10420 in the instruction space.
10421 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10422 * symfile.c: Fix indentation, long lines.
10423 * source.c: White space fix-up.
10424
10425 2002-04-12 Andrew Cagney <cagney@redhat.com>
10426
10427 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10428 * frame.c (frame_register_read): New function. Return non-zero on
10429 success.
10430 (read_relative_register_raw_bytes_for_frame): Delete.
10431 (read_relative_register_raw_bytes): Delete.
10432 * frame.h (frame_register_read): Declare.
10433 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10434 * sh-tdep.c: Ditto.
10435 * infcmd.c (do_registers_info): Ditto.
10436 * hppa-tdep.c: Ditto.
10437 * rs6000-tdep.c: Ditto.
10438 * h8500-tdep.c: Ditto.
10439 * mips-tdep.c: Ditto.
10440 * h8300-tdep.c: Ditto.
10441 * z8k-tdep.c: Ditto.
10442
10443 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10444
10445 From Jimi X <jimix@watson.ibm.com>:
10446 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10447 64-bit SysV ABI.
10448
10449 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10450
10451 From Jimi X <jimix@watson.ibm.com>:
10452 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10453 bfd info.
10454
10455 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10456
10457 From Jimi X <jimix@watson.ibm.com>:
10458 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10459 register sets for these processor variants.
10460
10461 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10462
10463 * regformats/reg-ppc.dat: Support FPSCR.
10464
10465 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10466
10467 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10468 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10469 Add fpscr as an invalid/unfetchable register.
10470 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10471 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10472 (fill_fpregset): Add support for register fpscr.
10473 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10474 (fill_gregset): Account for the fact that register ``mq'' might
10475 not exist.
10476 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10477 (registers_power): Add fpscr to register set at slot 71.
10478 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10479 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10480
10481 2002-04-11 Michael Snyder <msnyder@redhat.com>
10482
10483 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10484 * configure: Regenerate.
10485 * config.in: Regenerate.
10486 * acconfig.h: Add define for _SYSCALL32.
10487 * core-sol2.c: Remove #define _SYSCALL32.
10488 * solib-legacy.c: Remove #define _SYSCALL32.
10489
10490 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10491
10492 * stack.c (select_frame): Cleanup internal error message, do not
10493 use %p.
10494
10495 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10496
10497 * stack.c (select_frame): Check that selected_frame and the
10498 specified level are as expected.
10499 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10500 Update copyright.
10501 * frame.h (struct frame_info): Add field `level'. Update
10502 copyright.
10503 Work-in-progress PR gdb/464.
10504
10505 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10506
10507 * maint.c (maint_print_section_info): Rename print_section_info.
10508 (print_bfd_section_info, print_objfile_section_info): Update.
10509 * inferior.h (struct gdbarch): Add opaque declaration.
10510 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10511 * gdbarch.h: Regenerate.
10512
10513 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10514
10515 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10516 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10517 (kernel_u_size): Added.
10518 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10519 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10520
10521 2002-04-04 Jim Ingham <jingham@apple.com>
10522
10523 * valarith.c (find_size_for_pointer_math): New function, either returns
10524 the size for a pointer's target, returns 1 for void *, or errors for
10525 incomplete types.
10526 (value_add, value_sub): use find_size_for_pointer_math.
10527
10528 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10529
10530 * linux-low.c (linux_look_up_symbols): New hook.
10531 (linux_target_ops): Add linux_look_up_symbols.
10532 * remote-utils.c (decode_address): New function.
10533 (look_up_one_symbol): New function.
10534 * server.c (handle_query): Call target look_up_symbols hook.
10535 * server.h (look_up_one_symbol): Add prototype.
10536 * target.h (struct target_ops): Add look_up_symbols hook.
10537
10538 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10539
10540 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10541 override FP_REGNUM with frame->fp. Update copyright.
10542 * parse.c (num_std_regs, std_regs): Delete.
10543 (target_map_name_to_register): Do not search std_regs. Update
10544 function description.
10545 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10546 declarations. Update copyright.
10547 Fix PR gdb/251.
10548
10549 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10550
10551 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10552 after the last symbol in a block.
10553
10554 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10555
10556 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10557 is non zero as a found symbol.
10558
10559 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10560
10561 * findvar.c: Include "builtin-regs.h".
10562 (value_of_register): Call value_of_builtin_reg when applicable.
10563 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10564 (target_map_name_to_register): Call
10565 builtin_reg_map_name_to_regnum.
10566 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10567 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10568 (builtin_regs_h): Define.
10569 (builtin-regs.o): New target.
10570 (findvar.o): Add $(builtin_regs_h).
10571 * builtin-regs.c, builtin-regs.h: New files.
10572 * std-regs.c: New file.
10573 Partial fix for PR gdb/251.
10574
10575 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10576
10577 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10578 it's no longer required.
10579
10580 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10581
10582 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10583
10584 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10585
10586 From Jimi X <jimix@watson.ibm.com>:
10587 * rs6000-tdep.c (rs6000_software_single_step): Use
10588 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10589 and size. Use target_insert_breakpoint() and
10590 target_remove_breakpoint() to insert and remove breakpoints
10591 instead of explicit memory reads and writes.
10592
10593 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10594
10595 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10596 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10597 ELF_OBJECT_FORMAT ifdef.
10598
10599 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10600
10601 From Jimi X <jimix@watson.ibm.com>:
10602 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10603
10604 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10605
10606 From Jimi X <jimix@watson.ibm.com>:
10607 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10608 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10609
10610 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10611
10612 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10613 s/asprintf/xasprintf/.
10614 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10615
10616 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10617
10618 I believe Jeff Law denies responsability for this one:
10619 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10620 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10621 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10622 Work-around for PR gdb/366.
10623
10624 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10625
10626 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10627 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10628 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10629
10630 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10631
10632 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10633 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10634 information.
10635
10636 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10637
10638 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10639 maintainer.
10640
10641 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10642
10643 * README (Reporting Bugs in GDB): Document the bug web page as the
10644 prefered way of submitting bugs.
10645 Fix PR gdb/402.
10646
10647 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10648
10649 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10650 -1. Update comment.
10651 * gdbarch.h, gdbarch.c: Re-generate.
10652
10653 2002-04-07 Andreas Schwab <schwab@suse.de>
10654
10655 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10656 buffer to regcache_collect.
10657
10658 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10659
10660 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10661 * gdbarch.c, gdbarch.h: Re-generate.
10662
10663 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10664
10665 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10666 declaration. Fix -Werror.
10667
10668 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10669
10670 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10671 * gdbarch.c: Regenerate.
10672
10673 2002-04-05 Michael Snyder <msnyder@redhat.com>
10674
10675 * breakpoint.c (clear_command): Rewrite middle section to
10676 combine two loops with identical control conditions.
10677 Add a cleanup to eliminate a memory leak.
10678 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10679
10680 2002-04-05 H.J. Lu (hjl@gnu.org)
10681
10682 * solib-svr4.c (bkpt_names): Add "__start".
10683
10684 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10685
10686 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10687 as test for 64 bit target.
10688
10689 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10690
10691 * h8500-tdep.c (h8500_write_fp): Delete function.
10692 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10693 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10694 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10695 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10696 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10697 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10698 (s390_write_fp):
10699 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10700 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10701 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10702 (d10v_write_fp): Delete function.
10703 * inferior.h (write_fp, generic_target_write_fp): Delete
10704 declarations.
10705 * regcache.c (generic_target_write_fp): Delete function.
10706 (write_fp): Delete function.
10707 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10708 * gdbarch.h, gdbarch.c: Regenerate.
10709 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10710 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10711 (sparc64_write_fp): Delete declaration.
10712 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10713 (h8500_write_fp): Delete declaration.
10714
10715 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10716
10717 * sparc-tdep.c (sparc64_write_fp): Delete.
10718 (sparc_push_dummy_frame): Replace write_fp call with code to store
10719 the FP directly.
10720 (sparc_gdbarch_init): Do not initialize write_fp.
10721
10722 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10723
10724 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10725 clause.
10726
10727 2002-03-29 Jim Blandy <jimb@redhat.com>
10728
10729 * stack.c (get_selected_block): Add new argument `addr_in_block',
10730 used to return the exact code address we used to select the block,
10731 not just the block.
10732 * blockframe.c (get_frame_block, get_current_block): Same.
10733 * frame.h (get_frame_block, get_current_block,
10734 get_selected_block): Update declarations.
10735 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10736 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10737
10738 2002-04-05 Michael Snyder <msnyder@redhat.com>
10739
10740 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10741 warning message.
10742
10743 2002-04-05 J. Brobecker <brobecker@gnat.com>
10744
10745 * utils.c (xfullpath): New function.
10746 * defs.h (xfullpath): Add declaration.
10747 * source.c (openp): Use xfullpath in place of gdb_realpath to
10748 avoid resolving the basename part of filenames when the
10749 associated file is a symbolic link. This fixes a potential
10750 inconsistency between the filenames known to GDB and the
10751 filenames it prints in the annotations.
10752 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10753 to be able to match a filename with either the real filename, or
10754 the name of any symbolic link to this file.
10755 (lookup_partial_symtab): Ditto.
10756
10757 2002-04-04 Michael Snyder <msnyder@redhat.com>
10758
10759 * breakpoint.c: Add support for hardware breakpoints in overlays.
10760 (overlay_events_enabled): New state variable.
10761 (insert_breakpoints): Use overlay_events_enabled to decide
10762 whether to attempt to set a breakpoint at the overlay load addr.
10763 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10764 (remove_breakpoint): Use overlay_events_enabled to decide
10765 whether breakpoints need to be removed from overlay load addr.
10766 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10767 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10768 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10769 disable_overlay_breakpoints): Update overlay_events_enabled.
10770
10771 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10772
10773 * dwarf2read.c (struct function_range): New.
10774 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10775 (check_cu_functions): New.
10776 (read_file_scope): Initialize global function lists.
10777 Call dwarf_decode_line after processing children.
10778 (read_func_scope): Add to global function list.
10779 (dwarf_decode_lines): Call check_cu_functions everywhere
10780 record_line is called. Call record_line with a linenumber
10781 of 0 to mark sequence ends.
10782
10783 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10784
10785 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10786 change sync with glibc.
10787
10788 2002-04-03 Jim Blandy <jimb@redhat.com>
10789
10790 * configure.in: Call AC_C_INLINE.
10791 * configure: Regenerated.
10792
10793 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10794
10795 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10796 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10797
10798 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10799
10800 * NEWS: Mention gcore support on FreeBSD/i386.
10801
10802 * fbsd-proc.c: New file.
10803 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10804 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10805
10806 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10807 while statement.
10808
10809 2002-03-29 Jim Blandy <jimb@redhat.com>
10810
10811 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10812 unescaped newlines in string literals, but newer ones don't. So
10813 escape them.
10814
10815 2002-03-26 Michael Snyder <msnyder@redhat.com>
10816 Andrew Cagney <cagney@redhat.com>
10817
10818 * cli/cli-dump.c: New file. Dump memory to file,
10819 restore file to memory.
10820 * cli/cli-dump.h: New file.
10821 * Makefile.in: Add rules, dependencies for cli-dump.o.
10822 * NEWS: Mention new commands.
10823
10824 2002-03-28 Michael Snyder <msnyder@redhat.com>
10825
10826 * symfile.c (symbol_file_add): Move test for null symbols to later.
10827
10828 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10829
10830 From veksler at il.ibm.com:
10831 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10832 the xstrduped original path.
10833 Fix PR gdb/417.
10834
10835 2002-03-27 Michael Snyder <msnyder@redhat.com>
10836
10837 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10838 * infcmd.c (_initialize_infcmd): Ditto.
10839 * language.c (_initialize_language): Ditto.
10840 * symfile.c (_initialize_symfile): Ditto.
10841 * top.c (_init_main): Ditto.
10842 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10843
10844 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10845
10846 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10847 vector registers handling.
10848 (skip_prologue): Handle new AltiVec instructions. Fill in new
10849 fields of frame data.
10850 (frame_get_saved_regs): Fill in information for AltiVec registers.
10851
10852 2002-03-27 Jim Blandy <jimb@redhat.com>
10853
10854 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10855 a function; leave this macro here to invoke that function.
10856 (symbol_init_mangled_name): Declaration for that function.
10857 * symtab.c (symbol_init_mangled_name): New function.
10858
10859 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10860
10861 * valarith.c: Replace strerror with safe_strerror.
10862 * tracepoint.c: Ditto.
10863 * lin-lwp.c: Ditto.
10864 * go32-nat.c: Ditto.
10865 * inflow.c: Ditto.
10866 * gnu-nat.c: Ditto.
10867
10868 2002-03-27 Andreas Schwab <schwab@suse.de>
10869
10870 * event-top.c (command_line_handler): Remove useless if.
10871
10872 2002-03-27 Andreas Jaeger <aj@suse.de>
10873
10874 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10875 comment.
10876
10877 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10878
10879 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10880 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10881 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10882 (x86_64_linux_dr_get_status, supply_gregset),
10883 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10884 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10885 (x86_64_register_info_table): Add.
10886 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10887 (x86_64_register_raw_size, x86_64_register_virtual_type),
10888 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10889 general x86_64_register_info_table.
10890 (i386_gdbarch_init): gdbarch_register_bytes is now set
10891 dynamicaly during initialization.
10892 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10893 * gdbserver/linux-x86-64-low.c: Ditto.
10894
10895 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10896
10897 * gdbserver/server.c (main): Call target_signal_to_host_p
10898 and target_signal_to_host on signals received from the remote.
10899 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10900 target_signal_from_host on signals sent to the remote.
10901 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10902 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10903
10904 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10905
10906 * signals/signals.c: Include "server.h" in gdbserver build.
10907 (target_signal_from_name): Don't use STREQ.
10908 (_initialize_signals): Likewise. Don't include function in
10909 gdbserver build.
10910
10911 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10912
10913 * signals.c: Moved to...
10914 * signals/signals.c: Here.
10915 * Makefile (signals.o): Update.
10916
10917 2002-03-26 Jeff Law (law@redhat.com)
10918
10919 * somread.c (som_symtab_read): Remove some commented out code and
10920 updated related comments. Do not set the minimal symbol table to
10921 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10922 in a dynamic executable.
10923 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10924 where we are unable to find the minimal symbol for the given
10925 PC value.
10926
10927 2002-03-25 Jeff Law (law@redhat.com)
10928
10929 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10930
10931 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10932
10933 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10934
10935 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10936
10937 * command.h: Update copyright.
10938 (struct cmd_list_element): Replace definition with opaque
10939 declaration.
10940 (enum cmd_types): Document that it will eventually be moved to
10941 cli/cli-decode.h
10942 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10943 (MALLOCED_REPLACEMENT): Delete macro.
10944 * Makefile.in (cli_decode_h): Add $(command_h).
10945 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10946 * top.c: Include "cli/cli-decode.h".
10947 * completer.c: Include "cli/cli-decode.h".
10948 * maint.c: Include "cli/cli-decode.h".
10949 * cli/cli-decode.h: Include "command.h".
10950 (enum command_class): Delete.
10951 (enum cmd_types): Comment out.
10952 (enum cmd_auto_boolean): Delete.
10953 (enum var_types): Delete.
10954
10955 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10956
10957 * cli/cli-decode.c: Include "gdb_assert.h".
10958 (add_set_or_show_cmd): New static function.
10959 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10960 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10961 all fields, such as func, from the set command.
10962
10963 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10964
10965 * MAINTAINERS (sh-elf): Change warning flag to -w.
10966
10967 2002-03-23 Andrew Cagney <cagney@redhat.com>
10968
10969 * defs.h (error): Add printf format attribute.
10970 * thread-db.c (thread_from_lwp): Fix error format string.
10971 * stack.c (parse_frame_specification): Ditto.
10972 * cli/cli-decode.c (undef_cmd_error): Ditto.
10973 * scm-lang.c (scm_lookup_name): Ditto.
10974 * tracepoint.c (trace_error): Ditto.
10975 * remote-utils.c (usage): Ditto.
10976 * remote.c (compare_sections_command): Ditto.
10977 Fix PR gdb/328.
10978
10979 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10980
10981 * gdbtypes.c (append_composite_type_field): New function.
10982 (init_composite_type): New function.
10983 * gdbtypes.h (append_composite_type_field): Declare.
10984 (init_composite_type): Ditto.
10985
10986 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10987
10988 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10989 function.
10990 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10991 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10992 structure returning convention for SYSV ABI case, but not
10993 for GNU/Linux, FreeBSD, or NetBSD.
10994
10995 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10996
10997 * symtab.h (lookup_block_symbol): Add mangled_name argument
10998 to prototype.
10999
11000 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11001 with new mangled_name argument.
11002 * linespec.c (decode_line_1): Likewise.
11003 * valops (value_of_this): Likewise.
11004 * symtab.c (lookup_transparent_type): Likewise.
11005 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11006 (lookup_symbol): If we are given a mangled name, pass it down
11007 to lookup_symbol_aux.
11008 (lookup_block_symbol): If we are given a mangled name to check
11009 against, only return symbols which match it.
11010
11011 2002-03-22 Christopher Faylor <cgf@redhat.com>
11012
11013 * win32-nat.c (child_create_inferior): Check for proper shell to use
11014 here, in case the user changes it on the fly.
11015 (_initialize_inftarg): Remove shell path considerations.
11016
11017 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
11018
11019 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11020 for gdbarch_max_register_raw_size and max_register_virtual_size.
11021 Adjust copyright year.
11022
11023 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
11024
11025 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11026 in a function to cover the entire beginning of the function
11027 as well if it does not already.
11028
11029 2002-03-21 Tom Rix <trix@redhat.com>
11030
11031 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11032 (rs6000_ptrace64): Renamed from ptrace64.
11033
11034 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11035
11036 * gdbserver/remote-utils.c (remote_open): Don't call
11037 getprotobyname, we're all using TCP here so just use
11038 IPPROTO_TCP.
11039 * gdbserver/gdbreplay.c (remote_open): Ditto.
11040
11041 2002-03-20 Martin M. Hunt <hunt@redhat.com>
11042
11043 * regcache.c (_initialize_regcache): No need to call
11044 build_regcache() at this time; it gets called whenever
11045 the gdbarch changes.
11046
11047 2002-03-20 David O'Brien <obrien@FreeBSD.org>
11048
11049 * sparc-nat.c: Include sys/param.h where possible.
11050
11051 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
11052
11053 Fix PR gdb/422.
11054 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11055 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11056 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11057 complex types.
11058 * stabsread.c (rs6000_builtin_type): Likewise.
11059 (read_sun_floating_type): Likewise.
11060
11061 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11062
11063 * stabsread.c (read_member_functions): Remove skip code for duplicate
11064 constructor/destructor methods. Use standard parsing for these
11065 methods and just do not chain them to the list of methods after
11066 parsing.
11067
11068 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
11069
11070 * coffread.c: Remove redundant static declarations. Replace
11071 occurrences of `PTR' with `void *'.
11072 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11073 * top.h (quit_cover): Likewise.
11074 * defs.h (catch_errors): Likewise.
11075
11076 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11077
11078 * defs.h (XMALLOC): Define.
11079 * gdb-events.sh (XMALLOC): Delete macro.
11080 * gdb-events.c, gdb-events.h: Regenerate.
11081 * gdbarch.sh (XMALLOC): Delete macro.
11082 * gdbarch.c: Regenerate.
11083 * serial.c (XMALLOC): Delete macro.
11084 * ui-file.c (XMALLOC): Ditto.
11085 * ser-unix.h (XMALLOC): Ditto.
11086 * sh-tdep.c (XMALLOC): Ditto.
11087 * ui-out.c (XMALLOC): Ditto.
11088 * utils.c (XMALLOC): Ditto.
11089 * i386-tdep.c (XMALLOC): Ditto.
11090 * gdb-events.c (XMALLOC): Ditto.
11091 * d10v-tdep.c (XMALLOC): Ditto.
11092 * cli-out.c (XMALLOC): Ditto.
11093
11094 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11095 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11096 * ui-file.c, ui-out.c: Ditto.
11097
11098 2002-03-18 Andrew Cagney <ac131313@redhat.com>
11099
11100 * command.h (struct cmd_list_element): Add field context.
11101 (set_cmd_context, get_cmd_context): Declare.
11102 * cli/cli-decode.h: Ditto.
11103 * cli/cli-decode.c (get_cmd_context): New function.
11104 (set_cmd_context): New function.
11105 (add_cmd): Initialize context.
11106 Part of fixing PR gdb/145 and PR gdb/146.
11107
11108 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11109
11110 * cli/cli-decode.c (cmd_type): New function.
11111 * command.h (cmd_type): Declare.
11112 * infrun.c (set_schedlock_func): Call function cmd_type.
11113 * kod.c (kod_set_os): Call cmd_type.
11114 * cris-tdep.c (cris_version_update): Use function cmd_type.
11115 (cris_mode_update, cris_abi_update): Ditto.
11116
11117 * command.h: (execute_cmd_post_hook): Declare.
11118 (execute_cmd_pre_hook): Declare.
11119 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11120 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11121 functions. Execute pre/post hook while ensuring that afterwords
11122 hook_in is cleared.
11123 * top.c (execute_command): Use execute_cmd_post_hook, and
11124 execute_cmd_pre_hook to execute pre/post commands.
11125 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11126 hook_stop_stub.
11127 (hook_stop_stub): Call execute_cmd_pre_hook.
11128
11129 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11130
11131 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11132 set'' and this leads to a core dump. Move xstrdup of
11133 operating_system to after check that it is not NULL.
11134
11135 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11136
11137 * kod.c (kod_set_os): Remove unnecessary check that
11138 ``command->type'' is set_cmd.
11139
11140 * valprint.c (set_input_radix): Use input_radix.
11141 (set_output_radix): Use output_radix.
11142 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11143 isn't reverted.
11144
11145 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11146
11147 * value.h (struct value): Delete field ``substring_addr''. Change
11148 aligner fields to force_doublest_align, force_longest_align,
11149 force_core_addr_align and force_pointer_aligh.
11150
11151 * value.h (struct value): Fix typo in above change.
11152
11153 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11154
11155 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11156 to fix internal_error from ``maintenance print architecture''.
11157
11158 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11159
11160 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11161 for gcc versions after gcc-2.8.1.
11162
11163 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11164
11165 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11166 for method resolution. Restore adjustment of ``this'' pointer after
11167 calling value_struct_elt, which was accidentally removed during the
11168 HP merge.
11169
11170 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11171
11172 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11173 value_of_register.
11174 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11175 get_saved_register.
11176 * value.h (value_of_register): Update.
11177
11178 2002-03-14 Richard Henderson <rth@redhat.com>
11179
11180 * configure.in: Detect declaration for canonicalize_file_name.
11181 * utils.c (canonicalize_file_name): Declare, if needed.
11182 (gdb_realpath): Prefer realpath if available and usable.
11183 * config.in, configure: Rebuild.
11184
11185 2002-03-14 Richard Henderson <rth@redhat.com>
11186
11187 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11188 a constant array bound.
11189
11190 * MAINTAINERS: Add myself to write-after-approval.
11191
11192 2002-03-14 Michael Snyder <msnyder@redhat.com>
11193
11194 * symfile.c (syms_from_objfile): Return immediately if no syms.
11195 (symbol_file_add): Return immediately if no syms.
11196 (find_sym_fns): Return immediately if no syms.
11197
11198 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11199
11200 * gdbserver/remote-util.c (remote_open): Print remote-side's
11201 IP address when remote debugging over the network.
11202
11203 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11204
11205 * config/sparc/fbsd.mh: Fix copyright.
11206 * config/sparc/fbsd.mt: Likewise.
11207
11208 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11209
11210 * MAINTAINERS: Fix typo in name of gdb warnings option.
11211 (x86-64): Fix formating so that this can be parsed by awk.
11212
11213 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11214
11215 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11216 * defs.h: Include "gdb/signals.h".
11217 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11218
11219 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11220
11221 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11222 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11223 from x86-64-tdep.h
11224
11225 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11226 Don Howard <dhoward@redhat.com>
11227
11228 * mips-tdep.c (ST0_FR): Define.
11229 (mips2_fp_compat): New function, temporarily disabled.
11230 (mips_read_fp_register_single): New function.
11231 (mips_read_fp_register_double): New function.
11232 (mips_print_register): Use them.
11233 (do_fp_register_row): Likewise.
11234
11235 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11236
11237 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11238 approval''.
11239
11240 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11241
11242 * stabsread.c (read_member_functions): Fix is_stub test for
11243 static member functions, improve comment.
11244
11245 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11246
11247 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11248 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11249 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11250 commands that set boolean values.
11251 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11252 (arm_rdi_resume): Always initialize PC.
11253 (arm_rdi_open): Don't use rslt as a boolean.
11254 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11255 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11256 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11257 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11258
11259 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11260
11261 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11262 * configure: Rebuilt.
11263
11264 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11265
11266 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11267 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11268
11269 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11270
11271 * cli/cli-decode.c (set_cmd_completer): New function.
11272 * command.h (set_cmd_completer): Declare.
11273 * cli/cli-decode.h (set_cmd_completer): Ditto.
11274
11275 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11276 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11277 * win32-nat.c (_initialize_inftarg): Ditto.
11278 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11279 * proc-api.c (_initialize_proc_api): Ditto.
11280 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11281 * source.c (_initialize_source): Ditto.
11282 * exec.c (_initialize_exec): Ditto.
11283 * solib.c (_initialize_solib): Ditto.
11284 * top.c (init_main): Ditto.
11285 * tracepoint.c (_initialize_tracepoint): Ditto.
11286 * symfile.c (_initialize_symfile): Ditto.
11287 * printcmd.c (_initialize_printcmd): Ditto.
11288 * infcmd.c (_initialize_infcmd): Ditto.
11289 * corefile.c (_initialize_core): Ditto.
11290
11291 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11292
11293 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11294
11295 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11296
11297 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11298
11299 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11300
11301 * NEWS: Update headings, 5.2 has branched.
11302
11303 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11304
11305 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11306 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11307 (register_addr, REGISTER_RAW_SIZE): Likewise.
11308 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11309 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11310
11311 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11312
11313 * MAINTAINERS (x86-64): Add myself.
11314 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11315 changed value_ptr -> struct value *
11316
11317 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11318
11319 * configure.host (sparc64-*-freebsd): Add.
11320 * configure.tgt: Likewise.
11321 * config/sparc/fbsd.mh: New file.
11322 * config/sparc/fbsd.mt: Likewise.
11323 * config/sparc/nm-fbsd.h: Likewise.
11324 * config/sparc/tm-fbsd.h: Likewise.
11325
11326 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11327
11328 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11329 regformats/reg-s390x.dat.
11330
11331 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11332
11333 * utils.c: Add FIXME explaining true/false problem.
11334
11335 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11336
11337 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11338
11339 2002-02-28 Michael Chastain <mec@shout.net>
11340
11341 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11342
11343 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11344
11345 * gdbserver/linux-s390-low.c: New file.
11346 * regformats/reg-s390.dat: New file.
11347 * regformats/reg-s390x.dat: New file.
11348 * gdbserver/configure.srv: Add S/390.
11349 * gdbserver/Makefile.in: Add S/390.
11350 * configure.tgt: Enable gdbserver for S/390.
11351
11352 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11353
11354 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11355 first line of the doc string for "info dos", except at the end of
11356 the sentence, since the short help stops at the first period.
11357
11358 2002-02-28 Jason Merrill <jason@redhat.com>
11359
11360 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11361
11362 2002-02-27 Fred Fish <fnf@redhat.com>
11363
11364 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11365 comment (dumy -> dummy).
11366
11367 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11368
11369 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11370
11371 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11372
11373 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11374
11375 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11376
11377 * gdbserver/acconfig.h: New file.
11378 * gdbserver/i387-fp.c: New file.
11379 * gdbserver/i387-fp.h: New file.
11380 * gdbserver/linux-x86-64.c: New file.
11381 * regformats/reg-x86-64.dat: New file.
11382 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11383 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11384 * gdbserver/configure.in: Add support for regsets.
11385 * gdbserver/config.in: Regenerate.
11386 * gdbserver/configure: Regenerate.
11387 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11388 * gdbserver/linux-low.h: New file.
11389 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11390 for regsets.
11391 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11392 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11393 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11394 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11395 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11396 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11397 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11398 "i387-fp.h". Add PTRACE_GETREGS and friends.
11399 * gdbserver/regcache.c (supply_register): New function.
11400 (supply_register_by_name): New function.
11401 (collect_register): New function.
11402 (collect_register_by_name): New function.
11403
11404 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11405
11406 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11407 (config.status): Add configure.srv dependency.
11408 (server_h): Add config.h dependency.
11409
11410 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11411
11412 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11413 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11414 * gdbserver/configure.srv: Change i386-*-linux* to use
11415 reg-i386-linux.o.
11416
11417 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11418
11419 * x86-64-tdep.c: Re-indent. Update copyright date.
11420
11421 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11422
11423 From Michal Ludvig <mludvig@suse.cz>:
11424 * x86-64-tdep.c (value.h): Delete.
11425 (gdb_assert.h): Include.
11426 (x86_64_register_convert_to_virtual,
11427 x86_64_register_convert_to_raw ): Add check which lets only
11428 floating-point values to be converted.
11429 (value_push): Delete.
11430 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11431 (i386_gdbarch_init): Number of register_bytes fixed.
11432
11433 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11434
11435 * MAINTAINERS: Add x86-64 target.
11436
11437 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11438
11439 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11440 * osfsolib.c (solib_map_sections): Ditto.
11441 * irix5-nat.c (solib_map_sections): Ditto.
11442 * corelow.c (gdb_check_format): Ditto.
11443 * symfile.c (symfile_bfd_open): Ditto.
11444 * solib.c (solib_map_sections): Ditto.
11445 Fix PR gdb/354.
11446
11447 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11448
11449 * remote.c (_initialize_remote): By default, disable ``e'' and
11450 ``E'' step out-of-range packets.
11451
11452 2002-02-26 Andreas Schwab <schwab@suse.de>
11453
11454 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11455 m68k_linux_frame_saved_pc.
11456 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11457 in_sigtramp.
11458 (SIGCONTEXT_PC_OFFSET): Remove.
11459 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11460 m68k_linux_sigtramp_saved_pc): New functions.
11461 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11462 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11463 (UCONTEXT_PC_OFFSET): Define.
11464 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11465 non-RT and RT signal trampolines.
11466
11467 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11468
11469 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11470 (TARGET_NBPG, STACK_END_ADDR): Delete
11471 (VARIABLES_INSIDE_BLOCK): Delete.
11472
11473 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11474
11475 * utils.c (perror_with_name): Make string parameter constant.
11476 (print_sys_errmsg): Ditto.
11477 (query): Ditto.
11478 * defs.h (perror_with_name): Update.
11479 (print_sys_errmsg): Update.
11480 (query): Update.
11481
11482 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11483
11484 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11485 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11486
11487 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11488
11489 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11490 if it already matches the current architecture from the exec file.
11491 Include arch-utils.h for gdbarch_info_init prototype.
11492 * Makefile.in (rs6000-nat.o): Update dependencies.
11493
11494 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11495
11496 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11497 list of exported variables.
11498
11499 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11500
11501 * gdbserver/configure.srv: New file.
11502 * gdbserver/configure.in: Use configure.srv instead
11503 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11504 from it.
11505 * gdbserver/configure: Regenerated.
11506 * gdbserver/terminal.h: New file.
11507 * gdbserver/Makefile.in: Update for configure changes. Remove
11508 more unneeded include paths.
11509
11510 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11511
11512 From wiz at danbala:
11513 * config/sparc/tm-sp64.h: Fix grammar and typos.
11514 Fix PR gdb/287.
11515
11516 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11517
11518 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11519 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11520 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11521 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11522 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11523 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11524 * s390-tdep.c: Ditto.
11525 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11526 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11527 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11528 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11529 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11530 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11531 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11532 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11533 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11534 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11535 Fix PR gdb/378.
11536
11537 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11538
11539 * lin-thread.c: Delete file.
11540 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11541 to gdb_proc_service.h.
11542 * configure: Re-generate.
11543
11544 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11545 * serial.c (serial_open): Delete check for "ocd".
11546 Fix PR gdb/349.
11547
11548 * Makefile.in (linux-thread.o): Delete target.
11549 * linux-thread.c: Delete file.
11550
11551 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11552 renamed SH files to be consistent.
11553
11554 * symtab.c (sort_search_symbols): Use xfree.
11555
11556 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11557
11558 * arm-linux-tdep.c (arm_linux_init_abi): Register
11559 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11560 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11561 definition with undef, since we don't want the sysvr4 definition.
11562 (SKIP_TRAMPOLINE_CODE): Likewise.
11563
11564 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11565
11566 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11567
11568 * configure.in: (AC_CHECK_FUNCS) Added test for
11569 canonicalize_file_name Regenerated.
11570 * config.in, configure: Regenerated.
11571 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11572 defined use canonicalize_file_name.
11573
11574 2002-02-23 Michael Chastain <mec@shout.net>
11575
11576 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11577
11578 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11579
11580 * README: Remove references to cygnus.com.
11581 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11582 dot com'' form. Remove references to cygnus.com and sourceware.
11583
11584 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11585
11586 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11587 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11588 1003.1-2001 no longer allows "head -1".
11589 * gdb/Makefile.in (version.c): Likewise.
11590 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11591 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11592 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11593
11594 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11595
11596 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11597 * command.h (cmd_cfunc_eq): Declare.
11598 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11599
11600 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11601 ``struct cmd_list_element *''.
11602 * cli/cli-cmds.c (is_complete_command): Update. Use
11603 cmd_cfunc_eq.
11604 * top.c (execute_command): Pass the command to
11605 is_complete_command.
11606 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11607
11608 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11609
11610 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11611 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11612 architecture defines.
11613 * s390-tdep.c (s390_gdbarch_init): Likewise.
11614
11615 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11616
11617 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11618 (arm_linux_push_arguments): Likewise.
11619 (arm_linux_init_abi): Register them. Also register linux-specific
11620 call_dummy_words.
11621 (find_minsym_and_objfile): Use strcmp, not STREQ.
11622 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11623 (arm_linux_call_dummy_words): Delete declaration.
11624 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11625 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11626 declarations.
11627 (LOWEST_PC): Delete.
11628
11629 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11630
11631 * maint.c (print_section_info): Do not prepend `0x' to filepos
11632 output, it will be handled by local_hex_string_custom.
11633
11634 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11635
11636 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11637 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11638 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11639
11640 2002-02-22 Jim Blandy <jimb@redhat.com>
11641
11642 Indicate that the bcache functions don't change the strings
11643 they're passed.
11644 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11645 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11646
11647 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11648
11649 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11650
11651 2002-02-21 Christopher Faylor <cgf@redhat.com>
11652
11653 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11654 find the complete path to a loaded DLL.
11655
11656 2002-02-21 Fred Fish <fnf@redhat.com>
11657
11658 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11659 that marks the end of the range of a function, enter a line number
11660 entry that has a line number of zero and a PC offset that matches
11661 the end of the function. This starts a range of PC's for which no
11662 line number information is known.
11663 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11664 PC's for which no line number info is found (line number is zero)
11665 then we didn't find any valid line information.
11666 * symtab.h: Document use of zero line number entry.
11667
11668 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11669
11670 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11671 (have_ptrace_getvrregs): Define for run time checks.
11672 (gdb_vrregset_t): New type for Altivec register handling.
11673 (fetch_register, store_register): Fetch/store altivec register
11674 when needed.
11675 (fetch_altivec_register, store_altivec_register): New functions.
11676 (supply_vrregset, fill_vrregset): New functions.
11677 (fetch_altivec_registers, store_altivec_registers): New functions.
11678 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11679 registers as well.
11680
11681 2002-02-21 Jiri Smid <smid@suse.cz>
11682
11683 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11684
11685 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11686
11687 * Makefile.in (armnbsd-nat.o): Update dependencies.
11688 * armnbsd-nat.c (supply_gregset): New function. Common code to
11689 supply the integer register set.
11690 (supply_fparegset): New function. Similar for FPA registers.
11691 (fetch_regs, fetch_fp_regs): Use them.
11692 (fetch_core_registers): Likewise.
11693 (fetch_elfcore_registers): New function.
11694 (arm_netbsd_elfcore_fns): New core-file type specification.
11695 (_initialize_arm_netbsd_nat): Register it.
11696
11697 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11698
11699 * armnbsd-nat.c: Include gdbcore.h.
11700 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11701 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11702 'void' to declaration, to shut up ARI.
11703 (fetch_core_registers): Make static. Rewrite using supply_register.
11704 (arm_netbsd_core_fns): New core-file type specification.
11705 (_initialize_arm_netbsd_nat): New function.
11706
11707 2002-02-21 Christopher Faylor <cgf@redhat.com>
11708
11709 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11710 value.
11711
11712 2002-02-20 Christopher Faylor <cgf@redhat.com>
11713
11714 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11715 fails.
11716
11717 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11718
11719 * jv-exp.y (parse_number): Change type of implicit longs
11720 to builtin_type_uint64.
11721
11722 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11723
11724 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11725 to be an integer instead of a `union wait'.
11726
11727 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11728
11729 * mips-linux-nat.c: Call the operating system GNU/Linux.
11730 * mips-linux-tdep.c: Likewise.
11731 * mips-tdep.c: Likewise.
11732
11733 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11734
11735 Fix PR gdb/265.
11736 * jv-exp.y (parse_number): Handle 64-bit integers.
11737
11738 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11739
11740 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11741 AC_STDC_HEADERS to AC_HEADER_STDC.
11742 * gdbserver/configure: Regenerated.
11743
11744 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11745
11746 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11747 is defined.
11748 * sparc-tdep.c (get_longjmp_target): Likewise.
11749
11750 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11751
11752 * News: Add news about ARM and Multi-arch. Mention the new target
11753 arm*-*-netbsd*.
11754
11755 2002-02-19 Jim Blandy <jimb@redhat.com>
11756
11757 * stabsread.c (error_type_complaint): Improve error message.
11758
11759 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11760
11761 * gdbserver/README: Update documentation.
11762 * gdbserver/configure.in: Update configury to match documentation.
11763 * gdbserver/Makefile.in: Likewise.
11764 * gdbserver/configure: Regenerated.
11765 * gdbserver/aclocal.m4: New file, generated by aclocal.
11766 * gdbserver/config.in: New file, generated by autoheader.
11767
11768 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11769
11770 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11771 armnbsd-nat.c.
11772
11773 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11774
11775 * arm-tdep.h (enum arm_float_model): New enum.
11776 (struct gdbarch_tdep): Add fp_model.
11777 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11778 up floating-point conversions until we know the floating-point model
11779 in use by the inferior. Don't complain about being unable to
11780 determine the ABI of the inferior when we don't have one.
11781 (arm_extract_return_value): Support different floating-point models.
11782 (arm_store_return_value): Likewise.
11783 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11784 ARM_FLOAT_SOFT.
11785 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11786
11787 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11788
11789 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11790 of ``current_gdbarch''.
11791
11792 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11793
11794 * armnbsd-nat.c : ANSIfy all function declarations.
11795 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11796 (fetch_inferior_registers): Re-implement in terms of above.
11797 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11798 (store_inferior_registers): Re-implement in terms of above.
11799
11800 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11801
11802 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11803 kernel.
11804 * arm-linux-tdep.c: Likewise.
11805 * config/arm/tm-linux.h: Likewise.
11806
11807 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11808
11809 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11810 * config/arm/nbsd.mt (TM_FILE): Delete.
11811 * config/arm/tm-nbsd.h: Delete.
11812
11813 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11814
11815 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11816 Initialize CALL_DUMMY_LENGTH.
11817
11818 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11819
11820 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11821 function.
11822 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11823 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11824 defines one thing and that is incorrect for this port.
11825 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11826
11827 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11828
11829 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11830
11831 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11832
11833 * win32-nat.c (display_selector): New function. Displays information
11834 about the information returned by GetThreadSelectorEntry API function.
11835 (display_selectors): New function. Displays the infomation of
11836 the selector given as argument, or of CS, DS ans FS selectors
11837 if no argument is given.
11838 ( _initialize_inftarg): Add "w32" as info prefix command.
11839 Add "info w32 selector" as command calling display_selectors.
11840
11841 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11842
11843 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11844 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11845 if not defined.
11846
11847 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11848
11849 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11850
11851 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11852
11853 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11854 (arm_fix_call_dummy): Call it.
11855 (arm_call_dummy_breakpoint_offset): Delete.
11856 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11857 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11858
11859 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11860
11861 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11862 Default to func_frame_chain_valid.
11863 * gdbarch.h, gdbarch.c: Re-generate.
11864 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11865
11866 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11867
11868 * ppc-linux-nat.c: Update copyright.
11869 (fetch_register, store_register): Add tid parameter, don't compute
11870 tid here.
11871 (fetch_ppc_registers, store_ppc_registers): Add tid
11872 parameter. Pass it along to callees.
11873 (fetch_inferior_registers, store_inferior_registers): Compute tid
11874 here, and pass it to calleed functions.
11875 (fill_gregset, supply_fpregset): Clean up formatting.
11876
11877 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11878
11879 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11880 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11881
11882 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11883
11884 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11885 * gdbarch.c gdbarch.h: Regenerate.
11886 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11887 function.
11888 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11889 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11890 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11891
11892 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11893 * arm-tdep.c (arm_get_longjmp_target): New function.
11894 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11895 this to a positive value register arm_get_longjmp_target as the
11896 longjmp handler.
11897 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11898 (arm_linux_init_abi): Set up longjmp description in tdep.
11899 * armnbsd-nat.c (get_longjmp_target): Delete.
11900 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11901 description in tdep.
11902 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11903 (get_longjmp_target): Delete declaration.
11904 (GET_LONGJMP_TARGET): Delete.
11905 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11906 (GET_LONGJMP_TARGET): Delete.
11907
11908 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11909
11910 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11911 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11912 of ``current_gdbarch''.
11913
11914 2002-02-17 Tom Tromey <tromey@redhat.com>
11915
11916 * cli/cli-cmds.c (compare_strings): New function.
11917 (complete_command): Only print each unique item once.
11918 * completer.h (complete_line): Declare.
11919 * completer.c (complete_line): New function.
11920 (line_completion_function): Use it.
11921
11922 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11923
11924 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11925 * gdbarch.h, gdbarch.c: Re-generate.
11926
11927 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11928
11929 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11930
11931 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11932
11933 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11934 * valops.c (value_arg_coerce): Don't take the address of a reference
11935 to convert an argument to a reference.
11936
11937 2002-02-15 Christopher Faylor <cgf@redhat.com>
11938
11939 * win32-nat.c (get_image_name): New function.
11940 (handle_load_dll): Use get_image_name function.
11941 (get_child_debug_event): Avoid registering debug events until possibly
11942 execed process is started.
11943 (child_create_inferior): Allow invocation via shell so that command
11944 line redirection, etc. works ok.
11945 (_initialize_inftarg): Add new command: "set shell" to control whether
11946 a shell is used to start a process.
11947
11948 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11949
11950 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11951 instead of find_register_by_number.
11952 (cannot_store_register): Likewise.
11953
11954 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11955
11956 * dwarf2read.c: Replace fprintf (stderr, ...) by
11957 fprintf_unfiltered (gdb_stderr, ...).
11958
11959 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11960
11961 * gdbserver/gdbserver.1: Document --attach.
11962
11963 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11964
11965 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11966 descriptions.
11967 * arm-tdep.c (arm_default_arm_le_breakpoint)
11968 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11969 (arm_default_thumb_be_breakpoint): New. Initialize them from
11970 traditional breakpoint defines.
11971 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11972 (arm_gdbarch_init): Initialize new breakpoint variables.
11973 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11974 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11975 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11976 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11977 code out to ...
11978 (arm_netbsd_init_abi_common): ... here; new function.
11979 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11980 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11981 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11982 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11983
11984 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11985
11986 * arm-tdep.h (enum arm_abi): New enum.
11987 (struct gdbarch_tdep): New structure.
11988 (LOWEST_PC): Provide a default.
11989 (arm_gdbarch_register_os_abi): Declare new function.
11990 * arm-tdep.c (arm_abi_names): New array.
11991 (process_note_abi_tag_sections): New function.
11992 (get_elfosabi): New function.
11993 (arm_gdbarch_register_os_abi): New function.
11994 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11995 support for that ABI has been built in, then call the appropriate
11996 configuration routine. Use gdbarch_num_regs() to get the number
11997 of registers.
11998 (arm_dump_tdep): New function.
11999 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12000 place-holder functions.
12001 (_initialize_arm_tdep): Register them.
12002 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12003
12004 * armnbsd-tdep.c: New file.
12005 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12006 * config/arm/nbsd.mt (TDEPFILES): Add it.
12007 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12008
12009 * armnbsd-nat.c: Include regcache.h.
12010 * Makefile.in (armnbsd-nat.o): Update dependency list.
12011
12012 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12013
12014 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12015
12016 * gdbserver/Makefile.in: Fix typos in target rules.
12017
12018 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12019
12020 Fix part of PR gdb/267.
12021 * linespec.c (find_methods): Handle constructors specially for now.
12022
12023 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
12024
12025 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12026 handling.
12027 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12028 standard_coerce_float_to_double().
12029
12030 2002-02-14 Christopher Faylor <cgf@redhat.com>
12031
12032 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12033 GDBINIT_FILENAME.
12034
12035 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
12036
12037 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12038 find_variant_by_name, because it confuses the multiarch
12039 framework. Return NULL if there isn't an architecture with the
12040 user supplied name, instead of forcing a different one without
12041 recording the change with the multiarch machinery.
12042 (find_variant_by_name): Delete.
12043
12044 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12045
12046 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12047 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12048
12049 2002-02-13 Martin M. Hunt <hunt@redhat.com>
12050
12051 * stack.c (print_frame_info_base): When calling
12052 print_frame_info_listing_hook, set current_source_symtab.
12053
12054 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12055
12056 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12057 and remove unused $(INCLUDE_DIR).
12058 Add regcache.c to OBS.
12059 Add generated register protocol files to clean target.
12060 Update dependencies for new objects, obsolete old target code.
12061
12062 * gdbserver/linux-low.c: Remove all platform-specific code to
12063 new files. Remove various dead code. Update to use regcache
12064 functionality.
12065 * gdbserver/remote-utils.c (fromhex): Add return statement
12066 to quiet warning.
12067 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12068 constant.
12069 (input_interrupt): Add integer parameter to match prototype
12070 of a signal handler.
12071 (outreg): Use register_data ().
12072 (prepare_resume_reply): Use gdbserver_expedite_regs.
12073 * gdbserver/server.c (main): Dynamically allocate own_buf because
12074 PBUFSIZ is no longer constant. Use registers_to_string () and
12075 registers_from_string ().
12076 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12077 for error (), fatal (), and warning (). Update definition of
12078 PBUFSIZ to use regcache functionality. Add include guard.
12079 * gdbserver/utils.c (fatal): Add missing ``const''.
12080 (warning): New function.
12081
12082 * regformats/regdat.sh: Include "regcache.h" in generated files.
12083 Provide init_registers () function.
12084 * regformats/regdef.h: Add prototype for set_register_cache ().
12085 Add include guard.
12086
12087 * gdbserver/linux-arm-low.c: New file.
12088 * gdbserver/linux-i386-low.c: New file.
12089 * gdbserver/linux-ia64-low.c: New file.
12090 * gdbserver/linux-m68k-low.c: New file.
12091 * gdbserver/linux-mips-low.c: New file.
12092 * gdbserver/linux-ppc-low.c: New file.
12093 * gdbserver/linux-sh-low.c: New file.
12094
12095 * gdbserver/regcache.c: New file.
12096 * gdbserver/regcache.h: New file.
12097
12098 * gdbserver/low-linux.c: Removed obsolete file.
12099
12100 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12101
12102 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12103 * config/i386/linux.mt: Likewise.
12104 * config/ia64/linux.mt: Likewise.
12105 * config/m68k/linux.mh: Likewise.
12106 * config/powerpc/linux.mh: Likewise.
12107 * config/mips/linux.mt: Likewise.
12108
12109 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12110
12111 * config/i386/i386lynx.mh: Mark gdbserver variables
12112 as (currently) obsolete for this target.
12113 * config/i386/nbsd.mt: Likewise.
12114 * config/i386/nbsdelf.mt: Likewise.
12115 * config/m32r/m32r.mt: Likewise.
12116 * config/m68k/m68klynx.mh: Likewise.
12117 * config/m68k/nbsd.mt: Likewise.
12118 * config/m68k/sun3os4.mh: Likewise.
12119 * config/mips/vr5000.mt: Likewise.
12120 * config/ns32k/nbsd.mt: Likewise.
12121 * config/pa/hppabsd.mh: Likewise.
12122 * config/pa/hppaosf.mh: Likewise.
12123 * config/powerpc/nbsd.mt: Likewise.
12124 * config/rs6000/rs6000lynx.mh: Likewise.
12125 * config/s390/s390.mt: Likewise.
12126 * config/s390/s390x.mt: Likewise.
12127 * config/sparc/sparclynx.mh: Likewise.
12128 * config/sparc/sun4os4.mh: Likewise.
12129 * config/i386/x86-64linux.mt: Likewise.
12130 * config/sparc/linux.mh: Likewise.
12131
12132 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12133
12134 * configure.tgt: Configure gdbserver only for known working
12135 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12136 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12137 SUBDIRS if it is configured. Update comment for ${nativefile}.
12138 * configure: Regenerated.
12139
12140 2002-02-13 Michael Snyder <msnyder@redhat.com>
12141
12142 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12143
12144 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12145 (default_gcore_mach): Just return 0, work around a problem in bfd.
12146 (default_gcore_target): OK to return NULL if exec_bfd is null.
12147 (make_mem_sec): Use a cast, avoid a warning.
12148
12149 * procfs.c (find_memory_regions_callback): Use a cast instead of
12150 calling host_pointer_to_address (which complains if
12151 sizeof (host pointer) != sizeof (target pointer)).
12152 (procfs_make_note_section): Avoid overflow in psargs string.
12153
12154 * procfs.c (procfs_make_note_section): Make the default
12155 implementation return an error.
12156
12157 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12158
12159 * procfs.c (procfs_make_note_section): Provide a default definition
12160 (for alpha-dec-osf4.0f). Fix typos.
12161
12162 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12163
12164 * linux-proc.c: Add include of regcache.h.
12165 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12166
12167 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12168
12169 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12170 * memattr.c (create_mem_region): Disallow useless empty region.
12171 Regions are half-open intervals, so allow [A..B) [B..C) as
12172 non-overlapping.
12173
12174 2002-02-13 Michael Chastain <mec@shout.net>
12175
12176 * defs.h: Kill CONST_PTR.
12177 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12178 * c-lang.c (c_builtin_types): Likewise.
12179 * ch-lang.c (ch_builtin_types): Likewise.
12180 * f-lang.c (f_builtin_types): Likewise.
12181 * language.c (unknown_builtin_types): Likewise.
12182 * m2-lang.c (m2_builtin_types): Likewise.
12183 * p-lang.c (pascal_builtin_types): Likewise.
12184 * scm-lang.c (c_builtin_types): Likewise.
12185
12186 2002-02-13 Keith Seitz <keiths@redhat.com>
12187
12188 * arm-tdep.h (arm_get_next_pc): Add declaration.
12189
12190 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12191
12192 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12193 with other related struct-returning functions.
12194 (arm_extract_struct_value_address): New function.
12195 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12196 initialize float_format, double_format and long_double_format as
12197 appropriate to the endianness of the target.
12198 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12199 (arm_use_struct_convention): Delete declaration.
12200 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12201
12202 2002-02-13 Keith Seitz <keiths@redhat.com>
12203
12204 * defs.h (core_addr_to_string_nz): New function.
12205
12206 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12207
12208 Apply missing bits of 2002-01-15 patch.
12209 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12210 (fill_fpregset): Use i387_fill_fsave.
12211
12212 2002-02-12 Keith Seitz <keiths@redhat.com>
12213
12214 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12215 (core_addr_to_string_nz): New function.
12216
12217 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12218
12219 * arm-linux-nat.c: Really include arm-tdep.h.
12220 * config/arm/tm-linux.h (struct type, struct value): Declare.
12221
12222 2002-02-11 Michael Snyder <msnyder@redhat.com>
12223
12224 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12225 (gcore section): Ifdef for Solaris and Unixware only.
12226 (procfs_do_thread_registers): Unixware needs one lwpstatus
12227 per thread (not one prstatus or pstatus).
12228 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12229 not over all gdb threads. For unixware, call elfcore_write_pstatus
12230 once before iterating over threads.
12231
12232 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12233
12234 * arm-tdep.h: New file.
12235 * arm-tdep.c: Include arm-tdep.h.
12236 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12237 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12238 (arm_print_float_info, arm_register_type, convert_to_extended)
12239 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12240 (arm_extract_return_value, arm_register_name): Make static.
12241 (arm_software_single_step): Similarly. Fix types in declaration.
12242 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12243 (arm_store_return_value, arm_store_struct_return): New functions.
12244 (arm_gdbarch_init): Register the above functions. Also register
12245 call_dummy_start_offset, sizeof_call_dummy_words,
12246 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12247 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12248 max_register_virtual_size, register_size. Set up
12249 prologue_cache.saved_regs here, rather than ...
12250 (_initialize_arm_tdep): ... here.
12251 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12252 declarations.
12253 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12254 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12255 (arm_print_float_info, arm_register_type, convert_to_extended)
12256 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12257 (arm_extract_return_value, arm_register_name): Delete declarations.
12258 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12259 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12260 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12261 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12262 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12263 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12264 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12265 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12266 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12267 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12268 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12269 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12270 interface.
12271 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12272 * remote-rdi.c remote-rdp.c: Likewise.
12273 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12274 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12275 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12276 definition.
12277
12278 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12279 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12280 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12281 from non-ARM_ prefixed definitions.
12282 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12283 all uses of above.
12284 * remote-rdi.c remote-rdp.c: Likewise.
12285 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12286
12287 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12288
12289 * arm-tdep.c (arm_frameless_function_invocation)
12290 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12291 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12292 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12293 (arm_pop_frame, arm_get_next_pc): Make static.
12294 (arm_gdbarch_init): Register above in gdbarch structure.
12295 (arm_read_fp): Renamed from arm_target_read_fp.
12296 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12297 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12298 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12299 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12300 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12301 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12302 (arm_pc_is_thumb_dummy): Delete declarations.
12303 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12304 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12305 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12306 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12307
12308 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12309
12310 * symtab.c (compare_search_syms): New function.
12311 (sort_search_symbols): New function.
12312 (search_symbols): Sort symbols after searching rather than
12313 before.
12314
12315 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12316
12317 * NEWS: Linux -> GNU/Linux.
12318
12319 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12320
12321 * gdbarch.sh: For for level one methods, disallow a definition
12322 when partially multi-arched. Add comments explaining rationale.
12323 * gdbarch.h: Re-generate.
12324
12325 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12326
12327 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12328 multi-arch partial.
12329
12330 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12331
12332 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12333 field. Use diff -u.
12334 * gdbarch.c: Re-generate.
12335
12336 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12337
12338 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12339 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12340 partial.
12341
12342 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12343
12344 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12345 multi-arch partial.
12346 (PUSH_ARGUMENTS): Switch to using predefault.
12347 * gdbarch.c: Regenerate.
12348
12349 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12350
12351 * valops.c (PUSH_ARGUMENTS): Delete definition.
12352 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12353 partial. Default to default_push_arguments.
12354 * gdbarch.h, gdbarch.c: Regenerate.
12355
12356 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12357
12358 * defs.h (throw_exception): Rename return_to_top_level. Update
12359 comments.
12360 * utils.c (error_stream, internal_verror, quit): Ditto.
12361 * top.c (throw_exception, catcher): Ditto.
12362 * sparclet-rom.c (sparclet_load): Ditto.
12363 * remote.c (interrupt_query, minitelnet): Ditto.
12364 * remote-sds.c (interrupt_query): Ditto.
12365 * remote-mips.c (mips_error, mips_kill): Ditto.
12366 * ocd.c (interrupt_query): Ditto.
12367 * monitor.c (monitor_interrupt_query): Ditto.
12368 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12369 * target.h: Update comment.
12370
12371 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12372
12373 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12374
12375 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12376 default_double_format.
12377 * gdbarch.h, gdbarch.c: Re-generate.
12378 * findvar.c (floatformat_unknown): Delete variable definition.
12379 * doublest.h (floatformat_unknown): Delete variable declaration.
12380
12381 2002-02-09 Jim Blandy <jimb@redhat.com>
12382
12383 * stabsread.c (read_type): Add code to parse Sun's syntax for
12384 prototyped function types.
12385
12386 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12387
12388 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12389 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12390
12391 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12392
12393 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12394 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12395 now _initialize_xcoffsolib gets called again and overrides the
12396 commands from solib.c in a native configuration.
12397
12398 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12399
12400 * doublest.c (store_typed_floating): Don't try to return a value.
12401 Fixes PR gdb/290.
12402
12403 2002-02-08 Jim Blandy <jimb@redhat.com>
12404
12405 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12406 is prototyped and has no arguments, print its argument list as
12407 `(void)'.
12408
12409 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12410
12411 * MAINTAINERS (write-after-approval): Add myself.
12412 (paper-trail): I've escaped!
12413
12414 2002-02-08 Christopher Faylor <cgf@redhat.com>
12415
12416 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12417 changes.
12418 (_initialize_check_for_gdb_ini): Ditto.
12419
12420 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12421
12422 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12423 xaprintf -> xasprintf.
12424
12425 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12426
12427 * win32-nat.c: Remove use of printf and sprintf functions.
12428
12429 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12430
12431 * arm-tdep.c (arm_frame_chain_valid): Make static.
12432 (arm_push_arguments): Likewise.
12433 (arm_gdbarch_init): New function.
12434 (_initialize_arm_tdep): Call it.
12435 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12436 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12437 (FRAME_CHAIN_VALID): Delete.
12438 (arm_frame_chain_valid): Delete declaration.
12439 (PUSH_ARGUMENTS): Delete.
12440 (arm_push_arguments): Delete declaration.
12441 (CALL_DUMMY_P): Delete.
12442
12443 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12444 Corinna Vinschen <vinschen@redhat.com>
12445
12446 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12447 on builtin float types.
12448
12449 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12450
12451 * utils.c: Include <curses.h> before "bfd.h".
12452 * tui/tui-hooks.c: Likewise.
12453 * tui/tui.c: Likewise.
12454 * tui/tuiCommand.c: Likewise.
12455 * tui/tuiData.c: Likewise.
12456 * tui/tuiDataWin.c: Likewise.
12457 * tui/tuiDisassem.c: Likewise.
12458 * tui/tuiGeneralWin.c: Likewise.
12459 * tui/tuiIO.c: Likewise.
12460 * tui/tuiLayout.c: Likewise.
12461 * tui/tuiRegs.c: Likewise.
12462 * tui/tuiSource.c: Likewise.
12463 * tui/tuiSourceWin.c: Likewise.
12464 * tui/tuiStack.c: Likewise.
12465 * tui/tuiWin.c: Likewise.
12466
12467 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12468
12469 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12470 to include space for pseudoregs as well. Update loops accordingly.
12471 (sh_fp_frame_init_saved_regs): Ditto.
12472 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12473
12474 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12475
12476 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12477 Add Richard Earnshaw to Arm maintainers.
12478
12479 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12480
12481 * defs.h (warning_begin): Delete declaration.
12482
12483 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12484 Delete macro.
12485
12486 2002-02-07 Michael Snyder <msnyder@redhat.com>
12487
12488 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12489 Logic bug, remove misplaced else.
12490
12491 2002-02-07 Klee Dienes <klee@apple.com>
12492
12493 * fork-inferior.c (fork_inferior): Add '!' to the list of
12494 characters that need to be quoted when building a string for the
12495 shell. Quote '!' specifically with a backslash, since CSH chokes
12496 when trying to evaluate "str!str".
12497
12498 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12499
12500 * rdi-share/host.h: Only provide a typedef for bool if it is not
12501 defined.
12502
12503 2002-02-04 Michael Snyder <msnyder@redhat.com>
12504
12505 * breakpoint.h (enum bptype): Add new overlay event bp type.
12506 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12507
12508 * breakpoint.c (create_internal_breakpoint): New function.
12509 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12510 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12511 (create_thread_event_breakpoint): Ditto.
12512 (create_solib_event_breakpoint): Ditto.
12513 (create_overlay_event_breakpoint): New function.
12514 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12515 (update_breakpoints_after_exec): Delete and re-initialize
12516 overlay event breakpoints after an exec. Add FIXME comment
12517 about longjmp breakpoint.
12518 (print_it_typical): Ignore overlay event breakpoints.
12519 (print_one_breakpoint): Ditto.
12520 (mention): Ditto.
12521 (bpstat_what): Do not stop for overlay event breakpoints.
12522 (delete_breakpoint): Don't delete overlay event breakpoints.
12523 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12524 (breakpoint_re_set): Re-create overlay event breakpoint.
12525
12526 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12527 (overlay_manual_command): Disable overlay breakpoints.
12528 (overlay_off_command): Disable overlay breakpoints.
12529
12530 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12531
12532 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12533 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12534 to here from config/tm-arm.h.
12535 (coff_sym_is_thumb): Make static.
12536 (arm_elf_make_msymbol_special): New function.
12537 (arm_coff_make_msymbol_special): New function.
12538 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12539 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12540 (coff_sym_is_thumb): Delete declaration.
12541 (arm_elf_make_msymbol_special): Declare.
12542 (arm_coff_make_msymbol_special): Declare.
12543 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12544 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12545
12546 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12547
12548 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12549
12550 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12551
12552 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12553 * gdbarch.c gdbarch.h: Regenerate.
12554 * arch-utils.c (default_print_float_info): New function.
12555 * arch-utils.h (default_print_float_info): Prototype it.
12556 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12557 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12558 (PRINT_FLOAT_INFO): Document it.
12559
12560 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12561 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12562 (PRINT_FLOAT_INFO): Define.
12563
12564 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12565
12566 * win32-nat.c (_initialize_check_for_gdb_ini):
12567 Add typecast to sprintf argument to suppress a warning.
12568
12569 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12570
12571 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12572 to allow easier handling of pass state.
12573 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12574 that gives exception name and address.
12575 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12576 and set last_sig value to ourstatus->value.sig. Some missing
12577 exceptions added.
12578 (child_continue): Correctly report continue_status.
12579 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12580 TARGET_SIGNAL_0 (new default value).
12581 (child_resume): consider sig argument passed to decide if
12582 the exception should be passed to debuggee or not.
12583
12584 2002-02-05 Michael Snyder <msnyder@redhat.com>
12585
12586 * regcache.c (fetch_register): Call target_fetch_register
12587 only if we don't call FETCH_PSEUDO_REGISTER.
12588 (store_register): Call target_store_register only if we
12589 don't call STORE_PSEUDO_REGISTER.
12590
12591 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12592
12593 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12594 ELF_MAKE_MSYMBOL_SPECIAL.
12595 * gdbarch.c, gdbarch.h: Regenerate.
12596 * arch-utils.c (default_make_msymbol_special): New function.
12597 * arch-utils.h (default_make_msymbol_special): Export.
12598 * elfread.c (elf_symtab_read): Compile use of
12599 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12600 multiarched.
12601 * coffread.c (coff_symtab_read): Ditto, for
12602 COFF_MAKE_MSYMBOL_SPECIAL.
12603
12604 2002-02-05 Jim Blandy <jimb@redhat.com>
12605
12606 * solib-svr4.c (svr4_truncate_ptr): New function.
12607 (svr4_relocate_section_addresses): Do the address arithmetic with
12608 the appropriate truncation for target addresses, even when
12609 CORE_ADDR is larger than a target address.
12610
12611 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12612
12613 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12614 to (int *).
12615
12616 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12617
12618 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12619 code.
12620
12621 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12622
12623 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12624
12625 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12626
12627 * gdbserver/linux-low.c: Remove unused include files.
12628
12629 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12630
12631 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12632 (read_inferior_memory): Use it.
12633 (write_inferior_memory): Likewise.
12634
12635 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12636
12637 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12638 grubbing through sys_errlist.
12639
12640 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12641
12642 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12643
12644 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12645 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12646
12647 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12648
12649 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12650 (do_sfunc, set_cmd_sfunc): New functions.
12651
12652 * command.h (struct cmd_list_element): Add field func.
12653 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12654 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12655 * cli/cli-decode.h: Ditto.
12656
12657 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12658 (help_all, help_cmd_list): Ditto.
12659 (find_cmd, complete_on_cmdlist): Ditto.
12660 * top.c (execute_command): Ditto.
12661
12662 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12663 function.sfunc.
12664
12665 * infcmd.c (notice_args_read): Fix function signature.
12666
12667 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12668 * cli/cli-decode.c (add_set_cmd): Ditto.
12669 * utils.c (initialize_utils): Ditto.
12670 * maint.c (_initialize_maint_cmds): Ditto.
12671 * infrun.c (_initialize_infrun): Ditto.
12672 * demangle.c (_initialize_demangler): Ditto.
12673 * remote.c (add_packet_config_cmd): Ditto.
12674 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12675 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12676 * proc-api.c (_initialize_proc_api): Ditto.
12677 * kod.c (_initialize_kod): Ditto.
12678 * valprint.c (_initialize_valprint): Ditto.
12679 * top.c (init_main): Ditto.
12680 * infcmd.c (_initialize_infcmd): Ditto.
12681 * corefile.c (_initialize_core): Ditto.
12682 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12683 * arch-utils.c (initialize_current_architecture): Ditto.
12684 (_initialize_gdbarch_utils): Ditto.
12685 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12686
12687 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12688 * wince.c (_initialize_inftarg): Ditto.
12689 * symfile.c (_initialize_symfile): Ditto.
12690 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12691 * language.c (_initialize_language): Ditto.
12692 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12693
12694 2002-02-04 Michael Snyder <msnyder@redhat.com>
12695
12696 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12697
12698 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12699
12700 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12701 Add rules for building the register data files.
12702
12703 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12704
12705 * regformats/regdat.sh: Add braces to the definition of
12706 expedite_regs_${arch}.
12707
12708 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12709
12710 * regformats/regdef.h (struct reg): Add comment describing the
12711 requirements for offset and size fields.
12712
12713 2002-02-04 Andreas Schwab <schwab@suse.de>
12714
12715 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12716 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12717
12718 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12719
12720 * gdbarch.sh (copyright): Update years in generated header.
12721 (SMASH_TEXT_ADDRESS): Add rule.
12722 * gdbarch.h, gdbarch.c: Re-generate.
12723 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12724 * dbxread.c: Likewise.
12725 * dwarfread.c: Likewise.
12726 * elfread.c: Likewise.
12727 * somread.c: Likewise.
12728
12729 * arm-tdep.c (arm_smash_text_address): New function.
12730 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12731
12732 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12733
12734 Add support for hardware watchpoints on win32 native.
12735 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12736 CONTEXT_DEBUG_REGISTERS.
12737 (dr variable): New variable. Static array containing a local copy
12738 of debug registers.
12739 (debug_registers_changed): New variable. Reflects when debug registers
12740 are changed and need to be written to inferior.
12741 (debug_registers_used): New variable. Reflects when any debug register
12742 was set, used when new threads are created.
12743 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12744 i386-nat code.
12745 (thread_rec): Set dr array if id is the thread of current_event .
12746 (child_continue, child_resume): Change the debug registers for all
12747 threads if debug_registers_changed.
12748 (child_add_thread): Change the debug registers if debug_registers_used.
12749 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12750 Link nm.h to new nm-cygwin.h file.
12751 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12752 of hardware registers.
12753
12754 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12755
12756 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12757 Restore behavour broken by 2002-01-20 Andrew Cagney
12758 <ac131313@redhat.com> IEEE_FLOAT removal.
12759
12760 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12761
12762 * c-valprint.c (c_val_print): Pass a proper valaddr to
12763 cp_print_class_method.
12764 * valops.c (search_struct_method): If there is only one method
12765 and args is NULL, return that method.
12766
12767 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12768
12769 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12770 accessing tag_name directly.
12771
12772 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12773
12774 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12775 of accessing tag_name directly.
12776
12777 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12778
12779 PR gdb/280
12780 * gdbtypes.c (replace_type): New function.
12781 * gdbtypes.h (replace_type): Add prototype.
12782 * stabsread.c (read_type): Use replace_type.
12783
12784 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12785
12786 * Makefile.in (memattr.o): Add missing dependencies rule.
12787
12788 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12789
12790 * breakpoint.c (break_at_finish_command): Really export.
12791 (break_at_finish_at_depth_command): Ditto.
12792 (tbreak_at_finish_command): Ditto.
12793 * hppa-tdep.c: Include completer.h.
12794 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12795 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12796
12797 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12798
12799 * utils.c (do_write): New function.
12800 (error_stream): Rewrite combining the code from error_begin and
12801 verror.
12802 (verror): Rewrite using error_stream.
12803 (error_begin): Delete function.
12804
12805 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12806
12807 * utils.c (error_begin): Make static.
12808 * defs.h (error_begin): Delete declaration.
12809
12810 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12811 (decode_line_1): Use cplusplus_error instead of error_begin,
12812 cplusplus_hint and return_to_top_level.
12813 * coffread.c (coff_symfile_read): Use error instead of error_begin
12814 and return_to_top_level.
12815 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12816
12817 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12818
12819 * language.h (type_error, range_error): Make string parameter
12820 constant.
12821 * language.c (warning_pre_print): Delete extern declaration.
12822 * dwarfread.c (warning_pre_print): Ditto.
12823 * language.c (type_error, range_error): Rewrite to use verror and
12824 vwarning instead of warning_begin.
12825
12826 2002-02-01 Michael Snyder <msnyder@redhat.com>
12827
12828 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12829 (set_ignore_count): Move misplaced comment back where it belongs.
12830
12831 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12832
12833 * command.h (NO_FUNCTION): Delete macro.
12834 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12835 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12836 * tracepoint.c (_initialize_tracepoint): Ditto.
12837 * cli/cli-decode.c (add_set_cmd): Ditto.
12838 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12839
12840 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12841
12842 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12843 Update ``this'' pointer when calling virtual functions.
12844
12845 2002-02-01 Michael Snyder <msnyder@redhat.com>
12846
12847 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12848 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12849
12850 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12851
12852 * regformats/reg-arm.dat: New file.
12853 * regformats/reg-i386.dat: New file.
12854 * regformats/reg-ia64.dat: New file.
12855 * regformats/reg-m68k.dat: New file.
12856 * regformats/reg-mips.dat: New file.
12857 * regformats/reg-ppc.dat: New file.
12858 * regformats/reg-sh.dat: New file.
12859 * regformats/regdef.h: New file.
12860 * regformats/regdat.sh: New file.
12861
12862 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12863
12864 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12865 (arm_frame_args_address, arm_frame_locals_address): New functions.
12866 (arm_frame_num_args): New function.
12867 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12868 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12869 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12870
12871 2002-01-31 Michael Snyder <msnyder@redhat.com>
12872
12873 * breakpoint.c (break_at_finish_command): Export.
12874 (break_at_finish_at_depth_command): Export.
12875 (tbreak_at_finish_command): Export.
12876 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12877 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12878 "txbreak" commands, which are HPPA specific.
12879
12880 * printcmd.c (disassemble_command): Remove an ancient
12881 artifact of an old merge.
12882
12883 * symfile.h (enum overlay_debugging_state):
12884 Define enum constant values for overlay mode.
12885 * symfile.c (overlay_debugging): Use enums instead of literals.
12886 (overlay_is_mapped, overlay_auto_command,
12887 overlay_manual_command): Ditto.
12888
12889 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12890 breakpoint_here_p, breakpoint_inserted_here_p,
12891 breakpoint_thread_match, bpstat_stop_status,
12892 describe_other_breakpoints, check_duplicates, clear_command):
12893 Coding standard fixes.
12894
12895 * target.c (target_xfer_memory): Add spaces, coding standard.
12896 (do_xfer_memory): Add missing line to trust-readonly
12897 code: check bfd SEC_READONLY flag for section.
12898
12899 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12900
12901 * PROBLEMS: Fix typo, 5.1->5.1.1.
12902
12903 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12904
12905 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12906 data symbols, since we search based on textlow and texthigh.
12907 (find_pc_sect_symtab): Likewise.
12908
12909 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12910
12911 * defs.h (vwarning): Declare.
12912 * utils.c (vwarning): New function.
12913 (warning): Call vwarning.
12914 (warning_begin): Delete function.
12915
12916 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12917 the warning message.
12918 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12919 warning_begin.
12920
12921 2002-01-30 Michael Snyder <msnyder@redhat.com>
12922
12923 * NEWS: Mention "set trust-readonly-sections" command.
12924 Mention generate-core-file command.
12925
12926 2002-01-15 Michael Snyder <msnyder@redhat.com>
12927
12928 * target.c: New command, "set trust-readonly-sections on".
12929 (do_xfer_memory): Honor the suggestion to trust readonly sections
12930 by reading them from the object file instead of from the target.
12931 (initialize_targets): Register command "set trust-readonly-sections".
12932
12933 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12934
12935 * parse.c (target_map_name_to_register): Simplify, search regs and
12936 pseudo-regs using a single loop.
12937
12938 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12939
12940 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12941
12942 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12943
12944 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12945 * config/i386/i386v42mp.mh: Add i387-nat.o .
12946 * i386v4-nat.c: Include i387-nat.h.
12947 (supply_fpregset): Use i387_supply_fsave.
12948 (fill_fpregset): Use i387_fill_fsave.
12949
12950 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12951
12952 * arm-tdep.c (arm_call_dummy_words): Define.
12953 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12954 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12955 (CALL_DUMMY_WORDS): Define.
12956 (arm_call_dummy_words): Declare.
12957 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12958 (arm_linux_call_dummy_words): Declare.
12959
12960 2002-01-30 Andreas Schwab <schwab@suse.de>
12961
12962 * m68klinux-nat.c: Fix last change to use regcache_collect
12963 instead of referencing registers[] directly.
12964
12965 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12966
12967 * parse.c (target_map_name_to_register): Delete code wrapped in
12968 #ifdef REGISTER_NAME_ALIAS_HOOK.
12969
12970 2002-01-28 Michael Snyder <msnyder@redhat.com>
12971
12972 * regcache.c (legacy_read_register_gen): Need to be able to
12973 read pseudo-register as well as real register.
12974 (legacy_write_register_gen): Ditto.
12975
12976 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12977
12978 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12979 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12980 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12981 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12982 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12983 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12984 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12985 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12986 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12987 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12988 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12989 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12990 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12991 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12992 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12993 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12994 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12995 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12996 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12997 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12998
12999 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13000
13001 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13002 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13003 (initialize_current_architecture): Update target_byte_order using
13004 information from BFD.
13005 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
13006 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13007
13008 2002-01-28 Andrew Cagney <ac131313@redhat.com>
13009
13010 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13011 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13012
13013 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13014 #ifdef INVALID_FLOAT.
13015 * infcmd.c (do_registers_info): Ditto.
13016 * values.c (unpack_double): Ditto. Add comment.
13017
13018 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13019 already commented out.
13020
13021 2002-01-26 Andreas Schwab <schwab@suse.de>
13022
13023 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13024 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13025 registers and add support for PTRACE_GETREGS.
13026
13027 2002-01-24 Andrew Cagney <ac131313@redhat.com>
13028
13029 GDB 5.1.1 released from 5.1 branch.
13030 * NEWS: Add 5.1.1 news.
13031 * README: Sync with 5.1 branch.
13032
13033 2002-01-23 Fred Fish <fnf@redhat.com>
13034
13035 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13036 stabstring on initial malloc. Reallocing will copy it for us,
13037 if necessary.
13038
13039 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13040
13041 * Makefile.in (hpread_h): Delete.
13042 (HFILES_NO_SRCDIR): Remove hpread.h.
13043 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13044 (hpread.o): Update dependencies.
13045 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13046
13047 * hp-psymtab-read.c: Remove file.
13048 * hp-symtab-read.c: Remove file.
13049 * hpread.h: Remove file.
13050
13051 * hpread.c: Merge all contents of hp-psymtab-read.c,
13052 hp-symtab-read.c and hpread.h into this file, as it was prior to
13053 January 1999.
13054
13055 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
13056 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
13057 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13058 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13059
13060 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
13061
13062 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13063 fill_gregset): Call gdbarch_tdep() just once, assign result to
13064 variable and use that, instead of calling the function several
13065 times.
13066
13067 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
13068
13069 * configure.host: Accept sparcv9 as alias for sparc64.
13070 * configure.tgt: Likewise.
13071
13072 2002-01-22 Kevin Buettner <kevinb@redhat.com>
13073
13074 * solib-aix5.c (build_so_list_from_mapfile)
13075 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13076 arguments is not reversed.
13077 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13078 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
13079
13080 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
13081
13082 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13083 modified version of obsolete sh_fetch_pseudo_register.
13084 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13085 (sh4_register_read): New function.
13086 (sh_pseudo_register_write): New function. Renamed and modified
13087 version of obsolete sh_store_pseudo_register.
13088 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13089 (sh4_register_write): New function.
13090 (sh_gdbarch_init): Remove setting of gdbarch function
13091 fetch_pseudo_register and store_pseudo_register. Remove setting of
13092 register_convert_to_raw, register_convert_to_virtual,
13093 register_convertible.
13094 (sh_sh4_register_convertible): Delete. No longer needed. All is
13095 taken care by architecture specific functions
13096 register_read/register_write.
13097 (sh_sh4_register_convert_to_virtual): Make static.
13098 (sh_sh4_register_convert_to_raw): Ditto.
13099
13100 2002-01-22 Andrew Cagney <ac131313@redhat.com>
13101
13102 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13103 (floatformat_is_nan, floatformat_mantissa): Ditto.
13104
13105 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13106 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13107 builtin_type_ieee_double_little,
13108 builtin_type_ieee_double_littlebyte_bigword,
13109 builtin_type_m68881_ext, builtin_type_i960_ext,
13110 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13111 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13112 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13113 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13114
13115 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13116
13117 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13118 parameter. Set frameless flag if it exists and depended of
13119 whether the scanned function is frameless or not.
13120 (xstormy16_skip_prologue): If function is frameless, return
13121 result of xstormy16_scan_prologue().
13122 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13123 call.
13124
13125 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13126
13127 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13128 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13129 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13130 sh_sh4_register_byte, sh_sh4_register_raw_size,
13131 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13132 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13133 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13134 sh_store_pseudo_register, sh_do_pseudo_register): Call
13135 gdbarch_tdep() just once, assign result to variable and use that,
13136 instead of calling the function several times.
13137
13138 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13139
13140 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13141 macros instead of LAST_FPU_CTRL_REGNUM.
13142 (store_register): Likewise.
13143
13144 2002-01-21 Jim Blandy <jimb@redhat.com>
13145
13146 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13147 is up-to-date before running the program, not just when a program
13148 exits.
13149
13150 2002-01-21 Fred Fish <fnf@redhat.com>
13151
13152 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13153 when we have found all instructions we are looking for.
13154
13155 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13156
13157 * arm-tdep.c (arm_register_name): New function.
13158 (arm_registers_names): Make static.
13159 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13160 (arm_register_name): Declare.
13161 (REGISTER_NAME): Use it.
13162
13163 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13164 Kevin Buettner <kevinb@redhat.com>
13165
13166 Convert arm targets to new FRAME interface.
13167 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13168 (arm_frame_find_save_regs): Delete.
13169 (arm_frame_init_saved_regs): New.
13170 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13171 Allocate extra_info as required. Convert all uses of fsr.regs
13172 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13173 to use extra_info.
13174 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13175 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13176 (check_prologue_cache, save_prologue_cache): Likewise.
13177 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13178 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13179 (FRAME_FIND_SAVED_REGS): Delete.
13180 (arm_frame_find_saved_regs): Delete prototype.
13181 (arm_frame_init_saved_regs): New prototype.
13182 (FRAME_INIT_SAVED_REGS): Define.
13183
13184 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13185
13186 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13187
13188 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13189
13190 From Jeff Law <law@redhat.com>:
13191 * infttrace.c: Include <sys/pstat.h>.
13192 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13193 exec file if the ttrace equivalent fails.
13194
13195 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13196
13197 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13198 (closeLogFile): Ditto.
13199
13200 2002-01-20 Michael Chastain <mec@shout.net>
13201
13202 * top.c (print_gdb_version): Bump copyright year to 2002.
13203
13204 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13205
13206 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13207 Zannoni and Eli Zaretskii.
13208
13209 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13210
13211 * buildsym.c: Update copyright years.
13212 * c-typeprint.c: Likewise.
13213 * dwarf2read.c: Likewise.
13214 * f-typeprint.c: Likewise.
13215 * gdbtypes.c: Likewise.
13216 * gdbtypes.h: Likewise.
13217 * hp-symtab-read.c: Likewise.
13218 * hpread.c: Likewise.
13219 * mdebugread.c: Likewise.
13220 * p-typeprint.c: Likewise.
13221
13222 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13223
13224 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13225 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13226 byte-order selectable.
13227 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13228 * arch-utils.c: Ditto.
13229 (set_endian): Ditto.
13230 (set_endian_from_file): Ditto.
13231 * gdbserver/low-sim.c (create_inferior): Ditto.
13232 * gdbarch.sh: Ditto.
13233 * gdbarch.h: Re-generate.
13234 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13235 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13236 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13237 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13238 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13239 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13240 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13241 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13242 macro definition.
13243 * config/mips/tm-wince.h: Remove #undef of macro
13244 TARGET_BYTE_ORDER_SELECTABLE.
13245 * config/sh/tm-wince.h: Ditto.
13246
13247 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13248
13249 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13250 member function fields. Add accessor macro
13251 TYPE_FN_FIELD_ARTIFICIAL.
13252 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13253 * c-typeprint.c (c_type_print_base): Skip artificial member
13254 functions.
13255
13256 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13257
13258 * f-typeprint.c: Delete unused function f_type_print_args.
13259 * p-typeprint.c: Delete unused function pascal_type_print_args.
13260
13261 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13262
13263 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13264 comment. Add ``artificial'' to ``union field_location''.
13265
13266 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13267
13268 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13269 * mdebugread.c (parse_symbol): Likewise.
13270 * stabsread.c (define_symbol): Likewise.
13271 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13272 initializing TYPE_FIELD_BITPOS to n (obsolete).
13273 (hpread_doc_function_type): Likewise.
13274 * hpread.c (hpread_function_type): Likewise.
13275
13276 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13277
13278 * configure.in (host_makefile_frag): Only require a host makefile
13279 fragment when a native build.
13280 * configure: Re-generate.
13281
13282 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13283
13284 * doublest.h (floatformat_from_type): Declare.
13285 * doublest.c (floatformat_from_type): New function.
13286 (convert_typed_floating): Use.
13287
13288 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13289 call to function floatformat_from_type.
13290
13291 * gdbarch.sh (IEEE_FLOAT): Delete.
13292 * gdbarch.h, gdbarch.c: Re-generate.
13293 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13294 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13295 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13296 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13297 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13298 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13299 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13300 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13301 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13302 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13303 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13304 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13305
13306 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13307 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13308 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13309 * sh-tdep.c (sh_gdbarch_init): Ditto.
13310 * mips-tdep.c (mips_gdbarch_init): Ditto.
13311 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13312 * cris-tdep.c (cris_gdbarch_init): Ditto.
13313
13314 2002-01-20 Jiri Smid <smid@suse.cz>
13315
13316 * configure.host, configure.tgt: Support x86-64.
13317 * NEWS: Note new target x86-64.
13318
13319 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13320 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13321 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13322 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13323 x86-64-linux-nat.o): Fix dependencies.
13324
13325 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13326
13327 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13328 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13329 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13330 * config/sparc/xm-sun4os4.h: Delete file.
13331 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13332
13333 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13334
13335 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13336 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13337 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13338 * config/i386/i386lynx.mh (XM_FILE): Delete.
13339 * config/rs6000/xm-rs6000ly.h: Delete file.
13340 * config/sparc/xm-sparclynx.h: Delete file.
13341 * config/m68k/xm-m68klynx.h: Delete file.
13342 * config/i386/xm-i386lynx.h: Delete file.
13343 * config/xm-lynx.h: Delete file.
13344 * config/djgpp/fnchange.lst: Update.
13345
13346 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13347
13348 * alpha-tdep.c (alpha_register_byte): New function.
13349 (alpha_register_raw_size): Ditto.
13350 (alpha_register_virtual_size): Ditto.
13351 (alpha_skip_prologue_internal): Renamed from
13352 alpha_skip_prologue.
13353 (alpha_skip_prologue): New version that calls
13354 alpha_skip_prologue_internal.
13355 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13356 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13357 second argument from alpha_skip_prologue.
13358 (REGISTER_BYTE): Use alpha_register_byte.
13359 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13360 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13361 (FRAMELESS_FUNCTION_INVOCATION): Use
13362 generic_frameless_function_invocation_not.
13363 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13364 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13365
13366 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13367
13368 * config/mips/xm-news-mips.h: Delete file.
13369 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13370
13371 * config/m88k/xm-m88k.h: Delete file.
13372 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13373 * config/m88k/xm-delta88v4.h: Ditto.
13374 * config/m88k/xm-delta88.h: Ditto.
13375
13376 * config/alpha/xm-fbsd.h: Delete file.
13377 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13378
13379 * config/sparc/xm-sparc.h: Delete file.
13380 * Makefile.in (xm-sun4os4.h): Delete dependency.
13381 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13382 * config/sparc/xm-sun4os4.h: Ditto.
13383 * config/sparc/xm-linux.h: Ditto.
13384
13385 * config/i386/xm-windows.h: Delete file.
13386
13387 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13388
13389 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13390 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13391
13392 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13393
13394 * alpha-tdep.c (alpha_call_dummy_words): New.
13395 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13396 (CALL_DUMMY_P): Define.
13397 (CALL_DUMMY_WORDS): Define.
13398 (SIZEOF_CALL_DUMMY_WORDS): Define.
13399
13400 2002-01-19 Per Bothner <per@bothner.com>
13401
13402 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13403 isn't NULL, which can happen with some gcj-3.x-produced code.
13404
13405 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13406
13407 * alpha-tdep.c (alpha_register_virtual_type): New function.
13408 (alpha_init_frame_pc_first): Ditto.
13409 (alpha_fix_call_dummy): Ditto.
13410 (alpha_store_struct_return): Ditto.
13411 (alpha_extract_struct_value_address): Ditto.
13412 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13413 alpha_register_virtual_type.
13414 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13415 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13416 alpha_extract_struct_value_address.
13417 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13418 (INIT_FRAME_PC): Use init_frame_pc_noop.
13419 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13420
13421 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13422
13423 * i386gnu-nat.c: Include "i386-tdep.h".
13424 (fetch_fpregs): Simplify code dealing with uninitialized floating
13425 point states such that it doesn't require FP7_REGNUM.
13426
13427 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13428
13429 * alpha-tdep.c (frame_extra_info): New.
13430 (alpha_find_saved_regs): Make static. Use
13431 frame->extra_info.
13432 (alpha_frame_init_saved_regs): New function.
13433 (alpha_frame_saved_pc): Use frame->extra_info.
13434 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13435 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13436 (init_extra_frame_info): Rename to...
13437 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13438 (alpha_print_extra_frame_info): New function.
13439 (alpha_frame_locals_address): Ditto.
13440 (alpha_frame_args_address): Ditto.
13441 (alpha_pop_frame): Use frame->extra_info.
13442 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13443 alpha_frame_args_address.
13444 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13445 (alpha_find_saved_regs): Remove prototype.
13446 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13447 (EXTRA_FRAME_INFO): Remove.
13448 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13449 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13450
13451 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13452
13453 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13454 (alpha_cannot_fetch_register): Ditto.
13455 (alpha_cannot_store_register): Ditto.
13456 (alpha_register_convertible): Ditto.
13457 (alpha_use_struct_convention): Ditto.
13458 * config/alpha/tm-alpha.h: Update copyright years.
13459 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13460 (INNER_THAN): Use core_addr_lessthan.
13461 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13462 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13463 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13464 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13465 (FRAME_CHAIN): Remove unnecessary cast.
13466
13467 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13468
13469 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13470 obsolete.
13471
13472 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13473
13474 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13475 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13476 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13477 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13478 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13479 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13480 * x86-64-linux-nat.c: Ditto.
13481
13482 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13483
13484 * alpha-tdep.c (alpha_register_name): New function.
13485 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13486 (REGISTER_NAME): Define.
13487
13488 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13489
13490 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13491
13492 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13493
13494 * alpha-tdep.c: Update copyright years.
13495 (alpha_next_pc): New function.
13496 (alpha_software_single_step): Ditto.
13497 * config/alpha/tm-alpha.h: Add prototype for
13498 alpha_software_single_step.
13499
13500 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13501
13502 * alphabsd-nat.c: Update copyright years.
13503 (fill_gregset): Use regcache_collect.
13504 (fill_fpregset): Likewise.
13505 (fetch_inferior_registers): Only fetch integer registers
13506 if requested to do so.
13507 (store_inferior_registers): Only store integer registers
13508 if requested to do so.
13509
13510 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13511
13512 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13513 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13514 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13515 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13516 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13517 * config/arm/linux.mh (XDEPFILES): Delete.
13518 * config/arm/nbsd.mh (XDEPFILES): Delete.
13519 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13520 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13521 * config/i386/i386m3.mh (XDEPFILES): Delete.
13522 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13523 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13524 * config/i386/fbsd.mh (XDEPFILES): Delete.
13525 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13526 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13527 * config/i386/i386v4.mh (XDEPFILES): Delete.
13528 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13529 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13530 * config/i386/i386aix.mh (XDEPFILES): Delete.
13531 * config/i386/go32.mh (XDEPFILES): Delete.
13532 * config/i386/cygwin.mh (XDEPFILES): Delete.
13533 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13534 * config/i386/i386mach.mh (XDEPFILES): Delete.
13535 * config/i386/i386v32.mh (XDEPFILES): Delete.
13536 * config/i386/linux.mh (XDEPFILES): Delete.
13537 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13538 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13539 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13540 * config/i386/i386sco.mh (XDEPFILES): Delete.
13541 * config/i386/i386v.mh (XDEPFILES): Delete.
13542 * config/i386/nbsd.mh (XDEPFILES): Delete.
13543 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13544 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13545 * config/i386/symmetry.mh (XDEPFILES): Delete.
13546 * config/i386/obsd.mh (XDEPFILES): Delete.
13547 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13548 * config/ia64/linux.mh (XDEPFILES): Delete.
13549 * config/ia64/aix.mh (XDEPFILES): Delete.
13550 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13551 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13552 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13553 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13554 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13555 * config/m68k/linux.mh (XDEPFILES): Delete.
13556 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13557 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13558 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13559 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13560 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13561 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13562 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13563 * config/m88k/delta88.mh (XDEPFILES): Delete.
13564 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13565 * config/m88k/m88k.mh (XDEPFILES): Delete.
13566 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13567 * config/mips/linux.mh (XDEPFILES): Delete.
13568 * config/mips/irix6.mh (XDEPFILES): Delete.
13569 * config/mips/irix5.mh (XDEPFILES): Delete.
13570 * config/mips/irix4.mh (XDEPFILES): Delete.
13571 * config/mips/irix3.mh (XDEPFILES): Delete.
13572 * config/mips/decstation.mh (XDEPFILES): Delete.
13573 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13574 (NATDEPFILES): Move core-aout.o to here.
13575 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13576 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13577 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13578 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13579 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13580 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13581 * config/pa/hpux11.mh (XDEPFILES): Delete.
13582 * config/powerpc/aix.mh (XDEPFILES): Delete.
13583 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13584 * config/powerpc/linux.mh (XDEPFILES): Delete.
13585 * config/romp/rtbsd.mh: Rename XDEPFILES.
13586 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13587 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13588 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13589 * config/s390/s390.mh (XDEPFILES): Delete.
13590 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13591 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13592 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13593 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13594 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13595 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13596 * config/sparc/linux.mh (XDEPFILES): Delete.
13597 * config/vax/vaxult.mh (XDEPFILES): Delete.
13598 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13599 * Makefile.in (DEPFILES): Remove XDEPFILES.
13600
13601 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13602
13603 * utils.c (internal_verror): Fix comments, default is yes not no.
13604 Update queries to match. Default to quit and dump core.
13605
13606 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13607
13608 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13609 copyright.
13610 * defs.h, event-top.c, gdbcmd.h: Ditto.
13611 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13612 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13613 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13614 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13615 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13616 * mi/mi-main.c:Ditto.
13617
13618 * stack.c, symfile.c: Update copyright.
13619
13620 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13621
13622 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13623 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13624 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13625 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13626
13627 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13628
13629 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13630 * gdbserver/low-lynx.c (myattach): Likewise.
13631 * gdbserver/low-nbsd.c (myattach): Likewise.
13632 * gdbserver/low-sim.c (myattach): Likewise.
13633 * gdbserver/low-sparc.c (myattach): Likewise.
13634 * gdbserver/low-sun3.c (myattach): Likewise.
13635
13636 * gdbserver/low-linux.c (myattach): New function.
13637
13638 * gdbserver/server.c (attach_inferior): New function.
13639 (main): Handle "--attach".
13640
13641 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13642
13643 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13644 maintainer.
13645
13646 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13647
13648 * c-typeprint.c (is_type_conversion_operator): Add additional
13649 check for non-conversion operators.
13650
13651 2002-01-15 Michael Snyder <msnyder@redhat.com>
13652
13653 * linux-proc.c: Add "info proc" command, a la procfs.c.
13654 (read_mapping): New function, abstract and re-use code.
13655 (linux_find_memory_regions): Use new func read_mapping.
13656 (linux_info_proc_cmd): New function, implement "info proc".
13657 (_initialize_linux_proc): Add new command "info proc".
13658
13659 2002-01-15 Michael Snyder <msnyder@redhat.com>
13660
13661 * symfile.c (generic_load): Use bfd_map_over_sections method
13662 instead of manipulating bfd structure members directly.
13663 (add_section_size_callback): New function, bfd sections callback
13664 used by generic_load.
13665 (load_sections_callback): New function, bfd sections callback
13666 used by generic_load.
13667
13668 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13669
13670 [Based on work by Jim Blandy]
13671 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13672 (builtin_type_vec128): Export.
13673 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13674 types.
13675 (builtin_type_vec128): New builtin type for 128 bit vector
13676 registers.
13677 (build_gdbtypes): Initialize builtin_type_v16qi and
13678 builtin_type_v8hi. Create the vec128 register builtin type
13679 structure.
13680 (build_builtin_type_vec128): New function.
13681 (_initialize_gdbtypes): Register builtin_type_v16qi and
13682 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13683 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13684 AltiVec register to new builtin type.
13685
13686 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13687
13688 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13689 to make_cv_type.
13690
13691 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13692
13693 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13694 CLEAN_UP_REGISTER_VALUE.
13695 * regcache.c (supply_register): Update only call.
13696
13697 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13698
13699 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13700 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13701 a29k-*-vxworks* targets as obsolete.
13702
13703 2002-01-14 Michael Snyder <msnyder@redhat.com>
13704
13705 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13706 until we can resolve portability issues.
13707 * gregset.h: Remove references to fpxregs.
13708 * gcore.c (gcore_command): Initialize note_sec to NULL.
13709
13710 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13711
13712 * signals.c (target_signal_to_name): Rewrite. Only use
13713 signals[].name when in bounds and non-NULL.
13714
13715 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13716
13717 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13718 * signals.c (target_signal_to_name): Verify that SIG is within the
13719 bounds of the signals array.
13720
13721 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13722
13723 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13724
13725 2002-01-13 Keith Seitz <keiths@redhat.com>
13726
13727 * stack.c (print_frame_info_base): Print the frame's pc
13728 only if when print_frame_info_listing_hook is not defined.
13729
13730 2002-01-13 Keith Seitz <keiths@redhat.com>
13731
13732 * varobj.c (varobj_set_value): Make sure that there were no
13733 errors evaluating the object before attempting to set its
13734 value.
13735 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13736 so this offset adjustment is no longer necessary.
13737 (create_child): Don't set the error flag if the child is
13738 a CPLUS_FAKE_CHILD.
13739 (value_of_child): If value_fetch_lazy fails, return NULL
13740 so that callers will be notified that an error occurred.
13741 (c_value_of_variable): Delay check of variable's validity
13742 until later. We actually want all structs and unions to have
13743 the value "{...}".
13744 Do not return "???" for variables which could not be evaluated.
13745 This error condition must be returned to the caller so that it
13746 can get the error condition from gdb.
13747 (cplus_name_of_child): Adjust index for vptr before figuring
13748 out the name of the child.
13749 (cplus_value_of_child): If a child's (real) parent is not valid,
13750 don't even bother trying to give a value for it. Just return
13751 an error. Change all instances in this function.
13752 (cplus_type_of_child): If our parent is one of the "fake"
13753 parents, we need to get at the type of the real parent, and
13754 derive the child's true type using this information.
13755
13756 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13757
13758 From 2002-01-09 John Marshall <johnm@falch.net>:
13759 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13760 sources.redhat.com, and tweak some related URLs which had
13761 suffered from linkrot.
13762
13763 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13764
13765 From Jeff law:
13766 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13767 structures passed in registers.
13768
13769 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13770
13771 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13772 white space which prevented compilation. Reported by DSK
13773 <dsk@student.unsw.edu.au>.
13774
13775 2002-01-11 Michael Snyder <msnyder@redhat.com>
13776
13777 * symfile.c (build_section_addr_info_from_section_tab):
13778 Use bfd access method instead of manipulating bfd directly.
13779 (syms_from_objfile): Ditto.
13780 (simple_overlay_update_1): Ditto.
13781 (simple_overlay_update): Ditto.
13782 (generic_load): Ditto.
13783 (overlay_unmapped_address): FIXME comment, bfd access methods.
13784 (sections_overlap): FIXME comment, bfd access methods.
13785 (pc_in_mapped_range): FIXME comment, bfd access methods.
13786 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13787 (section_is_mapped): FIXME comment, bfd access methods.
13788 (section_is_overlay): FIXME comment, bfd access methods.
13789
13790 * symfile.c (generic_load): Whitespace and long line cleanups.
13791 Remove duplicate variable, change several local variables to
13792 more appropriate data types.
13793 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13794
13795 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13796
13797 From Peter Schauer:
13798 * language.c (longest_local_hex_string_custom): Use phex_nz to
13799 convert NUM to a hex string.
13800
13801 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13802
13803 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13804 the function.
13805 Update Copyright year.
13806
13807 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13808
13809 * language.c (longest_raw_hex_string): Delete unused function.
13810
13811 2002-01-11 Petr Sorfa <petrs@caldera.com>
13812
13813 * MAINTAINERS (write-after-approval): Add myself.
13814 * dwarf2read.c (read_tag_string_type): Handling of
13815 DW_AT_byte_size.
13816 (read_tag_string_type): FORTRAN fix to prevent propagation of
13817 first string size.
13818 (set_cu_language): Handling of DW_LANG_Fortran95
13819
13820 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13821
13822 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13823 GETPID(inferior_ptid).
13824 (store_inferior_registers): Likewise.
13825
13826 2002-01-10 Jason Merrill <jason@redhat.com>
13827
13828 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13829 Fix DW_OP_minus.
13830
13831 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13832
13833 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13834 and bfd/elf32-sh-nbsd.c.
13835
13836 2002-01-10 Michael Snyder <msnyder@redhat.com>
13837
13838 * NEWS: Mention --pid and corefile/proc-id behavior change.
13839
13840 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13841 * gcore.c: Include cli/cli-decode.h instead of command.h.
13842
13843 * main.c (captured_main): Add new command line option "--pid".
13844 If the second command line argument (following the symbol-file)
13845 begins with a digit, try to attach to it before trying to open
13846 it as a corefile.
13847 (print_gdb_help): Document the "--pid" argument.
13848
13849 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13850
13851 * completer.c (command_completer): New function.
13852
13853 * completer.h <command_completer>: Add prototype.
13854
13855 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13856 completer for the "help" command.
13857
13858 2002-01-09 Jason Merrill <jason@redhat.com>
13859
13860 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13861
13862 2002-01-09 Michael Snyder <msnyder@redhat.com>
13863
13864 * i386-linux-nat.c (fill_fpxregset): Make global.
13865 (store_fpxregset): Ditto.
13866
13867 * gregset.h (gdb_fpxregset_t): Define.
13868 (supply_fpxregset): Prototype.
13869 (fill_fpxregset): Prototype.
13870
13871 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13872
13873 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13874
13875 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13876 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13877 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13878
13879 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13880
13881 * MAINTAINERS: Update target maintainer rules so that any
13882 Maintainer can approve a tested patch for a maintenance-only
13883 target.
13884
13885 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13886
13887 * MAINTAINERS (write-after-approval): Add myself.
13888
13889 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13890 IN_SIGTRAMP.
13891
13892 2002-01-08 Michael Snyder <msnyder@redhat.com>
13893
13894 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13895 real name of the executable, rather than the /proc name.
13896
13897 2002-01-03 Michael Snyder <msnyder@redhat.com>
13898
13899 Implement a "generate-core-file" command in gdb, save target state.
13900 * gcore.c: New file. Implement new command 'generate-core-file'.
13901 Save a corefile image of the current state of the inferior.
13902 * linux-proc.c: Add linux-specific code for saving corefiles.
13903 * target.h (struct target_ops): Add new target vectors for saving
13904 corefiles; to_find_memory_regions and to_make_corefile_notes.
13905 (target_find_memory_regions): New macro.
13906 (target_make_corefile_notes): New macro.
13907 * target.c (update_current_target): Inherit new target methods.
13908 (dummy_find_memory_regions): New place-holder method.
13909 (dummy_make_corefile_notes): New place-holder method.
13910 (init_dummy_target): Initialize new dummy target vectors.
13911 * exec.c (exec_set_find_memory_regions): New function.
13912 Allow the exec_ops vector for memory regions to be taken over.
13913 (exec_make_note_section): New function, target vector method.
13914 * defs.h (exec_set_find_memory_regions): Export prototype.
13915 * procfs.c (proc_find_memory_regions): New function, corefile method.
13916 (procfs_make_note_section): New function, corefile method.
13917 (init_procfs_ops): Set new target vector pointers.
13918 (find_memory_regions_callback): New function.
13919 (procfs_do_thread_registers): New function.
13920 (procfs_corefile_thread_callback): New function.
13921 * sol-thread.c (sol_find_memory_regions): New function.
13922 (sol_make_note_section): New function.
13923 (init_sol_thread_ops): Initialize new target vectors.
13924 * inftarg.c (inftarg_set_find_memory_regions): New function.
13925 Allow to_find_memory_regions vector to be taken over.
13926 (inftarg_set_make_corefile_notes): New function.
13927 Allow to_make_corefile_notes vector to be taken over.
13928 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13929 interface layer if not target_has_execution (may be a corefile).
13930 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13931 * config/sparc/sun4sol2.mh: Ditto.
13932 * config/alpha/alpha-linux.mh: Ditto.
13933 * config/arm/linux.mh: Ditto.
13934 * config/i386/x86-64linux.mh: Ditto.
13935 * config/ia64/linux.mh: Ditto.
13936 * config/m68k/linux.mh: Ditto.
13937 * config/mips/linux.mh: Ditto.
13938 * config/powerpc/linux.mh: Ditto.
13939 * config/sparc/linux.mh: Ditto.
13940
13941 2002-01-07 Michael Snyder <msnyder@redhat.com>
13942
13943 * arm-linux-nat.c: Remove references to regcache.c internal data
13944 (registers[] and register_valid[]).
13945
13946 2002-01-07 Michael Snyder <msnyder@redhat.com>
13947
13948 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13949 so that attaching to a pid will automatically read the process's
13950 symbol file and shlibs.
13951 * Makefile.in: Add rule for linux-proc.o.
13952 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13953 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13954 * config/arm/linux.mh: Ditto.
13955 * config/i386/linux.mh: Ditto.
13956 * config/i386/x86-64linux.mh: Ditto.
13957 * config/ia64/linux.mh: Ditto.
13958 * config/m68k/linux.mh: Ditto.
13959 * config/mips/linux.mh: Ditto.
13960 * config/powerpc/linux.mh: Ditto.
13961 * config/sparc/linux.mh: Ditto.
13962
13963 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13964
13965 * win32-nat.c: Add i386-tdep.h dependency.
13966
13967 2002-01-07 Michael Snyder <msnyder@redhat.com>
13968
13969 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13970 instead of bfd_get_arch_size. Don't bail out just because
13971 there's no exec_bfd.
13972
13973 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13974 * p-valprint.c (pascal_object_print_value): Ditto.
13975 * somread.c (som_symtab_read): Ditto.
13976 * symfile.c (simple_free_overlay_region_table): Ditto.
13977 * valops.c (value_assign): Ditto.
13978
13979 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13980 use tilde_expand and strerror for opening save-tracepoints file.
13981
13982 * thread-db.c (thread_db_new_objfile): Indendation fix.
13983
13984 * infptrace.c (GDB_MAX_ALLOCA): New define.
13985 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13986 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13987 can be overridden with whatever value is appropriate to the host).
13988 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13989 alloca to allocate potentially large buffer.
13990 * rs6000-nat.c (child_xfer_memory): Ditto.
13991 * symm-nat.c (child_xfer_memory): Ditto.
13992 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13993
13994 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13995
13996 From Nick Clifton <nickc@redhat.com>
13997 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13998
13999 2002-01-07 Michael Snyder <msnyder@redhat.com>
14000
14001 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
14002 Don't use exec_bfd if it's NULL.
14003
14004 2002-01-06 Mark Kettenis <kettenis@gnu.org>
14005
14006 * valops.c (value_arg_coerce): Fix formatting.
14007
14008 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14009
14010 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14011 * gnu-nat.c: Ditto.
14012
14013 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14014
14015 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14016 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14017 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14018 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14019 z8k-coff have not been multi-arched. Update z8k-coff build
14020 status.
14021
14022 2002-01-06 Andrew Cagney <ac131313@redhat.com>
14023
14024 * MAINTAINERS: Mark a29k target as obsolete.
14025 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14026 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14027 comments.
14028 * NEWS: Note that a29k targets are obsolete.
14029 * a29k-tdep.c: Mark as obsolete.
14030 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14031 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14032 a29k-*-vxworks* targets as obsolete.
14033 * remote-adapt.c: Obsolete.
14034 * remote-eb.c: Obsolete.
14035 * remote-mm.c: Obsolete.
14036 * remote-udi.c: Obsolete.
14037 * config/a29k/a29k-udi.mt: Obsolete.
14038 * config/a29k/a29k.mt: Obsolete.
14039 * config/a29k/tm-a29k.h: Obsolete.
14040 * config/a29k/tm-vx29k.h: Obsolete.
14041 * config/a29k/vx29k.mt: Obsolete.
14042
14043 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14044
14045 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14046 with BFD_ENDIAN_BIG.
14047
14048 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14049
14050 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14051 * configure, config.in: Re-generate.
14052 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14053 * defs.h: Do not include <endian.h>.
14054
14055 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
14056
14057 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14058 * config.in: Regenerate.
14059 * configure.in: Update copyright years.
14060 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14061 * configure: Regenerate.
14062 * i386bsd-nat.c: Update copyright years.
14063 (fill_gregset): Use regcache_collect.
14064 (fetch_inferior_registers): Only fetch integer registers
14065 if requested to do so. Add support for XMM registers
14066 using PT_GETXMMREGS.
14067 (store_inferior_registers): Only store integer registers
14068 if requested to do so. Add support for XMM registers
14069 using PT_SETXMMREGS.
14070 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14071 (store_inferior_registers): Remove.
14072 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14073 (fetch_elfcore_registers): New function.
14074 (i386nbsd_elfcore_fns): New.
14075 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14076 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14077 i386bsd-nat.o.
14078 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14079 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14080 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14081 * config/i386/tm-nbsd.h: Update copyright years.
14082 (HAVE_SSE_REGS): Define.
14083 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14084 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14085 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14086 (SIGCONTEXT_PC_OFFSET): Remove.
14087 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14088
14089 2002-01-05 Andrew Cagney <ac131313@redhat.com>
14090
14091 * configure.tgt: Remove powerpc-*-macos* target.
14092 * config/m68k/xm-mpw.h: Delete file.
14093 * config/xm-mpw.h: Delete file.
14094 * ser-mac.c: Delete file.
14095 * mpw-make.sed: Delete file.
14096 * mpw-config.in: Delete file.
14097 * mac-xdep.c: Delete file.
14098 * mac-gdb.r: Delete file.
14099 * mac-defs.h: Delete file.
14100 * mac-nat.c: Delete file.
14101 * config/powerpc/macos.mh: Delete file.
14102 * config/powerpc/macos.mt: Delete file.
14103 * config/powerpc/nm-macos.h: Delete file.
14104 * config/powerpc/tm-macos.h: Delete file.
14105 * source.c (openp, open_source_file): Remove obsolete code.
14106 * top.c (gdb_readline): Ditto.
14107 * utils.c (query): Ditto.
14108 * event-top.c (display_gdb_prompt): Ditto.
14109 * Makefile.in (ser-mac.o): Delete obsolete target.
14110 * NEWS: Update.
14111
14112 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14113
14114 * defs.h (BIG_ENDIAN): Delete macro definition.
14115 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14116 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14117 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14118 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14119 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14120 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14121 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14122 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14123 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14124 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14125 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14126 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14127 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14128 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14129 * gdbarch.c: Re-generate.
14130
14131 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14132
14133 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14134 for core files.
14135
14136 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14137
14138 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14139
14140 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14141
14142 * value.h (value_ptr): Delete typedef.
14143
14144 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14145
14146 * i386nbsd-nat.c: Update copyright years.
14147 Include i386-tdep.h.
14148
14149 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14150
14151 * stabsread.c: Update copyright years.
14152
14153 From Debashis Mahata <debashis.mahata@wipro.com>:
14154 (read_struct_fields): Deal with Sun C compiler erroneous stab
14155 output for structs and unions.
14156 Fix PR gdb/269.
14157
14158 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14159
14160 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14161 prototype.
14162
14163 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14164
14165 * cp-abi.c: Fix whitespace.
14166 (baseclass_offset): New wrapper function.
14167 * cp-abi.h (baseclass_offset): Add prototype.
14168 (struct cp_abi_ops): Add baseclass_offset pointer.
14169
14170 * valops.c (vb_match): Move to...
14171 * gnu-v2-abi.c (vb_match): here.
14172 * valops.c (baseclass_offset): Move to...
14173 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14174
14175 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14176
14177 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14178 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14179 * hpacc-abi.c (init_hpacc_ops): Likewise.
14180
14181 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14182
14183 * valops.c (find_overload_match): Accept obj as a
14184 reference parameter. Update it before returning.
14185 * value.h (find_overload_match): Update prototype.
14186 * eval.c (evaluate_subexp_standard): Pass object to
14187 find_overload_match by reference.
14188
14189 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14190
14191 * valarith.c: Replace value_ptr with struct value pointer. Remove
14192 register attribute from value declarations.
14193 * valops.c: Ditto.
14194 * value.h: Ditto.
14195 * scm-lang.c (scm_lookup_name): Ditto.
14196
14197 2002-01-03 Michael Snyder <msnyder@redhat.com>
14198
14199 Abstract the functionality of iterating over mapped memory
14200 regions into a general purpose iterator function.
14201 * procfs.c (iterate_over_mappings): New function, general purpose
14202 iterator for memory sections.
14203 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14204 (solib_mappings_callback): New function, callback for above.
14205 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14206 (info_mappings_callback): New function, callback for above.
14207
14208 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14209
14210 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14211
14212 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14213 * i386-tdep.c: Include "elf-bfd.h".
14214 (process_note_abi_tag_sections): New function.
14215 (i386_gdbarch_init): Add code to recognize various OS/ABI
14216 combinations.
14217
14218 * maint.c (_initialize_maint_cmds): Add missing \ in
14219 string-literal.
14220
14221 For older changes see ChangeLog-2001
14222 \f
14223 Local Variables:
14224 mode: change-log
14225 left-margin: 8
14226 fill-column: 74
14227 version-control: never
14228 End:
This page took 0.325152 seconds and 4 git commands to generate.