2002-12-08 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
2
3 More cleanup from import of readline 4.3.
4 * completer.h (complete_line, readline_line_completion_function):
5 Update prototypes.
6 (line_completion_function): Removed, not used outside of completer.c.
7 * completer.c (readline_line_completion_function,
8 complete_function, line_completion_function): Use const for first
9 parameter.
10 (line_completion_function): Make static.
11 (filename_completer): filename_completion_function is now called
12 rl_filename_completion_function
13 * corelow.c: Include <readline/readline.h>.
14 * exec.c: Ditto.
15 * solib.c: Ditto.
16 * source.c: Ditto.
17 * symfile.c: Ditto.
18 * symmisc.c: Ditto.
19 * top.c (init_main): No need to coerce
20 readline_line_completion_function anymore.
21 * cli/cli-dump.c: Include <readline/readline.h>.
22
23 2002-12-08 Andrew Cagney <ac131313@redhat.com>
24
25 * stack.c (frame_info): Use get_prev_frame.
26 * blockframe.c (frame_address_in_block): Ditto.
27 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
28 (rs6000_frameless_function_invocation): Ditto.
29 (rs6000_frame_saved_pc): Ditto.
30 (rs6000_frame_chain): Ditto.
31 * arch-utils.c (init_frame_pc_default): Ditto.
32
33 2002-12-08 Andrew Cagney <ac131313@redhat.com>
34
35 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
36 Delete redundant definition.
37
38 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
39
40 Import of readline 4.3:
41 * cli/cli-cmds.c: Include readline/tilde.h.
42 * cli/cli-setshow.c: Ditto.
43 * defs.h: Don't declare tilde_expand anymore, since readline
44 exports it.
45
46 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
47
48 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
49 -Werror on this file.
50
51 2002-12-07 Andrew Cagney <ac131313@redhat.com>
52
53 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
54 the format name.
55 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
56 * gdbarch.c: Regenerate.
57
58 2002-12-06 Andrew Cagney <ac131313@redhat.com>
59
60 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
61 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
62 provide a default value.
63 * gdbarch.h, gdbarch.c: Regenerate.
64 * frame.c (get_prev_frame): Update. Check
65 DEPRECATED_INIT_FRAME_PC_FIRST_P.
66 * s390-tdep.c (s390_gdbarch_init): Update.
67 * mips-tdep.c (mips_gdbarch_init): Update.
68 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
69 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
70 * alpha-tdep.c (alpha_gdbarch_init): Update.
71
72 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
73
74 * ia64-linux-nat.c: Include gdb_string.h.
75 * alpha-nat.c: Ditto.
76 * ppc-linux-nat.c: Ditto.
77 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
78 Update dependencies.
79
80 2002-12-05 Andrew Cagney <ac131313@redhat.com>
81
82 * gdbthread.h: Include "frame.h".
83 (struct thread_info): Replace step_frame_address with
84 step_frame_id.
85 * inferior.h: Include "frame.h".
86 (step_frame_id): Replace external variable step_frame_address.
87 * gdbthread.h (save_infrun_state): Replace step_frame_address
88 parameter with step_frame_id parameter.
89 (load_infrun_state): Ditto.
90 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
91 * infcmd.c (step_frame_id, step_1, step_once): Update.
92 * thread.c (load_infrun_state, save_infrun_state): Update.
93 * infrun.c (clear_proceed_status, save_inferior_status): Update.
94 (handle_inferior_event, step_over_function): Update.
95 (normal_stop, context_switch, restore_inferior_status): Update.
96 (struct inferior_status): Replace step_frame_address with
97 step_frame_id.
98
99 2002-12-05 David Carlton <carlton@math.stanford.edu>
100
101 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
102 DW_TAG_member as well as a declaration as being a C++ static data
103 member.
104 (read_structure_scope): Combine tests for DW_TAG_member and
105 DW_TAG_variable.
106
107 2002-12-05 David Carlton <carlton@math.stanford.edu>
108
109 * linespec.c (decode_compound): New function.
110 (decode_line_1): Move code into decode_compound.
111
112 2002-12-05 David Carlton <carlton@math.stanford.edu>
113
114 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
115 argument.
116 (lookup_symbol_aux): Do the 'field_of_this' check before checking
117 the static block. See PR gdb/804.
118
119 2002-12-05 David Carlton <carlton@math.stanford.edu>
120
121 * symtab.c (lookup_symbol_aux_block): New function.
122 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
123
124 2002-12-05 Andrew Cagney <ac131313@redhat.com>
125
126 * gdbarch.sh: Dump the predicate function and macro values.
127 (read): Print error on standard error.
128 * gdbarch.c: Regenerate.
129
130 2002-12-04 Kevin Buettner <kevinb@redhat.com>
131
132 * Makefile.in (mips_tdep_h): Define.
133 (mips-tdep.o): Add mips_tdep_h to dependency list.
134 * mips-tdep.h: New file.
135 * mips-tdep.c (mips-tdep.h): Include.
136 (enum mips_abi): Move to mips-tdep.h.
137 (mips_abi): New function.
138
139 2002-12-04 David Carlton <carlton@math.stanford.edu>
140
141 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
142
143 2002-12-04 David Carlton <carlton@math.stanford.edu>
144
145 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
146 function.
147 (lookup_symbol_aux_minsyms): New function.
148
149 2002-12-04 J. Brobecker <brobecker@gnat.com>
150
151 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
152
153 2002-12-04 J. Brobecker <brobecker@gnat.com>
154
155 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
156 which is an obsolete macro name.
157
158 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
159
160 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
161 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
162
163 2002-12-03 H.J. Lu (hjl@gnu.org)
164
165 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
166 (create_breakpoints): Make sure the addr_string field is not
167 NULL.
168
169 2002-12-03 Andrew Cagney <ac131313@redhat.com>
170
171 * sparc-nat.c (fetch_inferior_registers)
172 (store_inferior_registers): Add comment on problem of LWP vs
173 threads.
174
175 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
176 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
177 (lin_lwp_store_registers): Remove.
178 (init_lin_lwp_ops): Use fetch_inferior_registers
179 and store_inferior_registers directly.
180 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
181 (store_inferior_registers): Likewise.
182 Fix PR gdb/725.
183
184 2002-12-03 Andrew Cagney <ac131313@redhat.com>
185
186 * frame.h (get_frame_id): Convert to a function.
187 (null_frame_id, frame_id_p): Declare.
188 (frame_id_eq, frame_id_inner): Declare.
189 (frame_id_build): New function.
190 * frame.c (get_frame_id): Update. Use null_frame_id.
191 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
192 frame_id_inner.
193 (null_frame_id, frame_id_p): Define.
194 (frame_id_eq, frame_id_inner): Define.
195 (frame_id_build): New function.
196 * varobj.c (varobj_create): Update.
197 (varobj_update): Update.
198 * valops.c (value_assign): Update.
199 (new_root_variable): Update.
200 * infrun.c (save_inferior_status): Update.
201 * breakpoint.c (watch_command_1): Update.
202
203 2002-12-03 J. Brobecker <brobecker@gnat.com>
204
205 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
206 (SNAP2): Likewise.
207
208 2002-12-03 Andrew Cagney <cagney@redhat.com>
209
210 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
211 patch.
212
213 * PROBLEMS: Mention PR gdb/725.
214
215 2002-12-03 Andreas Schwab <schwab@suse.de>
216
217 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
218
219 2002-12-02 Adam Fedor <fedor@gnu.org>
220 Klee Dienes <kdienes@apple.com>
221
222 * objc-lang.c (objc_printstr): Add width arg to match
223 printstr prototype.
224 (compare_selectors): Add 'const' to arg types.
225 (compare_classes): Likewise.
226 (find_imps): Cast msym pointer to avoid compiler warning.
227 (print_object_command): Validate the address before
228 passing it to the print routine.
229 (find_objc_msgcall_submethod): Change function argument to
230 return an int.
231 * objc-lang.h: Add 'extern' to all function declarations.
232 (value_nsstring): Add declaration.
233
234 2002-12-02 J. Brobecker <brobecker@gnat.com>
235
236 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
237 Fixes a build failure on HP/UX.
238
239 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
240 failure on HP/UX.
241 (hpread_has_name): Advance declaration to avoid a compilation warning.
242 (pst_syms_count): Add missing variable type. By change, the compiler
243 was defaulting to int, which seems a good choice. Fixes a compilation
244 warning.
245 (pst_syms_size): Likewise.
246
247 2002-12-02 J. Brobecker <brobecker@gnat.com>
248
249 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
250 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
251 later to set the proper gdbarch methods depending on the osabi.
252 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
253
254 2002-12-02 J. Brobecker <brobecker@gnat.com>
255
256 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
257 * osabi.c (gdb_osabi_name): Add strings images for the two new
258 enum values.
259 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
260
261 2002-12-02 Andrew Cagney <ac131313@redhat.com>
262
263 * MAINTAINERS (Java): Global maintainers are responible for Java.
264 (Past Maintainers): Mention both Anthony Green and Per Bothner as
265 part Java maintainers.
266
267 2002-12-02 J. Brobecker <brobecker@gnat.com>
268
269 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
270 Fixes a compilation failure on AiX.
271
272 2002-12-02 J. Brobecker <brobecker@gnat.com>
273
274 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
275 why aix-thread.o is not listed.
276
277 2002-12-01 Andrew Cagney <ac131313@redhat.com>
278
279 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
280 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
281 * gdbarch.h, gdbarch.c: Re-generate.
282 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
283 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
284 * config/pa/tm-hppa.h, frame.h: Update.
285 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
286 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
287 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
288 * cris-tdep.c, alpha-tdep.c: Update.
289 * frame.c (set_unwind_by_pc, create_new_frame): Use either
290 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
291 (get_prev_frame): Ditto.
292
293 2002-11-30 Andrew Cagney <cagney@redhat.com>
294
295 * exec.c (xfer_memory): Replace boolean with int.
296 * p-exp.y: Use 0 instead of false.
297 * corelow.c (gdb_check_format): Change return type to int from
298 boolean.
299 * utils.c: Don't include <curses.h> or <term.h> first.
300
301 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
302
303 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
304 (m68hc11_register_byte): Remove.
305 (m68hc11_gdbarch_init): Don't set the above.
306
307 2002-11-29 Andrew Cagney <cagney@redhat.com>
308
309 * remote-mips.c (mips_initialize): Force a selected frame rebuild
310 by calling get_selected_frame.
311 * ocd.c (ocd_start_remote): Use get_selected frame instead of
312 set_current_frame, create_new_frame, select_frame and
313 get_current_frame.
314 * remote-e7000.c (e7000_start_remote): Ditto.
315 * remote-mips.c (common_open): Ditto
316 * remote-rdp.c (remote_rdp_open): Ditto.
317
318 2002-11-29 Andreas Schwab <schwab@suse.de>
319
320 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
321 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
322 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
323 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
324 read_memory_unsigned_integer instead of read_memory_integer when
325 dealing with addresses and instruction opcodes.
326 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
327 (m68k_linux_frame_saved_pc): Likewise.
328
329 2002-11-29 Andrew Cagney <ac131313@redhat.com>
330
331 * stack.c (selected_frame, select_frame): Move from here ...
332 * frame.c (selected_frame, select_frame): ... to here. Include
333 "language.h".
334 * Makefile.in (frame.o): Update dependencies.
335 * frame.c (get_selected_frame): New function.
336 * frame.h (get_selected_frame): Declare.
337 (deprecated_selected_frame): Rename selected_frame.
338 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
339 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
340 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
341 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
342 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
343 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
344 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
345 * z8k-tdep.c, cli/cli-cmds.c: Update.
346
347 2002-11-29 Andrew Cagney <ac131313@redhat.com>
348
349 * frame.h (get_selected_block): Add comments.
350
351 2002-11-28 Andrew Cagney <ac131313@redhat.com>
352
353 * frame.c (pc_notcurrent): New function.
354 (find_frame_sal): New function.
355 * frame.h (find_frame_sal): Declare.
356 (struct symtab_and_line): Add opaque declaration.
357 * stack.c (print_frame_info_base): Use find_frame_sal instead of
358 find_pc_line.
359 (frame_info): Ditto.
360 * ada-lang.c (find_printable_frame): Ditto.
361
362 2002-11-28 J. Brobecker <brobecker@gnat.com>
363
364 * configure.in: Check that the pthdebug library is recent enough
365 before enabling thread support on native AiX.
366 * configure: Regenerate.
367
368 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
369 from the list of object files as it is now appended by configure
370 if thread support is enabled.
371 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
372 if thread support is enabled.
373
374 2002-11-28 Andrew Cagney <cagney@redhat.com>
375
376 * stack.c (get_selected_block): In-line get_current_block.
377 * frame.h (get_current_block): Delete declaration.
378 * blockframe.c (get_current_block): Delete function.
379
380 2002-11-28 Andrew Cagney <ac131313@redhat.com>
381
382 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
383 USE_GENERIC_DUMMY_FRAMES.
384 * gdbarch.h, gdbarch.c: Regenerate.
385 * valops.c, frame.c: Update.
386 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
387 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
388 * config/pa/tm-hppa.h, blockframe.c: Update.
389 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
390 * m68k-tdep.c, alpha-tdep.c: Ditto.
391
392 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
393 * mips-tdep.c: Ditto.
394
395 2002-11-27 Andrew Cagney <ac131313@redhat.com>
396
397 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
398 (USE_GENERIC_DUMMY_FRAMES): Default to true.
399 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
400 * gdbarch.c, gdbarch.h: Re-generate.
401 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
402 (CALL_DUMMY_LOCATION): Delete macro definition.
403 (PC_IN_CALL_DUMMY): Delete macro definitions.
404
405 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
406 default is already generic_pc_in_call_dummy.
407 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
408 * v850-tdep.c (v850_gdbarch_init): Ditto.
409 * sh-tdep.c (sh_gdbarch_init): Ditto.
410 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
411 * mips-tdep.c (mips_gdbarch_init): Ditto.
412 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
413 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
414 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
415 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
416 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
417 * avr-tdep.c (avr_gdbarch_init): Ditto.
418
419 * arm-tdep.c (arm_gdbarch_init): Do not set
420 use_generic_dummy_frames, default is already 1.
421 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
422 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
423 * v850-tdep.c (v850_gdbarch_init): Ditto.
424 * sh-tdep.c (sh_gdbarch_init): Ditto.
425 * s390-tdep.c (s390_gdbarch_init): Ditto.
426 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
427 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
428 * mips-tdep.c (mips_gdbarch_init): Ditto.
429 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
430 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
431 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
432 * i386-tdep.c (i386_gdbarch_init): Ditto.
433 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
434 * frv-tdep.c (frv_gdbarch_init): Ditto.
435 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
436 * cris-tdep.c (cris_gdbarch_init): Ditto.
437 * avr-tdep.c (avr_gdbarch_init): Ditto.
438
439 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
440 call_dummy_location, default is already AT_ENTRY_POINT.
441 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
442 * v850-tdep.c (v850_gdbarch_init): Ditto.
443 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
444 * sh-tdep.c (sh_gdbarch_init): Ditto.
445 * s390-tdep.c (s390_gdbarch_init): Ditto.
446 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
447 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
448 * mips-tdep.c (mips_gdbarch_init): Ditto.
449 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
451 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
452 * i386-tdep.c (i386_gdbarch_init): Ditto.
453 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
454 * frv-tdep.c (frv_gdbarch_init): Ditto.
455 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
456 * cris-tdep.c (cris_gdbarch_init): Ditto.
457 * avr-tdep.c (avr_gdbarch_init): Ditto.
458 * arm-tdep.c (arm_gdbarch_init): Ditto.
459 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
460
461 2002-11-28 Andrew Cagney <cagney@redhat.com>
462
463 * frame.h: Update comments on set_current_frame, create_new_frame,
464 flush_cached_frames, reinit_frame_cache, select_frame and
465 selected_frame.
466
467 2002-11-27 Andrew Cagney <cagney@redhat.com>
468
469 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
470 deprecated pc_in_call_dummy function.
471 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
472 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
473 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
474 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
475 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
476
477 2002-11-26 Martin M. Hunt <hunt@redhat.com>
478
479 * Makefile.in: Remove Tix dependencies.
480 * acinclude.m4: Ditto.
481 * aclocal.m4: Ditto.
482 * configure.in: Ditto.
483 * configure: Regenerated.
484
485 2002-11-26 Andrew Cagney <ac131313@redhat.com>
486
487 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
488 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
489 * gdbarch.c: Re-generate.
490
491 2002-11-26 Andrew Cagney <ac131313@redhat.com>
492
493 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
494 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
495 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
496 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
497 pc_in_call_dummy_at_entry_point.
498 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
499 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
500 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
501 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
502 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
503 pc_in_call_dummy_on_stack.
504 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
505 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
506 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
507 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
508 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
509
510 2002-11-26 Andrew Cagney <ac131313@redhat.com>
511
512 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
513 pc_in_call_dummy_before_text_end
514 (deprecated_pc_in_call_dummy_after_text_end): Rename
515 pc_in_call_dummy_after_text_end.
516 (deprecated_pc_in_call_dummy_on_stack): Rename
517 pc_in_call_dummy_on_stack.
518 (deprecated_pc_in_call_dummy_at_entry_point): Rename
519 pc_in_call_dummy_at_entry_point.
520 * m68k-tdep.c (m68k_gdbarch_init): Update.
521 * s390-tdep.c (s390_gdbarch_init): Update.
522 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
523 * vax-tdep.c (vax_gdbarch_init): Update.
524 * sparc-tdep.c (sparc_gdbarch_init): Update.
525 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
526 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
527 * i386-tdep.c (i386_gdbarch_init): Update.
528 * frv-tdep.c (frv_gdbarch_init): Update.
529 * cris-tdep.c (cris_gdbarch_init): Update.
530 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
531 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
532 (deprecated_pc_in_call_dummy_after_text_end)
533 (deprecated_pc_in_call_dummy_on_stack)
534 (deprecated_pc_in_call_dummy_at_entry_point): Update.
535 * alpha-tdep.c (alpha_gdbarch_init): Update.
536
537 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
538
539 * acconfig.h (HAVE_PREAD64): Add.
540 * configure.in: Check for pread64.
541 * config.in: Regenerated.
542 * configure: Regenerated.
543 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
544 * linux-proc.c (linux_proc_xfer_memory): New function.
545 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
546
547 2002-11-25 David Carlton <carlton@math.stanford.edu>
548
549 * dwarf2read.c (scan_partial_symbols): Descend into namespace
550 pdi's with no name.
551
552 2002-11-25 Andrew Cagney <ac131313@redhat.com>
553
554 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
555 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
556
557 2002-11-25 Jim Blandy <jimb@redhat.com>
558
559 * symfile.c (init_objfile_sect_indices): New function.
560 (default_symfile_offsets): Move the section-index-initializing
561 stuff into init_objfile_sect_indices, and call that.
562
563 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
564 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
565
566 * symfile.c (syms_from_objfile): Adjust indentation.
567
568 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
569 || info_verbose isn't true.
570
571 2002-11-24 Andrew Cagney <ac131313@redhat.com>
572
573 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
574 default to get_frame_base.
575 * gdbarch.h, gdbarch.c: Regenerate.
576 * arch-utils.c (default_frame_address): Delete function.
577 * arch-utils.h (default_frame_address): Delete declaration
578
579 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
580
581 * varobj.c (find_frame_addr_in_frame_chain):
582 Use get_frame_base instead of FRAME_FP,
583 obvious fix.
584
585 2002-11-19 Andrew Cagney <ac131313@redhat.com>
586
587 * frame.h (FRAME_FP): Delete macro.
588 (get_frame_base): New function declaration.
589 * frame.c (get_frame_base): New function.
590 (get_frame_id): Use ->frame.
591 (frame_find_by_id): Rewrite to use get_frame_id.
592 * blockframe.c: Use get_frame_base instead of FRAME_FP.
593 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
594 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
595 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
596 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
597 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
598 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
599
600 2002-11-24 Andrew Cagney <ac131313@redhat.com>
601
602 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
603
604 2002-11-24 Andrew Cagney <ac131313@redhat.com>
605
606 * frame.c (set_unwind_by_pc): Revert change below, use
607 PC_IN_CALL_DUMMY.
608 (get_prev_frame): Ditto.
609
610 2002-11-24 Andrew Cagney <ac131313@redhat.com>
611
612 * dummy-frame.c (pc_in_dummy_frame): New function.
613 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
614 (find_dummy_frame): Update comment.
615 (generic_pop_current_frame): Use get_frame_type.
616 * dummy-frame.h (pc_in_dummy_frame): Declare.
617 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
618 (create_new_frame): Use pc_in_dummy_frame.
619 (get_prev_frame): Use pc_in_dummy_frame.
620 (frame_saved_regs_register_unwind): Use get_prev_frame.
621 (deprecated_generic_get_saved_register): Use get_prev_frame.
622
623 2002-11-23 Andrew Cagney <ac131313@redhat.com>
624
625 * blockframe.c (find_frame_addr_in_frame_chain): Move function
626 from here ...
627 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
628 (varobj_create): Note that frame ID should be used.
629 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
630
631 2002-11-23 Andrew Cagney <ac131313@redhat.com>
632
633 * breakpoint.c: Include "gdb_assert.h".
634 (deprecated_frame_in_dummy): Assert that generic dummy frames are
635 not being used.
636 * Makefile.in (breakpoint.o): Update dependencies.
637 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
638 deprecated_frame_in_dummy.
639 * stack.c (print_frame_info_base): Ditto.
640 (frame_info): Ditto.
641 (print_frame_info_base): Ditto. Delete dead code.
642
643 2002-11-23 Andreas Schwab <schwab@suse.de>
644
645 * Makefile.in (m68k_tdep_h): Define.
646 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
647 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
648 * m68k-tdep.c: Move register number enum ...
649 * m68k-tdep.h: ... to this new file and rename the constants from
650 E_* to M68K_*. All uses changed.
651 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
652 * abug-rom.c: Include "m68k-tdep.h". Use
653 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
654 * cpu32bug-rom.c: Likewise.
655 * dbug-rom.c: Likewise.
656 * m68k-tdep.c: Likewise.
657 * m68klinux-nat.c: Likewise.
658 * remote-est.c: Likewise.
659 * rom68k-rom.c: Likewise.
660 * config/m68k/tm-linux.h: Likewise.
661
662 2002-11-23 Andrew Cagney <ac131313@redhat.com>
663
664 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
665 dummy frame initialization code.
666 * mips-tdep.c (mips_gdbarch_init): Ditto.
667
668 2002-11-22 Christopher Faylor <cgf@redhat.com>
669
670 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
671 attach will hang.
672
673 2002-11-22 Andrew Cagney <ac131313@redhat.com>
674
675 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
676 to default_frame_address.
677 * gdbarch.h, gdbarch.c: Re-generate.
678
679 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
680 or frame_locals_address to default_frame_address.
681 * m68k-tdep.c (m68k_gdbarch_init): Update.
682 * i386-tdep.c (i386_gdbarch_init): Update.
683 * frv-tdep.c (frv_gdbarch_init): Update.
684 * sh-tdep.c (sh_gdbarch_init): Update.
685 * v850-tdep.c (v850_gdbarch_init): Update.
686 * sparc-tdep.c (sparc_gdbarch_init): Update.
687 * mips-tdep.c (mips_gdbarch_init): Update.
688 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
689 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
690 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
691
692 * cris-tdep.c (cris_frame_args_address): Delete function.
693 (cris_frame_locals_address): Delete function.
694 (cris_gdbarch_init): Do not set frame_args_address or
695 frame_locals_address.
696
697 2002-11-22 Michael Snyder <msnyder@redhat.com>
698
699 * thread-db.c (thread_db_load): Tell the user what's going on
700 if dlopen fails on libthread_db.
701
702 2002-11-23 Andreas Schwab <schwab@suse.de>
703
704 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
705 invariant return values.
706
707 2002-11-22 Andreas Schwab <schwab@suse.de>
708
709 * valops.c (value_slice): Move declaration of `offset' to avoid
710 warning.
711
712 2002-11-22 Christopher Faylor <cgf@redhat.com>
713
714 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
715 (struct so_stuff): Add end_addr field.
716 (register_loaded_dll): Calculate and store end address of loaded dll.
717 (solib_address): New function.
718 (child_solib_loaded_library_pathname): Pass carefully constructed
719 section info to safe_symbol_file_add rather than ignoring it.
720 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
721 DLL is loaded.
722 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
723 (child_create_inferior): Fix a compiler warning.
724 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
725 (solib_address): Declare new function.
726
727 2002-11-22 Andreas Schwab <schwab@suse.de>
728
729 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
730 and FPS registers.
731
732 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
733
734 * maint.c (_initialize_maint_cmds): Fix typo. From
735 Francesco Potorti` <pot@gnu.org>.
736
737 2002-11-21 Andrew Cagney <cagney@redhat.com>
738
739 * mips-tdep.c (mips_dump_tdep): Delete references to
740 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
741 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
742 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
743 * printcmd.c (build_address_symbolic): Delete calls to
744 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
745 (address_info): Ditto.
746 Fix PR gdb/773.
747
748 2002-11-19 Klee Dienes <kdienes@apple.com>
749 Adam Fedor <fedor@gnu.org>
750
751 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
752 the ability to explicitly specify the quote characters and word
753 break characters; if NULL is specified for either, use the old
754 behavior of using the characters used by the completer.
755 (skip_chars): New function. Convenience wrapper around
756 skip_quoted_chars to provide the original skip_chars behavior.
757 * completer.h (skip_quoted_chars): Add prototype.
758
759 2002-11-19 Andrew Cagney <ac131313@redhat.com>
760
761 Problems reported by Paul Eggert.
762 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
763
764 2002-11-19 Andreas Schwab <schwab@suse.de>
765
766 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
767 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
768 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
769 (m68k_linux_frame_saved_pc): Move to ...
770 * m68klinux-tdep.c: ... here. New file.
771 * Makefile.in (m68klinux-tdep.o): Add dependencies.
772 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
773
774 2002-11-19 Adam Fedor <fedor@gnu.org>
775
776 * objc-exp.y: Revert to old skip_quoted usage.
777
778 2002-11-19 Adam Fedor <fedor@gnu.org>
779
780 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
781 (objc_lang_h): Define.
782 (YYFILES): Add objc-exp.tab.c.
783 (local-maintainer-clean): Remove objc-exp.tab.c.
784 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
785
786 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
787
788 * p-exp.y (typecast rule): Add automatic dereference of
789 pascal classes if needed.
790 (THIS): Set current_type.
791 Automatically dereference pascal classes.
792 (typebase rule): Add ^typebase recognition.
793
794 2002-11-18 Adam Fedor <fedor@gnu.org>
795
796 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
797 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
798 (op_name): Handle OP_OBJC_SELF.
799 * Makefile.in (expprint.o): Add additional depends.
800
801 2002-11-18 Adam Fedor <fedor@gnu.org>
802
803 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
804 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
805 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
806 * objc-exp.y: Likewise.
807
808 2002-11-18 Adam Fedor <fedor@gnu.org>
809
810 * gdb/parser-defs.h: (struct objc_class_str): New structure
811 for parsing ObjC classes.
812
813 2002-11-18 Andrew Cagney <ac131313@redhat.com>
814
815 * stack.c (frame_relative_level): Copy function from here ...
816 * frame.c (frame_relative_level): ...to here.
817
818 2002-11-18 Andrew Cagney <ac131313@redhat.com>
819
820 * frame.h (enum frame_type): Define.
821 (get_frame_type): Declare.
822 (struct frame_info): Add field `type'. Delete field
823 signal_handler_caller.
824 (deprecated_set_frame_signal_handler_caller): Declare.
825 * frame.c (get_frame_type): New function.
826 (deprecated_set_frame_type): New function.
827 (create_new_frame): Set the frame's type.
828 (get_prev_frame): Similar.
829 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
830 * s390-tdep.c: Ditto.
831 * m68klinux-nat.c: Ditto.
832 * ns32k-tdep.c: Ditto.
833 * x86-64-linux-tdep.c: Ditto.
834 * vax-tdep.c: Ditto.
835 * rs6000-tdep.c: Ditto.
836 * ppc-linux-tdep.c: Ditto.
837 * i386-interix-tdep.c: Ditto.
838 * mips-tdep.c: Ditto.
839 * m68k-tdep.c: Ditto.
840 * hppa-tdep.c: Ditto.
841 * ia64-tdep.c: Ditto.
842 * cris-tdep.c: Ditto.
843 * arm-tdep.c: Ditto.
844 * alpha-tdep.c: Ditto.
845 * i386-tdep.c: Ditto.
846 * stack.c: Ditto.
847 * ada-lang.c: Ditto.
848 * blockframe.c: Update.
849 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
850 deprecated_set_frame_type instead of signal_handler_caller.
851 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
852 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
853 * breakpoint.h: Delete FIXME suggesting get_frame_type.
854
855 2002-11-18 Klee Dienes <kdienes@apple.com>
856
857 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
858
859 2002-11-18 Klee Dienes <kdienes@apple.com>
860
861 * buildsym.c (pop_context): Add comment.
862
863 2002-11-18 Klee Dienes <kdienes@apple.com>
864
865 * buildsym.h (pop_context): Convert to function, defined in
866 buildsym.c.
867 * buildsym.c: Include gdb_assert.h.
868 (pop_context): Implement as C function. Add check for stack
869 underflow.
870 * dbxread.c (process_one_symbol): Complain and stop processing
871 that symbol if we are already at the top of the context stack for
872 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
873 when processing N_RBRAC.
874
875 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
876
877 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
878 define.
879 (struct target_waitstatus): Add opaque definition.
880 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
881 * exec.c (init_exec_ops): Likewise.
882 * fork-child.c (clone_and_follow_inferior): Remove.
883 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
884 * inferior.h (clone_and_follow_inferior): Remove prototype.
885 * infrun.c (follow_fork_mode_both): Remove.
886 (follow_fork_mode_kind_names): Remove commented out "both".
887 (follow_inferior_fork): Remove follow_fork_mode_both support.
888 * inftarg.c (child_clone_and_follow_inferior): Remove.
889 (child_post_follow_inferior_by_clone): Remove.
890 (init_child_ops): Don't set to_clone_and_follow_inferior
891 or to_post_follow_inferior_by_clone.
892 * target.c (default_clone_and_follow_inferior): Remove.
893 (cleanup_target): Don't set to_clone_and_follow_inferior
894 or to_post_follow_inferior_by_clone.
895 (find_default_clone_and_follow_inferior): Remove.
896 (init_dummy_target): Don't set to_clone_and_follow_inferior.
897 (debug_to_clone_and_follow_inferior): Remove.
898 (debug_to_post_follow_inferior_by_clone): Remove.
899 (setup_target_debug): Don't set to_clone_and_follow_inferior
900 or to_post_follow_inferior_by_clone.
901 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
902 and to_post_follow_inferior_by_clone.
903 (child_clone_and_follow_inferior): Remove prototype.
904 (child_post_follow_inferior_by_clone): Remove prototype.
905 (target_clone_and_follow_inferior): Remove macro.
906 (target_post_follow_inferior_by_clone): Remove macro.
907 (find_default_clone_and_follow_inferior): Remove prototype.
908
909 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
910
911 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
912 inferior_has_vforked, and inferior_has_execd instead of
913 target_has_forked, target_has_vforked, and target_has_execd.
914 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
915 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
916 (CHILD_WAIT): Define.
917 (child_wait): Add prototype.
918 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
919 Add prototype.
920 (hpux_has_vforked): Likewise, from child_has_vforked.
921 (hpux_has_execd): Likewise, from child_has_execd.
922 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
923 (not_same_real_pid, child_wait): New, copied from inftarg.c.
924 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
925 and hpux_has_syscall_event instead of the target hooks.
926 * infrun.c (inferior_has_forked, inferior_has_vforked)
927 (inferior_has_execd): New functions.
928 * inftarg.c (not_same_real_pid): Remove.
929 (child_wait): Remove references to not_same_real_pid,
930 target_has_forked, target_has_vforked, target_has_execd,
931 and target_has_syscall_event.
932 (child_has_forked, child_has_vforked, child_has_execd)
933 (child_has_syscall_event): Remove.
934 (init_child_ops): Remove references to child_has_forked,
935 child_has_vforked, child_has_execd, and child_has_syscall_event.
936 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
937 (hpux_has_vforked): Likewise, from child_has_vforked.
938 (hpux_has_execd): Likewise, from child_has_execd.
939 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
940 * target.c (cleanup_target): Remove references to
941 to_has_forked, to_has_vforked, to_has_execd, and
942 to_has_syscall_event.
943 (update_current_target): Likewise.
944 (setup_target_debug): Likewise.
945 (debug_to_has_forked): Remove.
946 (debug_to_has_vforked): Remove.
947 (debug_to_has_execd): Remove.
948 (debug_to_has_syscall_event): Remove.
949 * target.h (struct target_ops): Remove to_has_forked.
950 to_has_vforked, to_has_execd, and to_has_syscall_event.
951 (child_has_forked, child_has_vforked, child_has_execd)
952 (child_has_syscall_event): Remove prototypes.
953 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
954 prototypes.
955 (target_has_forked, target_has_vforked, target_has_execd)
956 (target_has_syscall_event): Remove macros.
957
958 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
959
960 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
961 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
962 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
963 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
964 * target.c (cleanup_target): Remove reference to
965 to_can_follow_vfork_prior_to_exec.
966 (update_current_target): Likewise.
967 (debug_to_can_follow_vfork_prior_to_exec): Remove.
968 (setup_target_debug): Remove reference to
969 to_can_follow_vfork_prior_to_exec.
970 * target.h (struct target_ops): Remove
971 to_can_follow_vfork_prior_to_exec.
972 (child_can_follow_vfork_prior_to_exec): Remove prototype.
973 (target_can_follow_vfork_prior_to_exec): Remove definition.
974 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
975 define.
976 * infrun.c (follow_vfork_when_exec): Remove.
977 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
978 (follow_exec): Likewise.
979 (handle_inferior_event): Likewise.
980 (keep_going): Likewise.
981
982 2002-11-15 Andrew Cagney <cagney@redhat.com>
983
984 * frame.c (generic_unwind_get_saved_register): Make static.
985 * frame.h (generic_unwind_get_saved_register): Delete declaration.
986 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
987 defaults to generic_unwind_get_saved_register.
988 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
989 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
990 * frv-tdep.c (frv_gdbarch_init): Ditto.
991 * i386-tdep.c (i386_gdbarch_init): Ditto.
992 * s390-tdep.c (s390_gdbarch_init): Ditto.
993 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
994 * v850-tdep.c (v850_gdbarch_init): Ditto.
995 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
996 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
997 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
998
999 2002-11-15 Andrew Cagney <cagney@redhat.com>
1000
1001 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1002 i386-tdep.c.
1003
1004 2002-11-15 Andrew Cagney <cagney@redhat.com>
1005
1006 * frame.h (sigtramp_saved_pc): Delete declaration.
1007 * blockframe.c (sigtramp_saved_pc): Delete function.
1008 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1009 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1010 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1011 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1012
1013 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1014
1015 * frame.c (frame_pc_unwind): New function.
1016 (frame_saved_regs_pc_unwind): New function.
1017 (frame_register_unwind): Pass unwind_cache instead of
1018 register_unwind_cache.
1019 (set_unwind_by_pc): Add unwind_pc parameter, set.
1020 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1021 (get_prev_frame): Ditto.
1022 * frame.h (frame_pc_unwind_ftype): Declare.
1023 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1024 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1025 (frame_pc_unwind): Declare.
1026 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1027 (struct dummy_frame): Add comment mentioning that values are for
1028 previous frame.
1029 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1030 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1031 (generic_file_frame_chain_valid): Ditto.
1032 * stack.c (frame_info): Ditto.
1033
1034 2002-11-15 David Carlton <carlton@math.stanford.edu>
1035
1036 * linespec.c (locate_first_half): New function.
1037 (decode_line_1): Move code into locate_first_half.
1038
1039 2002-11-15 Andrew Cagney <ac131313@redhat.com>
1040
1041 * complaints.h: Add comment explaining how to eliminate a
1042 deprecated_complain call.
1043 * complaints.h: Fix spelling errors.
1044
1045 2002-11-15 David Carlton <carlton@math.stanford.edu>
1046
1047 * printcmd.c: Remove #include "disasm.h".
1048
1049 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1050
1051 * frame.h: Move the most relevant interface functions to the start
1052 of the file.
1053
1054 2002-11-14 Andrew Cagney <ac131313@redhat.com>
1055
1056 * regcache.h (deprecated_registers): Rename registers.
1057 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1058 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1059 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1060 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1061 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1062 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1063 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1064 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1065 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1066 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1067 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1068 * v850ice.c: Update.
1069
1070 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
1071
1072 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1073 NULL buffer.
1074
1075 2002-11-13 Andrew Cagney <cagney@redhat.com>
1076
1077 * regcache.h (deprecated_read_register_bytes): Rename
1078 read_register_bytes.
1079 (deprecated_write_register_bytes): Rename write_register_bytes.
1080 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1081 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1082 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1083 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1084 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1085 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1086 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1087 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1088 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1089 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1090 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1091 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1092 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1093 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1094
1095 2002-11-13 Jim Blandy <jimb@redhat.com>
1096
1097 * findvar.c (read_var_value): Doc fix.
1098
1099 2002-11-13 Andrew Cagney <cagney@redhat.com>
1100
1101 * regcache.c (struct regcache): Replace passthough_p with
1102 readonly_p.
1103 (regcache_xmalloc): Initialize readonly_p.
1104 (build_regcache): Initialize readonly_p.
1105 (regcache_save): New function.
1106 (regcache_restore): New function.
1107 (regcache_cpy): Re-implement using regcache_save and
1108 regcache_restore.
1109 (regcache_raw_read): Update.
1110 (regcache_cooked_read): When a read-only cache, checked for cached
1111 pseudo register values.
1112 (regcache_raw_write): Assert that the cache is not read-only.
1113 Remove code handling a non-passthrough cache.
1114 * regcache.h (regcache_save): Declare.
1115 (regcache_restore): Declare.
1116
1117 2002-11-13 Andrew Cagney <cagney@redhat.com>
1118
1119 * regcache.c (struct regcache_descr): Add fields
1120 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1121 (init_legacy_regcache_descr): Compute the size of a cooked
1122 register cache and then assign that to sizeof_raw_registers. Set
1123 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1124 (init_legacy_regcache_descr): Ditto.
1125
1126 2002-11-13 Andrew Cagney <cagney@redhat.com>
1127
1128 * regcache.c (register_buffer): Move to near start of file, update
1129 description.
1130 (regcache_raw_read): Use.
1131 (regcache_raw_write): Use.
1132 (struct regcache): Rename raw_registers to registers and
1133 raw_register_valid_p to register_valid_p.
1134 (regcache_xmalloc): Update.
1135 (regcache_xfree): Update.
1136 (register_buffer): Update.
1137 (regcache_cpy): Update.
1138 (regcache_cpy_no_passthrough): Update.
1139 (regcache_valid_p): Update.
1140 (deprecated_grub_regcache_for_registers): Update.
1141 (deprecated_grub_regcache_for_register_valid): Update.
1142 (set_register_cached): Update.
1143 (regcache_raw_write): Update.
1144
1145 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
1146
1147 * p-exp.y (name_not_typename): Use copy_name to
1148 set current_type variable for fields of THIS.
1149
1150 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
1151
1152 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1153 * monitor.c (init_base_monitor_ops): Likewise.
1154 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1155 * remote-array.c (init_array_ops): Likewise.
1156 * remote-e7000.c (init_e7000_ops): Likewise.
1157 * remote-es.c (init_es1800_ops): Likewise.
1158 (init_es1800_child_ops): Likewise.
1159 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1160 * remote-sim.c (init_gdbsim_ops): Likewise.
1161 * remote-st.c (init_st2000_ops): Likewise.
1162 * sol-thread.c (init_sol_core_ops): Likewise.
1163 (init_sol_thread_ops): Likewise.
1164 * v850ice.c (init_850ice_ops): Likewise.
1165 * win32-nat.c (init_child_ops): Likewise.
1166 * wince.c (init_child_ops): Likewise.
1167
1168 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1169
1170 * utils.c (gdb_realpath): Make rp a constant pointer.
1171
1172 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1173
1174 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1175 a constant buffer; cannonicalize_file_name(); realpath() with a
1176 pathconf() defined buffer, xstrdup().
1177
1178 2002-11-12 Andrew Cagney <ac131313@redhat.com>
1179
1180 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1181 to hang2.C; hang3.c to hang3.C.
1182
1183 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1184
1185 * findvar.c (read_var_value): Reenable TLS code.
1186
1187 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
1188 Jim Blandy <jimb@redhat.com>
1189
1190 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1191 * target.c (update_current_target): Add
1192 to_get_thread_local_address.
1193 * target.h (to_get_thread_local_address): Export.
1194 (target_get_thread_local_address): Define.
1195 (target_get_thread_local_address_p): Define.
1196 * thread-db.c: Include solib-svr4.h.
1197 (td_thr_tls_get_addr_p): Define.
1198 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1199 (thread_db_get_thread_local_address): New function.
1200 (init_thread_db_ops): Initialize to_get_thread_local_address.
1201 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1202 * configure: Regenerate.
1203 * config.in: Regenerate.
1204
1205 2002-11-11 David Carlton <carlton@math.stanford.edu>
1206
1207 * linespec.c (set_flags): New function.
1208 (decode_line_1): Move code into set_flags.
1209
1210 2002-11-11 David Carlton <carlton@math.stanford.edu>
1211
1212 * linespec.c (decode_line_1): Move chunks of code to separate
1213 functions.
1214 (initialize_defaults): New function.
1215 (decode_indirect): New function.
1216
1217 2002-11-11 Andrew Cagney <ac131313@redhat.com>
1218
1219 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1220 instead of void_code_ptr.
1221 (sigtramp_saved_pc): Ditto.
1222
1223 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1224 i386_fp_regnum_p.
1225
1226 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
1227
1228 * gdbtypes.h (struct main_type): Move artificial flag out of
1229 loc. New member of ``struct field'' named static_kind. Reduce
1230 overloaded meaning of bitsize.
1231 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1232 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1233 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1234
1235 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1236 new fields.
1237 (template_to_fixed_record_type, template_to_static_fixed_type)
1238 (to_record_with_fixed_variant_part): Likewise.
1239 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1240 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1241 * dwarfread.c (struct_type, enum_type): Likewise.
1242 * hpread.c (hpread_read_enum_type)
1243 (hpread_read_function_type, hpread_read_doc_function_type)
1244 (hpread_read_struct_type): Likewise.
1245 * mdebugread.c (parse_symbol): Likewise.
1246
1247 2002-11-10 Andrew Cagney <ac131313@redhat.com>
1248
1249 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1250 * stack.c (print_frame_info_base): Update.
1251 (print_frame_info_base, frame_info): Update.
1252 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1253 (sparc_frame_saved_pc): Update.
1254 * ada-lang.c (find_printable_frame): Update.
1255 * breakpoint.c (deprecated_frame_in_dummy): Update.
1256
1257 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1258
1259 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1260 defined.
1261 (regmap): Extend to cover all registers.
1262 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1263 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1264 definitions.
1265 (fetch_register, sore_register): Simplify.
1266 (old_fetch_inferior_registers, old_store_inferior_registers):
1267 Remove functions.
1268 (cannot_fetch_register, cannot_store_register): Change
1269 implementation to use regmap array to decide which registers
1270 cannot be fetched/stored. This removes $orig_eax from the
1271 registers that cannot be fetched/stored.
1272 (fetch_inferior_registers): Call fetch_register directly instead
1273 of calling old_fetch_inferior_registers.
1274 (store_inferior_registers): Call store_register directly instead
1275 of calling old_store_inferior_registers.
1276 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1277 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1278 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1279
1280 2002-11-09 Klee Dienes <kdienes@apple.com>
1281
1282 * i387-tdep.c (i387_supply_register): When called with NULL as a
1283 buffer, mark the register as not provided (to mirror the behavior
1284 of supply_register).
1285 (i387_supply_fxsave): Ditto.
1286 (i387_supply_fsave): Ditto (inherits the behavior from
1287 i387_supply_register).
1288
1289 2002-11-09 Klee Dienes <kdienes@apple.com>
1290
1291 * blockframe.c (sigtramp_saved_pc): Use
1292 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1293 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1294 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1295
1296 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1297
1298 * frame.c (get_prev_frame): Test prev_p to identify a previously
1299 unwound frame. Initialize prev_p.
1300 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1301 comment.
1302
1303 2002-11-09 Andrew Cagney <ac131313@redhat.com>
1304
1305 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1306 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1307 more comments. Zap dead code.
1308
1309 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1310
1311 * infcmd.c (print_vector_info, print_float_info): Move code that
1312 checks whether the target has any registers and whether there is a
1313 selected frame up, such that it is also used if a target provides
1314 multi-arch definitions of these functions.
1315
1316 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1317
1318 * Makefile.in (DESTDIR): Define.
1319 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1320 prefix.
1321
1322 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1323 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1324
1325 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1326
1327 * i386-linux-tdep.c: Include "reggroups.h".
1328 (i386_linux_register_reggroup_p): New function.
1329 (i386_linux_init_abi): Set register_reggroup_p to
1330 i386_linux_register_reggroup_p.
1331 * i386-tdep.h (i386_register_reggroup_p): Declare.
1332 * i386-tdep.c: Include "reggroups.h".
1333 (i386_init_reggroups): New function.
1334 (i386_add_reggroups): New function.
1335 (i386_register_reggroup_p): New function.
1336 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1337 (_initialize_i386_tdep): Call i386_init_reggroups.
1338 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1339 specific reggroups.
1340
1341 2002-11-09 Mark Kettenis <kettenis@gnu.org>
1342
1343 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1344 request that's available in *BSD.
1345
1346 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1347
1348 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1349 FDOFF_REGNUM.
1350
1351 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1352
1353 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1354 * dummy-frame.c (find_dummy_frame): Rename
1355 generic_find_dummy_frame, make static. Return the dummy frame
1356 instead of the regcache.
1357 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1358 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1359 (dummy_frame_register_unwind): Rename
1360 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1361 * dummy-frame.h (dummy_frame_register_unwind): Rename
1362 generic_call_dummy_register_unwind.
1363
1364 2002-11-08 Mark Kettenis <kettenis@gnu.org>
1365
1366 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1367 except the inclusion of "i386/tm-i386.h", to...
1368 * config/i386/nm-i386v42mp.h: ...here.
1369 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1370
1371 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1372
1373 * Makefile.in (frame.o): Update dependencies.
1374 * blockframe.c (current_frame, frame_obstack_alloc)
1375 (frame_saved_regs_zalloc, get_current_frame)
1376 (set_current_frame, create_new_frame)
1377 (set_unwind_by_pc, get_next_frame)
1378 (flush_cached_frames, reinit_frame_cache)
1379 (frame_saved_regs_register_unwind)
1380 (deprecated_generic_get_saved_register)
1381 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1382 (_initialize_blockframe): Move frame code from here...
1383 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1384 "annotate.h" and "dummy-frame.h".
1385 (_initialize_frame): New function.
1386
1387 2002-11-08 Jim Blandy <jimb@redhat.com>
1388
1389 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1390 when we finish a function a context.
1391 * buildsym.h (outermost_context_p): New macro.
1392 (Bug analyzed by David Edelsohn.)
1393
1394 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1395
1396 * blockframe.c: Include "dummy-frame.h".
1397 (struct dummy_frame, dummy_frame_stack)
1398 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1399 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1400 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1401 (generic_save_call_dummy_addr, generic_pop_current_frame)
1402 (generic_pop_dummy_frame, generic_fix_call_dummy)
1403 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1404 dummy frame code from here...
1405 * dummy-frame.c: ...to here. New file.
1406 * dummy-frame.h: New file.
1407 (generic_call_dummy_register_unwind): Declare.
1408 (generic_find_dummy_frame): Declare.
1409 * Makefile.in (SFILES): Add dummy-frame.c.
1410 (dummy-frame.o): Specify dependencies.
1411 (dummy_frame_h): Define.
1412 (COMMON_OBS): Add dummy-frame.o.
1413 (blockframe.o): Update dependencies.
1414
1415 2002-11-08 Jim Blandy <jimb@redhat.com>
1416
1417 * dwarf2read.c (read_func_scope): Restore local_symbols and
1418 param_symbols after we finish the function context. (Based on a
1419 patch from David Edelsohn.)
1420
1421 2002-11-08 David Carlton <carlton@math.stanford.edu>
1422
1423 * linespec.c (symbol_found): New function.
1424 (minsym_found): New function.
1425 (decode_line_1): Separate out some code into separate functions.
1426
1427 2002-11-08 Joel Brobecker <brobecker@gnat.com>
1428
1429 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1430 the benefit of the interix target.
1431 * i386-tdep.h (i386_frameless_signal_p): Declare.
1432
1433 2002-11-08 Andrew Cagney <ac131313@redhat.com>
1434
1435 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1436 declaration that snuck in from change below.
1437
1438 2002-11-06 Andrew Cagney <cagney@redhat.com>
1439
1440 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1441 all callers.
1442 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1443 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1444 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1445 (i386_mxcsr_regnum_p): new function. Use instead of
1446 MXCSR_REGNUM_P.
1447 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1448 (i386_sse_regnum_p): Declare.
1449 (i386_mxcsr_regnum_p): Declare.
1450 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1451 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1452 (IS_FP_REGNUM): Update definition.
1453 (IS_FPU_CTRL_REGNUM): Update definition..
1454 (IS_SSE_REGNUM): Update definition..
1455 * i386v-nat.c (register_u_addr): Update.
1456 * go32-nat.c (fetch_register): Update.
1457 (store_register): Update.
1458
1459 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1460
1461 Preparation work to convert the hppa targets to multiarch partial.
1462
1463 * hppa-tdep.c: Add new functions replacing macro bodies from
1464 config/pa/tm-hppa.h. These function will be used to initialize
1465 the gdbarch structure. Import some comments from tm-hppa.h,
1466 and place them where appropriate, to avoid loosing them when
1467 we cleanup this file.
1468 (hppa_reg_struct_has_addr): New function.
1469 (hppa_inner_than): New function.
1470 (hppa_stack_align): New function.
1471 (hppa_pc_requires_run_before_use): New function.
1472 (hppa_instruction_nullified): New function.
1473 (hppa_register_byte): New function.
1474 (hppa_register_virtual_type): New function.
1475 (hppa_store_struct_return): New function.
1476 (hppa_cannot_store_register): New function.
1477 (hppa_frame_args_address): New function.
1478 (hppa_frame_locals_address): New function.
1479 (hppa_smash_text_address): New function.
1480 (hppa_coerce_float_to_double): New function. Requires the inclusion
1481 of "language.h".
1482
1483 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1484
1485 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1486 gdbarch-eligible macro to a call to the new associated function
1487 created in hppa-tdep.c.
1488 (INNER_THAN): Likewise.
1489 (STACK_ALIGN): Likewise.
1490 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1491 (INSTRUCTION_NULLIFIED): Likewise.
1492 (REGISTER_BYTE): Likewise.
1493 (REGISTER_VIRTUAL_TYPE): Likewise.
1494 (STORE_STRUCT_RETURN): Likewise.
1495 (CANNOT_STORE_REGISTER): Likewise.
1496 (FRAME_ARGS_ADDRESS): Likewise.
1497 (FRAME_LOCALS_ADDRESS): Likewise.
1498 (SMASH_TEXT_ADDRESS): Likewise.
1499 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1500 (ABOUT_TO_RETURN): Delete, as no longer used.
1501
1502 2002-11-07 Fernando Nasser <fnasser@redhat.com>
1503
1504 * printcmd.c (disassemble_command): Remove obsolete function.
1505 (_initialize_printcmd): Do not create disassemble command here.
1506 * cli/cli-cmds.c (disassemble_command): New function. Implements
1507 disassemble command.
1508 (init_cli_cmds): Create disassemble command here instead.
1509
1510 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1511
1512 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
1513
1514 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1515
1516 * regcache.h (regcache_cooked_read_using_offset_hack)
1517 (regcache_cooked_write_using_offset_hack): Delete declarations.
1518 (register_changed): Delete declaration.
1519 * regcache.c (regcache_cooked_read_using_offset_hack)
1520 (regcache_cooked_write_using_offset_hack): Delete functions.
1521 (cooked_xfer_using_offset_hack): Delete function.
1522 (register_changed): Delete function.
1523
1524 2002-11-07 Jim Blandy <jimb@redhat.com>
1525
1526 * macroscope.c: #include "complaints.h".
1527 (sal_macro_scope): Cope with filenames that appear in the symtabs,
1528 but not in the macro table.
1529 * Makefile.in (macroscope.o): Record dependency.
1530
1531 2002-11-07 Joel Brobecker <brobecker@gnat.com>
1532
1533 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
1534
1535 2002-11-07 Andrew Cagney <ac131313@redhat.com>
1536
1537 * regcache.c (deprecated_registers_fetched): Update.
1538 * regcache.h (deprecated_registers_fetched): Rename
1539 registers_fetched.
1540 * remote-vxsparc.c (vx_read_register): Update.
1541 * remote-vxmips.c (vx_read_register): Update.
1542 * remote-vx68.c (vx_read_register): Update.
1543 * irix5-nat.c (fetch_core_registers): Update.
1544 * mipsm3-nat.c (fetch_inferior_registers): Update.
1545 * sun3-nat.c (fetch_inferior_registers): Update.
1546 * symm-nat.c (fetch_inferior_registers): Update.
1547 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
1548 (fetch_core_registers): Update.
1549 (fetch_kcore_registers): Update.
1550 * mips-nat.c (fetch_inferior_registers): Update.
1551 * corelow.c (get_core_registers): Update.
1552 * a68v-nat.c (fetch_inferior_registers): Update.
1553
1554 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1555
1556 Put in place the framework necessary for multiarching the hppa targets.
1557 * hppa-tdep.c (hppa_gdbarch_init): New function.
1558 (hppa_dump_tdep): New function.
1559 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
1560 tdep structure dumper.
1561 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
1562 until the multi-arching conversion has partially been completed.
1563
1564 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1565
1566 * valops.c (value_assign): Merge lval_register case into
1567 lval_reg_frame_relative. Use frame_register and
1568 regcache_cooked_write instead of get_saved_register and
1569 write_register_bytes. After flushing the register cache, try to
1570 re-select the selected frame.
1571
1572 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1573
1574 * regcache.h (deprecated_register_valid): Rename register_valid.
1575 * regcache.c: Update.
1576 * ia64-aix-nat.c: Update.
1577 * i386gnu-nat.c: Update.
1578 * alpha-nat.c: Update.
1579 * sparc-nat.c: Update.
1580 * lynx-nat.c: Update.
1581 * remote-mips.c: Update.
1582
1583 2002-11-06 Joel Brobecker <brobecker@gnat.com>
1584
1585 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
1586 to end of file, to be more consistent with the pratice followed
1587 by other targets.
1588
1589 2002-11-06 Andrew Cagney <ac131313@redhat.com>
1590
1591 * infcmd.c: Include "reggroups.h" and <ctype.h>.
1592 (print_float_info): Print registers in float_reggroup.
1593 (print_vector_info): Print registers in vector_reggroup.
1594 (default_print_registers_info): When all, print registers in
1595 all_reggroup. Otherwize, print registers in general_reggroup.
1596 (registers_info): Rewrite. Add support for register groups.
1597 Eliminate a goto.
1598
1599 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
1600
1601 * symtab.c (methods_info): Delete. It has been ifdeffed out for
1602 ages.
1603 (symtab_symbol_info): Remove eons old ifdeffed out code.
1604 (_initialize_symtab): Remove prehistoric disabled 'info methods'
1605 command.
1606
1607 2002-11-06 Theodore A. Roth <troth@openavr.org>
1608
1609 * c-exp.y: Add missing semi-colons.
1610 * f-exp.y: Add missing semi-colons.
1611 * m2-exp.y: Add missing semi-colons.
1612 * p-exp.y: Add missing semi-colons.
1613 Add empty action to start rule to avoid a type clash error when
1614 building with bison >= 1.50.
1615
1616 2002-11-06 Jim Blandy <jimb@redhat.com>
1617
1618 * macrotab.h (struct macro_source_file): Doc fix.
1619
1620 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
1621
1622 * varobj.c (child_exists, cplus_number_of_children): Change
1623 STREQ macro references to strcmp.
1624 (cplus_name_of_child): Change code to handle the fact that
1625 fields are not necessarily contiguous with regards to their
1626 access control. This is a fix for PR gdb/792.
1627
1628 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1629
1630 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
1631 * gdbarch.h, gdbarch.c: Regnerate.
1632 * frame.h (frame_register): Declare.
1633 * frame.c (frame_register): New function.
1634 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
1635 GET_SAVED_REGISTER, otherwize call
1636 generic_unwind_get_saved_register.
1637 (frame_register_read): Use frame_register instead of
1638 get_saved_register.
1639
1640 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1641
1642 From Jim Ingham <jingham@apple.com>:
1643 * event-top.c (gdb_disable_readline): New function.
1644 (_initialize_event_loop): Move comment.
1645
1646 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
1647
1648 * event-loop.c (start_event_loop): Add comment.
1649 Update copyright.
1650
1651 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1652
1653 * infcmd.c (default_print_registers_info): Do not call
1654 PRINT_REGISTER_HOOK.
1655
1656 2002-11-05 Andrew Cagney <ac131313@redhat.com>
1657
1658 * sparc-tdep.c (sparc_print_register_hook): Make static.
1659 (sparc_print_registers_info): New function.
1660 (sparc_do_registers_info): New function.
1661 (sparclet_print_registers_info): New function.
1662 (sparclet_do_registers_info): New function.
1663 (do_sparc_print_registers_info): New function.
1664 (sparc_print_registers): New static function, clone of infcmd.c's
1665 default_print_registers_info.
1666 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
1667 (sparclet_do_registers_info): Declare.
1668 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
1669 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
1670 Re-define.
1671 (sparc_do_registers_info): Declare.
1672 (PRINT_REGISTER_HOOK): Delete macro.
1673 (sparc_print_register_hook): Delete declaration.
1674
1675 2002-11-05 David Carlton <carlton@math.stanford.edu>
1676
1677 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
1678 functions.
1679 (lookup_symbol_aux_local): New function.
1680 (lookup_symbol_aux_symtabs): New function.
1681 (lookup_symbol_aux_psymtabs): New function.
1682
1683 2002-11-05 David Carlton <carlton@math.stanford.edu>
1684
1685 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
1686 previous values of 'objfile' and 'block'.
1687
1688 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
1689
1690 * values.c (value_change_enclosing_type): Set
1691 enclosing_type field correctly also for the case where
1692 more memory needs to be allocated.
1693
1694 2002-11-03 Mark Kettenis <kettenis@gnu.org>
1695
1696 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
1697 of puts_filtered.
1698
1699 * i387-tdep.c (i387_print_float_info): Replace calls to
1700 register_read and deprecated_read_register_gen with calls to
1701 frame_register_read, and make the necessary adjustments to the
1702 surrounding code.
1703
1704 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1705
1706 * gdbarch.sh (register_reggroup_p): Allow default value.
1707 * gdbarch.h, gdbarch.c: Regenerate.
1708
1709 2002-11-02 Andrew Cagney <ac131313@redhat.com>
1710
1711 * regcache.h: Add coment indicating replacements for deprecated
1712 functions.
1713
1714 2002-11-02 Andrew Cagney <cagney@redhat.com>
1715
1716 * reggroups.h, reggroups.c: New files.
1717 * regcache.c: Include "reggroups.h".
1718 (enum regcache_dump_what): Add `regcache_dump_groups'.
1719 (regcache_dump): Contract size of the "Type" column. When
1720 specified, dump the register's groups.
1721 (maintenance_print_register_groups): New function.
1722 (_initialize_regcache): Add command `maint print register-groups'.
1723 * Makefile.in (COMMON_OBS): Add reggroups.o
1724 (SFILES): Add reggroups.c.
1725 (reggroups_h): Define.
1726 (regcache.o, gdbarch.o): Update dependencies.
1727 (reggroups.o): Specify dependencies.
1728 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
1729 Add opaque declaration for `struct reggroup' in generated .h file.
1730 Include "reggroups.h" in generated .c file.
1731 gdbarch.h, gdbarch.c: Re-generate.
1732
1733 2002-11-02 Andrew Cagney <cagney@redhat.com>
1734
1735 * regcache.h (deprecated_read_register_gen): Rename
1736 read_register_gen.
1737 (deprecated_write_register_gen): Rename write_register_gen.
1738 * i387-tdep.c: Update.
1739 * x86-64-linux-nat.c: Update
1740 * wince.c: Update.
1741 * thread-db.c: Update.
1742 * win32-nat.c: Update.
1743 * mips-tdep.c: Update.
1744 * d10v-tdep.c: Update.
1745 * cris-tdep.c: Update.
1746 * remote-sim.c: Update.
1747 * remote-rdi.c: Update.
1748 * remote-rdp.c: Update.
1749 * frame.c: Update.
1750 * target.c: Update.
1751 * blockframe.c: Update.
1752 * x86-64-tdep.c: Update.
1753 * xstormy16-tdep.c: Update.
1754 * sh-tdep.c: Update.
1755 * s390-tdep.c: Update.
1756 * rs6000-tdep.c: Update.
1757 * sparc-tdep.c: Update.
1758 * i386-tdep.c: Update.
1759 * dwarf2cfi.c: Update.
1760 * regcache.c: Update.
1761
1762 2002-11-01 Joel Brobecker <brobecker@gnat.com>
1763
1764 New interix-specific files:
1765 * config/i386/nm-interix.h: New file.
1766 * config/i386/interix.mh: New file.
1767 * config/i386/interix.mt: New file.
1768 * i386-interix-nat.c: New file.
1769 * i386-interix-tdep.c: New file.
1770
1771 2002-11-01 Andrew Cagney <cagney@redhat.com>
1772
1773 * frame.h (deprecated_generic_get_saved_register): Rename
1774 generic_get_saved_register.
1775 * blockframe.c (deprecated_generic_get_saved_register): Update.
1776 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
1777 (xstormy16_frame_saved_register): Update.
1778 * sh-tdep.c (sh_gdbarch_init): Update.
1779 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1780 * ia64-tdep.c (ia64_get_saved_register): Update.
1781 * cris-tdep.c (cris_gdbarch_init): Update.
1782 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
1783 * arm-tdep.c (arm_gdbarch_init): Update.
1784
1785 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1786
1787 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
1788
1789 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
1790
1791 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
1792 trampolines in sigaction.
1793
1794 2002-10-31 Andrew Cagney <cagney@redhat.com>
1795
1796 * h8300-tdep.c: Include "gdb_assert.h".
1797 (h8300_print_register): Add gdbarch, file and frame parameters.
1798 Use frame_read_unsigned_register to read the register's value.
1799 Use fprintf_filtered to display output.
1800 (h8300_print_registers_info): Replace h8300_do_registers_info.
1801 (h8300_gdbarch_init): Set print_registers_info.
1802
1803 2002-10-31 Andrew Cagney <cagney@redhat.com>
1804
1805 * frame.c (frame_read_unsigned_register): New function.
1806 (frame_read_signed_register): New function.
1807 * frame.h (frame_read_unsigned_register): Declare.
1808 (frame_read_signed_register): Declare.
1809
1810 2002-10-31 Andrew Cagney <cagney@redhat.com>
1811
1812 * h8500-tdep.c (h8500_print_registers_info): New static function,
1813 clone of infcmd.c's default_print_registers_info.
1814 (h8500_do_registers_info): New funtion.
1815 (h8500_print_register_hook): Rename print_register_hook, make
1816 static.
1817
1818 * config/h8500/tm-h8500.h: Update copyright.
1819 (DEPRECATED_DO_REGISTERS_INFO): Define.
1820 (h8500_do_registers_info: Declare.
1821 (PRINT_REGISTER_HOOK): Delete macro.
1822 (print_register_hook): Delete function.
1823
1824 2002-10-31 Andrew Cagney <cagney@redhat.com>
1825
1826 * z8k-tdep.c (z8k_print_register_hook): Make static.
1827 (z8k_print_registers_info): New static function, clone of
1828 infcmd.c's default_print_registers_info.
1829 (z8k_do_registers_info): New function. Wrap
1830 z8k_print_registers_info.
1831 * config/z8k/tm-z8k.h: Update copyright.
1832 (PRINT_REGISTER_HOOK): Delete macro.
1833 (z8k_print_register_hook): Delete declaration.
1834 (DEPRECATED_DO_REGISTERS_INFO): Define.
1835 (z8k_do_registers_info): Declare.
1836
1837 2002-10-30 Joel Brobecker <brobecker@gnat.com>
1838
1839 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
1840 as this is already provided by value.h, and was actually causing
1841 a compilation error because of a conflict in parameter type
1842 declaration due to a missing const keyword.
1843 (low_text_segment_addres): Fix a compilation warning.
1844
1845 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
1846
1847 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
1848 registers without a name.
1849 (mips_linux_cannot_store_register): Don't store registers without
1850 a name.
1851
1852 2002-10-28 David Carlton <carlton@math.stanford.edu>
1853
1854 * symtab.c (find_addr_symbol): Delete. (It was already commented
1855 out.)
1856 * symtab.h: Delete prototype for find_addr_symbol.
1857
1858 2002-10-26 Andrew Cagney <cagney@redhat.com>
1859
1860 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
1861 DO_REGISTERS_INFO.
1862 gdbarch.h, gdbarch.c: Re-generate.
1863 * infcmd.c (default_print_registers_info): Update reference.
1864 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
1865 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
1866 * sh-tdep.c (sh_gdbarch_init): Ditto.
1867 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1868 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1869
1870 2002-10-26 Mark Kettenis <kettenis@gnu.org>
1871
1872 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
1873 cfi_init_extra_frame_info.
1874 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
1875 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
1876
1877 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
1878 target where necessary. Add more comments and remove the ones
1879 that don't provide any useful information.
1880
1881 * i386-tdep.c (i386_frame_saved_pc): Replace call to
1882 deprecated_read_register_dummy with
1883 frame_unwind_unsigned_register.
1884
1885 * i386-tdep.c (i386_extract_struct_value_address): Use
1886 regcache_raw_read_unsigned instead of
1887 regcache_cooked_read_unsigned since we know that the register
1888 we're reading isn't a pseudo register. Rename variable 'val' into
1889 the more descriptive 'addr'.
1890
1891 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
1892 (x86_64_push_return_address): Add comment.
1893 (x86_64_pop_frame): Make static.
1894 (examine_argument): Clarify comment.
1895 (x86_64_skip_prologue): Make prolog_expact variable static.
1896
1897 * dwarf2cfi.c: Fix some formatting problems.
1898 (context_cpy, read_encoded_pointer): Clarify comments.
1899
1900 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
1901 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
1902 i386 target back into x86_64_gdbarch_init. Add some comments and
1903 remove meaningless ones.
1904
1905 2002-10-25 Andrew Cagney <cagney@redhat.com>
1906
1907 * complaints.h (struct deprecated_complaint): Rename `struct
1908 complaint'.
1909 * complaints.c (complain): Update.
1910 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
1911 incorrect comment indicating that "symfile.h" was being included
1912 for the `struct complaint' definition.
1913 * remote-vx.c: Update.
1914 * objc-lang.c: Update.
1915 * xcoffread.c: Update.
1916 * hpread.c: Update.
1917 * mdebugread.c: Update.
1918 * stabsread.c: Update.
1919 * dwarf2read.c: Update.
1920 * dwarfread.c: Update.
1921 * elfread.c: Update.
1922 * coffread.c: Update.
1923 * stabsread.h: Update.
1924 * dbxread.c: Update.
1925 * buildsym.c: Update.
1926 * gdbtypes.c: Update.
1927 * macrotab.c: Update.
1928
1929 2002-10-25 Mark Kettenis <kettenis@gnu.org>
1930
1931 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
1932 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
1933 (x86_64_init_abi): ...new function.
1934
1935 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1936 * i386v-nat.c: Include "i386-tdep.h".
1937
1938 2002-10-25 Andrew Cagney <cagney@redhat.com>
1939
1940 * gdbtypes.c (address_space_name_to_int): Update.
1941 (address_space_int_to_name): Update.
1942 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
1943 multi-arch predicate.
1944 (address_class_name_to_type_flags): Ditto.
1945 * gdbarch.h, gdbarch.c: Re-generate.
1946
1947 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
1948
1949 2002-10-24 Martin M. Hunt <hunt@redhat.com>
1950
1951 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
1952
1953 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
1954
1955 * symtab.h (INIT_SAL): Delete macro.
1956 (init_sal): Export.
1957 * symtab.c (init_sal): New function.
1958
1959 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
1960 to init_sal function call.
1961 (find_sal_from_funcs_and_line): Ditto.
1962 (all_sals_for_line): Ditto.
1963 * breakpoint.c (create_internal_breakpoint): Ditto.
1964 (create_fork_vfork_event_catchpoint): Ditto.
1965 (create_exec_event_catchpoint): Ditto.
1966 (parse_breakpoint_sals): Ditto.
1967 (watch_command_1): Ditto.
1968 (handle_gnu_4_16_catch_command): Ditto.
1969 (clear_command): Ditto.
1970 * hppa-tdep.c (child_enable_exception_callback): Ditto.
1971 * infcmd.c (run_stack_dummy): Ditto.
1972 * infrun.c (process_event_stop_test): Ditto.
1973 (check_sigtramp2): Ditto.
1974 (step_over_function): Ditto.
1975 * linespec.c (decode_line_2): Ditto.
1976 (decode_line_1): Ditto.
1977 * source.c (line_info): Ditto.
1978 * symtab.c (find_pc_sect_line): Ditto.
1979
1980 2002-10-24 Michal Ludvig <mludvig@suse.cz>
1981
1982 * dwarf2cfi.c (struct context)
1983 (struct context_reg): Moved to dwarf2cfi.h
1984 (context_alloc, frame_state_alloc, context_cpy):
1985 Made extern instead of static, removed prototypes.
1986 * dwarf2cfi.h (struct context)
1987 (struct context_reg): New, moved from dwarf2cfi.c
1988 (context_alloc, frame_state_alloc, context_cpy):
1989 New prototypes.
1990 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
1991 Changed from static to extern.
1992 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
1993 (LINUX_SIGCONTEXT_FP_OFFSET)
1994 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
1995 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
1996 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
1997 * x86-64-tdep.c (x86_64_gdbarch_init): Several
1998 set_gdbarch_*() calls now use x86-64 specific functions
1999 instead of DWARF2 CFI ones.
2000 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2001 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2002 (x86_64_init_extra_frame_info): New prototypes.
2003
2004 2002-10-23 David Carlton <carlton@math.stanford.edu>
2005
2006 * linespec.c: #include "parser-defs.h".
2007 Delete prototype for find_template_name_end.
2008 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2009
2010 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
2011
2012 * NEWS: add recent mi fixes.
2013 * varobj.c (struct varobj): Add new "updated" flag.
2014 (new_variable): Default "updated" flag to 0.
2015 (varobj_set_value): Set "updated" flag to 1 if value
2016 changes.
2017 (varobj_update): Check varobj "updated" flag before
2018 comparing old and refreshed values. Fix for
2019 PR gdb/702.
2020
2021 2002-10-23 David Carlton <carlton@math.stanford.edu>
2022
2023 * parse.c (parse_exp_1): Use BLOCK_START.
2024 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2025 SYMBOL_BLOCK_VALUE.
2026 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2027
2028 2002-10-23 David Carlton <carlton@math.stanford.edu>
2029
2030 * symtab.c: Delete cplusplus_hint.
2031 Delete prototype for find_template_name_end.
2032
2033 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2034
2035 * symtab.h: Update comment.
2036
2037 2002-10-23 Michael Snyder <msnyder@redhat.com>
2038
2039 * printcmd.c (address_info): Restore quotes in output.
2040 * valops.c (value_of_local): Restore quotes in error message.
2041
2042 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2043
2044 * symtab.c (symbol_demangled_name): New function.
2045 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2046 turning most of it into a function.
2047 (symbol_demangled_name): Export.
2048
2049 2002-10-23 Michael Snyder <msnyder@redhat.com>
2050
2051 * valops.c (value_of_local): Restore quotes in error message.
2052
2053 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
2054
2055 * symtab.c (symbol_init_language_specific): New function.
2056 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2057 turning most of it into a function.
2058 (symbol_init_language_specific): Export.
2059
2060 2002-10-23 David Carlton <carlton@math.stanford.edu>
2061
2062 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2063 (dwarf_attr_name): Ditto.
2064 (dwarf_type_encoding_name): Ditto.
2065 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2066 (process_die): Handle DW_TAG_namespace,
2067 DW_TAG_imported_declaration, DW_TAG_imported_module.
2068 (read_namespace): New function.
2069
2070 2002-10-22 Joel Brobecker <brobecker@gnat.com>
2071
2072 * configure.in: Define NEW_PROC_API on Interix too.
2073 * configure: Regenerate.
2074
2075 2002-10-21 Joel Brobecker <brobecker@gnat.com>
2076
2077 * configure: Regenerate using the proper version of autoconf.
2078
2079 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2080
2081 * findvar.c (read_var_value): Temporarily disable TLS code, until
2082 complete TLS support is added.
2083
2084 2002-10-21 Jim Blandy <jimb@redhat.com>
2085 Elena Zannoni <ezannoni@redhat.com>
2086
2087 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2088 for thread local storage locations.
2089 (struct symbol): Add objfile field.
2090 (SYMBOL_OBJFILE): Define.
2091 * dwarf2read.c (is_thread_local): New static variable.
2092 (new_symbol): If variable is in thread local fill in address class
2093 and objfile appropriately.
2094 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2095 stack operation.
2096 * printcmd.c (address_info): Print the information for thread
2097 local storage variable.
2098 * findvar.c (read_var_value): In case of thread local variable,
2099 defer to the target vector code to compute address.
2100
2101 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2102
2103 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2104 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2105
2106 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
2107
2108 * symtab.h (address_class): Rename
2109 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2110 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2111 * printcmd.c (address_info): Ditto.
2112 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2113
2114 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2115
2116 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2117 DBREG_DRX macro to acces debug registers.
2118
2119 * Makefile.in (i386obsd-tdep.o): New target.
2120
2121 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2122 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2123
2124 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2125 * config/i386/obsd.mt: New file.
2126 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2127 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2128 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2129 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2130 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2131 * i386obsd-tdep.c: New file.
2132
2133 2002-10-19 Adam Fedor <fedor@gnu.org>
2134
2135 * objc-exp.y (name_not_typename): Fix invalid comment.
2136
2137 2002-10-20 Mark Kettenis <kettenis@gnu.org>
2138
2139 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2140 to allocate partial syms and macro byte caches.
2141
2142 2002-10-18 David Carlton <carlton@math.stanford.edu>
2143
2144 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2145
2146 2002-10-18 Adam Fedor <fedor@gnu.org>
2147
2148 * stabsread.c (find_name_end): New function.
2149 (define_symbol): Use it.
2150
2151 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
2152
2153 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2154 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2155 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2156 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2157
2158 2002-10-17 David Carlton <carlton@math.stanford.edu>
2159
2160 * symfile.h: Add opaque declaration for struct obstack.
2161 Declare obsavestring to take a const char *.
2162 * symfile.c (obsavestring): Make first argument a const char *.
2163
2164 2002-10-16 Adam Fedor <fedor@gnu.org>
2165
2166 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2167 names when matching breakpoints in current file.
2168
2169 2002-10-16 Kevin Buettner <kevinb@redhat.com>
2170
2171 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2172 (read_tag_pointer_type): Add address class support.
2173 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2174 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2175 New methods.
2176 * gdbarch.h, gdbarch.c: Regenerate.
2177 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2178 (make_type_with_address_space, recursive_type_dump): Add address
2179 class support.
2180 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2181 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2182 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2183
2184 2002-10-16 Klee Dienes <kdienes@apple.com>
2185
2186 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2187 to get the last character of a char[] buffer, not
2188 name[sizeof(vptr_name)-1].
2189
2190 2002-10-14 Adam Fedor <fedor@gnu.org>
2191
2192 * symtab.h: New objc_specific struct.
2193 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2194 (SYMBOL_DEMANGLED_NAME): Likewise.
2195
2196 2002-10-14 Adam Fedor <fedor@gnu.org>
2197
2198 * symfile.c (init_filename_language_table): Add ObjC file extension.
2199
2200 2002-10-14 Adam Fedor <fedor@gnu.org>
2201
2202 * utils.c (puts_filtered_tabular): New function.
2203 (fprintf_symbol_filtered): Get ObjC demangled name.
2204 * defs.h (puts_filtered_tabular): Declared.
2205
2206 2002-10-14 Kevin Buettner <kevinb@redhat.com>
2207
2208 * c-lang.h (c_type_print_varspec_prefix): Delete.
2209 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2210 ``need_post_space'' parameter. Adjust all callers.
2211
2212 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
2213
2214 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2215 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2216 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2217 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2218
2219 2002-10-13 Adam Fedor <fedor@gnu.org>
2220
2221 * source.c (print_source_lines): Update comments.
2222
2223 2002-10-13 Adam Fedor <fedor@gnu.org>
2224
2225 * valops.c (value_of_local): New function.
2226 (value_of_this): Use it.
2227 * value.h (value_of_local): Declared.
2228
2229 2002-10-13 Adam Fedor <fedor@gnu.org>
2230
2231 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2232 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2233
2234 2002-10-12 Adam Fedor <fedor@gnu.org>
2235
2236 * language.c (binop_result_type): Add language_objc to case.
2237 (integral_type): Likewise.
2238 (character_type): Likewise.
2239 (string_type): Likewise.
2240 (boolean_type): Likewise.
2241 (structured_type): Likewise.
2242 (binop_type_check): Likewise.
2243
2244 2002-10-11 Adam Fedor <fedor@gnu.org>
2245
2246 * printcmd.c (address_info): Print 'self' for ObjC.
2247
2248 2002-10-11 Adam Fedor <fedor@gnu.org>
2249
2250 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2251 OP_SELF.
2252
2253 2002-10-11 Adam Fedor <fedor@gnu.org>
2254
2255 * language.h (CAST_IS_CONVERSION): Add language_objc.
2256
2257 2002-10-11 Adam Fedor <fedor@gnu.org>
2258
2259 * defs.h (enum language): Add language_objc.
2260
2261 2002-10-11 Klee Dienes <kdienes@apple.com>
2262
2263 * corefile.c (read_memory_typed_address): New function.
2264 * gdbcore.h (read_memory_typed_address): Add prototype.
2265 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2266 to read a value destined for a CORE_ADDR, not read_memory_integer.
2267 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2268 (f77_get_dynamic_lowerbound): Ditto.
2269
2270 2002-10-11 Martin M. Hunt <hunt@redhat.com>
2271
2272 * utils.c (string_to_core_addr): After turning string into
2273 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2274 which will do necessary sign-extension, etc.
2275
2276 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
2277
2278 * c-exp.y (THIS): Delete token and grammar rule.
2279 (yylex): Don't return THIS.
2280 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2281 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2282 * demangle.c (cplus_markers): Update comment. Put '$'
2283 first. Remove CPLUS_MARKER.
2284 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2285 * jv-exp.y (THIS): Delete token and grammar rule.
2286 (yylex): Don't return THIS.
2287 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2288 * objc-exp.y (THIS): Delete token and grammar rule.
2289 (yylex): Don't return THIS.
2290 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2291 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2292 (read_member_functions): Likewise for opname.
2293 (read_tilde_fields): Use is_cplus_marker.
2294
2295 * defs.h (CPLUS_MARKER): Don't define.
2296 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2297 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2298 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2299 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2300 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2301
2302 * config/i386/tm-i386v4.h: Delete file.
2303 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2304 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2305 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2306 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2307 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2308 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2309 * config/i386/i386v4.mt (TM_FILE): Likewise.
2310 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2311
2312 2002-10-10 Marko Mlinar <markom@opencores.org>
2313
2314 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2315 accidentially not commited 2002-10-09
2316 * gdbarch.h, gdbarch.c: Re-generate.
2317
2318 2002-10-09 Marko Mlinar <markom@opencores.org>
2319
2320 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2321 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2322 * gdbarch.h, gdbarch.c: Re-generate.
2323
2324 2002-10-08 Petr Sorfa <petrs@caldera.com>
2325
2326 Revised and re-submitted by John Wolfe <jlw@caldera.com>
2327
2328 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2329 so we can work on more than one compilation unit at a time. This
2330 helps prepare GDB to handle inter-CU die references.
2331 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2332 the code to be defined before struct comp_unit_head.
2333 (comp_unit_head): Added new members - offset, cu_head,
2334 begin_die, next and dwarf2_abbrevs.
2335 (dwarf2_abbrevs): Removed single static var; now member of
2336 struct comp_unit_head.
2337 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2338 members.
2339 (psymtab_to_symtab_1): Changed to work with the new
2340 struct comp_unit_head.
2341 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2342 constructs the dwarf2_abbrevs[] inside the cu_header.
2343 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2344 dwarf2_abbrev table to clean up.
2345 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2346 handling of dwarf2_abbrevs inside the cu_header.
2347 (read_partial_die): Now supports the call to the new
2348 dwarf2_lookup_abbrev.
2349 (read_full_die): Now supports the call to the new
2350 dwarf2_lookup_abbrev.
2351
2352 2002-10-06 Christopher Faylor <cgf@redhat.com>
2353
2354 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2355 insure that shell variables, such as "transformed_name" are propagated
2356 to later shell statements in rule.
2357
2358 2002-10-06 Mark Kettenis <kettenis@gnu.org>
2359
2360 * config/i386/nm-i386sco.h: Add protection against
2361 multiple-inclusion. Include "i386/nm-i386v.h".
2362 (REGISTER_U_ADDR): Remove define.
2363 (i386_register_u_addr): Remove prototype.
2364
2365 2002-10-04 Michael Snyder <msnyder@redhat.com>
2366
2367 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2368 before treating it as a single-step event.
2369
2370 2002-10-03 Adam Fedor <fedor@gnu.org>
2371
2372 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2373 (objc_demangle): Remove assignment in if statements, Replace
2374 free with xfree.
2375 (add_msglist): Likewise.
2376 (end_msglist): Likewise.
2377 (complare_selectors): Likewise.
2378 (selectors_info): Likewise.
2379 (compare_classes): Likewise.
2380 (classes_info): Likewise.
2381 (print_object_command): Likewise.
2382 (find_objc_msgcall_submethod): Replace PTR with void *.
2383 * objc-lang.h: Remove check for __STDC__.
2384
2385 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2386
2387 * ui-out.h (ui_out_field_fmt_int): New prototype.
2388 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2389 of field width and alignment.
2390 * stack.c (print_frame_info_base): When printing frame level, use
2391 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2392 PR gdb/192
2393
2394 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
2395
2396 * MAINTAINERS: Add self to Write After Approval list.
2397
2398 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2399
2400 * infcmd.c (interrupt_target_command_wrapper): Delete.
2401 (interrupt_target_command): Make non static.
2402 (nofp_registers_info): Make static.
2403 * stack.c (return_command_wrapper): Delete.
2404 (return_command): Make non static.
2405
2406 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2407
2408 * event-top.c (gdb_setup_readline): New function. Code moved from
2409 _initialize_event_loop().
2410 (_initialize_event_loop): Call gdb_setup_readline().
2411
2412 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2413
2414 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2415 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2416 * gdbarch.h, gdbarch.c: Re-generate.
2417
2418 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
2419
2420 Fix PR gdb/778
2421 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2422 before recursing.
2423 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2424 of fill_in_vptr_fieldno.
2425
2426 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
2427
2428 * inferior.h (registers_info, stepi_command, nexti_command,
2429 continue_command, interrupt_target_command): Export from infcmd.c.
2430 * frame.h (args_info, selected_frame_level_changed_hook,
2431 return_command): Export from stack.c.
2432 * v850ice.c (stepi_command, nexti_command, continue_command): use
2433 prototypes from inferior.h.
2434 * tracepoint.c (registers_info, args_info, locals_info): Use
2435 prototypes from frame.h and inferior.h.
2436 * Makefile.in (mi-main.o): Add dependency on frame.h.
2437
2438 2002-10-02 Andrew Cagney <ac131313@redhat.com>
2439
2440 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2441 value in register 3 adjusted by ppc_gp0_regnum.
2442
2443 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2444
2445 2002-10-02 Marko Mlinar <markom@opencores.org>
2446
2447 * MAINTAINERS: Add myself to the Write After Approval list.
2448
2449 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
2450
2451 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2452 of the section for the N64 ABI, fixed.
2453
2454 * config/mips/tm-irix6.h: Include solib.h.
2455
2456 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
2457
2458 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2459 GNU operators.
2460
2461 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2462
2463 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2464 and that "mi0" syntax has been removed.
2465
2466 2002-09-30 David Carlton <carlton@math.stanford.edu>
2467
2468 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2469 * ppc-sysv-tdep.c: #include "gdb_string.h".
2470 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2471 pacify GCC.
2472
2473 2002-10-01 Andrew Cagney <ac131313@redhat.com>
2474
2475 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2476 "vrsave"'s register number.
2477
2478 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2479
2480 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2481 use frame_unwind_signed_register to obtain the PC.
2482 (mips_frame_chain): Handle a generic dummy frame.
2483 (mips_init_extra_frame_info): When a generic dummy frame, don't
2484 re-compute the frame base.
2485 (mips_pop_frame): Handle generic dummy frames.
2486 (mips_gdbarch_init): When generic dummy frames, set
2487 use_generic_dummy_frames, push_dummy_frame to
2488 generic_push_dummy_frame, pc_in_call_dummy to
2489 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2490 generic_save_dummy_frame_tos.
2491
2492 2002-09-30 Andrew Cagney <ac131313@redhat.com>
2493
2494 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2495 against TOP when TOP was explictly set.
2496 (generic_push_dummy_frame): Set TOP to zero.
2497
2498 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
2499
2500 * event-loop.c (start_event_loop): Rename variable 'result' to
2501 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2502
2503 2002-09-30 Keith Seitz <keiths@redhat.com>
2504
2505 * gdb-events.sh (selected_thread_changed): New event.
2506 * gdb-events.c: Regenerated.
2507 * gdb-events.h: Regenerated.
2508
2509 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2510
2511 * MAINTAINERS: Add self to Write After Approval list.
2512
2513 2002-09-30 Fernando Nasser <fnasser@redhat.com>
2514
2515 * disasm.c: New file.
2516 * disasm.h: New file.
2517 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
2518 (compare_lines): Ditto.
2519 (dump_insns): Ditto.
2520 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
2521 argument.
2522 (do_assembly_only): Ditto.
2523 (do_disassembly): Renamed to gdb_disassembly and moved to
2524 disasm.c. Sdded uiout argument.
2525 * Makefile.in: Add new files. Reorder SFILES list. Update
2526 dependencies. Include libgdb.a later in the insight executable.
2527
2528 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2529
2530 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
2531 bfd/elf64-alpha-fbsd.c.
2532
2533 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2534
2535 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
2536 i386gnu-tdep.c.
2537
2538 2002-09-29 Andrew Cagney <ac131313@redhat.com>
2539
2540 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
2541 __FUNCTION__.
2542 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
2543 function name.
2544 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
2545 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
2546 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
2547 (S_msg_sig_post_reply): Ditto.
2548
2549 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
2550
2551 * sh-tdep.c (sh_use_struct_convention): Use definition according
2552 to ABI.
2553 (sh_push_arguments): Store in register with correct endianess.
2554 (sh_default_store_return_value): Ditto.
2555 (sh_gdbarch_init): Set sizeof long double to 8.
2556
2557 2002-09-27 Mark Kettenis <kettenis@gnu.org>
2558
2559 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
2560 Fix some whitespace problems.
2561
2562 2002-09-27 David Carlton <carlton@math.stanford.edu>
2563
2564 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
2565 (mcore-tdep.o): Ditto.
2566 (ns32k-tdep.o): Ditto.
2567 (ns32knbsd-tdep.o): Ditto.
2568 (sh3-rom.o): Ditto.
2569 (vax-tdep.o): Ditto.
2570 * cris-tdep.c: #include "gdb_string.h"
2571 * mcore-tdep.c: Ditto.
2572 * ns32k-tdep.c: Ditto.
2573 * ns32knbsd-tdep.c: Ditto.
2574 * sh3-rom.c: Ditto.
2575 * vax-tdep.c: Ditto.
2576
2577 2002-09-27 David Carlton <carlton@math.stanford.edu>
2578
2579 * config/djgpp/fnchange.lst: Add entries for
2580 gdb/testsuite/gdb.c++/m-static files.
2581
2582 2002-09-27 Jim Wilson <wilson@redhat.com>
2583
2584 * MAINTAINERS: Add myself to the Write After Approval list.
2585
2586 2002-09-26 Martin M. Hunt <hunt@redhat.com>
2587
2588 * mips-tdep.c (find_proc_desc): Initialize startaddr.
2589
2590
2591 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2592
2593 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
2594 frame.
2595
2596 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2597
2598 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
2599 (rs6000_struct_return_address): Delete variable.
2600 (rs6000_store_struct_return): Update.
2601 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
2602 deprecated_extract_struct_value_address.
2603 (rs6000_frame_align): New function.
2604 (rs6000_gdbarch_init): Set frame_align.
2605
2606 2002-09-26 Andrew Cagney <ac131313@redhat.com>
2607
2608 From Grace Sainsbury <graces@redhat.com>:
2609 * Makefile.in (gdbtk-main.o): New target.
2610 (gdb.o): New target.
2611 (main_h): Define.
2612 (main.o): Update dependencies.
2613 (gdb$(EXEEXT)): Add gdb.o.
2614 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
2615 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
2616 (SUBDIR_GDBTK_CLEAN): Set.
2617 (install-gdbtk): Install the insight binary.
2618 (uninstall-gdbtk): New target.
2619 (all-gdbtk, clean-gdbtk): New rule.
2620 * top.c (use_windows): Default to zero.
2621 * main.c: Include "main.h".
2622 (main): Delete.
2623 (struct captured_main_args): Delete.
2624 (gdb_main): New function.
2625 * main.h: New file.
2626 * gdb.c: New File.
2627
2628 2002-09-25 Andrew Cagney <cagney@redhat.com>
2629
2630 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
2631 (frame_map_regnum_to_name): New function.
2632 (frame_map_name_to_regnum): New function.
2633 * frame.h (frame_map_name_to_regnum): Declare.
2634 (frame_map_regnum_to_name): Declare.
2635 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
2636 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
2637 * parse.c: Do not include "builtin-regs.h".
2638 (target_map_name_to_register): Delete function.
2639 (write_dollar_variable): Use frame_map_name_to_regnum.
2640 * parser-defs.h (target_map_name_to_register): Delete declaration.
2641 * expprint.c: Include "frame.h".
2642 (print_subexp): Use frame_map_regnum_to_name.
2643 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
2644 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
2645
2646 2002-09-25 Andrew Cagney <ac131313@redhat.com>
2647
2648 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
2649 wasn't saved, and the next innermost frame is a dummy, return the
2650 dummy frame's link register.
2651
2652 2002-09-24 Jim Blandy <jimb@redhat.com>
2653
2654 Fix from Paul Breed:
2655 * main.c (captured_main): Add a `break' after the case for 'b'.
2656
2657 2002-09-24 Keith Seitz <keiths@redhat.com>
2658
2659 * varobj.c (c_type_of_child): Use get_target_type instead
2660 of TYPE_TARGET_TYPE.
2661
2662 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2663
2664 * source.c (get_current_or_default_source_symtab_and_line): Remove
2665 function.
2666 (set_default_source_symtab_and_line): New function. Attempts to
2667 determine a source file to list lines from if one is not currently
2668 defined.
2669 (get_current_source_symtab_and_line): Initialize sal.pc and
2670 sal.end fields.
2671 (set_current_source_symtab_and_line): Mark argument as const.
2672 * source.h: Update declarations and comments.
2673 * linespec.c (decode_line_1): Replace call to removed routine above.
2674 * stack.c (print_frame_info_base): Ditto.
2675 * cli/cli-cmds.c (edit_command): Ditto.
2676 (list_command): Ditto.
2677
2678 2002-09-22 Fernando Nasser <fnasser@redhat.com>
2679
2680 * source.c (get_current_or_default_source_symtab_and_line): Initialize
2681 sal.pc and sal.end fields.
2682 (get_current_or_default_source_symtab_and_line): Ditto.
2683 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
2684 so we do not cause a new source symtab to be searched for (reverting an
2685 unintentional change from the 2002-09-20 patch).
2686 * scm-lang.c (scm_unpac): Ditto.
2687
2688 2002-09-21 Andrew Cagney <cagney@redhat.com>
2689
2690 * complaints.c (symfile_explanations): Remove new-line from
2691 ``isolated_message''.
2692 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
2693 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
2694
2695 2002-09-20 Nick Clifton <nickc@redhat.com>
2696
2697 * NEWS: Announce that V850EA ISA is no longer supported.
2698 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
2699
2700 2002-09-20 David Carlton <carlton@math.stanford.edu>
2701
2702 * Makefile.in (c-lang.o): Correct dependencies.
2703 (utils.o): Gather dependencies.
2704 (charset.o): Move.
2705 * c-lang.c: #include "gdb_string.h"
2706
2707 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2708
2709 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
2710 * cli/cli-cmds.c (list_command): New function. Implements the new
2711 cli edit command.
2712 (_init_cli_cmds): Add new command definition.
2713 * gdb.1: Document edit command.
2714 * doc/gdb.texinfo: Document edit command.
2715
2716 2002-09-20 Fernando Nasser <fnasser@redhat.com>
2717
2718 * source.c: Make global variables current_source_symtab and
2719 current_source_line static.
2720 (list_command): Moved to cli/cli-cmds.c.
2721 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
2722 (get_first_line_listed): New accessor function.
2723 (get_lines_to_list): New accessor function.
2724 (get_current_source_symtab_and_line): New function. Retrieves the
2725 position in the source code that we consider current.
2726 (get_current_or_default_source_symtab_and_line): New function.
2727 Like the above but attempts to determine a default position if one
2728 is not currently defined.
2729 (set_current_source_symtab_and_line): New function. Sets the source
2730 code position considered current and returns the previously set one.
2731 (clear_current_source_symtab_and_line): Reset stored information about
2732 a current source line.
2733 (_initialize_source): Remove registration for the "list" command and
2734 its alias.
2735 * source.h: Add declarations for the new functions above.
2736 * symtab.h: Remove declarations for the global variables mentioned
2737 above.
2738 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
2739 obtain current source line.
2740 * linespec.c (decode_line_1): Ditto.
2741 * macroscope.c (default_macro_scope): Ditto.
2742 * scm-lang.c (scm_unpac): Ditto.
2743 * stack.c (print_frame_info_base): Ditto.
2744 * symfile.c (clear_symtab_users): Ditto.
2745 * symtab.c (decode_line_spec): Ditto.
2746 * cli/cli-cmds.c (list_command): Moved here from source.c.
2747 (ambiguous_line_spec): Moved here from source.c.
2748 (_init_cli_cmds): Add definition for "list" and its alias.
2749 * Makefile.in: Update dependencies.
2750
2751 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2752
2753 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
2754 with what gcc thinks is correct.
2755
2756 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
2757
2758 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
2759 multiple register push instruction.
2760
2761 2002-09-19 Jim Blandy <jimb@redhat.com>
2762
2763 Add support for distinct host and target character sets.
2764 * charset.c, charset.h: New files.
2765 * c-exp.y: #include "charset.h".
2766 (yylex): Convert character and string literals to the target
2767 character set, before returning them as the semantic value of the
2768 token.
2769 * c-lang.c: #include "charset.h".
2770 (c_emit_char): Use charset-specific methods to recognize
2771 characters with backslash escape forms, to decide which characters
2772 to print literally and which to print using numeric escape
2773 sequences, and to convert target characters to host characters
2774 before printing.
2775 * utils.c: #include "charset.h".
2776 (no_control_char_error): New function.
2777 (parse_escape): Use charset-specific methods to recognize
2778 backslash escapes, parse `control character' notation, and convert
2779 characters from the host character set to the target character set.
2780 * configure.in: Set the default host character set.
2781 Check where to find iconv, and what its argument types might be.
2782 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
2783 * Makefile.in (SFILES): List charset.c.
2784 (COMMON_OBS): List charset.o.
2785 (charset.o): New rule.
2786 (charset_h): New header dependency variable.
2787 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
2788 (LIBICONV): New variable, set by configure.
2789 (CLIBS): Include $(LIBICONV) here.
2790 * aclocal.m4, config.in, configure: Regenerated.
2791
2792 2002-09-19 Joel Brobecker <brobecker@gnat.com>
2793
2794 * ada-exp.y: Add missing semicolons to end rules. Fixes a
2795 bison 1.35 warning.
2796
2797 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
2798
2799 * gdb_mbuild.sh: New file.
2800
2801 2002-09-19 Andrew Cagney <ac131313@redhat.com>
2802
2803 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
2804
2805 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2806
2807 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
2808 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
2809 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
2810 valops.c, value.h: Revert previous change.
2811
2812 2002-09-18 Michael Snyder <msnyder@redhat.com>
2813
2814 Preliminary support for Objective-C:
2815 * defs.h (language_objc): New enum value.
2816 (puts_filtered_tabular): Declaration only, exported from utils.c.
2817 (skip_quoted): Delete, declared in completer.h.
2818 * c-exp.y: Include completer.h.
2819 * p-exp.y: Ditto.
2820 * jv-exp.y: Ditto.
2821 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
2822 New operator enum values.
2823 * language.h (CAST_IS_CONVERSION): Test for language_objc.
2824 * language.c (binop_result_type): Handle language_objc case.
2825 (integral_type, character_type, string_type, boolean_type,
2826 structured_type, binop_type_check): Ditto.
2827 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
2828 (struct objc_specific): Add to general_symbol_info.
2829 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
2830 (SYMBOL_DEMANGLED_NAME): Handle objc case.
2831 * parser-defs.h (struct objc_class_str): New struct type.
2832 (start_msglist, end_msglist, add_msglist): Declaration only,
2833 exported from objc-lang.c.
2834 * value.h (value_of_local, value_nsstring,
2835 call_function_by_hand_expecting_type): Exported from valops.c.
2836 * valops.c (find_function_addr): Export.
2837 (call_function_by_hand_expecting_type): New function.
2838 (value_of_local): New function.
2839 * symfile.c (init_filename_language_table): Add ".m" extension
2840 for Objective-C.
2841 * utils.c (puts_filtered_tabular): New function.
2842 (fprintf_symbol_filtered): Add objc demangling support (disabled).
2843 (set/show demangle): Extend help-string to refer to ObjC.
2844 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
2845 * stabsread.c (symbol_reference_defined): Objective-C symbols
2846 may contain colons: make allowances when scanning stabs strings
2847 for colons.
2848 (objc_find_colon): New function.
2849 * printcmd.c (address_info): If language == objc then print
2850 "self" instead of "this".
2851 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
2852 OP_NSSTRING, and OP_SELF.
2853 (prefixify_subexp): Ditto.
2854 * source.c (print_source_lines): Mention objc in comment.
2855 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
2856 method names.
2857
2858 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2859
2860 * complaints.h: Update copyright.
2861 (struct complaints): Declare.
2862 (struct complaint): Make `message' constant.
2863 (internal_complaint): Declare.
2864 (complaint): Declare.
2865 (complaint_root): Delete declaration.
2866 (symfile_complaints): Delete declaration.
2867 (struct complaints): Add opaque declaration.
2868 (clear_complaints): Add a complaints parameter.
2869 * complaints.c: Update copyright.
2870 (enum complaint_series): Define.
2871 (complaint_root): Delete.
2872 (struct complaints): Define.
2873 (complaint_sentinel, symfile_complaint_book): New variables.
2874 (symfile_explanations, symfile_complaints): New variables.
2875 New variables.
2876 (get_complaints): New function.
2877 (vcomplaint): New function.
2878 (complaint): New function.
2879 (internal_complaint): New function.
2880 (complain): Call vcomplain with symfile_complaint.
2881 (clear_complaints): Rewrite.
2882 (_initialize_complaints): Use add_setshow_command.
2883 * Makefile.in (complaints.o): Update dependencies.
2884 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
2885 to call to clear_complaints.
2886 (new_symfile_objfile, reread_symbols): Ditto.
2887 (oldsyms_complaint): Delete.
2888 (empty_symtab_complaint, unknown_option_complaint): Delete.
2889 (free_named_symtabs): Use complaint instead of complain.
2890
2891 2002-09-18 Michael Snyder <msnyder@redhat.com>
2892
2893 Contributed by Apple Computer, Inc. Merged with current sources
2894 by Adam Fedor <fedor@doc.com> [cagney].
2895
2896 * objc-lang.c: First clean-up round: comments, indentation.
2897 * objc-lang.h: Ditto.
2898 * objc-lang.y: Ditto.
2899
2900 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2901
2902 * maint.c (maintenance_internal_error): Print the parameter as the
2903 error message.
2904 (maintenance_internal_warning): New function.
2905 (_initialize_maint_cmds): Add command `maint internal-warning'.
2906
2907 * defs.h (internal_warning, internal_vwarning): Declare.
2908 * utils.c (struct internal_problem): Define.
2909 (internal_vproblem): New function.
2910 (internal_warning): New function.
2911 (internal_vwarning): New function.
2912 (internal_warning_problem, internal_error_problem): New variables.
2913 (internal_verror): Just call internal_vproblem.
2914
2915 2002-09-18 Michael Snyder <msnyder@redhat.com>
2916
2917 * objc-lang.c: New file, support for Objective-C.
2918 Preliminary check-in, not yet integrated into gdb.
2919 * objc-lang.h: New file.
2920 * objc-exp.y: New file.
2921
2922 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2923
2924 * infrun.c (signal_stop_update): Convert definition to ISO C.
2925 (signal_print_update): Ditto.
2926 (signal_pass_update): Ditto.
2927 * inflow.c (terminal_save_ours): Ditto.
2928
2929 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
2930 comments.
2931
2932 * config/djgpp/fnchange.lst: Handle name clashes between
2933 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
2934 bfd/coff-tic80.c.
2935
2936 * i386-linux-tdep.h: Fix tipo.
2937
2938 2002-09-18 Adam Fedor <fedor@gnu.org>
2939
2940 * MAINTAINERS: Add myself to the Write After Approval list.
2941
2942 2002-09-18 Jim Blandy <jimb@redhat.com>
2943
2944 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
2945 texthigh and textlow to reader-specific structs caused
2946 objfile_relocate to miss them. This is fixable, but the work that
2947 the change was supposed to prepare GDB for never got done anyway.
2948
2949 2002-09-18 David Carlton <carlton@math.stanford.edu>
2950
2951 * MAINTAINERS: Alphabetize Write After Approval list.
2952
2953 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
2954
2955 Fix PR gdb/709
2956 * values.c (value_static_field): Call read_var_value.
2957
2958 2002-09-18 Andrew Cagney <ac131313@redhat.com>
2959
2960 * valops.c (hand_function_call): Align the initial stack pointer
2961 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
2962 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
2963 return value.
2964 * mips-tdep.c (mips_frame_align): New function.
2965 (mips_gdbarch_init): Set frame_align.
2966 * gdbarch.sh (FRAME_ALIGN): New method.
2967 * gdbarch.h, gdbarch.c: Re-generate.
2968
2969 2002-09-18 Michal Ludvig <mludvig@suse.cz>
2970
2971 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
2972 registers.
2973
2974 2002-09-17 Andrew Cagney <ac131313@redhat.com>
2975
2976 * NEWS: Mention that MIPS $fp behavior changed.
2977 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
2978 reference to FP_REGNUM.
2979 (mipsnbsd_cannot_store_register): Ditto.
2980 * mips-linux-nat.c: Update copyright.
2981 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
2982 (mips_linux_cannot_store_register): Ditto.
2983 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
2984 * config/mips/tm-mips.h: Update copyright.
2985 (FP_REGNUM): Delete macro.
2986 (MIPS_REGISTER_NAMES): Replace "fp" with "".
2987 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
2988 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
2989 (mips_r3041_reg_names, mips_r3051_reg_names)
2990 (mips_r3081_reg_names): Replace "fp" with "".
2991 Fix PR gdb/480.
2992
2993 2002-09-17 Theodore A. Roth <troth@verinet.com>
2994
2995 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
2996 generic_read_register_dummy() (PR gdb/703).
2997 (avr_push_return_address): #if 0 out unused vars.
2998 (avr_gdbarch_init): Enable use of avr_push_return_address().
2999
3000 2002-09-17 Michael Snyder <msnyder@redhat.com>
3001
3002 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
3003 RTE will take care of it.
3004
3005 2002-09-17 Andrew Cagney <ac131313@redhat.com>
3006
3007 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3008 invalid, return SP_REGNUM.
3009
3010 2002-09-17 Michael Snyder <msnyder@redhat.com>
3011
3012 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3013 point registers without sign extension.
3014
3015 2002-09-17 Andrew Cagney <cagney@redhat.com>
3016
3017 * blockframe.c (deprecated_read_register_dummy): Rename
3018 generic_read_register_dummy.
3019 * frame.c (frame_unwind_signed_register): New function.
3020 (frame_unwind_unsigned_register): New function.
3021 * frame.h (frame_unwind_signed_register): Declare.
3022 (frame_unwind_unsigned_register): Declare.
3023 (deprecated_read_register_dummy): Rename
3024 generic_read_register_dummy.
3025
3026 * h8300-tdep.c (h8300_frame_chain): Update.
3027 (h8300_frame_saved_pc): Update.
3028 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3029 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3030 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3031 (s390_frame_chain): Update.
3032 * v850-tdep.c (v850_find_callers_reg): Update.
3033 (v850_frame_saved_pc): Update.
3034 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3035 (m32r_find_callers_reg): Update.
3036 (m32r_frame_saved_pc): Update.
3037 * sh-tdep.c (sh_find_callers_reg): Update.
3038 (sh64_get_saved_pr): Update.
3039 (sh_init_extra_frame_info): Update.
3040 (sh_init_extra_frame_info): Update.
3041 (sh64_init_extra_frame_info): Update.
3042 (sh64_init_extra_frame_info): Update.
3043 * mcore-tdep.c (mcore_find_callers_reg): Update.
3044 (mcore_frame_saved_pc): Update.
3045 (mcore_init_extra_frame_info): Update.
3046 * i386-tdep.c (i386_frame_saved_pc): Update.
3047 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3048 (ia64_init_extra_frame_info): Update.
3049 (ia64_init_extra_frame_info): Update.
3050 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3051 * cris-tdep.c (cris_init_extra_frame_info): Update.
3052 * avr-tdep.c (avr_frame_chain): Update.
3053 (avr_init_extra_frame_info): Update.
3054 (avr_frame_saved_pc): Update.
3055 * arm-tdep.c (arm_find_callers_reg): Update.
3056 (arm_init_extra_frame_info): Update.
3057 (arm_frame_saved_pc): Update.
3058
3059 2002-09-17 Tom Tromey <tromey@redhat.com>
3060
3061 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3062 is "'".
3063
3064 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
3065
3066 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3067 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3068 NEXT_PROLOGUE_INSN.
3069 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3070 NEXT_PROLOGUE_INSN.
3071
3072 2002-09-16 Joel Brobecker <brobecker@gnat.com>
3073
3074 * osfsolib.c: Remove file, replaced by solib-osf.c.
3075 * Makefile.in: Remove compilation rules for osfsolib.c.
3076
3077 2002-09-16 David Carlton <carlton@math.stanford.edu>
3078
3079 * cp-valprint.c (cp_print_class_method): Correct args to
3080 check_stub_method_group.
3081
3082 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
3083
3084 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3085 `set architecture'. Unify naming convention of functions.
3086 (h8300_skip_prologue): Improve prologue analysis.
3087 (h8300_push_arguments): Rewritten to more closely match GCC's
3088 bizarre argument-passing behavior, along with the comment describing
3089 said behavior.
3090 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3091 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3092 sim, remote-e7000.c, remote-hms.c and remote.c
3093
3094 2002-09-15 Mark Kettenis <kettenis@gnu.org>
3095
3096 * i386-tdep.c (gdb_print_insn_i386): Removed.
3097 (i386_print_insn): New function.
3098 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3099 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3100 tm_print_insn_info.
3101
3102 2002-09-14 Mark Kettenis <kettenis@gnu.org>
3103
3104 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3105 zero.
3106
3107 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
3108
3109 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3110 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3111 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3112
3113 2002-09-13 Christopher Faylor <cgf@redhat.com>
3114
3115 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3116
3117 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
3118
3119 * gdbtypes.c (check_stub_method): Make static.
3120 (check_stub_method_group): New function.
3121 * gdbtypes.h: Update prototypes.
3122 * cp-support.c: New file.
3123 * cp-support.h: New file.
3124
3125 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3126 (update_method_name_from_physname): New function.
3127 (read_member_functions): Correct method names for operators
3128 and v3 constructors/destructors. Separate v2 constructors and
3129 destructors.
3130 * Makefile.in (stabsread.o): Update dependencies.
3131 (SFILES): Add cp-support.c.
3132 (COMMON_OBS): Add cp-support.o.
3133 (cp_support_h, cp-support.o): Add.
3134
3135 * cp-valprint.c (cp_print_class_method): Call
3136 check_stub_method_group instead of check_stub_method. Remove
3137 extraneous QUITs.
3138 * p-valprint.c (pascal_object_print_class_method): Likewise.
3139 * valops.c (search_struct_method): Likewise.
3140 (find_method_list, value_struct_elt_for_reference): Likewise.
3141
3142 2002-09-13 Andrew Cagney <cagney@redhat.com>
3143
3144 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3145 * gdbarch.h, gdbarch.c: Regenerate.
3146
3147 2002-09-13 Andrew Cagney <ac131313@redhat.com>
3148
3149 * frame.c (find_saved_register): Delete function.
3150 * frame.h (find_saved_register): Delete declaration.
3151 Fix PR gdb/631.
3152
3153 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
3154
3155 * mips-tdep.c (read_next_frame_reg): Re-hack using
3156 frame_register_unwind.
3157
3158 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
3159
3160 * mips-tdep.c (mips_get_saved_register): Re-hack using
3161 frame_register_unwind.
3162
3163 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3164
3165 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3166 vector. Will be useful for Interix.
3167 * gdbarch.h, gdbarch.c: Regenerate.
3168
3169 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3170 name of the malloc function by NAME_OF_MALLOC.
3171
3172 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3173
3174 * value.h (find_function_in_inferior): Add const keyword to
3175 one of the parameters. Allows us to invoke this function with
3176 a const char *.
3177 * valops.c (find_function_in_inferior): Likewise.
3178
3179 2002-09-12 Joel Brobecker <brobecker@gnat.com>
3180
3181 * exec.c (xfer_memory): Fix compilation warning with old versions
3182 of GCC.
3183 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3184
3185 2002-09-12 David Carlton <carlton@math.stanford.edu>
3186
3187 * symtab.h: Run through gdb_indent.h.
3188 Add 2002 to Copyright year list.
3189
3190 2002-09-12 Alan Modra <amodra@bigpond.net.au>
3191
3192 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3193 mach constants.
3194 * MAINTAINERS: Add myself to write after approval list.
3195
3196 2002-09-11 J. Brobecker <brobecker@gnat.com>
3197
3198 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3199
3200 2002-09-11 J. Brobecker <brobecker@gnat.com>
3201
3202 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3203 Interix.
3204
3205 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
3206
3207 * procfs.c (do_detach): Clear current signal, not just fault.
3208 Corrects problem with breakpoint trap signal leaking to detached
3209 process on Tru64.
3210
3211 2002-09-10 Michael Snyder <msnyder@redhat.com>
3212
3213 * buildsym.c (finish_block): Protect against null pointer.
3214
3215 2002-09-10 Andrew Cagney <cagney@redhat.com>
3216
3217 * infcmd.c (default_print_registers_info): Send all output to
3218 ``file'' instead of ``gdb_stdout''.
3219
3220 2002-09-10 Michael Snyder <msnyder@redhat.com>
3221
3222 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3223 LONGEST, and use signed register read (addresses are sign-
3224 extended for mips).
3225
3226 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
3227
3228 * event-loop.c (gdb_do_one_event): Make public.
3229 * event-loop.h (gdb_do_one_event): Declare.
3230
3231 2002-09-10 Jeff Law <law@redhat.com>
3232
3233 * infttrace.c (child_resume): Simplify and rework to avoid
3234 TT_PROC_CONTINUE.
3235
3236 2002-09-09 Fred Fish <fnf@intrinsity.com>
3237
3238 * printcmd.c (print_scalar_formatted): "len" is the number of
3239 target bytes, NOT the number of target bits.
3240
3241 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
3242
3243 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
3244 * top.c (init_main): Set rl_terminal_name.
3245
3246 2002-09-08 Aidan Skinner <aidan@velvet.net>
3247
3248 * ada-lang.c (ada_array_bound, ada_type_match,
3249 _initialize_ada_language): Fix K&R definitions.
3250 * ada-tasks.c (get_current_task): Fix K&R definitions.
3251 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3252
3253 2002-09-07 Christopher Faylor <cgf@redhat.com>
3254
3255 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3256 Add XP.
3257
3258 2002-09-06 Mark Kettenis <kettenis@gnu.org>
3259
3260 * i386-tdep.c (i386_register_virtual_type,
3261 i386_register_convertible, i386_register_convert_to_virtual,
3262 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3263 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3264 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3265 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3266 Don't set push_arguments twice.
3267
3268 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3269 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3270 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3271 sigtramp_end to NULL.
3272 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3273 defines.
3274 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3275
3276 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3277 whitespace.
3278
3279 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3280 * gdbarch.h, gdbarch.c: Re-generate.
3281 * blockframe.c (find_pc_sect_partial_function): Convert to use
3282 SIGTRAMP_START_P predicate.
3283
3284 2002-09-05 Michael Snyder <msnyder@redhat.com>
3285
3286 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3287 generic_dummy_frame method and old method. Also distinguish
3288 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
3289 (arm_extract_return_value): Use new regcache method.
3290
3291 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3292 adjustment that doesn't conform to the ABI.
3293 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3294 saved regcache, not from current regcache.
3295
3296 2002-09-05 Andrew Cagney <ac131313@redhat.com>
3297
3298 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3299 * README: Update.
3300
3301 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
3302
3303 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3304 if arm_apcs_32 is false.
3305
3306 2002-09-04 Andrew Cagney <ac131313@redhat.com>
3307
3308 GDB 5.3 branch created.
3309
3310 2002-09-03 Theodore A. Roth <troth@verinet.com>
3311
3312 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3313 generic_unwind_get_saved_register.
3314
3315 2002-09-03 David Carlton <carlton@math.stanford.edu>
3316
3317 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3318 argument (PR gdb/653). Update call to smash_to_method_type.
3319 (read_structure_scope): Update call to dwarf2_add_member_fn.
3320
3321 2002-09-03 Michal Ludvig <mludvig@suse.cz>
3322
3323 * x86-64-linux-tdep.c: Include gdb_string.h
3324 * x86-64-linux-nat.c: Ditto.
3325
3326 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3327
3328 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3329 when YYDEBUG is set to 1.
3330 * c-exp.y: Likewise.
3331 * f-exp.y: Likewise.
3332 * jv-exp.y: Likewise.
3333 * m2-exp.y: Likewise.
3334 * p-exp.y: Likewise.
3335
3336 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3337
3338 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3339 dependency list.
3340 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3341 solib_svr4_fetch_link_map_offsets to
3342 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3343 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3344 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3345 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3346 solib-svr4.o, and solib-legacy.o.
3347 * config/i386/tm-nbsd.h: Include solib.h.
3348
3349 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3350
3351 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3352 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3353 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3354 comment noting that this needs its own target configuration.
3355 * config/i386/nbsd.mt: New file.
3356 * config/i386/nbsdaout.mt: Remove.
3357 * config/i386/nbsdelf.mt: Ditto.
3358 * config/i386/tm-nbsdaout.h: Ditto.
3359
3360 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3361
3362 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3363 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3364 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3365 tdep->sigtramp_end.
3366 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3367 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3368 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3369
3370 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
3371
3372 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3373 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3374 * i386-tdep.h (i386bsd_init_abi): New prototype.
3375 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3376 function declaration.
3377 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3378 for NetBSD-a.out or NetBSD-ELF.
3379 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3380 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3381 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3382 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3383 and nbsd-tdep.h.
3384 (i386nbsd_pc_in_sigtramp): New function.
3385 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3386 i386nbsd_pc_in_sigtramp.
3387 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3388 and i386nbsdelf_init_abi OS ABI handlers.
3389 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3390 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3391
3392 2002-09-02 Mark Kettenis <kettenis@gnu.org>
3393
3394 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3395 registers if the target really has them.
3396
3397 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3398
3399 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3400 than nbsd-tdep.h.
3401
3402 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3403
3404 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3405 list.
3406 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3407 (alphanbsd_skip_sigtramp_frame): New functions.
3408 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3409 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3410 to alphanbsd_sigcontext_addr.
3411
3412 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
3413
3414 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3415 list.
3416 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3417 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3418 nbsd_pc_in_sigtramp.
3419 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3420 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3421 * nbsd-tdep.c: Include gdb_string.h.
3422 (nbsd_pc_in_sigtramp): New function.
3423 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3424 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3425 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3426 ppcnbsd_pc_in_sigtramp.
3427 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3428 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3429 shnbsd_pc_in_sigtramp.
3430 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3431 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3432 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3433
3434 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
3435
3436 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3437 watchpoints to NULL.
3438 (insert_breakpoints): set val field of watchpoints if NULL.
3439
3440
3441 2002-08-29 Jim Blandy <jimb@redhat.com>
3442
3443 * symtab.c (lookup_symbol_aux): In the cases where we find a
3444 minimal symbol of an appropriate name and use its address to
3445 select a symtab to read and search, use `name' (as passed to us)
3446 as the demangled name when searching the symtab's global and
3447 static blocks, not the minsym's name.
3448
3449 2002-08-29 Keith Seitz <keiths@redhat.com>
3450
3451 * stack.c (print_frame_info_base): Always set current_source_symtab
3452 and current_source_line.
3453
3454 2002-08-29 Donn Terry <donnte@microsoft.com>
3455
3456 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3457
3458 2002-08-28 Keith Seitz <keiths@redhat.com>
3459
3460 * stack.c (select_frame): Add FIXME concerning selected-frame
3461 events.
3462 (select_frame_command): Send selected-frame-level-changed
3463 event notification, but only if the level actually changed.
3464 (up_silently_base): Add selected-frame-level-changed event
3465 notification.
3466 (down_silently_base): Likewise.
3467
3468 2002-08-28 Andrew Cagney <ac131313@redhat.com>
3469
3470 * Makefile.in: Update dependencies for all gdb/*.c files.
3471
3472 2002-08-27 Tom Tromey <tromey@redhat.com>
3473
3474 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3475 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3476 Update dependencies.
3477 * i387-tdep.c: Include gdb_string.h.
3478 * osabi.c: Likewise.
3479 * i386-linux-nat.c: Likewise.
3480 * lin-lwp.c: Likewise.
3481 * ax-gdb.c: Likewise.
3482 * signals/signals.c: Likewise.
3483 * jv-valprint.c: Likewise.
3484 * p-lang.c: Likewise.
3485 * c-valprint.c: Likewise.
3486 * cp-abi.c: Likewise.
3487
3488 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
3489
3490 * cli/cli-script.h (copy_command_lines): Export.
3491 * breakpoint.c: Include cli/cli-script.h.
3492 * Makefile.in (breakpoint.o): Update dependencies.
3493
3494 2002-08-26 Michael Snyder <msnyder@redhat.com>
3495
3496 * breakpoint.c (insert_breakpoints): Protect all references
3497 to 'process_warning'. Shorten long lines.
3498
3499 2002-08-26 Joel Brobecker <brobecker@gnat.com>
3500
3501 * cli/cli-script.c (copy_command_lines): New function.
3502 * defs.h (copy_command_lines): Export.
3503 * testsuite/gdb.base/commands.exp: New tests for commands
3504 attached to a temporary breakpoint, and for commands that
3505 delete the breakpoint they are attached to.
3506
3507 2002-08-26 Michael Snyder <msnyder@redhat.com>
3508
3509 * breakpoint.c (bpstat_stop_status): Instead of copying the
3510 pointer to the breakpoint commands struct, make a new copy
3511 of the struct and point to that.
3512 (bpstat_clear): Free the commands struct.
3513 (bpstat_clear_actions): Free the commands struct.
3514 (bpstat_do_actions): Free the command actions. Also execute
3515 the local cleanups, instead of deleting them.
3516 (delete_breakpoint): Leave the commands field of the bpstat
3517 chain alone -- it will be freed later.
3518
3519 2002-08-26 Kevin Buettner <kevinb@redhat.com>
3520
3521 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
3522 deleted in 2002-08-20 commit. This function is still used by
3523 ppc-linux-nat.c.
3524
3525 2002-08-26 Keith Seitz <keiths@redhat.com>
3526
3527 * gdb-events.sh: Add selected-frame-level-changed event.
3528 * gdb-events.c: Regenerated.
3529 * gdb-events.h: Regenerated.
3530
3531 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
3532
3533 Fix PR gdb/393:
3534 * inflow.c (terminal_save_ours): New function to save terminal
3535 settings.
3536 * inferior.h (terminal_save_ours): Declare.
3537 * target.c (debug_to_terminal_save_ours): New function.
3538 (cleanup_target): Defaults to_terminal_save_ours.
3539 (update_current_target): Inherit to_terminal_save_ours.
3540 (setup_target_debug): Set to_terminal_save_ours.
3541 * target.h (target_terminal_save_ours): New to save terminal settings.
3542 (target_ops): New member to_terminal_save_ours.
3543 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
3544 * hpux-thread.c (init_hpux_thread_ops): Likewise.
3545 * inftarg.c (init_child_ops): Likewise.
3546 * m3-nat.c (init_m3_ops): Likewise.
3547 * procfs.c (init_procfs_ops): Likewise.
3548 * wince.c (init_child_ops): Likewise.
3549 * win32-nat.c (init_child_ops): Likewise.
3550 * sol-thread.c (init_sol_thread_ops): Likewise.
3551
3552 2002-08-26 Mark Kettenis <kettenis@gnu.org>
3553
3554 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
3555 use regcache_* functions.
3556 (i386_gdbarch_init): Set store_return_value instead of
3557 deprecated_store_return_value.
3558
3559 * regcache.c (regcache_raw_write_signed,
3560 regcache_raw_write_unsigned): New functions.
3561 * regcache.h (regcache_raw_write_signed,
3562 regcache_raw_write_unsigned): New prototypes.
3563
3564 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3565
3566 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
3567 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
3568 source file dependencies. Cleanup corresponding generator rules.
3569
3570 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3571
3572 * regcache.h (register_offset_hack): Declare.
3573 (regcache_cooked_read_using_offset_hack): Declare.
3574 (regcache_cooked_write_using_offset_hack): Declare.
3575
3576 * regcache.c (register_offset_hack): New function.
3577 (regcache_cooked_read_using_offset_hack): New function.
3578 (regcache_cooked_write_using_offset_hack): New function.
3579 (regcache_dump): Check that the registers, according to their
3580 offset, are packed hard against each other.
3581 (cooked_xfer_using_offset_hack): New function.
3582
3583 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3584
3585 * regcache.c (struct regcache_descr): Add field register_type.
3586 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
3587 in as a parameter
3588 (init_regcache_descr): Initialize register_type. Pass the descr
3589 to init_legacy_regcache_descr. Use register_type instead of
3590 REGISTER_VIRTUAL_TYPE.
3591 (register_type): New function.
3592 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
3593 * regcache.h (register_type): Declare.
3594
3595 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3596
3597 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
3598 instead of deprecated_store_return_value. Fix fallout from
3599 2002-08-23 Andrew Cagney <cagney@redhat.com>.
3600
3601 2002-08-25 Andrew Cagney <ac131313@redhat.com>
3602
3603 * regcache.c (max_register_size): New function.
3604 (init_legacy_regcache_descr): Ensure that max_register_size is
3605 large enough for REGISTER_VIRTUAL_SIZE.
3606 * regcache.h (max_register_size): Declare.
3607
3608 2002-08-24 Andrew Cagney <ac131313@redhat.com>
3609
3610 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
3611 store_return_value.
3612 (e500_extract_return_value): Change type of valbuf pointer to
3613 void.
3614
3615 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3616
3617 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
3618 workaround.
3619
3620 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
3621 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
3622 long long) to prevent compiler warning on 64-bit systems.
3623
3624 2002-08-23 Andrew Cagney <cagney@redhat.com>
3625
3626 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
3627 (DEPRECATED_STORE_RETURN_VALUE): New method.
3628 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
3629 * gdbarch.h, gdbarch.c: Re-generate.
3630
3631 * values.c (set_return_value): Pass current_regcache to
3632 STORE_RETURN_VALUE.
3633 * arch-utils.h (legacy_store_return_value): Declare.
3634 * arch-utils.c (legacy_store_return_value): New function.
3635 (legacy_extract_return_value): Update parameters.
3636
3637 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
3638 STORE_RETURN_VALUE.
3639 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3640 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3641 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3642 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3643 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3644 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3645 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3646 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3647 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3648 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
3649
3650 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3651 * i386-tdep.c (i386_extract_return_value): Update.
3652 * arch-utils.c (legacy_extract_return_value): Update.
3653 * frv-tdep.c (frv_gdbarch_init): Update.
3654 * cris-tdep.c (cris_gdbarch_init): Update.
3655 * d10v-tdep.c (d10v_gdbarch_init): Update.
3656 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3657 * m68k-tdep.c (m68k_gdbarch_init): Update.
3658 * mcore-tdep.c (mcore_gdbarch_init): Update.
3659 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3660 * s390-tdep.c (s390_gdbarch_init): Update.
3661 * sparc-tdep.c (sparc_gdbarch_init): Update.
3662 * sh-tdep.c (sh_gdbarch_init): Update.
3663 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
3664 * v850-tdep.c (v850_gdbarch_init): Update.
3665 * avr-tdep.c (avr_gdbarch_init): Update.
3666 * ia64-tdep.c (ia64_gdbarch_init): Update.
3667 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3668 * vax-tdep.c (vax_gdbarch_init): Update.
3669 * alpha-tdep.c (alpha_gdbarch_init): Update.
3670 * arm-tdep.c (arm_gdbarch_init): Update.
3671 * mips-tdep.c (mips_gdbarch_init): Update.
3672 * i386-tdep.c (i386_gdbarch_init): Update.
3673
3674 2002-08-23 Andrew Cagney <ac131313@redhat.com>
3675
3676 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
3677 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
3678
3679 2002-08-24 Mark Kettenis <kettenis@gnu.org>
3680
3681 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
3682 problems.
3683
3684 2002-08-23 Joel Brobecker <brobecker@gnat.com>
3685
3686 * infrun.c (handle_inferior_event): Move a comment outside of a
3687 function call, in order to avoid indent reformatting this part
3688 of the code in an unreadable way.
3689
3690 2002-08-23 Grace Sainsbury <graces@redhat.com>
3691
3692 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
3693 when breakpoints fail. Move general breakpoint error messages to
3694 insert_breakpoints.
3695 * breakpoint.c (insert_breakpoints): Change warnings when
3696 breakpoints are nto inserted to specify the type. Remove call to
3697 memory_error when hardware breakpoints can't be inserted. Remove
3698 multiple calls to warning so all messages are sent to the user at
3699 once.
3700 (delete_breakpoints): Make insert error messsages more explicit.
3701
3702 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
3703
3704 * ChangeLog: Move gdbserver entries after GDB 5.2 to
3705 gdbserver/ChangeLog.
3706
3707 2002-08-23 Mark Kettenis <kettenis@gnu.org>
3708
3709 * i386-tdep.c: Include "objfiles.h".
3710 (i386_svr4_init_abi): Set in_solib_call_trampoline and
3711 skip_trampoline_code.
3712 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
3713 (CPLUS_MARKER): Define to '.'.
3714
3715 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
3716 member.
3717 (linux_corefile_thread_callback): Increase args->num_notes.
3718 (linux_make_note_section): Initialize thread_args.num_notes, and
3719 use it to determine whether notes for any threads were created.
3720
3721 2002-08-23 Donn Terry <donnte@microsoft.com>
3722
3723 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
3724 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
3725 and PCUNKILL.
3726 (write_with_trace): Conditionalize out the switch branch handling
3727 PCSHOLD if the corresponding macro is not defined. Likewise for
3728 PRSABORT and PRSTOP.
3729 This change will be needed by the Interix port.
3730
3731 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3732
3733 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
3734 write_register wherever possible instead of manipulating the
3735 register bytes directly.
3736 Assign VALUE_CONTENTS to a variable and use that.
3737 The GPR numbers are now dependent on the architecture.
3738
3739 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3740
3741 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
3742 ev_offset fields.
3743 (skip_prologue): Add support for BookE/e500 instructions.
3744 (e500_extract_return_value): New function.
3745 (frame_get_saved_regs): Add support for saving ev registers and
3746 pseudo gpr's.
3747 (e500_store_return_value): New function.
3748 (rs6000_gdbarch_init): Move up default intializations of
3749 deprecated_extract_return_value and store_return_value. Overwrite
3750 init of store_return_value with e500 specific version.
3751 Set extract_return_value for e500.
3752
3753 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
3754
3755 * blockframe.c (generic_call_dummy_register_unwind): Use
3756 regcache_cooked_read to catch cases in which the variable is
3757 stored in a pseudo register.
3758
3759 2002-08-22 Andrew Cagney <cagney@redhat.com>
3760
3761 * NEWS: Mention that the i960 has been made obsolete.
3762 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
3763 i960-tdep.c
3764 (remote-nrom.o): Obsolete target.
3765 (remote-nindy.o, i960-tdep.o): Ditto.
3766 * remote-nrom.c: Make file obsolete.
3767 * remote-nindy.c, remote-vx960.c: Ditto.
3768 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
3769 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
3770 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
3771 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
3772 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
3773 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
3774 i960-*-vxworks* obsolete.
3775 * MAINTAINERS: Note that the i960 is obsolete.
3776
3777 2002-08-21 Corinna Vinschen <vinschen@redhat.com
3778
3779 * aix-thread.c (aix_thread_detach): Disable thread debugging on
3780 detach to allow reinitialization.
3781
3782 2002-08-22 Andrew Cagney <ac131313@redhat.com>
3783
3784 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
3785 attempt).
3786
3787 2002-08-22 Jim Blandy <jimb@redhat.com>
3788
3789 * coffread.c (coff_symfile_read): Don't try to read the line
3790 number table from disk if the image file doesn't have a symbol
3791 table; we'll never actually look at the info anyway, and Windows
3792 ships DLL's with bogus file offsets for the line number data.
3793
3794 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
3795
3796 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
3797 an e500 executable.
3798
3799 2002-08-21 Michael Snyder <msnyder@redhat.com>
3800
3801 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
3802 (MSYMBOL_SIZE): Replace macro with function.
3803 (DEFAULT_MIPS_TYPE): Delete unused macro.
3804 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3805 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
3806
3807 2002-08-21 Jim Blandy <jimb@redhat.com>
3808
3809 * valops.c (value_cast): Simplify and correct logic for doing a
3810 static cast from a pointer to a base class to a pointer to a
3811 derived class.
3812
3813 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3814
3815 * infcmd.c (default_print_registers_info): Replace
3816 do_registers_info.
3817 (registers_info): Use gdbarch_print_registers_info instead of
3818 DO_REGISTERS_INFO.
3819 * inferior.h (default_print_registers_info): Replace
3820 do_registers_info.
3821 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
3822 (DO_REGISTERS_INFO): Change to a predicate function.
3823 * gdbarch.h, gdbarch.c: Regenerate.
3824
3825 2002-08-21 Keith Seitz <keiths@redhat.com>
3826
3827 * gdb-events.sh: Add target-changed event.
3828 * gdb-events.c: Regenerated.
3829 * gdb-events.c: Regenerated.
3830 * valops.c (value_assign): Add target-changed event notification
3831 to inlval_register, lval_memory, and lval_reg_frame_relative.
3832
3833 2002-08-21 Joel Brobecker <brobecker@gnat.com>
3834
3835 * NEWS: Add an entry regarding the improvement of the next/step
3836 operation on Alpha Tru64 multi-processor machines.
3837
3838 2002-08-21 Andrew Cagney <ac131313@redhat.com>
3839
3840 * Makefile.in: Update dependencies for mi/ cli/ and tui/
3841 directores.
3842 * Makefile.in: Update all _h macro definitions.
3843 * Makefile.in (install-gdbtk): Move to install section.
3844 (rdi-share/libangsd.a): Move to end of file.
3845
3846 2002-08-19 Andrew Cagney <ac131313@redhat.com>
3847
3848 * frame.c (frame_register_unwind): When a register, set addrp to
3849 the register's byte.
3850
3851 2002-08-20 Michael Snyder <msnyder@redhat.com>
3852
3853 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
3854 used locally, so move them from the target machine header to here.
3855 (mips_set_processor_type, mips_register_name, mips32_next_pc,
3856 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
3857 Make static.
3858 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
3859
3860 2002-08-20 Andrew Cagney <cagney@redhat.com>
3861
3862 * NEWS: Mention that the Apollo line was made obsolete.
3863 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
3864 m68*-hp-hpux* obsolete.
3865 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
3866 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
3867 * buildsym.c (make_blockvector): Make static.
3868 * buildsym.h (make_blockvector): Make extern declaration obsolete.
3869 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
3870 (ALLDEPFILES): Remove dstread.c.
3871 (dstread.o): Obsolete make rule.
3872 * dstread.c: Makefile obsolete.
3873 * dst.h: Ditto.
3874 * config/m68k/hp300hpux.mt: Ditto.
3875 * config/m68k/hp300hpux.mh: Ditto.
3876 * config/m68k/hp300bsd.mt: Ditto.
3877 * config/m68k/hp300bsd.mh: Ditto.
3878 * config/m68k/apollo68b.mt: Ditto.
3879 * config/m68k/apollo68v.mh: Ditto.
3880 * config/m68k/apollo68b.mh: Ditto.
3881
3882 2002-08-20 Michael Snyder <msnyder@redhat.com>
3883
3884 * mips-tdep.c (mips_in_return_stub): Make static.
3885 (mips_gdbarch_init): Set in_solib_return_trampoline.
3886 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
3887
3888 2002-08-20 Michael Snyder <msnyder@redhat.com>
3889
3890 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
3891 * gdbarch.c, gdbarch.h: Regenerate.
3892 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
3893 Add.
3894 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
3895
3896 2002-08-20 Michael Snyder <msnyder@redhat.com>
3897
3898 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
3899 (mips_gdbarch_init): Set skip_trampoline_code,
3900 in_solib_call_trampoline.
3901 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
3902 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
3903
3904 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3905
3906 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
3907
3908 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
3909 vector type for ev registers.
3910 (e500_pseudo_register_read): New function.
3911 (e500_pseudo_register_write): New function.
3912 (e500_dwarf2_reg_to_regnum): New function.
3913 (PPC_UISA_NOFP_SPRS): New macro.
3914 (PPC_EV_REGS): New macro.
3915 (PPC_GPRS_PSEUDO_REGS): New macro.
3916 (registers_e500): New register set for e500.
3917 (variants): Add e500 variant.
3918 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
3919 before setting architectural dependent variations. Initialize ev
3920 registers numbers. Add case for e500 architecture. Set the
3921 number of pseudo registers.
3922
3923 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3924
3925 * rs6000-tdep.c: Clean up comments.
3926
3927 2002-08-20 Andrew Cagney <cagney@redhat.com>
3928
3929 * h8300-tdep.c: Re-indent file.
3930
3931 2002-08-20 Jim Blandy <jimb@redhat.com>
3932
3933 * Makefile.in (LDFLAGS): Allow the configure script to establish a
3934 default for this.
3935
3936 2002-08-20 Keith Seitz <keiths@redhat.com>
3937
3938 * breakpoints.c (watch_command_1): Use internal breakpoint
3939 when setting a watchpoint_scope breakpoint.
3940
3941 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
3942
3943 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
3944 (build_builtin_type_vec64i): Ditto.
3945 (build_builtin_type_vec128): Ditto.
3946 (build_builtin_type_vec128i): Ditto.
3947
3948 2002-08-19 Michael Snyder <msnyder@redhat.com>
3949
3950 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
3951 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
3952 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
3953 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
3954 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
3955 CALL_DUMMY_ADDRESS): Delete.
3956 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
3957 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
3958 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
3959 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
3960 push_return_address.
3961 (mips_register_raw_size, mips_eabi_use_struct_convention,
3962 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
3963 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
3964 mips_init_extra_frame_info, mips_eabi_push_arguments,
3965 mips_n32n64_push_arguments, mips_push_return_address,
3966 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
3967 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
3968
3969 2002-08-19 Michael Snyder <msnyder@redhat.com>
3970
3971 * mips-tdep.c (mips_frame_num_args): New function.
3972 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
3973 frame_saved_pc, frame_args_address, frame_locals_address,
3974 frame_num_args, and frame_args_skip.
3975 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
3976 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
3977 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
3978 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
3979
3980 2002-08-20 Michael Snyder <msnyder@redhat.com>
3981
3982 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
3983 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
3984 * mips-tdep.c (mips_store_struct_return): New function.
3985 (mips_extract_struct_value_address): New function.
3986 (mips_gdbarch_init): Set store_struct_return and
3987 extract_struct_value_address.
3988
3989 2002-08-20 David Carlton <carlton@math.stanford.edu>
3990
3991 * dwarf2read.c (dwarf2_build_psymtabs): Check that
3992 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
3993 (read_file_scope): Check that line_header is nonzero before
3994 decoding macro information.
3995
3996 2002-08-20 Mark Kettenis <kettenis@gnu.org>
3997
3998 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
3999 flag the general-purpose registers as floating-point on targets
4000 that don't support the floating-point registers.
4001
4002 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4003
4004 * rs6000-tdep.c (altivec_register_p): Delete.
4005 (rs6000_do_altivec_registers): Delete.
4006 (rs6000_altivec_registers_info): Delete.
4007 (rs6000_do_registers_info): Delete.
4008 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4009 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4010
4011 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
4012
4013 * infcmd.c (do_registers_info): Print vector registers in hex
4014 format only.
4015 (print_vector_info): Check that printing registers
4016 makes sense.
4017 (print_float_info): Ditto.
4018
4019 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4020
4021 * mips-tdep.c (mips_gdbarch_init): Update.
4022 (mips_o32_extract_return_value): Rewrite.
4023 (mips_o32_store_return_value): Rewrite.
4024 (mips_o32_xfer_return_value): New function.
4025 (mips_xfer_register): Tweak debug print message. Allow for
4026 buf_offset when dumping the value transfered.
4027
4028 2002-08-20 Andrew Cagney <ac131313@redhat.com>
4029
4030 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4031 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4032 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4033 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4034 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4035
4036 2002-08-14 Michael Snyder <msnyder@redhat.com>
4037
4038 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4039
4040 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4041
4042 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4043 register.
4044 (P): New macro to define a register as a pseudo register.
4045 (R, R4, R8, R16, FR32, R64, R0): Updated.
4046 (struct variant): Add new fields for number of pseudo registers
4047 and number of total registers.
4048 (tot_num_registers): New macro replacing....
4049 (num_registers): ...deleted macro.
4050 (num_registers): New function.
4051 (num_pseudo_registers): New function.
4052 (variants): Update all variants to intialize new fields correctly.
4053 Postpone initialization of number of pseudo regs and real regs.
4054 (init_variants): New function.
4055 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4056 registers offsets.
4057
4058 2002-08-19 David Carlton <carlton@math.stanford.edu>
4059
4060 * valops.c (search_struct_field): Change error message to treat
4061 return value of 0 from value_static_field as meaning that field is
4062 optimized out.
4063 (value_struct_elt_for_reference): Ditto.
4064 * values.c (value_static_field): Treat an unresolved location the
4065 same as a nonexistent symbol. Fix PR gdb/635.
4066 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4067 enclosed. Fix PR gdb/574.
4068 * MAINTAINERS: Add self to Write After Approval list.
4069
4070 2002-08-19 Andrew Cagney <ac131313@redhat.com>
4071
4072 * mips-tdep.c (mips_xfer_register): New function.
4073 (mips_n32n64_extract_return_value): Rewrite.
4074 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4075 instead of deprecated_extract_return_value.
4076
4077 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
4078
4079 * rs6000-tdep.c (TDEP): Delete macro.
4080 (branch_dest): Replace use of TDEP macro with its body.
4081 (rs6000_pop_frame): Ditto.
4082 (rs6000_push_arguments): Ditto.
4083 (rs6000_skip_trampoline_code): Ditto.
4084 (rs6000_frame_saved_pc): Ditto.
4085 (rs6000_frame_chain): Ditto.
4086 (rs6000_register_name): Ditto.
4087 (rs6000_register_byte): Ditto.
4088 (rs6000_register_raw_size): Ditto.
4089 (rs6000_register_virtual_type): Ditto.
4090 (rs6000_register_convertible): Ditto.
4091 (rs6000_convert_from_func_ptr_addr): Ditto.
4092
4093 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
4094
4095 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4096 conditionally.
4097 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4098 MIPS_LINUX_JB_ELEMENT_SIZE.
4099 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4100 for MAX_REGISTER_RAW_SIZE arrays.
4101 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4102 MIPS_LINUX_JB_ELEMENT_SIZE.
4103
4104 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
4105
4106 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4107
4108 2002-08-19 Aidan Skinner <aidan@velvet.net>
4109
4110 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4111 ada-valprint.c ada-tasks.c.
4112 (YYFILES): Add ada-exp.y.
4113 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4114 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4115 (ada-exp.tab.o): New target.
4116
4117 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4118
4119 * regcache.c (regcache_xfer_part): New function.
4120 (regcache_raw_read_part): New function.
4121 (regcache_raw_write_part): New function.
4122 (regcache_cooked_read_part): New function.
4123 (regcache_cooked_write_part): New function.
4124 * regcache.h (regcache_raw_read_part): Declare.
4125 (regcache_raw_write_part): Declare.
4126 (regcache_cooked_read_part): Declare.
4127 (regcache_cooked_write_part): Declare.
4128
4129 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
4130
4131 * remote.c (remote_open_1): Add async_p.
4132 (remote_async_open_1): Delete.
4133 (open_remote_target): Delete.
4134 (remote_open, extended_remote_open): Update calls to remote_open_1.
4135 (remote_async_open, extended_remote_async_open): Call
4136 remote_open_1 instead of remote_async_open_1.
4137
4138 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4139
4140 * blockframe.c: Fix a few coding standard violations.
4141
4142 2002-08-19 Mark Kettenis <kettenis@gnu.org>
4143
4144 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4145 here from ...
4146 * config/i386/tm-i386sco5.h: ... here. File removed.
4147 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4148
4149 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
4150 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4151 (TM_FILE): Set to tm-i386.h.
4152 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4153 * config/i386/tm-i386v.h: Remove file.
4154 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4155 instead of "i386/tm-i386v.h".
4156 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4157 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4158 "i386/tm-i386v.h".
4159 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4160 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4161 "i386/tm-i386.h".
4162
4163 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4164
4165 * config/i386/nm-i386v.h: Add protection against
4166 multiple-inclusion.
4167 (i386_register_u_addr): Remove prototype.
4168 (register_u_addr): New prototype.
4169 (REGISTER_U_ADDR): Redefine accordingly.
4170 * i386v-nat.c: Improve several comments.
4171 (i386_register_u_addr): Change signature and rename to
4172 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4173 ubase variable.
4174
4175 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4176
4177 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4178 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4179 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4180 deprecated_extract_return_value.
4181 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4182 rename mips_o32o64_push_arguments.
4183 (mips_gdbarch_init): Update.
4184 (mips_extract_return_value): Delete.
4185 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4186 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4187 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4188 (mips_n32n64_extract_return_value): Clone
4189 mips_extract_return_value.
4190 (mips_store_return_value): Delete.
4191 (mips_o32_store_return_value): Clone mips_store_return_value.
4192 (mips_o64_store_return_value): Clone mips_store_return_value.
4193 (mips_eabi_store_return_value): Clone mips_store_return_value.
4194 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4195
4196 2002-08-18 Aidan Skinner <aidan@velvet.net>
4197
4198 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4199 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4200
4201 2002-08-18 Aidan Skinner <aidan@velvet.net>
4202
4203 * ada-lang.c: Run through gdb_indent.sh.
4204 * ada-lang.h: Run through gdb_indent.sh.
4205 * ada-tasks.c: Run through gdb_indent.sh.
4206 * ada-typeprint.c: Run through gdb_indent.sh.
4207 * ada-valprint.c: Run through gdb_indent.sh.
4208
4209 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4210
4211 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4212 ABI.
4213
4214 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4215
4216 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4217
4218 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4219 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4220
4221 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4222 write_register_gen instead of write_register_bytes.
4223
4224 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4225 i[3456]-*-osf1mk* configurations have been made obsolete.
4226 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4227 i[3456]86-*-osf1mk* hosts obsolete.
4228 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4229 targets obsolete.
4230 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4231 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4232 config/i386/i386m3.mt, config/i386/nm-m3.h,
4233 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4234 config/i386/i386mk.mh, config/i386/i386mk.mt,
4235 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4236 obsolete.
4237 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4238 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4239 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4240
4241 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4242
4243 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4244 (hppa_value_returned_from_stack): Declare.
4245 (hppa_extract_return_value): Declare.
4246 * config/pa/hppa.mt: New file.
4247 * configure.tgt: Recognize hppa*-*-*.
4248 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4249
4250 2002-08-18 Mark Kettenis <kettenis@gnu.org>
4251
4252 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4253 comment.
4254
4255 2002-08-17 Mark Kettenis <kettenis@gnu.org>
4256
4257 * top.c (gdb_rl_operate_and_get_next): Make sure
4258 operate-and-get-next functions correctly even when the history
4259 list is completely filled.
4260
4261 2002-08-18 Andrew Cagney <ac131313@redhat.com>
4262
4263 * MAINTAINERS (Target Instruction Set Architectures): Rename
4264 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4265 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4266 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4267 already listed under Host/Native.
4268
4269 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4270 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4271 mips*-*-*.
4272
4273 2002-08-17 Andrew Cagney <ac131313@redhat.com>
4274
4275 * config/ia64/ia64.mt: New file.
4276 * config/alpha/alpha.mt: New file.
4277 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4278 ia64-linux-gnu. Mention that ia64-elf is broken.
4279 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4280
4281 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
4282
4283 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4284 generic_func_frame_valid instead of func_frame_valid.
4285
4286 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4287
4288 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4289 procfs appears to be broken when debugging on multi-processor
4290 machines. So enable software single stepping in order to avoid
4291 using the procfs interface to do next/step operations, using
4292 internal breakpoints instead.
4293
4294 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4295 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4296 make this pc address equal to the value it would have if the
4297 system stepping capability was used. Also set a new flag used
4298 to ensure that we don't readjust the PC one more time later.
4299
4300 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4301 address by DECR_PC_AFTER_BREAK when software single step is
4302 in use for this architecture, as this has already been taken
4303 care of in handle_inferior_event().
4304
4305 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4306
4307 * infrun.c (handle_inferior_event): Minor reformatting, to make
4308 a rather long condition expression easier to read.
4309
4310 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4311
4312 * Makefile.in (gdbtk.o): Move to end of file.
4313 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4314 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4315 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4316 (gdbtk-wrapper.o, gdbres.o): Ditto.
4317
4318 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4319
4320 * Makefile.in (copying.o): Separate out compile rule.
4321 (hpux-thread.o, procfs.o, signals.o): Ditto.
4322 (v850ice.o, z8k-tdep.o): Ditto.
4323 (tui-file.o): Move to TUI section.
4324 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4325 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4326
4327 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4328
4329 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4330 skip_trampoline_code, for better namespace-proofing.
4331
4332 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4333
4334 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4335
4336 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4337
4338 2002-08-16 Joel Brobecker <brobecker@gnat.com>
4339
4340 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4341 signal, check whether we hit a breakpoint before checking for a
4342 single step breakpoint. Otherwise, GDB fails to notice that a
4343 breakpoint has been hit when stepping onto a breakpoint.
4344
4345 2002-08-16 Keith Seitz <keiths@redhat.com>
4346
4347 * gdb-events.sh (clear_gdb_event_hooks): New function.
4348 * gdb-events.c: Regenerate.
4349 * gdb-events.h: Regenerate.
4350
4351 2002-08-16 Andrew Cagney <ac131313@redhat.com>
4352
4353 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4354 not_a_sw_breakpoint.
4355 * breakpoint.h (bpstat_stop_status): Add parameter names.
4356
4357 2002-08-16 Grace Sainsbury <graces@redhat.com>
4358
4359 * remote.c (remote_insert_hw_breakpoint)
4360 (remote_remove_hw_breakpoint): Fix calculation of length field
4361 for Z-packet.
4362
4363 2002-08-15 Michael Snyder <msnyder@redhat.com>
4364
4365 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4366 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4367 (supply_fpregset): Ditto.
4368
4369 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4370 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4371 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
4372 (TARGET_READ_SP): Delete.
4373 (DO_REGISTERS_INFO): Delete.
4374 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4375 Delete.
4376 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4377 from macros to functions.
4378
4379 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4380 (mips_register_convertible, mips_register_convert_to_virtual,
4381 mips_register_convert_to_raw): Make static.
4382 (mips_read_sp): New function.
4383 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
4384 (mips_do_registers_info): Make static.
4385 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
4386 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4387 (mips_register_convert_from_type, mips_register_convert_to_type):
4388 New functions.
4389 (mips_gdbarch_init): Set up function_start_offset,
4390 register_virtual_size, pc_in_sigtramp.
4391
4392 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4393
4394 * infcmd.c (vector_info): New function.
4395 (_initialize_infcmd): Add command "info vector".
4396 (print_vector_info): New function.
4397
4398 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4399 * gdbarch.h, gdbarch.c: Regenerate.
4400
4401 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4402
4403 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4404 ``print_all''. Only print vector registers when ``print_all''.
4405
4406 2002-08-15 Andrew Cagney <ac131313@redhat.com>
4407
4408 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4409 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4410
4411 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4412 Add `args' parameter.
4413 * gdbarch.h, gdbarch.c: Regenerate.
4414
4415 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4416
4417 * infcmd.c (float_info): Call print_float_info.
4418 (print_float_info): New function. By default, print the
4419 floating-point registers.
4420
4421 * arch-utils.h (default_print_float_info): Delete declaration.
4422 * arch-utils.c (default_print_float_info): Delete function.
4423
4424 2002-08-16 Mark Kettenis <kettenis@gnu.org>
4425
4426 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4427 out define.
4428
4429 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4430 FRAME.
4431
4432 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4433 * configure.host: Make i[3456]86-*-aix host obsolete.
4434 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4435 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4436 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4437 config/i386/xm-i386aix.h: Make files obsolete.
4438 * i386aix-nat.c: Make file obsolete.
4439 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4440 (i386aix-nat.o): Make target obsolete.
4441
4442 * config/i386/nm-gnu.h: Removed.
4443 * config/i386/nm-i386gnu.h: New file.
4444 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4445 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4446 Moved here from ...
4447 * config/i386/tm-i386gnu.h: ... here. Removed.
4448 * config/i386/xm-i386gnu.h: Removed.
4449 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4450 (NAT_FILE): Set to nm-i386gnu.h.
4451 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4452 * i386-tdep.c: New file.
4453 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4454 (i386gnu-tdep.o): Specify dependencies.
4455
4456 2002-08-15 Mark Kettenis <kettenis@gnu.org>
4457
4458 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4459 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4460 Adjust a few comments to reflect reality a bit closer.
4461 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4462 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4463 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4464 target_insert_watchpoint, target_remove_watchpoint):
4465 Move defines to ...
4466 * config/i386/nm-i386sco5.h: ... here.
4467 (kernel_u_size): Add prototype. Improve a few comments and add
4468 protection against multiple inclusion.
4469
4470 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4471 out define.
4472
4473 * uw-thread.c (SP_ARG0): Define if not already defined.
4474 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4475
4476 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4477
4478 * config/i386/tm-i386.h: Don't include "regcache.h".
4479
4480 * i387-tdep.h (i387_print_float_info): New prototype.
4481 * i387-tdep.c (print_i387_value, print_i387_ext,
4482 print_i387_status_word, print_i387_control_word): Add `struct
4483 ui_file *' argument and use it for output.
4484 (i387_print_float_info): Renamed from i387_float_info. Add
4485 `struct gdbarch *' and `struct ui_file *' arguments and use the
4486 latter for output.
4487 * i386-tdep.c: Include "i387-tdep.h".
4488 (i386_gdbarch_init): Set print_float_info.
4489 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4490 (FLOAT_INFO): Remove define.
4491
4492 2002-08-13 Michael Snyder <msnyder@redhat.com>
4493
4494 * mips-tdep.c (mips_push_arguments): Rename to
4495 mips_eabi_push_arguments, and tune for EABI.
4496 (MIPS_REGS_HAVE_HOME_P): Delete.
4497 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4498 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4499 Delete references to mips_regs_have_home_p.
4500
4501 2002-08-14 Keith Seitz <keiths@redhat.com>
4502
4503 * Makefile.in (install-gdbtk): Create insight plugin directory.
4504 Install plugins.tcl file.
4505
4506 2002-08-14 Keith Seitz <keiths@redhat.com>
4507
4508 * configure.in: Move SUBDIRS to near top of the file so that
4509 --enable options may add things to it.
4510 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
4511 * configure: Regenerate.
4512
4513 2002-08-13 Michael Snyder <msnyder@redhat.com>
4514
4515 * mips-tdep.c (mips_o32o64_push_arguments): New function,
4516 cloned from mips_push_arguments, tuned for o32/o64 ABI.
4517 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
4518
4519 2002-08-13 Andrew Cagney <ac131313@redhat.com>
4520
4521 * vax-tdep.c (vax_get_saved_register): Delete function.
4522 (vax_gdbarch_init): Update.
4523 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
4524 (ns32k_gdbarch_init): Update.
4525 * alpha-tdep.c (alpha_get_saved_register): Delete function.
4526 (alpha_gdbarch_init): Update.
4527
4528 2002-08-13 Andrew Cagney <cagney@redhat.com>
4529
4530 * regcache.c (init_regcache_descr): Overallocate the
4531 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
4532 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
4533 nr_raw_registers.
4534 (set_register_cached): Add range checking assertions. Use
4535 current_regcache.
4536
4537 2002-08-13 Mark Kettenis <kettenis@gnu.org>
4538
4539 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
4540 numbers for MMX registers.
4541
4542 2002-08-13 Andrew Cagney <cagney@redhat.com>
4543
4544 * i386-tdep.c (i386_gdbarch_init): Use
4545 generic_unwind_get_saved_register.
4546
4547 2002-08-13 Kevin Buettner <kevinb@redhat.com>
4548
4549 * procfs.c (procfs_can_use_hw_breakpoint): New function.
4550 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
4551 target vector.
4552 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
4553 Delete. Add comment regarding this now-deleted target method.
4554
4555 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4556
4557 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
4558 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
4559 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
4560 real PC and the page number (if it's within the memory bank window).
4561 (m68hc11_pseudo_register_write): Likewise when saving.
4562 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
4563 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
4564 (m68hc11_register_raw_size): And use 32-bit for it.
4565 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
4566 16K memory bank is used by the prog; also use the virtual pc.
4567
4568 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4569
4570 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
4571 (m68hc11_gdbarch_init): Install it in gdbarch.
4572 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
4573 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
4574 (MSYMBOL_SIZE): New for documentation.
4575 (insn_return_kind): Enum to specify how a function returns.
4576 (frame_extra_info): Cleanup and record the return mode.
4577 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
4578 register in address computation.
4579 (m68hc11_get_return_insn): New to obtain the return instruction used
4580 by the function.
4581 (m68hc11_frame_init_saved_regs): Take into account the return
4582 instruction used by the function for far and interrupt functions.
4583 (m68hc11_init_extra_frame_info): Take into account page register.
4584 (m68hc11_frame_args_address): Adjust according to the return mode.
4585 (show_regs): Print page register only when it's used.
4586
4587 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4588
4589 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
4590 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
4591 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
4592 registers.
4593 (m68hc11_register_raw_size): Likewise.
4594
4595 2002-08-13 Andrew Cagney <cagney@redhat.com>
4596
4597 * i386-tdep.c (i386_register_name): Handle mmx registers.
4598 (mmx_regnum_p): New function.
4599 (i386_mmx_names): New array.
4600 (mmx_num_regs): New variable.
4601 (i386_pseudo_register_read): New function.
4602 (i386_pseudo_register_write): New function.
4603 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
4604
4605 * regcache.c (regcache_raw_read_unsigned): New function.
4606 (regcache_raw_read_signed): New function.
4607 * regcache.h (regcache_raw_read_unsigned): Declare.
4608 (regcache_raw_read_signed): Declare.
4609
4610 2002-08-13 Andrew Cagney <cagney@redhat.com>
4611
4612 * regcache.c (regcache_raw_read_as_address): Delete function.
4613 (regcache_cooked_read_signed): New function.
4614 (regcache_cooked_read_unsigned): New function.
4615 * regcache.h (regcache_cooked_read_signed): Declare.
4616 (regcache_cooked_read_unsigned): Declare.
4617 (regcache_raw_read_as_address): Delete declaration.
4618
4619 * blockframe.c (generic_read_register_dummy): Use
4620 regcache_cooked_read_unsigned.
4621 * i386-tdep.c (i386_extract_struct_value_address): Use
4622 regcache_cooked_read_unsigned.
4623
4624 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4625
4626 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
4627 double sizes according to ELF ABI flags.
4628 (gdbarch_tdep): Record elf_flags.
4629
4630 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
4631
4632 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
4633 (m6812_prolog): They can appear in 68HC12 function prologue.
4634 (m68hc11_frame_chain): Cleanup.
4635
4636 2002-08-12 Andrew Cagney <cagney@redhat.com>
4637
4638 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
4639 declarations.
4640 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
4641 (i386_linux_register_raw_size): Delete function.
4642 (i386_linux_init_abi): Update.
4643 * i386-tdep.c (i386_register_raw_size): Delete function.
4644 (i386_register_byte): Delete function.
4645 (i386_gdbarch_init): Update.
4646 (i386_register_size): Delete array.
4647 (i386_register_offset): Delete array.
4648
4649 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
4650 (REGISTER_RAW_SIZE): Delete macro.
4651 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
4652 (REGISTER_BYTE): Delete macro.
4653
4654 2002-08-11 Aidan Skinner <aidan@velvet.net>
4655
4656 * ada-lang.c (ada_lookup_partial_symbol)
4657 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
4658 prototype names so that grep ^func works properly.
4659
4660 * ada-lang.c (ada_array_element_type)
4661 (ada_lookup_partial_symbol): Fix typos in parameter list.
4662
4663 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
4664 Fix prototype names so that grep ^func works properly.
4665
4666 2002-08-10 Andrew Cagney <cagney@redhat.com>
4667 Elena Zannoni <ezannoni@redhat.com>
4668 Martin M. Hunt <hunt@redhat.com>
4669
4670 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
4671 (build_builtin_type_vec128i): Set the vector bit.
4672 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
4673 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
4674 (build_builtin_type_vec64): New function.
4675 (build_builtin_type_vec64i): New function.
4676 (build_gdbtypes): Initialize builtin_type_vec64 and
4677 builtin_type_vec64i.
4678
4679 2002-08-09 Andrew Cagney <cagney@redhat.com>
4680
4681 * regcache.c (regcache_dump): Compare the register offset
4682 with REGISTER_BYTE.
4683 * arch-utils.c (generic_register_byte): New function.
4684 * arch-utils.h (generic_register_byte): Declare.
4685 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
4686 * gdbarch.h, gdbarch.c: Regenerate.
4687
4688 2002-08-09 Andrew Cagney <cagney@redhat.com>
4689
4690 * regcache.c: Include "gdbcmd.h"
4691 (_initialize_regcache): Add commands "maintenance print
4692 registers", "maintenance print raw-registers" and "maintenance
4693 print cooked-registers".
4694 (enum regcache_dump_what): Define.
4695 (dump_endian_bytes): New function.
4696 (regcache_dump): New function.
4697 (regcache_print): New function.
4698 (maintenance_print_registers): New function.
4699 (maintenance_print_raw_registers): New function.
4700 (maintenance_print_cooked_registers): New function.
4701 * Makefile.in (regcache.o): Update dependencies.
4702
4703 2002-08-09 Michael Snyder <msnyder@redhat.com>
4704
4705 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
4706 (mips_push_arguments): Correct some comments. Use paddr_nz
4707 for printing addresses in debug output. Replace static
4708 allocation using MAX_REGISTER_RAW_SIZE with alloca.
4709 (mips_n32n64_push_arguments): New function, cloned from
4710 mips_push_arguments and tuned for the n32/n64 ABI.
4711 (mips_push_register): Buffer needs dynamic allocation.
4712 (mips_print_register): Ditto.
4713 (do_gp_register_row): Ditto.
4714 (mips_store_return_value): Ditto.
4715 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
4716
4717 2002-08-09 Don Howard <dhoward@redhat.com>
4718
4719 * memattr.c (mem_info_command): Print special case of upper bound
4720 as max CORE_ADDR + 1.
4721
4722 2002-08-08 Michael Snyder <msnyder@redhat.com>
4723
4724 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
4725 returns structs by ref if they're too big to fit in two registers.
4726
4727 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4728
4729 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
4730 saved regs value.
4731 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
4732 mips_find_saved_regs().
4733 (mips_pop_frame): Likewise.
4734
4735 2002-08-09 Kevin Buettner <kevinb@redhat.com>
4736
4737 * blockframe.c (frame_saved_regs_register_unwind): Revise
4738 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
4739 frames are in use.
4740
4741 2002-08-09 Grace Sainsbury <graces@redhat.com>
4742
4743 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
4744 T-packets; the 'a' is not taken as a register number.
4745 (remote_check_watch_resources, remote_stopped_by_watchpoint)
4746 (remote_stopped_data_address): New functions; add to target
4747 vector.
4748 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
4749 prototypes to match other implementations of this
4750 function. replace integer argument with pointer -- the length
4751 field in the Z-packet is the length of what is pointed to or 1 if
4752 pointer is null. Add to target vector.
4753 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
4754 target vector.
4755
4756 From Mark Salter:
4757 * remote.c (remote_wait): Add support to extract optional
4758 watchpoint information from T-packet. Ignore unrecognized
4759 optional info in T-packet.
4760 (remote_async_wait): Ditto.
4761
4762 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
4763
4764 * cli/cli-dump.c: Change fopen modes to use binary open modes
4765 as defined in include/fopen-bin.h throughout.
4766
4767 2002-08-08 Michael Snyder <msnyder@redhat.com>
4768
4769 * mips-tdep.c: Minor whitespace and indentation clean-ups.
4770
4771 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4772
4773 * doublest.c (store_floating): Avoid floatformat_from_doublest()
4774 assertion failure by returning early after a warning.
4775
4776 2002-08-08 Kevin Buettner <kevinb@redhat.com>
4777
4778 * mips-tdep.c (mips_find_saved_regs): Make static.
4779 (mips_frame_init_saved_regs): New function.
4780 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
4781 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
4782 (mips_find_saved_regs): Delete declaration.
4783
4784 2002-08-08 Grace Sainsbury <graces@redhat.com>
4785
4786 * remote.c (remote_wait, remote_async_wait): Change
4787 thread_num from int to ULONGEST.
4788 (unpack_varlen_hex): Change result parameter from
4789 int * to ULONGEST *.
4790
4791 2002-08-08 Andrew Cagney <ac131313@redhat.com>
4792
4793 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
4794 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
4795 powerpc*-*-*.
4796 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
4797
4798 2002-08-08 Andrew Cagney <cagney@redhat.com>
4799
4800 * gcore.c (override_derive_stack_segment): Delete variable.
4801 (preempt_derive_stack_segment): Delete function.
4802 (derive_stack_segment): Delete function.
4803 (default_derive_stack_segment): Renamed to derive_stack_segment.
4804 (override_derive_heap_segment): Delete variable.
4805 (preempt_derive_heap_segment): Delete function.
4806 (derive_heap_segment): Delete function.
4807 (default_derive_heap_segment): Rename to derive_heap_segment.
4808
4809 2002-08-06 Michael Snyder <msnyder@redhat.com>
4810
4811 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
4812 * mips-tdep.c (mips_EABI_use_struct_convention,
4813 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
4814 New functions. (mips_use_struct_convention): Delete.
4815 (mips_gdbarch_init): set use_gdbarch_convention.
4816
4817 2002-08-06 Michael Snyder <msnyder@redhat.com>
4818
4819 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
4820 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
4821 mips_o32_reg_struct_has_addr): New functions.
4822 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
4823
4824 2002-08-07 Andrew Cagney <ac131313@redhat.com>
4825
4826 * regcache.c (pseudo_register): Delete function.
4827 (fetch_register): Delete function.
4828 (store_register): Delete function.
4829 (regcache_raw_read, legacy_read_register_gen): Use
4830 target_fetch_registers instead of fetch_register.
4831 (legacy_write_register_gen, regcache_raw_write): Use
4832 target_store_register instead of store_register.
4833 (write_register_bytes): Ditto.
4834
4835 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
4836 (STORE_PSEUDO_REGISTER): Delete.
4837 * gdbarch.h, gdbarch.c: Regenerate.
4838
4839 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
4840
4841 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
4842 write dump file binary.
4843
4844 2002-08-05 Michael Snyder <msnyder@redhat.com>
4845
4846 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
4847 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
4848 (mips_gdbarch_init): Set N32 target to be mips64.
4849
4850 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4851
4852 * frame.c (find_saved_register): Break out of loop once saved
4853 register address is found. Don't mention sparc in loop comment
4854 anymore.
4855
4856 2002-08-06 Kevin Buettner <kevinb@redhat.com>
4857
4858 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
4859 mips_default_saved_regsize to 8.
4860
4861 2002-08-06 Andrew Cagney <ac131313@redhat.com>
4862
4863 * gcore.c: Do not include <sys/procfs.h>.
4864 * Makefile.in (gcore.o): Update dependencies.
4865
4866 2002-08-06 Andrew Cagney <cagney@redhat.com>
4867
4868 * configure.tgt: Make arc-*-* obsolete.
4869 * NEWS: Mention that arc-*-* has been identifed as obsolete.
4870 * MAINTAINERS: Make arc-elf obsolete.
4871 * arc-tdep.c: Make file obsolete.
4872 * config/arc/arc.mt: Ditto.
4873 * config/arc/tm-arc.h: Ditto.
4874
4875 2002-08-05 Theodore A. Roth <troth@verinet.com>
4876
4877 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
4878
4879 2002-08-05 Andrew Cagney <ac131313@redhat.com>
4880
4881 * mcore-tdep.c (mcore_gdbarch_init): Use
4882 generic_unwind_get_saved_register instead of
4883 generic_get_saved_register.
4884 * v850-tdep.c (v850_gdbarch_init): Ditto.
4885 * frv-tdep.c (frv_gdbarch_init): Ditto.
4886 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4887 * s390-tdep.c (s390_gdbarch_init): Ditto.
4888 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4889 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
4890 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
4891
4892 2002-08-05 Joel Brobecker <brobecker@gnat.com>
4893
4894 * objfiles.h: Add missing #include "symfile.h"
4895
4896 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
4897
4898 2002-08-04 Andrew Cagney <ac131313@redhat.com>
4899
4900 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
4901 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
4902 of FIELD_BITSIZE.
4903
4904 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
4905
4906 * NEWS: Cleanup and nitpick.
4907
4908 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4909
4910 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
4911
4912 2002-08-03 Andrew Cagney <ac131313@redhat.com>
4913
4914 * Makefile.in (gdbtk-bp.o): Update dependencies.
4915 (gdbtk-register.o): Ditto.
4916 (gdbtk-varobj.o): Ditto.
4917
4918 2002-08-03 Andrew Cagney <cagney@redhat.com>
4919
4920 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
4921 m68hc11_fetch_pseudo_register.
4922 (m68hc11_pseudo_register_write): Replace
4923 m68hc11_store_pseudo_register.
4924 (m68hc11_gdbarch_init): Update.
4925
4926 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
4927
4928 * gdbarch.sh: Include "gdb_string.h".
4929 * gdbarch.c: Regenerate.
4930
4931 * regcache.c: Include "gdb_string.h".
4932 * ax-general.c: Ditto.
4933 * varobj.c: Ditto.
4934 * std-regs.c: Ditto.
4935 * fbsd-proc.c: Ditto.
4936 * thread.c: Ditto.
4937
4938 * Makefile.in (regcache.o): Update dependencies.
4939 (thread.o, gdbarch.o): Ditto.
4940 (ax-general.o, gdbarch.o): Ditto.
4941 (varobj.o, std-regs.o): Ditto.
4942 (fbsd-proc.o): Specify dependencies.
4943
4944 2002-08-02 Andrew Cagney <cagney@redhat.com>
4945
4946 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
4947 regnum.
4948 (regcache_cooked_write): Ditto.
4949
4950 2002-08-02 Andrew Cagney <ac131313@redhat.com>
4951
4952 * regcache.c (regcache_cooked_read): New function.
4953 (regcache_cooked_write): New function.
4954 (read_register_gen): Rewrite using regcache_cooked_read.
4955 (write_register_gen): Rewrite using regcache_cooked_write.
4956
4957 * regcache.h (regcache_cooked_read, regcache_cooked_write):
4958 Declare.
4959
4960 2002-08-02 Andrew Cagney <cagney@redhat.com>
4961
4962 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
4963 Replace the architecture methods register_read and register_write.
4964 * gdbarch.h, gdbarch.c: Regenerate.
4965 * regcache.c (init_regcache_descr): Update.
4966 (read_register_gen): Update.
4967 (write_register_gen): Update.
4968 (supply_register): Update comment.
4969
4970 * sh-tdep.c (sh_gdbarch_init): Update.
4971 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
4972 `regcache' and `gdbarch' parameters. Make `buffer' a void
4973 pointer. Update code.
4974 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
4975 `regcache' and `gdbarch' parameters. Make `buffer' a constant
4976 void pointer. Update code.
4977 (sh64_register_write): Delete.
4978 (sh4_register_read): Delete.
4979 (sh64_register_read): Delete.
4980 (sh4_register_write): Delete.
4981 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
4982 void pointer, `to' parameter a void pointer.
4983 (sh_sh64_register_convert_to_raw): Ditto.
4984
4985 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4986
4987 * mips-tdep.c (mips_register_virtual_type): Use architecture
4988 invariant return values.
4989
4990 2002-08-01 Andrew Cagney <cagney@redhat.com>
4991
4992 * linux-proc.c: Include "gdb_string.h".
4993 * Makefile.in (linux-proc.o): Update dependency list.
4994
4995 2002-08-01 Kevin Buettner <kevinb@redhat.com>
4996
4997 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
4998 comment.
4999
5000 2002-08-01 Grace Sainsbury <graces@redhat.com>
5001
5002 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5003 to_insert_watchpoint, to_remove_watchpoint,
5004 to_stopped_by_watchpoint, to_stopped_data_address,
5005 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5006 target vecctor. Define their corresponding macros so they call
5007 them.
5008
5009 * target.c: Add default and debug versions of for
5010 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5011 to_insert_watchpoint, to_remove_watchpoint,
5012 to_stopped_by_watchpoint, to_stopped_data_address,
5013 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5014
5015 2002-08-01 Kevin Buettner <kevinb@redhat.com>
5016
5017 * mips-tdep.c (mips_register_virtual_type): New function.
5018 (mips_gdbarch_init): Register mips_register_virtual_type()
5019 with gdbarch machinery.
5020 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5021 this file instead of tm-bigmips.h.
5022 (MIPS_REGSIZE): Delete this macro.
5023 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5024 multiarch version in mips-tdep.c will be found.
5025
5026 2002-08-01 Andrew Cagney <cagney@redhat.com>
5027
5028 * NEWS: Menion that CHILL has been made obsolete.
5029
5030 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
5031 * stabsread.c (read_range_type): Ditto.
5032 * gdbtypes.h: Ditto.
5033 * language.c (binop_type_check): Ditto.
5034 (binop_result_type): Ditto.
5035 (integral_type): Ditto.
5036 (character_type): Ditto.
5037 (string_type): Ditto.
5038 (boolean_type): Ditto.
5039 (structured_type): Ditto.
5040 (lang_bool_type): Ditto.
5041 (binop_type_check): Ditto.
5042 * language.h (_LANG_chill): Ditto.
5043 * dwarfread.c (set_cu_language): Ditto.
5044 * dwarfread.c (CHILL_PRODUCER): Ditto.
5045 * dwarfread.c (handle_producer): Ditto.
5046 * expression.h (enum exp_opcode): Ditto.
5047 * eval.c: Ditto for comments.
5048 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5049 * expprint.c (print_subexp): Ditto.
5050 (print_subexp): Ditto.
5051 * valops.c (value_cast): Ditto.
5052 (search_struct_field): Ditto.
5053 * value.h (COERCE_VARYING_ARRAY): Ditto.
5054 * symfile.c (init_filename_language_table): Ditto.
5055 (add_psymbol_with_dem_name_to_list): Ditto.
5056 * valarith.c (value_binop): Ditto.
5057 (value_neg): Ditto.
5058 * valops.c (value_slice): Ditto.
5059 * symtab.h (union language_specific): Ditto.
5060 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5061 (SYMBOL_DEMANGLED_NAME): Ditto.
5062 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5063 * defs.h (enum language): Ditto.
5064 * symtab.c (got_symtab): Ditto.
5065 * utils.c (fprintf_symbol_filtered): Ditto.
5066
5067 * ch-typeprint.c: Make file obsolete.
5068 * ch-valprint.c: Make file obsolete.
5069 * ch-lang.h: Make file obsolete.
5070 * ch-exp.c: Make file obsolete.
5071 * ch-lang.c: Make file obsolete.
5072
5073 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5074 CHILL_LIB.
5075 (TARGET_FLAGS_TO_PASS): Ditto.
5076 (CHILLFLAGS): Obsolete.
5077 (CHILL): Obsolete.
5078 (CHILL_FOR_TARGET): Obsolete.
5079 (CHILL_LIB): Obsolete.
5080 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5081 ch-valprint.c.
5082 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5083 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5084 ch-lang.o.
5085 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5086 targets.
5087
5088 2002-07-31 Joel Brobecker <brobecker@gnat.com>
5089
5090 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5091 This does not change anything at the moment, but will be helpful
5092 later when full Ada support is integrated.
5093
5094 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5095
5096 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5097 help message.
5098
5099 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5100
5101 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5102 and save it in a local variable. Use variable in later test.
5103
5104 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5105
5106 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5107 test. (Thanks to Daniel Jacobowitz.)
5108
5109 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5110
5111 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5112 (mips_abi_strings): Add "n64".
5113 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5114
5115 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5116
5117 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5118 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5119
5120 2002-07-31 Kevin Buettner <kevinb@redhat.com>
5121
5122 * utils.c (host_pointer_to_address, address_to_host_pointer):
5123 Use gdb_assert() instead of explicit call to internal_error().
5124
5125 2002-07-30 Kevin Buettner <kevinb@redhat.com>
5126
5127 * Makefile.in (rs6000-nat.o): Update dependencies.
5128
5129 From Nicholas Duffek:
5130 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5131 (aix-thread.o): New rule.
5132 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5133 * config/powerpc/aix432.mh: New file.
5134
5135 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5136
5137 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5138 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5139 (fetch_core_registers, ppc_linux_supply_gregset)
5140 (ppc_linux_supply_fpregset): New functions.
5141 (ppc_linux_regset_core_fns): New.
5142 (_initialize_ppc_linux_tdep): Call add_core_fns.
5143 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5144 and ppc_linux_supply_gregset.
5145 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5146 (supply_fpregset): Call ppc_linux_supply_fpregset.
5147 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5148 corelow.o.
5149 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5150
5151 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
5152
5153 * symtab.c (lookup_symbol): Demangle before lowercasing.
5154
5155 2002-07-30 Andrew Cagney <ac131313@redhat.com>
5156
5157 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5158 declaration.
5159 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5160 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5161 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5162 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5163 "gdb_string.h".
5164 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5165 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5166 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5167 (avr-tdep.o, mon960-rom.o): Ditto.
5168 (aout_stabs_gnu_h): Define.
5169 (symtab_h): Remove $(gdb_obstack_h).
5170
5171 2002-07-30 Jim Blandy <jimb@redhat.com>
5172
5173 Patch from David Carlton <carlton@math.stanford.edu>:
5174 * gdbinit.in: Move the `dir' commands that add GDB's own source
5175 directory to the search path to the end, so that the `gdb' source
5176 directory will be searched first.
5177
5178 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5179
5180 * gdb_obstack.h: New file.
5181 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5182 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5183 * objfiles.h: Include "gdb_obstack.h".
5184 * Makefile.in (gdb_obstack_h): Define.
5185 (symtab_h): Add $(gdb_obstack_h).
5186 (objfiles_h): Add $(gdb_obstack_h).
5187
5188 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5189 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5190 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5191 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5192 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5193 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5194 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5195 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5196
5197 * Makefile.in (bcache.o): Update dependencies.
5198 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5199 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5200 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5201 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5202 (stabsread.o, symfile.o, symmisc.o): Ditto.
5203 (symtab.o, typeprint.o, macroexp.o): Ditto.
5204 (macrotab.o, mdebugread.o): Ditto.
5205 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5206 (coff_ecoff_h, aout_aout64_h): Define.
5207 (aout_stabs_gnu_h, libaout_h): Define.
5208
5209 2002-07-29 Andrew Cagney <cagney@redhat.com>
5210
5211 * regcache.c (struct regcache_descr): Rename nr_registers to
5212 nr_cooked_registers. Revise comments describing the structure
5213 member fields.
5214 (init_regcache_descr): Update.
5215 (init_legacy_regcache_descr): Update.
5216 (read_register_gen, write_register_gen): When a cooked register in
5217 the raw register range, directly access the value from the raw
5218 register cache.
5219
5220 2002-07-29 Andrew Cagney <ac131313@redhat.com>
5221
5222 * z8k-tdep.c: Do not include "obstack.h".
5223 * h8300-tdep.c, h8500-tdep.c: Ditto.
5224 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5225 * valprint.c, v850-tdep.c: Ditto.
5226 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5227 * mn10200-tdep.c: Ditto.
5228
5229 * Makefile.in (z8k-tdep.o): Update dependencies.
5230 (m68hc11-tdep.o, valprint.o): Ditto.
5231 (v850-tdep.o, d10v-tdep.o): Ditto.
5232 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5233 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5234 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5235 (sh_opc_h, gdb_sim_sh_h): Define.
5236 (elf_sh_h, elf_bfd_h): Define.
5237 (opcode_m68hc11_h): Define.
5238 (OPCODES_SRC, OPCODES_DIR): define.
5239 (OPCODES): Use $(OPCODES_DIR).
5240 (gdb_sim_d10v_h): Rename sim_d10v_h.
5241 (gdb_sim_arm_h): Rename sim_arm_h.
5242
5243 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5244
5245 * utils.c (host_pointer_to_address, address_to_host_pointer):
5246 Change internal_error() message to indicate function responsible
5247 for the error.
5248
5249 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5250
5251 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5252 calls to local_hex_string_custom().
5253
5254 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5255
5256 * irix5-nat.c: Move IRIX shared library support from here...
5257 * solib-irix.c: ...to here. Revised substantially to work with
5258 generic solib framework.
5259
5260 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5261 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5262 * mips-irix-tdep.c: New file.
5263
5264 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5265 (mips-irix-tdep.o, solib-irix.o): New rules.
5266 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5267 solib-irix.o.
5268 * config/mips/irix6.mt (TDEPFILES): Likewise.
5269 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5270
5271 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5272
5273 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
5274 disabled (via ``#if 0'') includes.
5275
5276 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5277
5278 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5279 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5280 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5281 Add support for the fpscr register.
5282 * rs6000-nat.c (regmap, fetch_inferior_registers)
5283 (store_inferior_registers, fetch_core_registers): Likewise.
5284
5285 2002-07-26 Kevin Buettner <kevinb@redhat.com>
5286
5287 * rs6000-nat.c (language.h): Include.
5288 (special_regs): Delete this array.
5289 (regmap): New function.
5290 (fetch_register, store_register): Use regmap() to map gdb
5291 register numbers to ptrace register numbers. Also, use
5292 outputs from regmap() to make decisions regarding type of
5293 ptrace() call to make. In particular, don't compare against
5294 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5295 (fetch_inferior_registers, store_inferior_registers): Where
5296 possible, obtain register numbers from tdep struct. Don't
5297 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5298 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5299 (LAST_UISA_SP_REGNUM): Delete.
5300
5301 2002-07-25 Kevin Buettner <kevinb@redhat.com>
5302
5303 * rs6000-nat.c (ppc-tdep.h): Include.
5304 (fetch_registers, store_register, fetch_core_registers): Don't
5305 access registers[] directly. Instead, use supply_register() or
5306 regcache_collect() as appropriate.
5307 (find_toc_address): Format hex address with local_hex_string().
5308
5309 2002-07-25 Andrew Cagney <ac131313@redhat.com>
5310
5311 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5312 bfd/elf32-frv.c.
5313
5314 2002-07-24 Tom Tromey <tromey@redhat.com>
5315
5316 * jv-exp.y: Marked all strings with _().
5317 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5318 internal_error.
5319 (MethodInvocation, CastExpression, parse_number, yyerror,
5320 java_type_from_name, push_expression_name, yylex): Typo fixes.
5321
5322 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
5323
5324 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5325 (tee_file_flush, tee_file_write, tee_file_fputs)
5326 (tee_file_isatty): New.
5327 * ui-file.h (tee_file_new): Add prototype.
5328
5329 2002-07-24 Aidan Skinner <aidan@velvet.net>
5330
5331 * ada-lang.c: Change k&r style function definitions to prototyped
5332 form.
5333 * ada-typeprint.c: Change k&r style function definitions to prototyped
5334 form.
5335 * ada-valprint.c: Change k&r style function definitions to prototyped
5336 form.
5337
5338 2002-07-24 Andrew Cagney <cagney@redhat.com>
5339
5340 * README: Remove reference to remote-bug.
5341 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5342 remote-bug.c.
5343 (m88k-nat.o): Delete rule.
5344 (m88k-tdep.o): Delete rule.
5345 (remote-bug.o): Delete rule.
5346 * MAINTAINERS: Mark as obsolete.
5347 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5348 * m88k-tdep.c: Make file obsolete.
5349 * config/m88k/m88k.mh: Ditto.
5350 * config/m88k/delta88v4.mh: Ditto.
5351 * config/m88k/delta88v4.mt: Ditto.
5352 * config/m88k/delta88.mt: Ditto.
5353 * config/m88k/delta88.mh: Ditto.
5354 * remote-bug.c: Ditto.
5355 * config/m88k/tm-delta88.h: Ditto.
5356 * config/m88k/nm-delta88v4.h: Ditto.
5357 * config/m88k/xm-delta88.h: Ditto.
5358 * config/m88k/xm-dgux.h: Ditto.
5359 * config/m88k/tm-m88k.h: Ditto.
5360 * config/m88k/nm-m88k.h: Ditto.
5361 * config/m88k/tm-delta88v4.h: Ditto.
5362 * m88k-nat.c: Ditto.
5363 * cxux-nat.c: Ditto.
5364 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5365 and m88*-*-* obsolete.
5366 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5367 m88*-*-* obsolete.
5368
5369 2002-07-24 Andrew Cagney <cagney@redhat.com>
5370
5371 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5372 constant. Same for local pointer variables.
5373 (extract_signed_integer): Ditto.
5374 * defs.h (extract_unsigned_integer): Update.
5375 (extract_signed_integer): Update.
5376
5377 2002-07-24 Andrew Cagney <cagney@redhat.com>
5378
5379 * regcache.c (regcache_raw_write): Change buf parameter to a
5380 constant void pointer.
5381 (regcache_raw_read): Change buf parameter to a void pointer.
5382 (legacy_write_register_gen): Change myaddr parameter a constant
5383 void pointer.
5384 (supply_register): Change val parameter to a const void pointer.
5385 * regcache.h (regcache_raw_write): Update declaration.
5386 (regcache_raw_read): Update declaration.
5387 (supply_register): Update declaration.
5388
5389 2002-07-24 Tom Tromey <tromey@redhat.com>
5390
5391 * defs.h (gdb_readline_wrapper): Declare.
5392 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5393 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5394 * top.c (gdb_readline_wrapper): New function.
5395 (command_line_input): Use it.
5396
5397 2002-07-24 Andrew Cagney <cagney@redhat.com>
5398
5399 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5400 regcache_read and regcache_write.
5401 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5402 * regcache.c: Update.
5403 * sh-tdep.c (sh64_push_arguments): Update comment.
5404 (sh_pseudo_register_read): Update.
5405 (sh_pseudo_register_write): Update.
5406 (sh4_register_read): Update.
5407 (sh4_register_write): Update.
5408 (sh64_pseudo_register_read): Update.
5409 (sh64_pseudo_register_write): Update.
5410 (sh64_register_read): Update.
5411 (sh64_register_write): Update.
5412 * i386-tdep.c (i386_extract_return_value): Update.
5413 (i386_extract_struct_value_address): Update.
5414 (i386_extract_return_value): Update.
5415 * blockframe.c (generic_read_register_dummy): Update.
5416 (generic_call_dummy_register_unwind): Update
5417 * infrun.c (write_inferior_status_register): Update.
5418
5419 2002-07-23 Jim Blandy <jimb@redhat.com>
5420
5421 * parser-defs.h (expression_context_pc): Make this extern.
5422 (Thanks to Michael Snyder.)
5423
5424 2002-07-23 Andrew Cagney <ac131313@redhat.com>
5425
5426 GDB 5.2.1 released from 5.2 branch.
5427 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5428 * README: Update to mention 5.2.1.
5429
5430 2002-07-23 Mark Salter <msalter@redhat.com>
5431
5432 * remote.c (remote_read_bytes): Fix check for error.
5433
5434 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5435
5436 * aix-thread.c (language.h): Include.
5437 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5438 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5439 Print newlines at end of debug messages.
5440 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5441 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5442
5443 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5444
5445 * aix-thread.c (ppc-tdep.h): Include.
5446 (special_register_p): New function.
5447 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5448 (store_regs_user_thread): Use register number information from
5449 gdbarch_tdep struct instead of hardcoded offsets relative to
5450 FIRST_UISA_SP_REGNUM.
5451 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5452 special_register_p() instead of using FPLAST_REGNUM and
5453 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5454 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5455 will be MQ's register number.
5456
5457 2002-07-22 Michael Snyder <msnyder@redhat.com>
5458
5459 * aix-thread.c (ops): Rename to aix_thread_ops.
5460 (base_ops): Rename to base_target.
5461 (ops_attach): Rename to aix_thread_attach.
5462 (ops_detach): Rename to aix_thread_detach.
5463 (ops_resume): Rename to aix_thread_detach.
5464 (ops_wait): Rename to aix_thread_wait.
5465 (ops_kill): Rename to aix_thread_kill.
5466 (init_ops): Rename to init_aix_thread_ops.
5467 (ops_fetch_register): Rename to aix_thread_fetch_register.
5468 (ops_store_register): Rename to aix_thread_store_register.
5469 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5470 (ops_thread_alive): Rename to aix_thread_thread_alive.
5471 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5472 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5473 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5474 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5475 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5476 (store_regs_lib): Rename to store_regs_user_thread.
5477 (store_regs_kern): Rename to store_regs_kernel_thread.
5478
5479 2002-07-22 Michael Snyder <msnyder@redhat.com>
5480
5481 * aix-thread.c (ops_prepare_to_store): Eliminate.
5482 (init_ops): Don't initialize ops.prepare_to_store.
5483 (store_regs_kern): Pre-fetch register buffers from child,
5484 because some registers may not be in the cache. Copy
5485 regs from register cache only if they are cached.
5486 (store_regs_lib): Copy regs from register cache only
5487 if they are cached.
5488 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5489 fill_gprs64): Ditto.
5490
5491 2002-07-22 Kevin Buettner <kevinb@redhat.com>
5492
5493 * aix-thread.c (gdb_assert.h): Include.
5494 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5495 register sizes (from register cache) match size of buffer holding
5496 register data.
5497 (fill_sprs32): Change parameter types to match those in the ptrace()
5498 buffer.
5499 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5500 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5501
5502 2002-07-22 Michael Snyder <msnyder@redhat.com>
5503
5504 * aix-thread.c (supply_sprs64): Cosmetic change.
5505 (supply_sprs32): Cosmetic change.
5506 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
5507 (fill_sprs64): Use regcache_collect instead of read_register.
5508 (store_regs_lib): Use regcache_collect instead of
5509 read_register. Use fill_sprs32 instead of fill_sprs64,
5510 if debugging a 32-bit architecture.
5511 (store_regs_kern): Use fill_gprs64 etc. to pull the values
5512 out of the register cache, instead of passing a pointer into
5513 the register cache directly to ptrace. Use regcache_collect
5514 insteaad of read_register.
5515 (ops_prepare_to_store): Use target_read_registers instead
5516 of read_register_bytes.
5517
5518 2002-07-20 Aidan Skinner <aidan@velvet.net>
5519
5520 * MAINTAINERS: Add self under write after approval.
5521
5522 2002-07-20 Aidan Skinner <aidan@velvet.net>
5523
5524 * ada-tasks.c: Change k&r style function definitions to prototyped
5525 form.
5526
5527 2002-07-19 Andrew Cagney <ac131313@redhat.com>
5528
5529 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
5530 * x86-64-tdep.c: Include "objfiles.h".
5531 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
5532 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
5533
5534 2002-07-17 Michal Ludvig <michal@suse.cz>
5535
5536 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
5537 (update_context): Initialise cfa variable.
5538
5539 2002-07-17 Michael Snyder <msnyder@redhat.com>
5540
5541 * aix-thread.c: Shorten some long lines.
5542 Bring comments into line with code spec.
5543
5544 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5545
5546 * infrun.c: Re-indent using gdb_indent.sh.
5547
5548 2002-07-18 Joel Brobecker <brobecker@gnat.com>
5549
5550 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
5551 Leave the indentation temporarily untouched, to minimize the diffs.
5552
5553 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
5554
5555 * stabsread.c: Make os9k sections of the code obsolete,
5556 for real this time.
5557 * stabsread.h: Make os9k sections of the code obsolete.
5558
5559 2002-07-18 Michal Ludvig <mludvig@suse.cz>
5560
5561 * linux-low.c (regsets_store_inferior_registers): Add free()
5562 at the end of a loop to prevent memory leak.
5563 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
5564 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
5565 * config/sparc/tm-sp64linux.h: Make the rest of #endif
5566 line a comment.
5567 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
5568
5569 2002-07-17 Jim Blandy <jimb@redhat.com>
5570
5571 * macrocmd.c (info_macro_command): Remove newline from error
5572 message.
5573
5574 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
5575
5576 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
5577 (sh_gdbarch_init): Use it for sh-dsp.
5578
5579 2002-07-16 Kevin Buettner <kevinb@redhat.com>
5580
5581 * dwarf2read.c (read_initial_length): Handle older, non-standard,
5582 64-bit DWARF2 format.
5583
5584 2002-07-16 Joel Brobecker <brobecker@gnat.com>
5585
5586 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
5587 <sys/proc.h> when not available.
5588
5589 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5590
5591 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
5592 * stabsread.c: Make os9k sections of the code obsolete.
5593 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
5594 * config/i386/i386os9k.mt: Make file obsolete.
5595 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
5596 (COMMON_OBS): Remove os9kread.o
5597 (SFILES): Remove os9kread.c.
5598 (os9kread.o, remote-os9k.o): Make target obsolete.
5599 * remote-os9k.c: Make file obsolete.
5600 * os9kread.c: Make file obsolete.
5601 * Makefile.in
5602
5603 2002-07-16 Andrew Cagney <ac131313@redhat.com>
5604
5605 * NEWS: Mention that the FR30 has been made obsolete.
5606 * fr30-tdep.c: Make file obsolete.
5607 * config/fr30/tm-fr30.h: Ditto.
5608 * config/fr30/fr30.mt: Ditto.
5609 * configure.tgt: Make fr30-*-elf obsolete.
5610 * MAINTAINERS: Make fr30-elf obsolete.
5611
5612 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
5613
5614 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
5615 found is not inside a section.
5616
5617 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5618
5619 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
5620 strerror().
5621 (pdc_realloc): Use xrealloc() instead of realloc().
5622
5623 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5624
5625 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
5626 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
5627 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
5628 macros.
5629
5630 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5631
5632 * aix-thread.c (ptrace_check): Eliminate goto.
5633 (sync_threadlists): Eliminate gotos. Also, fix array overrun
5634 problem.
5635
5636 2002-07-15 Kevin Buettner <kevinb@redhat.com>
5637
5638 * aix-thread.c (gdbcmd.h): Include.
5639 (DEBUG, DBG, DBG2, dbg): Eliminate.
5640 (debug_aix_thread): New static global.
5641 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5642 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
5643 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
5644 invocations to DBG and DBG2 macros to test against
5645 ``debug_aix_thread'' and call fprintf_unfiltered().
5646 (_initialize_aix_thread): Add new command "set debug aix-thread".
5647
5648 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5649
5650 From Gerhard Tonn <TON@de.ibm.com>:
5651 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
5652 instead of supply_register.
5653
5654 2002-07-15 Andrew Cagney <ac131313@redhat.com>
5655
5656 * dwarf2cfi.c: Include "gdb_assert.h".
5657 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
5658 non-NULL.
5659 (update_context): Do not use __func__. Add missing ``break''.
5660 (update_context): Do not use __func__.
5661
5662 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
5663
5664 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
5665 and its setting. Set gdbarch instruction printing functions
5666 directly. For non-rs6000 case use new function
5667 gdb_print_insn_powerpc.
5668 (gdb_print_insn_powerpc): New function.
5669
5670 2002-07-13 Andrew Cagney <ac131313@redhat.com>
5671
5672 * NEWS: Mention that the d30v has been marked obsolete.
5673 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
5674 * configure.tgt: Mark d30v-*-* as obsolete.
5675 * d30v-tdep.c: Mark file as obsolete.
5676 * config/d30v/d30v.mt: Ditto.
5677 * config/d30v/tm-d30v.h: Ditto.
5678
5679 2002-07-13 Aidan Skinner <aidan@velvet.net>
5680
5681 * ada-tasks.c (add_task_entry): replace calls to
5682 malloc() with xmalloc
5683 * ada-tasks.c (init_task_list): replace calls to free with xfree()
5684
5685 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
5686 ada_finish_decode_line_1, all_sals_for_line
5687 ada_breakpoint_rewrite): replace calls to free() with xfree()
5688
5689 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5690
5691 From Nicholas Duffek (with minor changes by Martin Hunt,
5692 Louis Hamilton, and Kevin Buettner):
5693 * aix-thread.c: New file.
5694
5695 2002-07-12 Petr Sorfa <petrs@caldera.com>
5696
5697 * dwarf2read.c (dwarf2_invalid_attrib_class): New
5698 complaint for invalid attribute class or form.
5699 (read_func_scope): DW_AT_frame_base
5700 better handling of DW_AT_block*.
5701 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
5702 better handling of DW_AT_block*.
5703 (read_common_block): DW_AT_location
5704 better handling of DW_AT_block*.
5705 (read_partial_die): DW_AT_location better handling
5706 of DW_AT_block*.
5707 (new_symbol): DW_AT_external better handling of
5708 DW_AT_block*. Proper initialization of variable
5709 "addr".
5710 (attr_form_is_block): New function that returns true
5711 if the attribute's form is of DW_FORM_block*.
5712
5713 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
5714
5715 * valops.c (find_method_list): Remove comment about
5716 removed STATIC_MEMFUNCP argument.
5717 (value_find_oload_method_list): Likewise.
5718
5719 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5720
5721 From Nicholas Duffek:
5722 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
5723 target_new_objfile_hook.
5724
5725 2002-07-12 Kevin Buettner <kevinb@redhat.com>
5726
5727 From Nicholas Duffek:
5728 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
5729 csect.
5730
5731 2002-07-12 Andrew Cagney <cagney@redhat.com>
5732
5733 * MAINTAINERS: Mention --enable-sim-build-warnings.
5734 (m68hc11-elf): Disable sim build warnings.
5735 (m32r-elf): Mark as broken obsolete candidate.
5736 (x86_64-linux-gnu): Mark as buildable with -Werror.
5737 (arm-elf): Change -w to ``,'' which enables warnings but not
5738 -Werror.
5739
5740 2002-07-12 Andrew Cagney <ac131313@redhat.com>
5741
5742 * bcache.h: Update copyright.
5743 (struct bstring, struct bcache): Move definition to "bcache.c".
5744 Replaced by opaque declaration.
5745 (bcache_xfree): Replace free_bcache.
5746 (bcache_xmalloc, bcache_memory_used): Declare.
5747
5748 * bcache.c: Update copyright.
5749 (struct bstring, struct bcache): Moved to here from "bcache.h".
5750 Update comments.
5751 (bcache_xmalloc, bcache_memory_used): New functions.
5752 (bcache_xfree): Replace function free_bcache.
5753
5754 * Makefile.in (objfiles.o): Add $(bcache_h).
5755 (objfiles_h): Remove $(bcache_h).
5756 (symfile.o): Add $(bcache_h).
5757
5758 * symmisc.c: Update copyright.
5759 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
5760 (print_objfile_statistics): Use bcache_memory_used.
5761
5762 * symfile.c: Include "bcache.h".
5763 (reread_symbols): Use bcache_xfree.
5764 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
5765 (add_psymbol_to_list): Pass psymbol_cache by value.
5766 (add_psymbol_with_dem_name_to_list): Ditto.
5767
5768 * objfiles.h: Update copyright.
5769 (struct bcache): Declare opaque. Do not include "bcache.h".
5770 (struct objfile): Change psymbol_cache and macro_cache to ``struct
5771 bcache'' pointers.
5772 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
5773
5774 * objfiles.c: Include "bcache.h". Update copyright.
5775 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
5776 macro_cache.
5777 (free_objfile): Use bcache_xfree.
5778
5779 2002-07-11 Grace Sainsbury <graces@redhat.com>
5780
5781 * monitor.c (monitor_fetch_register): Make name a constant.
5782 (monitor_store_register): Same.
5783
5784 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
5785
5786 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
5787 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
5788 (finish_block) For non-function blocks, hash the symbol table. For
5789 function blocks, mark the symbol table as unhashed.
5790 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
5791 (msymbol_hash_iw): Likewise.
5792 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
5793 value.
5794 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
5795 (lookup_minimal_symbol): Likewise for both.
5796 * symtab.h (struct block): Add `hashtable' flag. Comment the
5797 hashtable.
5798 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
5799 (ALL_BLOCK_SYMBOLS): Update.
5800 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
5801 (struct symbol): Add `hash_next' pointer.
5802 * symtab.c (lookup_block_symbol): Search using the hash table when
5803 possible.
5804 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
5805 (search_symbols, find_addr_symbol): Likewise.
5806
5807 * dstread.c (process_dst_block): Clear hashtable bit for new block.
5808 (read_dst_symtab): Likewise.
5809 * jv-lang.c (get_java_class_symtab): Likewise.
5810 * mdebugread.c: Include "gdb_assert.h".
5811 (shrink_block): Assert that the block being modified is not hashed.
5812 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
5813 * symmisc.c (free_symtab_block): Walk the hash table when freeing
5814 symbols.
5815 (dump_symtab): Recognize hashed blocks.
5816 * printcmd.c (print_frame_args): Assert that function blocks do not
5817 have hashed symbol tables.
5818 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
5819 (fill_in_ada_prototype, debug_print_block): Likewise.
5820 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
5821
5822 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
5823
5824 * stack.c (print_frame): Use result of frame_address_in_block()
5825 instead of fi->pc when evaluating symbols.
5826 (backtrace_command_1): Ditto.
5827
5828 2002-07-11 Andrew Cagney <cagney@redhat.com>
5829
5830 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
5831 Make static.
5832
5833 * arm-tdep.c (arm_register_name): Make return type constant.
5834
5835 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5836
5837 * win32-nat.c (has_detach_ability): Convert to strict ISO C
5838 prototype.
5839 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
5840 * s390-tdep.c (s390_fp_regnum): Ditto.
5841 (s390_read_fp): Ditto.
5842 (s390_pop_frame): Ditto.
5843 (_initialize_s390_tdep): Ditto.
5844 * remote.c (get_remote_state): Ditto.
5845 * procfs.c (mappingflags): Ditto.
5846 * memattr.c (_initialize_mem): Ditto.
5847 * mcore-tdep.c (mcore_pop_frame): Ditto.
5848 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
5849 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
5850 * language.c (set_case_str): Ditto.
5851 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
5852 * frv-tdep.c (new_variant): Ditto.
5853 (frv_stopped_data_address): Ditto.
5854 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
5855 (context_alloc): Ditto.
5856 (frame_state_alloc): Ditto.
5857 (unwind_tmp_obstack_init): Ditto.
5858 (unwind_tmp_obstack_free): Ditto.
5859 (cfi_read_fp): Ditto.
5860 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
5861 (cris_pop_frame): Ditto.
5862 * c-lang.c (scanning_macro_expansion): Ditto.
5863 (finished_macro_expansion): Ditto.
5864 (c_preprocess_and_parse): Ditto.
5865 * gdbarch.sh: Ditto.
5866 * gdbarch.h, gdbarch.c: Regenerate.
5867 * config/mn10200/tm-mn10200.h: Adjust indentation.
5868 * target.c: Adjust indentation.
5869 * symtab.h: Adjust indentation.
5870 * stabsread.h: Adjust indentation.
5871 * remote-es.c: Adjust indentation.
5872 * os9kread.c: Adjust indentation.
5873
5874 2002-07-10 Andrew Cagney <ac131313@redhat.com>
5875
5876 * wince.c (_initialize_wince): Rename _initialize_inftarg.
5877 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
5878
5879 2002-07-10 Grace Sainsbury <graces@redhat.com>
5880
5881 * NEWS: Mention m68k, mcore multi-arching.
5882 * MAINTAINERS: Change status of m68k, mcore to reflect
5883 multi-arching.
5884
5885 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
5886
5887 * valops.c (find_overload_match): Free oload_syms.
5888
5889 2002-07-09 Joel Brobecker <brobecker@gnat.com>
5890
5891 Define HAVE_SYS_PROC_H if sys/proc.h exists
5892 * configure.in: Add check for sys/proc.h
5893 * config.in: Regenerate.
5894 * configure: Regenerate.
5895
5896 2002-07-09 Grace Sainsbury <graces@redhat.com>
5897
5898 * config/m68k/tm-m68k.h: Remove macros wrapped in
5899 #if !GDB_MULTI_ARCH.
5900
5901 2002-07-08 Andrew Cagney <ac131313@redhat.com>
5902
5903 * config.in, configure: Regenerate.
5904
5905 2002-07-08 Mark Kettenis <kettenis@gnu.org>
5906
5907 * dwarf2cfi.c: Include "gcore.h".
5908 (execute_stack_op): Fix implementation of the
5909 DW_OP_deref and DW_OP_deref_size operators by letting do their
5910 lookup in the target.
5911
5912 2002-07-07 Mark Kettenis <kettenis@gnu.org>
5913
5914 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
5915 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
5916 tdep->sc_sp_offset.
5917
5918 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
5919
5920 Fix PR gdb/595, gdb/602
5921 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
5922 Don't call value_cast, just read the vtable pointer; update comments
5923 to match.
5924
5925 2002-07-05 Grace Sainsbury <graces@redhat.com>
5926
5927 * config/mcore/tm-mcore.h: Remove file.
5928 * config/mcore/mcore.mt: Remove definition of TM_FILE
5929 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
5930
5931 2002-07-05 Mark Kettenis <kettenis@gnu.org>
5932
5933 * i386bsd-tdep.c: Include "gdb_string.h".
5934
5935 2002-07-04 Grace Sainsbury <graces@redhat.com>
5936
5937 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
5938 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
5939 mcore-tdep.
5940 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
5941 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
5942 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
5943 (RETVAL_REGNUM): Move macros from tm-mcore.h
5944 (mcore_reg_struct_has_addr): New function.
5945 (mcore_gdbarch_init): Added initializations for the macros removed
5946 from tm-mcore.h.
5947
5948 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5949
5950 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
5951 traditonal string branding within the ELF header.
5952
5953 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
5954
5955 * symtab.c (remove_params): New function.
5956 (make_symbol_overload_list): Use it instead of cplus_demangle.
5957 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
5958
5959 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5960
5961 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
5962
5963 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
5964 New variables.
5965 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
5966 and tdep->sigtramp_end.
5967 * i386obsd-nat.c: New file.
5968 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
5969
5970 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
5971 Don't call get_current_frame().
5972
5973 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
5974
5975 * i386-nat.c (child_post_startup_inferior): New function
5976 calling i386_cleanup_dregs if
5977 I386_USE_GENERIC_WATCHPOINTS is defined.
5978 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
5979 conditional to acknowledge that i386-nat.c has its
5980 own child_post_startup_inferior function.
5981
5982 2002-07-04 Mark Kettenis <kettenis@gnu.org>
5983
5984 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
5985 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
5986 instead of MAX_REGISTER_RAW_SIZE.
5987 (i386_extract_return_value, i386_extract_struct_value_address):
5988 Convert to use regcache.
5989 (i386_gdbarch_init): Set max_register_raw_size and
5990 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
5991 Set extract_return_value and extract_struct_value_address instead
5992 of their deprecated variants.
5993
5994 Convert i386 target to generic dummy frames.
5995 * i386-tdep.c: Include "symfile.h".
5996 (i386_frameless_signal_p): Consider a function to be frameless if
5997 the pc points at the first instruction of the function.
5998 (i386_frame_chain): Handle (generic) call dummies.
5999 (i386_frame_saved_pc): Likewise.
6000 (i386_frame_init_saved_regs): Remove code dealing with call
6001 dummies on the stack.
6002 (i386_push_dummy_frame): Removed.
6003 (i386_call_dummy_words): Removed.
6004 (i386_fix_call_dummy): Removed.
6005 (i386_push_return_address): New function.
6006 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6007 parameter, and don't call get_current_frame.
6008 (i386_pop_frame): New function.
6009 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6010 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6011 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6012 call_dummy_length to 0, set call_dummy_words to NULL, set
6013 sizeof_call_dummy_words to 0, set fix_call_dummy to
6014 generic_fix_call_dummy, set pc_in_call_dummy to
6015 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6016 generic_push_dummy_frame, set push_return_address to
6017 i386_push_return_address and set frame_chain_valid to
6018 generic_file_frame_chain_valid.
6019
6020 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6021
6022 * gdbarch.sh (struct regcache): Add opaque declaration.
6023 (EXTRACT_RETURN_VALUE): New architecture method.
6024 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6025 * gdbarch.h, gdbarch.c: Regenerate.
6026 * arch-utils.c (legacy_extract_return_value): New function.
6027 * arch-utils.h (legacy_extract_return_value): Declare.
6028 * values.c (value_being_returned): Re-enable code handling
6029 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6030 deprecated_grub_regcache_for_registers call to block handling
6031 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6032 (EXTRACT_RETURN_VALUE): Do not define.
6033
6034 2002-07-03 Grace Sainsbury <graces@redhat.com>
6035
6036 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6037 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6038 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6039 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6040 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6041 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6042 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6043 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6044 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6045 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6046 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6047 argument so the function fits the prototype in the architecture
6048 vector.
6049 (mcore_pop_frame): Remove argument so the function fits the
6050 prototype. Use get_current_frame instead of the argument.
6051 (mcore_push_arguments): Change type of struct_return so the
6052 function can be used in the architecture vector.
6053 (mcore_store_struct_return): Add.
6054 (mcore_frame_init_saved_regs): Add.
6055 (mcore_gdbarch_init): Add function calls to replace the macros
6056 removed from tm-mcore.h
6057
6058 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6059
6060 * infcmd.c (print_return_value): Remove compatibility code calling
6061 deprecated_grub_regcache_for_registers.
6062
6063 * values.c: Include "regcache.h".
6064 (value_being_returned): Update. Use
6065 deprecated_grub_regcache_for_registers to extract the register
6066 buffer address.
6067 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6068 ``struct regcache''.
6069 * Makefile.in (values.o): Add dependency on $(regcache_h).
6070
6071 * inferior.h (run_stack_dummy): Change type of second parameter to
6072 a ``struct regcache''.
6073 * valops.c (hand_function_call): Change type of retbuf to ``struct
6074 regcache''. Allocate using regcache_xmalloc, clean using
6075 make_cleanup_regcache_xfree.
6076 * infcmd.c (run_stack_dummy): Update. Use
6077 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6078
6079 * regcache.c (do_regcache_xfree): New function.
6080 (make_cleanup_regcache_xfree): New function.
6081 * regcache.h (make_cleanup_regcache_xfree): Declare.
6082
6083 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6084
6085 * event-top.c (command_line_handler): Don't read past
6086 beginning of buffer.
6087
6088 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6089
6090 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6091 struct frame_id.
6092 (varobj_create): Store frame_id for root.
6093 (varobj_gen_name): Use xasprintf.
6094 (varobj_update): Save and restore frame using get_frame_id() and
6095 frame_find_by_id().
6096 (create_child): Use xasprintf.
6097 (new_root_variable): Initialize frame_id.
6098 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6099 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6100 to prevent memory leak.
6101
6102 2002-07-03 Andrew Cagney <ac131313@redhat.com>
6103
6104 * valops.c (hand_function_call): Move declaration of retbuf to
6105 start of function, allocate using malloc, add a cleanup but before
6106 the inf_status cleanup, cleanup the buffer. Rename local variable
6107 old_chain to inf_status_cleanup.
6108
6109 2002-07-03 Martin M. Hunt <hunt@redhat.com>
6110
6111 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6112
6113 * cli/cli-decode.c (cmd_func_p): New function.
6114 (cmd_func): New function.
6115
6116 * command.h: Add cmd_func() and cmd_func_p().
6117
6118 2002-07-03 Grace Sainsbury <graces@redhat.com>
6119
6120 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6121 (REGISTER_SIZE): Remove.
6122 (MAX_REGISTER_RAW_SIZE): Remove.
6123 (REGISTER_VIRTUAL_TYPE): Remove.
6124 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6125 (REGISTER_NAME): Remove.
6126 (USE_GENERIC_DUMMY_FRAMES): Remove.
6127 (CALL_DUMMY): Remove.
6128 (CALL_DUMMY_START_OFFSET): Remove.
6129 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6130 (CALL_DUMMY_LOCATION): Remove.
6131 (FIX_CALL_DUMMY): Remove.
6132 (CALL_DUMMY_ADDRESS): Remove.
6133 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6134 (SAVE_DUMMY_FRAME_TOS): Remove.
6135 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6136 (mcore_register_virtual_type): New function.
6137 (mcore_register_byte): New function.
6138 (mcore_register_size): New function.
6139 (mcore_register_name): New function.
6140 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6141 macros removed from tm-mcore.h.
6142 (mcore_dump_tdep): Add.
6143 (_initialize_mcore_tdep): Add gdbarch_register call.
6144
6145 2002-07-03 Mark Kettenis <kettenis@gnu.org>
6146
6147 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6148 frameless_look_for_prologue, such that we actually call this
6149 function.
6150
6151 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6152
6153 * frame.h (frame_address_in_block): New function.
6154
6155 * blockframe.c (frame_address_in_block): New function extracted
6156 from get_frame_block().
6157 (get_frame_block): Use frame_address_in_block().
6158 (block_innermost_frame): Use frame_address_in_block() to match
6159 the frame pc address against the block boundaries rather than
6160 the frame pc directly. This prevents a failure when a frame pc
6161 is actually a return-address pointing immediately after the end
6162 of the given block.
6163
6164 2002-07-02 Grace Sainsbury <graces@redhat.com>
6165
6166 * MAINTAINERS: Add self under write after approval.
6167
6168 2002-07-02 Grace Sainsbury <graces@redhat.com>
6169
6170 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6171 used in architecture vector. The default is
6172 m68k_local_breakpoint_from_pc.
6173 (m68k_local_breakpoint_from_pc): Add.
6174 (enum): Add register numbers from tm-m68k.h.
6175 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6176 vector.
6177 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6178 GDB_MULTI_ARCH_PARTIAL.
6179 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6180 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6181 m68k-tdep.c.
6182 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6183 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6184 to enum in m68k-tdep.c
6185
6186 2002-07-02 Joel Brobecker <brobecker@gnat.com>
6187
6188 * solib-osf.c (open_map): Compute the list of shared libraries
6189 loaded by the inferior, rather than the list of libraries loaded
6190 by GDB itself. Otherwise, GDB ends up reading the symbols from
6191 the wrong shared libraries...
6192
6193 2002-07-02 Mark Kettenis <kettenis@gnu.org>
6194
6195 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6196 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6197 macros.
6198 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6199 Remove functions.
6200 (FRAMELESS_SIGNAL): Remove function.
6201 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6202 i386_linux_saved_pc_after_call): Removed.
6203 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6204 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6205 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6206
6207 * i386-tdep.c (i386_frameless_signal_p): New function.
6208 (i386_frame_chain): Deal with frameless signals.
6209 (i386_sigtramp_saved_sp): New function.
6210 (i386_frame_saved_pc): Deal with frameless signals.
6211 (i386_saved_pc_after_call): Make sure the correct value is
6212 returned just after entry into a sigtramp.
6213 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6214 i386fbsd4_sc_sp_offset): New variables.
6215 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6216 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6217 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6218 similiar to what we already did for sc_pc_offset.
6219 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6220 tdep->sc_sp_offset.
6221
6222 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6223
6224 2002-07-02 Michal Ludvig <mludvig@suse.cz>
6225
6226 * config/i386/tm-x86-64linux.h: New.
6227 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6228 definitions.
6229 * config/i386/nm-x86-64.h: Rename to ...
6230 * config/i386/nm-x86-64linux.h: ... this one.
6231 * config/i386/x86-64linux.mh: Reflect the above change.
6232
6233 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6234
6235 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6236 with sigcontext_addr. Add sc_sp_offset.
6237 (i386bsd_sigtramp_saved_pc): Remove prototype.
6238 (i386bsd_sicontext_addr): Add prototype.
6239 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6240 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6241 (i386_svr4_sigtramp_saved_pc): Removed.
6242 (i386_svr4_sigcontext_addr): New function.
6243 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6244 Initialize tdep->sigcontext_addr instead. Initialize
6245 tdep->sc_pc_offset and tdep->sc_sp_offset.
6246 (i386_gdbarch_init): Likewise.
6247 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6248 any more.
6249 (i386bsd_sigtramp_saved_pc): Remove function.
6250 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6251 Initialize tdep->sigcontext_addr instead. Initialize
6252 tdep->sc_pc_offset.
6253 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6254 of tdep->sigtramp_saved_pc.
6255 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6256 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6257 instead.
6258
6259 * i386-tdep.c (i386_frameless_function_invocation,
6260 i386_frame_num_args, i386_frame_init_saved_regs,
6261 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6262 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6263 i386_extract_return_value, i386_store_return_value,
6264 i386_extract_struct_value_address, i386_register_virtual_type,
6265 i386_register_convertible, i386_register_convert_to_virtual,
6266 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6267 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6268 static.
6269
6270 2002-07-01 Mark Kettenis <kettenis@gnu.org>
6271
6272 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6273
6274 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6275 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6276 this macro. Include "value.h".
6277
6278 2002-06-30 Aidan Skinner <aidan@velvet.net>
6279
6280 * ada-exp.tab.c: remove as it's a generated file
6281 * ada-lex.c: remove as it's a generated file
6282
6283 2002-06-30 Mark Kettenis <kettenis@gnu.org>
6284
6285 * config/i386/tm-i386.h (struct frame_info, struct
6286 frame_saved_regs, struct value, struct type): Remove forward
6287 declarations.
6288
6289 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6290 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6291 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6292 (FILL_FPXREGSET): Define.
6293
6294 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6295
6296 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6297 i[3456]86-*-netbsd* case.
6298 * config/i386/tm-obsd.h: Removed.
6299 * config/i386/obsd.mt: Removed.
6300 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6301 core-aout.o.
6302 (MH_CFLAGS): Add -DYYDEBUG=0.
6303
6304 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6305 i386nbsd_sc_pc_offset on OpenBSD too.
6306
6307 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6308 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6309 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6310 define.
6311 * i386bsd-tdep.c: Include "arch-utils.h".
6312 (i386bsd_aout_in_solib_call_trampoline): New function.
6313 (i386bsd_init_abi): Set in_solib_call_trampoline to
6314 i386bsd_aout_in_solib_call_trampoline.
6315 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6316 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6317
6318 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6319
6320 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6321 (struct obstack, struct bcache): Add opaque declarations.
6322 * Makefile.in (macrotab_h): Update
6323
6324 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6325
6326 * blockframe.c (generic_find_dummy_frame): Change return type to
6327 ``struct regcache''.
6328 (struct dummy_frame): Replace field ``registers'' with regcache, a
6329 struct regcache object.
6330 (generic_find_dummy_frame): Update.
6331 (generic_push_dummy_frame): Update. Use regcache_xfree,
6332 regcache_xmalloc and regcache_cpy.
6333 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6334 regcache_xfree.
6335 (deprecated_generic_find_dummy_frame): Update.
6336 (generic_read_register_dummy): Update. Use
6337 regcache_read_as_address.
6338 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6339 (generic_get_saved_register): Update. Use regcache_read.
6340
6341 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6342
6343 * Makefile.in (objfiles_h): Add $(bcache_h).
6344 * objfiles.h: Include "bcache.h".
6345
6346 * Makefile.in (symtab_h): Remove $(bcache_h).
6347 * symtab.h: Do not include "bcache.h".
6348
6349 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6350
6351 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6352 generic_func_frame_chain_valid.
6353
6354 2002-06-28 David O'Brien <obrien@FreeBSD.org>
6355
6356 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6357 * config/i386/tm-fbsd.h: Likewise.
6358
6359 2002-06-28 Andrew Cagney <ac131313@redhat.com>
6360
6361 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6362 generic_unwind_get_saved_register.
6363
6364 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6365
6366 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
6367 * regcache.c (supply_register): Add missing argument to
6368 register_buffer call.
6369
6370 2002-06-27 Andrew Cagney <ac131313@redhat.com>
6371
6372 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6373 Solaris /bin/grep does not not like it. From Peter Schauer.
6374
6375 2002-06-26 Tom Tromey <tromey@redhat.com>
6376
6377 * command.h (add_setshow_cmd): Declare.
6378 (add_setshow_cmd_full): Declare.
6379 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6380 returns void. Use add_setshow_cmd_full.
6381 (add_setshow_cmd_full): New function.
6382 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6383 (add_setshow_boolean_cmd): Likewise.
6384
6385 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6386
6387 * config/vax/tm-vax.h: Protect from multiple inclusion.
6388 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6389 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6390 * config/vax/tm-vaxbsd.h: ...here. New file.
6391 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6392
6393 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6394
6395 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6396 (BELIEVE_PCC_PROMOTION): Remove.
6397 (AP_REGNUM): Move to...
6398 * config/vax/nm-vax.h: ...here.
6399 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6400 (vax_breakpoint_from_pc): New function.
6401 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6402 and gdbarch_believe_pcc_promotion.
6403
6404 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
6405
6406 * Makefile.in (vax_tdep_h): Define.
6407 (vax-tdep.o): Use $(vax_tdep_h).
6408 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6409 (vax_dump_tdep): New function.
6410 (_initialize_vax_tdep): Register vax_dump_tdep.
6411 * vax-tdep.h: Include osabi.h.
6412 (struct gdbarch_tdep): New.
6413
6414 2002-06-26 Andrew Cagney <cagney@redhat.com>
6415
6416 * frame.h (deprecated_generic_find_dummy_frame): Rename
6417 generic_find_dummy_frame.
6418 * blockframe.c (generic_find_dummy_frame): Make static.
6419 (deprecated_generic_find_dummy_frame): New function.
6420 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6421 generic_find_dummy_frame with deprecated_find_dummy_frame.
6422 (sh64_nofp_frame_init_saved_regs): Ditto.
6423 (sh_fp_frame_init_saved_regs): Ditto.
6424 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6425 (s390_frame_chain): Ditto.
6426 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6427
6428 2002-06-26 Grace Sainsbury <graces@redhat.com>
6429
6430 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6431 gdbarch vector are at the top.
6432 (NUM_REGS): Remove.
6433 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6434 (FRAME_ARGS_ADDRESS): Remove.
6435 (FRAME_LOCALS_ADDRESS): Remove.
6436 (FRAME_NUM_ARGS): Remove.
6437 (FRAME_ARGS_SKIP): Remove.
6438 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6439 (m68k_gdbarch_init): Add gdbarch initializations for macros
6440 undefined in tm-m68k.h
6441
6442 2002-06-26 Grace Sainsbury <graces@redhat.com>
6443
6444 * monitor.h: Add the function regname to monitor_ops
6445 structure. This way NUM_REGS does not have to be a constant.
6446 * monitor.c (monitor_fetch_register): Added support for regname
6447 function. The function is called if the array regnames is NULL.
6448 (monitor_store_register): Same.
6449 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6450 regnames array.
6451 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6452 cpu32bug_cmds.regname to point to new function.
6453 * abug-rom.c (abug_regname): Same as above.
6454 (init_abug_cmds): Same.
6455 * dbug-rom.c (dbug_regname): Same as above.
6456 (init_dbug_cmds): Same.
6457 * remote-est.c (est_regname): Same.
6458 (init_est_cmds): Same.
6459 * rom68k-rom.c (rom68k_regname): Same.
6460 (init_rom68k_cmds): Same.
6461
6462 2002-06-25 Tom Tromey <tromey@redhat.com>
6463
6464 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6465
6466 2002-06-25 Andrew Cagney <cagney@redhat.com>
6467
6468 * infrun.c (stop_registers): Change variable's type to ``struct
6469 regcache'''.
6470 (xmalloc_inferior_status): Delete function.
6471 (free_inferior_status): Delete function.
6472 (normal_stop): Use regcache_cpy.
6473 (struct inferior_status): Change type of fields ``stop_registers''
6474 and ``registers'' to ``struct regcache''.
6475 (write_inferior_status_register): Use regcache_write.
6476 (save_inferior_status): Instead of calling
6477 xmalloc_inferior_status, allocate the inf_status buffer directly.
6478 Use regcache_dup_no_passthrough and regcache_dup to save the
6479 buffers.
6480 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6481 Replace the stop_registers regcache instead of overriding it. Use
6482 regcache_xfree. Instead of calling free_inferior_status, xfree
6483 the buffer directly.
6484 (discard_inferior_status): Use regcache_xfree. Instead of calling
6485 free_inferior_status, xfree the buffer directly.
6486 (build_infrun): Use regcache_xmalloc.
6487 (_initialize_infrun): Delete redundant call to build_infrun.
6488
6489 * Makefile.in (infcmd.o): Add $(regcache_h).
6490
6491 * infcmd.c: Include "regcache.h".
6492 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6493 obtain the address of `stop_registers' register buffer.
6494 (print_return_value): Ditto.
6495
6496 * inferior.h (struct regcache): Add opaque declaration.
6497 (stop_registers): Change variable's declared type to ``struct
6498 regcache''.
6499
6500 2002-06-24 Tom Tromey <tromey@redhat.com>
6501
6502 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6503 * target.c (initialize_targets): Fixed typo in
6504 trust-readonly-sections `show' documentation.
6505
6506 * main.c: Marked all strings with _().
6507
6508 2002-06-24 Don Howard <dhoward@redhat.com>
6509
6510 * memattr.c (create_mem_region): Treat hi == 0 as a special case
6511 that means max CORE_ADDR+1.
6512 (lookup_mem_region): Ditto.
6513 (mem_info_command): Ditto.
6514
6515 2002-06-24 Grace Sainsbury <graces@redhat.com>
6516
6517 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
6518 (REGISTER_BYTES_OK): Remove.
6519 (REGISTER_BYTES): Remove.
6520 (STORE_STRUCT_RETURN): Remove.
6521 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
6522 (STORE_RETURN_VALUE): Remove.
6523 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
6524 (FRAME_CHAIN): Remove.
6525 (FRAMELESS_FUNCTION_INVOCATION): Remove.
6526 (FRAME_SAVED_PC): Remove.
6527 * m68k-tdep.c (m68k_register_bytes_ok):Add.
6528 (m68k_store_struct_return): Add.
6529 (m68k_deprecated_extract_return_value): Add.
6530 (m68k_deprecated_extract_struct_value_address): Add.
6531 (m68k_store_return_value): Add.
6532 (m68k_frame_chain): Add.
6533 (m68k_frameless_function_invocation): Add.
6534 (m68k_frame_saved_pc): Add.
6535 (m68k_gdbarch_init): added set_gdbarch calls for new
6536 functions and deleted macros.
6537
6538 2002-06-23 Tom Tromey <tromey@redhat.com>
6539
6540 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
6541 (ALLDEPFILES): Likewise.
6542 (udiheaders): Removed.
6543 (udip2soc.o): Likewise.
6544 (udi2go32.o): Likewise.
6545 (udr.o): Likewise.
6546 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
6547
6548 2002-06-22 Andrew Cagney <ac131313@redhat.com>
6549
6550 * infrun.c (_initialize_infrun): Delete unnecessary call to
6551 build_infrun.
6552
6553 * regcache.h: Update comments describing the regcache_cpy family
6554 of functions.
6555 (regcache_save, regcache_restore): Delete declaration.
6556 (regcache_save_no_passthrough): Delete declaration.
6557 (regcache_restore_no_passthrough): Delete declaration.
6558 * regcache.c (regcache_save): Delete function.
6559 (regcache_save_no_passthrough): Delete function.
6560 (regcache_restore): Delete function.
6561 (regcache_restore_no_passthrough): Delete function.
6562
6563 2002-06-21 Andrew Cagney <ac131313@redhat.com>
6564
6565 * config/m68k/tm-m68k.h: Fix typo.
6566 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
6567 (m68k_frame_init_saved_regs): Declare.
6568
6569 2002-06-21 Jim Blandy <jimb@redhat.com>
6570
6571 Remove some vestiges of Harris 88k support.
6572 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
6573 register numbering quirk.
6574 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
6575 odd symbols occurring in Harris 88k ELF targets.
6576
6577 2002-06-21 Tom Tromey <tromey@redhat.com>
6578
6579 * gdb_locale.h: New file.
6580 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
6581 (defs_h): Added gdb_locale.h.
6582 * configure, config.in: Rebuilt.
6583 * configure.in (PACKAGE): Define.
6584 * defs.h: Include gdb_locale.h.
6585 * main.c (captured_main): Call setlocale, bindtextdomain,
6586 textdomain.
6587
6588 2002-06-21 Dave Brolley <brolley@redhat.com>
6589
6590 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
6591 * config/frv/frv.mt: New file.
6592 * config/frv/tm-frv.h: New file.
6593 * configure.tgt: Support frv-*-*.
6594 * Makefile.in (frv-tdep.o): New target.
6595 * frv-tdep.c: New file.
6596 * NEWS: Mention frv.
6597
6598 2002-06-21 Dave Brolley <brolley@redhat.com>
6599
6600 * MAINTAINERS: Add self to "Write After Approval" list.
6601
6602 2002-06-21 Grace Sainsbury <graces@redhat.com>
6603
6604 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
6605 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
6606 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
6607 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
6608 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
6609
6610 * m68k-tdep.c: Include arch-utils.h
6611 (m68k_register_raw_size): Add.
6612 (m68k_register_virtual_size): Add.
6613 (m68k_register_virtual_type): Add.
6614 (m68k_register_name): Add.
6615 (m68k_stack_align): Add.
6616 (m68k_register_byte): Add.
6617 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
6618 tm-m68k.h.
6619
6620 2002-06-21 Grace Sainsbury <graces@redhat.com>
6621
6622 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
6623 m68k_find_saved_regs.
6624 (m68k_pop_frame): Removed saved_regs structure, and replaced
6625 references to it with frame->saved_regs.
6626 (m68k_gdbarch_init): Added function calls to initialize the
6627 gdbarch structure.
6628 (m68k_fix_call_dummy): Add.
6629 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
6630 (CALL_DUMMY): Remove.
6631 (CALL_DUMMY_LENGTH): Remove.
6632 (CALL_DUMMY_START_OFFSET): Remove.
6633 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6634 (FIX_CALL_DUMMY): Remove.
6635 (PUSH_DUMMY_FRAME): Remove.
6636 (POP_FRAME): Remove.
6637
6638 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
6639
6640 * parse.c (parse_fprintf): New function used to avoid calls to
6641 fprintf in bison parser generated debug code.
6642 * parser-defs.h: Declaration of new parse_fprintf function.
6643 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
6644 Set YYDEBUG to 1 by default.
6645 Set YYFPRINTF as parse_fprintf.
6646
6647 2002-06-21 Michal Ludvig <mludvig@suse.cz>
6648
6649 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
6650 encoding anymore.
6651 (pointer_encoding, enum ptr_encoding): New.
6652 (execute_cfa_program): Take care about pointer encoding.
6653 (dwarf2_build_frame_info): Only call parse_frame_info for
6654 .debug_frame and .eh_frame.
6655 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
6656 fixed augmentation handling, added relative addressing,
6657 ignore duplicate FDEs. Added comments.
6658 * dwarf2cfi.c: Reindented.
6659
6660 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
6661
6662 * event-top.c (command_handler): Don't use space_at_cmd_start
6663 unless there is sbrk() on the host. Assign time and space data
6664 to union fields of the appropriate length.
6665
6666 2002-06-20 Michal Ludvig <mludvig@suse.cz>
6667
6668 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
6669 x86_64_register_name. Return type changed to 'const char *'.
6670 (x86_64_register_name2nr): Rename to x86_64_register_number.
6671 (x86_64_gdbarch_init): Update to reflect the change.
6672 * x86-64-tdep.h: Ditto.
6673 * x86-64-linux-nat.c (x86_64_fxsave_offset)
6674 (supply_fpregset): Ditto.
6675
6676 2002-06-19 Andrew Cagney <cagney@redhat.com>
6677
6678 * regcache.h: Update copyright.
6679 (struct regcache, struct gdbarch): Add opaque declarations.
6680 (current_regcache): Declare global variable.
6681 (regcache_read, regcache_write): Add gdbarch parameter.
6682 (regcache_save, regcache_save_no_passthrough)
6683 (regcache_restore, regcache_restore_no_passthrough)
6684 (regcache_dup, regcache_dup_no_passthrough)
6685 (regcache_cpy, regcache_cpy_no_passthrough)
6686 (deprecated_grub_regcache_for_registers)
6687 (deprecated_grub_regcache_for_register_valid)
6688 (regcache_valid_p): Add function declarations.
6689
6690 * regcache.c: Update copyright.
6691 (regcache_descr_handle): New global variable.
6692 (struct regcache_descr): Define.
6693 (init_legacy_regcache_descr, init_regcache_descr): New functions.
6694 (regcache_descr, xfree_regcache_descr): New functions.
6695 (struct regcache): Define.
6696 (regcache_xmalloc, regcache_xfree): New functions.
6697 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
6698 (regcache_dup, regcache_dup_no_passthrough): New functions.
6699 (regcache_valid_p, regcache_read_as_address): New functions.
6700 (deprecated_grub_regcache_for_registers): New function.
6701 (deprecated_grub_regcache_for_register_valid): New function.
6702 (current_regcache): New global variable.
6703 (register_buffer): Add regcache parameter. Update calls.
6704 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
6705 (read_register_gen, write_register_gen): Update register_buffer
6706 call. Test for legacy_p instead of gdbarch_register_read_p or
6707 gdbarch_register_write_p.
6708 (regcache_collect): Update register_buffer call.
6709 (build_regcache): Rewrite. Use deprecated grub functions.
6710 (regcache_save, regcache_save_no_passthrough): New functions.
6711 (regcache_restore, regcache_restore_no_passthrough): New
6712 functions.
6713 (_initialize_regcache): Create the regcache_data_handle. Swap
6714 current_regcache global variable.
6715
6716 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
6717 parameter to regcache_read and regcache_write calls.
6718 (sh4_register_read): Ditto.
6719 (sh64_pseudo_register_read): Ditto.
6720 (sh64_register_read): Ditto.
6721 (sh_pseudo_register_write): Ditto.
6722 (sh4_register_write): Ditto.
6723 (sh64_pseudo_register_write): Ditto.
6724 (sh64_register_write): Ditto.
6725
6726 * defs.h (XCALLOC): Define.
6727
6728 2002-06-19 Grace Sainsbury <graces@redhat.com>
6729
6730 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
6731 * m68k-tdep.c (m68k_gdbarch_init): Added.
6732 (m68k_dump_tdep): Added.
6733
6734 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6735
6736 * ada-lang.c (fill_in_ada_prototype): Update comment.
6737
6738 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
6739
6740 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
6741 MIPS_ABI_LAST.
6742 (mips_abi_string, mips_abi_strings): New.
6743 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
6744 (mips_gdbarch_init): Set tdep->found_abi. Don't set
6745 tdep->mips_abi_string. Honor mips_abi_string. Default to
6746 O32 if no ABI is found.
6747 (mips_dump_tdep): Use mips_abi_strings.
6748 (mips_abi_update): New function.
6749 (_initialize_mips_tdep): Initialize mips_abi_string. Add
6750 ``set mips abi'' and ``show mips abi''. Check the size of
6751 mips_abi_strings.
6752
6753 2002-06-19 Andrew Cagney <cagney@redhat.com>
6754
6755 * i386-linux-tdep.c (i386_linux_register_name): Make return type
6756 constant.
6757
6758 2002-06-18 Joel Brobecker <brobecker@gnat.com>
6759
6760 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
6761 current frame using only the first stack size adjustment. All
6762 subsequent size adjustments are not considered to be part of
6763 the "static" part of the current frame.
6764 Compute the address of the saved registers relative to the
6765 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
6766 in use in this frame.
6767
6768 2002-06-18 Don Howard <dhoward@redhat.com>
6769
6770 * valops.c (value_ind): Use value_at_lazy() when dereferencing
6771 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
6772 suggesting this solution.
6773
6774 2002-06-18 Andrew Cagney <ac131313@redhat.com>
6775
6776 * config/romp/xm-rtbsd.h: Delete file.
6777 * config/romp/rtbsd.mh: Delete file.
6778
6779 2002-06-18 Keith Seitz <keiths@redhat.com>
6780
6781 * breakpoint.c (condition_command): Post breakpoint_modify
6782 when a condition is added to an existing breakpoint.
6783 (commands_command): Likewise for commands.
6784 (set_ignore_count): Likewise for ignore counts.
6785 If no tty, do not simply return, still need to send event
6786 notification.
6787 (ignore_command): Only print a newline if the command came
6788 from a tty.
6789 Don't call breakpoints_changed, since this is now properly
6790 handled by set_ignore_count.
6791
6792 2002-06-18 Andrew Cagney <cagney@redhat.com>
6793
6794 * MAINTAINERS: Note that cris-elf target can be compiled with
6795 -Werror.
6796 * cris-tdep.c (cris_register_name): Make return type constant.
6797 (cris_breakpoint_from_pc): Ditto.
6798
6799 2002-06-18 Michal Ludvig <mludvig@suse.cz>
6800
6801 * frame.h (struct frame_info): Change type of context to
6802 'struct context'.
6803
6804 2002-06-17 Andrew Cagney <cagney@redhat.com>
6805
6806 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
6807 pointer.
6808 * gdbarch.h, gdbarch.c: Regenerate.
6809 * config/mips/tm-mips.h (mips_register_name): Update.
6810 * i386-tdep.h (i386_register_name): Update.
6811 * mips-tdep.c (mips_register_name): Update
6812 * alpha-tdep.c (alpha_register_name): Update.
6813 * arch-utils.c (legacy_register_name): Update.
6814 * arch-utils.h (legacy_register_name): Update.
6815 * avr-tdep.c (avr_register_name): Update.
6816 * ia64-tdep.c (ia64_register_name): Update.
6817 * i386-tdep.c (i386_register_name): Update.
6818 * sparc-tdep.c (sparc32_register_name): Update.
6819 (sparc64_register_name): Update.
6820 (sparclite_register_name): Update.
6821 (sparclet_register_name): Update.
6822 * sh-tdep.c (sh_generic_register_name): Update.
6823 (sh_sh_register_name): Update.
6824 (sh_sh3_register_name): Update.
6825 (sh_sh3e_register_name): Update.
6826 (sh_sh_dsp_register_name): Update.
6827 (sh_sh3_dsp_register_name): Update.
6828 (sh_sh4_register_name): Update.
6829 (sh_sh64_register_name): Update.
6830 * s390-tdep.c (s390_register_name): Update.
6831 * rs6000-tdep.c (rs6000_register_name): Update.
6832 * ns32k-tdep.c (ns32k_register_name_32082): Update.
6833 (ns32k_register_name_32382): Update.
6834 * d10v-tdep.c (d10v_ts2_register_name): Update.
6835 (d10v_ts3_register_name): Update.
6836 * xstormy16-tdep.c (xstormy16_register_name): Update.
6837 * vax-tdep.c (vax_register_name): Update.
6838 * v850-tdep.c (v850_register_name): Update.
6839 * m68hc11-tdep.c (m68hc11_register_name): Update.
6840 * mn10300-tdep.c (mn10300_generic_register_name): Update.
6841 (am33_register_name): Update.
6842
6843 2002-06-17 Grace Sainsbury <graces@redhat.com>
6844
6845 * m68k-tdep.c: Reindented.
6846
6847 2002-06-17 Andrew Cagney <ac131313@redhat.com>
6848
6849 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
6850 list of predefined types.
6851
6852 2002-06-16 Mark Kettenis <kettenis@gnu.org>
6853
6854 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
6855 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
6856 REGISTER_CONVERT_TO_RAW): Remove defines.
6857 (i386_register_virtual_type, i386_register_convertible,
6858 i386_register_convert_to_virtual, i386_register_convert_to_raw):
6859 Remove prototypes.
6860 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6861 macros mentioned above.
6862
6863 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
6864 (i386lynx_saved_pc_after_call): Remove prototype.
6865 * i386ly-tdep.c: Include "i386-tdep.h".
6866 (i386lynx_saved_pc_after_call): Make static. Use
6867 read_memory_nobpt instead of read_memory. Use
6868 read_memory_unsigned_integer instead of read_memory_integer.
6869 (i386lynx_init_abi): New function.
6870 (i386lynx_coff_osabi_sniffer): New function.
6871 (_initialize_i386bsd_tdep): New function.
6872
6873 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
6874 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
6875 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
6876 (i386_fix_call_dummy): Remove prototype.
6877 * i386-tdep.c (i386_call_dummy_words): New variable.
6878 (i386_gdbarch_init): Adjust for removal of the
6879 macros mentioned above.
6880
6881 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6882
6883 * command.h (add_setshow_auto_boolean_cmd): Replace
6884 add_set_auto_boolean_cmd.
6885 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
6886 add_set_auto_boolean_cmd.
6887 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
6888 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
6889 mask-address'' command.
6890 (show_mask_address): Add cmd parameter.
6891 * remote.c (add_packet_config_cmd): Update. Change type of
6892 set_func and show_func to cmd_sfunc_ftype.
6893 (_initialize_remote): Update `set remote Z-packet'
6894 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
6895 (show_remote_protocol_e_packet_cmd): Ditto.
6896 (show_remote_protocol_E_packet_cmd): Ditto.
6897 (show_remote_protocol_P_packet_cmd): Ditto.
6898 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
6899 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
6900 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
6901 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
6902 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
6903 (show_remote_protocol_Z_packet_cmd): Ditto.
6904 (show_remote_protocol_binary_download_cmd): Ditto.
6905 (show_remote_cmd): Pass NULL to all of above.
6906
6907 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6908
6909 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
6910 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
6911 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
6912 POP_FRAME): Remove defines.
6913 (i386_push_arguments, i386_store_struct_return,
6914 i386_extract_return_value, i386_store_return_value,
6915 i386_extract_struct_value_address, i386_push_dummy_frame,
6916 i386_pop_frame): Renove prototypes.
6917 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6918 macros mentioned above.
6919
6920 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6921
6922 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
6923 add_set_boolean_cmd.
6924 (add_setshow_cmd): New function.
6925 * command.h (add_setshow_boolean_cmd): Replace
6926 add_set_boolean_cmd.
6927 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
6928 and ``set rdiromatzero''.
6929 * maint.c (_initialize_maint_cmds): Update commented out code.
6930 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
6931 * target.c (initialize_targets): Update `set
6932 trust-readonly-sections'.
6933 * remote.c (_initialize_remote): Update `set remotebreak'.
6934
6935 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6936
6937 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
6938 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
6939 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
6940 fit into multi-arch framework.
6941 (i386_breakpoint_from_pc): New function.
6942 (i386_gdbarch_init): Adjust for removal of the macros mentioned
6943 above.
6944
6945 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
6946 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
6947 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
6948 (i386_frameless_function_invocation, i386_frame_num_args,
6949 i386_frame_init_saved_regs): Remove prototypes.
6950 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
6951 macros mentioned above.
6952
6953 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6954
6955 * cli/cli-decode.c (set_cmd_cfunc): Update.
6956 (set_cmd_sfunc): Update.
6957 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
6958 (set_cmd_sfunc, set_cmd_cfunc): Update.
6959 * cli/cli-decode.h: Update.
6960
6961 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6962
6963 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
6964 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
6965
6966 2002-06-15 Andrew Cagney <ac131313@redhat.com>
6967
6968 * defs.h (auto_boolean): Declare enum.
6969 * command.h (cmd_auto_boolean): Delete enum.
6970 * mips-tdep.c (mask_address_var): Update.
6971 (mips_mask_address_p): Update.
6972 (show_mask_address): Update.
6973 * remote.c (struct packet_config): Update.
6974 (update_packet_config): Update.
6975 (show_packet_config_cmd): Update.
6976 (packet_ok): Update.
6977 (add_packet_config_cmd): Update.
6978 (_initialize_remote):
6979 * command.h: Update.
6980 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
6981 (do_setshow_command): Update.
6982 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
6983 * cli/cli-decode.h: Update.
6984
6985 2002-06-15 Mark Kettenis <kettenis@gnu.org>
6986
6987 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
6988 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
6989 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
6990 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
6991 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
6992 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
6993
6994 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
6995 list of DJGPP COFF targets.
6996
6997 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
6998 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
6999 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7000 (FP0_REGNUM): Remove define.
7001 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7002 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7003 (i386_register_virtual_size): Remove protoype.
7004 * i386-tdep.c (i386_register_virtual_size): Removed.
7005 (i386_extract_return_value, i386_store_return_value): Use
7006 FP0_REGNUM instead of NUM_FREGS to determine whether the
7007 floating-point registers are available.
7008 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7009 Adjust for removal of macros mentioned above.
7010
7011 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7012
7013 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7014 comments.
7015 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7016 Remove prototypes.
7017 (supply_gregset, fill_gregset): Remove use of register keyword and
7018 remove declaration for regmap. Use I386_NUM_GREGS instead of
7019 NUM_REGS and NUM_FREGS.
7020 (FPREGSET_FSAVE_OFFSET): Remove.
7021 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7022 NUM_FREGS to determine whether the floating-point registers are
7023 available.
7024
7025 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7026 gnu_store_registers): Replace usage of NUM_GREGS with
7027 I386_NUM_GREGS.
7028
7029 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7030 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7031 usage of NUM_GREGS with I386_NUM_GREGS.
7032
7033 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7034
7035 * i386bsd-nat.c: Include "i386-tdep.h".
7036 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7037 I386_NUM_GREGS.
7038
7039 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7040 and associated comment. They no longer make any sense, since we
7041 don't use this file anymore on Linux.
7042
7043 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7044 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7045 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7046 elements in these arrays.
7047 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7048 MAX_NUM_REGS.
7049
7050 2002-06-15 Mark Kettenis <kettenis@gnu.org>
7051
7052 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7053 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7054
7055 2002-06-14 Andrew Cagney <cagney@redhat.com>
7056
7057 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7058 EXTRACT_RETURN_VALUE.
7059 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7060 EXTRACT_STRUCT_VALUE_ADDRESS.
7061 * gdbarch.h, gdbarch.c: Regenerate.
7062
7063 * values.c (value_being_returned): Handle
7064 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7065 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7066
7067 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7068 * arm-tdep.c (arm_gdbarch_init): Update.
7069 * avr-tdep.c (avr_gdbarch_init): Update.
7070 * cris-tdep.c (cris_gdbarch_init): Update.
7071 * d10v-tdep.c (d10v_gdbarch_init): Update.
7072 * ia64-tdep.c (ia64_gdbarch_init): Update.
7073 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7074 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7075 * s390-tdep.c (s390_gdbarch_init): Update.
7076 * sh-tdep.c (sh_gdbarch_init): Update.
7077 * s390-tdep.c (s390_gdbarch_init): Update.
7078 * sparc-tdep.c (sparc_gdbarch_init): Update.
7079 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7080 * v850-tdep.c (v850_gdbarch_init): Update.
7081 * vax-tdep.c (vax_gdbarch_init): Update.
7082 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7083 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7084
7085 * config/arc/tm-arc.h: Update.
7086 * config/d30v/tm-d30v.h: Update.
7087 * config/fr30/tm-fr30.h: Update.
7088 * config/h8300/tm-h8300.h: Update.
7089 * config/h8500/tm-h8500.h: Update.
7090 * config/i386/tm-i386.h: Update.
7091 * config/i386/tm-ptx.h: Update.
7092 * config/i386/tm-symmetry.h: Update.
7093 * config/i960/tm-i960.h: Update.
7094 * config/m32r/tm-m32r.h: Update.
7095 * config/m68k/tm-delta68.h: Update.
7096 * config/m68k/tm-linux.h: Update.
7097 * config/m68k/tm-m68k.h: Update.
7098 * config/m88k/tm-m88k.h: Update.
7099 * config/mcore/tm-mcore.h: Update.
7100 * config/mips/tm-mips.h: Update.
7101 * config/mn10200/tm-mn10200.h: Update.
7102 * config/pa/tm-hppa.h: Update.
7103 * config/pa/tm-hppa64.h: Update.
7104 * config/sparc/tm-sp64.h: Update.
7105 * config/sparc/tm-sparc.h: Update.
7106 * config/sparc/tm-sparclet.h: Update.
7107 * config/z8k/tm-z8k.h: Update.
7108
7109 2002-06-14 Andrew Cagney <cagney@redhat.com>
7110
7111 * Makefile.in (i386_linux_tdep_h): Define.
7112 (i386_tdep_h, i387_tdep_h): Define.
7113 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7114 $(i386_tdep_h) and $(i387_tdep_h).
7115 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7116
7117 2002-06-14 Mark Kettenis <kettenis@gnu.org>
7118
7119 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7120 Already covered by the default.
7121
7122 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7123 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7124 (i386_gdbarch_init): Initialize long_double_format and long_double
7125 bit.
7126
7127 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7128 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7129 Move these to ...
7130 * config/i386/i386sol2.mh: ... here.
7131 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7132 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7133 (SIGCONTEXT_PC_OFFSET): Remove define.
7134 (IN_SIGTRAMP): Remove define.
7135 * i386-sol2-tdep.c: New file.
7136
7137 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7138 * config/i386/tm-i386nw.h: Removed.
7139
7140 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7141 USE_STRUCT_CONVENTION): Remove defines.
7142 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7143 (get_longjmp_target): Remove prototype.
7144 (IN_SIGTRAMP): Remove define.
7145 (i386bsd_in_sigtramp): Remove prototype.
7146 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7147 function. Update comment accordingly
7148 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7149 (FRAME_SAVED_PC): Remove define.
7150 (i386bsd_frame_saved_pc): Remove prototype.
7151 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7152 GET_LONGJMP_TARGET): Remove defines.
7153 (get_longjmp_target): Remove prototype.
7154 (IN_SIGTRAMP): Remove define.
7155 (i386bsd_in_sigtramp): Remove prototype.
7156 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7157 function. Update comment accordingly
7158 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7159 (FRAME_SAVED_PC): Remove define.
7160 (i386bsd_frame_saved_pc): Remove prototype.
7161 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7162 Remove prototype.
7163 (USE_STRUCT_CONVENTION): Remove prototype.
7164 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7165 declaration.
7166 (_initialize_i386bsd_nat): Revise logic to determine some
7167 constants at compile time when compiling a native GDB. Warn if
7168 things don't match up with what we expect.
7169 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7170 Remove variables.
7171 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7172 to use date stored in `struct gdbarch_tdep'.
7173 (i386bsd_sigcontext_offset): Remove varaible.
7174 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7175 stored in `struct gdbarch_tdep'.
7176 (i386bsd_frame_saved_pc): Make static.
7177 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7178 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7179 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7180 i386fbsd4_sc_pc_offset): New variables.
7181 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7182 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7183 functions.
7184 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7185 functions.
7186 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7187 Modify the value of i386fbsd_sigtramp_start and
7188 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7189 i386fbsd_sigtramp_end.
7190 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7191 function.
7192
7193 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7194 define to i386-linux-tdep.h.
7195 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7196 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7197 defines.
7198 (i386_linux_register_name, i386_linux_register_byte,
7199 i386_linux_register_raw_size): Remove prototypes.
7200 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7201 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7202 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7203 TARGET_WRITE_PC): Remove defines.
7204 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7205 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7206 i386_linux_write_pc): Remove prototypes.
7207 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7208 (get_longjmp_target): Remove prototype.
7209 * i386-linux-tdep.h: New file.
7210 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7211 * i386-linux-tdep.c: Include "i386-tdep.h" and
7212 "i386-linux-tdep.h".
7213 (i386_linux_register_name, i386_linux_register_byte,
7214 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7215 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7216 Make static.
7217 (i386_linux_init_abi): New function.
7218 (_initialize_i386_linux_tdep): New function.
7219
7220 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7221 (i386_saved_pc_after_call): Remove prototype.
7222 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7223 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7224 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7225 (i386_register_name, i386_stab_reg_to_regnum,
7226 i386_dwarf_reg_to_regnum): Remove prototypes.
7227 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7228 SIZEOF_SSE_REGS): Remove defines.
7229 (REGISTER_BYTES): Remove define.
7230 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7231 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7232 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7233 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7234 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7235 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7236 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7237 (get_longjmp_target): Remove prototype.
7238 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7239 (sigtramp_saved_pc): Remove define.
7240 (i386v4_sigtramp_saved_pc): Remove prototype.
7241 * config/i386/tm-go32.h (FRAME_CHAIN,
7242 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7243 (i386go32_frame_saved_pc): Remove prototype.
7244 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7245 (get_longjmp_target): Remove prototype.
7246 * i386-tdep.h: Include "osabi.h".
7247 (enum i386_abi): Removed.
7248 (enum struct_return): New enum.
7249 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7250 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7251 sc_pc_offset members.
7252 (i386_gdbarch_register_os_abi): Remove prototype.
7253 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7254 I386_SSE_NUM_REGS): New defines.
7255 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7256 I386_SSE_SIZEOF_REGS): New defines.
7257 (i386_register_name, i386_register_byte, i386_register_raw_size):
7258 New prototypes.
7259 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7260 (i386bsd_sigtramp_saved_pc): New prototype.
7261 * i386-tdep.c: Don't include "elf-bfd.h".
7262 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7263 i386_frame_chain, i386_saved_pc_after_call): Make static.
7264 (i386_frame_saved_pc): Rewrite to call architecture dependent
7265 function to deal with signal handlers. Make static.
7266 (i386go32_frame_saved_pc): Removed.
7267 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7268 Removed.
7269 (i386_get_longjmp_target): New function.
7270 (default_struct_convention, pcc_struct_convention,
7271 reg_struct_convention, valid_conventions, struct_convention): New
7272 variables.
7273 (i386_use_struct_convention): New function.
7274 (i386v4_sigtramp_saved_pc): Renamed to
7275 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7276 (i386_pc_in_sigtramp): New function.
7277 (i386_abi_names): Removed.
7278 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7279 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7280 Removed.
7281 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7282 i386_gdbarch_register_os_abi): Removed.
7283 (struct i386_abi_handler): Removed.
7284 (i386_abi_handler_list): Removed.
7285 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7286 functions.
7287 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7288 i386_nw_init_abi): New functions.
7289 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7290 Use set_gdbarch_xxx() calls instead of relying on macros for a
7291 number of calls.
7292 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7293 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7294 Register the various architecture variants defined in this file.
7295
7296 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
7297
7298 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7299 (struct main_type): Remove arg_types member. Update comments for
7300 struct field.
7301 (TYPE_ARG_TYPES): Remove.
7302 (TYPE_FN_FIELD_ARGS): Update.
7303 (smash_to_method_type): Update prototype.
7304
7305 * c-typeprint.c (cp_type_print_method_args): Take method type
7306 instead of argument list. Use new argument layout. Simplify.
7307 (c_type_print_args): Use new argument layout. Simplify.
7308 (c_type_print_base): Update call to cp_type_print_method_args.
7309 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7310 argument; use die->type instead. Update call to
7311 smash_to_method_type.
7312 (read_structure_scope): Update call to dwarf2_add_member_fn.
7313 * gdbtypes.c (allocate_stub_method): Update comment.
7314 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7315 Use new argument layout.
7316 (check_stub_method): Use new argument layout. Don't count
7317 void as an argument.
7318 (print_arg_types): Update comments. Use new argument layout.
7319 (recursive_dump_type): Don't print arg_types member.
7320 * hpread.c (hpread_read_struct_type): Use new argument layout.
7321 (fixup_class_method_type): Likewise.
7322 (hpread_type_lookup): Likewise.
7323 * stabsread.c (read_type): Update calls to read_args and
7324 smash_to_method_type.
7325 (read_args): Use new argument layout. Simplify.
7326 * valops.c (typecmp): Use new argument layout. Update parameters
7327 and comments. Simplify.
7328 (hand_function_call): Use new argument layout.
7329 (search_struct_method): Update call to typecmp.
7330 (find_overload_match): Use new argument layout.
7331
7332 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7333
7334 * NEWS: Mention multithreaded debug support for gdbserver.
7335
7336 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7337
7338 * MAINTAINERS: Mention NEWS.
7339
7340 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
7341
7342 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7343 (struct mips_objfile_private, compare_pdr_entries): New.
7344 (non_heuristic_proc_desc): Read the ".pdr" section if it
7345 is present.
7346
7347 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7348
7349 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7350 (arm_debug): New static variable.
7351 (_initialize_arm_tdep): Add ``set debug arm'' command.
7352
7353 2002-06-12 Andrew Cagney <ac131313@redhat.com>
7354
7355 * Makefile.in (sim_arm_h): Define.
7356 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7357 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7358 (arm_register_sim_regno): New function, map an internal REGNUM
7359 onto a simulator register number.
7360 (arm_gdbarch_init): Set register_sim_regno.
7361
7362 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
7363
7364 * MAINTAINERS: Add self.
7365
7366 2002-06-11 Jim Blandy <jimb@redhat.com>
7367
7368 * source.c (source_info): Mention whether the symtab has
7369 information about preprocessor macros.
7370
7371 Call the command `info macro', not `show macro'.
7372 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7373 Fix error message.
7374 (_initialize_macrocmd): Register `info_macro_command' in
7375 `infolist', not `showlist'.
7376
7377 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
7378
7379 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7380 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7381 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7382 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7383 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7384 unconditionally.
7385 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7386 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7387 (_initialize_mips_tdep): Remove dead code.
7388 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7389 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7390 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7391 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7392 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7393 MIPS_LAST_FP_ARG_REGNUM): Remove.
7394
7395 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7396
7397 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7398 (unwind_tmp_obstack_free, parse_frame_info)
7399 (update_context, cfi_read_fp, cfi_write_fp)
7400 (cfi_frame_chain, cfi_init_extra_frame_info)
7401 (cfi_virtual_frame_pointer): Use the above function.
7402 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
7403
7404 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
7405
7406 * v850-tdep.c (v850_type_is_scalar): New function.
7407 (v850_use_struct_convention): Match current gcc implementation
7408 as close as possible.
7409 (v850_push_arguments): Fix stack_offset handling. Don't write
7410 struct_addr into register. This is done by v850_store_struct_return.
7411 (v850_extract_return_value): Care for structs.
7412 (v850_store_return_value): Ditto.
7413 (v850_store_struct_return): Actually write address.
7414
7415 2002-06-11 Michal Ludvig <mludvig@suse.cz>
7416
7417 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7418 without debug information too.
7419
7420 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7421
7422 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7423 Make multi-arch pure.
7424 * gdbarch.h, gdbarch.c: Re-generate.
7425 * arm-tdep.c (arm_print_float_info): Update.
7426 * arch-utils.h (default_print_float_info): Update.
7427 * arch-utils.c (default_print_float_info): Update.
7428 * infcmd.c (float_info): Update call.
7429
7430 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7431
7432 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7433 the front of the initialize list.
7434
7435 2002-06-10 Andrew Cagney <ac131313@redhat.com>
7436
7437 * infrun.c (struct inferior_status): Replace fields
7438 selected_frame_address and selected_level with field
7439 selected_frame_id.
7440 (save_inferior_status): Update. Use get_frame_id.
7441 (struct restore_selected_frame_args): Delete.
7442 (restore_selected_frame): Update. Use frame_find_by_id.
7443 (restore_inferior_status): Update.
7444
7445 * breakpoint.h (struct breakpoint): Change type of
7446 watchpoint_frame to frame_id.
7447 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7448 call to get_current_frame.
7449 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7450 get_current_frame.
7451 (watchpoint_check): Use frame_find_by_id.
7452
7453 * frame.h (record_selected_frame): Delete declaration.
7454 * stack.c (record_selected_frame): Delete function.
7455
7456 * frame.h (struct frame_id): Define.
7457 (get_frame_id): Declare.
7458 (frame_find_by_id): Declare.
7459 * frame.c (frame_find_by_id): New function.
7460 (get_frame_id): New function.
7461
7462 2002-06-10 Andrey Volkov <avolkov@transas.com>
7463
7464 * ser-e7kpc.c: Fix duplicated define and call of
7465 _initialize_ser_e7000pc
7466
7467 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7468
7469 * signals/signals.c (target_signal_from_host): Fix #ifdef
7470 SIGRTMIN case.
7471 (do_target_signal_to_host): Likewise.
7472
7473 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
7474
7475 * mips-tdep.c (mips_find_abi_section): New function.
7476 (mips_gdbarch_init): Call it.
7477
7478 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7479
7480 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7481 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7482 after Andrew's 2002-06-08 gdbarch change.
7483
7484 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7485
7486 * i386-linux-nat.c (suppy_gregset): Don't supply
7487 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7488 register cache.
7489 (fill_gregset): Don't fetch it under the same circumstances.
7490
7491 2002-06-09 Andrew Cagney <cagney@redhat.com>
7492
7493 * Makefile.in (callback_h): Define.
7494 (remote_sim_h): Update path to remote-sim.h.
7495 (remote-rdp.o): Add $(callback_h).
7496 (remote-sim.o): Use $(callback_h).
7497 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7498 * remote-rdp.c: Include "gdb/callback.h".
7499
7500 2002-06-09 Mark Kettenis <kettenis@gnu.org>
7501
7502 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7503 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7504
7505 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7506
7507 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
7508 * rdi-share/serpardr.c: Ditto.
7509 * rdi-share/unixcomm.c: Ditto.
7510 * rdi-share/serdrv.c: Ditto.
7511 * rdi-share/hostchan.h: Ditto.
7512 * rdi-share/hostchan.c: Ditto.
7513 * rdi-share/host.h: Ditto.
7514 * rdi-share/devsw.c: Ditto.
7515
7516 * objfiles.h: Change type of obj_private to void pointer.
7517 * pa64solib.c: Update copyright. Don't include "assert.h", use
7518 strcmp instead of STREQ, use LONGEST, do not use PTR
7519 * somsolib.c: Ditto.
7520
7521 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
7522 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
7523 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
7524
7525 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7526
7527 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
7528 (default_get_saved_register): Delete function.
7529 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
7530 generic_unwind_get_saved_register.
7531 * gdbarch.h, gdbarch.c: Re-generate.
7532
7533 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7534
7535 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
7536 generic_func_frame_chain_valid.
7537 * gdbarch.h, gdbarch.c: Re-generate.
7538 * blockframe.c (generic_func_frame_chain_valid): Only check
7539 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
7540 passing FP to PC_IN_CALL_DUMMY.
7541 Fix PR gdb/360.
7542
7543 2002-06-08 Andrew Cagney <ac131313@redhat.com>
7544
7545 * gdbarch.sh (struct gdbarch_data): Add field init_p.
7546 (register_gdbarch_data): Initialize init_p.
7547 (gdbarch_data): Initialize data pointer using the init function.
7548 (init_gdbarch_data): Delete function.
7549 (gdbarch_update_p): Update.
7550 (initialize_non_multiarch): Update.
7551 (struct gdbarch): Add field initialized_p.
7552 * gdbarch.h, gdbarch.c: Re-generate.
7553
7554 2002-06-07 Michal Ludvig <mludvig@suse.cz>
7555
7556 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
7557 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
7558 better do the things actually here.
7559 * x86-64-tdep.c (x86_64_register_name2nr): New.
7560 (x86_64_register_name): Renamed to x86_64_register_nr2name.
7561 (x86_64_gdbarch_init): Respect the above change.
7562 * x86-64-tdep.h (x86_64_register_name2nr)
7563 (x86_64_register_nr2name): Add prototypes.
7564 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
7565
7566 2002-06-06 Michael Snyder <msnyder@redhat.com>
7567
7568 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
7569 Delete extra braces and re-indent.
7570 (d10v_store_return_value): Char return values
7571 must be shifted over by one byte in R0.
7572 (d10v_extract_return_value): Delete extra braces, re-indent.
7573
7574 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7575
7576 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
7577 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
7578 (d10v_integer_to_address): Rewrite.
7579 (d10v_frame_init_saved_regs): When reading fp and sp registers use
7580 the d10v specific functions which take care of converting to the
7581 correct space.
7582
7583 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
7584
7585 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
7586 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
7587
7588 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7589
7590 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
7591 includes.
7592 * config/tm-linux.h: Ditto.
7593 * config/alpha/tm-alphalinux.h: Ditto.
7594 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
7595 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
7596 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
7597 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
7598 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
7599 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
7600 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
7601 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
7602 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
7603 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
7604 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
7605 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
7606 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
7607 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
7608 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
7609 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
7610 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
7611 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
7612 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
7613 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
7614 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
7615 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
7616 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
7617 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
7618 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
7619 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
7620 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
7621 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
7622 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
7623 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
7624 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
7625 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
7626 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
7627 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
7628 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
7629 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
7630 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
7631
7632 2002-05-04 Aidan Skinner <aidan@velvet.net>
7633
7634 * ada-exp.tab.c: New file
7635 * ada-exp.y: New file
7636 * ada-lang.c: New file
7637 * ada-lang.h: New file
7638 * ada-lex.c: New file
7639 * ada-lex.l: New file
7640 * ada-tasks.c: New file
7641 * ada-typeprint.c: New file
7642 * ada-valprint.c: New file
7643
7644 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7645
7646 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
7647 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
7648
7649 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
7650
7651 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
7652 insetead of ppc-linux-tdep.o.
7653 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
7654 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
7655
7656 2002-06-02 Andrew Cagney <ac131313@redhat.com>
7657
7658 2002-05-07 Christian Groessler <chris@groessler.org>
7659 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
7660 bit register contents for little endian hosts.
7661
7662 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7663
7664 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
7665 any maintainer.
7666
7667 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7668
7669 * gdbarch.h: Regenerate.
7670
7671 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7672
7673 * MAINTAINERS: Add everyone to write-after-approval list.
7674
7675 2002-06-01 Andrew Cagney <ac131313@redhat.com>
7676
7677 * stack.c (frame_info): Use frame_register_unwind instead of
7678 saved_regs. Mention when the SP is on the stack or in a register.
7679
7680 * frame.h (frame_register_unwind_ftype): Define. Document.
7681 (struct frame_info): Add field register_unwind and
7682 register_unwind_cache.
7683 (frame_register_unwind): Declare.
7684 (generic_unwind_get_saved_register): Declare.
7685
7686 * frame.c (frame_register_unwind): New function.
7687 (generic_unwind_get_saved_register): New function.
7688
7689 * blockframe.c (generic_call_dummy_register_unwind): New function.
7690 (frame_saved_regs_register_unwind): New function.
7691 (set_unwind_by_pc): New function.
7692 (create_new_frame): New function.
7693 (get_prev_frame): New function.
7694
7695 2002-05-30 Andrew Cagney <ac131313@redhat.com>
7696
7697 * a29k-share/: Delete directory.
7698 * remote-vx29k.c: Delete file.
7699
7700 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7701
7702 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
7703 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7704
7705 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7706
7707 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
7708 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
7709 (sparc64nbsd-nat.o)
7710 (sparcnbsd-nat.o)
7711 (sparcnbsd-tdep.o): New dependency lists.
7712 * NEWS: Note new UltraSPARC NetBSD native configuration.
7713 * configure.host (sparc64-*-netbsd*): New host.
7714 * configure.tgt (sparc-*-netbsdelf*)
7715 (sparc-*-netbsd*): Set gdb_target to nbsd.
7716 (sparc64-*-netbsd*): New target.
7717 * sparc64nbsd-nat.c: New file.
7718 * sparcnbsd-nat.c: New file.
7719 * sparcnbsd-tdep.c: New file.
7720 * sparcnbsd-tdep.h: New file.
7721 * config/sparc/nbsd.mt: New file.
7722 * config/sparc/nbsd64.mh: New file.
7723 * config/sparc/nbsd64.mt: New file.
7724 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
7725 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7726 (HOST_IPC): Remove.
7727 * config/sparc/nbsdaout.mt: Remove.
7728 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
7729 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
7730 (HOST_IPC): Remove.
7731 * config/sparc/nbsdelf.mt: Remove.
7732 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
7733 sparc-nat.c compatiblity defines.
7734 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
7735 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
7736 * config/sparc/tm-nbsd64.h: New file.
7737 * config/sparc/tm-nbsdaout.h: Remove.
7738 * config/sparc/xm-nbsd.h: Remove.
7739
7740 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
7741
7742 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
7743 * sparc-tdep.c: Include osabi.h.
7744 (gdbarch_tdep): Add osabi member.
7745 (_initialize_sparc_tdep): Use gdbarch_register.
7746 (sparc_gdbarch_init): Use generic OS ABI framework.
7747 (sparc_dump_tdep): New function.
7748
7749 2002-05-30 Kevin Buettner <kevinb@redhat.com>
7750
7751 * corefile.c (do_captured_read_memory_integer): Return non-zero
7752 result.
7753 (safe_read_memory_integer): Copy result of memory read when
7754 status is non-zero. Also, add comments.
7755
7756 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
7757
7758 * Makefile.in (ppc_tdep_h): Define.
7759 (ppc-linux-nat.o)
7760 (ppc-linux-tdep.o)
7761 (rs6000-tdep.o): Use $(ppc_tdep_h).
7762 (ppc-sysv-tdep.o)
7763 (ppcnbsd-nat.o)
7764 (ppcnbsd-tdep.o): New dependency lists.
7765 * ppc-tdep.h: Use generic OS ABI framework.
7766 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
7767 (ppc_linux_init_abi): New functions.
7768 (ppc_sysv_abi_broken_use_struct_convention)
7769 (ppc_sysv_abi_use_struct_convention)
7770 (ppc_sysv_abi_push_arguments): Move to...
7771 * ppc-sysv-tdep.c: ...here.
7772 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
7773 * rs6000-tdep.c (process_note_abi_tag_sections)
7774 (get_elfosabi): Remove.
7775 (rs6000_gdbarch_init): Use generic OS ABI framework.
7776 (rs6000_dump_tdep): New function.
7777 (_initialize_rs6000_tdep): Use gdbarch_register.
7778 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
7779 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
7780 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
7781 of ppc-linux-tdep.o.
7782 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
7783 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
7784 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
7785 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
7786 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
7787 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
7788
7789 2002-05-29 Jim Blandy <jimb@redhat.com>
7790
7791 * macroscope.c (default_macro_scope): Put `void' in empty argument
7792 list.
7793
7794 2002-05-29 Andrew Cagney <ac131313@redhat.com>
7795
7796 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
7797 * arch-utils.c: Include "sim-regno.h".
7798 * gdbarch.sh: Don't include "sim-regno.h".
7799 * gdbarch.h, gdbarch.c: Regenerate.
7800 * sim-regno.h (legacy_register_sim_regno): Move declaration from
7801 here.
7802 * arch-utils.h (legacy_register_sim_regno): To here.
7803 * remote-sim.c (legacy_register_sim_regno): Move function from
7804 here.
7805 * arch-utils.c (legacy_register_sim_regno): To here.
7806
7807 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7808
7809 * sim-regno.h: New file.
7810 * Makefile.in (sim_regno_h): Define.
7811 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
7812 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
7813 (legacy_register_sim_regno): New function.
7814 (one2one_register_sim_regno): New function.
7815 (gdbsim_fetch_register): Rewrite.
7816 (gdbsim_store_register): Only store a register when
7817 REGISTER_SIM_REGNO is valid.
7818 * d10v-tdep.c: Include "sim-regno.h".
7819 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
7820 (d10v_ts3_register_sim_regno): Ditto.
7821 * gdbarch.sh: Include "sim-regno.h".
7822 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
7823 * gdbarch.h, gdbarch.c: Regenerate.
7824 * arch-utils.h (default_register_sim_regno): Delete declaration.
7825 * arch-utils.c (default_register_sim_regno): Delete function.
7826
7827 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
7828
7829 * ppcnbsd-nat.c: Rewrite.
7830 * ppcnbsd-tdep.c: New file.
7831 * ppcnbsd-tdep.h: New file.
7832 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
7833 solib.o, and solib-svr4.o.
7834 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
7835 nbsd-tdep.o, and corelow.o.
7836
7837 2002-05-28 Andrew Cagney <ac131313@redhat.com>
7838
7839 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
7840 `tr' and `sed'. Mention that `broken' targets are not expected to
7841 build.
7842
7843 2002-05-27 Michal Ludvig <mludvig@suse.cz>
7844
7845 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
7846 Let PC point right after the prologue before looking up symbols.
7847
7848 2002-05-27 Martin M. Hunt <hunt@redhat.com>
7849
7850 * i386-tdep.c (i386_register_virtual_type): Return
7851 builtin_type_vec128i for SSE registers.
7852
7853 * gdbtypes.h (builtin_type_vec128i): Declare.
7854
7855 * gdbtypes.c (build_builtin_type_vec128i): New function.
7856 (builtin_type_v2_double, builtin_type_v4_int64): New types.
7857 (builtin_type_vec128i): New type for SSE2 128-bit registers.
7858 (build_gdbtypes): Initialize new builtin vector types.
7859 (_initialize_gdbtypes): Register new vector types with gdbarch.
7860
7861 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7862
7863 * MAINTAINERS: ns32k is not longer an obsolete candidate,
7864 since it has been multi-arch'd.
7865 * NEWS: Note that ns32k-*-* is now partial multi-arch.
7866 Move Alpha and VAX multi-arch news entries to same section
7867 as other multi-arch news.
7868
7869 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7870
7871 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
7872 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
7873 static. Rename some register numbers to put them in ns32k-tdep
7874 private namespace.
7875 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
7876 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
7877 functions.
7878 (_initialize_ns32k_tdep): Use gdbarch_register.
7879 * ns32k-tdep.h: New file.
7880 * ns32knbsd-tdep.c: New file.
7881 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
7882 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
7883 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
7884 REGISTER_BYTES, REGISTER_BYTE): Remove.
7885 * config/ns32k/tm-ns32k.h: New file.
7886 * config/ns32k/tm-umax.h: Remove.
7887
7888 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7889
7890 * ns32k-tdep.c (ns32k_saved_pc_after_call,
7891 ns32k_store_struct_return, ns32k_extract_return_value,
7892 ns32k_store_return_value, ns32k_extract_struct_value_address): New
7893 functions.
7894 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
7895 ns32k_saved_pc_after_call.
7896 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
7897 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
7898 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
7899 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
7900 ns32k_extract_struct_value_address.
7901
7902 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7903
7904 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
7905 ns32k_fix_call_dummy): New.
7906 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
7907 ns32k_call_dummy_words.
7908 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
7909 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
7910 CALL_DUMMY_NARGS): Remove.
7911 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
7912
7913 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7914
7915 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
7916 ns32k_frame_saved_pc, ns32k_frame_args_address,
7917 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
7918 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
7919 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
7920 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
7921 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
7922 (BREAKPOINT): Remove..
7923 (FRAME_CHAIN): Define as ns32k_frame_chain.
7924 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
7925 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
7926 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
7927 (FRAME_FIND_SAVED_REGS): Remove.
7928 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
7929 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
7930 (POP_FRAME): Define as ns32k_pop_frame.
7931
7932 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7933
7934 * ns32k-tdep.c (ns32k_register_byte_32082,
7935 ns32k_register_byte_32382, ns32k_register_raw_size,
7936 ns32k_register_virtual_size, ns32k_register_virtual_type): New
7937 functions.
7938 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
7939 ns32k_register_byte_32382.
7940 * config/ns32k/tm-umax.h: Update copyright years.
7941 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
7942 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
7943 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
7944 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
7945 (ns32k_get_enter_addr): Fix prototype.
7946
7947 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
7948
7949 * ns32k-tdep.c: Update copyright years.
7950 (ns32k_register_name_32082): New function.
7951 (ns32k_register_name_32382): Ditto.
7952 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
7953 (REGISTER_NAME): Define as ns32k_register_name_32382.
7954 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
7955 (REGISTER_NAME): Define as ns32k_register_name_32082.
7956
7957 2002-05-24 Jim Blandy <jimb@redhat.com>
7958
7959 * dwarf2read.c (free_line_header): Use xfree, not free.
7960
7961 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
7962
7963 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
7964 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
7965
7966 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7967
7968 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
7969
7970 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7971
7972 From Ross Alexander at NEC Europe:
7973 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
7974
7975 2002-05-23 Michael Snyder <msnyder@redhat.com>
7976
7977 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
7978 for input, rather than parse_and_eval_address.
7979
7980 2002-05-23 Andrew Cagney <ac131313@redhat.com>
7981
7982 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
7983 * Makefile.in (sim_d10v_h): Update definition.
7984
7985 2002-05-24 Andrew Cagney <cagney@redhat.com>
7986
7987 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
7988 change `2002-05-22 Michael Snyder' below.
7989 (d10v_push_arguments): Ditto.
7990 (d10v_extract_return_value): Ditto.
7991
7992 2002-05-23 Jim Blandy <jimb@redhat.com>
7993
7994 * macrotab.c (check_for_redefinition): Don't complain if the new
7995 definition is the same as the previous one. Take more arguments
7996 to allow the comparison.
7997 (macro_define_object, macro_define_function): Pass more arguments
7998 to check_for_redefinition.
7999
8000 2002-05-22 Michael Snyder <msnyder@redhat.com>
8001
8002 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8003 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8004 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8005 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8006 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8007 Add a temp variable to save a call (and a memory read).
8008 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8009 if possible (so that PC_IN_CALL_DUMMY will work).
8010
8011 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
8012
8013 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8014
8015 2002-05-22 Michal Ludvig <mludvig@suse.cz>
8016
8017 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8018 fde->cie_ptr.
8019 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8020 (dwarf2_build_frame_info): Add offset to fde->initial_location
8021 so that frames of shared libraries are mapped correctly.
8022 (execute_stack_op): Change type of 'result' from ULONGEST to
8023 CORE_ADDR.
8024
8025 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8026
8027 * config/alpha/tm-nbsd.h: Include solib.h.
8028
8029 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8030
8031 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8032 assumptions about the host's byte order.
8033
8034 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8035
8036 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8037 to dependency list.
8038 * alphanbsd-tdep.c: Include solib-svr4.h.
8039 * shnbsd-tdep.c: Ditto.
8040
8041 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
8042
8043 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8044 nbsd-tdep.h to dependency list.
8045 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8046 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8047 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8048 nbsdaout.mh and nbsdelf.mh consistently.
8049 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8050 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8051 nbsdaout.mt and nbsdelf.mh consistently.
8052 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8053 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8054 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8055 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8056 a.out shared library stuff from here...
8057 * config/nm-nbsdaout.h: ...to here.
8058 * config/tm-nbsd.h: Remove.
8059 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8060 * config/arm/nbsd.mh: Remove.
8061 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8062 nbsd-tdep.o.
8063 * config/arm/nbsdaout.mh: New file.
8064 * config/arm/nbsdelf.mh: New file.
8065 * config/arm/nm-nbsdaout.h: New file.
8066 * config/i386/nbsd.mh: Remove.
8067 * config/i386/nbsd.mt: Remove.
8068 * config/i386/nbsdaout.mh: New file.
8069 * config/i386/nbsdaout.mt: New file.
8070 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8071 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8072 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8073 i386_register_u_addr): Remove.
8074 * config/i386/nm-nbsdaout.h: New file.
8075 * config/i386/nm-nbsdelf.h: Remove.
8076 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8077 (USE_STRUCT_CONVENTION): Remove.
8078 * config/i386/tm-nbsdaout.h: New file.
8079 * config/i386/tm-nbsdelf.h: Remove.
8080 * config/m68k/nbsd.mh: Remove.
8081 * config/m68k/nbsd.mt: Remove.
8082 * config/m68k/nbsdaout.mh: New file.
8083 * config/m68k/nbsdaout.mt: New file.
8084 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8085 * config/m68k/nm-nbsdaout.h: New file.
8086 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8087 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8088 * config/ns32k/nbsd.mh: Remove.
8089 * config/ns32k/nbsd.mt: Remove.
8090 * config/ns32k/nbsdaout.mh: New file.
8091 * config/ns32k/nbsdaout.mt: New file.
8092 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8093 * config/ns32k/nm-nbsdaout.h: New file.
8094 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8095 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8096 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8097 (SVR4_SHARED_LIBS): Remove.
8098 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8099 * config/sparc/nbsd.mh: Remove.
8100 * config/sparc/nbsd.mt: Remove.
8101 * config/sparc/nbsdaout.mh: New file.
8102 * config/sparc/nbsdaout.mt: New file.
8103 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8104 * config/sparc/nbsdelf.mt: New file.
8105 * config/sparc/nm-nbsdaout.h: New file.
8106 * config/sparc/nm-nbsdelf.h: Remove.
8107 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8108 * config/sparc/tm-nbsdaout.h: New file.
8109
8110 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8111
8112 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8113 mipsnbsd-tdep.c
8114 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8115
8116 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8117
8118 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8119 shnbsd-nat.c.
8120 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8121
8122 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8123
8124 * NEWS: Note new MIPS NetBSD native configuration.
8125 * configure.host (mips*-*-netbsd*): New host.
8126 * configure.tgt (mips*-*-netbsd*): New target.
8127 * mipsnbsd-nat.c: New file.
8128 * mipsnbsd-tdep.c: New file.
8129 * mipsnbsd-tdep.h: New file.
8130 * config/mips/nbsd.mh: New file.
8131 * config/mips/nbsd.mt: New file.
8132 * config/mips/nm-nbsd.h: New file.
8133 * config/mips/tm-nbsd.h: New file.
8134
8135 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
8136
8137 * Makefile.in (SFILES): Add osabi.c.
8138 (COMMON_OBS): Add osabi.o.
8139 (osabi.o): New dependency list.
8140 * osabi.c: New file.
8141 * osabi.h: New file.
8142 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8143
8144 * Makefile.in (alpha_tdep_h): Define and use instead of
8145 alpha-tdep.h.
8146 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8147 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8148 Remove.
8149 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8150 * alpha-tdep.h: Include osabi.h.
8151 (alpha_abi): Remove.
8152 (gdbarch_tdep): Use generic OS ABI framework.
8153 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8154 gdbarch_register_osabi.
8155 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8156 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8157 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8158
8159 * Makefile.in (sh_tdep_h): Add osabi.h.
8160 * sh-tdep.h (sh_osabi): Remove.
8161 (gdbarch_tdep): Use generic OS ABI framework.
8162 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8163 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8164 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8165 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8166
8167 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8168 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8169 gdbarch_register_osabi.
8170 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8171 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8172 (get_elfosabi): Rename to...
8173 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8174 ABI framework support routines.
8175 (arm_gdbarch_init): Use generic OS ABI framework.
8176 (arm_dump_tdep): Likewise.
8177 (_initialize_arm_tdep): Likewise.
8178 * arm-tdep.h: Include osabi.h.
8179 (arm_abi): Remove.
8180 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8181 osabi member.
8182 (arm_gdbarch_register_os_abi): Remove prototype.
8183 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8184 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8185
8186 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8187 * mips-tdep.c: Include osabi.h.
8188 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8189 OS ABI framework.
8190
8191 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
8192
8193 * h8300-tdep.c: Fix formatting.
8194
8195 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
8196
8197 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8198 printing vector registers.
8199
8200 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8201
8202 From Fernando Nasser:
8203 * remote.c (remote_async_open_1): Re-throw the exception when the
8204 connection fails.
8205 (remote_cisco_open): Ditto.
8206 (remote_open_1): Ditto.
8207
8208 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8209
8210 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8211 (remote_start_remote): Add uiout parameter. Pass through to
8212 remote_start_remote_dummy.
8213 (remote_open_1): Use catch_exception instead of catch_errors.
8214 (remote_async_open_1): Ditto.
8215 (remote_cisco_open): Ditto.
8216
8217 2002-05-19 Andrew Cagney <ac131313@redhat.com>
8218
8219 * remote.c (remote_start_remote): Replace PTR with void pointer.
8220 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8221 static.
8222
8223 2002-05-18 Andrew Cagney <ac131313@redhat.com>
8224
8225 * gdb_indent.sh: Allow the script to be run in the sim directory.
8226
8227 2002-05-18 Mark Kettenis <kettenis@gnu.org>
8228
8229 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8230 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8231
8232 * corelow.c (core_open): Only call set_gdbarch_from_file if
8233 exec_bfd is NULL.
8234
8235 2002-05-17 Andrey Volkov <avolkov@transas.com>
8236
8237 * h8300-tdep.c: Add support of EXR register
8238 * config/h8300/tm-h8300.h: Ditto.
8239
8240 2002-05-17 Andrey Volkov <avolkov@transas.com>
8241
8242 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8243
8244 2002-05-17 Andrey Volkov <avolkov@transas.com>
8245
8246 * h8300-tdep.c: Change literal regnums to REGNO.
8247
8248 2002-05-17 Jim Blandy <jimb@redhat.com>
8249
8250 * NEWS: Note addition of macro support.
8251
8252 Expand preprocessor macros in C expressions.
8253 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8254 (scan_macro_expansion, scanning_macro_expansion,
8255 finished_macro_expansion): New function declarations.
8256 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8257 variable declarations.
8258 * parser-defs.h (expression_context_pc): New declaration.
8259 * parse.c (expression_context_pc): New variable.
8260 (parse_exp_1): Set expression_context_pc, as well as
8261 expression_context_block.
8262 * c-exp.y (yylex): If we're not already reading the result of a
8263 macro expansion, try to macro-expand the next token. When we're
8264 done scanning a macro expansion, switch back to the mainline text.
8265 Commas and `if's in a macro's expansion don't terminate the input.
8266 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8267 (macro_original_text, macro_expanded_text,
8268 expression_macro_lookup_func, expression_macro_lookup_baton): New
8269 variables.
8270 (scan_macro_expansion, scanning_macro_expansion,
8271 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8272 c_preprocess_and_parse): New functions.
8273 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8274 c_preprocess_and_parse, instead of c_parse.
8275 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8276 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8277
8278 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
8279
8280 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8281 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8282 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8283
8284 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
8285
8286 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8287
8288 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
8289
8290 * Makefile.in (sh_tdep_h): Define and use.
8291 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8292 register enum): Move to...
8293 * * sh-tdep.h: ...here.
8294 * sh-tdep.c: Include sh-tdep.h.
8295 * sh3-rom.c: Likewise.
8296 * shnbsd-tdep.c: Likewise.
8297
8298 2002-05-16 Michael Snyder <msnyder@redhat.com>
8299
8300 * arm-tdep.c: Spelling fix in comment.
8301
8302 2002-05-16 Jim Blandy <jimb@redhat.com>
8303
8304 Add commands for manually expanding macros and showing their
8305 definitions.
8306 * macrocmd.c, macroscope.c, macroscope.h: New files.
8307 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8308 (macroscope_h): New variable.
8309 (HFILES_NO_SRCDIR): Add macroscope.h.
8310 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8311 (macroscope.o, macrocmd.o): New rules.
8312
8313 Teach the Dwarf 2 reader to read macro information.
8314 * dwarf2read.c: #include "macrotab.h".
8315 (dwarf_macinfo_buffer): New variable.
8316 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8317 dwarf_macinfo_size.
8318 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8319 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8320 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8321 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8322 dwarf2_macro_spaces_in_definition): New complaints.
8323 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8324 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8325 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8326 the partial symbol table.
8327 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8328 from what's recorded in the partial symbol table.
8329 (read_file_scope): If the compilation unit has a
8330 `DW_AT_macro_info' attribute, read its macro information.
8331 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8332
8333 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8334
8335 Fix PR gdb/546
8336 * ser-tcp.c: Don't include <netinet/udp.h>.
8337
8338 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
8339
8340 * MAINTAINERS: Update my email address.
8341
8342 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
8343
8344 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8345 include file of the same name.
8346
8347 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8348
8349 * configure.tgt: Mark v850 as multi-arched.
8350 * config/v850/tm-v850.h: Remove file.
8351 * config/v850/v850.mt: Eliminate TM_FILE.
8352
8353 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8354
8355 * v850-tdep.c: Full multi-arch.
8356 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8357 Define GDB_MULTI_ARCH to 2.
8358
8359 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
8360
8361 * p-exp.y (current_type): New static variable.
8362 Carries the type of the expression at the position that is parsed.
8363 (push_current_type, pop_current_type): Two new functions. Used
8364 to store/restore current_type in expression on specific tokens.
8365 (search_field): New static variable. Set to one after parsing a point
8366 as at that point only a FIELDNAME token should be searched.
8367 (FIELDNAME): New token. After a point only a token belonging to
8368 current_type type definition is allowed.
8369 (all over token rules): reset and change current_type according
8370 to rules.
8371 (exp '[' rule): insert implicit array index field if
8372 exp is a pascal string type.
8373
8374 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8375
8376 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8377 frame info. Use frame_info's saved_regs instead of matching member
8378 in extra_frame_info throughout.
8379 (v850_frame_init_saved_regs): New function.
8380 (v850_init_extra_frame_info): Move most functionality into
8381 v850_frame_init_saved_regs().
8382 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8383 (v850_frame_find_saved_regs): Remove declaration.
8384 (FRAME_FIND_SAVED_REGS): Remove definition.
8385 (v850_frame_init_saved_regs): Add declaration.
8386 (FRAME_INIT_SAVED_REGS): Add definition.
8387
8388 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
8389
8390 * v850-tdep.c: Begin multi-arch'ing v850.
8391 (v850_target_architecture_hook): Remove function.
8392 (v850_gdbarch_init): New function. Add code previously in
8393 v850_target_architecture_hook().
8394 (_initialize_v850_tdep): Don't set target_architecture_hook.
8395 Call register_gdbarch_init() instead.
8396
8397 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
8398
8399 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8400 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8401 (fixup_class_method_type): Likewise.
8402
8403 2002-05-15 Jim Blandy <jimb@redhat.com>
8404
8405 Add macro structures to GDB's symbol tables. Nobody puts anything
8406 in them yet.
8407 * symtab.h (struct symtab): New member: `macro_table'.
8408 * buildsym.h (pending_macros): New global variable.
8409 * buildsym.c: #include "macrotab.h".
8410 (buildsym_init): Initialize `pending_macros'.
8411 (end_symtab): If we found macro information while reading a CU's
8412 debugging info, do build a symtab structure for it. Make the
8413 symtab point to the macro information, and clear the
8414 `pending_macros' pointer which held it while we were reading the
8415 debug info.
8416 (really_free_pendings): Free any pending macro table.
8417 * objfiles.h (struct objfile): New member: `macro_cache'.
8418 * objfiles.c (allocate_objfile): Set allocate and free functions
8419 for the macro cache's objstack.
8420 (free_objfile): Empty the macro cache's obstack.
8421 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8422 set new allocate and free functions for it.
8423 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8424 free functions for the macro cache's objstack. (Why is this
8425 function building its own objfile?)
8426 * symmisc.c (print_objfile_statistics): Print statistics on the
8427 macro bcache.
8428 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8429
8430 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8431
8432 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8433 (REGISTER_U_ADDR): Delete definition.
8434 (arm_register_u_addr): Delete declaration.
8435
8436 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
8437
8438 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8439 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8440
8441 2002-05-14 Andrew Cagney <ac131313@redhat.com>
8442
8443 * regcache.c (register_valid): Revise comments refering to "Not
8444 available" and "unavailable".
8445 * frame.c (frame_register_read): Ditto.
8446 * findvar.c (value_of_register): Ditto.
8447
8448 2002-05-15 Andrew Cagney <cagney@redhat.com>
8449
8450 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8451 (remote-sim.o): Update dependencies.
8452 (d10v-tdep.o): Specify dependencies.
8453 (sim_d10v_h): Define.
8454
8455 2002-05-14 Jim Blandy <jimb@redhat.com>
8456
8457 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8458 * macrotab.c (macro_lookup_inclusion, find_definition,
8459 new_macro_table): Same.
8460
8461 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8462 not `! strcmp ()'. This is a dubious improvement.
8463 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8464
8465 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8466 although it's not necessary, to avoid a warning.
8467
8468 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8469
8470 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8471 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8472 TYPE_INSTANCE_FLAGS.
8473 (struct main_type): New.
8474 (struct type): Move most members to struct main_type. Change
8475 cv_type and as_type to new type_chain member. Add instance_flags.
8476 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8477 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8478 (finish_cv_type): Remove prototype.
8479 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8480 Set TYPE_CHAIN.
8481 (alloc_type_instance): New function.
8482 (smash_type): New function.
8483 (make_pointer_type, make_reference_type, make_function_type)
8484 (smash_to_member_type, smash_to_method_type): Call smash_type.
8485 (make_qualified_type): New function.
8486 (make_type_with_address_space): Call make_qualified_type.
8487 (make_cv_type): Likewise.
8488 (finish_cv_type): Remove unnecessary function.
8489 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8490 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8491 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8492 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8493 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8494 * hpread.c (hpread_read_struct_type): Likewise.
8495 * stabsread.c (read_struct_type): Likewise.
8496
8497 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
8498
8499 * configure.tgt: Add a catch all sh* target, for cases like
8500 sh[2,3,4]-elf and sh-hms.
8501
8502 2002-05-14 Keith Seitz <keiths@redhat.com>
8503
8504 * event-loop.c (create_file_handler): Don't do anything but
8505 update data when we are given a fd which we are already
8506 monitoring.
8507
8508 2002-05-14 Michal Ludvig <mludvig@suse.cz>
8509
8510 * dwarf2cfi.c (context_cpy): Copy registers correctly.
8511 (update_context): Use __func__ in warnings.
8512
8513 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
8514
8515 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
8516 and tcp_close to net_open and net_close.
8517 (net_open): Accept "udp:" and "tcp:" specifications. Connect
8518 using UDP if requested. Don't try to disable Nagle on UDP
8519 sockets.
8520 * remote.c (remote_serial_open): New function. Warn about UDP.
8521 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
8522
8523 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8524
8525 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
8526
8527 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
8528
8529 * configure.tgt: Remove sh-hms target.
8530 * MAINTAINERS: Don't list sh-hms as a separate target.
8531
8532 2002-05-13 Jim Blandy <jimb@redhat.com>
8533
8534 Add first preprocessor macro-expansion files.
8535 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
8536 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
8537 (splay_tree_h, macroexp_h, macrotab_h): New variable.
8538 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
8539 (COMMON_OBS): Add macrotab.o, macroexp.o.
8540 (macroexp.o, macrotab.o): New rules.
8541
8542 2002-05-13 Andrew Cagney <ac131313@redhat.com>
8543
8544 * config/m88k/tm-m88k.h: Update copyright.
8545 (m88k_target_write_pc): Declare
8546 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
8547 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
8548 (SHIFT_INST_REGS): Update definition.
8549 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
8550 using old definition of TARGET_WRITE_PC.
8551 * regcache.c (generic_target_write_pc): Delete code handling
8552 NNPC_REGNUM.
8553 * gdbarch.sh (NNPC_REGNUM): Delete.
8554 * gdbarch.h, gdbarch.c: Regenerate.
8555
8556 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
8557
8558 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
8559 builtin reg number.
8560
8561 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
8562
8563 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
8564 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
8565 (gen_address_of, gen_struct_ref, gen_repeat): Use type
8566 access macros.
8567 * c-typeprint.c (cp_type_print_method_args): Likewise.
8568 (c_type_print_args): Likewise.
8569 * d10v-tdep.c (d10v_push_arguments): Likewise.
8570 (d10v_extract_return_value): Likewise.
8571 * expprint.c (print_subexp): Likewise.
8572 * gdbtypes.c (lookup_primitive_typename): Likewise.
8573 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
8574 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
8575 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
8576 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
8577 (TYPE_VECTOR): Likewise.
8578 * hpread.c (hpread_read_struct_type)
8579 (fix_static_member_physnames, fixup_class_method_type)
8580 (hpread_type_lookup): Likewise.
8581 * mdebugread.c (parse_symbol, parse_type): Likewise.
8582 * p-lang.c (is_pascal_string_type): Likewise.
8583 * valops.c (hand_function_call): Likewise.
8584 * x86-64-tdep.c (classify_argument): Likewise.
8585
8586 * hpread.c (hpread_read_function_type)
8587 (hpread_read_doc_function_type): Call replace_type.
8588 * dstread.c (create_new_type): Delete.
8589 (decode_dst_structure, process_dst_function): Call alloc_type.
8590 Use type access macros.
8591
8592 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8593
8594 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
8595 the're not supported by the current architecture.
8596 (i387_fill_fxsave): Likewise.
8597
8598 2002-05-12 Fred Fish <fnf@redhat.com>
8599
8600 * symfile.c (default_symfile_offsets): Arrange for uninitialized
8601 sect_index_xxx members to index the first slot in section_offsets
8602 if all of the section_offsets are zero.
8603
8604 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8605
8606 * configure.tgt (sparc-*openbsd): Remove entry accidentially
8607 checked in with last change.
8608
8609 2002-05-12 Mark Kettenis <kettenis@gnu.org>
8610
8611 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
8612 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
8613 config.sub.
8614
8615 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
8616
8617 * Makefile.in: Update dependencies.
8618
8619 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8620
8621 * language.c (local_hex_string_custom): Simplify. Do not depend
8622 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
8623
8624 * memattr.c (mem_info_command): Replace calls to
8625 longest_local_hex_string and longest_local_hex_string_custom.
8626 * buildsym.c (make_blockvector): Ditto.
8627 * solib.c (info_sharedlibrary_command): Ditto.
8628 * tracepoint.c (tracepoints_info): Ditto.
8629 * symtab.c (print_msymbol_info): Ditto.
8630
8631 * language.c (local_hex_string): Delete.
8632 (local_hex_string_custom): Delete.
8633 (longest_local_hex_string): Rename to local_hex_string.
8634 (longest_local_hex_string_custom): Rename to
8635 local_hex_string_custom.
8636 * language.h (local_hex_string): Change parameter type to LONGEST.
8637 (local_hex_string_custom): Ditto.
8638 (longest_local_hex_string): Delete declaration.
8639 (longest_local_hex_string_custom): Ditto.
8640
8641 * solib.c: Update copyright.
8642 * memattr.c: Update copyright.
8643
8644 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8645
8646 * arch-utils.h (legacy_register_to_value): Declare.
8647 (legacy_value_to_register): Declare.
8648 (legacy_convert_register_p): Declare.
8649 * arch-utils.c (legacy_register_to_value): New function.
8650 (legacy_value_to_register): New function.
8651 (legacy_convert_register_p): New function.
8652
8653 * gdbarch.sh (REGISTER_TO_VALUE): Define.
8654 (VALUE_TO_REGISTER): Define.
8655 (CONVERT_REGISTER_P): Define.
8656 * gdbarch.h, gdbarch.c: Regenerate.
8657
8658 * valops.c (value_assign): Use CONVERT_REGISTER_P and
8659 VALUE_TO_REGISTER.
8660 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
8661 CONVERT_REGISTER_P.
8662
8663 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
8664 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
8665
8666 * Makefile.in: Update dependencies for valops.c.
8667 * valops.c: Include "gdb_assert.h".
8668 (typecmp): Skip THIS parameter to methods.
8669 (find_method_list): Remove static_memfuncp argument,
8670 update callers. Check for stub methods.
8671 (find_value_oload_method_list): Don't set *static_memfuncp.
8672 (find_overload_match): Don't check for stub methods. Assert
8673 that methods are not stubbed. Handle static methods.
8674 (value_find_oload_method_list): Remove static_memfuncp argument.
8675 * gdbtypes.c (check_stub_method): Do not add THIS pointer
8676 to the argument list for static stub methods.
8677 * value.h (value_find_oload_method_list): Update prototype.
8678
8679 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8680
8681 * arch-utils.h (generic_register_size): Declare.
8682 (generic_register_raw_size, generic_register_virtual_size): Delete
8683 declarations.
8684 * arch-utils.c (generic_register_raw_size): Delete.
8685 (generic_register_size): New function.
8686 (generic_register_virtual_size): Delete.
8687
8688 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
8689 default generic_register_size.
8690 * gdbarch.h, gdbarch.c: Re-generate.
8691
8692 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
8693 register_virtual_size.
8694 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
8695 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
8696
8697 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8698
8699 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
8700 * gdbarch.h, gdbarch.c: Regenerate.
8701 * gnu-v3-abi.c: Update copyright.
8702 (vtable_address_point_offset): Update.
8703 (gnuv3_rtti_type): Update.
8704 (gnuv3_baseclass_offset): Update.
8705 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
8706 (init_fetch_link_map_offsets): Update.
8707 * remote.c (get_remote_state): Update.
8708
8709 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8710
8711 * TODO: Remove value_headof/value_from_vtable_info comment.
8712 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
8713 * values.c (value_headof, value_from_vtable_info): Delete.
8714 * value.h (value_from_vtable_info): Delete prototype.
8715
8716 2002-05-11 Andrew Cagney <ac131313@redhat.com>
8717
8718 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
8719 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
8720 $(gdb_regex_h).
8721 (gdb_assert_h): Define.
8722 (gdb_wait_h): Define.
8723 (gdb_regex_h): Define.
8724
8725 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
8726
8727 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
8728 * linespec.c (find_methods): Handle GCC 3.x template constructors.
8729
8730 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8731
8732 * nbsd-tdep.c: Fix comment.
8733
8734 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8735
8736 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
8737 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
8738 (nbsd-tdep.o): New dependency list.
8739 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
8740 nbsd-tdep.h.
8741 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
8742 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
8743 * nbsd-tdep.c: New file.
8744 * nbsd-tdep.h: New file.
8745 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
8746 nbsd-tdep.h.
8747 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
8748 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8749 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
8750 * config/sh/nbsd.mt (TDEPFILES): Ditto.
8751
8752 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8753
8754 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
8755 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
8756 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
8757 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
8758 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
8759 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
8760
8761 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8762
8763 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
8764 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8765 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
8766 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
8767 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
8768 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
8769 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
8770
8771 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8772
8773 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
8774 fetch_elfcore_registers to...
8775 * i386nbsd-tdep.c: ...here.
8776 (i386nbsd_use_struct_convention): Rename to...
8777 (i386nbsd_aout_use_struct_convention): ...this.
8778 (i386nbsd_supply_reg): New function.
8779 (i386nbsd_fill_reg): New function.
8780 (fetch_core_registers): Use i386nbsd_supply_reg.
8781 (fetch_elfcore_registers): Likewise.
8782 (_initialize_i386nbsd_tdep): New function.
8783 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
8784 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8785 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
8786 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
8787 (i386nbsd_aout_use_struct_convention): ...this.
8788
8789 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8790
8791 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
8792 (store_inferior_registers): Use shnbsd_fill_reg.
8793 * shnbsd-tdep.c (sh_nbsd_supply_registers,
8794 sh_nbsd_supply_register): Collapse into...
8795 (shnbsd_supply_reg): ...this.
8796 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
8797 (shnbsd_fill_reg): ...this.
8798 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
8799 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
8800 (fetch_core_registers): Use shnbsd_supply_reg.
8801 (fetch_elfcore_registers): Use shnbsd_supply_reg.
8802 (sh_nbsd_core_fns): Rename to...
8803 (shnbsd_core_fns): ...this.
8804 (sh_nbsd_elfcore_fns): Rename to...
8805 (shnbsd_elfcore_fns): ...this.
8806 (sh_nbsd_init_abi): Rename to...
8807 (shnbsd_init_abi): ...this.
8808 (_initialize_sh_nbsd_tdep): Rename to...
8809 (_initialize_shnbsd_tdep): ...this.
8810 * shnbsd-tdep.h (sh_nbsd_supply_registers,
8811 sh_nbsd_supply_register, sh_nbsd_fill_registers,
8812 sh_nbsd_fill_register): Remove prototypes.
8813 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
8814
8815 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8816
8817 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
8818 (i387-nat.o): Delete dependency list.
8819 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
8820 (x86-64-linux-nat.o): Likewise.
8821 * i387-nat.c: Delete file, moving contents to...
8822 * i387-tdep.c: ...here.
8823 * i387-nat.h: Rename...
8824 * i387-tdep.h: ...to this.
8825 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
8826 * i386-linux-nat.c: Likewise.
8827 * i386bsd-nat.c: Likewise.
8828 * i386gnu-nat.c: Likewise.
8829 * i386nbsd-nat.c: Likewise.
8830 * i386v4-nat.c: Likewise.
8831 * x86-64-linux-nat.c: Likewise.
8832 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
8833 * config/i386/go32.mh (NATDEPFILES): Likewise.
8834 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
8835 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
8836 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
8837 * config/i386/linux.mh (NATDEPFILES): Likewise.
8838 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
8839 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
8840 * config/i386/obsd.mh (NATDEPFILES): Likewise.
8841 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
8842
8843 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8844
8845 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
8846 (alphanbsd-nat.o): Remove dependency list.
8847 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
8848 * alphanbsd-nat.c: Delete. Contents moved to...
8849 * alphanbsd-tdep.c: ...here.
8850 (_initialize_alphanbsd_tdep): Register core functions.
8851 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
8852
8853 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
8854
8855 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
8856 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
8857 (alphanbsd-nat.o): Likewise.
8858 (alphabsd-tdep.o): New dependency list.
8859 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
8860 (fill_gregset): Use alphabsd_fill_reg.
8861 (supply_fpregset): Use alphabsd_supply_fpreg.
8862 (fill_fpregset): Use alphabsd_fill_fpreg.
8863 (fetch_inferior_registers): Use struct reg and struct fpreg
8864 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
8865 and alphabsd_supply_fpreg.
8866 (store_inferior_registers): Use struct reg and struct fpreg
8867 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
8868 and alphabsd_fill_fpreg.
8869 * alphabsd-tdep.c: New file.
8870 * alphabsd-tdep.h: New file.
8871 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
8872 (fetch_elfcore_registers): Use alphabsd_supply_reg and
8873 alphabsd_supply_fpreg.
8874 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
8875 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
8876
8877 2002-05-11 Eric Christopher <echristo@redhat.com>
8878
8879 * mips-tdep.c (mips_double_register_type): Fix thinko.
8880 (mips_single_register_type): Ditto.
8881 * MAINTAINERS: Add self.
8882
8883 2002-05-11 Mark Kettenis <kettenis@gnu.org>
8884
8885 * i387-nat.c (i387_supply_register, i387_fill_fsave,
8886 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
8887 right thing on architectures with different endianness and/or
8888 integer sizes.
8889
8890 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
8891
8892 From Christian Limpach <chris@Pin.LU>
8893 * configure.in: Change sed expression which comments out
8894 NATDEPFILES to also comment out continuation lines.
8895 * configure: Regenerate.
8896
8897 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8898
8899 * sh-tdep.c: Clean up code erroneously reintroduced by previous
8900 big patch.
8901
8902 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8903
8904 * sh-tdep.c: Include correct file.
8905
8906 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8907
8908 New support for sh64-elf (sh5) target.
8909
8910 * configure.tgt: For sh64-elf target, default to sh-elf.
8911
8912 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
8913 (struct gdbarch_tdep): Add new fields for new registers and ABI
8914 info.
8915
8916 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
8917 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
8918 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
8919 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
8920 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
8921 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
8922 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
8923 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
8924 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
8925 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
8926 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
8927 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
8928 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
8929 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
8930 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
8931 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
8932 sh64_get_gdb_regnum, sh64_media_reg_base_num,
8933 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
8934 sign_extend, sh64_nofp_frame_init_saved_regs,
8935 sh64_init_extra_frame_info, sh64_get_saved_register,
8936 sh64_extract_struct_value_address, sh64_pop_frame,
8937 sh64_push_arguments, sh64_extract_return_value,
8938 sh64_store_return_value, sh64_show_media_regs,
8939 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
8940 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
8941 sh_sh64_register_virtual_type,
8942 sh_sh64_register_convert_to_virtual,
8943 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
8944 sh64_register_read, sh64_pseudo_register_write,
8945 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
8946 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
8947 sh64_do_pseudo_register, sh_compact_do_registers_info,
8948 sh64_do_registers_info, sh_gdbarch_init): New functions.
8949
8950 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
8951
8952 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
8953
8954 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
8955
8956 * linespec.c (decode_line_1): Check for a double quote after
8957 a filename correctly.
8958
8959 2002-05-10 Jim Blandy <jimb@redhat.com>
8960
8961 Properly track the size of the current objfile's .debug_line section.
8962 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
8963 (DWARF_LINE_SIZE): New macro.
8964 (dwarf2_build_psymtabs_hard): Record the line section's size in
8965 the partial symbol table.
8966 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
8967 symbol table.
8968
8969 2002-05-10 Petr Sorfa <petrs@caldera.com>
8970
8971 * ia64-tdep.c: Handle breakpoints on L instruction type
8972 in MLX instruction bundle by moving the breakpoint to
8973 the third slot (X instruction type) as L holds only data.
8974
8975 2002-05-10 Kevin Buettner <kevinb@redhat.com>
8976
8977 * dbxread.c (discarding_local_symbols_complaint): New complaint.
8978 (process_one_symbol): Complain about discarding local symbols
8979 due to a misplaced N_LBRAC entry.
8980
8981 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
8982
8983 From Daniel Berlin <dan@cgsoftware.com>
8984 * linespec.c (find_toplevel_char): '<' and '>' also increase and
8985 decrease the depth we are at, in the case of templates.
8986
8987 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8988
8989 * mips-tdep.c (mips_float_register_type): New function.
8990 (mips_double_register_type): New function.
8991 (mips_print_register): Use them.
8992 (do_fp_register_row): Likewise.
8993
8994 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
8995
8996 * signals/signals.c (signals): Remove conditional compilation around
8997 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
8998 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
8999
9000 2002-05-09 Michael Snyder <msnyder@redhat.com>
9001
9002 * remote-rdp.c (remote_rdp_can_run): Remove.
9003
9004 2002-05-09 Tom Tromey <tromey@redhat.com>
9005
9006 * jv-valprint.c (java_val_print): Handle `char' as a special case
9007 of TYPE_CODE_INT.
9008
9009 2002-05-09 Michael Snyder <msnyder@redhat.com>
9010
9011 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9012 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
9013 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
9014 str r(0123),[sp,#nn].
9015 (arm_skip_prologue): Ditto. Also make disassembly
9016 order-independent by placing it in a loop.
9017
9018 2002-05-06 Michael Snyder <msnyder@redhat.com>
9019
9020 * stabsread.c (read_type): Add recognition for new attribute:
9021 "@V;" means that an array type is actually a vector.
9022 This is analogous to the vector flag that's been added to dwarf2.
9023
9024 2002-05-09 Mark Kettenis <kettenis@gnu.org>
9025
9026 * i386-tdep.h (i386_abi): New enum.
9027 (struct gdbarch_tdep): Replace os_ident member with abi.
9028 (i386_gdbarch_register_os_abi): New prototype.
9029 * i386-tdep.c (i386_abi_names): New array.
9030 (process_note_abi_tag_sections): Removed.
9031 (process_note_sections): New function.
9032 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9033 (struct i386_abi_handler): New struct.
9034 (i386_abi_handler_list): New variable.
9035 (i386_gdbarch_register_os_abi): New function.
9036 (i386_gdbarch_init): Adapt for the changes given above.
9037
9038 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
9039
9040 * gregset.h: Say "GNU/Linux".
9041
9042 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
9043
9044 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9045 (build_gdbtypes): Build builtin_type_v2_float.
9046 (_initialize_gdbtypes): Register new builtin type.
9047
9048 2002-05-08 Andrew Cagney <ac131313@redhat.com>
9049
9050 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9051 (clear_gdbarch_swap): New function.
9052 (initialize_non_multiarch): Call.
9053 (gdbarch_update_p): Before calling init(), swap out and clear the
9054 existing architecture.
9055 * gdbarch.c: Regenerate.
9056
9057 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9058
9059 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9060 alphanbsd-tdep.c.
9061
9062 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9063
9064 * sh-nbsd-nat.c: Rename to...
9065 * shnbsd-nat.c: ...this.
9066 * sh-nbsd-tdep.c: Rename to...
9067 * shnbsd-tdep.c: ...this.
9068 * sh-nbsd-tdep.h: Rename to...
9069 * shnbsd-tdep.h: ...this.
9070 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9071 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9072
9073 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
9074
9075 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9076 concatenation for command help messages.
9077
9078 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9079
9080 * NEWS: Note new sh*-*-netbsdelf* configuration.
9081 * configure.host: Set gdb_host_cpu to sh for all sh*.
9082 (sh*-*-netbsdelf*): New host.
9083 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9084 (sh*-*-netbsdelf*): New target.
9085 * sh-nbsd-nat.c: New file.
9086 * sh-nbsd-tdep.c: New file.
9087 * sh-nbsd-tdep.h: New file.
9088 * config/sh/nbsd.mh: New file.
9089 * config/sh/nbsd.mt: New file.
9090 * config/sh/nm-nbsd.h: New file.
9091 * config/sh/tm-nbsd.h: New file.
9092
9093 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
9094
9095 * sh-tdep.c (sh_osabi_names): Declare.
9096 (process_note_abi_tag_sections): New function.
9097 (get_elfosabi): Ditto.
9098 (sh_gdbarch_register_os_abi): Ditto.
9099 (sh_dump_tdep): Ditto.
9100 _initialize_sh_tdep): Use gdbarch_register to register
9101 sh_gdbarch_init and sh_dump_tdep.
9102 * config/sh/tm-sh.h (sh_osabi): Declare.
9103 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9104
9105 2002-05-07 Andrew Cagney <ac131313@redhat.com>
9106
9107 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9108 (thumb_scan_prologue): Ditto.
9109 (arm_find_callers_reg): Ditto.
9110 (arm_frame_chain): Ditto.
9111 (arm_init_extra_frame_info): Ditto.
9112 (arm_frame_saved_pc): Ditto.
9113 (arm_pop_frame): Ditto.
9114 (arm_push_return_address): New function.
9115 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9116 call_dummy_location, call_dummy_breakpoint_offset_p,
9117 call_dummy_breakpoint_offset, call_dummy_p,
9118 call_dummy_stack_adjust_p, call_dummy_words,
9119 sizeof_call_dummy_words, call_dummy_start_offset,
9120 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9121 call_dummy_address, push_return_address and push_dummy_frame for
9122 generic dummy frames.
9123
9124 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9125
9126 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9127 size computation for alloca.
9128 (sh_fp_frame_init_saved_regs): Likewise.
9129
9130 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
9131
9132 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9133 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
9134 * arm-tdep.c (arm_store_return_value): Use them.
9135 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9136 * remote-rdp.c (remote_rdp_fetch_register): Use
9137 ARM_MAX_REGISTER_RAW_SIZE.
9138 (remote_rdp_store_register): Likewise.
9139
9140 2002-05-07 Michal Ludvig <mludvig@suse.cz>
9141
9142 * dwarf2cfi.c: Code cleanup, removed unused variables,
9143 added default labels to switch {} statements.
9144 * x86-64-tdep.c: Ditto.
9145 * x86-64-linux-nat.c: Ditto.
9146
9147 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
9148
9149 * solib.h: Protect against multiple inclusion.
9150
9151 2002-05-06 Jim Blandy <jimb@redhat.com>
9152
9153 Add first preprocessor macro-expansion files.
9154 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9155 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9156 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9157 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9158 (COMMON_OBS): Add macrotab.o, macroexp.o.
9159 (macroexp.o, macrotab.o): New rules.
9160
9161 Separate the job of reading the line number info statement program
9162 header (...expialidocious) out into its own function.
9163 * dwarf2read.c (struct line_head, struct filenames, struct
9164 directories): Replace with...
9165 (struct line_header): New structure, containing the full
9166 contents of the statement program header, including the
9167 include directory and file name tables.
9168 (read_file_scope): If we have line number info, instead of just
9169 calling dwarf_decode_lines to do all the work, call
9170 dwarf_decode_line_header first to get a `struct line_header'
9171 containing the data in the statement program header, and then
9172 pass that to dwarf_decode_lines, which will pick up where that
9173 left off. Be sure to clean up the `struct line_header' object.
9174 (dwarf_decode_line_header, free_line_header, add_include_dir,
9175 add_file_name): New functions.
9176 (dwarf_decode_lines): Move all the code to read the statement
9177 program header into dwarf_decode_line_header. Take the line
9178 header it built as the first argument, instead of the offset to
9179 the compilation unit's line number info. Use the new `struct
9180 line_header' type instead of the old structures. No need to do
9181 cleanups here now, since we don't allocate anything.
9182 (dwarf2_statement_list_fits_in_line_number_section,
9183 dwarf2_line_header_too_long): New complaints.
9184
9185 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
9186
9187 * gdbtypes.c (init_vector_type): New function.
9188 (build_builtin_type_vec128): Simplify the representation of SIMD
9189 registers.
9190 (build_gdbtypes): Initialize new builtin vector types.
9191 (_initialize_gdbtypes): Register new vector types with gdbarch.
9192 (builtin_type_v4_float, builtin_type_v4_int32,
9193 builtin_type_v8_int16, builtin_type_v16_int8,
9194 builtin_type_v2_int32, builtin_type_v4_int16,
9195 builtin_type_v8_int8): New (renamed) SIMD types.
9196
9197 2002-05-06 Mark Kettenis <kettenis@gnu.org>
9198
9199 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9200 (i387_fill_fxsave): Likewise.
9201
9202 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
9203
9204 * alpha-tdep.c (alpha_extract_return_value): Don't use
9205 non-constant array size in prototype.
9206
9207 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9208
9209 From Brian Taylor <briant at model dot com>:
9210 * ui-out.c (ui_out_field_core_addr): Use the function
9211 longest_local_hex_string_custom'to format addresses > 32 bits
9212 wide.
9213
9214 * ui-out.c (ui_out_field_core_addr): Update comment.
9215
9216 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9217
9218 * stack.c (select_and_print_frame): Make static. Delete the
9219 parameter `level'.
9220 (func_command): Update call.
9221 (select_frame_command): Delete code computing the frame level.
9222 * frame.h (select_and_print_frame): Delete declaration.
9223
9224 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9225
9226 * sparc-tdep.c (sparc_get_saved_register): Comment why
9227 get_prev_frame call is safe.
9228
9229 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9230
9231 * frame.h (select_frame): Delete level parameter.
9232 * stack.c (select_frame): Update. Use frame_relative_level to
9233 obtain the frame's level.
9234 (select_and_print_frame): Update call.
9235 (select_frame_command): Ditto.
9236 (up_silently_base): Ditto.
9237 (down_silently_base): Ditto.
9238 * ocd.c (ocd_start_remote): Ditto.
9239 * remote-rdp.c (remote_rdp_open): Ditto.
9240 * remote-mips.c (mips_initialize): Ditto.
9241 (common_open): Ditto.
9242 * remote-e7000.c (e7000_start_remote): Ditto.
9243 * m3-nat.c (select_thread): Ditto.
9244 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9245 (child_get_current_exception_event): Ditto.
9246 * varobj.c (varobj_create): Ditto.
9247 (varobj_update): Ditto.
9248 (c_value_of_root): Ditto.
9249 * tracepoint.c (finish_tfind_command): Ditto.
9250 * corelow.c (core_open): Ditto.
9251 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9252 * thread.c (info_threads_command): Ditto.
9253 (switch_to_thread): Ditto.
9254 * infrun.c (normal_stop): Ditto.
9255 (restore_selected_frame): Ditto.
9256 (restore_inferior_status): Ditto.
9257 * breakpoint.c (insert_breakpoints): Ditto.
9258 (watchpoint_check): Ditto.
9259 (bpstat_stop_status): Ditto.
9260 (do_enable_breakpoint): Ditto.
9261 * blockframe.c (flush_cached_frames): Ditto.
9262 (reinit_frame_cache): Ditto.
9263
9264 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9265
9266 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9267 maintainer.
9268
9269 2002-05-04 Jim Blandy <jimb@redhat.com>
9270
9271 * gdbtypes.c (replace_type): Doc fix.
9272
9273 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9274
9275 * valprint.c (strcat_longest): Delete commented out function.
9276 Update copyright.
9277
9278 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9279
9280 * MAINTAINERS: Mark a29k as deleted.
9281 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9282 Move new configurations to the top.
9283 * configure.tgt: Remove a29k.
9284 * config/a29k/tm-vx29k.h: Delete.
9285 * config/a29k/vx29k.mt: Delete.
9286 * config/a29k/tm-a29k.h: Delete.
9287 * config/a29k/a29k-udi.mt: Delete.
9288 * config/a29k/a29k.mt: Delete.
9289 * a29k-tdep.c: Delete.
9290 * remote-udi.c: Delete.
9291 * remote-mm.c: Delete.
9292 * remote-eb.c: Delete.
9293 * remote-adapt.c: Delete.
9294 * Makefile.in: Remove obsolete code.
9295 * config/s390/s390x.mt: Ditto.
9296 * config/s390/s390.mt: Ditto.
9297 * config/sparc/sparclynx.mh: Ditto.
9298 * config/sparc/linux.mh: Ditto.
9299 * config/pa/hppaosf.mh: Ditto.
9300 * config/pa/hppabsd.mh: Ditto.
9301 * config/ns32k/nbsd.mt: Ditto.
9302 * config/mips/vr5000.mt: Ditto.
9303 * config/m68k/sun3os4.mh: Ditto.
9304 * config/m68k/nbsd.mt: Ditto.
9305 * config/m68k/m68klynx.mh: Ditto.
9306 * config/m32r/m32r.mt: Ditto.
9307 * config/i386/x86-64linux.mt: Ditto.
9308 * config/i386/nbsdelf.mt: Ditto.
9309 * config/i386/nbsd.mt: Ditto.
9310 * config/i386/i386lynx.mh: Ditto.
9311
9312 2002-05-04 Andrew Cagney <ac131313@redhat.com>
9313
9314 * target.c (debug_print_register): New function. Handle oversize
9315 registers.
9316 (debug_to_fetch_registers): Call.
9317 (debug_to_store_registers): Call.
9318
9319 2002-05-03 Jim Blandy <jimb@redhat.com>
9320
9321 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9322 (read_type): Doc fix.
9323 * gdbtypes.c (replace_type): Doc fix.
9324
9325 * stabsread.c (multiply_defined_struct): New complaint.
9326 (read_struct_type): If the type we were passed isn't empty, or
9327 incomplete, don't read the new struct type into it; complain,
9328 and return the original type unchanged. Take a new `type_code'
9329 argument, which is the type code for the new type.
9330 (read_type): Rather than storing the type's type code here, pass
9331 it as an argument to read_struct_type, and let that take care of
9332 storing it. That way, we don't overwrite the original type code,
9333 so read_struct_type can use it to decide whether we're overwriting
9334 something we shouldn't.
9335 (complain_about_struct_wipeout): New function.
9336
9337 2002-05-03 Andrew Cagney <ac131313@redhat.com>
9338
9339 * gdbarch.sh: Assert that gdbarch is non-NULL.
9340 * gdbarch.c: Regenerate.
9341
9342 2002-05-03 Jason Merrill <jason@redhat.com>
9343
9344 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9345 and return NULL.
9346
9347 2002-05-03 Michal Ludvig <mludvig@suse.cz>
9348
9349 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9350 (x86_64_dwarf2gdb_regno_map_length),
9351 (x86_64_dwarf2_reg_to_regnum): Added.
9352 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9353 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9354 (_initialize_x86_64_tdep): Synced with the change above.
9355 (x86_64_skip_prologue): Reformulated message.
9356
9357 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
9358
9359 * f-exp.y: Also use new prev_lexptr variable
9360 to improve error reporting. Based on Michael Snyder
9361 2002-04-24 dated patch to c-exp.y.
9362 * jv-exp.y: Likewise.
9363 * m2-exp.y: Likewise.
9364
9365 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
9366
9367 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9368 we are dealing with vectors.
9369
9370 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9371
9372 * config/m68k/tm-nbsd.h: Obvious fix,
9373 correct machine name.
9374
9375 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9376
9377 * p-typeprint.c (pascal_type_print_base): Add support
9378 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9379
9380 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9381
9382 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9383 for fondamental pascal 'char' type.
9384
9385 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
9386
9387 * p-lang.h (is_pascal_string_type): Declaration changed,
9388 new sixth argument of type char ** added.
9389 * p-lang.c (is_pascal_string_type): Implementation
9390 changed. Args length_pos, length_size, string_pos, char_size
9391 can now be NULL. New argument arrayname set to the field
9392 name of the char array. Return value set to char array
9393 field index plus one.
9394 * p-valprint.c (pascal_val_print): Adapt to new declaration of
9395 is_pascal_string_type function.
9396
9397 2002-05-02 Andrew Cagney <cagney@redhat.com>
9398
9399 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9400 <cagney@redhat.com> change.
9401 * gdbarch.c: Regenerate.
9402
9403 2002-05-02 Andrew Cagney <cagney@redhat.com>
9404
9405 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9406 before probing for a new one. Detect errorenous gdbarch_init
9407 functions.
9408 * gdbarch.c: Regenerate.
9409
9410 2002-05-01 Andrew Cagney <cagney@redhat.com>
9411
9412 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9413 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9414 * config/v850/tm-v850.h: Ditto. Update copyright.
9415
9416 2002-04-30 Andrew Cagney <ac131313@redhat.com>
9417
9418 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9419 current_gdbarch.
9420
9421 2002-04-30 Michael Snyder <msnyder@redhat.com>
9422
9423 * arm-tdep.c: Whitespace clean-ups.
9424 (arm_skip_prologue): Fix thinko; two lines
9425 should have been removed as part of 4/24 change.
9426
9427 2002-04-30 Kevin Buettner <kevinb@redhat.com>
9428
9429 * rs6000-tdep.c: Added comment describing how fpscr register
9430 numbers were chosen.
9431
9432 2002-04-30 Michael Snyder <msnyder@redhat.com>
9433
9434 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9435
9436 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9437
9438 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9439 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9440 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9441
9442 2002-04-29 Kevin Buettner <kevinb@redhat.com>
9443
9444 From Louis Hamilton <hamilton@redhat.com>:
9445 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9446 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9447 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9448 not bfd-private xcoff data, to determine wordsize.
9449 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9450
9451 2002-04-29 Andrew Cagney <ac131313@redhat.com>
9452
9453 GDB 5.2 released from 5.2 branch.
9454
9455 2002-04-29 Michal Ludvig <mludvig@suse.cz>
9456
9457 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9458 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9459 (x86_64_register_info_table): Added comments with register numbers.
9460
9461 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
9462
9463 * rs6000-tdep.c (rs6000_extract_return_value,
9464 rs6000_store_return_value): Handle returning vectors.
9465 (rs6000_gdbarch_init): Use
9466 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9467 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9468 New function.
9469 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9470 vectors.
9471 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9472 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
9473
9474 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9475
9476 * hpread.c (hpread_psymtab_to_symtab_1,
9477 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
9478 with fprintf_unfiltered (gdb_stderr,...).
9479
9480 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9481
9482 * remote-array.c (printf_monitor, write_monitor,
9483 array_insert_breakpoint, array_remove_breakpoint ):
9484 Replace fprintf (stderr,...
9485 with fprintf_unfiltered (gdb_stderr,....
9486 * remote-es.c: Likewise.
9487 * remote-os9k.c: Likewise.
9488 * remote-st.c: Likewise.
9489
9490 2002-04-28 Andreas Schwab <schwab@suse.de>
9491
9492 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9493 linux-proc.o and gcore.o.
9494
9495 2002-04-26 Michal Ludvig <mludvig@suse.cz>
9496
9497 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9498 code without frame pointers.
9499
9500 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9501
9502 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9503 ON_STACK is needed.
9504
9505 2002-04-26 Ben Elliston <bje@redhat.com>
9506
9507 * target.c (do_xfer_memory): Correct reference to the new option
9508 "trust-readonly-sections".
9509
9510 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
9511
9512 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
9513 * gdbtypes.c (recursive_dump_type): Output the vector flag.
9514 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
9515 vectors.
9516 (read_array_type): Record the fact that this array type is really a
9517 vector (i.e. are passed in by value).
9518
9519 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
9520
9521 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
9522 * alpha-tdep.c (alpha_sigcontext_addr): New function.
9523 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
9524 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
9525 * alpha-linux-tdep.c: Include frame.h.
9526 (alpha_linux_sigcontext_addr): New function.
9527 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
9528 alpha_linux_sigcontext_addr.
9529 * alpha-osf1-tdep.c: Include gdbcore.h.
9530 (alpha_osf1_sigcontext_addr): New function.
9531 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
9532 alpha_osf1_sigcontext_addr.
9533 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
9534 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
9535
9536 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9537
9538 * stack.c (selected_frame_level):
9539 (select_frame): Do not set selected_frame_level.
9540 * frame.h (selected_frame_level): Delete declaration.
9541
9542 2002-04-26 Andrew Cagney <ac131313@redhat.com>
9543
9544 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
9545 convert_from_func_ptr-addr when AIX / PowerOpen.
9546
9547 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9548
9549 * valops.c (hand_function_call): Call
9550 generic_save_call_dummy_addr.
9551 * frame.h (generic_save_call_dummy_addr): Declare.
9552 * blockframe.c (struct dummy_frame): Add fields call_lo and
9553 call_hi.
9554 (generic_find_dummy_frame): Check for PC in range call_lo to
9555 call_hi instead of entry_point_address.
9556 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
9557 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
9558 (generic_save_call_dummy_addr): New function.
9559
9560 2002-04-24 David S. Miller <davem@redhat.com>
9561
9562 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
9563 sparc_skip_prologue.
9564 (sparc_skip_prologue): Kill frameless_p arg, and use line number
9565 information to find prologue when possible.
9566 (sparc_prologue_frameless_p): Call examine_prologue directly.
9567 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
9568 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
9569 second argument.
9570 (SKIP_PROLOGUE): Likewise.
9571
9572 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9573
9574 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
9575 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
9576 indicate that the condition it was testing is always true.
9577 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
9578 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9579 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
9580
9581 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9582
9583 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
9584 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
9585 tdep->jb_pc and tdep->jb_elt_size.
9586 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
9587 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
9588 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
9589 * alpha-nat.c (get_longjmp_target): Remove.
9590 (JB_ELEMENT_SIZE): Ditto.
9591 (JB_PC): Ditto.
9592 * alpha-tdep.c (alpha_get_longjmp_target): New function.
9593 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
9594 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
9595 to alpha_get_longjmp_target.
9596 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
9597 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
9598 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
9599
9600 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9601
9602 * README: Update to GDB 5.2.
9603
9604 2002-04-25 Andrew Cagney <ac131313@redhat.com>
9605
9606 * gdbarch.sh (LC_ALL): Set to `c'.
9607
9608 2002-04-25 Theodore A. Roth <troth@verinet.com>
9609
9610 * avr-tdep.c: Ran through gdb_indent.sh.
9611
9612 2002-04-25 Theodore A. Roth <troth@verinet.com>
9613
9614 * MAINTAINERS: Add myself as AVR maintainer.
9615 * NEWS: Note new target avr.
9616
9617 2002-04-25 Theodore A. Roth <troth@verinet.com>
9618
9619 * Makefile.in: Add support for AVR target.
9620 * configure.tgt: Add support for AVR target.
9621 * avr-tdep.c: New file
9622 * config/avr/avr.mt: New file.
9623
9624 2002-04-25 Theodore A. Roth <troth@verinet.com>
9625
9626 * MAINTAINERS: Add myself to write-after-approval.
9627
9628 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
9629
9630 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
9631 with fprintf_unfiltered (gdb_stderr,....
9632
9633 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9634
9635 Fix PR gdb/508.
9636 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
9637
9638 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
9639
9640 * p-exp.y: Also use new prev_lexptr variable
9641 to improve error reporting. Based on Michael Snyder
9642 2002-04-24 dated patch to c-exp.y.
9643
9644 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9645
9646 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
9647 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
9648 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
9649 to 0.
9650 * config/alpha/tm-alpha.h: Remove forward decls of struct type
9651 and struct value.
9652 (FUNCTION_START_OFFSET): Remove.
9653 (BREAKPOINT): Ditto.
9654
9655 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
9656
9657 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
9658 * NEWS: Ditto.
9659
9660 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9661
9662 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
9663 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
9664 alpha_linux_pc_in_sigtramp.
9665 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
9666 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
9667 alpha_osf1_pc_in_sigtramp.
9668 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
9669 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
9670 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9671 alphafbsd_pc_in_sigtramp.
9672 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
9673 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
9674 alphanbsd_pc_in_sigtramp.
9675 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
9676 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
9677
9678 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9679
9680 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9681
9682 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9683
9684 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
9685 alphanbsd-tdep.c.
9686 (alphanbsd-nat.o): New dependency list.
9687 (alphanbsd-tdep.o): Ditto.
9688 * NEWS: Note new native NetBSD/alpha configuration.
9689 * alphanbsd-nat.c: New file.
9690 * alphanbsd-tdep.c: Ditto.
9691 * configure.host (alpha*-*-netbsd*): New host.
9692 * configure.tgt (alpha*-*-netbsd*): New target.
9693 * config/alpha/nbsd.mh: New file.
9694 * config/alpha/nbsd.mt: Ditto.
9695 * config/alpha/nm-nbsd.h: Ditto.
9696 * config/alpha/tm-nbsd.h: Ditto.
9697
9698 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9699
9700 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
9701 (alpha-osf1-tdep.o): New dependency list.
9702 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
9703 and skip_sigtramp_frame members.
9704 * alpha-linux-tdep.c: Include gdbcore.h.
9705 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
9706 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
9707 * alpha-osf1-tdep.c: New file.
9708 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
9709 alpha-osf1-dep.c.
9710 (alpha_frame_past_sigtramp_frame): New function.
9711 (alpha_dynamic_sigtramp_offset): Ditto.
9712 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
9713 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
9714 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
9715 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
9716 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
9717 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
9718 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
9719 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
9720 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
9721 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
9722 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
9723 to find_solib_trampoline_target.
9724 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
9725 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
9726 (SKIP_TRAMPOLINE_CODE): Remove.
9727 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9728 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9729 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9730 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9731 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
9732 (PROC_SIGTRAMP_MAGIC): Ditto.
9733 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9734 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9735 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
9736 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
9737 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
9738
9739 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
9740
9741 * NEWS: Note that Alpha targets are now multi-arch.
9742
9743 2002-04-24 Michael Snyder <msnyder@redhat.com>
9744
9745 * parser-defs.h (prev_lexptr): New external variable.
9746 * parse.c (parse_exp_1): Set prev_lexptr to null before
9747 calling the language-specific parser.
9748 * c-exp.y (yylex): Set prev_lexptr to start of current token.
9749 (yyerror): Use prev_lexptr in error reporting.
9750
9751 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
9752
9753 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
9754 * gregset.h: If FILL_FPXREGSET is defined, provide
9755 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
9756 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
9757 is defined, call fill_fpxregset.
9758
9759 2002-04-24 Roland McGrath <roland@frob.com>
9760
9761 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
9762 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
9763 (supply_gregset, supply_fpregset): New functions.
9764
9765 * gnu-nat.c (gnu_find_memory_regions): New function.
9766 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
9767 (gnu_xfer_memory): Add a cast.
9768
9769 2002-04-24 Michael Snyder <msnyder@redhat.com>
9770
9771 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
9772 loop. Add handling for "str lr, [sp, #-4]!" and for saves
9773 of argument regs ("str r(0123), [r11, #-nn"]).
9774 (arm_skip_prologue): Better handling for frameless functions.
9775 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
9776 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
9777
9778 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
9779
9780 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
9781 NUM_PSEUDO_REGS can be used.
9782
9783 2002-04-24 Andrew Cagney <ac131313@redhat.com>
9784
9785 * arch-utils.h: Update copyright.
9786
9787 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
9788 * gdbarch.h, gdbarch.c: Re-generate.
9789
9790 * inferior.h (IN_SIGTRAMP): Delete definition.
9791 * arch-utils.c (legacy_pc_in_sigtramp): New function.
9792 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
9793
9794 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
9795 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
9796 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
9797 (find_proc_framesize): Ditto.
9798 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
9799 (alpha_init_extra_frame_info): Ditto.
9800 * infrun.c (handle_inferior_event): Ditto.
9801 (handle_inferior_event): Ditto.
9802 (check_sigtramp2): Ditto.
9803 * blockframe.c (create_new_frame): Ditto.
9804 (get_prev_frame): Ditto.
9805 * ppc-linux-tdep.c: Update comments.
9806 * i386-linux-tdep.c: Update comments.
9807 * breakpoint.c (bpstat_what): Update comment.
9808
9809 2002-04-24 David S. Miller <davem@redhat.com>
9810
9811 * i960-tdep.c (register_in_window_p): New function.
9812 (i960_find_saved_register): Use it instead of
9813 REGISTER_IN_WINDOW_P.
9814 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
9815
9816 * symtab.h (find_stab_function_addr): Kill extern.
9817 * minsyms.c (find_stab_function_addr): Remove from here...
9818 * dbxread.c: ... to here, and mark it static.
9819
9820 2002-04-20 David S. Miller <davem@redhat.com>
9821
9822 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
9823 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
9824
9825 2002-04-21 David S. Miller <davem@redhat.com>
9826
9827 * remote-vxsparc.c (vx_read_register): Fix typo, we want
9828 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
9829 (vx_write_register): Likewise.
9830
9831 2002-04-23 J. Brobecker <brobecker@gnat.com>
9832
9833 * source.c (is_regular_file): New function.
9834 (openp): Check wether file to open is a regular file
9835 to avoid opening directories.
9836
9837 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9838
9839 * findvar.c (extract_signed_integer): Cast printf argument
9840 to suppress format warning.
9841 (extract_unsigned_integer): Likewise.
9842 * infcmd.c (registers_info): Likewise.
9843 * top.c (get_prompt_1): Likewise.
9844 * valops.c (value_assign): Likewise.
9845 * valprint.c (print_decimal): Likewise.
9846
9847 2002-04-22 H.J. Lu (hjl@gnu.org)
9848
9849 * c-exp.y (typebase): Support
9850
9851 [long|long long|short] [signed|unsigned] [int|]
9852
9853 and
9854
9855 signed [long|long long|short] int
9856
9857 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9858
9859 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
9860 and vax-tdep.h.
9861 * vax-tdep.h: New file.
9862 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
9863 Make several routines static.
9864 (vax_get_saved_register): New function.
9865 (vax_gdbarch_init): New function.
9866 (_initialize_vax_tdep): Register vax_gdbarch_init.
9867 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
9868 Remove macros now under the control of gdbarch.
9869
9870 2002-04-22 Michael Snyder <msnyder@redhat.com>
9871
9872 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
9873 Some whitespace and coding standards tweaks.
9874
9875 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9876
9877 * vax-tdep.c: Include regcache.h.
9878 (vax_call_dummy_words): New.
9879 (sizeof_vax_call_dummy_words): New.
9880 (vax_fix_call_dummy): New function.
9881 (vax_saved_pc_after_call): Ditto.
9882 * config/vax/tm-vax.h: Don't include regcache.h.
9883 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
9884 (CALL_DUMMY): Remove.
9885 (CALL_DUMMY_WORDS): Define.
9886 (SIZEOF_CALL_DUMMY_WORDS): Define.
9887 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
9888
9889 2002-04-18 Michael Snyder <msnyder@redhat.com>
9890
9891 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
9892
9893 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9894
9895 * vax-tdep.c (vax_frame_chain): New function.
9896 (vax_push_dummy_frame): Ditto.
9897 (vax_pop_frame): Ditto.
9898 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
9899 (FRAMELESS_FUNCTION_INVOCATION): Use
9900 generic_frameless_function_invocation_not.
9901 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
9902 (POP_FRAME): Use vax_pop_frame.
9903
9904 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9905
9906 * vax-tdep.c (vax_store_struct_return): New function.
9907 (vax_extract_return_value): Ditto.
9908 (vax_store_return_value): Ditto.
9909 (vax_extract_struct_value_address): Ditto.
9910 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
9911 vax_store_struct_return.
9912 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
9913 (STORE_RETURN_VALUE): Use vax_store_return_value.
9914 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
9915
9916 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9917
9918 * vax-tdep.c (vax_frame_saved_pc): New function.
9919 (vax_frame_args_address_correct): Ditto.
9920 (vax_frame_args_address): Ditto.
9921 (vax_frame_locals_address): Ditto.
9922 (vax_frame_num_args): Move code to be in proximity to
9923 other frame-related functions.
9924 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
9925 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
9926 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
9927 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
9928 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
9929
9930 2002-04-22 H.J. Lu (hjl@gnu.org)
9931
9932 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
9933 includedir.
9934
9935 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9936
9937 * vax-tdep.c (vax_frame_init_saved_regs): New function.
9938 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
9939 (FRAME_INIT_SAVED_REGS): New macro.
9940
9941 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9942
9943 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
9944
9945 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9946
9947 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
9948 where needed.
9949 (fetch_osf_core_registers): Likewise.
9950 (supply_gregset): Likewise.
9951
9952 2002-04-22 J. Brobecker <brobecker@gnat.com>
9953
9954 * symfile.h (get_section_index): Define.
9955 * symfile.c (get_section_index): New function.
9956 * mdebugread.c (SC_IS_SBSS): New macro.
9957 (SC_IS_BSS): Return true for the scBss storage class only, as
9958 the scSBss storage class refers to the .sbss section.
9959 (parse_partial_symbols): Discard the symbols which associated
9960 section does not exist.
9961 Make sure to use the .sbss section index for symbols which
9962 storage class is scBss, rather than using the .bss section index.
9963
9964 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
9965
9966 * vax-tdep.c: Update copyright years.
9967 (vax_register_name): New function.
9968 (vax_register_byte): Ditto.
9969 (vax_register_raw_size): Ditto.
9970 (vax_register_virtual_size): Ditto.
9971 (vax_register_virtual_type): Ditto.
9972 * config/vax/tm-vax.h: Update copyright years.
9973 (REGISTER_NAMES): Remove.
9974 (REGISTER_NAME): Define.
9975 (REGISTER_BYTE): Use vax_register_byte.
9976 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
9977 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
9978 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
9979
9980 2002-04-21 Andrew Cagney <ac131313@redhat.com>
9981
9982 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
9983 declaration
9984 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
9985
9986 2002-04-21 David S. Miller <davem@redhat.com>
9987
9988 * arch-utils.c (generic_prologue_frameless_p): Kill
9989 SKIP_PROLOGUE_FRAMELESS_P code.
9990 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9991 references.
9992 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
9993 * arc-tdep.c (arc_prologue_frameless_p): Implement.
9994 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
9995 references.
9996 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
9997 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
9998 (sparc_gdbarch_init): Pass it to
9999 set_gdbarch_prologue_frameless_p.
10000
10001 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10002
10003 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10004 (alphabsd-nat.o): New dependency list.
10005
10006 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10007
10008 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10009 alphafbsd-tdep.c.
10010 (alpha-linux-tdep.o): New dependency list.
10011 (alphafbsd-tdep.o): Likewise.
10012
10013 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10014
10015 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10016 to here...
10017 * alpha-tdep.c: ...from here.
10018 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10019
10020 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10021
10022 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10023 prototype from here...
10024 * alpha-tdep.h: ...to here.
10025
10026 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10027
10028 * frame.h (selected_frame_level): Document as deprecated.
10029 (frame_relative_level): Declare.
10030 * stack.c (frame_relative_level): New function.
10031 (selected_frame_level): Document as deprecated.
10032 (select_frame): Do not set the selected_frame_level.
10033
10034 * stack.c (frame_info, record_selected_frame): Update.
10035 (frame_command, current_frame_command): Update.
10036 (up_silently_base, up_command, down_silently_base): Update.
10037 (down_command): Update.
10038 * inflow.c (kill_command): Update.
10039 * tracepoint.c (finish_tfind_command): Update.
10040 * corelow.c (core_open): Update.
10041 * thread.c (info_threads_command): Update.
10042 (do_captured_thread_select): Update.
10043 * infcmd.c (finish_command): Update.
10044 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10045
10046 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10047
10048 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10049
10050 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10051
10052 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10053 type const.
10054
10055 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10056
10057 * alphafbsd-tdep.c: Update copyright years. Include
10058 alpha-tdep.h.
10059 (alphafbsd_use_struct_convention): Make static.
10060 (alphafbsd_init_abi): New function.
10061 (_initialize_alphafbsd_tdep): New function.
10062 * config/alpha/tm-fbsd.h: Update copyright years.
10063 (USE_STRUCT_CONVENTION): Remove.
10064
10065 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10066
10067 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10068 an Alpha ABI variant.
10069 (alpha_abi_handler_list): Declare.
10070 (alpha_gdbarch_register_os_abi): New function.
10071 (alpha_gdbarch_init): Give registered ABI variant handlers a
10072 chance to tweak the gdbarch once we have set up defaults.
10073 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10074
10075 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10076
10077 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10078 to standard_coerce_float_to_double.
10079 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10080
10081 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10082
10083 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10084 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10085 from gdbarch_tdep rather than a constant.
10086 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10087 the default text address for all Alpha Unix ABIs.
10088 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10089 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10090
10091 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
10092
10093 * alpha-tdep.h: New file. Includes several Alpha target constants
10094 taken from...
10095 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10096 let gdbarch deal with.
10097 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10098 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10099 to dependency list.
10100 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10101 Alpha target register names.
10102 * alphabsd-nat.c: Likewise.
10103 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10104 Alpha target register names. Make serveral routines static.
10105 (alpha_get_saved_register): New function.
10106 (alpha_abi_names): New.
10107 (process_note_abi_tag_sections): New function.
10108 (get_elfosabi): New function.
10109 (alpha_gdbarch_init): New function.
10110 (alpha_dump_tdep): New function.
10111 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10112
10113 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10114
10115 * frame.c (find_saved_register): Delete #ifdef
10116 HAVE_REGISTER_WINDOWS code.
10117 * config/sparc/tm-sparc.h: Update comments.
10118 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10119
10120 2002-04-21 Andrew Cagney <ac131313@redhat.com>
10121
10122 * i960-tdep.c (i960_find_saved_register): New function.
10123 (i960_get_saved_register): New function.
10124 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10125 (i960_get_saved_register): Declare.
10126 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10127
10128 2002-04-20 David S. Miller <davem@redhat.com>
10129
10130 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10131
10132 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10133
10134 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10135 instead of NUM_PSEUDO_REGS.
10136
10137 2002-04-20 David S. Miller <davem@redhat.com>
10138
10139 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10140 GDB_MULTI_ARCH_PARTIAL
10141 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10142 define, let tm-sp64.h do it.
10143
10144 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
10145
10146 * frame.c (find_saved_register): Avoid a NULL pointer
10147 dereference and actually walk the frame list.
10148
10149 2002-04-20 Andrew Cagney <ac131313@redhat.com>
10150
10151 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10152 sorted in most most-recent-used order. Document.
10153 * gdbarch.h, gdbarch.c: Regenerate.
10154
10155 2002-04-19 Andrew Cagney <ac131313@redhat.com>
10156
10157 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10158 instead of ->prev.
10159 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10160 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10161 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10162 instead of ->prev.
10163
10164 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
10165
10166 Fix PR gdb/471.
10167 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10168 (build_builtin_type_vec128): Ditto.
10169 (append_composite_type_field): Fix calculation of type length in
10170 union case.
10171
10172 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
10173
10174 * config/djgpp/README: Update.
10175
10176 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10177 compiler warnings.
10178
10179 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
10180
10181 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10182 (alpha_setup_arbitrary_frame): ...to this.
10183 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10184 for alpha_setup_arbitrary_frame.
10185
10186 2002-04-18 Andrew Cagney <cagney@redhat.com>
10187
10188 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10189 * gdbarch.h, gdbarch.c: Regenerate.
10190
10191 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10192 * target.h (memory_breakpoint_from_pc): Update declaration.
10193 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10194
10195 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10196 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10197 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10198 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10199 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10200 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10201 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10202 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10203 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10204 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10205 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10206 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10207
10208 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10209 const pointer.
10210 * monitor.c (monitor_insert_breakpoint): Ditto.
10211 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10212
10213 * config/mcore/tm-mcore.h: Update copyright.
10214 * mem-break.c: Ditto.
10215 * xstormy16-tdep.c: Ditto.
10216
10217 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
10218
10219 * p-exp.y: Add precedence rule for '^' token.
10220 This removes the shift/reduce conflicts.
10221 Remove the comment concerning these shift/reduce conflicts.
10222
10223 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
10224
10225 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10226 (registers_powerpc_nofp): New register set for processors
10227 without floating point unit.
10228
10229 2002-04-18 David S. Miller <davem@redhat.com>
10230
10231 * MAINTAINERS: Add myself to write-after-approval.
10232
10233 2002-04-17 Michael Snyder <msnyder@redhat.com>
10234
10235 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10236
10237 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10238
10239 * rs6000-tdep.c (frame_initial_stack_address): Use
10240 frame_register_read to read the alloca_reg.
10241
10242 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10243
10244 * frame.c (find_saved_register): Find saved registers in the next
10245 not prev frame.
10246 Fix PR gdb/365.
10247
10248 2002-04-17 Andrew Cagney <ac131313@redhat.com>
10249
10250 * gdbarch.sh (LANG): Set to ``c''.
10251
10252 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10253
10254 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
10255
10256 2002-04-15 Andrew Cagney <ac131313@redhat.com>
10257
10258 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10259 Update copyright.
10260
10261 * hpread.c (hpread_get_lntt): Add declaration.
10262 Also fix PR gdb/391.
10263
10264 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10265
10266 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10267 * aclocal.m4, configure: Re-generate.
10268 Fix PR gdb/391.
10269
10270 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10271
10272 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10273 instead of tm_print_insn.
10274
10275 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
10276
10277 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10278
10279 2002-04-14 Andrew Cagney <ac131313@redhat.com>
10280
10281 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10282 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10283 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10284
10285 2002-04-12 Don Howard <dhoward@redhat.com>
10286
10287 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10288 max_user_call_depth.
10289 (init_cmd_lists): Initialize the new value;
10290 * cli/cli-script.c (execute_user_command): Limit the call depth of
10291 user defined commands. This avoids a core-dump when user commands
10292 are infinitly recursive.
10293
10294 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10295
10296 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10297 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10298 from tdep struct instead of DEFAULT_LR_SAVE.
10299 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10300 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10301 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10302
10303 2002-04-12 Michael Snyder <msnyder@redhat.com>
10304
10305 * Remote.c: Spelling fix.
10306 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10307 If no symbol found for "sbrk", try "_sbrk".
10308 (make_output_phdrs): Use bfd_section_name.
10309 (gcore_copy_callback): Use bfd_section_name.
10310 * eval.c: Indentation fix-ups.
10311 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10312 in case it gets applied to an address that is already
10313 in the instruction space.
10314 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10315 * symfile.c: Fix indentation, long lines.
10316 * source.c: White space fix-up.
10317
10318 2002-04-12 Andrew Cagney <cagney@redhat.com>
10319
10320 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10321 * frame.c (frame_register_read): New function. Return non-zero on
10322 success.
10323 (read_relative_register_raw_bytes_for_frame): Delete.
10324 (read_relative_register_raw_bytes): Delete.
10325 * frame.h (frame_register_read): Declare.
10326 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10327 * sh-tdep.c: Ditto.
10328 * infcmd.c (do_registers_info): Ditto.
10329 * hppa-tdep.c: Ditto.
10330 * rs6000-tdep.c: Ditto.
10331 * h8500-tdep.c: Ditto.
10332 * mips-tdep.c: Ditto.
10333 * h8300-tdep.c: Ditto.
10334 * z8k-tdep.c: Ditto.
10335
10336 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10337
10338 From Jimi X <jimix@watson.ibm.com>:
10339 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10340 64-bit SysV ABI.
10341
10342 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10343
10344 From Jimi X <jimix@watson.ibm.com>:
10345 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10346 bfd info.
10347
10348 2002-04-12 Kevin Buettner <kevinb@redhat.com>
10349
10350 From Jimi X <jimix@watson.ibm.com>:
10351 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10352 register sets for these processor variants.
10353
10354 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
10355
10356 * regformats/reg-ppc.dat: Support FPSCR.
10357
10358 2002-04-11 Kevin Buettner <kevinb@redhat.com>
10359
10360 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10361 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10362 Add fpscr as an invalid/unfetchable register.
10363 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10364 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10365 (fill_fpregset): Add support for register fpscr.
10366 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10367 (fill_gregset): Account for the fact that register ``mq'' might
10368 not exist.
10369 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10370 (registers_power): Add fpscr to register set at slot 71.
10371 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10372 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10373
10374 2002-04-11 Michael Snyder <msnyder@redhat.com>
10375
10376 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10377 * configure: Regenerate.
10378 * config.in: Regenerate.
10379 * acconfig.h: Add define for _SYSCALL32.
10380 * core-sol2.c: Remove #define _SYSCALL32.
10381 * solib-legacy.c: Remove #define _SYSCALL32.
10382
10383 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10384
10385 * stack.c (select_frame): Cleanup internal error message, do not
10386 use %p.
10387
10388 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10389
10390 * stack.c (select_frame): Check that selected_frame and the
10391 specified level are as expected.
10392 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10393 Update copyright.
10394 * frame.h (struct frame_info): Add field `level'. Update
10395 copyright.
10396 Work-in-progress PR gdb/464.
10397
10398 2002-04-10 Andrew Cagney <ac131313@redhat.com>
10399
10400 * maint.c (maint_print_section_info): Rename print_section_info.
10401 (print_bfd_section_info, print_objfile_section_info): Update.
10402 * inferior.h (struct gdbarch): Add opaque declaration.
10403 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10404 * gdbarch.h: Regenerate.
10405
10406 2002-04-10 Michal Ludvig <mludvig@suse.cz>
10407
10408 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10409 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10410 (kernel_u_size): Added.
10411 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10412 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10413
10414 2002-04-04 Jim Ingham <jingham@apple.com>
10415
10416 * valarith.c (find_size_for_pointer_math): New function, either returns
10417 the size for a pointer's target, returns 1 for void *, or errors for
10418 incomplete types.
10419 (value_add, value_sub): use find_size_for_pointer_math.
10420
10421 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10422
10423 * linux-low.c (linux_look_up_symbols): New hook.
10424 (linux_target_ops): Add linux_look_up_symbols.
10425 * remote-utils.c (decode_address): New function.
10426 (look_up_one_symbol): New function.
10427 * server.c (handle_query): Call target look_up_symbols hook.
10428 * server.h (look_up_one_symbol): Add prototype.
10429 * target.h (struct target_ops): Add look_up_symbols hook.
10430
10431 2002-04-09 Andrew Cagney <ac131313@redhat.com>
10432
10433 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10434 override FP_REGNUM with frame->fp. Update copyright.
10435 * parse.c (num_std_regs, std_regs): Delete.
10436 (target_map_name_to_register): Do not search std_regs. Update
10437 function description.
10438 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10439 declarations. Update copyright.
10440 Fix PR gdb/251.
10441
10442 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
10443
10444 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10445 after the last symbol in a block.
10446
10447 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
10448
10449 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10450 is non zero as a found symbol.
10451
10452 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10453
10454 * findvar.c: Include "builtin-regs.h".
10455 (value_of_register): Call value_of_builtin_reg when applicable.
10456 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10457 (target_map_name_to_register): Call
10458 builtin_reg_map_name_to_regnum.
10459 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10460 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10461 (builtin_regs_h): Define.
10462 (builtin-regs.o): New target.
10463 (findvar.o): Add $(builtin_regs_h).
10464 * builtin-regs.c, builtin-regs.h: New files.
10465 * std-regs.c: New file.
10466 Partial fix for PR gdb/251.
10467
10468 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10469
10470 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10471 it's no longer required.
10472
10473 2002-04-08 Andrew Cagney <ac131313@redhat.com>
10474
10475 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10476
10477 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10478
10479 From Jimi X <jimix@watson.ibm.com>:
10480 * rs6000-tdep.c (rs6000_software_single_step): Use
10481 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10482 and size. Use target_insert_breakpoint() and
10483 target_remove_breakpoint() to insert and remove breakpoints
10484 instead of explicit memory reads and writes.
10485
10486 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10487
10488 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10489 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10490 ELF_OBJECT_FORMAT ifdef.
10491
10492 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10493
10494 From Jimi X <jimix@watson.ibm.com>:
10495 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10496
10497 2002-04-08 Kevin Buettner <kevinb@redhat.com>
10498
10499 From Jimi X <jimix@watson.ibm.com>:
10500 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10501 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10502
10503 2002-04-07 Mark Kettenis <kettenis@gnu.org>
10504
10505 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
10506 s/asprintf/xasprintf/.
10507 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
10508
10509 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10510
10511 I believe Jeff Law denies responsability for this one:
10512 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
10513 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
10514 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
10515 Work-around for PR gdb/366.
10516
10517 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10518
10519 * remote-e7000.c (write_small, e7000_read_inferior_memory,
10520 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
10521 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
10522
10523 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
10524
10525 * sh-tdep.c (sh_fp_frame_init_saved_regs,
10526 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
10527 information.
10528
10529 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10530
10531 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
10532 maintainer.
10533
10534 2002-04-07 Andrew Cagney <ac131313@redhat.com>
10535
10536 * README (Reporting Bugs in GDB): Document the bug web page as the
10537 prefered way of submitting bugs.
10538 Fix PR gdb/402.
10539
10540 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10541
10542 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
10543 -1. Update comment.
10544 * gdbarch.h, gdbarch.c: Re-generate.
10545
10546 2002-04-07 Andreas Schwab <schwab@suse.de>
10547
10548 * m68klinux-nat.c (fill_fpregset): Properly pass address of
10549 buffer to regcache_collect.
10550
10551 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10552
10553 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
10554 * gdbarch.c, gdbarch.h: Re-generate.
10555
10556 2002-04-06 Andrew Cagney <ac131313@redhat.com>
10557
10558 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
10559 declaration. Fix -Werror.
10560
10561 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
10562
10563 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
10564 * gdbarch.c: Regenerate.
10565
10566 2002-04-05 Michael Snyder <msnyder@redhat.com>
10567
10568 * breakpoint.c (clear_command): Rewrite middle section to
10569 combine two loops with identical control conditions.
10570 Add a cleanup to eliminate a memory leak.
10571 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
10572
10573 2002-04-05 H.J. Lu (hjl@gnu.org)
10574
10575 * solib-svr4.c (bkpt_names): Add "__start".
10576
10577 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10578
10579 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
10580 as test for 64 bit target.
10581
10582 2002-04-05 Andrew Cagney <ac131313@redhat.com>
10583
10584 * h8500-tdep.c (h8500_write_fp): Delete function.
10585 * dwarf2cfi.c (cfi_write_fp): Document as not used.
10586 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
10587 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
10588 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
10589 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
10590 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
10591 (s390_write_fp):
10592 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
10593 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
10594 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
10595 (d10v_write_fp): Delete function.
10596 * inferior.h (write_fp, generic_target_write_fp): Delete
10597 declarations.
10598 * regcache.c (generic_target_write_fp): Delete function.
10599 (write_fp): Delete function.
10600 * gdbarch.sh (TARGET_WRITE_FP): Delete.
10601 * gdbarch.h, gdbarch.c: Regenerate.
10602 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
10603 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
10604 (sparc64_write_fp): Delete declaration.
10605 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
10606 (h8500_write_fp): Delete declaration.
10607
10608 2002-04-04 Andrew Cagney <ac131313@redhat.com>
10609
10610 * sparc-tdep.c (sparc64_write_fp): Delete.
10611 (sparc_push_dummy_frame): Replace write_fp call with code to store
10612 the FP directly.
10613 (sparc_gdbarch_init): Do not initialize write_fp.
10614
10615 2002-04-05 Kevin Buettner <kevinb@redhat.com>
10616
10617 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
10618 clause.
10619
10620 2002-03-29 Jim Blandy <jimb@redhat.com>
10621
10622 * stack.c (get_selected_block): Add new argument `addr_in_block',
10623 used to return the exact code address we used to select the block,
10624 not just the block.
10625 * blockframe.c (get_frame_block, get_current_block): Same.
10626 * frame.h (get_frame_block, get_current_block,
10627 get_selected_block): Update declarations.
10628 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
10629 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
10630
10631 2002-04-05 Michael Snyder <msnyder@redhat.com>
10632
10633 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
10634 warning message.
10635
10636 2002-04-05 J. Brobecker <brobecker@gnat.com>
10637
10638 * utils.c (xfullpath): New function.
10639 * defs.h (xfullpath): Add declaration.
10640 * source.c (openp): Use xfullpath in place of gdb_realpath to
10641 avoid resolving the basename part of filenames when the
10642 associated file is a symbolic link. This fixes a potential
10643 inconsistency between the filenames known to GDB and the
10644 filenames it prints in the annotations.
10645 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
10646 to be able to match a filename with either the real filename, or
10647 the name of any symbolic link to this file.
10648 (lookup_partial_symtab): Ditto.
10649
10650 2002-04-04 Michael Snyder <msnyder@redhat.com>
10651
10652 * breakpoint.c: Add support for hardware breakpoints in overlays.
10653 (overlay_events_enabled): New state variable.
10654 (insert_breakpoints): Use overlay_events_enabled to decide
10655 whether to attempt to set a breakpoint at the overlay load addr.
10656 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10657 (remove_breakpoint): Use overlay_events_enabled to decide
10658 whether breakpoints need to be removed from overlay load addr.
10659 Handle bp_hardware_breakpoint as well as bp_breakpoint.
10660 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
10661 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
10662 disable_overlay_breakpoints): Update overlay_events_enabled.
10663
10664 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
10665
10666 * dwarf2read.c (struct function_range): New.
10667 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
10668 (check_cu_functions): New.
10669 (read_file_scope): Initialize global function lists.
10670 Call dwarf_decode_line after processing children.
10671 (read_func_scope): Add to global function list.
10672 (dwarf_decode_lines): Call check_cu_functions everywhere
10673 record_line is called. Call record_line with a linenumber
10674 of 0 to mark sequence ends.
10675
10676 2002-04-04 Michal Ludvig <mludvig@suse.cz>
10677
10678 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
10679 change sync with glibc.
10680
10681 2002-04-03 Jim Blandy <jimb@redhat.com>
10682
10683 * configure.in: Call AC_C_INLINE.
10684 * configure: Regenerated.
10685
10686 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
10687
10688 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
10689 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
10690
10691 2002-03-31 Mark Kettenis <kettenis@gnu.org>
10692
10693 * NEWS: Mention gcore support on FreeBSD/i386.
10694
10695 * fbsd-proc.c: New file.
10696 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
10697 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
10698
10699 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
10700 while statement.
10701
10702 2002-03-29 Jim Blandy <jimb@redhat.com>
10703
10704 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
10705 unescaped newlines in string literals, but newer ones don't. So
10706 escape them.
10707
10708 2002-03-26 Michael Snyder <msnyder@redhat.com>
10709 Andrew Cagney <cagney@redhat.com>
10710
10711 * cli/cli-dump.c: New file. Dump memory to file,
10712 restore file to memory.
10713 * cli/cli-dump.h: New file.
10714 * Makefile.in: Add rules, dependencies for cli-dump.o.
10715 * NEWS: Mention new commands.
10716
10717 2002-03-28 Michael Snyder <msnyder@redhat.com>
10718
10719 * symfile.c (symbol_file_add): Move test for null symbols to later.
10720
10721 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10722
10723 From veksler at il.ibm.com:
10724 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
10725 the xstrduped original path.
10726 Fix PR gdb/417.
10727
10728 2002-03-27 Michael Snyder <msnyder@redhat.com>
10729
10730 * breakpoint.c (_initialize_breakpoint): Clean up help string.
10731 * infcmd.c (_initialize_infcmd): Ditto.
10732 * language.c (_initialize_language): Ditto.
10733 * symfile.c (_initialize_symfile): Ditto.
10734 * top.c (_init_main): Ditto.
10735 * cli/cli-cmds.c (init_cli_cmds): Ditto.
10736
10737 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
10738
10739 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
10740 vector registers handling.
10741 (skip_prologue): Handle new AltiVec instructions. Fill in new
10742 fields of frame data.
10743 (frame_get_saved_regs): Fill in information for AltiVec registers.
10744
10745 2002-03-27 Jim Blandy <jimb@redhat.com>
10746
10747 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
10748 a function; leave this macro here to invoke that function.
10749 (symbol_init_mangled_name): Declaration for that function.
10750 * symtab.c (symbol_init_mangled_name): New function.
10751
10752 2002-03-27 Andrew Cagney <ac131313@redhat.com>
10753
10754 * valarith.c: Replace strerror with safe_strerror.
10755 * tracepoint.c: Ditto.
10756 * lin-lwp.c: Ditto.
10757 * go32-nat.c: Ditto.
10758 * inflow.c: Ditto.
10759 * gnu-nat.c: Ditto.
10760
10761 2002-03-27 Andreas Schwab <schwab@suse.de>
10762
10763 * event-top.c (command_line_handler): Remove useless if.
10764
10765 2002-03-27 Andreas Jaeger <aj@suse.de>
10766
10767 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
10768 comment.
10769
10770 2002-03-27 Michal Ludvig <mludvig@suse.cz>
10771
10772 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
10773 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
10774 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
10775 (x86_64_linux_dr_get_status, supply_gregset),
10776 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
10777 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
10778 (x86_64_register_info_table): Add.
10779 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
10780 (x86_64_register_raw_size, x86_64_register_virtual_type),
10781 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
10782 general x86_64_register_info_table.
10783 (i386_gdbarch_init): gdbarch_register_bytes is now set
10784 dynamicaly during initialization.
10785 * regformats/reg-x86-64.dat: Synced with changes to registers above.
10786 * gdbserver/linux-x86-64-low.c: Ditto.
10787
10788 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10789
10790 * gdbserver/server.c (main): Call target_signal_to_host_p
10791 and target_signal_to_host on signals received from the remote.
10792 * gdbserver/remote-utils.c (prepare_resume_reply): Call
10793 target_signal_from_host on signals sent to the remote.
10794 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
10795 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
10796
10797 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10798
10799 * signals/signals.c: Include "server.h" in gdbserver build.
10800 (target_signal_from_name): Don't use STREQ.
10801 (_initialize_signals): Likewise. Don't include function in
10802 gdbserver build.
10803
10804 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
10805
10806 * signals.c: Moved to...
10807 * signals/signals.c: Here.
10808 * Makefile (signals.o): Update.
10809
10810 2002-03-26 Jeff Law (law@redhat.com)
10811
10812 * somread.c (som_symtab_read): Remove some commented out code and
10813 updated related comments. Do not set the minimal symbol table to
10814 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
10815 in a dynamic executable.
10816 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
10817 where we are unable to find the minimal symbol for the given
10818 PC value.
10819
10820 2002-03-25 Jeff Law (law@redhat.com)
10821
10822 * linux-proc.c (read_mapping): Scan up to end of line for filename.
10823
10824 2002-03-25 Michal Ludvig <mludvig@suse.cz>
10825
10826 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
10827
10828 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10829
10830 * command.h: Update copyright.
10831 (struct cmd_list_element): Replace definition with opaque
10832 declaration.
10833 (enum cmd_types): Document that it will eventually be moved to
10834 cli/cli-decode.h
10835 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
10836 (MALLOCED_REPLACEMENT): Delete macro.
10837 * Makefile.in (cli_decode_h): Add $(command_h).
10838 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
10839 * top.c: Include "cli/cli-decode.h".
10840 * completer.c: Include "cli/cli-decode.h".
10841 * maint.c: Include "cli/cli-decode.h".
10842 * cli/cli-decode.h: Include "command.h".
10843 (enum command_class): Delete.
10844 (enum cmd_types): Comment out.
10845 (enum cmd_auto_boolean): Delete.
10846 (enum var_types): Delete.
10847
10848 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10849
10850 * cli/cli-decode.c: Include "gdb_assert.h".
10851 (add_set_or_show_cmd): New static function.
10852 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
10853 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
10854 all fields, such as func, from the set command.
10855
10856 2002-03-23 Andrew Cagney <ac131313@redhat.com>
10857
10858 * MAINTAINERS (sh-elf): Change warning flag to -w.
10859
10860 2002-03-23 Andrew Cagney <cagney@redhat.com>
10861
10862 * defs.h (error): Add printf format attribute.
10863 * thread-db.c (thread_from_lwp): Fix error format string.
10864 * stack.c (parse_frame_specification): Ditto.
10865 * cli/cli-decode.c (undef_cmd_error): Ditto.
10866 * scm-lang.c (scm_lookup_name): Ditto.
10867 * tracepoint.c (trace_error): Ditto.
10868 * remote-utils.c (usage): Ditto.
10869 * remote.c (compare_sections_command): Ditto.
10870 Fix PR gdb/328.
10871
10872 2002-03-22 Andrew Cagney <ac131313@redhat.com>
10873
10874 * gdbtypes.c (append_composite_type_field): New function.
10875 (init_composite_type): New function.
10876 * gdbtypes.h (append_composite_type_field): Declare.
10877 (init_composite_type): Ditto.
10878
10879 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
10880
10881 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
10882 function.
10883 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
10884 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
10885 structure returning convention for SYSV ABI case, but not
10886 for GNU/Linux, FreeBSD, or NetBSD.
10887
10888 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
10889
10890 * symtab.h (lookup_block_symbol): Add mangled_name argument
10891 to prototype.
10892
10893 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
10894 with new mangled_name argument.
10895 * linespec.c (decode_line_1): Likewise.
10896 * valops (value_of_this): Likewise.
10897 * symtab.c (lookup_transparent_type): Likewise.
10898 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
10899 (lookup_symbol): If we are given a mangled name, pass it down
10900 to lookup_symbol_aux.
10901 (lookup_block_symbol): If we are given a mangled name to check
10902 against, only return symbols which match it.
10903
10904 2002-03-22 Christopher Faylor <cgf@redhat.com>
10905
10906 * win32-nat.c (child_create_inferior): Check for proper shell to use
10907 here, in case the user changes it on the fly.
10908 (_initialize_inftarg): Remove shell path considerations.
10909
10910 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
10911
10912 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
10913 for gdbarch_max_register_raw_size and max_register_virtual_size.
10914 Adjust copyright year.
10915
10916 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
10917
10918 * dbxread.c (process_one_symbol): Extend the first N_SLINE
10919 in a function to cover the entire beginning of the function
10920 as well if it does not already.
10921
10922 2002-03-21 Tom Rix <trix@redhat.com>
10923
10924 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
10925 (rs6000_ptrace64): Renamed from ptrace64.
10926
10927 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10928
10929 * gdbserver/remote-utils.c (remote_open): Don't call
10930 getprotobyname, we're all using TCP here so just use
10931 IPPROTO_TCP.
10932 * gdbserver/gdbreplay.c (remote_open): Ditto.
10933
10934 2002-03-20 Martin M. Hunt <hunt@redhat.com>
10935
10936 * regcache.c (_initialize_regcache): No need to call
10937 build_regcache() at this time; it gets called whenever
10938 the gdbarch changes.
10939
10940 2002-03-20 David O'Brien <obrien@FreeBSD.org>
10941
10942 * sparc-nat.c: Include sys/param.h where possible.
10943
10944 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
10945
10946 Fix PR gdb/422.
10947 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
10948 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
10949 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
10950 complex types.
10951 * stabsread.c (rs6000_builtin_type): Likewise.
10952 (read_sun_floating_type): Likewise.
10953
10954 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10955
10956 * stabsread.c (read_member_functions): Remove skip code for duplicate
10957 constructor/destructor methods. Use standard parsing for these
10958 methods and just do not chain them to the list of methods after
10959 parsing.
10960
10961 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
10962
10963 * coffread.c: Remove redundant static declarations. Replace
10964 occurrences of `PTR' with `void *'.
10965 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
10966 * top.h (quit_cover): Likewise.
10967 * defs.h (catch_errors): Likewise.
10968
10969 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10970
10971 * defs.h (XMALLOC): Define.
10972 * gdb-events.sh (XMALLOC): Delete macro.
10973 * gdb-events.c, gdb-events.h: Regenerate.
10974 * gdbarch.sh (XMALLOC): Delete macro.
10975 * gdbarch.c: Regenerate.
10976 * serial.c (XMALLOC): Delete macro.
10977 * ui-file.c (XMALLOC): Ditto.
10978 * ser-unix.h (XMALLOC): Ditto.
10979 * sh-tdep.c (XMALLOC): Ditto.
10980 * ui-out.c (XMALLOC): Ditto.
10981 * utils.c (XMALLOC): Ditto.
10982 * i386-tdep.c (XMALLOC): Ditto.
10983 * gdb-events.c (XMALLOC): Ditto.
10984 * d10v-tdep.c (XMALLOC): Ditto.
10985 * cli-out.c (XMALLOC): Ditto.
10986
10987 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
10988 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
10989 * ui-file.c, ui-out.c: Ditto.
10990
10991 2002-03-18 Andrew Cagney <ac131313@redhat.com>
10992
10993 * command.h (struct cmd_list_element): Add field context.
10994 (set_cmd_context, get_cmd_context): Declare.
10995 * cli/cli-decode.h: Ditto.
10996 * cli/cli-decode.c (get_cmd_context): New function.
10997 (set_cmd_context): New function.
10998 (add_cmd): Initialize context.
10999 Part of fixing PR gdb/145 and PR gdb/146.
11000
11001 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11002
11003 * cli/cli-decode.c (cmd_type): New function.
11004 * command.h (cmd_type): Declare.
11005 * infrun.c (set_schedlock_func): Call function cmd_type.
11006 * kod.c (kod_set_os): Call cmd_type.
11007 * cris-tdep.c (cris_version_update): Use function cmd_type.
11008 (cris_mode_update, cris_abi_update): Ditto.
11009
11010 * command.h: (execute_cmd_post_hook): Declare.
11011 (execute_cmd_pre_hook): Declare.
11012 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11013 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11014 functions. Execute pre/post hook while ensuring that afterwords
11015 hook_in is cleared.
11016 * top.c (execute_command): Use execute_cmd_post_hook, and
11017 execute_cmd_pre_hook to execute pre/post commands.
11018 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11019 hook_stop_stub.
11020 (hook_stop_stub): Call execute_cmd_pre_hook.
11021
11022 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11023
11024 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11025 set'' and this leads to a core dump. Move xstrdup of
11026 operating_system to after check that it is not NULL.
11027
11028 2002-03-17 Andrew Cagney <ac131313@redhat.com>
11029
11030 * kod.c (kod_set_os): Remove unnecessary check that
11031 ``command->type'' is set_cmd.
11032
11033 * valprint.c (set_input_radix): Use input_radix.
11034 (set_output_radix): Use output_radix.
11035 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11036 isn't reverted.
11037
11038 2002-03-16 Andrew Cagney <ac131313@redhat.com>
11039
11040 * value.h (struct value): Delete field ``substring_addr''. Change
11041 aligner fields to force_doublest_align, force_longest_align,
11042 force_core_addr_align and force_pointer_aligh.
11043
11044 * value.h (struct value): Fix typo in above change.
11045
11046 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11047
11048 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11049 to fix internal_error from ``maintenance print architecture''.
11050
11051 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11052
11053 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11054 for gcc versions after gcc-2.8.1.
11055
11056 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11057
11058 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11059 for method resolution. Restore adjustment of ``this'' pointer after
11060 calling value_struct_elt, which was accidentally removed during the
11061 HP merge.
11062
11063 2002-03-15 Andrew Cagney <ac131313@redhat.com>
11064
11065 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11066 value_of_register.
11067 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11068 get_saved_register.
11069 * value.h (value_of_register): Update.
11070
11071 2002-03-14 Richard Henderson <rth@redhat.com>
11072
11073 * configure.in: Detect declaration for canonicalize_file_name.
11074 * utils.c (canonicalize_file_name): Declare, if needed.
11075 (gdb_realpath): Prefer realpath if available and usable.
11076 * config.in, configure: Rebuild.
11077
11078 2002-03-14 Richard Henderson <rth@redhat.com>
11079
11080 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11081 a constant array bound.
11082
11083 * MAINTAINERS: Add myself to write-after-approval.
11084
11085 2002-03-14 Michael Snyder <msnyder@redhat.com>
11086
11087 * symfile.c (syms_from_objfile): Return immediately if no syms.
11088 (symbol_file_add): Return immediately if no syms.
11089 (find_sym_fns): Return immediately if no syms.
11090
11091 2002-03-13 Michal Ludvig <mludvig@suse.cz>
11092
11093 * gdbserver/remote-util.c (remote_open): Print remote-side's
11094 IP address when remote debugging over the network.
11095
11096 2002-03-12 David O'Brien <obrien@FreeBSD.org>
11097
11098 * config/sparc/fbsd.mh: Fix copyright.
11099 * config/sparc/fbsd.mt: Likewise.
11100
11101 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
11102
11103 * MAINTAINERS: Fix typo in name of gdb warnings option.
11104 (x86-64): Fix formating so that this can be parsed by awk.
11105
11106 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11107
11108 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11109 * defs.h: Include "gdb/signals.h".
11110 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11111
11112 2002-03-10 Michal Ludvig <mludvig@suse.cz>
11113
11114 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
11115 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
11116 from x86-64-tdep.h
11117
11118 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
11119 Don Howard <dhoward@redhat.com>
11120
11121 * mips-tdep.c (ST0_FR): Define.
11122 (mips2_fp_compat): New function, temporarily disabled.
11123 (mips_read_fp_register_single): New function.
11124 (mips_read_fp_register_double): New function.
11125 (mips_print_register): Use them.
11126 (do_fp_register_row): Likewise.
11127
11128 2002-03-09 Andrew Cagney <ac131313@redhat.com>
11129
11130 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11131 approval''.
11132
11133 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11134
11135 * stabsread.c (read_member_functions): Fix is_stub test for
11136 static member functions, improve comment.
11137
11138 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
11139
11140 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11141 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11142 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11143 commands that set boolean values.
11144 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11145 (arm_rdi_resume): Always initialize PC.
11146 (arm_rdi_open): Don't use rslt as a boolean.
11147 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11148 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11149 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11150 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11151
11152 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
11153
11154 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11155 * configure: Rebuilt.
11156
11157 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
11158
11159 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11160 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11161
11162 2002-03-06 Andrew Cagney <ac131313@redhat.com>
11163
11164 * cli/cli-decode.c (set_cmd_completer): New function.
11165 * command.h (set_cmd_completer): Declare.
11166 * cli/cli-decode.h (set_cmd_completer): Ditto.
11167
11168 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11169 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11170 * win32-nat.c (_initialize_inftarg): Ditto.
11171 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11172 * proc-api.c (_initialize_proc_api): Ditto.
11173 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11174 * source.c (_initialize_source): Ditto.
11175 * exec.c (_initialize_exec): Ditto.
11176 * solib.c (_initialize_solib): Ditto.
11177 * top.c (init_main): Ditto.
11178 * tracepoint.c (_initialize_tracepoint): Ditto.
11179 * symfile.c (_initialize_symfile): Ditto.
11180 * printcmd.c (_initialize_printcmd): Ditto.
11181 * infcmd.c (_initialize_infcmd): Ditto.
11182 * corefile.c (_initialize_core): Ditto.
11183
11184 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11185
11186 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11187
11188 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11189
11190 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11191
11192 2002-03-05 Andrew Cagney <ac131313@redhat.com>
11193
11194 * NEWS: Update headings, 5.2 has branched.
11195
11196 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
11197
11198 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11199 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11200 (register_addr, REGISTER_RAW_SIZE): Likewise.
11201 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11202 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11203
11204 2002-03-03 Michal Ludvig <mludvig@suse.cz>
11205
11206 * MAINTAINERS (x86-64): Add myself.
11207 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11208 changed value_ptr -> struct value *
11209
11210 2002-03-01 David O'Brien <obrien@FreeBSD.org>
11211
11212 * configure.host (sparc64-*-freebsd): Add.
11213 * configure.tgt: Likewise.
11214 * config/sparc/fbsd.mh: New file.
11215 * config/sparc/fbsd.mt: Likewise.
11216 * config/sparc/nm-fbsd.h: Likewise.
11217 * config/sparc/tm-fbsd.h: Likewise.
11218
11219 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
11220
11221 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11222 regformats/reg-s390x.dat.
11223
11224 2002-03-01 Andrew Cagney <ac131313@redhat.com>
11225
11226 * utils.c: Add FIXME explaining true/false problem.
11227
11228 2002-02-28 Andrew Cagney <ac131313@redhat.com>
11229
11230 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11231
11232 2002-02-28 Michael Chastain <mec@shout.net>
11233
11234 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11235
11236 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
11237
11238 * gdbserver/linux-s390-low.c: New file.
11239 * regformats/reg-s390.dat: New file.
11240 * regformats/reg-s390x.dat: New file.
11241 * gdbserver/configure.srv: Add S/390.
11242 * gdbserver/Makefile.in: Add S/390.
11243 * configure.tgt: Enable gdbserver for S/390.
11244
11245 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
11246
11247 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11248 first line of the doc string for "info dos", except at the end of
11249 the sentence, since the short help stops at the first period.
11250
11251 2002-02-28 Jason Merrill <jason@redhat.com>
11252
11253 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11254
11255 2002-02-27 Fred Fish <fnf@redhat.com>
11256
11257 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11258 comment (dumy -> dummy).
11259
11260 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11261
11262 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11263
11264 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
11265
11266 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11267
11268 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11269
11270 * gdbserver/acconfig.h: New file.
11271 * gdbserver/i387-fp.c: New file.
11272 * gdbserver/i387-fp.h: New file.
11273 * gdbserver/linux-x86-64.c: New file.
11274 * regformats/reg-x86-64.dat: New file.
11275 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11276 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11277 * gdbserver/configure.in: Add support for regsets.
11278 * gdbserver/config.in: Regenerate.
11279 * gdbserver/configure: Regenerate.
11280 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11281 * gdbserver/linux-low.h: New file.
11282 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11283 for regsets.
11284 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11285 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11286 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11287 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11288 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11289 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11290 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11291 "i387-fp.h". Add PTRACE_GETREGS and friends.
11292 * gdbserver/regcache.c (supply_register): New function.
11293 (supply_register_by_name): New function.
11294 (collect_register): New function.
11295 (collect_register_by_name): New function.
11296
11297 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11298
11299 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11300 (config.status): Add configure.srv dependency.
11301 (server_h): Add config.h dependency.
11302
11303 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
11304
11305 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11306 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11307 * gdbserver/configure.srv: Change i386-*-linux* to use
11308 reg-i386-linux.o.
11309
11310 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11311
11312 * x86-64-tdep.c: Re-indent. Update copyright date.
11313
11314 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11315
11316 From Michal Ludvig <mludvig@suse.cz>:
11317 * x86-64-tdep.c (value.h): Delete.
11318 (gdb_assert.h): Include.
11319 (x86_64_register_convert_to_virtual,
11320 x86_64_register_convert_to_raw ): Add check which lets only
11321 floating-point values to be converted.
11322 (value_push): Delete.
11323 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11324 (i386_gdbarch_init): Number of register_bytes fixed.
11325
11326 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11327
11328 * MAINTAINERS: Add x86-64 target.
11329
11330 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11331
11332 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11333 * osfsolib.c (solib_map_sections): Ditto.
11334 * irix5-nat.c (solib_map_sections): Ditto.
11335 * corelow.c (gdb_check_format): Ditto.
11336 * symfile.c (symfile_bfd_open): Ditto.
11337 * solib.c (solib_map_sections): Ditto.
11338 Fix PR gdb/354.
11339
11340 2002-02-26 Andrew Cagney <ac131313@redhat.com>
11341
11342 * remote.c (_initialize_remote): By default, disable ``e'' and
11343 ``E'' step out-of-range packets.
11344
11345 2002-02-26 Andreas Schwab <schwab@suse.de>
11346
11347 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11348 m68k_linux_frame_saved_pc.
11349 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11350 in_sigtramp.
11351 (SIGCONTEXT_PC_OFFSET): Remove.
11352 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11353 m68k_linux_sigtramp_saved_pc): New functions.
11354 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11355 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11356 (UCONTEXT_PC_OFFSET): Define.
11357 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11358 non-RT and RT signal trampolines.
11359
11360 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
11361
11362 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11363 (TARGET_NBPG, STACK_END_ADDR): Delete
11364 (VARIABLES_INSIDE_BLOCK): Delete.
11365
11366 2002-02-25 Andrew Cagney <ac131313@redhat.com>
11367
11368 * utils.c (perror_with_name): Make string parameter constant.
11369 (print_sys_errmsg): Ditto.
11370 (query): Ditto.
11371 * defs.h (perror_with_name): Update.
11372 (print_sys_errmsg): Update.
11373 (query): Update.
11374
11375 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
11376
11377 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
11378 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11379
11380 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11381
11382 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11383 if it already matches the current architecture from the exec file.
11384 Include arch-utils.h for gdbarch_info_init prototype.
11385 * Makefile.in (rs6000-nat.o): Update dependencies.
11386
11387 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
11388
11389 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11390 list of exported variables.
11391
11392 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
11393
11394 * gdbserver/configure.srv: New file.
11395 * gdbserver/configure.in: Use configure.srv instead
11396 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11397 from it.
11398 * gdbserver/configure: Regenerated.
11399 * gdbserver/terminal.h: New file.
11400 * gdbserver/Makefile.in: Update for configure changes. Remove
11401 more unneeded include paths.
11402
11403 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11404
11405 From wiz at danbala:
11406 * config/sparc/tm-sp64.h: Fix grammar and typos.
11407 Fix PR gdb/287.
11408
11409 2002-02-24 Andrew Cagney <ac131313@redhat.com>
11410
11411 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
11412 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11413 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11414 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
11415 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11416 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11417 * s390-tdep.c: Ditto.
11418 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11419 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11420 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11421 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11422 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11423 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11424 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11425 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11426 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11427 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
11428 Fix PR gdb/378.
11429
11430 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11431
11432 * lin-thread.c: Delete file.
11433 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11434 to gdb_proc_service.h.
11435 * configure: Re-generate.
11436
11437 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11438 * serial.c (serial_open): Delete check for "ocd".
11439 Fix PR gdb/349.
11440
11441 * Makefile.in (linux-thread.o): Delete target.
11442 * linux-thread.c: Delete file.
11443
11444 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11445 renamed SH files to be consistent.
11446
11447 * symtab.c (sort_search_symbols): Use xfree.
11448
11449 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11450
11451 * arm-linux-tdep.c (arm_linux_init_abi): Register
11452 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11453 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11454 definition with undef, since we don't want the sysvr4 definition.
11455 (SKIP_TRAMPOLINE_CODE): Likewise.
11456
11457 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11458
11459 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
11460
11461 * configure.in: (AC_CHECK_FUNCS) Added test for
11462 canonicalize_file_name Regenerated.
11463 * config.in, configure: Regenerated.
11464 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11465 defined use canonicalize_file_name.
11466
11467 2002-02-23 Michael Chastain <mec@shout.net>
11468
11469 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11470
11471 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11472
11473 * README: Remove references to cygnus.com.
11474 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11475 dot com'' form. Remove references to cygnus.com and sourceware.
11476
11477 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11478
11479 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
11480 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11481 1003.1-2001 no longer allows "head -1".
11482 * gdb/Makefile.in (version.c): Likewise.
11483 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11484 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11485 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11486
11487 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11488
11489 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11490 * command.h (cmd_cfunc_eq): Declare.
11491 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11492
11493 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11494 ``struct cmd_list_element *''.
11495 * cli/cli-cmds.c (is_complete_command): Update. Use
11496 cmd_cfunc_eq.
11497 * top.c (execute_command): Pass the command to
11498 is_complete_command.
11499 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11500
11501 2002-02-23 Andrew Cagney <ac131313@redhat.com>
11502
11503 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
11504 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
11505 architecture defines.
11506 * s390-tdep.c (s390_gdbarch_init): Likewise.
11507
11508 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11509
11510 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
11511 (arm_linux_push_arguments): Likewise.
11512 (arm_linux_init_abi): Register them. Also register linux-specific
11513 call_dummy_words.
11514 (find_minsym_and_objfile): Use strcmp, not STREQ.
11515 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
11516 (arm_linux_call_dummy_words): Delete declaration.
11517 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
11518 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
11519 declarations.
11520 (LOWEST_PC): Delete.
11521
11522 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11523
11524 * maint.c (print_section_info): Do not prepend `0x' to filepos
11525 output, it will be handled by local_hex_string_custom.
11526
11527 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
11528
11529 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
11530 (store_newfpe_double, store_newfpe_extended, store_fpregister)
11531 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
11532
11533 2002-02-22 Jim Blandy <jimb@redhat.com>
11534
11535 Indicate that the bcache functions don't change the strings
11536 they're passed.
11537 * bcache.h (bcache, hash): Add `const' keywords to declarations.
11538 * bcache.c (bcache, hash): Add `const' keywords to definitions.
11539
11540 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
11541
11542 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
11543
11544 2002-02-21 Christopher Faylor <cgf@redhat.com>
11545
11546 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
11547 find the complete path to a loaded DLL.
11548
11549 2002-02-21 Fred Fish <fnf@redhat.com>
11550
11551 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
11552 that marks the end of the range of a function, enter a line number
11553 entry that has a line number of zero and a PC offset that matches
11554 the end of the function. This starts a range of PC's for which no
11555 line number information is known.
11556 * symtab.c (find_pc_sect_line): If our best fit is in a range of
11557 PC's for which no line number info is found (line number is zero)
11558 then we didn't find any valid line information.
11559 * symtab.h: Document use of zero line number entry.
11560
11561 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
11562
11563 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
11564 (have_ptrace_getvrregs): Define for run time checks.
11565 (gdb_vrregset_t): New type for Altivec register handling.
11566 (fetch_register, store_register): Fetch/store altivec register
11567 when needed.
11568 (fetch_altivec_register, store_altivec_register): New functions.
11569 (supply_vrregset, fill_vrregset): New functions.
11570 (fetch_altivec_registers, store_altivec_registers): New functions.
11571 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
11572 registers as well.
11573
11574 2002-02-21 Jiri Smid <smid@suse.cz>
11575
11576 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
11577
11578 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11579
11580 * Makefile.in (armnbsd-nat.o): Update dependencies.
11581 * armnbsd-nat.c (supply_gregset): New function. Common code to
11582 supply the integer register set.
11583 (supply_fparegset): New function. Similar for FPA registers.
11584 (fetch_regs, fetch_fp_regs): Use them.
11585 (fetch_core_registers): Likewise.
11586 (fetch_elfcore_registers): New function.
11587 (arm_netbsd_elfcore_fns): New core-file type specification.
11588 (_initialize_arm_netbsd_nat): Register it.
11589
11590 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
11591
11592 * armnbsd-nat.c: Include gdbcore.h.
11593 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
11594 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
11595 'void' to declaration, to shut up ARI.
11596 (fetch_core_registers): Make static. Rewrite using supply_register.
11597 (arm_netbsd_core_fns): New core-file type specification.
11598 (_initialize_arm_netbsd_nat): New function.
11599
11600 2002-02-21 Christopher Faylor <cgf@redhat.com>
11601
11602 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
11603 value.
11604
11605 2002-02-20 Christopher Faylor <cgf@redhat.com>
11606
11607 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
11608 fails.
11609
11610 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11611
11612 * jv-exp.y (parse_number): Change type of implicit longs
11613 to builtin_type_uint64.
11614
11615 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11616
11617 * gdbserver/linux-low.c (mywait): Change argument to waitpid
11618 to be an integer instead of a `union wait'.
11619
11620 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11621
11622 * mips-linux-nat.c: Call the operating system GNU/Linux.
11623 * mips-linux-tdep.c: Likewise.
11624 * mips-tdep.c: Likewise.
11625
11626 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11627
11628 Fix PR gdb/265.
11629 * jv-exp.y (parse_number): Handle 64-bit integers.
11630
11631 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
11632
11633 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
11634 AC_STDC_HEADERS to AC_HEADER_STDC.
11635 * gdbserver/configure: Regenerated.
11636
11637 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11638
11639 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
11640 is defined.
11641 * sparc-tdep.c (get_longjmp_target): Likewise.
11642
11643 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
11644
11645 * News: Add news about ARM and Multi-arch. Mention the new target
11646 arm*-*-netbsd*.
11647
11648 2002-02-19 Jim Blandy <jimb@redhat.com>
11649
11650 * stabsread.c (error_type_complaint): Improve error message.
11651
11652 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
11653
11654 * gdbserver/README: Update documentation.
11655 * gdbserver/configure.in: Update configury to match documentation.
11656 * gdbserver/Makefile.in: Likewise.
11657 * gdbserver/configure: Regenerated.
11658 * gdbserver/aclocal.m4: New file, generated by aclocal.
11659 * gdbserver/config.in: New file, generated by autoheader.
11660
11661 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11662
11663 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
11664 armnbsd-nat.c.
11665
11666 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11667
11668 * arm-tdep.h (enum arm_float_model): New enum.
11669 (struct gdbarch_tdep): Add fp_model.
11670 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
11671 up floating-point conversions until we know the floating-point model
11672 in use by the inferior. Don't complain about being unable to
11673 determine the ABI of the inferior when we don't have one.
11674 (arm_extract_return_value): Support different floating-point models.
11675 (arm_store_return_value): Likewise.
11676 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
11677 ARM_FLOAT_SOFT.
11678 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
11679
11680 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11681
11682 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
11683 of ``current_gdbarch''.
11684
11685 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11686
11687 * armnbsd-nat.c : ANSIfy all function declarations.
11688 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
11689 (fetch_inferior_registers): Re-implement in terms of above.
11690 (store_register, store_regs, store_fp_register, store_fp_regs): New.
11691 (store_inferior_registers): Re-implement in terms of above.
11692
11693 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11694
11695 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
11696 kernel.
11697 * arm-linux-tdep.c: Likewise.
11698 * config/arm/tm-linux.h: Likewise.
11699
11700 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11701
11702 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
11703 * config/arm/nbsd.mt (TM_FILE): Delete.
11704 * config/arm/tm-nbsd.h: Delete.
11705
11706 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11707
11708 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
11709 Initialize CALL_DUMMY_LENGTH.
11710
11711 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
11712
11713 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
11714 function.
11715 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
11716 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
11717 defines one thing and that is incorrect for this port.
11718 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
11719
11720 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11721
11722 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
11723
11724 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
11725
11726 * win32-nat.c (display_selector): New function. Displays information
11727 about the information returned by GetThreadSelectorEntry API function.
11728 (display_selectors): New function. Displays the infomation of
11729 the selector given as argument, or of CS, DS ans FS selectors
11730 if no argument is given.
11731 ( _initialize_inftarg): Add "w32" as info prefix command.
11732 Add "info w32 selector" as command calling display_selectors.
11733
11734 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
11735
11736 * i386-tdep.c (get_longjmp_target): Fix compilation failure
11737 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
11738 if not defined.
11739
11740 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11741
11742 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
11743
11744 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11745
11746 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
11747 (arm_fix_call_dummy): Call it.
11748 (arm_call_dummy_breakpoint_offset): Delete.
11749 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
11750 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11751
11752 2002-02-18 Andrew Cagney <ac131313@redhat.com>
11753
11754 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
11755 Default to func_frame_chain_valid.
11756 * gdbarch.h, gdbarch.c: Re-generate.
11757 * frame.h (FRAME_CHAIN_VALID): Delete definition.
11758
11759 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
11760
11761 * ppc-linux-nat.c: Update copyright.
11762 (fetch_register, store_register): Add tid parameter, don't compute
11763 tid here.
11764 (fetch_ppc_registers, store_ppc_registers): Add tid
11765 parameter. Pass it along to callees.
11766 (fetch_inferior_registers, store_inferior_registers): Compute tid
11767 here, and pass it to calleed functions.
11768 (fill_gregset, supply_fpregset): Clean up formatting.
11769
11770 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11771
11772 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
11773 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
11774
11775 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
11776
11777 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
11778 * gdbarch.c gdbarch.h: Regenerate.
11779 * breakpoint.c (create_longjmp_breakpoint): Always compile this
11780 function.
11781 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
11782 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
11783 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
11784
11785 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
11786 * arm-tdep.c (arm_get_longjmp_target): New function.
11787 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
11788 this to a positive value register arm_get_longjmp_target as the
11789 longjmp handler.
11790 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
11791 (arm_linux_init_abi): Set up longjmp description in tdep.
11792 * armnbsd-nat.c (get_longjmp_target): Delete.
11793 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
11794 description in tdep.
11795 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
11796 (get_longjmp_target): Delete declaration.
11797 (GET_LONGJMP_TARGET): Delete.
11798 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
11799 (GET_LONGJMP_TARGET): Delete.
11800
11801 2002-02-17 Kevin Buettner <kevinb@redhat.com>
11802
11803 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
11804 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
11805 of ``current_gdbarch''.
11806
11807 2002-02-17 Tom Tromey <tromey@redhat.com>
11808
11809 * cli/cli-cmds.c (compare_strings): New function.
11810 (complete_command): Only print each unique item once.
11811 * completer.h (complete_line): Declare.
11812 * completer.c (complete_line): New function.
11813 (line_completion_function): Use it.
11814
11815 2002-02-16 Andrew Cagney <ac131313@redhat.com>
11816
11817 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
11818 * gdbarch.h, gdbarch.c: Re-generate.
11819
11820 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11821
11822 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
11823
11824 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
11825
11826 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
11827 * valops.c (value_arg_coerce): Don't take the address of a reference
11828 to convert an argument to a reference.
11829
11830 2002-02-15 Christopher Faylor <cgf@redhat.com>
11831
11832 * win32-nat.c (get_image_name): New function.
11833 (handle_load_dll): Use get_image_name function.
11834 (get_child_debug_event): Avoid registering debug events until possibly
11835 execed process is started.
11836 (child_create_inferior): Allow invocation via shell so that command
11837 line redirection, etc. works ok.
11838 (_initialize_inftarg): Add new command: "set shell" to control whether
11839 a shell is used to start a process.
11840
11841 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11842
11843 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
11844 instead of find_register_by_number.
11845 (cannot_store_register): Likewise.
11846
11847 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
11848
11849 * dwarf2read.c: Replace fprintf (stderr, ...) by
11850 fprintf_unfiltered (gdb_stderr, ...).
11851
11852 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
11853
11854 * gdbserver/gdbserver.1: Document --attach.
11855
11856 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11857
11858 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
11859 descriptions.
11860 * arm-tdep.c (arm_default_arm_le_breakpoint)
11861 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
11862 (arm_default_thumb_be_breakpoint): New. Initialize them from
11863 traditional breakpoint defines.
11864 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
11865 (arm_gdbarch_init): Initialize new breakpoint variables.
11866 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
11867 (arm_linux_init_abi): Initialize linux-specific breakpoint.
11868 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
11869 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
11870 code out to ...
11871 (arm_netbsd_init_abi_common): ... here; new function.
11872 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
11873 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
11874 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
11875 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
11876
11877 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
11878
11879 * arm-tdep.h (enum arm_abi): New enum.
11880 (struct gdbarch_tdep): New structure.
11881 (LOWEST_PC): Provide a default.
11882 (arm_gdbarch_register_os_abi): Declare new function.
11883 * arm-tdep.c (arm_abi_names): New array.
11884 (process_note_abi_tag_sections): New function.
11885 (get_elfosabi): New function.
11886 (arm_gdbarch_register_os_abi): New function.
11887 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
11888 support for that ABI has been built in, then call the appropriate
11889 configuration routine. Use gdbarch_num_regs() to get the number
11890 of registers.
11891 (arm_dump_tdep): New function.
11892 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
11893 place-holder functions.
11894 (_initialize_arm_tdep): Register them.
11895 * config/arm/tm-arm.h (LOWEST_PC): Delete.
11896
11897 * armnbsd-tdep.c: New file.
11898 * Makefile.in (armnbsd-tdep.o): Add dependencies.
11899 * config/arm/nbsd.mt (TDEPFILES): Add it.
11900 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
11901
11902 * armnbsd-nat.c: Include regcache.h.
11903 * Makefile.in (armnbsd-nat.o): Update dependency list.
11904
11905 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
11906
11907 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11908
11909 * gdbserver/Makefile.in: Fix typos in target rules.
11910
11911 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11912
11913 Fix part of PR gdb/267.
11914 * linespec.c (find_methods): Handle constructors specially for now.
11915
11916 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
11917
11918 * arm-tdep.c (arm_push_arguments): Eliminate special float type
11919 handling.
11920 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
11921 standard_coerce_float_to_double().
11922
11923 2002-02-14 Christopher Faylor <cgf@redhat.com>
11924
11925 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
11926 GDBINIT_FILENAME.
11927
11928 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
11929
11930 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
11931 find_variant_by_name, because it confuses the multiarch
11932 framework. Return NULL if there isn't an architecture with the
11933 user supplied name, instead of forcing a different one without
11934 recording the change with the multiarch machinery.
11935 (find_variant_by_name): Delete.
11936
11937 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
11938
11939 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
11940 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
11941
11942 2002-02-13 Martin M. Hunt <hunt@redhat.com>
11943
11944 * stack.c (print_frame_info_base): When calling
11945 print_frame_info_listing_hook, set current_source_symtab.
11946
11947 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11948
11949 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
11950 and remove unused $(INCLUDE_DIR).
11951 Add regcache.c to OBS.
11952 Add generated register protocol files to clean target.
11953 Update dependencies for new objects, obsolete old target code.
11954
11955 * gdbserver/linux-low.c: Remove all platform-specific code to
11956 new files. Remove various dead code. Update to use regcache
11957 functionality.
11958 * gdbserver/remote-utils.c (fromhex): Add return statement
11959 to quiet warning.
11960 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
11961 constant.
11962 (input_interrupt): Add integer parameter to match prototype
11963 of a signal handler.
11964 (outreg): Use register_data ().
11965 (prepare_resume_reply): Use gdbserver_expedite_regs.
11966 * gdbserver/server.c (main): Dynamically allocate own_buf because
11967 PBUFSIZ is no longer constant. Use registers_to_string () and
11968 registers_from_string ().
11969 * gdbserver/server.h: No longer include "defs.h". Add prototypes
11970 for error (), fatal (), and warning (). Update definition of
11971 PBUFSIZ to use regcache functionality. Add include guard.
11972 * gdbserver/utils.c (fatal): Add missing ``const''.
11973 (warning): New function.
11974
11975 * regformats/regdat.sh: Include "regcache.h" in generated files.
11976 Provide init_registers () function.
11977 * regformats/regdef.h: Add prototype for set_register_cache ().
11978 Add include guard.
11979
11980 * gdbserver/linux-arm-low.c: New file.
11981 * gdbserver/linux-i386-low.c: New file.
11982 * gdbserver/linux-ia64-low.c: New file.
11983 * gdbserver/linux-m68k-low.c: New file.
11984 * gdbserver/linux-mips-low.c: New file.
11985 * gdbserver/linux-ppc-low.c: New file.
11986 * gdbserver/linux-sh-low.c: New file.
11987
11988 * gdbserver/regcache.c: New file.
11989 * gdbserver/regcache.h: New file.
11990
11991 * gdbserver/low-linux.c: Removed obsolete file.
11992
11993 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
11994
11995 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
11996 * config/i386/linux.mt: Likewise.
11997 * config/ia64/linux.mt: Likewise.
11998 * config/m68k/linux.mh: Likewise.
11999 * config/powerpc/linux.mh: Likewise.
12000 * config/mips/linux.mt: Likewise.
12001
12002 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12003
12004 * config/i386/i386lynx.mh: Mark gdbserver variables
12005 as (currently) obsolete for this target.
12006 * config/i386/nbsd.mt: Likewise.
12007 * config/i386/nbsdelf.mt: Likewise.
12008 * config/m32r/m32r.mt: Likewise.
12009 * config/m68k/m68klynx.mh: Likewise.
12010 * config/m68k/nbsd.mt: Likewise.
12011 * config/m68k/sun3os4.mh: Likewise.
12012 * config/mips/vr5000.mt: Likewise.
12013 * config/ns32k/nbsd.mt: Likewise.
12014 * config/pa/hppabsd.mh: Likewise.
12015 * config/pa/hppaosf.mh: Likewise.
12016 * config/powerpc/nbsd.mt: Likewise.
12017 * config/rs6000/rs6000lynx.mh: Likewise.
12018 * config/s390/s390.mt: Likewise.
12019 * config/s390/s390x.mt: Likewise.
12020 * config/sparc/sparclynx.mh: Likewise.
12021 * config/sparc/sun4os4.mh: Likewise.
12022 * config/i386/x86-64linux.mt: Likewise.
12023 * config/sparc/linux.mh: Likewise.
12024
12025 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
12026
12027 * configure.tgt: Configure gdbserver only for known working
12028 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12029 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12030 SUBDIRS if it is configured. Update comment for ${nativefile}.
12031 * configure: Regenerated.
12032
12033 2002-02-13 Michael Snyder <msnyder@redhat.com>
12034
12035 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12036
12037 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12038 (default_gcore_mach): Just return 0, work around a problem in bfd.
12039 (default_gcore_target): OK to return NULL if exec_bfd is null.
12040 (make_mem_sec): Use a cast, avoid a warning.
12041
12042 * procfs.c (find_memory_regions_callback): Use a cast instead of
12043 calling host_pointer_to_address (which complains if
12044 sizeof (host pointer) != sizeof (target pointer)).
12045 (procfs_make_note_section): Avoid overflow in psargs string.
12046
12047 * procfs.c (procfs_make_note_section): Make the default
12048 implementation return an error.
12049
12050 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
12051
12052 * procfs.c (procfs_make_note_section): Provide a default definition
12053 (for alpha-dec-osf4.0f). Fix typos.
12054
12055 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
12056
12057 * linux-proc.c: Add include of regcache.h.
12058 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12059
12060 2002-02-13 Andrew Cagney <ac131313@redhat.com>
12061
12062 From 2002-01-18 Greg McGary <greg@mcgary.org>:
12063 * memattr.c (create_mem_region): Disallow useless empty region.
12064 Regions are half-open intervals, so allow [A..B) [B..C) as
12065 non-overlapping.
12066
12067 2002-02-13 Michael Chastain <mec@shout.net>
12068
12069 * defs.h: Kill CONST_PTR.
12070 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12071 * c-lang.c (c_builtin_types): Likewise.
12072 * ch-lang.c (ch_builtin_types): Likewise.
12073 * f-lang.c (f_builtin_types): Likewise.
12074 * language.c (unknown_builtin_types): Likewise.
12075 * m2-lang.c (m2_builtin_types): Likewise.
12076 * p-lang.c (pascal_builtin_types): Likewise.
12077 * scm-lang.c (c_builtin_types): Likewise.
12078
12079 2002-02-13 Keith Seitz <keiths@redhat.com>
12080
12081 * arm-tdep.h (arm_get_next_pc): Add declaration.
12082
12083 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
12084
12085 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12086 with other related struct-returning functions.
12087 (arm_extract_struct_value_address): New function.
12088 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12089 initialize float_format, double_format and long_double_format as
12090 appropriate to the endianness of the target.
12091 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12092 (arm_use_struct_convention): Delete declaration.
12093 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12094
12095 2002-02-13 Keith Seitz <keiths@redhat.com>
12096
12097 * defs.h (core_addr_to_string_nz): New function.
12098
12099 2002-02-13 Mark Kettenis <kettenis@gnu.org>
12100
12101 Apply missing bits of 2002-01-15 patch.
12102 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12103 (fill_fpregset): Use i387_fill_fsave.
12104
12105 2002-02-12 Keith Seitz <keiths@redhat.com>
12106
12107 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12108 (core_addr_to_string_nz): New function.
12109
12110 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12111
12112 * arm-linux-nat.c: Really include arm-tdep.h.
12113 * config/arm/tm-linux.h (struct type, struct value): Declare.
12114
12115 2002-02-11 Michael Snyder <msnyder@redhat.com>
12116
12117 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12118 (gcore section): Ifdef for Solaris and Unixware only.
12119 (procfs_do_thread_registers): Unixware needs one lwpstatus
12120 per thread (not one prstatus or pstatus).
12121 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12122 not over all gdb threads. For unixware, call elfcore_write_pstatus
12123 once before iterating over threads.
12124
12125 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12126
12127 * arm-tdep.h: New file.
12128 * arm-tdep.c: Include arm-tdep.h.
12129 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12130 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12131 (arm_print_float_info, arm_register_type, convert_to_extended)
12132 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12133 (arm_extract_return_value, arm_register_name): Make static.
12134 (arm_software_single_step): Similarly. Fix types in declaration.
12135 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12136 (arm_store_return_value, arm_store_struct_return): New functions.
12137 (arm_gdbarch_init): Register the above functions. Also register
12138 call_dummy_start_offset, sizeof_call_dummy_words,
12139 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12140 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
12141 max_register_virtual_size, register_size. Set up
12142 prologue_cache.saved_regs here, rather than ...
12143 (_initialize_arm_tdep): ... here.
12144 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12145 declarations.
12146 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12147 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12148 (arm_print_float_info, arm_register_type, convert_to_extended)
12149 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12150 (arm_extract_return_value, arm_register_name): Delete declarations.
12151 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12152 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12153 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12154 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12155 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12156 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12157 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12158 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12159 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12160 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12161 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12162 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12163 interface.
12164 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12165 * remote-rdi.c remote-rdp.c: Likewise.
12166 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12167 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12168 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12169 definition.
12170
12171 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12172 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12173 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12174 from non-ARM_ prefixed definitions.
12175 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12176 all uses of above.
12177 * remote-rdi.c remote-rdp.c: Likewise.
12178 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12179
12180 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
12181
12182 * arm-tdep.c (arm_frameless_function_invocation)
12183 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12184 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12185 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12186 (arm_pop_frame, arm_get_next_pc): Make static.
12187 (arm_gdbarch_init): Register above in gdbarch structure.
12188 (arm_read_fp): Renamed from arm_target_read_fp.
12189 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12190 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12191 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12192 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12193 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12194 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12195 (arm_pc_is_thumb_dummy): Delete declarations.
12196 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12197 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12198 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12199 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
12200
12201 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
12202
12203 * symtab.c (compare_search_syms): New function.
12204 (sort_search_symbols): New function.
12205 (search_symbols): Sort symbols after searching rather than
12206 before.
12207
12208 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12209
12210 * NEWS: Linux -> GNU/Linux.
12211
12212 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12213
12214 * gdbarch.sh: For for level one methods, disallow a definition
12215 when partially multi-arched. Add comments explaining rationale.
12216 * gdbarch.h: Re-generate.
12217
12218 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12219
12220 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12221 multi-arch partial.
12222
12223 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12224
12225 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12226 field. Use diff -u.
12227 * gdbarch.c: Re-generate.
12228
12229 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12230
12231 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
12232 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12233 partial.
12234
12235 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12236
12237 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12238 multi-arch partial.
12239 (PUSH_ARGUMENTS): Switch to using predefault.
12240 * gdbarch.c: Regenerate.
12241
12242 2002-02-10 Andrew Cagney <ac131313@redhat.com>
12243
12244 * valops.c (PUSH_ARGUMENTS): Delete definition.
12245 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12246 partial. Default to default_push_arguments.
12247 * gdbarch.h, gdbarch.c: Regenerate.
12248
12249 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12250
12251 * defs.h (throw_exception): Rename return_to_top_level. Update
12252 comments.
12253 * utils.c (error_stream, internal_verror, quit): Ditto.
12254 * top.c (throw_exception, catcher): Ditto.
12255 * sparclet-rom.c (sparclet_load): Ditto.
12256 * remote.c (interrupt_query, minitelnet): Ditto.
12257 * remote-sds.c (interrupt_query): Ditto.
12258 * remote-mips.c (mips_error, mips_kill): Ditto.
12259 * ocd.c (interrupt_query): Ditto.
12260 * monitor.c (monitor_interrupt_query): Ditto.
12261 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12262 * target.h: Update comment.
12263
12264 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
12265
12266 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12267
12268 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12269 default_double_format.
12270 * gdbarch.h, gdbarch.c: Re-generate.
12271 * findvar.c (floatformat_unknown): Delete variable definition.
12272 * doublest.h (floatformat_unknown): Delete variable declaration.
12273
12274 2002-02-09 Jim Blandy <jimb@redhat.com>
12275
12276 * stabsread.c (read_type): Add code to parse Sun's syntax for
12277 prototyped function types.
12278
12279 2002-02-09 Andrew Cagney <ac131313@redhat.com>
12280
12281 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12282 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12283
12284 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12285
12286 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12287 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12288 now _initialize_xcoffsolib gets called again and overrides the
12289 commands from solib.c in a native configuration.
12290
12291 2002-02-09 Mark Kettenis <kettenis@gnu.org>
12292
12293 * doublest.c (store_typed_floating): Don't try to return a value.
12294 Fixes PR gdb/290.
12295
12296 2002-02-08 Jim Blandy <jimb@redhat.com>
12297
12298 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12299 is prototyped and has no arguments, print its argument list as
12300 `(void)'.
12301
12302 2002-02-08 Chris Demetriou <cgd@broadcom.com>
12303
12304 * MAINTAINERS (write-after-approval): Add myself.
12305 (paper-trail): I've escaped!
12306
12307 2002-02-08 Christopher Faylor <cgf@redhat.com>
12308
12309 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12310 changes.
12311 (_initialize_check_for_gdb_ini): Ditto.
12312
12313 2002-02-08 Martin M. Hunt <hunt@redhat.com>
12314
12315 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12316 xaprintf -> xasprintf.
12317
12318 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
12319
12320 * win32-nat.c: Remove use of printf and sprintf functions.
12321
12322 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
12323
12324 * arm-tdep.c (arm_frame_chain_valid): Make static.
12325 (arm_push_arguments): Likewise.
12326 (arm_gdbarch_init): New function.
12327 (_initialize_arm_tdep): Call it.
12328 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12329 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12330 (FRAME_CHAIN_VALID): Delete.
12331 (arm_frame_chain_valid): Delete declaration.
12332 (PUSH_ARGUMENTS): Delete.
12333 (arm_push_arguments): Delete declaration.
12334 (CALL_DUMMY_P): Delete.
12335
12336 2002-02-08 Andrew Cagney <ac131313@redhat.com>
12337 Corinna Vinschen <vinschen@redhat.com>
12338
12339 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12340 on builtin float types.
12341
12342 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
12343
12344 * utils.c: Include <curses.h> before "bfd.h".
12345 * tui/tui-hooks.c: Likewise.
12346 * tui/tui.c: Likewise.
12347 * tui/tuiCommand.c: Likewise.
12348 * tui/tuiData.c: Likewise.
12349 * tui/tuiDataWin.c: Likewise.
12350 * tui/tuiDisassem.c: Likewise.
12351 * tui/tuiGeneralWin.c: Likewise.
12352 * tui/tuiIO.c: Likewise.
12353 * tui/tuiLayout.c: Likewise.
12354 * tui/tuiRegs.c: Likewise.
12355 * tui/tuiSource.c: Likewise.
12356 * tui/tuiSourceWin.c: Likewise.
12357 * tui/tuiStack.c: Likewise.
12358 * tui/tuiWin.c: Likewise.
12359
12360 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
12361
12362 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12363 to include space for pseudoregs as well. Update loops accordingly.
12364 (sh_fp_frame_init_saved_regs): Ditto.
12365 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12366
12367 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12368
12369 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12370 Add Richard Earnshaw to Arm maintainers.
12371
12372 2002-02-07 Andrew Cagney <ac131313@redhat.com>
12373
12374 * defs.h (warning_begin): Delete declaration.
12375
12376 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12377 Delete macro.
12378
12379 2002-02-07 Michael Snyder <msnyder@redhat.com>
12380
12381 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
12382 Logic bug, remove misplaced else.
12383
12384 2002-02-07 Klee Dienes <klee@apple.com>
12385
12386 * fork-inferior.c (fork_inferior): Add '!' to the list of
12387 characters that need to be quoted when building a string for the
12388 shell. Quote '!' specifically with a backslash, since CSH chokes
12389 when trying to evaluate "str!str".
12390
12391 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
12392
12393 * rdi-share/host.h: Only provide a typedef for bool if it is not
12394 defined.
12395
12396 2002-02-04 Michael Snyder <msnyder@redhat.com>
12397
12398 * breakpoint.h (enum bptype): Add new overlay event bp type.
12399 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
12400
12401 * breakpoint.c (create_internal_breakpoint): New function.
12402 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12403 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12404 (create_thread_event_breakpoint): Ditto.
12405 (create_solib_event_breakpoint): Ditto.
12406 (create_overlay_event_breakpoint): New function.
12407 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12408 (update_breakpoints_after_exec): Delete and re-initialize
12409 overlay event breakpoints after an exec. Add FIXME comment
12410 about longjmp breakpoint.
12411 (print_it_typical): Ignore overlay event breakpoints.
12412 (print_one_breakpoint): Ditto.
12413 (mention): Ditto.
12414 (bpstat_what): Do not stop for overlay event breakpoints.
12415 (delete_breakpoint): Don't delete overlay event breakpoints.
12416 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12417 (breakpoint_re_set): Re-create overlay event breakpoint.
12418
12419 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12420 (overlay_manual_command): Disable overlay breakpoints.
12421 (overlay_off_command): Disable overlay breakpoints.
12422
12423 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12424
12425 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12426 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12427 to here from config/tm-arm.h.
12428 (coff_sym_is_thumb): Make static.
12429 (arm_elf_make_msymbol_special): New function.
12430 (arm_coff_make_msymbol_special): New function.
12431 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12432 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12433 (coff_sym_is_thumb): Delete declaration.
12434 (arm_elf_make_msymbol_special): Declare.
12435 (arm_coff_make_msymbol_special): Declare.
12436 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12437 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12438
12439 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12440
12441 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12442
12443 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
12444
12445 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12446 * gdbarch.c gdbarch.h: Regenerate.
12447 * arch-utils.c (default_print_float_info): New function.
12448 * arch-utils.h (default_print_float_info): Prototype it.
12449 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12450 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12451 (PRINT_FLOAT_INFO): Document it.
12452
12453 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12454 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12455 (PRINT_FLOAT_INFO): Define.
12456
12457 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
12458
12459 * win32-nat.c (_initialize_check_for_gdb_ini):
12460 Add typecast to sprintf argument to suppress a warning.
12461
12462 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
12463
12464 * win32-nat.c (last_sig): Changed type of variable to target_signal,
12465 to allow easier handling of pass state.
12466 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12467 that gives exception name and address.
12468 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
12469 and set last_sig value to ourstatus->value.sig. Some missing
12470 exceptions added.
12471 (child_continue): Correctly report continue_status.
12472 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
12473 TARGET_SIGNAL_0 (new default value).
12474 (child_resume): consider sig argument passed to decide if
12475 the exception should be passed to debuggee or not.
12476
12477 2002-02-05 Michael Snyder <msnyder@redhat.com>
12478
12479 * regcache.c (fetch_register): Call target_fetch_register
12480 only if we don't call FETCH_PSEUDO_REGISTER.
12481 (store_register): Call target_store_register only if we
12482 don't call STORE_PSEUDO_REGISTER.
12483
12484 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
12485
12486 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12487 ELF_MAKE_MSYMBOL_SPECIAL.
12488 * gdbarch.c, gdbarch.h: Regenerate.
12489 * arch-utils.c (default_make_msymbol_special): New function.
12490 * arch-utils.h (default_make_msymbol_special): Export.
12491 * elfread.c (elf_symtab_read): Compile use of
12492 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12493 multiarched.
12494 * coffread.c (coff_symtab_read): Ditto, for
12495 COFF_MAKE_MSYMBOL_SPECIAL.
12496
12497 2002-02-05 Jim Blandy <jimb@redhat.com>
12498
12499 * solib-svr4.c (svr4_truncate_ptr): New function.
12500 (svr4_relocate_section_addresses): Do the address arithmetic with
12501 the appropriate truncation for target addresses, even when
12502 CORE_ADDR is larger than a target address.
12503
12504 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12505
12506 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
12507 to (int *).
12508
12509 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12510
12511 * gdbserver/linux-low.c (kill_inferior): Remove commented out
12512 code.
12513
12514 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12515
12516 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
12517
12518 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12519
12520 * gdbserver/linux-low.c: Remove unused include files.
12521
12522 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12523
12524 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
12525 (read_inferior_memory): Use it.
12526 (write_inferior_memory): Likewise.
12527
12528 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12529
12530 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
12531 grubbing through sys_errlist.
12532
12533 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
12534
12535 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
12536
12537 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12538 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
12539
12540 2002-02-04 Andrew Cagney <ac131313@redhat.com>
12541
12542 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
12543 (do_sfunc, set_cmd_sfunc): New functions.
12544
12545 * command.h (struct cmd_list_element): Add field func.
12546 * cli/cli-decode.h (struct cmd_list_element): Ditto.
12547 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
12548 * cli/cli-decode.h: Ditto.
12549
12550 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
12551 (help_all, help_cmd_list): Ditto.
12552 (find_cmd, complete_on_cmdlist): Ditto.
12553 * top.c (execute_command): Ditto.
12554
12555 * cli/cli-setshow.c (do_setshow_command): Call func instead of
12556 function.sfunc.
12557
12558 * infcmd.c (notice_args_read): Fix function signature.
12559
12560 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
12561 * cli/cli-decode.c (add_set_cmd): Ditto.
12562 * utils.c (initialize_utils): Ditto.
12563 * maint.c (_initialize_maint_cmds): Ditto.
12564 * infrun.c (_initialize_infrun): Ditto.
12565 * demangle.c (_initialize_demangler): Ditto.
12566 * remote.c (add_packet_config_cmd): Ditto.
12567 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12568 * cris-tdep.c (_initialize_cris_tdep): Ditto.
12569 * proc-api.c (_initialize_proc_api): Ditto.
12570 * kod.c (_initialize_kod): Ditto.
12571 * valprint.c (_initialize_valprint): Ditto.
12572 * top.c (init_main): Ditto.
12573 * infcmd.c (_initialize_infcmd): Ditto.
12574 * corefile.c (_initialize_core): Ditto.
12575 * arm-tdep.c (_initialize_arm_tdep): Ditto.
12576 * arch-utils.c (initialize_current_architecture): Ditto.
12577 (_initialize_gdbarch_utils): Ditto.
12578 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
12579
12580 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
12581 * wince.c (_initialize_inftarg): Ditto.
12582 * symfile.c (_initialize_symfile): Ditto.
12583 * mips-tdep.c (_initialize_mips_tdep): Ditto.
12584 * language.c (_initialize_language): Ditto.
12585 * arc-tdep.c (_initialize_arc_tdep): Ditto.
12586
12587 2002-02-04 Michael Snyder <msnyder@redhat.com>
12588
12589 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
12590
12591 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12592
12593 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
12594 Add rules for building the register data files.
12595
12596 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12597
12598 * regformats/regdat.sh: Add braces to the definition of
12599 expedite_regs_${arch}.
12600
12601 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
12602
12603 * regformats/regdef.h (struct reg): Add comment describing the
12604 requirements for offset and size fields.
12605
12606 2002-02-04 Andreas Schwab <schwab@suse.de>
12607
12608 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
12609 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
12610
12611 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
12612
12613 * gdbarch.sh (copyright): Update years in generated header.
12614 (SMASH_TEXT_ADDRESS): Add rule.
12615 * gdbarch.h, gdbarch.c: Re-generate.
12616 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
12617 * dbxread.c: Likewise.
12618 * dwarfread.c: Likewise.
12619 * elfread.c: Likewise.
12620 * somread.c: Likewise.
12621
12622 * arm-tdep.c (arm_smash_text_address): New function.
12623 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
12624
12625 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
12626
12627 Add support for hardware watchpoints on win32 native.
12628 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
12629 CONTEXT_DEBUG_REGISTERS.
12630 (dr variable): New variable. Static array containing a local copy
12631 of debug registers.
12632 (debug_registers_changed): New variable. Reflects when debug registers
12633 are changed and need to be written to inferior.
12634 (debug_registers_used): New variable. Reflects when any debug register
12635 was set, used when new threads are created.
12636 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
12637 i386-nat code.
12638 (thread_rec): Set dr array if id is the thread of current_event .
12639 (child_continue, child_resume): Change the debug registers for all
12640 threads if debug_registers_changed.
12641 (child_add_thread): Change the debug registers if debug_registers_used.
12642 * config/i386/cygwin.mh: Add use of i386-nat.o file.
12643 Link nm.h to new nm-cygwin.h file.
12644 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
12645 of hardware registers.
12646
12647 2002-02-03 Andrew Cagney <ac131313@redhat.com>
12648
12649 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
12650 Restore behavour broken by 2002-01-20 Andrew Cagney
12651 <ac131313@redhat.com> IEEE_FLOAT removal.
12652
12653 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12654
12655 * c-valprint.c (c_val_print): Pass a proper valaddr to
12656 cp_print_class_method.
12657 * valops.c (search_struct_method): If there is only one method
12658 and args is NULL, return that method.
12659
12660 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12661
12662 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
12663 accessing tag_name directly.
12664
12665 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12666
12667 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
12668 of accessing tag_name directly.
12669
12670 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
12671
12672 PR gdb/280
12673 * gdbtypes.c (replace_type): New function.
12674 * gdbtypes.h (replace_type): Add prototype.
12675 * stabsread.c (read_type): Use replace_type.
12676
12677 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
12678
12679 * Makefile.in (memattr.o): Add missing dependencies rule.
12680
12681 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12682
12683 * breakpoint.c (break_at_finish_command): Really export.
12684 (break_at_finish_at_depth_command): Ditto.
12685 (tbreak_at_finish_command): Ditto.
12686 * hppa-tdep.c: Include completer.h.
12687 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
12688 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
12689
12690 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12691
12692 * utils.c (do_write): New function.
12693 (error_stream): Rewrite combining the code from error_begin and
12694 verror.
12695 (verror): Rewrite using error_stream.
12696 (error_begin): Delete function.
12697
12698 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12699
12700 * utils.c (error_begin): Make static.
12701 * defs.h (error_begin): Delete declaration.
12702
12703 * linespec.c (cplusplus_error): Replace cplusplus_hint.
12704 (decode_line_1): Use cplusplus_error instead of error_begin,
12705 cplusplus_hint and return_to_top_level.
12706 * coffread.c (coff_symfile_read): Use error instead of error_begin
12707 and return_to_top_level.
12708 * infrun.c (default_skip_permanent_breakpoint): Ditto.
12709
12710 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12711
12712 * language.h (type_error, range_error): Make string parameter
12713 constant.
12714 * language.c (warning_pre_print): Delete extern declaration.
12715 * dwarfread.c (warning_pre_print): Ditto.
12716 * language.c (type_error, range_error): Rewrite to use verror and
12717 vwarning instead of warning_begin.
12718
12719 2002-02-01 Michael Snyder <msnyder@redhat.com>
12720
12721 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
12722 (set_ignore_count): Move misplaced comment back where it belongs.
12723
12724 2002-02-01 Andrew Cagney <ac131313@redhat.com>
12725
12726 * command.h (NO_FUNCTION): Delete macro.
12727 * cli/cli-decode.h (NO_FUNCTION): Ditto.
12728 * top.c (execute_command): Replace NO_FUNCTION with NULL.
12729 * tracepoint.c (_initialize_tracepoint): Ditto.
12730 * cli/cli-decode.c (add_set_cmd): Ditto.
12731 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12732
12733 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12734
12735 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
12736 Update ``this'' pointer when calling virtual functions.
12737
12738 2002-02-01 Michael Snyder <msnyder@redhat.com>
12739
12740 * breakpoint.c (create_temp_exception_breakpoint): Delete.
12741 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
12742
12743 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
12744
12745 * regformats/reg-arm.dat: New file.
12746 * regformats/reg-i386.dat: New file.
12747 * regformats/reg-ia64.dat: New file.
12748 * regformats/reg-m68k.dat: New file.
12749 * regformats/reg-mips.dat: New file.
12750 * regformats/reg-ppc.dat: New file.
12751 * regformats/reg-sh.dat: New file.
12752 * regformats/regdef.h: New file.
12753 * regformats/regdat.sh: New file.
12754
12755 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
12756
12757 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
12758 (arm_frame_args_address, arm_frame_locals_address): New functions.
12759 (arm_frame_num_args): New function.
12760 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
12761 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
12762 (FRMA_NUM_ARGS): Call arm_frame_num_args.
12763
12764 2002-01-31 Michael Snyder <msnyder@redhat.com>
12765
12766 * breakpoint.c (break_at_finish_command): Export.
12767 (break_at_finish_at_depth_command): Export.
12768 (tbreak_at_finish_command): Export.
12769 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
12770 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
12771 "txbreak" commands, which are HPPA specific.
12772
12773 * printcmd.c (disassemble_command): Remove an ancient
12774 artifact of an old merge.
12775
12776 * symfile.h (enum overlay_debugging_state):
12777 Define enum constant values for overlay mode.
12778 * symfile.c (overlay_debugging): Use enums instead of literals.
12779 (overlay_is_mapped, overlay_auto_command,
12780 overlay_manual_command): Ditto.
12781
12782 * breakpoint.c (insert_breakpoints, remove_breakpoint,
12783 breakpoint_here_p, breakpoint_inserted_here_p,
12784 breakpoint_thread_match, bpstat_stop_status,
12785 describe_other_breakpoints, check_duplicates, clear_command):
12786 Coding standard fixes.
12787
12788 * target.c (target_xfer_memory): Add spaces, coding standard.
12789 (do_xfer_memory): Add missing line to trust-readonly
12790 code: check bfd SEC_READONLY flag for section.
12791
12792 2002-01-31 Andrew Cagney <ac131313@redhat.com>
12793
12794 * PROBLEMS: Fix typo, 5.1->5.1.1.
12795
12796 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
12797
12798 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
12799 data symbols, since we search based on textlow and texthigh.
12800 (find_pc_sect_symtab): Likewise.
12801
12802 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12803
12804 * defs.h (vwarning): Declare.
12805 * utils.c (vwarning): New function.
12806 (warning): Call vwarning.
12807 (warning_begin): Delete function.
12808
12809 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
12810 the warning message.
12811 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
12812 warning_begin.
12813
12814 2002-01-30 Michael Snyder <msnyder@redhat.com>
12815
12816 * NEWS: Mention "set trust-readonly-sections" command.
12817 Mention generate-core-file command.
12818
12819 2002-01-15 Michael Snyder <msnyder@redhat.com>
12820
12821 * target.c: New command, "set trust-readonly-sections on".
12822 (do_xfer_memory): Honor the suggestion to trust readonly sections
12823 by reading them from the object file instead of from the target.
12824 (initialize_targets): Register command "set trust-readonly-sections".
12825
12826 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12827
12828 * parse.c (target_map_name_to_register): Simplify, search regs and
12829 pseudo-regs using a single loop.
12830
12831 2002-01-30 Andrew Cagney <ac131313@redhat.com>
12832
12833 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
12834
12835 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
12836
12837 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
12838 * config/i386/i386v42mp.mh: Add i387-nat.o .
12839 * i386v4-nat.c: Include i387-nat.h.
12840 (supply_fpregset): Use i387_supply_fsave.
12841 (fill_fpregset): Use i387_fill_fsave.
12842
12843 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
12844
12845 * arm-tdep.c (arm_call_dummy_words): Define.
12846 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
12847 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
12848 (CALL_DUMMY_WORDS): Define.
12849 (arm_call_dummy_words): Declare.
12850 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
12851 (arm_linux_call_dummy_words): Declare.
12852
12853 2002-01-30 Andreas Schwab <schwab@suse.de>
12854
12855 * m68klinux-nat.c: Fix last change to use regcache_collect
12856 instead of referencing registers[] directly.
12857
12858 2002-01-29 Andrew Cagney <ac131313@redhat.com>
12859
12860 * parse.c (target_map_name_to_register): Delete code wrapped in
12861 #ifdef REGISTER_NAME_ALIAS_HOOK.
12862
12863 2002-01-28 Michael Snyder <msnyder@redhat.com>
12864
12865 * regcache.c (legacy_read_register_gen): Need to be able to
12866 read pseudo-register as well as real register.
12867 (legacy_write_register_gen): Ditto.
12868
12869 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12870
12871 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12872 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
12873 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
12874 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
12875 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
12876 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
12877 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
12878 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
12879 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
12880 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
12881 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
12882 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
12883 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
12884 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
12885 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
12886 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
12887 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
12888 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
12889 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
12890 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
12891
12892 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12893
12894 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
12895 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
12896 (initialize_current_architecture): Update target_byte_order using
12897 information from BFD.
12898 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
12899 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
12900
12901 2002-01-28 Andrew Cagney <ac131313@redhat.com>
12902
12903 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
12904 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
12905
12906 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
12907 #ifdef INVALID_FLOAT.
12908 * infcmd.c (do_registers_info): Ditto.
12909 * values.c (unpack_double): Ditto. Add comment.
12910
12911 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
12912 already commented out.
12913
12914 2002-01-26 Andreas Schwab <schwab@suse.de>
12915
12916 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
12917 * m68klinux-nat.c: Update ptrace interface for fetching/storing
12918 registers and add support for PTRACE_GETREGS.
12919
12920 2002-01-24 Andrew Cagney <ac131313@redhat.com>
12921
12922 GDB 5.1.1 released from 5.1 branch.
12923 * NEWS: Add 5.1.1 news.
12924 * README: Sync with 5.1 branch.
12925
12926 2002-01-23 Fred Fish <fnf@redhat.com>
12927
12928 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
12929 stabstring on initial malloc. Reallocing will copy it for us,
12930 if necessary.
12931
12932 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12933
12934 * Makefile.in (hpread_h): Delete.
12935 (HFILES_NO_SRCDIR): Remove hpread.h.
12936 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
12937 (hpread.o): Update dependencies.
12938 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
12939
12940 * hp-psymtab-read.c: Remove file.
12941 * hp-symtab-read.c: Remove file.
12942 * hpread.h: Remove file.
12943
12944 * hpread.c: Merge all contents of hp-psymtab-read.c,
12945 hp-symtab-read.c and hpread.h into this file, as it was prior to
12946 January 1999.
12947
12948 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
12949 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
12950 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
12951 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
12952
12953 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
12954
12955 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
12956 fill_gregset): Call gdbarch_tdep() just once, assign result to
12957 variable and use that, instead of calling the function several
12958 times.
12959
12960 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
12961
12962 * configure.host: Accept sparcv9 as alias for sparc64.
12963 * configure.tgt: Likewise.
12964
12965 2002-01-22 Kevin Buettner <kevinb@redhat.com>
12966
12967 * solib-aix5.c (build_so_list_from_mapfile)
12968 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
12969 arguments is not reversed.
12970 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
12971 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
12972
12973 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
12974
12975 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
12976 modified version of obsolete sh_fetch_pseudo_register.
12977 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
12978 (sh4_register_read): New function.
12979 (sh_pseudo_register_write): New function. Renamed and modified
12980 version of obsolete sh_store_pseudo_register.
12981 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
12982 (sh4_register_write): New function.
12983 (sh_gdbarch_init): Remove setting of gdbarch function
12984 fetch_pseudo_register and store_pseudo_register. Remove setting of
12985 register_convert_to_raw, register_convert_to_virtual,
12986 register_convertible.
12987 (sh_sh4_register_convertible): Delete. No longer needed. All is
12988 taken care by architecture specific functions
12989 register_read/register_write.
12990 (sh_sh4_register_convert_to_virtual): Make static.
12991 (sh_sh4_register_convert_to_raw): Ditto.
12992
12993 2002-01-22 Andrew Cagney <ac131313@redhat.com>
12994
12995 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
12996 (floatformat_is_nan, floatformat_mantissa): Ditto.
12997
12998 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
12999 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13000 builtin_type_ieee_double_little,
13001 builtin_type_ieee_double_littlebyte_bigword,
13002 builtin_type_m68881_ext, builtin_type_i960_ext,
13003 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13004 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13005 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13006 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13007
13008 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
13009
13010 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13011 parameter. Set frameless flag if it exists and depended of
13012 whether the scanned function is frameless or not.
13013 (xstormy16_skip_prologue): If function is frameless, return
13014 result of xstormy16_scan_prologue().
13015 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13016 call.
13017
13018 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
13019
13020 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13021 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13022 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13023 sh_sh4_register_byte, sh_sh4_register_raw_size,
13024 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13025 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13026 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13027 sh_store_pseudo_register, sh_do_pseudo_register): Call
13028 gdbarch_tdep() just once, assign result to variable and use that,
13029 instead of calling the function several times.
13030
13031 2002-01-20 Mark Kettenis <kettenis@gnu.org>
13032
13033 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13034 macros instead of LAST_FPU_CTRL_REGNUM.
13035 (store_register): Likewise.
13036
13037 2002-01-21 Jim Blandy <jimb@redhat.com>
13038
13039 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13040 is up-to-date before running the program, not just when a program
13041 exits.
13042
13043 2002-01-21 Fred Fish <fnf@redhat.com>
13044
13045 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13046 when we have found all instructions we are looking for.
13047
13048 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13049
13050 * arm-tdep.c (arm_register_name): New function.
13051 (arm_registers_names): Make static.
13052 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13053 (arm_register_name): Declare.
13054 (REGISTER_NAME): Use it.
13055
13056 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
13057 Kevin Buettner <kevinb@redhat.com>
13058
13059 Convert arm targets to new FRAME interface.
13060 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13061 (arm_frame_find_save_regs): Delete.
13062 (arm_frame_init_saved_regs): New.
13063 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13064 Allocate extra_info as required. Convert all uses of fsr.regs
13065 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13066 to use extra_info.
13067 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13068 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13069 (check_prologue_cache, save_prologue_cache): Likewise.
13070 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13071 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13072 (FRAME_FIND_SAVED_REGS): Delete.
13073 (arm_frame_find_saved_regs): Delete prototype.
13074 (arm_frame_init_saved_regs): New prototype.
13075 (FRAME_INIT_SAVED_REGS): Define.
13076
13077 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13078
13079 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13080
13081 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13082
13083 From Jeff Law <law@redhat.com>:
13084 * infttrace.c: Include <sys/pstat.h>.
13085 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13086 exec file if the ttrace equivalent fails.
13087
13088 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13089
13090 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13091 (closeLogFile): Ditto.
13092
13093 2002-01-20 Michael Chastain <mec@shout.net>
13094
13095 * top.c (print_gdb_version): Bump copyright year to 2002.
13096
13097 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13098
13099 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13100 Zannoni and Eli Zaretskii.
13101
13102 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13103
13104 * buildsym.c: Update copyright years.
13105 * c-typeprint.c: Likewise.
13106 * dwarf2read.c: Likewise.
13107 * f-typeprint.c: Likewise.
13108 * gdbtypes.c: Likewise.
13109 * gdbtypes.h: Likewise.
13110 * hp-symtab-read.c: Likewise.
13111 * hpread.c: Likewise.
13112 * mdebugread.c: Likewise.
13113 * p-typeprint.c: Likewise.
13114
13115 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13116
13117 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13118 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13119 byte-order selectable.
13120 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13121 * arch-utils.c: Ditto.
13122 (set_endian): Ditto.
13123 (set_endian_from_file): Ditto.
13124 * gdbserver/low-sim.c (create_inferior): Ditto.
13125 * gdbarch.sh: Ditto.
13126 * gdbarch.h: Re-generate.
13127 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13128 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13129 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13130 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13131 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13132 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13133 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
13134 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13135 macro definition.
13136 * config/mips/tm-wince.h: Remove #undef of macro
13137 TARGET_BYTE_ORDER_SELECTABLE.
13138 * config/sh/tm-wince.h: Ditto.
13139
13140 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13141
13142 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13143 member function fields. Add accessor macro
13144 TYPE_FN_FIELD_ARTIFICIAL.
13145 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13146 * c-typeprint.c (c_type_print_base): Skip artificial member
13147 functions.
13148
13149 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13150
13151 * f-typeprint.c: Delete unused function f_type_print_args.
13152 * p-typeprint.c: Delete unused function pascal_type_print_args.
13153
13154 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
13155
13156 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13157 comment. Add ``artificial'' to ``union field_location''.
13158
13159 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13160
13161 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13162 * mdebugread.c (parse_symbol): Likewise.
13163 * stabsread.c (define_symbol): Likewise.
13164 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13165 initializing TYPE_FIELD_BITPOS to n (obsolete).
13166 (hpread_doc_function_type): Likewise.
13167 * hpread.c (hpread_function_type): Likewise.
13168
13169 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13170
13171 * configure.in (host_makefile_frag): Only require a host makefile
13172 fragment when a native build.
13173 * configure: Re-generate.
13174
13175 2002-01-20 Andrew Cagney <ac131313@redhat.com>
13176
13177 * doublest.h (floatformat_from_type): Declare.
13178 * doublest.c (floatformat_from_type): New function.
13179 (convert_typed_floating): Use.
13180
13181 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13182 call to function floatformat_from_type.
13183
13184 * gdbarch.sh (IEEE_FLOAT): Delete.
13185 * gdbarch.h, gdbarch.c: Re-generate.
13186 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13187 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13188 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13189 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13190 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13191 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13192 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13193 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13194 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13195 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13196 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
13197 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13198
13199 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13200 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13201 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13202 * sh-tdep.c (sh_gdbarch_init): Ditto.
13203 * mips-tdep.c (mips_gdbarch_init): Ditto.
13204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13205 * cris-tdep.c (cris_gdbarch_init): Ditto.
13206
13207 2002-01-20 Jiri Smid <smid@suse.cz>
13208
13209 * configure.host, configure.tgt: Support x86-64.
13210 * NEWS: Note new target x86-64.
13211
13212 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13213 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13214 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13215 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13216 x86-64-linux-nat.o): Fix dependencies.
13217
13218 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13219
13220 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13221 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13222 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13223 * config/sparc/xm-sun4os4.h: Delete file.
13224 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
13225
13226 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13227
13228 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13229 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13230 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13231 * config/i386/i386lynx.mh (XM_FILE): Delete.
13232 * config/rs6000/xm-rs6000ly.h: Delete file.
13233 * config/sparc/xm-sparclynx.h: Delete file.
13234 * config/m68k/xm-m68klynx.h: Delete file.
13235 * config/i386/xm-i386lynx.h: Delete file.
13236 * config/xm-lynx.h: Delete file.
13237 * config/djgpp/fnchange.lst: Update.
13238
13239 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13240
13241 * alpha-tdep.c (alpha_register_byte): New function.
13242 (alpha_register_raw_size): Ditto.
13243 (alpha_register_virtual_size): Ditto.
13244 (alpha_skip_prologue_internal): Renamed from
13245 alpha_skip_prologue.
13246 (alpha_skip_prologue): New version that calls
13247 alpha_skip_prologue_internal.
13248 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13249 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13250 second argument from alpha_skip_prologue.
13251 (REGISTER_BYTE): Use alpha_register_byte.
13252 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13253 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13254 (FRAMELESS_FUNCTION_INVOCATION): Use
13255 generic_frameless_function_invocation_not.
13256 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13257 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13258
13259 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13260
13261 * config/mips/xm-news-mips.h: Delete file.
13262 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13263
13264 * config/m88k/xm-m88k.h: Delete file.
13265 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13266 * config/m88k/xm-delta88v4.h: Ditto.
13267 * config/m88k/xm-delta88.h: Ditto.
13268
13269 * config/alpha/xm-fbsd.h: Delete file.
13270 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13271
13272 * config/sparc/xm-sparc.h: Delete file.
13273 * Makefile.in (xm-sun4os4.h): Delete dependency.
13274 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13275 * config/sparc/xm-sun4os4.h: Ditto.
13276 * config/sparc/xm-linux.h: Ditto.
13277
13278 * config/i386/xm-windows.h: Delete file.
13279
13280 2002-01-19 Andrew Cagney <ac131313@redhat.com>
13281
13282 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13283 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13284
13285 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13286
13287 * alpha-tdep.c (alpha_call_dummy_words): New.
13288 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13289 (CALL_DUMMY_P): Define.
13290 (CALL_DUMMY_WORDS): Define.
13291 (SIZEOF_CALL_DUMMY_WORDS): Define.
13292
13293 2002-01-19 Per Bothner <per@bothner.com>
13294
13295 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13296 isn't NULL, which can happen with some gcj-3.x-produced code.
13297
13298 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
13299
13300 * alpha-tdep.c (alpha_register_virtual_type): New function.
13301 (alpha_init_frame_pc_first): Ditto.
13302 (alpha_fix_call_dummy): Ditto.
13303 (alpha_store_struct_return): Ditto.
13304 (alpha_extract_struct_value_address): Ditto.
13305 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13306 alpha_register_virtual_type.
13307 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13308 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13309 alpha_extract_struct_value_address.
13310 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13311 (INIT_FRAME_PC): Use init_frame_pc_noop.
13312 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13313
13314 2002-01-19 Mark Kettenis <kettenis@gnu.org>
13315
13316 * i386gnu-nat.c: Include "i386-tdep.h".
13317 (fetch_fpregs): Simplify code dealing with uninitialized floating
13318 point states such that it doesn't require FP7_REGNUM.
13319
13320 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13321
13322 * alpha-tdep.c (frame_extra_info): New.
13323 (alpha_find_saved_regs): Make static. Use
13324 frame->extra_info.
13325 (alpha_frame_init_saved_regs): New function.
13326 (alpha_frame_saved_pc): Use frame->extra_info.
13327 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13328 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
13329 (init_extra_frame_info): Rename to...
13330 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
13331 (alpha_print_extra_frame_info): New function.
13332 (alpha_frame_locals_address): Ditto.
13333 (alpha_frame_args_address): Ditto.
13334 (alpha_pop_frame): Use frame->extra_info.
13335 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13336 alpha_frame_args_address.
13337 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
13338 (alpha_find_saved_regs): Remove prototype.
13339 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13340 (EXTRA_FRAME_INFO): Remove.
13341 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13342 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13343
13344 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13345
13346 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13347 (alpha_cannot_fetch_register): Ditto.
13348 (alpha_cannot_store_register): Ditto.
13349 (alpha_register_convertible): Ditto.
13350 (alpha_use_struct_convention): Ditto.
13351 * config/alpha/tm-alpha.h: Update copyright years.
13352 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13353 (INNER_THAN): Use core_addr_lessthan.
13354 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13355 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13356 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13357 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13358 (FRAME_CHAIN): Remove unnecessary cast.
13359
13360 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13361
13362 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13363 obsolete.
13364
13365 2002-01-18 Andrew Cagney <ac131313@redhat.com>
13366
13367 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13368 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13369 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13370 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13371 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13372 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13373 * x86-64-linux-nat.c: Ditto.
13374
13375 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13376
13377 * alpha-tdep.c (alpha_register_name): New function.
13378 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13379 (REGISTER_NAME): Define.
13380
13381 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13382
13383 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13384
13385 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13386
13387 * alpha-tdep.c: Update copyright years.
13388 (alpha_next_pc): New function.
13389 (alpha_software_single_step): Ditto.
13390 * config/alpha/tm-alpha.h: Add prototype for
13391 alpha_software_single_step.
13392
13393 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
13394
13395 * alphabsd-nat.c: Update copyright years.
13396 (fill_gregset): Use regcache_collect.
13397 (fill_fpregset): Likewise.
13398 (fetch_inferior_registers): Only fetch integer registers
13399 if requested to do so.
13400 (store_inferior_registers): Only store integer registers
13401 if requested to do so.
13402
13403 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13404
13405 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13406 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13407 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13408 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13409 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13410 * config/arm/linux.mh (XDEPFILES): Delete.
13411 * config/arm/nbsd.mh (XDEPFILES): Delete.
13412 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13413 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13414 * config/i386/i386m3.mh (XDEPFILES): Delete.
13415 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13416 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13417 * config/i386/fbsd.mh (XDEPFILES): Delete.
13418 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13419 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13420 * config/i386/i386v4.mh (XDEPFILES): Delete.
13421 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13422 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13423 * config/i386/i386aix.mh (XDEPFILES): Delete.
13424 * config/i386/go32.mh (XDEPFILES): Delete.
13425 * config/i386/cygwin.mh (XDEPFILES): Delete.
13426 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13427 * config/i386/i386mach.mh (XDEPFILES): Delete.
13428 * config/i386/i386v32.mh (XDEPFILES): Delete.
13429 * config/i386/linux.mh (XDEPFILES): Delete.
13430 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13431 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13432 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13433 * config/i386/i386sco.mh (XDEPFILES): Delete.
13434 * config/i386/i386v.mh (XDEPFILES): Delete.
13435 * config/i386/nbsd.mh (XDEPFILES): Delete.
13436 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13437 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13438 * config/i386/symmetry.mh (XDEPFILES): Delete.
13439 * config/i386/obsd.mh (XDEPFILES): Delete.
13440 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13441 * config/ia64/linux.mh (XDEPFILES): Delete.
13442 * config/ia64/aix.mh (XDEPFILES): Delete.
13443 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13444 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13445 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13446 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13447 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13448 * config/m68k/linux.mh (XDEPFILES): Delete.
13449 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13450 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13451 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13452 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13453 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13454 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13455 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13456 * config/m88k/delta88.mh (XDEPFILES): Delete.
13457 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13458 * config/m88k/m88k.mh (XDEPFILES): Delete.
13459 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13460 * config/mips/linux.mh (XDEPFILES): Delete.
13461 * config/mips/irix6.mh (XDEPFILES): Delete.
13462 * config/mips/irix5.mh (XDEPFILES): Delete.
13463 * config/mips/irix4.mh (XDEPFILES): Delete.
13464 * config/mips/irix3.mh (XDEPFILES): Delete.
13465 * config/mips/decstation.mh (XDEPFILES): Delete.
13466 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13467 (NATDEPFILES): Move core-aout.o to here.
13468 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13469 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13470 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13471 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13472 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13473 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13474 * config/pa/hpux11.mh (XDEPFILES): Delete.
13475 * config/powerpc/aix.mh (XDEPFILES): Delete.
13476 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13477 * config/powerpc/linux.mh (XDEPFILES): Delete.
13478 * config/romp/rtbsd.mh: Rename XDEPFILES.
13479 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13480 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13481 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13482 * config/s390/s390.mh (XDEPFILES): Delete.
13483 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13484 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13485 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13486 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13487 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13488 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13489 * config/sparc/linux.mh (XDEPFILES): Delete.
13490 * config/vax/vaxult.mh (XDEPFILES): Delete.
13491 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13492 * Makefile.in (DEPFILES): Remove XDEPFILES.
13493
13494 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13495
13496 * utils.c (internal_verror): Fix comments, default is yes not no.
13497 Update queries to match. Default to quit and dump core.
13498
13499 2002-01-17 Andrew Cagney <ac131313@redhat.com>
13500
13501 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13502 copyright.
13503 * defs.h, event-top.c, gdbcmd.h: Ditto.
13504 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
13505 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
13506 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
13507 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
13508 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
13509 * mi/mi-main.c:Ditto.
13510
13511 * stack.c, symfile.c: Update copyright.
13512
13513 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13514
13515 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
13516 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
13517 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
13518 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
13519
13520 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
13521
13522 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
13523 * gdbserver/low-lynx.c (myattach): Likewise.
13524 * gdbserver/low-nbsd.c (myattach): Likewise.
13525 * gdbserver/low-sim.c (myattach): Likewise.
13526 * gdbserver/low-sparc.c (myattach): Likewise.
13527 * gdbserver/low-sun3.c (myattach): Likewise.
13528
13529 * gdbserver/low-linux.c (myattach): New function.
13530
13531 * gdbserver/server.c (attach_inferior): New function.
13532 (main): Handle "--attach".
13533
13534 2002-01-16 Andrew Cagney <ac131313@redhat.com>
13535
13536 * MAINTAINERS (language support): Daniel Jacobwitz is C++
13537 maintainer.
13538
13539 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
13540
13541 * c-typeprint.c (is_type_conversion_operator): Add additional
13542 check for non-conversion operators.
13543
13544 2002-01-15 Michael Snyder <msnyder@redhat.com>
13545
13546 * linux-proc.c: Add "info proc" command, a la procfs.c.
13547 (read_mapping): New function, abstract and re-use code.
13548 (linux_find_memory_regions): Use new func read_mapping.
13549 (linux_info_proc_cmd): New function, implement "info proc".
13550 (_initialize_linux_proc): Add new command "info proc".
13551
13552 2002-01-15 Michael Snyder <msnyder@redhat.com>
13553
13554 * symfile.c (generic_load): Use bfd_map_over_sections method
13555 instead of manipulating bfd structure members directly.
13556 (add_section_size_callback): New function, bfd sections callback
13557 used by generic_load.
13558 (load_sections_callback): New function, bfd sections callback
13559 used by generic_load.
13560
13561 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
13562
13563 [Based on work by Jim Blandy]
13564 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
13565 (builtin_type_vec128): Export.
13566 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
13567 types.
13568 (builtin_type_vec128): New builtin type for 128 bit vector
13569 registers.
13570 (build_gdbtypes): Initialize builtin_type_v16qi and
13571 builtin_type_v8hi. Create the vec128 register builtin type
13572 structure.
13573 (build_builtin_type_vec128): New function.
13574 (_initialize_gdbtypes): Register builtin_type_v16qi and
13575 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
13576 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
13577 AltiVec register to new builtin type.
13578
13579 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
13580
13581 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
13582 to make_cv_type.
13583
13584 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13585
13586 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
13587 CLEAN_UP_REGISTER_VALUE.
13588 * regcache.c (supply_register): Update only call.
13589
13590 2002-01-14 Andrew Cagney <ac131313@redhat.com>
13591
13592 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13593 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13594 a29k-*-vxworks* targets as obsolete.
13595
13596 2002-01-14 Michael Snyder <msnyder@redhat.com>
13597
13598 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
13599 until we can resolve portability issues.
13600 * gregset.h: Remove references to fpxregs.
13601 * gcore.c (gcore_command): Initialize note_sec to NULL.
13602
13603 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13604
13605 * signals.c (target_signal_to_name): Rewrite. Only use
13606 signals[].name when in bounds and non-NULL.
13607
13608 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13609
13610 From Petr Ledvina <ledvinap@kae.zcu.cz>:
13611 * signals.c (target_signal_to_name): Verify that SIG is within the
13612 bounds of the signals array.
13613
13614 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13615
13616 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
13617
13618 2002-01-13 Keith Seitz <keiths@redhat.com>
13619
13620 * stack.c (print_frame_info_base): Print the frame's pc
13621 only if when print_frame_info_listing_hook is not defined.
13622
13623 2002-01-13 Keith Seitz <keiths@redhat.com>
13624
13625 * varobj.c (varobj_set_value): Make sure that there were no
13626 errors evaluating the object before attempting to set its
13627 value.
13628 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
13629 so this offset adjustment is no longer necessary.
13630 (create_child): Don't set the error flag if the child is
13631 a CPLUS_FAKE_CHILD.
13632 (value_of_child): If value_fetch_lazy fails, return NULL
13633 so that callers will be notified that an error occurred.
13634 (c_value_of_variable): Delay check of variable's validity
13635 until later. We actually want all structs and unions to have
13636 the value "{...}".
13637 Do not return "???" for variables which could not be evaluated.
13638 This error condition must be returned to the caller so that it
13639 can get the error condition from gdb.
13640 (cplus_name_of_child): Adjust index for vptr before figuring
13641 out the name of the child.
13642 (cplus_value_of_child): If a child's (real) parent is not valid,
13643 don't even bother trying to give a value for it. Just return
13644 an error. Change all instances in this function.
13645 (cplus_type_of_child): If our parent is one of the "fake"
13646 parents, we need to get at the type of the real parent, and
13647 derive the child's true type using this information.
13648
13649 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13650
13651 From 2002-01-09 John Marshall <johnm@falch.net>:
13652 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
13653 sources.redhat.com, and tweak some related URLs which had
13654 suffered from linkrot.
13655
13656 2002-01-13 Andrew Cagney <ac131313@redhat.com>
13657
13658 From Jeff law:
13659 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
13660 structures passed in registers.
13661
13662 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
13663
13664 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
13665 white space which prevented compilation. Reported by DSK
13666 <dsk@student.unsw.edu.au>.
13667
13668 2002-01-11 Michael Snyder <msnyder@redhat.com>
13669
13670 * symfile.c (build_section_addr_info_from_section_tab):
13671 Use bfd access method instead of manipulating bfd directly.
13672 (syms_from_objfile): Ditto.
13673 (simple_overlay_update_1): Ditto.
13674 (simple_overlay_update): Ditto.
13675 (generic_load): Ditto.
13676 (overlay_unmapped_address): FIXME comment, bfd access methods.
13677 (sections_overlap): FIXME comment, bfd access methods.
13678 (pc_in_mapped_range): FIXME comment, bfd access methods.
13679 (pc_in_unmapped_range): FIXME comment, bfd access methods.
13680 (section_is_mapped): FIXME comment, bfd access methods.
13681 (section_is_overlay): FIXME comment, bfd access methods.
13682
13683 * symfile.c (generic_load): Whitespace and long line cleanups.
13684 Remove duplicate variable, change several local variables to
13685 more appropriate data types.
13686 (print_transfer_performance): Use %lu instead of %ld for ulongs.
13687
13688 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13689
13690 From Peter Schauer:
13691 * language.c (longest_local_hex_string_custom): Use phex_nz to
13692 convert NUM to a hex string.
13693
13694 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
13695
13696 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
13697 the function.
13698 Update Copyright year.
13699
13700 2002-01-12 Andrew Cagney <ac131313@redhat.com>
13701
13702 * language.c (longest_raw_hex_string): Delete unused function.
13703
13704 2002-01-11 Petr Sorfa <petrs@caldera.com>
13705
13706 * MAINTAINERS (write-after-approval): Add myself.
13707 * dwarf2read.c (read_tag_string_type): Handling of
13708 DW_AT_byte_size.
13709 (read_tag_string_type): FORTRAN fix to prevent propagation of
13710 first string size.
13711 (set_cu_language): Handling of DW_LANG_Fortran95
13712
13713 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
13714
13715 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
13716 GETPID(inferior_ptid).
13717 (store_inferior_registers): Likewise.
13718
13719 2002-01-10 Jason Merrill <jason@redhat.com>
13720
13721 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
13722 Fix DW_OP_minus.
13723
13724 2002-01-10 Andrew Cagney <ac131313@redhat.com>
13725
13726 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
13727 and bfd/elf32-sh-nbsd.c.
13728
13729 2002-01-10 Michael Snyder <msnyder@redhat.com>
13730
13731 * NEWS: Mention --pid and corefile/proc-id behavior change.
13732
13733 * Makefile.in: Add rules for gcore.o and linux-proc.o.
13734 * gcore.c: Include cli/cli-decode.h instead of command.h.
13735
13736 * main.c (captured_main): Add new command line option "--pid".
13737 If the second command line argument (following the symbol-file)
13738 begins with a digit, try to attach to it before trying to open
13739 it as a corefile.
13740 (print_gdb_help): Document the "--pid" argument.
13741
13742 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
13743
13744 * completer.c (command_completer): New function.
13745
13746 * completer.h <command_completer>: Add prototype.
13747
13748 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
13749 completer for the "help" command.
13750
13751 2002-01-09 Jason Merrill <jason@redhat.com>
13752
13753 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
13754
13755 2002-01-09 Michael Snyder <msnyder@redhat.com>
13756
13757 * i386-linux-nat.c (fill_fpxregset): Make global.
13758 (store_fpxregset): Ditto.
13759
13760 * gregset.h (gdb_fpxregset_t): Define.
13761 (supply_fpxregset): Prototype.
13762 (fill_fpxregset): Prototype.
13763
13764 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
13765
13766 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13767
13768 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
13769 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
13770 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
13771
13772 2002-01-09 Andrew Cagney <ac131313@redhat.com>
13773
13774 * MAINTAINERS: Update target maintainer rules so that any
13775 Maintainer can approve a tested patch for a maintenance-only
13776 target.
13777
13778 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
13779
13780 * MAINTAINERS (write-after-approval): Add myself.
13781
13782 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
13783 IN_SIGTRAMP.
13784
13785 2002-01-08 Michael Snyder <msnyder@redhat.com>
13786
13787 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
13788 real name of the executable, rather than the /proc name.
13789
13790 2002-01-03 Michael Snyder <msnyder@redhat.com>
13791
13792 Implement a "generate-core-file" command in gdb, save target state.
13793 * gcore.c: New file. Implement new command 'generate-core-file'.
13794 Save a corefile image of the current state of the inferior.
13795 * linux-proc.c: Add linux-specific code for saving corefiles.
13796 * target.h (struct target_ops): Add new target vectors for saving
13797 corefiles; to_find_memory_regions and to_make_corefile_notes.
13798 (target_find_memory_regions): New macro.
13799 (target_make_corefile_notes): New macro.
13800 * target.c (update_current_target): Inherit new target methods.
13801 (dummy_find_memory_regions): New place-holder method.
13802 (dummy_make_corefile_notes): New place-holder method.
13803 (init_dummy_target): Initialize new dummy target vectors.
13804 * exec.c (exec_set_find_memory_regions): New function.
13805 Allow the exec_ops vector for memory regions to be taken over.
13806 (exec_make_note_section): New function, target vector method.
13807 * defs.h (exec_set_find_memory_regions): Export prototype.
13808 * procfs.c (proc_find_memory_regions): New function, corefile method.
13809 (procfs_make_note_section): New function, corefile method.
13810 (init_procfs_ops): Set new target vector pointers.
13811 (find_memory_regions_callback): New function.
13812 (procfs_do_thread_registers): New function.
13813 (procfs_corefile_thread_callback): New function.
13814 * sol-thread.c (sol_find_memory_regions): New function.
13815 (sol_make_note_section): New function.
13816 (init_sol_thread_ops): Initialize new target vectors.
13817 * inftarg.c (inftarg_set_find_memory_regions): New function.
13818 Allow to_find_memory_regions vector to be taken over.
13819 (inftarg_set_make_corefile_notes): New function.
13820 Allow to_make_corefile_notes vector to be taken over.
13821 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
13822 interface layer if not target_has_execution (may be a corefile).
13823 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
13824 * config/sparc/sun4sol2.mh: Ditto.
13825 * config/alpha/alpha-linux.mh: Ditto.
13826 * config/arm/linux.mh: Ditto.
13827 * config/i386/x86-64linux.mh: Ditto.
13828 * config/ia64/linux.mh: Ditto.
13829 * config/m68k/linux.mh: Ditto.
13830 * config/mips/linux.mh: Ditto.
13831 * config/powerpc/linux.mh: Ditto.
13832 * config/sparc/linux.mh: Ditto.
13833
13834 2002-01-07 Michael Snyder <msnyder@redhat.com>
13835
13836 * arm-linux-nat.c: Remove references to regcache.c internal data
13837 (registers[] and register_valid[]).
13838
13839 2002-01-07 Michael Snyder <msnyder@redhat.com>
13840
13841 * linux-proc.c: New file. Implement child_pid_to_exec_file,
13842 so that attaching to a pid will automatically read the process's
13843 symbol file and shlibs.
13844 * Makefile.in: Add rule for linux-proc.o.
13845 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
13846 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
13847 * config/arm/linux.mh: Ditto.
13848 * config/i386/linux.mh: Ditto.
13849 * config/i386/x86-64linux.mh: Ditto.
13850 * config/ia64/linux.mh: Ditto.
13851 * config/m68k/linux.mh: Ditto.
13852 * config/mips/linux.mh: Ditto.
13853 * config/powerpc/linux.mh: Ditto.
13854 * config/sparc/linux.mh: Ditto.
13855
13856 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
13857
13858 * win32-nat.c: Add i386-tdep.h dependency.
13859
13860 2002-01-07 Michael Snyder <msnyder@redhat.com>
13861
13862 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
13863 instead of bfd_get_arch_size. Don't bail out just because
13864 there's no exec_bfd.
13865
13866 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
13867 * p-valprint.c (pascal_object_print_value): Ditto.
13868 * somread.c (som_symtab_read): Ditto.
13869 * symfile.c (simple_free_overlay_region_table): Ditto.
13870 * valops.c (value_assign): Ditto.
13871
13872 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
13873 use tilde_expand and strerror for opening save-tracepoints file.
13874
13875 * thread-db.c (thread_db_new_objfile): Indendation fix.
13876
13877 * infptrace.c (GDB_MAX_ALLOCA): New define.
13878 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
13879 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
13880 can be overridden with whatever value is appropriate to the host).
13881 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
13882 alloca to allocate potentially large buffer.
13883 * rs6000-nat.c (child_xfer_memory): Ditto.
13884 * symm-nat.c (child_xfer_memory): Ditto.
13885 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
13886
13887 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
13888
13889 From Nick Clifton <nickc@redhat.com>
13890 * d10v-tdep.c: Set STACK_START to 0x200bffe.
13891
13892 2002-01-07 Michael Snyder <msnyder@redhat.com>
13893
13894 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13895 Don't use exec_bfd if it's NULL.
13896
13897 2002-01-06 Mark Kettenis <kettenis@gnu.org>
13898
13899 * valops.c (value_arg_coerce): Fix formatting.
13900
13901 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13902
13903 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
13904 * gnu-nat.c: Ditto.
13905
13906 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13907
13908 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
13909 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
13910 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
13911 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
13912 z8k-coff have not been multi-arched. Update z8k-coff build
13913 status.
13914
13915 2002-01-06 Andrew Cagney <ac131313@redhat.com>
13916
13917 * MAINTAINERS: Mark a29k target as obsolete.
13918 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
13919 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
13920 comments.
13921 * NEWS: Note that a29k targets are obsolete.
13922 * a29k-tdep.c: Mark as obsolete.
13923 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
13924 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
13925 a29k-*-vxworks* targets as obsolete.
13926 * remote-adapt.c: Obsolete.
13927 * remote-eb.c: Obsolete.
13928 * remote-mm.c: Obsolete.
13929 * remote-udi.c: Obsolete.
13930 * config/a29k/a29k-udi.mt: Obsolete.
13931 * config/a29k/a29k.mt: Obsolete.
13932 * config/a29k/tm-a29k.h: Obsolete.
13933 * config/a29k/tm-vx29k.h: Obsolete.
13934 * config/a29k/vx29k.mt: Obsolete.
13935
13936 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13937
13938 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
13939 with BFD_ENDIAN_BIG.
13940
13941 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13942
13943 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
13944 * configure, config.in: Re-generate.
13945 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
13946 * defs.h: Do not include <endian.h>.
13947
13948 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
13949
13950 * acconfig.h (HAVE_PT_GETXMMREGS): New.
13951 * config.in: Regenerate.
13952 * configure.in: Update copyright years.
13953 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
13954 * configure: Regenerate.
13955 * i386bsd-nat.c: Update copyright years.
13956 (fill_gregset): Use regcache_collect.
13957 (fetch_inferior_registers): Only fetch integer registers
13958 if requested to do so. Add support for XMM registers
13959 using PT_GETXMMREGS.
13960 (store_inferior_registers): Only store integer registers
13961 if requested to do so. Add support for XMM registers
13962 using PT_SETXMMREGS.
13963 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
13964 (store_inferior_registers): Remove.
13965 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
13966 (fetch_elfcore_registers): New function.
13967 (i386nbsd_elfcore_fns): New.
13968 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
13969 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
13970 i386bsd-nat.o.
13971 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
13972 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
13973 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
13974 * config/i386/tm-nbsd.h: Update copyright years.
13975 (HAVE_SSE_REGS): Define.
13976 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
13977 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
13978 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
13979 (SIGCONTEXT_PC_OFFSET): Remove.
13980 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
13981
13982 2002-01-05 Andrew Cagney <ac131313@redhat.com>
13983
13984 * configure.tgt: Remove powerpc-*-macos* target.
13985 * config/m68k/xm-mpw.h: Delete file.
13986 * config/xm-mpw.h: Delete file.
13987 * ser-mac.c: Delete file.
13988 * mpw-make.sed: Delete file.
13989 * mpw-config.in: Delete file.
13990 * mac-xdep.c: Delete file.
13991 * mac-gdb.r: Delete file.
13992 * mac-defs.h: Delete file.
13993 * mac-nat.c: Delete file.
13994 * config/powerpc/macos.mh: Delete file.
13995 * config/powerpc/macos.mt: Delete file.
13996 * config/powerpc/nm-macos.h: Delete file.
13997 * config/powerpc/tm-macos.h: Delete file.
13998 * source.c (openp, open_source_file): Remove obsolete code.
13999 * top.c (gdb_readline): Ditto.
14000 * utils.c (query): Ditto.
14001 * event-top.c (display_gdb_prompt): Ditto.
14002 * Makefile.in (ser-mac.o): Delete obsolete target.
14003 * NEWS: Update.
14004
14005 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14006
14007 * defs.h (BIG_ENDIAN): Delete macro definition.
14008 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14009 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14010 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14011 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14012 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14013 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14014 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14015 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14016 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14017 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14018 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14019 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14020 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14021 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14022 * gdbarch.c: Re-generate.
14023
14024 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14025
14026 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14027 for core files.
14028
14029 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14030
14031 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14032
14033 2002-01-04 Andrew Cagney <ac131313@redhat.com>
14034
14035 * value.h (value_ptr): Delete typedef.
14036
14037 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
14038
14039 * i386nbsd-nat.c: Update copyright years.
14040 Include i386-tdep.h.
14041
14042 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
14043
14044 * stabsread.c: Update copyright years.
14045
14046 From Debashis Mahata <debashis.mahata@wipro.com>:
14047 (read_struct_fields): Deal with Sun C compiler erroneous stab
14048 output for structs and unions.
14049 Fix PR gdb/269.
14050
14051 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14052
14053 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14054 prototype.
14055
14056 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14057
14058 * cp-abi.c: Fix whitespace.
14059 (baseclass_offset): New wrapper function.
14060 * cp-abi.h (baseclass_offset): Add prototype.
14061 (struct cp_abi_ops): Add baseclass_offset pointer.
14062
14063 * valops.c (vb_match): Move to...
14064 * gnu-v2-abi.c (vb_match): here.
14065 * valops.c (baseclass_offset): Move to...
14066 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14067
14068 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14069
14070 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14071 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14072 * hpacc-abi.c (init_hpacc_ops): Likewise.
14073
14074 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
14075
14076 * valops.c (find_overload_match): Accept obj as a
14077 reference parameter. Update it before returning.
14078 * value.h (find_overload_match): Update prototype.
14079 * eval.c (evaluate_subexp_standard): Pass object to
14080 find_overload_match by reference.
14081
14082 2002-01-03 Andrew Cagney <ac131313@redhat.com>
14083
14084 * valarith.c: Replace value_ptr with struct value pointer. Remove
14085 register attribute from value declarations.
14086 * valops.c: Ditto.
14087 * value.h: Ditto.
14088 * scm-lang.c (scm_lookup_name): Ditto.
14089
14090 2002-01-03 Michael Snyder <msnyder@redhat.com>
14091
14092 Abstract the functionality of iterating over mapped memory
14093 regions into a general purpose iterator function.
14094 * procfs.c (iterate_over_mappings): New function, general purpose
14095 iterator for memory sections.
14096 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14097 (solib_mappings_callback): New function, callback for above.
14098 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14099 (info_mappings_callback): New function, callback for above.
14100
14101 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14102
14103 2002-01-01 Mark Kettenis <kettenis@gnu.org>
14104
14105 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14106 * i386-tdep.c: Include "elf-bfd.h".
14107 (process_note_abi_tag_sections): New function.
14108 (i386_gdbarch_init): Add code to recognize various OS/ABI
14109 combinations.
14110
14111 * maint.c (_initialize_maint_cmds): Add missing \ in
14112 string-literal.
14113
14114 For older changes see ChangeLog-2001
14115 \f
14116 Local Variables:
14117 mode: change-log
14118 left-margin: 8
14119 fill-column: 74
14120 version-control: never
14121 End:
This page took 0.295796 seconds and 5 git commands to generate.