gas:
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2002-05-24 Jim Blandy <jimb@redhat.com>
2
3 * dwarf2read.c (free_line_header): Use xfree, not free.
4
5 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
6
7 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9
10 2002-05-23 Andrew Cagney <ac131313@redhat.com>
11
12 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
13
14 2002-05-23 Andrew Cagney <ac131313@redhat.com>
15
16 From Ross Alexander at NEC Europe:
17 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
18
19 2002-05-23 Michael Snyder <msnyder@redhat.com>
20
21 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
22 for input, rather than parse_and_eval_address.
23
24 2002-05-23 Andrew Cagney <ac131313@redhat.com>
25
26 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
27 * Makefile.in (sim_d10v_h): Update definition.
28
29 2002-05-24 Andrew Cagney <cagney@redhat.com>
30
31 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
32 change `2002-05-22 Michael Snyder' below.
33 (d10v_push_arguments): Ditto.
34 (d10v_extract_return_value): Ditto.
35
36 2002-05-23 Jim Blandy <jimb@redhat.com>
37
38 * macrotab.c (check_for_redefinition): Don't complain if the new
39 definition is the same as the previous one. Take more arguments
40 to allow the comparison.
41 (macro_define_object, macro_define_function): Pass more arguments
42 to check_for_redefinition.
43
44 2002-05-22 Michael Snyder <msnyder@redhat.com>
45
46 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
47 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
48 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
49 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
50 Don't bail if return_pc is PC_IN_CALL_DUMMY.
51 Add a temp variable to save a call (and a memory read).
52 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
53 if possible (so that PC_IN_CALL_DUMMY will work).
54
55 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
56
57 * MAINTAINERS: Remove status `OBSOLETE' from v850.
58
59 2002-05-22 Michal Ludvig <mludvig@suse.cz>
60
61 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
62 fde->cie_ptr.
63 (dwarf2_build_frame_info): Corrected handling of eh_frame.
64 (dwarf2_build_frame_info): Add offset to fde->initial_location
65 so that frames of shared libraries are mapped correctly.
66 (execute_stack_op): Change type of 'result' from ULONGEST to
67 CORE_ADDR.
68
69 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
70
71 * config/alpha/tm-nbsd.h: Include solib.h.
72
73 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
74
75 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
76 assumptions about the host's byte order.
77
78 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
79
80 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
81 to dependency list.
82 * alphanbsd-tdep.c: Include solib-svr4.h.
83 * shnbsd-tdep.c: Ditto.
84
85 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
86
87 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
88 nbsd-tdep.h to dependency list.
89 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
90 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
91 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
92 nbsdaout.mh and nbsdelf.mh consistently.
93 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
94 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
95 nbsdaout.mt and nbsdelf.mh consistently.
96 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
97 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
98 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
99 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
100 a.out shared library stuff from here...
101 * config/nm-nbsdaout.h: ...to here.
102 * config/tm-nbsd.h: Remove.
103 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
104 * config/arm/nbsd.mh: Remove.
105 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
106 nbsd-tdep.o.
107 * config/arm/nbsdaout.mh: New file.
108 * config/arm/nbsdelf.mh: New file.
109 * config/arm/nm-nbsdaout.h: New file.
110 * config/i386/nbsd.mh: Remove.
111 * config/i386/nbsd.mt: Remove.
112 * config/i386/nbsdaout.mh: New file.
113 * config/i386/nbsdaout.mt: New file.
114 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
115 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
116 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
117 i386_register_u_addr): Remove.
118 * config/i386/nm-nbsdaout.h: New file.
119 * config/i386/nm-nbsdelf.h: Remove.
120 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
121 (USE_STRUCT_CONVENTION): Remove.
122 * config/i386/tm-nbsdaout.h: New file.
123 * config/i386/tm-nbsdelf.h: Remove.
124 * config/m68k/nbsd.mh: Remove.
125 * config/m68k/nbsd.mt: Remove.
126 * config/m68k/nbsdaout.mh: New file.
127 * config/m68k/nbsdaout.mt: New file.
128 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
129 * config/m68k/nm-nbsdaout.h: New file.
130 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
131 (IN_SOLIB_CALL_TRAMPOLINE): Define.
132 * config/ns32k/nbsd.mh: Remove.
133 * config/ns32k/nbsd.mt: Remove.
134 * config/ns32k/nbsdaout.mh: New file.
135 * config/ns32k/nbsdaout.mt: New file.
136 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
137 * config/ns32k/nm-nbsdaout.h: New file.
138 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
139 (IN_SOLIB_CALL_TRAMPOLINE): Define.
140 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
141 (SVR4_SHARED_LIBS): Remove.
142 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
143 * config/sparc/nbsd.mh: Remove.
144 * config/sparc/nbsd.mt: Remove.
145 * config/sparc/nbsdaout.mh: New file.
146 * config/sparc/nbsdaout.mt: New file.
147 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
148 * config/sparc/nbsdelf.mt: New file.
149 * config/sparc/nm-nbsdaout.h: New file.
150 * config/sparc/nm-nbsdelf.h: Remove.
151 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
152 * config/sparc/tm-nbsdaout.h: New file.
153
154 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
155
156 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
157 mipsnbsd-tdep.c
158 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
159
160 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
161
162 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
163 shnbsd-nat.c.
164 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
165
166 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
167
168 * NEWS: Note new MIPS NetBSD native configuration.
169 * configure.host (mips*-*-netbsd*): New host.
170 * configure.tgt (mips*-*-netbsd*): New target.
171 * mipsnbsd-nat.c: New file.
172 * mipsnbsd-tdep.c: New file.
173 * mipsnbsd-tdep.h: New file.
174 * config/mips/nbsd.mh: New file.
175 * config/mips/nbsd.mt: New file.
176 * config/mips/nm-nbsd.h: New file.
177 * config/mips/tm-nbsd.h: New file.
178
179 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
180
181 * Makefile.in (SFILES): Add osabi.c.
182 (COMMON_OBS): Add osabi.o.
183 (osabi.o): New dependency list.
184 * osabi.c: New file.
185 * osabi.h: New file.
186 * doc/gdbint.texinfo: Document new generic OS ABI framework.
187
188 * Makefile.in (alpha_tdep_h): Define and use instead of
189 alpha-tdep.h.
190 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
191 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
192 Remove.
193 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
194 * alpha-tdep.h: Include osabi.h.
195 (alpha_abi): Remove.
196 (gdbarch_tdep): Use generic OS ABI framework.
197 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
198 gdbarch_register_osabi.
199 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
200 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
201 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
202
203 * Makefile.in (sh_tdep_h): Add osabi.h.
204 * sh-tdep.h (sh_osabi): Remove.
205 (gdbarch_tdep): Use generic OS ABI framework.
206 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
207 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
208 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
209 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
210
211 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
212 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
213 gdbarch_register_osabi.
214 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
215 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
216 (get_elfosabi): Rename to...
217 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
218 ABI framework support routines.
219 (arm_gdbarch_init): Use generic OS ABI framework.
220 (arm_dump_tdep): Likewise.
221 (_initialize_arm_tdep): Likewise.
222 * arm-tdep.h: Include osabi.h.
223 (arm_abi): Remove.
224 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
225 osabi member.
226 (arm_gdbarch_register_os_abi): Remove prototype.
227 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
228 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
229
230 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
231 * mips-tdep.c: Include osabi.h.
232 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
233 OS ABI framework.
234
235 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
236
237 * h8300-tdep.c: Fix formatting.
238
239 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
240
241 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
242 printing vector registers.
243
244 2002-05-19 Andrew Cagney <ac131313@redhat.com>
245
246 From Fernando Nasser:
247 * remote.c (remote_async_open_1): Re-throw the exception when the
248 connection fails.
249 (remote_cisco_open): Ditto.
250 (remote_open_1): Ditto.
251
252 2002-05-19 Andrew Cagney <ac131313@redhat.com>
253
254 * remote.c (remote_start_remote_dummy): Add uiout parameter.
255 (remote_start_remote): Add uiout parameter. Pass through to
256 remote_start_remote_dummy.
257 (remote_open_1): Use catch_exception instead of catch_errors.
258 (remote_async_open_1): Ditto.
259 (remote_cisco_open): Ditto.
260
261 2002-05-19 Andrew Cagney <ac131313@redhat.com>
262
263 * remote.c (remote_start_remote): Replace PTR with void pointer.
264 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
265 static.
266
267 2002-05-18 Andrew Cagney <ac131313@redhat.com>
268
269 * gdb_indent.sh: Allow the script to be run in the sim directory.
270
271 2002-05-18 Mark Kettenis <kettenis@gnu.org>
272
273 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
274 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
275
276 * corelow.c (core_open): Only call set_gdbarch_from_file if
277 exec_bfd is NULL.
278
279 2002-05-17 Andrey Volkov <avolkov@transas.com>
280
281 * h8300-tdep.c: Add support of EXR register
282 * config/h8300/tm-h8300.h: Ditto.
283
284 2002-05-17 Andrey Volkov <avolkov@transas.com>
285
286 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
287
288 2002-05-17 Andrey Volkov <avolkov@transas.com>
289
290 * h8300-tdep.c: Change literal regnums to REGNO.
291
292 2002-05-17 Jim Blandy <jimb@redhat.com>
293
294 * NEWS: Note addition of macro support.
295
296 Expand preprocessor macros in C expressions.
297 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
298 (scan_macro_expansion, scanning_macro_expansion,
299 finished_macro_expansion): New function declarations.
300 (expression_macro_lookup_func, expression_macro_lookup_baton): New
301 variable declarations.
302 * parser-defs.h (expression_context_pc): New declaration.
303 * parse.c (expression_context_pc): New variable.
304 (parse_exp_1): Set expression_context_pc, as well as
305 expression_context_block.
306 * c-exp.y (yylex): If we're not already reading the result of a
307 macro expansion, try to macro-expand the next token. When we're
308 done scanning a macro expansion, switch back to the mainline text.
309 Commas and `if's in a macro's expansion don't terminate the input.
310 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
311 (macro_original_text, macro_expanded_text,
312 expression_macro_lookup_func, expression_macro_lookup_baton): New
313 variables.
314 (scan_macro_expansion, scanning_macro_expansion,
315 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
316 c_preprocess_and_parse): New functions.
317 (c_language_defn, cplus_language_defn, asm_language_defn): Call
318 c_preprocess_and_parse, instead of c_parse.
319 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
320 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
321
322 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
323
324 * sh-tdep.c (gdb_print_insn_sh64): Delete.
325 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
326 (sh_gdbarch_init): Always use gdb_print_insn_sh.
327
328 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
329
330 * NEWS: Add section for multi-arched targets. Add v850 to that section.
331
332 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
333
334 * Makefile.in (sh_tdep_h): Define and use.
335 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
336 register enum): Move to...
337 * * sh-tdep.h: ...here.
338 * sh-tdep.c: Include sh-tdep.h.
339 * sh3-rom.c: Likewise.
340 * shnbsd-tdep.c: Likewise.
341
342 2002-05-16 Michael Snyder <msnyder@redhat.com>
343
344 * arm-tdep.c: Spelling fix in comment.
345
346 2002-05-16 Jim Blandy <jimb@redhat.com>
347
348 Add commands for manually expanding macros and showing their
349 definitions.
350 * macrocmd.c, macroscope.c, macroscope.h: New files.
351 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
352 (macroscope_h): New variable.
353 (HFILES_NO_SRCDIR): Add macroscope.h.
354 (COMMON_OBS): Add macrocmd.o, macroscope.o.
355 (macroscope.o, macrocmd.o): New rules.
356
357 Teach the Dwarf 2 reader to read macro information.
358 * dwarf2read.c: #include "macrotab.h".
359 (dwarf_macinfo_buffer): New variable.
360 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
361 dwarf_macinfo_size.
362 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
363 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
364 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
365 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
366 dwarf2_macro_spaces_in_definition): New complaints.
367 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
368 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
369 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
370 the partial symbol table.
371 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
372 from what's recorded in the partial symbol table.
373 (read_file_scope): If the compilation unit has a
374 `DW_AT_macro_info' attribute, read its macro information.
375 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
376
377 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
378
379 Fix PR gdb/546
380 * ser-tcp.c: Don't include <netinet/udp.h>.
381
382 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
383
384 * MAINTAINERS: Update my email address.
385
386 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
387
388 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
389 include file of the same name.
390
391 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
392
393 * configure.tgt: Mark v850 as multi-arched.
394 * config/v850/tm-v850.h: Remove file.
395 * config/v850/v850.mt: Eliminate TM_FILE.
396
397 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
398
399 * v850-tdep.c: Full multi-arch.
400 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
401 Define GDB_MULTI_ARCH to 2.
402
403 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
404
405 * p-exp.y (current_type): New static variable.
406 Carries the type of the expression at the position that is parsed.
407 (push_current_type, pop_current_type): Two new functions. Used
408 to store/restore current_type in expression on specific tokens.
409 (search_field): New static variable. Set to one after parsing a point
410 as at that point only a FIELDNAME token should be searched.
411 (FIELDNAME): New token. After a point only a token belonging to
412 current_type type definition is allowed.
413 (all over token rules): reset and change current_type according
414 to rules.
415 (exp '[' rule): insert implicit array index field if
416 exp is a pascal string type.
417
418 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
419
420 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
421 frame info. Use frame_info's saved_regs instead of matching member
422 in extra_frame_info throughout.
423 (v850_frame_init_saved_regs): New function.
424 (v850_init_extra_frame_info): Move most functionality into
425 v850_frame_init_saved_regs().
426 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
427 (v850_frame_find_saved_regs): Remove declaration.
428 (FRAME_FIND_SAVED_REGS): Remove definition.
429 (v850_frame_init_saved_regs): Add declaration.
430 (FRAME_INIT_SAVED_REGS): Add definition.
431
432 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
433
434 * v850-tdep.c: Begin multi-arch'ing v850.
435 (v850_target_architecture_hook): Remove function.
436 (v850_gdbarch_init): New function. Add code previously in
437 v850_target_architecture_hook().
438 (_initialize_v850_tdep): Don't set target_architecture_hook.
439 Call register_gdbarch_init() instead.
440
441 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
442
443 * gdbtypes.h (struct cplus_struct_type): Remove args field.
444 * hpread.c (hpread_read_struct_type): Remove assignments to args.
445 (fixup_class_method_type): Likewise.
446
447 2002-05-15 Daniel Jacobowitz <drow@mvista.com>
448
449 From Martin Pool <mbp@samba.org>:
450 * gdbserver/server.c (gdbserver_usage): New function.
451 (main): Call it.
452
453 2002-05-15 Jim Blandy <jimb@redhat.com>
454
455 Add macro structures to GDB's symbol tables. Nobody puts anything
456 in them yet.
457 * symtab.h (struct symtab): New member: `macro_table'.
458 * buildsym.h (pending_macros): New global variable.
459 * buildsym.c: #include "macrotab.h".
460 (buildsym_init): Initialize `pending_macros'.
461 (end_symtab): If we found macro information while reading a CU's
462 debugging info, do build a symtab structure for it. Make the
463 symtab point to the macro information, and clear the
464 `pending_macros' pointer which held it while we were reading the
465 debug info.
466 (really_free_pendings): Free any pending macro table.
467 * objfiles.h (struct objfile): New member: `macro_cache'.
468 * objfiles.c (allocate_objfile): Set allocate and free functions
469 for the macro cache's objstack.
470 (free_objfile): Empty the macro cache's obstack.
471 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
472 set new allocate and free functions for it.
473 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
474 free functions for the macro cache's objstack. (Why is this
475 function building its own objfile?)
476 * symmisc.c (print_objfile_statistics): Print statistics on the
477 macro bcache.
478 * Makefile.in: Note that buildsym.o depends on macrotab.h.
479
480 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
481
482 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
483 (REGISTER_U_ADDR): Delete definition.
484 (arm_register_u_addr): Delete declaration.
485
486 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
487
488 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
489 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
490
491 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
492
493 * gdbserver/mem-break.c (reinsert_breakpoint_by_bp): Correct typo
494 stop_at -> stop_pc.
495
496 2002-05-14 Andrew Cagney <ac131313@redhat.com>
497
498 * regcache.c (register_valid): Revise comments refering to "Not
499 available" and "unavailable".
500 * frame.c (frame_register_read): Ditto.
501 * findvar.c (value_of_register): Ditto.
502
503 2002-05-15 Andrew Cagney <cagney@redhat.com>
504
505 * Makefile.in (remote_sim_h): Replace remote-sim_h.
506 (remote-sim.o): Update dependencies.
507 (d10v-tdep.o): Specify dependencies.
508 (sim_d10v_h): Define.
509
510 2002-05-14 Jim Blandy <jimb@redhat.com>
511
512 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
513 * macrotab.c (macro_lookup_inclusion, find_definition,
514 new_macro_table): Same.
515
516 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
517 not `! strcmp ()'. This is a dubious improvement.
518 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
519
520 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
521 although it's not necessary, to avoid a warning.
522
523 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
524
525 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
526 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
527 TYPE_INSTANCE_FLAGS.
528 (struct main_type): New.
529 (struct type): Move most members to struct main_type. Change
530 cv_type and as_type to new type_chain member. Add instance_flags.
531 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
532 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
533 (finish_cv_type): Remove prototype.
534 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
535 Set TYPE_CHAIN.
536 (alloc_type_instance): New function.
537 (smash_type): New function.
538 (make_pointer_type, make_reference_type, make_function_type)
539 (smash_to_member_type, smash_to_method_type): Call smash_type.
540 (make_qualified_type): New function.
541 (make_type_with_address_space): Call make_qualified_type.
542 (make_cv_type): Likewise.
543 (finish_cv_type): Remove unnecessary function.
544 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
545 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
546 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
547 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
548 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
549 * hpread.c (hpread_read_struct_type): Likewise.
550 * stabsread.c (read_struct_type): Likewise.
551
552 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
553
554 * configure.tgt: Add a catch all sh* target, for cases like
555 sh[2,3,4]-elf and sh-hms.
556
557 2002-05-14 Keith Seitz <keiths@redhat.com>
558
559 * event-loop.c (create_file_handler): Don't do anything but
560 update data when we are given a fd which we are already
561 monitoring.
562
563 2002-05-14 Michal Ludvig <mludvig@suse.cz>
564
565 * dwarf2cfi.c (context_cpy): Copy registers correctly.
566 (update_context): Use __func__ in warnings.
567
568 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
569
570 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
571 and tcp_close to net_open and net_close.
572 (net_open): Accept "udp:" and "tcp:" specifications. Connect
573 using UDP if requested. Don't try to disable Nagle on UDP
574 sockets.
575 * remote.c (remote_serial_open): New function. Warn about UDP.
576 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
577
578 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
579
580 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
581
582 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
583
584 * configure.tgt: Remove sh-hms target.
585 * MAINTAINERS: Don't list sh-hms as a separate target.
586
587 2002-05-13 Jim Blandy <jimb@redhat.com>
588
589 Add first preprocessor macro-expansion files.
590 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
591 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
592 (splay_tree_h, macroexp_h, macrotab_h): New variable.
593 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
594 (COMMON_OBS): Add macrotab.o, macroexp.o.
595 (macroexp.o, macrotab.o): New rules.
596
597 2002-05-13 Andrew Cagney <ac131313@redhat.com>
598
599 * config/m88k/tm-m88k.h: Update copyright.
600 (m88k_target_write_pc): Declare
601 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
602 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
603 (SHIFT_INST_REGS): Update definition.
604 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
605 using old definition of TARGET_WRITE_PC.
606 * regcache.c (generic_target_write_pc): Delete code handling
607 NNPC_REGNUM.
608 * gdbarch.sh (NNPC_REGNUM): Delete.
609 * gdbarch.h, gdbarch.c: Regenerate.
610
611 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
612
613 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
614 builtin reg number.
615
616 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
617
618 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
619 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
620 (gen_address_of, gen_struct_ref, gen_repeat): Use type
621 access macros.
622 * c-typeprint.c (cp_type_print_method_args): Likewise.
623 (c_type_print_args): Likewise.
624 * d10v-tdep.c (d10v_push_arguments): Likewise.
625 (d10v_extract_return_value): Likewise.
626 * expprint.c (print_subexp): Likewise.
627 * gdbtypes.c (lookup_primitive_typename): Likewise.
628 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
629 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
630 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
631 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
632 (TYPE_VECTOR): Likewise.
633 * hpread.c (hpread_read_struct_type)
634 (fix_static_member_physnames, fixup_class_method_type)
635 (hpread_type_lookup): Likewise.
636 * mdebugread.c (parse_symbol, parse_type): Likewise.
637 * p-lang.c (is_pascal_string_type): Likewise.
638 * valops.c (hand_function_call): Likewise.
639 * x86-64-tdep.c (classify_argument): Likewise.
640
641 * hpread.c (hpread_read_function_type)
642 (hpread_read_doc_function_type): Call replace_type.
643 * dstread.c (create_new_type): Delete.
644 (decode_dst_structure, process_dst_function): Call alloc_type.
645 Use type access macros.
646
647 2002-05-12 Mark Kettenis <kettenis@gnu.org>
648
649 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
650 the're not supported by the current architecture.
651 (i387_fill_fxsave): Likewise.
652
653 2002-05-12 Fred Fish <fnf@redhat.com>
654
655 * symfile.c (default_symfile_offsets): Arrange for uninitialized
656 sect_index_xxx members to index the first slot in section_offsets
657 if all of the section_offsets are zero.
658
659 2002-05-12 Mark Kettenis <kettenis@gnu.org>
660
661 * configure.tgt (sparc-*openbsd): Remove entry accidentially
662 checked in with last change.
663
664 2002-05-12 Mark Kettenis <kettenis@gnu.org>
665
666 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
667 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
668 config.sub.
669
670 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
671
672 * Makefile.in: Update dependencies.
673
674 2002-05-11 Andrew Cagney <ac131313@redhat.com>
675
676 * language.c (local_hex_string_custom): Simplify. Do not depend
677 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
678
679 * memattr.c (mem_info_command): Replace calls to
680 longest_local_hex_string and longest_local_hex_string_custom.
681 * buildsym.c (make_blockvector): Ditto.
682 * solib.c (info_sharedlibrary_command): Ditto.
683 * tracepoint.c (tracepoints_info): Ditto.
684 * symtab.c (print_msymbol_info): Ditto.
685
686 * language.c (local_hex_string): Delete.
687 (local_hex_string_custom): Delete.
688 (longest_local_hex_string): Rename to local_hex_string.
689 (longest_local_hex_string_custom): Rename to
690 local_hex_string_custom.
691 * language.h (local_hex_string): Change parameter type to LONGEST.
692 (local_hex_string_custom): Ditto.
693 (longest_local_hex_string): Delete declaration.
694 (longest_local_hex_string_custom): Ditto.
695
696 * solib.c: Update copyright.
697 * memattr.c: Update copyright.
698
699 2002-05-11 Andrew Cagney <ac131313@redhat.com>
700
701 * arch-utils.h (legacy_register_to_value): Declare.
702 (legacy_value_to_register): Declare.
703 (legacy_convert_register_p): Declare.
704 * arch-utils.c (legacy_register_to_value): New function.
705 (legacy_value_to_register): New function.
706 (legacy_convert_register_p): New function.
707
708 * gdbarch.sh (REGISTER_TO_VALUE): Define.
709 (VALUE_TO_REGISTER): Define.
710 (CONVERT_REGISTER_P): Define.
711 * gdbarch.h, gdbarch.c: Regenerate.
712
713 * valops.c (value_assign): Use CONVERT_REGISTER_P and
714 VALUE_TO_REGISTER.
715 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
716 CONVERT_REGISTER_P.
717
718 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
719 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
720
721 * Makefile.in: Update dependencies for valops.c.
722 * valops.c: Include "gdb_assert.h".
723 (typecmp): Skip THIS parameter to methods.
724 (find_method_list): Remove static_memfuncp argument,
725 update callers. Check for stub methods.
726 (find_value_oload_method_list): Don't set *static_memfuncp.
727 (find_overload_match): Don't check for stub methods. Assert
728 that methods are not stubbed. Handle static methods.
729 (value_find_oload_method_list): Remove static_memfuncp argument.
730 * gdbtypes.c (check_stub_method): Do not add THIS pointer
731 to the argument list for static stub methods.
732 * value.h (value_find_oload_method_list): Update prototype.
733
734 2002-05-11 Andrew Cagney <ac131313@redhat.com>
735
736 * arch-utils.h (generic_register_size): Declare.
737 (generic_register_raw_size, generic_register_virtual_size): Delete
738 declarations.
739 * arch-utils.c (generic_register_raw_size): Delete.
740 (generic_register_size): New function.
741 (generic_register_virtual_size): Delete.
742
743 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
744 default generic_register_size.
745 * gdbarch.h, gdbarch.c: Re-generate.
746
747 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
748 register_virtual_size.
749 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
750 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
751
752 2002-05-11 Andrew Cagney <ac131313@redhat.com>
753
754 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
755 * gdbarch.h, gdbarch.c: Regenerate.
756 * gnu-v3-abi.c: Update copyright.
757 (vtable_address_point_offset): Update.
758 (gnuv3_rtti_type): Update.
759 (gnuv3_baseclass_offset): Update.
760 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
761 (init_fetch_link_map_offsets): Update.
762 * remote.c (get_remote_state): Update.
763
764 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
765
766 * TODO: Remove value_headof/value_from_vtable_info comment.
767 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
768 * values.c (value_headof, value_from_vtable_info): Delete.
769 * value.h (value_from_vtable_info): Delete prototype.
770
771 2002-05-11 Andrew Cagney <ac131313@redhat.com>
772
773 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
774 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
775 $(gdb_regex_h).
776 (gdb_assert_h): Define.
777 (gdb_wait_h): Define.
778 (gdb_regex_h): Define.
779
780 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
781
782 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
783 * linespec.c (find_methods): Handle GCC 3.x template constructors.
784
785 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
786
787 * nbsd-tdep.c: Fix comment.
788
789 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
790
791 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
792 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
793 (nbsd-tdep.o): New dependency list.
794 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
795 nbsd-tdep.h.
796 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
797 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
798 * nbsd-tdep.c: New file.
799 * nbsd-tdep.h: New file.
800 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
801 nbsd-tdep.h.
802 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
803 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
804 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
805 * config/sh/nbsd.mt (TDEPFILES): Ditto.
806
807 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
808
809 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
810 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
811 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
812 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
813 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
814 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
815
816 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
817
818 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
819 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
820 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
821 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
822 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
823 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
824 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
825
826 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
827
828 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
829 fetch_elfcore_registers to...
830 * i386nbsd-tdep.c: ...here.
831 (i386nbsd_use_struct_convention): Rename to...
832 (i386nbsd_aout_use_struct_convention): ...this.
833 (i386nbsd_supply_reg): New function.
834 (i386nbsd_fill_reg): New function.
835 (fetch_core_registers): Use i386nbsd_supply_reg.
836 (fetch_elfcore_registers): Likewise.
837 (_initialize_i386nbsd_tdep): New function.
838 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
839 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
840 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
841 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
842 (i386nbsd_aout_use_struct_convention): ...this.
843
844 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
845
846 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
847 (store_inferior_registers): Use shnbsd_fill_reg.
848 * shnbsd-tdep.c (sh_nbsd_supply_registers,
849 sh_nbsd_supply_register): Collapse into...
850 (shnbsd_supply_reg): ...this.
851 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
852 (shnbsd_fill_reg): ...this.
853 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
854 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
855 (fetch_core_registers): Use shnbsd_supply_reg.
856 (fetch_elfcore_registers): Use shnbsd_supply_reg.
857 (sh_nbsd_core_fns): Rename to...
858 (shnbsd_core_fns): ...this.
859 (sh_nbsd_elfcore_fns): Rename to...
860 (shnbsd_elfcore_fns): ...this.
861 (sh_nbsd_init_abi): Rename to...
862 (shnbsd_init_abi): ...this.
863 (_initialize_sh_nbsd_tdep): Rename to...
864 (_initialize_shnbsd_tdep): ...this.
865 * shnbsd-tdep.h (sh_nbsd_supply_registers,
866 sh_nbsd_supply_register, sh_nbsd_fill_registers,
867 sh_nbsd_fill_register): Remove prototypes.
868 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
869
870 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
871
872 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
873 (i387-nat.o): Delete dependency list.
874 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
875 (x86-64-linux-nat.o): Likewise.
876 * i387-nat.c: Delete file, moving contents to...
877 * i387-tdep.c: ...here.
878 * i387-nat.h: Rename...
879 * i387-tdep.h: ...to this.
880 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
881 * i386-linux-nat.c: Likewise.
882 * i386bsd-nat.c: Likewise.
883 * i386gnu-nat.c: Likewise.
884 * i386nbsd-nat.c: Likewise.
885 * i386v4-nat.c: Likewise.
886 * x86-64-linux-nat.c: Likewise.
887 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
888 * config/i386/go32.mh (NATDEPFILES): Likewise.
889 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
890 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
891 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
892 * config/i386/linux.mh (NATDEPFILES): Likewise.
893 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
894 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
895 * config/i386/obsd.mh (NATDEPFILES): Likewise.
896 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
897
898 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
899
900 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
901 (alphanbsd-nat.o): Remove dependency list.
902 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
903 * alphanbsd-nat.c: Delete. Contents moved to...
904 * alphanbsd-tdep.c: ...here.
905 (_initialize_alphanbsd_tdep): Register core functions.
906 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
907
908 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
909
910 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
911 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
912 (alphanbsd-nat.o): Likewise.
913 (alphabsd-tdep.o): New dependency list.
914 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
915 (fill_gregset): Use alphabsd_fill_reg.
916 (supply_fpregset): Use alphabsd_supply_fpreg.
917 (fill_fpregset): Use alphabsd_fill_fpreg.
918 (fetch_inferior_registers): Use struct reg and struct fpreg
919 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
920 and alphabsd_supply_fpreg.
921 (store_inferior_registers): Use struct reg and struct fpreg
922 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
923 and alphabsd_fill_fpreg.
924 * alphabsd-tdep.c: New file.
925 * alphabsd-tdep.h: New file.
926 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
927 (fetch_elfcore_registers): Use alphabsd_supply_reg and
928 alphabsd_supply_fpreg.
929 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
930 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
931
932 2002-05-11 Eric Christopher <echristo@redhat.com>
933
934 * mips-tdep.c (mips_double_register_type): Fix thinko.
935 (mips_single_register_type): Ditto.
936 * MAINTAINERS: Add self.
937
938 2002-05-11 Mark Kettenis <kettenis@gnu.org>
939
940 * i387-nat.c (i387_supply_register, i387_fill_fsave,
941 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
942 right thing on architectures with different endianness and/or
943 integer sizes.
944
945 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
946
947 From Christian Limpach <chris@Pin.LU>
948 * configure.in: Change sed expression which comments out
949 NATDEPFILES to also comment out continuation lines.
950 * configure: Regenerate.
951
952 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
953
954 * sh-tdep.c: Clean up code erroneously reintroduced by previous
955 big patch.
956
957 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
958
959 * sh-tdep.c: Include correct file.
960
961 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
962
963 New support for sh64-elf (sh5) target.
964
965 * configure.tgt: For sh64-elf target, default to sh-elf.
966
967 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
968 (struct gdbarch_tdep): Add new fields for new registers and ABI
969 info.
970
971 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
972 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
973 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
974 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
975 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
976 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
977 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
978 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
979 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
980 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
981 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
982 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
983 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
984 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
985 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
986 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
987 sh64_get_gdb_regnum, sh64_media_reg_base_num,
988 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
989 sign_extend, sh64_nofp_frame_init_saved_regs,
990 sh64_init_extra_frame_info, sh64_get_saved_register,
991 sh64_extract_struct_value_address, sh64_pop_frame,
992 sh64_push_arguments, sh64_extract_return_value,
993 sh64_store_return_value, sh64_show_media_regs,
994 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
995 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
996 sh_sh64_register_virtual_type,
997 sh_sh64_register_convert_to_virtual,
998 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
999 sh64_register_read, sh64_pseudo_register_write,
1000 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
1001 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
1002 sh64_do_pseudo_register, sh_compact_do_registers_info,
1003 sh64_do_registers_info, sh_gdbarch_init): New functions.
1004
1005 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
1006
1007 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
1008
1009 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
1010
1011 * linespec.c (decode_line_1): Check for a double quote after
1012 a filename correctly.
1013
1014 2002-05-10 Jim Blandy <jimb@redhat.com>
1015
1016 Properly track the size of the current objfile's .debug_line section.
1017 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
1018 (DWARF_LINE_SIZE): New macro.
1019 (dwarf2_build_psymtabs_hard): Record the line section's size in
1020 the partial symbol table.
1021 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
1022 symbol table.
1023
1024 2002-05-10 Petr Sorfa <petrs@caldera.com>
1025
1026 * ia64-tdep.c: Handle breakpoints on L instruction type
1027 in MLX instruction bundle by moving the breakpoint to
1028 the third slot (X instruction type) as L holds only data.
1029
1030 2002-05-10 Kevin Buettner <kevinb@redhat.com>
1031
1032 * dbxread.c (discarding_local_symbols_complaint): New complaint.
1033 (process_one_symbol): Complain about discarding local symbols
1034 due to a misplaced N_LBRAC entry.
1035
1036 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
1037
1038 From Daniel Berlin <dan@cgsoftware.com>
1039 * linespec.c (find_toplevel_char): '<' and '>' also increase and
1040 decrease the depth we are at, in the case of templates.
1041
1042 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
1043
1044 * mips-tdep.c (mips_float_register_type): New function.
1045 (mips_double_register_type): New function.
1046 (mips_print_register): Use them.
1047 (do_fp_register_row): Likewise.
1048
1049 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
1050
1051 * signals/signals.c (signals): Remove conditional compilation around
1052 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
1053 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
1054
1055 2002-05-09 Michael Snyder <msnyder@redhat.com>
1056
1057 * remote-rdp.c (remote_rdp_can_run): Remove.
1058
1059 2002-05-09 Tom Tromey <tromey@redhat.com>
1060
1061 * jv-valprint.c (java_val_print): Handle `char' as a special case
1062 of TYPE_CODE_INT.
1063
1064 2002-05-09 Michael Snyder <msnyder@redhat.com>
1065
1066 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
1067 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
1068 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
1069 str r(0123),[sp,#nn].
1070 (arm_skip_prologue): Ditto. Also make disassembly
1071 order-independent by placing it in a loop.
1072
1073 2002-05-06 Michael Snyder <msnyder@redhat.com>
1074
1075 * stabsread.c (read_type): Add recognition for new attribute:
1076 "@V;" means that an array type is actually a vector.
1077 This is analogous to the vector flag that's been added to dwarf2.
1078
1079 2002-05-09 Mark Kettenis <kettenis@gnu.org>
1080
1081 * i386-tdep.h (i386_abi): New enum.
1082 (struct gdbarch_tdep): Replace os_ident member with abi.
1083 (i386_gdbarch_register_os_abi): New prototype.
1084 * i386-tdep.c (i386_abi_names): New array.
1085 (process_note_abi_tag_sections): Removed.
1086 (process_note_sections): New function.
1087 (i386_elf_abi_from_note, i386_elf_abi): New functions.
1088 (struct i386_abi_handler): New struct.
1089 (i386_abi_handler_list): New variable.
1090 (i386_gdbarch_register_os_abi): New function.
1091 (i386_gdbarch_init): Adapt for the changes given above.
1092
1093 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
1094
1095 * gregset.h: Say "GNU/Linux".
1096
1097 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
1098
1099 * gdbtypes.c : Add new builtin type for 64 bit vectors.
1100 (build_gdbtypes): Build builtin_type_v2_float.
1101 (_initialize_gdbtypes): Register new builtin type.
1102
1103 2002-05-08 Andrew Cagney <ac131313@redhat.com>
1104
1105 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
1106 (clear_gdbarch_swap): New function.
1107 (initialize_non_multiarch): Call.
1108 (gdbarch_update_p): Before calling init(), swap out and clear the
1109 existing architecture.
1110 * gdbarch.c: Regenerate.
1111
1112 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1113
1114 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
1115 alphanbsd-tdep.c.
1116
1117 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1118
1119 * sh-nbsd-nat.c: Rename to...
1120 * shnbsd-nat.c: ...this.
1121 * sh-nbsd-tdep.c: Rename to...
1122 * shnbsd-tdep.c: ...this.
1123 * sh-nbsd-tdep.h: Rename to...
1124 * shnbsd-tdep.h: ...this.
1125 * config/sh/nbsd.mh: Use shnbsd-nat.o.
1126 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
1127
1128 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
1129
1130 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
1131 concatenation for command help messages.
1132
1133 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1134
1135 * NEWS: Note new sh*-*-netbsdelf* configuration.
1136 * configure.host: Set gdb_host_cpu to sh for all sh*.
1137 (sh*-*-netbsdelf*): New host.
1138 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
1139 (sh*-*-netbsdelf*): New target.
1140 * sh-nbsd-nat.c: New file.
1141 * sh-nbsd-tdep.c: New file.
1142 * sh-nbsd-tdep.h: New file.
1143 * config/sh/nbsd.mh: New file.
1144 * config/sh/nbsd.mt: New file.
1145 * config/sh/nm-nbsd.h: New file.
1146 * config/sh/tm-nbsd.h: New file.
1147
1148 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
1149
1150 * sh-tdep.c (sh_osabi_names): Declare.
1151 (process_note_abi_tag_sections): New function.
1152 (get_elfosabi): Ditto.
1153 (sh_gdbarch_register_os_abi): Ditto.
1154 (sh_dump_tdep): Ditto.
1155 _initialize_sh_tdep): Use gdbarch_register to register
1156 sh_gdbarch_init and sh_dump_tdep.
1157 * config/sh/tm-sh.h (sh_osabi): Declare.
1158 (gdbarch_tdep): Add sh_osabi and osabi_name members.
1159
1160 2002-05-07 Andrew Cagney <ac131313@redhat.com>
1161
1162 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
1163 (thumb_scan_prologue): Ditto.
1164 (arm_find_callers_reg): Ditto.
1165 (arm_frame_chain): Ditto.
1166 (arm_init_extra_frame_info): Ditto.
1167 (arm_frame_saved_pc): Ditto.
1168 (arm_pop_frame): Ditto.
1169 (arm_push_return_address): New function.
1170 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
1171 call_dummy_location, call_dummy_breakpoint_offset_p,
1172 call_dummy_breakpoint_offset, call_dummy_p,
1173 call_dummy_stack_adjust_p, call_dummy_words,
1174 sizeof_call_dummy_words, call_dummy_start_offset,
1175 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
1176 call_dummy_address, push_return_address and push_dummy_frame for
1177 generic dummy frames.
1178
1179 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1180
1181 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
1182 size computation for alloca.
1183 (sh_fp_frame_init_saved_regs): Likewise.
1184
1185 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
1186
1187 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
1188 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
1189 * arm-tdep.c (arm_store_return_value): Use them.
1190 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
1191 * remote-rdp.c (remote_rdp_fetch_register): Use
1192 ARM_MAX_REGISTER_RAW_SIZE.
1193 (remote_rdp_store_register): Likewise.
1194
1195 2002-05-07 Michal Ludvig <mludvig@suse.cz>
1196
1197 * dwarf2cfi.c: Code cleanup, removed unused variables,
1198 added default labels to switch {} statements.
1199 * x86-64-tdep.c: Ditto.
1200 * x86-64-linux-nat.c: Ditto.
1201
1202 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
1203
1204 * solib.h: Protect against multiple inclusion.
1205
1206 2002-05-06 Jim Blandy <jimb@redhat.com>
1207
1208 Add first preprocessor macro-expansion files.
1209 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
1210 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
1211 (splay_tree_h, macroexp_h, macrotab_h): New variable.
1212 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
1213 (COMMON_OBS): Add macrotab.o, macroexp.o.
1214 (macroexp.o, macrotab.o): New rules.
1215
1216 Separate the job of reading the line number info statement program
1217 header (...expialidocious) out into its own function.
1218 * dwarf2read.c (struct line_head, struct filenames, struct
1219 directories): Replace with...
1220 (struct line_header): New structure, containing the full
1221 contents of the statement program header, including the
1222 include directory and file name tables.
1223 (read_file_scope): If we have line number info, instead of just
1224 calling dwarf_decode_lines to do all the work, call
1225 dwarf_decode_line_header first to get a `struct line_header'
1226 containing the data in the statement program header, and then
1227 pass that to dwarf_decode_lines, which will pick up where that
1228 left off. Be sure to clean up the `struct line_header' object.
1229 (dwarf_decode_line_header, free_line_header, add_include_dir,
1230 add_file_name): New functions.
1231 (dwarf_decode_lines): Move all the code to read the statement
1232 program header into dwarf_decode_line_header. Take the line
1233 header it built as the first argument, instead of the offset to
1234 the compilation unit's line number info. Use the new `struct
1235 line_header' type instead of the old structures. No need to do
1236 cleanups here now, since we don't allocate anything.
1237 (dwarf2_statement_list_fits_in_line_number_section,
1238 dwarf2_line_header_too_long): New complaints.
1239
1240 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
1241
1242 * gdbtypes.c (init_vector_type): New function.
1243 (build_builtin_type_vec128): Simplify the representation of SIMD
1244 registers.
1245 (build_gdbtypes): Initialize new builtin vector types.
1246 (_initialize_gdbtypes): Register new vector types with gdbarch.
1247 (builtin_type_v4_float, builtin_type_v4_int32,
1248 builtin_type_v8_int16, builtin_type_v16_int8,
1249 builtin_type_v2_int32, builtin_type_v4_int16,
1250 builtin_type_v8_int8): New (renamed) SIMD types.
1251
1252 2002-05-06 Mark Kettenis <kettenis@gnu.org>
1253
1254 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
1255 (i387_fill_fxsave): Likewise.
1256
1257 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
1258
1259 * alpha-tdep.c (alpha_extract_return_value): Don't use
1260 non-constant array size in prototype.
1261
1262 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1263
1264 From Brian Taylor <briant at model dot com>:
1265 * ui-out.c (ui_out_field_core_addr): Use the function
1266 longest_local_hex_string_custom'to format addresses > 32 bits
1267 wide.
1268
1269 * ui-out.c (ui_out_field_core_addr): Update comment.
1270
1271 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1272
1273 * stack.c (select_and_print_frame): Make static. Delete the
1274 parameter `level'.
1275 (func_command): Update call.
1276 (select_frame_command): Delete code computing the frame level.
1277 * frame.h (select_and_print_frame): Delete declaration.
1278
1279 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1280
1281 * sparc-tdep.c (sparc_get_saved_register): Comment why
1282 get_prev_frame call is safe.
1283
1284 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1285
1286 * frame.h (select_frame): Delete level parameter.
1287 * stack.c (select_frame): Update. Use frame_relative_level to
1288 obtain the frame's level.
1289 (select_and_print_frame): Update call.
1290 (select_frame_command): Ditto.
1291 (up_silently_base): Ditto.
1292 (down_silently_base): Ditto.
1293 * ocd.c (ocd_start_remote): Ditto.
1294 * remote-rdp.c (remote_rdp_open): Ditto.
1295 * remote-mips.c (mips_initialize): Ditto.
1296 (common_open): Ditto.
1297 * remote-e7000.c (e7000_start_remote): Ditto.
1298 * m3-nat.c (select_thread): Ditto.
1299 * hppa-tdep.c (child_get_current_exception_event): Ditto.
1300 (child_get_current_exception_event): Ditto.
1301 * varobj.c (varobj_create): Ditto.
1302 (varobj_update): Ditto.
1303 (c_value_of_root): Ditto.
1304 * tracepoint.c (finish_tfind_command): Ditto.
1305 * corelow.c (core_open): Ditto.
1306 * arch-utils.c (generic_prepare_to_proceed): Ditto.
1307 * thread.c (info_threads_command): Ditto.
1308 (switch_to_thread): Ditto.
1309 * infrun.c (normal_stop): Ditto.
1310 (restore_selected_frame): Ditto.
1311 (restore_inferior_status): Ditto.
1312 * breakpoint.c (insert_breakpoints): Ditto.
1313 (watchpoint_check): Ditto.
1314 (bpstat_stop_status): Ditto.
1315 (do_enable_breakpoint): Ditto.
1316 * blockframe.c (flush_cached_frames): Ditto.
1317 (reinit_frame_cache): Ditto.
1318
1319 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1320
1321 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
1322 maintainer.
1323
1324 2002-05-04 Jim Blandy <jimb@redhat.com>
1325
1326 * gdbtypes.c (replace_type): Doc fix.
1327
1328 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1329
1330 * valprint.c (strcat_longest): Delete commented out function.
1331 Update copyright.
1332
1333 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1334
1335 * MAINTAINERS: Mark a29k as deleted.
1336 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
1337 Move new configurations to the top.
1338 * configure.tgt: Remove a29k.
1339 * config/a29k/tm-vx29k.h: Delete.
1340 * config/a29k/vx29k.mt: Delete.
1341 * config/a29k/tm-a29k.h: Delete.
1342 * config/a29k/a29k-udi.mt: Delete.
1343 * config/a29k/a29k.mt: Delete.
1344 * a29k-tdep.c: Delete.
1345 * remote-udi.c: Delete.
1346 * remote-mm.c: Delete.
1347 * remote-eb.c: Delete.
1348 * remote-adapt.c: Delete.
1349 * Makefile.in: Remove obsolete code.
1350 * gdbserver/Makefile.in: Ditto.
1351 * config/s390/s390x.mt: Ditto.
1352 * config/s390/s390.mt: Ditto.
1353 * config/sparc/sparclynx.mh: Ditto.
1354 * config/sparc/linux.mh: Ditto.
1355 * config/pa/hppaosf.mh: Ditto.
1356 * config/pa/hppabsd.mh: Ditto.
1357 * config/ns32k/nbsd.mt: Ditto.
1358 * config/mips/vr5000.mt: Ditto.
1359 * config/m68k/sun3os4.mh: Ditto.
1360 * config/m68k/nbsd.mt: Ditto.
1361 * config/m68k/m68klynx.mh: Ditto.
1362 * config/m32r/m32r.mt: Ditto.
1363 * config/i386/x86-64linux.mt: Ditto.
1364 * config/i386/nbsdelf.mt: Ditto.
1365 * config/i386/nbsd.mt: Ditto.
1366 * config/i386/i386lynx.mh: Ditto.
1367
1368 2002-05-04 Andrew Cagney <ac131313@redhat.com>
1369
1370 * target.c (debug_print_register): New function. Handle oversize
1371 registers.
1372 (debug_to_fetch_registers): Call.
1373 (debug_to_store_registers): Call.
1374
1375 2002-05-03 Jim Blandy <jimb@redhat.com>
1376
1377 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
1378 (read_type): Doc fix.
1379 * gdbtypes.c (replace_type): Doc fix.
1380
1381 * stabsread.c (multiply_defined_struct): New complaint.
1382 (read_struct_type): If the type we were passed isn't empty, or
1383 incomplete, don't read the new struct type into it; complain,
1384 and return the original type unchanged. Take a new `type_code'
1385 argument, which is the type code for the new type.
1386 (read_type): Rather than storing the type's type code here, pass
1387 it as an argument to read_struct_type, and let that take care of
1388 storing it. That way, we don't overwrite the original type code,
1389 so read_struct_type can use it to decide whether we're overwriting
1390 something we shouldn't.
1391 (complain_about_struct_wipeout): New function.
1392
1393 2002-05-03 Andrew Cagney <ac131313@redhat.com>
1394
1395 * gdbarch.sh: Assert that gdbarch is non-NULL.
1396 * gdbarch.c: Regenerate.
1397
1398 2002-05-03 Jason Merrill <jason@redhat.com>
1399
1400 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
1401 and return NULL.
1402
1403 2002-05-03 Michal Ludvig <mludvig@suse.cz>
1404
1405 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
1406 (x86_64_dwarf2gdb_regno_map_length),
1407 (x86_64_dwarf2_reg_to_regnum): Added.
1408 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
1409 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
1410 (_initialize_x86_64_tdep): Synced with the change above.
1411 (x86_64_skip_prologue): Reformulated message.
1412
1413 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
1414
1415 * f-exp.y: Also use new prev_lexptr variable
1416 to improve error reporting. Based on Michael Snyder
1417 2002-04-24 dated patch to c-exp.y.
1418 * jv-exp.y: Likewise.
1419 * m2-exp.y: Likewise.
1420
1421 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
1422
1423 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
1424 we are dealing with vectors.
1425
1426 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1427
1428 * config/m68k/tm-nbsd.h: Obvious fix,
1429 correct machine name.
1430
1431 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1432
1433 * p-typeprint.c (pascal_type_print_base): Add support
1434 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
1435
1436 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1437
1438 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
1439 for fondamental pascal 'char' type.
1440
1441 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
1442
1443 * p-lang.h (is_pascal_string_type): Declaration changed,
1444 new sixth argument of type char ** added.
1445 * p-lang.c (is_pascal_string_type): Implementation
1446 changed. Args length_pos, length_size, string_pos, char_size
1447 can now be NULL. New argument arrayname set to the field
1448 name of the char array. Return value set to char array
1449 field index plus one.
1450 * p-valprint.c (pascal_val_print): Adapt to new declaration of
1451 is_pascal_string_type function.
1452
1453 2002-05-02 Andrew Cagney <cagney@redhat.com>
1454
1455 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
1456 <cagney@redhat.com> change.
1457 * gdbarch.c: Regenerate.
1458
1459 2002-05-02 Andrew Cagney <cagney@redhat.com>
1460
1461 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
1462 before probing for a new one. Detect errorenous gdbarch_init
1463 functions.
1464 * gdbarch.c: Regenerate.
1465
1466 2002-05-01 Andrew Cagney <cagney@redhat.com>
1467
1468 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
1469 * config/mcore/tm-mcore.h: Ditto. Update copyright.
1470 * config/v850/tm-v850.h: Ditto. Update copyright.
1471
1472 2002-04-30 Andrew Cagney <ac131313@redhat.com>
1473
1474 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
1475 current_gdbarch.
1476
1477 2002-04-30 Michael Snyder <msnyder@redhat.com>
1478
1479 * arm-tdep.c: Whitespace clean-ups.
1480 (arm_skip_prologue): Fix thinko; two lines
1481 should have been removed as part of 4/24 change.
1482
1483 2002-04-30 Kevin Buettner <kevinb@redhat.com>
1484
1485 * rs6000-tdep.c: Added comment describing how fpscr register
1486 numbers were chosen.
1487
1488 2002-04-30 Michael Snyder <msnyder@redhat.com>
1489
1490 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
1491
1492 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
1493
1494 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
1495 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
1496 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
1497
1498 2002-04-29 Kevin Buettner <kevinb@redhat.com>
1499
1500 From Louis Hamilton <hamilton@redhat.com>:
1501 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
1502 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
1503 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
1504 not bfd-private xcoff data, to determine wordsize.
1505 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
1506
1507 2002-04-29 Andrew Cagney <ac131313@redhat.com>
1508
1509 GDB 5.2 released from 5.2 branch.
1510
1511 2002-04-29 Michal Ludvig <mludvig@suse.cz>
1512
1513 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
1514 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
1515 (x86_64_register_info_table): Added comments with register numbers.
1516
1517 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
1518
1519 * rs6000-tdep.c (rs6000_extract_return_value,
1520 rs6000_store_return_value): Handle returning vectors.
1521 (rs6000_gdbarch_init): Use
1522 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
1523 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
1524 New function.
1525 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
1526 vectors.
1527 (ppc_sysv_abi_push_arguments): Handle vector parameters.
1528 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
1529
1530 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1531
1532 * hpread.c (hpread_psymtab_to_symtab_1,
1533 hpread_psymtab_to_symtab): Replace fprintf (stderr,...)
1534 with fprintf_unfiltered (gdb_stderr,...).
1535
1536 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1537
1538 * remote-array.c (printf_monitor, write_monitor,
1539 array_insert_breakpoint, array_remove_breakpoint ):
1540 Replace fprintf (stderr,...
1541 with fprintf_unfiltered (gdb_stderr,....
1542 * remote-es.c: Likewise.
1543 * remote-os9k.c: Likewise.
1544 * remote-st.c: Likewise.
1545
1546 2002-04-28 Andreas Schwab <schwab@suse.de>
1547
1548 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
1549 linux-proc.o and gcore.o.
1550
1551 2002-04-26 Michal Ludvig <mludvig@suse.cz>
1552
1553 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
1554 code without frame pointers.
1555
1556 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1557
1558 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
1559 ON_STACK is needed.
1560
1561 2002-04-26 Ben Elliston <bje@redhat.com>
1562
1563 * target.c (do_xfer_memory): Correct reference to the new option
1564 "trust-readonly-sections".
1565
1566 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
1567
1568 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
1569 * gdbtypes.c (recursive_dump_type): Output the vector flag.
1570 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
1571 vectors.
1572 (read_array_type): Record the fact that this array type is really a
1573 vector (i.e. are passed in by value).
1574
1575 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
1576
1577 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
1578 * alpha-tdep.c (alpha_sigcontext_addr): New function.
1579 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
1580 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
1581 * alpha-linux-tdep.c: Include frame.h.
1582 (alpha_linux_sigcontext_addr): New function.
1583 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
1584 alpha_linux_sigcontext_addr.
1585 * alpha-osf1-tdep.c: Include gdbcore.h.
1586 (alpha_osf1_sigcontext_addr): New function.
1587 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
1588 alpha_osf1_sigcontext_addr.
1589 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
1590 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
1591
1592 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1593
1594 * stack.c (selected_frame_level):
1595 (select_frame): Do not set selected_frame_level.
1596 * frame.h (selected_frame_level): Delete declaration.
1597
1598 2002-04-26 Andrew Cagney <ac131313@redhat.com>
1599
1600 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
1601 convert_from_func_ptr-addr when AIX / PowerOpen.
1602
1603 2002-04-25 Andrew Cagney <ac131313@redhat.com>
1604
1605 * valops.c (hand_function_call): Call
1606 generic_save_call_dummy_addr.
1607 * frame.h (generic_save_call_dummy_addr): Declare.
1608 * blockframe.c (struct dummy_frame): Add fields call_lo and
1609 call_hi.
1610 (generic_find_dummy_frame): Check for PC in range call_lo to
1611 call_hi instead of entry_point_address.
1612 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
1613 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
1614 (generic_save_call_dummy_addr): New function.
1615
1616 2002-04-24 David S. Miller <davem@redhat.com>
1617
1618 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
1619 sparc_skip_prologue.
1620 (sparc_skip_prologue): Kill frameless_p arg, and use line number
1621 information to find prologue when possible.
1622 (sparc_prologue_frameless_p): Call examine_prologue directly.
1623 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
1624 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
1625 second argument.
1626 (SKIP_PROLOGUE): Likewise.
1627
1628 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1629
1630 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
1631 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
1632 indicate that the condition it was testing is always true.
1633 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
1634 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1635 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
1636
1637 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1638
1639 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
1640 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
1641 tdep->jb_pc and tdep->jb_elt_size.
1642 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
1643 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
1644 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
1645 * alpha-nat.c (get_longjmp_target): Remove.
1646 (JB_ELEMENT_SIZE): Ditto.
1647 (JB_PC): Ditto.
1648 * alpha-tdep.c (alpha_get_longjmp_target): New function.
1649 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
1650 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
1651 to alpha_get_longjmp_target.
1652 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
1653 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
1654 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
1655
1656 2002-04-25 Andrew Cagney <ac131313@redhat.com>
1657
1658 * README: Update to GDB 5.2.
1659
1660 2002-04-25 Andrew Cagney <ac131313@redhat.com>
1661
1662 * gdbarch.sh (LC_ALL): Set to `c'.
1663
1664 2002-04-25 Theodore A. Roth <troth@verinet.com>
1665
1666 * avr-tdep.c: Ran through gdb_indent.sh.
1667
1668 2002-04-25 Theodore A. Roth <troth@verinet.com>
1669
1670 * MAINTAINERS: Add myself as AVR maintainer.
1671 * NEWS: Note new target avr.
1672
1673 2002-04-25 Theodore A. Roth <troth@verinet.com>
1674
1675 * Makefile.in: Add support for AVR target.
1676 * configure.tgt: Add support for AVR target.
1677 * avr-tdep.c: New file
1678 * config/avr/avr.mt: New file.
1679
1680 2002-04-25 Theodore A. Roth <troth@verinet.com>
1681
1682 * MAINTAINERS: Add myself to write-after-approval.
1683
1684 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
1685
1686 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
1687 with fprintf_unfiltered (gdb_stderr,....
1688
1689 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1690
1691 Fix PR gdb/508.
1692 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
1693
1694 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
1695
1696 * p-exp.y: Also use new prev_lexptr variable
1697 to improve error reporting. Based on Michael Snyder
1698 2002-04-24 dated patch to c-exp.y.
1699
1700 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1701
1702 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
1703 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
1704 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
1705 to 0.
1706 * config/alpha/tm-alpha.h: Remove forward decls of struct type
1707 and struct value.
1708 (FUNCTION_START_OFFSET): Remove.
1709 (BREAKPOINT): Ditto.
1710
1711 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
1712
1713 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
1714 * NEWS: Ditto.
1715
1716 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1717
1718 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
1719 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
1720 alpha_linux_pc_in_sigtramp.
1721 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
1722 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
1723 alpha_osf1_pc_in_sigtramp.
1724 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
1725 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
1726 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1727 alphafbsd_pc_in_sigtramp.
1728 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
1729 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
1730 alphanbsd_pc_in_sigtramp.
1731 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
1732 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
1733
1734 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1735
1736 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
1737
1738 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1739
1740 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
1741 alphanbsd-tdep.c.
1742 (alphanbsd-nat.o): New dependency list.
1743 (alphanbsd-tdep.o): Ditto.
1744 * NEWS: Note new native NetBSD/alpha configuration.
1745 * alphanbsd-nat.c: New file.
1746 * alphanbsd-tdep.c: Ditto.
1747 * configure.host (alpha*-*-netbsd*): New host.
1748 * configure.tgt (alpha*-*-netbsd*): New target.
1749 * config/alpha/nbsd.mh: New file.
1750 * config/alpha/nbsd.mt: Ditto.
1751 * config/alpha/nm-nbsd.h: Ditto.
1752 * config/alpha/tm-nbsd.h: Ditto.
1753
1754 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1755
1756 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
1757 (alpha-osf1-tdep.o): New dependency list.
1758 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
1759 and skip_sigtramp_frame members.
1760 * alpha-linux-tdep.c: Include gdbcore.h.
1761 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
1762 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
1763 * alpha-osf1-tdep.c: New file.
1764 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
1765 alpha-osf1-dep.c.
1766 (alpha_frame_past_sigtramp_frame): New function.
1767 (alpha_dynamic_sigtramp_offset): Ditto.
1768 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
1769 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
1770 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
1771 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
1772 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
1773 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
1774 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
1775 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
1776 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
1777 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
1778 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
1779 to find_solib_trampoline_target.
1780 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
1781 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
1782 (SKIP_TRAMPOLINE_CODE): Remove.
1783 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1784 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1785 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1786 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1787 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
1788 (PROC_SIGTRAMP_MAGIC): Ditto.
1789 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1790 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1791 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
1792 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
1793 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
1794
1795 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
1796
1797 * NEWS: Note that Alpha targets are now multi-arch.
1798
1799 2002-04-24 Michael Snyder <msnyder@redhat.com>
1800
1801 * parser-defs.h (prev_lexptr): New external variable.
1802 * parse.c (parse_exp_1): Set prev_lexptr to null before
1803 calling the language-specific parser.
1804 * c-exp.y (yylex): Set prev_lexptr to start of current token.
1805 (yyerror): Use prev_lexptr in error reporting.
1806
1807 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
1808
1809 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
1810 * gregset.h: If FILL_FPXREGSET is defined, provide
1811 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
1812 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
1813 is defined, call fill_fpxregset.
1814
1815 2002-04-24 Roland McGrath <roland@frob.com>
1816
1817 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
1818 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
1819 (supply_gregset, supply_fpregset): New functions.
1820
1821 * gnu-nat.c (gnu_find_memory_regions): New function.
1822 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
1823 (gnu_xfer_memory): Add a cast.
1824
1825 2002-04-24 Michael Snyder <msnyder@redhat.com>
1826
1827 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
1828 loop. Add handling for "str lr, [sp, #-4]!" and for saves
1829 of argument regs ("str r(0123), [r11, #-nn"]).
1830 (arm_skip_prologue): Better handling for frameless functions.
1831 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
1832 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
1833
1834 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
1835
1836 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
1837 NUM_PSEUDO_REGS can be used.
1838
1839 2002-04-24 Andrew Cagney <ac131313@redhat.com>
1840
1841 * arch-utils.h: Update copyright.
1842
1843 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
1844 * gdbarch.h, gdbarch.c: Re-generate.
1845
1846 * inferior.h (IN_SIGTRAMP): Delete definition.
1847 * arch-utils.c (legacy_pc_in_sigtramp): New function.
1848 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
1849
1850 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
1851 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
1852 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
1853 (find_proc_framesize): Ditto.
1854 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
1855 (alpha_init_extra_frame_info): Ditto.
1856 * infrun.c (handle_inferior_event): Ditto.
1857 (handle_inferior_event): Ditto.
1858 (check_sigtramp2): Ditto.
1859 * blockframe.c (create_new_frame): Ditto.
1860 (get_prev_frame): Ditto.
1861 * ppc-linux-tdep.c: Update comments.
1862 * i386-linux-tdep.c: Update comments.
1863 * breakpoint.c (bpstat_what): Update comment.
1864
1865 2002-04-24 Michal Ludvig <mludvig@suse.cz>
1866
1867 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
1868 (regsets_store_inferior_registers): Removed cast to int from
1869 ptrace() calls.
1870 * gdbserver/regcache.h: Added declaration of struct inferior_info.
1871
1872 2002-04-24 David S. Miller <davem@redhat.com>
1873
1874 * i960-tdep.c (register_in_window_p): New function.
1875 (i960_find_saved_register): Use it instead of
1876 REGISTER_IN_WINDOW_P.
1877 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
1878
1879 * symtab.h (find_stab_function_addr): Kill extern.
1880 * minsyms.c (find_stab_function_addr): Remove from here...
1881 * dbxread.c: ... to here, and mark it static.
1882
1883 2002-04-20 David S. Miller <davem@redhat.com>
1884
1885 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
1886 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
1887
1888 2002-04-21 David S. Miller <davem@redhat.com>
1889
1890 * remote-vxsparc.c (vx_read_register): Fix typo, we want
1891 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
1892 (vx_write_register): Likewise.
1893
1894 2002-04-23 J. Brobecker <brobecker@gnat.com>
1895
1896 * source.c (is_regular_file): New function.
1897 (openp): Check wether file to open is a regular file
1898 to avoid opening directories.
1899
1900 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1901
1902 * findvar.c (extract_signed_integer): Cast printf argument
1903 to suppress format warning.
1904 (extract_unsigned_integer): Likewise.
1905 * infcmd.c (registers_info): Likewise.
1906 * top.c (get_prompt_1): Likewise.
1907 * valops.c (value_assign): Likewise.
1908 * valprint.c (print_decimal): Likewise.
1909
1910 2002-04-22 H.J. Lu (hjl@gnu.org)
1911
1912 * c-exp.y (typebase): Support
1913
1914 [long|long long|short] [signed|unsigned] [int|]
1915
1916 and
1917
1918 signed [long|long long|short] int
1919
1920 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1921
1922 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
1923 and vax-tdep.h.
1924 * vax-tdep.h: New file.
1925 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
1926 Make several routines static.
1927 (vax_get_saved_register): New function.
1928 (vax_gdbarch_init): New function.
1929 (_initialize_vax_tdep): Register vax_gdbarch_init.
1930 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
1931 Remove macros now under the control of gdbarch.
1932
1933 2002-04-22 Michael Snyder <msnyder@redhat.com>
1934
1935 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
1936 Some whitespace and coding standards tweaks.
1937
1938 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1939
1940 * vax-tdep.c: Include regcache.h.
1941 (vax_call_dummy_words): New.
1942 (sizeof_vax_call_dummy_words): New.
1943 (vax_fix_call_dummy): New function.
1944 (vax_saved_pc_after_call): Ditto.
1945 * config/vax/tm-vax.h: Don't include regcache.h.
1946 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
1947 (CALL_DUMMY): Remove.
1948 (CALL_DUMMY_WORDS): Define.
1949 (SIZEOF_CALL_DUMMY_WORDS): Define.
1950 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
1951
1952 2002-04-18 Michael Snyder <msnyder@redhat.com>
1953
1954 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
1955
1956 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1957
1958 * vax-tdep.c (vax_frame_chain): New function.
1959 (vax_push_dummy_frame): Ditto.
1960 (vax_pop_frame): Ditto.
1961 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
1962 (FRAMELESS_FUNCTION_INVOCATION): Use
1963 generic_frameless_function_invocation_not.
1964 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
1965 (POP_FRAME): Use vax_pop_frame.
1966
1967 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1968
1969 * vax-tdep.c (vax_store_struct_return): New function.
1970 (vax_extract_return_value): Ditto.
1971 (vax_store_return_value): Ditto.
1972 (vax_extract_struct_value_address): Ditto.
1973 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
1974 vax_store_struct_return.
1975 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
1976 (STORE_RETURN_VALUE): Use vax_store_return_value.
1977 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
1978
1979 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1980
1981 * vax-tdep.c (vax_frame_saved_pc): New function.
1982 (vax_frame_args_address_correct): Ditto.
1983 (vax_frame_args_address): Ditto.
1984 (vax_frame_locals_address): Ditto.
1985 (vax_frame_num_args): Move code to be in proximity to
1986 other frame-related functions.
1987 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
1988 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
1989 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
1990 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
1991 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
1992
1993 2002-04-22 H.J. Lu (hjl@gnu.org)
1994
1995 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
1996 includedir.
1997
1998 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
1999
2000 * vax-tdep.c (vax_frame_init_saved_regs): New function.
2001 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
2002 (FRAME_INIT_SAVED_REGS): New macro.
2003
2004 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2005
2006 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
2007
2008 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2009
2010 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
2011 where needed.
2012 (fetch_osf_core_registers): Likewise.
2013 (supply_gregset): Likewise.
2014
2015 2002-04-22 J. Brobecker <brobecker@gnat.com>
2016
2017 * symfile.h (get_section_index): Define.
2018 * symfile.c (get_section_index): New function.
2019 * mdebugread.c (SC_IS_SBSS): New macro.
2020 (SC_IS_BSS): Return true for the scBss storage class only, as
2021 the scSBss storage class refers to the .sbss section.
2022 (parse_partial_symbols): Discard the symbols which associated
2023 section does not exist.
2024 Make sure to use the .sbss section index for symbols which
2025 storage class is scBss, rather than using the .bss section index.
2026
2027 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
2028
2029 * vax-tdep.c: Update copyright years.
2030 (vax_register_name): New function.
2031 (vax_register_byte): Ditto.
2032 (vax_register_raw_size): Ditto.
2033 (vax_register_virtual_size): Ditto.
2034 (vax_register_virtual_type): Ditto.
2035 * config/vax/tm-vax.h: Update copyright years.
2036 (REGISTER_NAMES): Remove.
2037 (REGISTER_NAME): Define.
2038 (REGISTER_BYTE): Use vax_register_byte.
2039 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
2040 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
2041 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
2042
2043 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2044
2045 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
2046 declaration
2047 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
2048
2049 2002-04-21 David S. Miller <davem@redhat.com>
2050
2051 * arch-utils.c (generic_prologue_frameless_p): Kill
2052 SKIP_PROLOGUE_FRAMELESS_P code.
2053 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
2054 references.
2055 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
2056 * arc-tdep.c (arc_prologue_frameless_p): Implement.
2057 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
2058 references.
2059 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
2060 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
2061 (sparc_gdbarch_init): Pass it to
2062 set_gdbarch_prologue_frameless_p.
2063
2064 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2065
2066 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
2067 (alphabsd-nat.o): New dependency list.
2068
2069 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2070
2071 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
2072 alphafbsd-tdep.c.
2073 (alpha-linux-tdep.o): New dependency list.
2074 (alphafbsd-tdep.o): Likewise.
2075
2076 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2077
2078 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
2079 to here...
2080 * alpha-tdep.c: ...from here.
2081 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
2082
2083 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2084
2085 * config/alpha/tm-alpha.h: Move alpha_software_single_step
2086 prototype from here...
2087 * alpha-tdep.h: ...to here.
2088
2089 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2090
2091 * frame.h (selected_frame_level): Document as deprecated.
2092 (frame_relative_level): Declare.
2093 * stack.c (frame_relative_level): New function.
2094 (selected_frame_level): Document as deprecated.
2095 (select_frame): Do not set the selected_frame_level.
2096
2097 * stack.c (frame_info, record_selected_frame): Update.
2098 (frame_command, current_frame_command): Update.
2099 (up_silently_base, up_command, down_silently_base): Update.
2100 (down_command): Update.
2101 * inflow.c (kill_command): Update.
2102 * tracepoint.c (finish_tfind_command): Update.
2103 * corelow.c (core_open): Update.
2104 * thread.c (info_threads_command): Update.
2105 (do_captured_thread_select): Update.
2106 * infcmd.c (finish_command): Update.
2107 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
2108
2109 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2110
2111 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
2112
2113 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2114
2115 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
2116 type const.
2117
2118 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2119
2120 * alphafbsd-tdep.c: Update copyright years. Include
2121 alpha-tdep.h.
2122 (alphafbsd_use_struct_convention): Make static.
2123 (alphafbsd_init_abi): New function.
2124 (_initialize_alphafbsd_tdep): New function.
2125 * config/alpha/tm-fbsd.h: Update copyright years.
2126 (USE_STRUCT_CONVENTION): Remove.
2127
2128 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2129
2130 * alpha-tdep.c (alpha_abi_handler): New structure to describe
2131 an Alpha ABI variant.
2132 (alpha_abi_handler_list): Declare.
2133 (alpha_gdbarch_register_os_abi): New function.
2134 (alpha_gdbarch_init): Give registered ABI variant handlers a
2135 chance to tweak the gdbarch once we have set up defaults.
2136 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
2137
2138 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2139
2140 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
2141 to standard_coerce_float_to_double.
2142 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
2143
2144 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2145
2146 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
2147 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
2148 from gdbarch_tdep rather than a constant.
2149 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
2150 the default text address for all Alpha Unix ABIs.
2151 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
2152 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
2153
2154 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2155
2156 * alpha-tdep.h: New file. Includes several Alpha target constants
2157 taken from...
2158 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
2159 let gdbarch deal with.
2160 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
2161 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
2162 to dependency list.
2163 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
2164 Alpha target register names.
2165 * alphabsd-nat.c: Likewise.
2166 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
2167 Alpha target register names. Make serveral routines static.
2168 (alpha_get_saved_register): New function.
2169 (alpha_abi_names): New.
2170 (process_note_abi_tag_sections): New function.
2171 (get_elfosabi): New function.
2172 (alpha_gdbarch_init): New function.
2173 (alpha_dump_tdep): New function.
2174 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
2175
2176 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2177
2178 * frame.c (find_saved_register): Delete #ifdef
2179 HAVE_REGISTER_WINDOWS code.
2180 * config/sparc/tm-sparc.h: Update comments.
2181 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
2182
2183 2002-04-21 Andrew Cagney <ac131313@redhat.com>
2184
2185 * i960-tdep.c (i960_find_saved_register): New function.
2186 (i960_get_saved_register): New function.
2187 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
2188 (i960_get_saved_register): Declare.
2189 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
2190
2191 2002-04-20 David S. Miller <davem@redhat.com>
2192
2193 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
2194
2195 2002-04-20 Andrew Cagney <ac131313@redhat.com>
2196
2197 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
2198 instead of NUM_PSEUDO_REGS.
2199
2200 2002-04-20 David S. Miller <davem@redhat.com>
2201
2202 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
2203 GDB_MULTI_ARCH_PARTIAL
2204 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
2205 define, let tm-sp64.h do it.
2206
2207 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
2208
2209 * frame.c (find_saved_register): Avoid a NULL pointer
2210 dereference and actually walk the frame list.
2211
2212 2002-04-20 Andrew Cagney <ac131313@redhat.com>
2213
2214 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
2215 sorted in most most-recent-used order. Document.
2216 * gdbarch.h, gdbarch.c: Regenerate.
2217
2218 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2219
2220 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
2221 (add_inferior): Call create_register_cache.
2222 (clear_inferiors): Call free_register_cache.
2223 (inferior_regcache_data, set_inferior_regcache_data): New functions.
2224 * gdbserver/regcache.c (struct inferior_regcache_data): New.
2225 (registers): Remove.
2226 (get_regcache): New function.
2227 (create_register_cache, free_register_cache): New functions.
2228 (set_register_cache): Don't initialize the register cache here.
2229 (registers_to_string, registers_from_string, register_data): Call
2230 get_regcache.
2231 * gdbserver/regcache.h: Add prototypes.
2232 * gdbserver/server.h: Likewise.
2233
2234 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
2235
2236 * gdbserver/mem-break.c: New file.
2237 * gdbserver/mem-break.h: New file.
2238 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
2239 dependencies.
2240 * gdbserver/inferiors.c (struct inferior_info): Add target_data
2241 member.
2242 (clear_inferiors): Free target_data member if set.
2243 (inferior_target_data, set_inferior_target_data): New functions.
2244 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
2245 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
2246 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
2247 (struct inferior_linux_data): New.
2248 (linux_create_inferior): Use set_inferior_target_data.
2249 (linux_attach): Likewise. Call add_inferior.
2250 (linux_wait_for_one_inferior): New function.
2251 (linux_wait): Call it.
2252 (linux_write_memory): Add const.
2253 (initialize_low): Call set_breakpoint_data.
2254 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
2255 handling members.
2256 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
2257 call.
2258 * gdbserver/server.h: Include mem-break.h. Update inferior.c
2259 prototypes.
2260 * gdbserver/target.c (read_inferior_memory)
2261 (write_inferior_memory): New functions.
2262 * gdbserver/target.h (read_inferior_memory)
2263 (write_inferior_memory): Change macros to prototypes.
2264 (struct target_ops): Update comments. Add const to write_memory
2265 definition.
2266
2267 2002-04-19 Andrew Cagney <ac131313@redhat.com>
2268
2269 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
2270 instead of ->prev.
2271 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
2272 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
2273 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
2274 instead of ->prev.
2275
2276 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
2277
2278 Fix PR gdb/471.
2279 * gdbtypes.c (init_simd_type): Rewrite using new functions.
2280 (build_builtin_type_vec128): Ditto.
2281 (append_composite_type_field): Fix calculation of type length in
2282 union case.
2283
2284 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
2285
2286 * config/djgpp/README: Update.
2287
2288 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
2289 compiler warnings.
2290
2291 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
2292
2293 * alpha-tdep.c (setup_arbitrary_frame): Rename...
2294 (alpha_setup_arbitrary_frame): ...to this.
2295 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
2296 for alpha_setup_arbitrary_frame.
2297
2298 2002-04-18 Andrew Cagney <cagney@redhat.com>
2299
2300 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
2301 * gdbarch.h, gdbarch.c: Regenerate.
2302
2303 * defs.h (breakpoint_from_pc_fn): Delete type definition.
2304 * target.h (memory_breakpoint_from_pc): Update declaration.
2305 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
2306
2307 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
2308 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
2309 * mem-break.c (memory_breakpoint_from_pc): Ditto.
2310 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
2311 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
2312 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
2313 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
2314 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
2315 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
2316 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
2317 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
2318 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
2319
2320 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
2321 const pointer.
2322 * monitor.c (monitor_insert_breakpoint): Ditto.
2323 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
2324
2325 * config/mcore/tm-mcore.h: Update copyright.
2326 * mem-break.c: Ditto.
2327 * xstormy16-tdep.c: Ditto.
2328
2329 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
2330
2331 * p-exp.y: Add precedence rule for '^' token.
2332 This removes the shift/reduce conflicts.
2333 Remove the comment concerning these shift/reduce conflicts.
2334
2335 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
2336
2337 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
2338 (registers_powerpc_nofp): New register set for processors
2339 without floating point unit.
2340
2341 2002-04-18 David S. Miller <davem@redhat.com>
2342
2343 * MAINTAINERS: Add myself to write-after-approval.
2344
2345 2002-04-17 Michael Snyder <msnyder@redhat.com>
2346
2347 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
2348
2349 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2350
2351 * rs6000-tdep.c (frame_initial_stack_address): Use
2352 frame_register_read to read the alloca_reg.
2353
2354 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2355
2356 * frame.c (find_saved_register): Find saved registers in the next
2357 not prev frame.
2358 Fix PR gdb/365.
2359
2360 2002-04-17 Andrew Cagney <ac131313@redhat.com>
2361
2362 * gdbarch.sh (LANG): Set to ``c''.
2363
2364 2002-04-15 Andrew Cagney <ac131313@redhat.com>
2365
2366 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
2367
2368 2002-04-15 Andrew Cagney <ac131313@redhat.com>
2369
2370 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
2371 Update copyright.
2372
2373 * hpread.c (hpread_get_lntt): Add declaration.
2374 Also fix PR gdb/391.
2375
2376 2002-04-14 Andrew Cagney <ac131313@redhat.com>
2377
2378 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
2379 * aclocal.m4, configure: Re-generate.
2380 Fix PR gdb/391.
2381
2382 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
2383
2384 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
2385 instead of tm_print_insn.
2386
2387 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
2388
2389 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
2390
2391 2002-04-14 Andrew Cagney <ac131313@redhat.com>
2392
2393 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
2394 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
2395 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
2396
2397 2002-04-12 Don Howard <dhoward@redhat.com>
2398
2399 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
2400 max_user_call_depth.
2401 (init_cmd_lists): Initialize the new value;
2402 * cli/cli-script.c (execute_user_command): Limit the call depth of
2403 user defined commands. This avoids a core-dump when user commands
2404 are infinitly recursive.
2405
2406 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2407
2408 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
2409 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
2410 from tdep struct instead of DEFAULT_LR_SAVE.
2411 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
2412 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
2413 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
2414
2415 2002-04-12 Michael Snyder <msnyder@redhat.com>
2416
2417 * Remote.c: Spelling fix.
2418 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
2419 If no symbol found for "sbrk", try "_sbrk".
2420 (make_output_phdrs): Use bfd_section_name.
2421 (gcore_copy_callback): Use bfd_section_name.
2422 * eval.c: Indentation fix-ups.
2423 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
2424 in case it gets applied to an address that is already
2425 in the instruction space.
2426 * cli/cli-decode.c (help_list): Allow long lines to wrap.
2427 * symfile.c: Fix indentation, long lines.
2428 * source.c: White space fix-up.
2429
2430 2002-04-12 Andrew Cagney <cagney@redhat.com>
2431
2432 * defs.h (read_relative_register_raw_bytes): Delete declaration.
2433 * frame.c (frame_register_read): New function. Return non-zero on
2434 success.
2435 (read_relative_register_raw_bytes_for_frame): Delete.
2436 (read_relative_register_raw_bytes): Delete.
2437 * frame.h (frame_register_read): Declare.
2438 * d30v-tdep.c: Update Copyright. Use frame_register_read.
2439 * sh-tdep.c: Ditto.
2440 * infcmd.c (do_registers_info): Ditto.
2441 * hppa-tdep.c: Ditto.
2442 * rs6000-tdep.c: Ditto.
2443 * h8500-tdep.c: Ditto.
2444 * mips-tdep.c: Ditto.
2445 * h8300-tdep.c: Ditto.
2446 * z8k-tdep.c: Ditto.
2447
2448 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2449
2450 From Jimi X <jimix@watson.ibm.com>:
2451 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
2452 64-bit SysV ABI.
2453
2454 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2455
2456 From Jimi X <jimix@watson.ibm.com>:
2457 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
2458 bfd info.
2459
2460 2002-04-12 Kevin Buettner <kevinb@redhat.com>
2461
2462 From Jimi X <jimix@watson.ibm.com>:
2463 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
2464 register sets for these processor variants.
2465
2466 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
2467
2468 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
2469 registers which are allowed to fail to store.
2470 * gdbserver/linux-low.h (linux_target_ops): Likewise.
2471 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
2472 (ppc_cannot_store_register): FPSCR may not be storable.
2473 * regformats/reg-ppc.dat: Support FPSCR.
2474
2475 2002-04-11 Kevin Buettner <kevinb@redhat.com>
2476
2477 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
2478 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
2479 Add fpscr as an invalid/unfetchable register.
2480 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
2481 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
2482 (fill_fpregset): Add support for register fpscr.
2483 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
2484 (fill_gregset): Account for the fact that register ``mq'' might
2485 not exist.
2486 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
2487 (registers_power): Add fpscr to register set at slot 71.
2488 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
2489 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
2490
2491 2002-04-11 Michael Snyder <msnyder@redhat.com>
2492
2493 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
2494 * configure: Regenerate.
2495 * config.in: Regenerate.
2496 * acconfig.h: Add define for _SYSCALL32.
2497 * core-sol2.c: Remove #define _SYSCALL32.
2498 * solib-legacy.c: Remove #define _SYSCALL32.
2499
2500 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2501
2502 * stack.c (select_frame): Cleanup internal error message, do not
2503 use %p.
2504
2505 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2506
2507 * stack.c (select_frame): Check that selected_frame and the
2508 specified level are as expected.
2509 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
2510 Update copyright.
2511 * frame.h (struct frame_info): Add field `level'. Update
2512 copyright.
2513 Work-in-progress PR gdb/464.
2514
2515 2002-04-10 Andrew Cagney <ac131313@redhat.com>
2516
2517 * maint.c (maint_print_section_info): Rename print_section_info.
2518 (print_bfd_section_info, print_objfile_section_info): Update.
2519 * inferior.h (struct gdbarch): Add opaque declaration.
2520 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
2521 * gdbarch.h: Regenerate.
2522
2523 2002-04-10 Michal Ludvig <mludvig@suse.cz>
2524
2525 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
2526 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
2527 (kernel_u_size): Added.
2528 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
2529 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
2530
2531 2002-04-04 Jim Ingham <jingham@apple.com>
2532
2533 * valarith.c (find_size_for_pointer_math): New function, either returns
2534 the size for a pointer's target, returns 1 for void *, or errors for
2535 incomplete types.
2536 (value_add, value_sub): use find_size_for_pointer_math.
2537
2538 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2539
2540 * linux-low.c (linux_look_up_symbols): New hook.
2541 (linux_target_ops): Add linux_look_up_symbols.
2542 * remote-utils.c (decode_address): New function.
2543 (look_up_one_symbol): New function.
2544 * server.c (handle_query): Call target look_up_symbols hook.
2545 * server.h (look_up_one_symbol): Add prototype.
2546 * target.h (struct target_ops): Add look_up_symbols hook.
2547
2548 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2549
2550 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
2551 * ChangeLog: Correct paths in last ChangeLog entry.
2552
2553 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2554
2555 * gdbserver/linux-low.h: Remove obsolete prototypes.
2556 (struct linux_target_ops): New.
2557 (extern the_low_target): New.
2558 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2559 (register_addr): Use the_low_target explicitly.
2560 (fetch_register): Likewise.
2561 (usr_fetch_inferior_registers): Likewise.
2562 (usr_store_inferior_registers): Likewise.
2563 * gdbserver/linux-arm-low.c (num_regs): Remove.
2564 (arm_num_regs): Define.
2565 (arm_regmap): Renamed from regmap, made static.
2566 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
2567 made static.
2568 (arm_cannot_store_register): Renamed from cannot_store_register,
2569 made static.
2570 (the_low_target): New.
2571 * gdbserver/linux-i386-low.c (num_regs): Remove.
2572 (i386_num_regs): Define.
2573 (i386_regmap): Renamed from regmap, made static.
2574 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
2575 made static.
2576 (i386_cannot_store_register): Renamed from cannot_store_register,
2577 made static.
2578 (the_low_target): New.
2579 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2580 (ia64_num_regs): Define.
2581 (ia64_regmap): Renamed from regmap, made static.
2582 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
2583 made static.
2584 (ia64_cannot_store_register): Renamed from cannot_store_register,
2585 made static.
2586 (the_low_target): New.
2587 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2588 (m68k_num_regs): Define.
2589 (m68k_regmap): Renamed from regmap, made static.
2590 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
2591 made static.
2592 (m68k_cannot_store_register): Renamed from cannot_store_register,
2593 made static.
2594 (the_low_target): New.
2595 * gdbserver/linux-mips-low.c (num_regs): Remove.
2596 (mips_num_regs): Define.
2597 (mips_regmap): Renamed from regmap, made static.
2598 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
2599 made static.
2600 (mips_cannot_store_register): Renamed from cannot_store_register,
2601 made static.
2602 (the_low_target): New.
2603 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2604 (ppc_num_regs): Define.
2605 (ppc_regmap): Renamed from regmap, made static.
2606 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
2607 made static.
2608 (ppc_cannot_store_register): Renamed from cannot_store_register,
2609 made static.
2610 (the_low_target): New.
2611 * gdbserver/linux-s390-low.c (num_regs): Remove.
2612 (s390_num_regs): Define.
2613 (s390_regmap): Renamed from regmap, made static.
2614 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
2615 made static.
2616 (s390_cannot_store_register): Renamed from cannot_store_register,
2617 made static.
2618 (the_low_target): New.
2619 * gdbserver/linux-sh-low.c (num_regs): Remove.
2620 (sh_num_regs): Define.
2621 (sh_regmap): Renamed from regmap, made static.
2622 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
2623 made static.
2624 (sh_cannot_store_register): Renamed from cannot_store_register,
2625 made static.
2626 (the_low_target): New.
2627 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2628 (the_low_target): New.
2629
2630 2002-04-09 Andrew Cagney <ac131313@redhat.com>
2631
2632 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
2633 override FP_REGNUM with frame->fp. Update copyright.
2634 * parse.c (num_std_regs, std_regs): Delete.
2635 (target_map_name_to_register): Do not search std_regs. Update
2636 function description.
2637 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
2638 declarations. Update copyright.
2639 Fix PR gdb/251.
2640
2641 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2642
2643 * gdbserver/Makefile.in: Add stamp-h target.
2644 * gdbserver/configure.in: Create stamp-h.
2645 * gdbserver/configure: Regenerated.
2646
2647 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2648
2649 * gdbserver/inferiors.c: New file.
2650 * gdbserver/target.c: New file.
2651 * gdbserver/target.h: New file.
2652 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
2653 dependencies.
2654 * gdbserver/linux-low.c (inferior_pid): New static variable,
2655 moved from server.c.
2656 (linux_create_inferior): Renamed from create_inferior.
2657 Call add_inferior. Return 0 on success instead of a PID.
2658 (linux_attach): Renamed from myattach.
2659 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
2660 (linux_thread_alive): Renamed from mythread_alive.
2661 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
2662 child dies.
2663 (linux_resume): Renamed from myresume. Add missing ``return 0''.
2664 (regsets_store_inferior_registers): Correct error message.
2665 Add missing ``return 0''.
2666 (linux_fetch_registers): Renamed from fetch_inferior_registers.
2667 (linux_store_registers): Renamed from store_inferior_registers.
2668 (linux_read_memory): Renamed from read_inferior_memory.
2669 (linux_write_memory): Renamed from write_inferior_memory.
2670 (linux_target_ops): New structure.
2671 (initialize_low): Call set_target_ops ().
2672 * gdbserver/remote-utils.c (unhexify): New function.
2673 (hexify): New function.
2674 (input_interrupt): Send signals to ``signal_pid''.
2675 * gdbserver/server.c (inferior_pid): Remove.
2676 (start_inferior): Update create_inferior call.
2677 (attach_inferior): Call add_inferior.
2678 (handle_query): New function.
2679 (main): Call handle_query for `q' packets.
2680 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
2681 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
2682
2683 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2684
2685 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
2686 dependencies.
2687 * gdbserver/configure.in: Check for <string.h>
2688 * gdbserver/configure: Regenerate.
2689 * gdbserver/config.in: Regenerate.
2690 * gdbserver/gdbreplay.c: Include needed system headers.
2691 (remote_open): Remove strchr prototype.
2692 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
2693 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
2694 (supply_register_by_name): Likewise.
2695 (collect_register): Change buf argument to void *.
2696 (collect_register_by_name): Likewise.
2697 * gdbserver/regcache.h: Add missing prototypes.
2698 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
2699 * gdbserver/server.c (handle_query): New function.
2700 (attached): New static variable, moved out of main.
2701 (main): Quiet longjmp clobber warnings.
2702 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
2703 * gdbserver/utils.c (error): Remove NORETURN.
2704 (fatal): Likewise.
2705
2706 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
2707
2708 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
2709 after the last symbol in a block.
2710
2711 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
2712
2713 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
2714 is non zero as a found symbol.
2715
2716 2002-04-08 Andrew Cagney <ac131313@redhat.com>
2717
2718 * findvar.c: Include "builtin-regs.h".
2719 (value_of_register): Call value_of_builtin_reg when applicable.
2720 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
2721 (target_map_name_to_register): Call
2722 builtin_reg_map_name_to_regnum.
2723 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
2724 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
2725 (builtin_regs_h): Define.
2726 (builtin-regs.o): New target.
2727 (findvar.o): Add $(builtin_regs_h).
2728 * builtin-regs.c, builtin-regs.h: New files.
2729 * std-regs.c: New file.
2730 Partial fix for PR gdb/251.
2731
2732 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2733
2734 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
2735 it's no longer required.
2736
2737 2002-04-08 Andrew Cagney <ac131313@redhat.com>
2738
2739 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
2740
2741 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2742
2743 From Jimi X <jimix@watson.ibm.com>:
2744 * rs6000-tdep.c (rs6000_software_single_step): Use
2745 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
2746 and size. Use target_insert_breakpoint() and
2747 target_remove_breakpoint() to insert and remove breakpoints
2748 instead of explicit memory reads and writes.
2749
2750 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2751
2752 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
2753 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
2754 ELF_OBJECT_FORMAT ifdef.
2755
2756 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2757
2758 From Jimi X <jimix@watson.ibm.com>:
2759 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
2760
2761 2002-04-08 Kevin Buettner <kevinb@redhat.com>
2762
2763 From Jimi X <jimix@watson.ibm.com>:
2764 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
2765 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
2766
2767 2002-04-07 Mark Kettenis <kettenis@gnu.org>
2768
2769 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
2770 s/asprintf/xasprintf/.
2771 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
2772
2773 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2774
2775 I believe Jeff Law denies responsability for this one:
2776 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
2777 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
2778 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
2779 Work-around for PR gdb/366.
2780
2781 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
2782
2783 * remote-e7000.c (write_small, e7000_read_inferior_memory,
2784 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
2785 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
2786
2787 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
2788
2789 * sh-tdep.c (sh_fp_frame_init_saved_regs,
2790 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
2791 information.
2792
2793 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2794
2795 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
2796 maintainer.
2797
2798 2002-04-07 Andrew Cagney <ac131313@redhat.com>
2799
2800 * README (Reporting Bugs in GDB): Document the bug web page as the
2801 prefered way of submitting bugs.
2802 Fix PR gdb/402.
2803
2804 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2805
2806 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
2807 -1. Update comment.
2808 * gdbarch.h, gdbarch.c: Re-generate.
2809
2810 2002-04-07 Andreas Schwab <schwab@suse.de>
2811
2812 * m68klinux-nat.c (fill_fpregset): Properly pass address of
2813 buffer to regcache_collect.
2814
2815 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2816
2817 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
2818 * gdbarch.c, gdbarch.h: Re-generate.
2819
2820 2002-04-06 Andrew Cagney <ac131313@redhat.com>
2821
2822 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
2823 declaration. Fix -Werror.
2824
2825 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
2826
2827 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
2828 * gdbarch.c: Regenerate.
2829
2830 2002-04-05 Michael Snyder <msnyder@redhat.com>
2831
2832 * breakpoint.c (clear_command): Rewrite middle section to
2833 combine two loops with identical control conditions.
2834 Add a cleanup to eliminate a memory leak.
2835 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
2836
2837 2002-04-05 H.J. Lu (hjl@gnu.org)
2838
2839 * solib-svr4.c (bkpt_names): Add "__start".
2840
2841 2002-04-04 Andrew Cagney <ac131313@redhat.com>
2842
2843 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
2844 as test for 64 bit target.
2845
2846 2002-04-05 Andrew Cagney <ac131313@redhat.com>
2847
2848 * h8500-tdep.c (h8500_write_fp): Delete function.
2849 * dwarf2cfi.c (cfi_write_fp): Document as not used.
2850 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
2851 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
2852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
2853 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
2854 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
2855 (s390_write_fp):
2856 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
2857 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
2858 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
2859 (d10v_write_fp): Delete function.
2860 * inferior.h (write_fp, generic_target_write_fp): Delete
2861 declarations.
2862 * regcache.c (generic_target_write_fp): Delete function.
2863 (write_fp): Delete function.
2864 * gdbarch.sh (TARGET_WRITE_FP): Delete.
2865 * gdbarch.h, gdbarch.c: Regenerate.
2866 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
2867 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
2868 (sparc64_write_fp): Delete declaration.
2869 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
2870 (h8500_write_fp): Delete declaration.
2871
2872 2002-04-04 Andrew Cagney <ac131313@redhat.com>
2873
2874 * sparc-tdep.c (sparc64_write_fp): Delete.
2875 (sparc_push_dummy_frame): Replace write_fp call with code to store
2876 the FP directly.
2877 (sparc_gdbarch_init): Do not initialize write_fp.
2878
2879 2002-04-05 Kevin Buettner <kevinb@redhat.com>
2880
2881 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
2882 clause.
2883
2884 2002-03-29 Jim Blandy <jimb@redhat.com>
2885
2886 * stack.c (get_selected_block): Add new argument `addr_in_block',
2887 used to return the exact code address we used to select the block,
2888 not just the block.
2889 * blockframe.c (get_frame_block, get_current_block): Same.
2890 * frame.h (get_frame_block, get_current_block,
2891 get_selected_block): Update declarations.
2892 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
2893 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
2894
2895 2002-04-05 Michael Snyder <msnyder@redhat.com>
2896
2897 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
2898 warning message.
2899
2900 2002-04-05 J. Brobecker <brobecker@gnat.com>
2901
2902 * utils.c (xfullpath): New function.
2903 * defs.h (xfullpath): Add declaration.
2904 * source.c (openp): Use xfullpath in place of gdb_realpath to
2905 avoid resolving the basename part of filenames when the
2906 associated file is a symbolic link. This fixes a potential
2907 inconsistency between the filenames known to GDB and the
2908 filenames it prints in the annotations.
2909 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
2910 to be able to match a filename with either the real filename, or
2911 the name of any symbolic link to this file.
2912 (lookup_partial_symtab): Ditto.
2913
2914 2002-04-04 Michael Snyder <msnyder@redhat.com>
2915
2916 * breakpoint.c: Add support for hardware breakpoints in overlays.
2917 (overlay_events_enabled): New state variable.
2918 (insert_breakpoints): Use overlay_events_enabled to decide
2919 whether to attempt to set a breakpoint at the overlay load addr.
2920 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2921 (remove_breakpoint): Use overlay_events_enabled to decide
2922 whether breakpoints need to be removed from overlay load addr.
2923 Handle bp_hardware_breakpoint as well as bp_breakpoint.
2924 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
2925 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
2926 disable_overlay_breakpoints): Update overlay_events_enabled.
2927
2928 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
2929
2930 * dwarf2read.c (struct function_range): New.
2931 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
2932 (check_cu_functions): New.
2933 (read_file_scope): Initialize global function lists.
2934 Call dwarf_decode_line after processing children.
2935 (read_func_scope): Add to global function list.
2936 (dwarf_decode_lines): Call check_cu_functions everywhere
2937 record_line is called. Call record_line with a linenumber
2938 of 0 to mark sequence ends.
2939
2940 2002-04-04 Michal Ludvig <mludvig@suse.cz>
2941
2942 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
2943 change sync with glibc.
2944
2945 2002-04-03 Jim Blandy <jimb@redhat.com>
2946
2947 * configure.in: Call AC_C_INLINE.
2948 * configure: Regenerated.
2949
2950 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
2951
2952 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
2953 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
2954
2955 2002-03-31 Mark Kettenis <kettenis@gnu.org>
2956
2957 * NEWS: Mention gcore support on FreeBSD/i386.
2958
2959 * fbsd-proc.c: New file.
2960 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
2961 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
2962
2963 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
2964 while statement.
2965
2966 2002-03-29 Jim Blandy <jimb@redhat.com>
2967
2968 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
2969 unescaped newlines in string literals, but newer ones don't. So
2970 escape them.
2971
2972 2002-03-26 Michael Snyder <msnyder@redhat.com>
2973 Andrew Cagney <cagney@redhat.com>
2974
2975 * cli/cli-dump.c: New file. Dump memory to file,
2976 restore file to memory.
2977 * cli/cli-dump.h: New file.
2978 * Makefile.in: Add rules, dependencies for cli-dump.o.
2979 * NEWS: Mention new commands.
2980
2981 2002-03-28 Michael Snyder <msnyder@redhat.com>
2982
2983 * symfile.c (symbol_file_add): Move test for null symbols to later.
2984
2985 2002-03-27 Andrew Cagney <ac131313@redhat.com>
2986
2987 From veksler at il.ibm.com:
2988 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
2989 the xstrduped original path.
2990 Fix PR gdb/417.
2991
2992 2002-03-27 Michael Snyder <msnyder@redhat.com>
2993
2994 * breakpoint.c (_initialize_breakpoint): Clean up help string.
2995 * infcmd.c (_initialize_infcmd): Ditto.
2996 * language.c (_initialize_language): Ditto.
2997 * symfile.c (_initialize_symfile): Ditto.
2998 * top.c (_init_main): Ditto.
2999 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3000
3001 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
3002
3003 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
3004 vector registers handling.
3005 (skip_prologue): Handle new AltiVec instructions. Fill in new
3006 fields of frame data.
3007 (frame_get_saved_regs): Fill in information for AltiVec registers.
3008
3009 2002-03-27 Jim Blandy <jimb@redhat.com>
3010
3011 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
3012 a function; leave this macro here to invoke that function.
3013 (symbol_init_mangled_name): Declaration for that function.
3014 * symtab.c (symbol_init_mangled_name): New function.
3015
3016 2002-03-27 Andrew Cagney <ac131313@redhat.com>
3017
3018 * valarith.c: Replace strerror with safe_strerror.
3019 * tracepoint.c: Ditto.
3020 * lin-lwp.c: Ditto.
3021 * go32-nat.c: Ditto.
3022 * inflow.c: Ditto.
3023 * gnu-nat.c: Ditto.
3024
3025 2002-03-27 Andreas Schwab <schwab@suse.de>
3026
3027 * event-top.c (command_line_handler): Remove useless if.
3028
3029 2002-03-27 Andreas Jaeger <aj@suse.de>
3030
3031 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
3032 comment.
3033
3034 2002-03-27 Michal Ludvig <mludvig@suse.cz>
3035
3036 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
3037 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
3038 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
3039 (x86_64_linux_dr_get_status, supply_gregset),
3040 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
3041 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
3042 (x86_64_register_info_table): Add.
3043 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
3044 (x86_64_register_raw_size, x86_64_register_virtual_type),
3045 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
3046 general x86_64_register_info_table.
3047 (i386_gdbarch_init): gdbarch_register_bytes is now set
3048 dynamicaly during initialization.
3049 * regformats/reg-x86-64.dat: Synced with changes to registers above.
3050 * gdbserver/linux-x86-64-low.c: Ditto.
3051
3052 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3053
3054 * gdbserver/server.c (main): Call target_signal_to_host_p
3055 and target_signal_to_host on signals received from the remote.
3056 * gdbserver/remote-utils.c (prepare_resume_reply): Call
3057 target_signal_from_host on signals sent to the remote.
3058 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
3059 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
3060
3061 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3062
3063 * signals/signals.c: Include "server.h" in gdbserver build.
3064 (target_signal_from_name): Don't use STREQ.
3065 (_initialize_signals): Likewise. Don't include function in
3066 gdbserver build.
3067
3068 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
3069
3070 * signals.c: Moved to...
3071 * signals/signals.c: Here.
3072 * Makefile (signals.o): Update.
3073
3074 2002-03-26 Jeff Law (law@redhat.com)
3075
3076 * somread.c (som_symtab_read): Remove some commented out code and
3077 updated related comments. Do not set the minimal symbol table to
3078 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
3079 in a dynamic executable.
3080 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
3081 where we are unable to find the minimal symbol for the given
3082 PC value.
3083
3084 2002-03-25 Jeff Law (law@redhat.com)
3085
3086 * linux-proc.c (read_mapping): Scan up to end of line for filename.
3087
3088 2002-03-25 Michal Ludvig <mludvig@suse.cz>
3089
3090 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
3091
3092 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3093
3094 * command.h: Update copyright.
3095 (struct cmd_list_element): Replace definition with opaque
3096 declaration.
3097 (enum cmd_types): Document that it will eventually be moved to
3098 cli/cli-decode.h
3099 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
3100 (MALLOCED_REPLACEMENT): Delete macro.
3101 * Makefile.in (cli_decode_h): Add $(command_h).
3102 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
3103 * top.c: Include "cli/cli-decode.h".
3104 * completer.c: Include "cli/cli-decode.h".
3105 * maint.c: Include "cli/cli-decode.h".
3106 * cli/cli-decode.h: Include "command.h".
3107 (enum command_class): Delete.
3108 (enum cmd_types): Comment out.
3109 (enum cmd_auto_boolean): Delete.
3110 (enum var_types): Delete.
3111
3112 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3113
3114 * cli/cli-decode.c: Include "gdb_assert.h".
3115 (add_set_or_show_cmd): New static function.
3116 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
3117 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
3118 all fields, such as func, from the set command.
3119
3120 2002-03-23 Andrew Cagney <ac131313@redhat.com>
3121
3122 * MAINTAINERS (sh-elf): Change warning flag to -w.
3123
3124 2002-03-23 Andrew Cagney <cagney@redhat.com>
3125
3126 * defs.h (error): Add printf format attribute.
3127 * thread-db.c (thread_from_lwp): Fix error format string.
3128 * stack.c (parse_frame_specification): Ditto.
3129 * cli/cli-decode.c (undef_cmd_error): Ditto.
3130 * scm-lang.c (scm_lookup_name): Ditto.
3131 * tracepoint.c (trace_error): Ditto.
3132 * remote-utils.c (usage): Ditto.
3133 * remote.c (compare_sections_command): Ditto.
3134 Fix PR gdb/328.
3135
3136 2002-03-22 Andrew Cagney <ac131313@redhat.com>
3137
3138 * gdbtypes.c (append_composite_type_field): New function.
3139 (init_composite_type): New function.
3140 * gdbtypes.h (append_composite_type_field): Declare.
3141 (init_composite_type): Ditto.
3142
3143 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
3144
3145 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
3146 function.
3147 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
3148 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
3149 structure returning convention for SYSV ABI case, but not
3150 for GNU/Linux, FreeBSD, or NetBSD.
3151
3152 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
3153
3154 * symtab.h (lookup_block_symbol): Add mangled_name argument
3155 to prototype.
3156
3157 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
3158 with new mangled_name argument.
3159 * linespec.c (decode_line_1): Likewise.
3160 * valops (value_of_this): Likewise.
3161 * symtab.c (lookup_transparent_type): Likewise.
3162 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
3163 (lookup_symbol): If we are given a mangled name, pass it down
3164 to lookup_symbol_aux.
3165 (lookup_block_symbol): If we are given a mangled name to check
3166 against, only return symbols which match it.
3167
3168 2002-03-22 Christopher Faylor <cgf@redhat.com>
3169
3170 * win32-nat.c (child_create_inferior): Check for proper shell to use
3171 here, in case the user changes it on the fly.
3172 (_initialize_inftarg): Remove shell path considerations.
3173
3174 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
3175
3176 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
3177 for gdbarch_max_register_raw_size and max_register_virtual_size.
3178 Adjust copyright year.
3179
3180 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
3181
3182 * dbxread.c (process_one_symbol): Extend the first N_SLINE
3183 in a function to cover the entire beginning of the function
3184 as well if it does not already.
3185
3186 2002-03-21 Tom Rix <trix@redhat.com>
3187
3188 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
3189 (rs6000_ptrace64): Renamed from ptrace64.
3190
3191 2002-03-20 Martin M. Hunt <hunt@redhat.com>
3192
3193 * gdbserver/remote-utils.c (remote_open): Don't call
3194 getprotobyname, we're all using TCP here so just use
3195 IPPROTO_TCP.
3196 * gdbserver/gdbreplay.c (remote_open): Ditto.
3197
3198 2002-03-20 Martin M. Hunt <hunt@redhat.com>
3199
3200 * regcache.c (_initialize_regcache): No need to call
3201 build_regcache() at this time; it gets called whenever
3202 the gdbarch changes.
3203
3204 2002-03-20 David O'Brien <obrien@FreeBSD.org>
3205
3206 * sparc-nat.c: Include sys/param.h where possible.
3207
3208 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
3209
3210 Fix PR gdb/422.
3211 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
3212 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
3213 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
3214 complex types.
3215 * stabsread.c (rs6000_builtin_type): Likewise.
3216 (read_sun_floating_type): Likewise.
3217
3218 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3219
3220 * stabsread.c (read_member_functions): Remove skip code for duplicate
3221 constructor/destructor methods. Use standard parsing for these
3222 methods and just do not chain them to the list of methods after
3223 parsing.
3224
3225 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
3226
3227 * coffread.c: Remove redundant static declarations. Replace
3228 occurrences of `PTR' with `void *'.
3229 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
3230 * top.h (quit_cover): Likewise.
3231 * defs.h (catch_errors): Likewise.
3232
3233 2002-03-18 Andrew Cagney <ac131313@redhat.com>
3234
3235 * defs.h (XMALLOC): Define.
3236 * gdb-events.sh (XMALLOC): Delete macro.
3237 * gdb-events.c, gdb-events.h: Regenerate.
3238 * gdbarch.sh (XMALLOC): Delete macro.
3239 * gdbarch.c: Regenerate.
3240 * serial.c (XMALLOC): Delete macro.
3241 * ui-file.c (XMALLOC): Ditto.
3242 * ser-unix.h (XMALLOC): Ditto.
3243 * sh-tdep.c (XMALLOC): Ditto.
3244 * ui-out.c (XMALLOC): Ditto.
3245 * utils.c (XMALLOC): Ditto.
3246 * i386-tdep.c (XMALLOC): Ditto.
3247 * gdb-events.c (XMALLOC): Ditto.
3248 * d10v-tdep.c (XMALLOC): Ditto.
3249 * cli-out.c (XMALLOC): Ditto.
3250
3251 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
3252 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
3253 * ui-file.c, ui-out.c: Ditto.
3254
3255 2002-03-18 Andrew Cagney <ac131313@redhat.com>
3256
3257 * command.h (struct cmd_list_element): Add field context.
3258 (set_cmd_context, get_cmd_context): Declare.
3259 * cli/cli-decode.h: Ditto.
3260 * cli/cli-decode.c (get_cmd_context): New function.
3261 (set_cmd_context): New function.
3262 (add_cmd): Initialize context.
3263 Part of fixing PR gdb/145 and PR gdb/146.
3264
3265 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3266
3267 * cli/cli-decode.c (cmd_type): New function.
3268 * command.h (cmd_type): Declare.
3269 * infrun.c (set_schedlock_func): Call function cmd_type.
3270 * kod.c (kod_set_os): Call cmd_type.
3271 * cris-tdep.c (cris_version_update): Use function cmd_type.
3272 (cris_mode_update, cris_abi_update): Ditto.
3273
3274 * command.h: (execute_cmd_post_hook): Declare.
3275 (execute_cmd_pre_hook): Declare.
3276 * cli/cli-script.c (clear_hook_in_cleanup): New function.
3277 (execute_cmd_post_hook, execute_cmd_pre_hook): New
3278 functions. Execute pre/post hook while ensuring that afterwords
3279 hook_in is cleared.
3280 * top.c (execute_command): Use execute_cmd_post_hook, and
3281 execute_cmd_pre_hook to execute pre/post commands.
3282 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
3283 hook_stop_stub.
3284 (hook_stop_stub): Call execute_cmd_pre_hook.
3285
3286 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3287
3288 * kod.c (kod_set_os): Revert previous change. Is called by ``info
3289 set'' and this leads to a core dump. Move xstrdup of
3290 operating_system to after check that it is not NULL.
3291
3292 2002-03-17 Andrew Cagney <ac131313@redhat.com>
3293
3294 * kod.c (kod_set_os): Remove unnecessary check that
3295 ``command->type'' is set_cmd.
3296
3297 * valprint.c (set_input_radix): Use input_radix.
3298 (set_output_radix): Use output_radix.
3299 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
3300 isn't reverted.
3301
3302 2002-03-16 Andrew Cagney <ac131313@redhat.com>
3303
3304 * value.h (struct value): Delete field ``substring_addr''. Change
3305 aligner fields to force_doublest_align, force_longest_align,
3306 force_core_addr_align and force_pointer_aligh.
3307
3308 * value.h (struct value): Fix typo in above change.
3309
3310 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3311
3312 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
3313 to fix internal_error from ``maintenance print architecture''.
3314
3315 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3316
3317 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
3318 for gcc versions after gcc-2.8.1.
3319
3320 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3321
3322 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
3323 for method resolution. Restore adjustment of ``this'' pointer after
3324 calling value_struct_elt, which was accidentally removed during the
3325 HP merge.
3326
3327 2002-03-15 Andrew Cagney <ac131313@redhat.com>
3328
3329 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
3330 value_of_register.
3331 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
3332 get_saved_register.
3333 * value.h (value_of_register): Update.
3334
3335 2002-03-14 Richard Henderson <rth@redhat.com>
3336
3337 * configure.in: Detect declaration for canonicalize_file_name.
3338 * utils.c (canonicalize_file_name): Declare, if needed.
3339 (gdb_realpath): Prefer realpath if available and usable.
3340 * config.in, configure: Rebuild.
3341
3342 2002-03-14 Richard Henderson <rth@redhat.com>
3343
3344 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
3345 a constant array bound.
3346
3347 * MAINTAINERS: Add myself to write-after-approval.
3348
3349 2002-03-14 Michael Snyder <msnyder@redhat.com>
3350
3351 * symfile.c (syms_from_objfile): Return immediately if no syms.
3352 (symbol_file_add): Return immediately if no syms.
3353 (find_sym_fns): Return immediately if no syms.
3354
3355 2002-03-13 Michal Ludvig <mludvig@suse.cz>
3356
3357 * gdbserver/remote-util.c (remote_open): Print remote-side's
3358 IP address when remote debugging over the network.
3359
3360 2002-03-12 David O'Brien <obrien@FreeBSD.org>
3361
3362 * config/sparc/fbsd.mh: Fix copyright.
3363 * config/sparc/fbsd.mt: Likewise.
3364
3365 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
3366
3367 * MAINTAINERS: Fix typo in name of gdb warnings option.
3368 (x86-64): Fix formating so that this can be parsed by awk.
3369
3370 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
3371
3372 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
3373 * defs.h: Include "gdb/signals.h".
3374 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
3375
3376 2002-03-10 Michal Ludvig <mludvig@suse.cz>
3377
3378 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
3379 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
3380 from x86-64-tdep.h
3381
3382 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
3383 Don Howard <dhoward@redhat.com>
3384
3385 * mips-tdep.c (ST0_FR): Define.
3386 (mips2_fp_compat): New function, temporarily disabled.
3387 (mips_read_fp_register_single): New function.
3388 (mips_read_fp_register_double): New function.
3389 (mips_print_register): Use them.
3390 (do_fp_register_row): Likewise.
3391
3392 2002-03-09 Andrew Cagney <ac131313@redhat.com>
3393
3394 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
3395 approval''.
3396
3397 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3398
3399 * stabsread.c (read_member_functions): Fix is_stub test for
3400 static member functions, improve comment.
3401
3402 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
3403
3404 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
3405 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
3406 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
3407 commands that set boolean values.
3408 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
3409 (arm_rdi_resume): Always initialize PC.
3410 (arm_rdi_open): Don't use rslt as a boolean.
3411 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
3412 (arm_rdi_fetch_registers, arm_rdi_store_registers)
3413 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
3414 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
3415
3416 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
3417
3418 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
3419 * configure: Rebuilt.
3420
3421 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3422
3423 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
3424 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
3425
3426 2002-03-06 Andrew Cagney <ac131313@redhat.com>
3427
3428 * cli/cli-decode.c (set_cmd_completer): New function.
3429 * command.h (set_cmd_completer): Declare.
3430 * cli/cli-decode.h (set_cmd_completer): Ditto.
3431
3432 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
3433 * cli/cli-cmds.c (init_cli_cmds): Ditto.
3434 * win32-nat.c (_initialize_inftarg): Ditto.
3435 * remote-rdi.c (_initialize_remote_rdi): Ditto.
3436 * proc-api.c (_initialize_proc_api): Ditto.
3437 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
3438 * source.c (_initialize_source): Ditto.
3439 * exec.c (_initialize_exec): Ditto.
3440 * solib.c (_initialize_solib): Ditto.
3441 * top.c (init_main): Ditto.
3442 * tracepoint.c (_initialize_tracepoint): Ditto.
3443 * symfile.c (_initialize_symfile): Ditto.
3444 * printcmd.c (_initialize_printcmd): Ditto.
3445 * infcmd.c (_initialize_infcmd): Ditto.
3446 * corefile.c (_initialize_core): Ditto.
3447
3448 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3449
3450 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
3451
3452 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3453
3454 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
3455
3456 2002-03-05 Andrew Cagney <ac131313@redhat.com>
3457
3458 * NEWS: Update headings, 5.2 has branched.
3459
3460 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
3461
3462 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
3463 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
3464 (register_addr, REGISTER_RAW_SIZE): Likewise.
3465 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
3466 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
3467
3468 2002-03-03 Michal Ludvig <mludvig@suse.cz>
3469
3470 * MAINTAINERS (x86-64): Add myself.
3471 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
3472 changed value_ptr -> struct value *
3473
3474 2002-03-01 David O'Brien <obrien@FreeBSD.org>
3475
3476 * configure.host (sparc64-*-freebsd): Add.
3477 * configure.tgt: Likewise.
3478 * config/sparc/fbsd.mh: New file.
3479 * config/sparc/fbsd.mt: Likewise.
3480 * config/sparc/nm-fbsd.h: Likewise.
3481 * config/sparc/tm-fbsd.h: Likewise.
3482
3483 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
3484
3485 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
3486 regformats/reg-s390x.dat.
3487
3488 2002-03-01 Andrew Cagney <ac131313@redhat.com>
3489
3490 * utils.c: Add FIXME explaining true/false problem.
3491
3492 2002-02-28 Andrew Cagney <ac131313@redhat.com>
3493
3494 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
3495
3496 2002-02-28 Michael Chastain <mec@shout.net>
3497
3498 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
3499
3500 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
3501
3502 * gdbserver/linux-s390-low.c: New file.
3503 * regformats/reg-s390.dat: New file.
3504 * regformats/reg-s390x.dat: New file.
3505 * gdbserver/configure.srv: Add S/390.
3506 * gdbserver/Makefile.in: Add S/390.
3507 * configure.tgt: Enable gdbserver for S/390.
3508
3509 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
3510
3511 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
3512 first line of the doc string for "info dos", except at the end of
3513 the sentence, since the short help stops at the first period.
3514
3515 2002-02-28 Jason Merrill <jason@redhat.com>
3516
3517 * dwarf2read.c (dwarf_cfi_name): Add new codes.
3518
3519 2002-02-27 Fred Fish <fnf@redhat.com>
3520
3521 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
3522 comment (dumy -> dummy).
3523
3524 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3525
3526 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
3527
3528 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
3529
3530 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
3531
3532 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3533
3534 * gdbserver/acconfig.h: New file.
3535 * gdbserver/i387-fp.c: New file.
3536 * gdbserver/i387-fp.h: New file.
3537 * gdbserver/linux-x86-64.c: New file.
3538 * regformats/reg-x86-64.dat: New file.
3539 * configure.tgt: Add x86_64-*-linux* gdbserver support.
3540 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
3541 * gdbserver/configure.in: Add support for regsets.
3542 * gdbserver/config.in: Regenerate.
3543 * gdbserver/configure: Regenerate.
3544 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
3545 * gdbserver/linux-low.h: New file.
3546 * gdbserver/linux-low.c: Include "linux-low.h". Add support
3547 for regsets.
3548 * gdbserver/linux-arm-low.c: Include "linux-low.h".
3549 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
3550 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
3551 * gdbserver/linux-mips-low.c: Include "linux-low.h".
3552 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
3553 * gdbserver/linux-sh-low.c: Include "linux-low.h".
3554 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
3555 "i387-fp.h". Add PTRACE_GETREGS and friends.
3556 * gdbserver/regcache.c (supply_register): New function.
3557 (supply_register_by_name): New function.
3558 (collect_register): New function.
3559 (collect_register_by_name): New function.
3560
3561 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3562
3563 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
3564 (config.status): Add configure.srv dependency.
3565 (server_h): Add config.h dependency.
3566
3567 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
3568
3569 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
3570 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
3571 * gdbserver/configure.srv: Change i386-*-linux* to use
3572 reg-i386-linux.o.
3573
3574 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3575
3576 * x86-64-tdep.c: Re-indent. Update copyright date.
3577
3578 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3579
3580 From Michal Ludvig <mludvig@suse.cz>:
3581 * x86-64-tdep.c (value.h): Delete.
3582 (gdb_assert.h): Include.
3583 (x86_64_register_convert_to_virtual,
3584 x86_64_register_convert_to_raw ): Add check which lets only
3585 floating-point values to be converted.
3586 (value_push): Delete.
3587 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
3588 (i386_gdbarch_init): Number of register_bytes fixed.
3589
3590 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3591
3592 * MAINTAINERS: Add x86-64 target.
3593
3594 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3595
3596 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
3597 * osfsolib.c (solib_map_sections): Ditto.
3598 * irix5-nat.c (solib_map_sections): Ditto.
3599 * corelow.c (gdb_check_format): Ditto.
3600 * symfile.c (symfile_bfd_open): Ditto.
3601 * solib.c (solib_map_sections): Ditto.
3602 Fix PR gdb/354.
3603
3604 2002-02-26 Andrew Cagney <ac131313@redhat.com>
3605
3606 * remote.c (_initialize_remote): By default, disable ``e'' and
3607 ``E'' step out-of-range packets.
3608
3609 2002-02-26 Andreas Schwab <schwab@suse.de>
3610
3611 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
3612 m68k_linux_frame_saved_pc.
3613 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
3614 in_sigtramp.
3615 (SIGCONTEXT_PC_OFFSET): Remove.
3616 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
3617 m68k_linux_sigtramp_saved_pc): New functions.
3618 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
3619 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
3620 (UCONTEXT_PC_OFFSET): Define.
3621 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
3622 non-RT and RT signal trampolines.
3623
3624 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
3625
3626 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
3627 (TARGET_NBPG, STACK_END_ADDR): Delete
3628 (VARIABLES_INSIDE_BLOCK): Delete.
3629
3630 2002-02-25 Andrew Cagney <ac131313@redhat.com>
3631
3632 * utils.c (perror_with_name): Make string parameter constant.
3633 (print_sys_errmsg): Ditto.
3634 (query): Ditto.
3635 * defs.h (perror_with_name): Update.
3636 (print_sys_errmsg): Update.
3637 (query): Update.
3638
3639 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
3640
3641 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
3642 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
3643
3644 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3645
3646 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
3647 if it already matches the current architecture from the exec file.
3648 Include arch-utils.h for gdbarch_info_init prototype.
3649 * Makefile.in (rs6000-nat.o): Update dependencies.
3650
3651 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
3652
3653 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
3654 list of exported variables.
3655
3656 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
3657
3658 * gdbserver/configure.srv: New file.
3659 * gdbserver/configure.in: Use configure.srv instead
3660 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
3661 from it.
3662 * gdbserver/configure: Regenerated.
3663 * gdbserver/terminal.h: New file.
3664 * gdbserver/Makefile.in: Update for configure changes. Remove
3665 more unneeded include paths.
3666
3667 2002-02-24 Andrew Cagney <ac131313@redhat.com>
3668
3669 From wiz at danbala:
3670 * config/sparc/tm-sp64.h: Fix grammar and typos.
3671 Fix PR gdb/287.
3672
3673 2002-02-24 Andrew Cagney <ac131313@redhat.com>
3674
3675 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
3676 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
3677 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
3678 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
3679 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
3680 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
3681 * s390-tdep.c: Ditto.
3682 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
3683 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
3684 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
3685 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
3686 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
3687 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
3688 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
3689 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
3690 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
3691 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
3692 Fix PR gdb/378.
3693
3694 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3695
3696 * lin-thread.c: Delete file.
3697 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
3698 to gdb_proc_service.h.
3699 * configure: Re-generate.
3700
3701 * ocd.c (ocd_open): Do not try to open the "ocd" device.
3702 * serial.c (serial_open): Delete check for "ocd".
3703 Fix PR gdb/349.
3704
3705 * Makefile.in (linux-thread.o): Delete target.
3706 * linux-thread.c: Delete file.
3707
3708 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
3709 renamed SH files to be consistent.
3710
3711 * symtab.c (sort_search_symbols): Use xfree.
3712
3713 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
3714
3715 * arm-linux-tdep.c (arm_linux_init_abi): Register
3716 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
3717 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
3718 definition with undef, since we don't want the sysvr4 definition.
3719 (SKIP_TRAMPOLINE_CODE): Likewise.
3720
3721 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3722
3723 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
3724
3725 * configure.in: (AC_CHECK_FUNCS) Added test for
3726 canonicalize_file_name Regenerated.
3727 * config.in, configure: Regenerated.
3728 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
3729 defined use canonicalize_file_name.
3730
3731 2002-02-23 Michael Chastain <mec@shout.net>
3732
3733 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
3734
3735 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3736
3737 * README: Remove references to cygnus.com.
3738 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
3739 dot com'' form. Remove references to cygnus.com and sourceware.
3740
3741 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3742
3743 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
3744 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
3745 1003.1-2001 no longer allows "head -1".
3746 * gdb/Makefile.in (version.c): Likewise.
3747 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
3748 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
3749 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
3750
3751 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3752
3753 * cli/cli-decode.c (cmd_cfunc_eq): New function.
3754 * command.h (cmd_cfunc_eq): Declare.
3755 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
3756
3757 * cli/cli-cmds.h (is_complete_command): Change parameter to a
3758 ``struct cmd_list_element *''.
3759 * cli/cli-cmds.c (is_complete_command): Update. Use
3760 cmd_cfunc_eq.
3761 * top.c (execute_command): Pass the command to
3762 is_complete_command.
3763 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
3764
3765 2002-02-23 Andrew Cagney <ac131313@redhat.com>
3766
3767 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
3768 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
3769 architecture defines.
3770 * s390-tdep.c (s390_gdbarch_init): Likewise.
3771
3772 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
3773
3774 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
3775 (arm_linux_push_arguments): Likewise.
3776 (arm_linux_init_abi): Register them. Also register linux-specific
3777 call_dummy_words.
3778 (find_minsym_and_objfile): Use strcmp, not STREQ.
3779 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
3780 (arm_linux_call_dummy_words): Delete declaration.
3781 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
3782 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
3783 declarations.
3784 (LOWEST_PC): Delete.
3785
3786 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3787
3788 * maint.c (print_section_info): Do not prepend `0x' to filepos
3789 output, it will be handled by local_hex_string_custom.
3790
3791 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
3792
3793 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
3794 (store_newfpe_double, store_newfpe_extended, store_fpregister)
3795 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
3796
3797 2002-02-22 Jim Blandy <jimb@redhat.com>
3798
3799 Indicate that the bcache functions don't change the strings
3800 they're passed.
3801 * bcache.h (bcache, hash): Add `const' keywords to declarations.
3802 * bcache.c (bcache, hash): Add `const' keywords to definitions.
3803
3804 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
3805
3806 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
3807
3808 2002-02-21 Christopher Faylor <cgf@redhat.com>
3809
3810 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
3811 find the complete path to a loaded DLL.
3812
3813 2002-02-21 Fred Fish <fnf@redhat.com>
3814
3815 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
3816 that marks the end of the range of a function, enter a line number
3817 entry that has a line number of zero and a PC offset that matches
3818 the end of the function. This starts a range of PC's for which no
3819 line number information is known.
3820 * symtab.c (find_pc_sect_line): If our best fit is in a range of
3821 PC's for which no line number info is found (line number is zero)
3822 then we didn't find any valid line information.
3823 * symtab.h: Document use of zero line number entry.
3824
3825 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
3826
3827 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
3828 (have_ptrace_getvrregs): Define for run time checks.
3829 (gdb_vrregset_t): New type for Altivec register handling.
3830 (fetch_register, store_register): Fetch/store altivec register
3831 when needed.
3832 (fetch_altivec_register, store_altivec_register): New functions.
3833 (supply_vrregset, fill_vrregset): New functions.
3834 (fetch_altivec_registers, store_altivec_registers): New functions.
3835 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
3836 registers as well.
3837
3838 2002-02-21 Jiri Smid <smid@suse.cz>
3839
3840 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
3841
3842 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
3843
3844 * Makefile.in (armnbsd-nat.o): Update dependencies.
3845 * armnbsd-nat.c (supply_gregset): New function. Common code to
3846 supply the integer register set.
3847 (supply_fparegset): New function. Similar for FPA registers.
3848 (fetch_regs, fetch_fp_regs): Use them.
3849 (fetch_core_registers): Likewise.
3850 (fetch_elfcore_registers): New function.
3851 (arm_netbsd_elfcore_fns): New core-file type specification.
3852 (_initialize_arm_netbsd_nat): Register it.
3853
3854 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
3855
3856 * armnbsd-nat.c: Include gdbcore.h.
3857 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
3858 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
3859 'void' to declaration, to shut up ARI.
3860 (fetch_core_registers): Make static. Rewrite using supply_register.
3861 (arm_netbsd_core_fns): New core-file type specification.
3862 (_initialize_arm_netbsd_nat): New function.
3863
3864 2002-02-21 Christopher Faylor <cgf@redhat.com>
3865
3866 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
3867 value.
3868
3869 2002-02-20 Christopher Faylor <cgf@redhat.com>
3870
3871 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
3872 fails.
3873
3874 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3875
3876 * jv-exp.y (parse_number): Change type of implicit longs
3877 to builtin_type_uint64.
3878
3879 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3880
3881 * gdbserver/linux-low.c (mywait): Change argument to waitpid
3882 to be an integer instead of a `union wait'.
3883
3884 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3885
3886 * mips-linux-nat.c: Call the operating system GNU/Linux.
3887 * mips-linux-tdep.c: Likewise.
3888 * mips-tdep.c: Likewise.
3889
3890 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3891
3892 Fix PR gdb/265.
3893 * jv-exp.y (parse_number): Handle 64-bit integers.
3894
3895 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
3896
3897 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
3898 AC_STDC_HEADERS to AC_HEADER_STDC.
3899 * gdbserver/configure: Regenerated.
3900
3901 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
3902
3903 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
3904 is defined.
3905 * sparc-tdep.c (get_longjmp_target): Likewise.
3906
3907 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
3908
3909 * News: Add news about ARM and Multi-arch. Mention the new target
3910 arm*-*-netbsd*.
3911
3912 2002-02-19 Jim Blandy <jimb@redhat.com>
3913
3914 * stabsread.c (error_type_complaint): Improve error message.
3915
3916 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
3917
3918 * gdbserver/README: Update documentation.
3919 * gdbserver/configure.in: Update configury to match documentation.
3920 * gdbserver/Makefile.in: Likewise.
3921 * gdbserver/configure: Regenerated.
3922 * gdbserver/aclocal.m4: New file, generated by aclocal.
3923 * gdbserver/config.in: New file, generated by autoheader.
3924
3925 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3926
3927 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
3928 armnbsd-nat.c.
3929
3930 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3931
3932 * arm-tdep.h (enum arm_float_model): New enum.
3933 (struct gdbarch_tdep): Add fp_model.
3934 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
3935 up floating-point conversions until we know the floating-point model
3936 in use by the inferior. Don't complain about being unable to
3937 determine the ABI of the inferior when we don't have one.
3938 (arm_extract_return_value): Support different floating-point models.
3939 (arm_store_return_value): Likewise.
3940 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
3941 ARM_FLOAT_SOFT.
3942 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
3943
3944 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3945
3946 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
3947 of ``current_gdbarch''.
3948
3949 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3950
3951 * armnbsd-nat.c : ANSIfy all function declarations.
3952 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
3953 (fetch_inferior_registers): Re-implement in terms of above.
3954 (store_register, store_regs, store_fp_register, store_fp_regs): New.
3955 (store_inferior_registers): Re-implement in terms of above.
3956
3957 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3958
3959 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
3960 kernel.
3961 * arm-linux-tdep.c: Likewise.
3962 * config/arm/tm-linux.h: Likewise.
3963
3964 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3965
3966 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
3967 * config/arm/nbsd.mt (TM_FILE): Delete.
3968 * config/arm/tm-nbsd.h: Delete.
3969
3970 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3971
3972 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
3973 Initialize CALL_DUMMY_LENGTH.
3974
3975 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
3976
3977 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
3978 function.
3979 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
3980 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
3981 defines one thing and that is incorrect for this port.
3982 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
3983
3984 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3985
3986 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
3987
3988 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3989
3990 * win32-nat.c (display_selector): New function. Displays information
3991 about the information returned by GetThreadSelectorEntry API function.
3992 (display_selectors): New function. Displays the infomation of
3993 the selector given as argument, or of CS, DS ans FS selectors
3994 if no argument is given.
3995 ( _initialize_inftarg): Add "w32" as info prefix command.
3996 Add "info w32 selector" as command calling display_selectors.
3997
3998 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
3999
4000 * i386-tdep.c (get_longjmp_target): Fix compilation failure
4001 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
4002 if not defined.
4003
4004 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4005
4006 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
4007
4008 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4009
4010 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
4011 (arm_fix_call_dummy): Call it.
4012 (arm_call_dummy_breakpoint_offset): Delete.
4013 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
4014 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
4015
4016 2002-02-18 Andrew Cagney <ac131313@redhat.com>
4017
4018 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
4019 Default to func_frame_chain_valid.
4020 * gdbarch.h, gdbarch.c: Re-generate.
4021 * frame.h (FRAME_CHAIN_VALID): Delete definition.
4022
4023 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
4024
4025 * ppc-linux-nat.c: Update copyright.
4026 (fetch_register, store_register): Add tid parameter, don't compute
4027 tid here.
4028 (fetch_ppc_registers, store_ppc_registers): Add tid
4029 parameter. Pass it along to callees.
4030 (fetch_inferior_registers, store_inferior_registers): Compute tid
4031 here, and pass it to calleed functions.
4032 (fill_gregset, supply_fpregset): Clean up formatting.
4033
4034 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4035
4036 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
4037 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
4038
4039 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
4040
4041 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
4042 * gdbarch.c gdbarch.h: Regenerate.
4043 * breakpoint.c (create_longjmp_breakpoint): Always compile this
4044 function.
4045 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
4046 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
4047 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
4048
4049 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
4050 * arm-tdep.c (arm_get_longjmp_target): New function.
4051 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
4052 this to a positive value register arm_get_longjmp_target as the
4053 longjmp handler.
4054 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
4055 (arm_linux_init_abi): Set up longjmp description in tdep.
4056 * armnbsd-nat.c (get_longjmp_target): Delete.
4057 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
4058 description in tdep.
4059 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
4060 (get_longjmp_target): Delete declaration.
4061 (GET_LONGJMP_TARGET): Delete.
4062 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
4063 (GET_LONGJMP_TARGET): Delete.
4064
4065 2002-02-17 Kevin Buettner <kevinb@redhat.com>
4066
4067 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
4068 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
4069 of ``current_gdbarch''.
4070
4071 2002-02-17 Tom Tromey <tromey@redhat.com>
4072
4073 * cli/cli-cmds.c (compare_strings): New function.
4074 (complete_command): Only print each unique item once.
4075 * completer.h (complete_line): Declare.
4076 * completer.c (complete_line): New function.
4077 (line_completion_function): Use it.
4078
4079 2002-02-16 Andrew Cagney <ac131313@redhat.com>
4080
4081 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
4082 * gdbarch.h, gdbarch.c: Re-generate.
4083
4084 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
4085
4086 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
4087
4088 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
4089
4090 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
4091 * valops.c (value_arg_coerce): Don't take the address of a reference
4092 to convert an argument to a reference.
4093
4094 2002-02-15 Christopher Faylor <cgf@redhat.com>
4095
4096 * win32-nat.c (get_image_name): New function.
4097 (handle_load_dll): Use get_image_name function.
4098 (get_child_debug_event): Avoid registering debug events until possibly
4099 execed process is started.
4100 (child_create_inferior): Allow invocation via shell so that command
4101 line redirection, etc. works ok.
4102 (_initialize_inftarg): Add new command: "set shell" to control whether
4103 a shell is used to start a process.
4104
4105 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
4106
4107 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
4108 instead of find_register_by_number.
4109 (cannot_store_register): Likewise.
4110
4111 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
4112
4113 * dwarf2read.c: Replace fprintf (stderr, ...) by
4114 fprintf_unfiltered (gdb_stderr, ...).
4115
4116 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
4117
4118 * gdbserver/gdbserver.1: Document --attach.
4119
4120 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
4121
4122 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
4123 descriptions.
4124 * arm-tdep.c (arm_default_arm_le_breakpoint)
4125 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
4126 (arm_default_thumb_be_breakpoint): New. Initialize them from
4127 traditional breakpoint defines.
4128 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
4129 (arm_gdbarch_init): Initialize new breakpoint variables.
4130 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
4131 (arm_linux_init_abi): Initialize linux-specific breakpoint.
4132 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
4133 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
4134 code out to ...
4135 (arm_netbsd_init_abi_common): ... here; new function.
4136 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
4137 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
4138 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
4139 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
4140
4141 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
4142
4143 * arm-tdep.h (enum arm_abi): New enum.
4144 (struct gdbarch_tdep): New structure.
4145 (LOWEST_PC): Provide a default.
4146 (arm_gdbarch_register_os_abi): Declare new function.
4147 * arm-tdep.c (arm_abi_names): New array.
4148 (process_note_abi_tag_sections): New function.
4149 (get_elfosabi): New function.
4150 (arm_gdbarch_register_os_abi): New function.
4151 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
4152 support for that ABI has been built in, then call the appropriate
4153 configuration routine. Use gdbarch_num_regs() to get the number
4154 of registers.
4155 (arm_dump_tdep): New function.
4156 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
4157 place-holder functions.
4158 (_initialize_arm_tdep): Register them.
4159 * config/arm/tm-arm.h (LOWEST_PC): Delete.
4160
4161 * armnbsd-tdep.c: New file.
4162 * Makefile.in (armnbsd-tdep.o): Add dependencies.
4163 * config/arm/nbsd.mt (TDEPFILES): Add it.
4164 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
4165
4166 * armnbsd-nat.c: Include regcache.h.
4167 * Makefile.in (armnbsd-nat.o): Update dependency list.
4168
4169 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
4170
4171 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4172
4173 * gdbserver/Makefile.in: Fix typos in target rules.
4174
4175 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4176
4177 Fix part of PR gdb/267.
4178 * linespec.c (find_methods): Handle constructors specially for now.
4179
4180 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
4181
4182 * arm-tdep.c (arm_push_arguments): Eliminate special float type
4183 handling.
4184 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
4185 standard_coerce_float_to_double().
4186
4187 2002-02-14 Christopher Faylor <cgf@redhat.com>
4188
4189 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
4190 GDBINIT_FILENAME.
4191
4192 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
4193
4194 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
4195 find_variant_by_name, because it confuses the multiarch
4196 framework. Return NULL if there isn't an architecture with the
4197 user supplied name, instead of forcing a different one without
4198 recording the change with the multiarch machinery.
4199 (find_variant_by_name): Delete.
4200
4201 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4202
4203 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
4204 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
4205
4206 2002-02-13 Martin M. Hunt <hunt@redhat.com>
4207
4208 * stack.c (print_frame_info_base): When calling
4209 print_frame_info_listing_hook, set current_source_symtab.
4210
4211 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4212
4213 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
4214 and remove unused $(INCLUDE_DIR).
4215 Add regcache.c to OBS.
4216 Add generated register protocol files to clean target.
4217 Update dependencies for new objects, obsolete old target code.
4218
4219 * gdbserver/linux-low.c: Remove all platform-specific code to
4220 new files. Remove various dead code. Update to use regcache
4221 functionality.
4222 * gdbserver/remote-utils.c (fromhex): Add return statement
4223 to quiet warning.
4224 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
4225 constant.
4226 (input_interrupt): Add integer parameter to match prototype
4227 of a signal handler.
4228 (outreg): Use register_data ().
4229 (prepare_resume_reply): Use gdbserver_expedite_regs.
4230 * gdbserver/server.c (main): Dynamically allocate own_buf because
4231 PBUFSIZ is no longer constant. Use registers_to_string () and
4232 registers_from_string ().
4233 * gdbserver/server.h: No longer include "defs.h". Add prototypes
4234 for error (), fatal (), and warning (). Update definition of
4235 PBUFSIZ to use regcache functionality. Add include guard.
4236 * gdbserver/utils.c (fatal): Add missing ``const''.
4237 (warning): New function.
4238
4239 * regformats/regdat.sh: Include "regcache.h" in generated files.
4240 Provide init_registers () function.
4241 * regformats/regdef.h: Add prototype for set_register_cache ().
4242 Add include guard.
4243
4244 * gdbserver/linux-arm-low.c: New file.
4245 * gdbserver/linux-i386-low.c: New file.
4246 * gdbserver/linux-ia64-low.c: New file.
4247 * gdbserver/linux-m68k-low.c: New file.
4248 * gdbserver/linux-mips-low.c: New file.
4249 * gdbserver/linux-ppc-low.c: New file.
4250 * gdbserver/linux-sh-low.c: New file.
4251
4252 * gdbserver/regcache.c: New file.
4253 * gdbserver/regcache.h: New file.
4254
4255 * gdbserver/low-linux.c: Removed obsolete file.
4256
4257 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4258
4259 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
4260 * config/i386/linux.mt: Likewise.
4261 * config/ia64/linux.mt: Likewise.
4262 * config/m68k/linux.mh: Likewise.
4263 * config/powerpc/linux.mh: Likewise.
4264 * config/mips/linux.mt: Likewise.
4265
4266 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
4267
4268 * config/i386/i386lynx.mh: Mark gdbserver variables
4269 as (currently) obsolete for this target.
4270 * config/i386/nbsd.mt: Likewise.
4271 * config/i386/nbsdelf.mt: Likewise.
4272 * config/m32r/m32r.mt: Likewise.
4273 * config/m68k/m68klynx.mh: Likewise.
4274 * config/m68k/nbsd.mt: Likewise.
4275 * config/m68k/sun3os4.mh: Likewise.
4276 * config/mips/vr5000.mt: Likewise.
4277 * config/ns32k/nbsd.mt: Likewise.
4278 * config/pa/hppabsd.mh: Likewise.
4279 * config/pa/hppaosf.mh: Likewise.
4280 * config/powerpc/nbsd.mt: Likewise.
4281 * config/rs6000/rs6000lynx.mh: Likewise.
4282 * config/s390/s390.mt: Likewise.
4283 * config/s390/s390x.mt: Likewise.
4284 * config/sparc/sparclynx.mh: Likewise.
4285 * config/sparc/sun4os4.mh: Likewise.
4286 * config/i386/x86-64linux.mt: Likewise.
4287 * config/sparc/linux.mh: Likewise.
4288
4289 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
4290
4291 * configure.tgt: Configure gdbserver only for known working
4292 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
4293 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
4294 SUBDIRS if it is configured. Update comment for ${nativefile}.
4295 * configure: Regenerated.
4296
4297 2002-02-13 Michael Snyder <msnyder@redhat.com>
4298
4299 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
4300
4301 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
4302 (default_gcore_mach): Just return 0, work around a problem in bfd.
4303 (default_gcore_target): OK to return NULL if exec_bfd is null.
4304 (make_mem_sec): Use a cast, avoid a warning.
4305
4306 * procfs.c (find_memory_regions_callback): Use a cast instead of
4307 calling host_pointer_to_address (which complains if
4308 sizeof (host pointer) != sizeof (target pointer)).
4309 (procfs_make_note_section): Avoid overflow in psargs string.
4310
4311 * procfs.c (procfs_make_note_section): Make the default
4312 implementation return an error.
4313
4314 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
4315
4316 * procfs.c (procfs_make_note_section): Provide a default definition
4317 (for alpha-dec-osf4.0f). Fix typos.
4318
4319 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
4320
4321 * linux-proc.c: Add include of regcache.h.
4322 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
4323
4324 2002-02-13 Andrew Cagney <ac131313@redhat.com>
4325
4326 From 2002-01-18 Greg McGary <greg@mcgary.org>:
4327 * memattr.c (create_mem_region): Disallow useless empty region.
4328 Regions are half-open intervals, so allow [A..B) [B..C) as
4329 non-overlapping.
4330
4331 2002-02-13 Michael Chastain <mec@shout.net>
4332
4333 * defs.h: Kill CONST_PTR.
4334 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
4335 * c-lang.c (c_builtin_types): Likewise.
4336 * ch-lang.c (ch_builtin_types): Likewise.
4337 * f-lang.c (f_builtin_types): Likewise.
4338 * language.c (unknown_builtin_types): Likewise.
4339 * m2-lang.c (m2_builtin_types): Likewise.
4340 * p-lang.c (pascal_builtin_types): Likewise.
4341 * scm-lang.c (c_builtin_types): Likewise.
4342
4343 2002-02-13 Keith Seitz <keiths@redhat.com>
4344
4345 * arm-tdep.h (arm_get_next_pc): Add declaration.
4346
4347 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
4348
4349 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
4350 with other related struct-returning functions.
4351 (arm_extract_struct_value_address): New function.
4352 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
4353 initialize float_format, double_format and long_double_format as
4354 appropriate to the endianness of the target.
4355 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
4356 (arm_use_struct_convention): Delete declaration.
4357 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4358
4359 2002-02-13 Keith Seitz <keiths@redhat.com>
4360
4361 * defs.h (core_addr_to_string_nz): New function.
4362
4363 2002-02-13 Mark Kettenis <kettenis@gnu.org>
4364
4365 Apply missing bits of 2002-01-15 patch.
4366 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
4367 (fill_fpregset): Use i387_fill_fsave.
4368
4369 2002-02-12 Keith Seitz <keiths@redhat.com>
4370
4371 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
4372 (core_addr_to_string_nz): New function.
4373
4374 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4375
4376 * arm-linux-nat.c: Really include arm-tdep.h.
4377 * config/arm/tm-linux.h (struct type, struct value): Declare.
4378
4379 2002-02-11 Michael Snyder <msnyder@redhat.com>
4380
4381 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
4382 (gcore section): Ifdef for Solaris and Unixware only.
4383 (procfs_do_thread_registers): Unixware needs one lwpstatus
4384 per thread (not one prstatus or pstatus).
4385 (procfs_make_note_section): Iterate only over kernel threads (lwps),
4386 not over all gdb threads. For unixware, call elfcore_write_pstatus
4387 once before iterating over threads.
4388
4389 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4390
4391 * arm-tdep.h: New file.
4392 * arm-tdep.c: Include arm-tdep.h.
4393 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4394 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4395 (arm_print_float_info, arm_register_type, convert_to_extended)
4396 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4397 (arm_extract_return_value, arm_register_name): Make static.
4398 (arm_software_single_step): Similarly. Fix types in declaration.
4399 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
4400 (arm_store_return_value, arm_store_struct_return): New functions.
4401 (arm_gdbarch_init): Register the above functions. Also register
4402 call_dummy_start_offset, sizeof_call_dummy_words,
4403 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
4404 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
4405 max_register_virtual_size, register_size. Set up
4406 prologue_cache.saved_regs here, rather than ...
4407 (_initialize_arm_tdep): ... here.
4408 * config/arm/tm-arm.h (struct type, struct value): Delete forward
4409 declarations.
4410 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
4411 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
4412 (arm_print_float_info, arm_register_type, convert_to_extended)
4413 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
4414 (arm_extract_return_value, arm_register_name): Delete declarations.
4415 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
4416 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
4417 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
4418 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
4419 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
4420 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
4421 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
4422 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
4423 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
4424 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
4425 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
4426 (arm_get_next_pc): No-longer static -- these are needed by the RDI
4427 interface.
4428 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
4429 * remote-rdi.c remote-rdp.c: Likewise.
4430 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
4431 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
4432 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
4433 definition.
4434
4435 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
4436 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
4437 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
4438 from non-ARM_ prefixed definitions.
4439 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
4440 all uses of above.
4441 * remote-rdi.c remote-rdp.c: Likewise.
4442 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
4443
4444 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
4445
4446 * arm-tdep.c (arm_frameless_function_invocation)
4447 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4448 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4449 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4450 (arm_pop_frame, arm_get_next_pc): Make static.
4451 (arm_gdbarch_init): Register above in gdbarch structure.
4452 (arm_read_fp): Renamed from arm_target_read_fp.
4453 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
4454 * config/arm/tm-arm.h (arm_frameless_function_invocation)
4455 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
4456 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
4457 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
4458 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
4459 (arm_pc_is_thumb_dummy): Delete declarations.
4460 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
4461 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
4462 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
4463 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
4464
4465 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
4466
4467 * symtab.c (compare_search_syms): New function.
4468 (sort_search_symbols): New function.
4469 (search_symbols): Sort symbols after searching rather than
4470 before.
4471
4472 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4473
4474 * NEWS: Linux -> GNU/Linux.
4475
4476 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4477
4478 * gdbarch.sh: For for level one methods, disallow a definition
4479 when partially multi-arched. Add comments explaining rationale.
4480 * gdbarch.h: Re-generate.
4481
4482 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4483
4484 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
4485 multi-arch partial.
4486
4487 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4488
4489 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
4490 field. Use diff -u.
4491 * gdbarch.c: Re-generate.
4492
4493 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4494
4495 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
4496 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
4497 partial.
4498
4499 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4500
4501 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
4502 multi-arch partial.
4503 (PUSH_ARGUMENTS): Switch to using predefault.
4504 * gdbarch.c: Regenerate.
4505
4506 2002-02-10 Andrew Cagney <ac131313@redhat.com>
4507
4508 * valops.c (PUSH_ARGUMENTS): Delete definition.
4509 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
4510 partial. Default to default_push_arguments.
4511 * gdbarch.h, gdbarch.c: Regenerate.
4512
4513 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4514
4515 * defs.h (throw_exception): Rename return_to_top_level. Update
4516 comments.
4517 * utils.c (error_stream, internal_verror, quit): Ditto.
4518 * top.c (throw_exception, catcher): Ditto.
4519 * sparclet-rom.c (sparclet_load): Ditto.
4520 * remote.c (interrupt_query, minitelnet): Ditto.
4521 * remote-sds.c (interrupt_query): Ditto.
4522 * remote-mips.c (mips_error, mips_kill): Ditto.
4523 * ocd.c (interrupt_query): Ditto.
4524 * monitor.c (monitor_interrupt_query): Ditto.
4525 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
4526 * target.h: Update comment.
4527
4528 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
4529
4530 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4531
4532 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
4533 default_double_format.
4534 * gdbarch.h, gdbarch.c: Re-generate.
4535 * findvar.c (floatformat_unknown): Delete variable definition.
4536 * doublest.h (floatformat_unknown): Delete variable declaration.
4537
4538 2002-02-09 Jim Blandy <jimb@redhat.com>
4539
4540 * stabsread.c (read_type): Add code to parse Sun's syntax for
4541 prototyped function types.
4542
4543 2002-02-09 Andrew Cagney <ac131313@redhat.com>
4544
4545 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
4546 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
4547
4548 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4549
4550 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
4551 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
4552 now _initialize_xcoffsolib gets called again and overrides the
4553 commands from solib.c in a native configuration.
4554
4555 2002-02-09 Mark Kettenis <kettenis@gnu.org>
4556
4557 * doublest.c (store_typed_floating): Don't try to return a value.
4558 Fixes PR gdb/290.
4559
4560 2002-02-08 Jim Blandy <jimb@redhat.com>
4561
4562 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
4563 is prototyped and has no arguments, print its argument list as
4564 `(void)'.
4565
4566 2002-02-08 Chris Demetriou <cgd@broadcom.com>
4567
4568 * MAINTAINERS (write-after-approval): Add myself.
4569 (paper-trail): I've escaped!
4570
4571 2002-02-08 Christopher Faylor <cgf@redhat.com>
4572
4573 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
4574 changes.
4575 (_initialize_check_for_gdb_ini): Ditto.
4576
4577 2002-02-08 Martin M. Hunt <hunt@redhat.com>
4578
4579 * win32-nat.c (cygwin_pid_to_str): Fix typo.
4580 xaprintf -> xasprintf.
4581
4582 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
4583
4584 * win32-nat.c: Remove use of printf and sprintf functions.
4585
4586 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
4587
4588 * arm-tdep.c (arm_frame_chain_valid): Make static.
4589 (arm_push_arguments): Likewise.
4590 (arm_gdbarch_init): New function.
4591 (_initialize_arm_tdep): Call it.
4592 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
4593 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
4594 (FRAME_CHAIN_VALID): Delete.
4595 (arm_frame_chain_valid): Delete declaration.
4596 (PUSH_ARGUMENTS): Delete.
4597 (arm_push_arguments): Delete declaration.
4598 (CALL_DUMMY_P): Delete.
4599
4600 2002-02-08 Andrew Cagney <ac131313@redhat.com>
4601 Corinna Vinschen <vinschen@redhat.com>
4602
4603 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
4604 on builtin float types.
4605
4606 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
4607
4608 * utils.c: Include <curses.h> before "bfd.h".
4609 * tui/tui-hooks.c: Likewise.
4610 * tui/tui.c: Likewise.
4611 * tui/tuiCommand.c: Likewise.
4612 * tui/tuiData.c: Likewise.
4613 * tui/tuiDataWin.c: Likewise.
4614 * tui/tuiDisassem.c: Likewise.
4615 * tui/tuiGeneralWin.c: Likewise.
4616 * tui/tuiIO.c: Likewise.
4617 * tui/tuiLayout.c: Likewise.
4618 * tui/tuiRegs.c: Likewise.
4619 * tui/tuiSource.c: Likewise.
4620 * tui/tuiSourceWin.c: Likewise.
4621 * tui/tuiStack.c: Likewise.
4622 * tui/tuiWin.c: Likewise.
4623
4624 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
4625
4626 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
4627 to include space for pseudoregs as well. Update loops accordingly.
4628 (sh_fp_frame_init_saved_regs): Ditto.
4629 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
4630
4631 2002-02-07 Andrew Cagney <ac131313@redhat.com>
4632
4633 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
4634 Add Richard Earnshaw to Arm maintainers.
4635
4636 2002-02-07 Andrew Cagney <ac131313@redhat.com>
4637
4638 * defs.h (warning_begin): Delete declaration.
4639
4640 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
4641 Delete macro.
4642
4643 2002-02-07 Michael Snyder <msnyder@redhat.com>
4644
4645 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4646 Logic bug, remove misplaced else.
4647
4648 2002-02-07 Klee Dienes <klee@apple.com>
4649
4650 * fork-inferior.c (fork_inferior): Add '!' to the list of
4651 characters that need to be quoted when building a string for the
4652 shell. Quote '!' specifically with a backslash, since CSH chokes
4653 when trying to evaluate "str!str".
4654
4655 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
4656
4657 * rdi-share/host.h: Only provide a typedef for bool if it is not
4658 defined.
4659
4660 2002-02-04 Michael Snyder <msnyder@redhat.com>
4661
4662 * breakpoint.h (enum bptype): Add new overlay event bp type.
4663 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
4664
4665 * breakpoint.c (create_internal_breakpoint): New function.
4666 (internal_breakpoint_number): Moved into create_internal_breakpoint.
4667 (create_longjmp_breakpoint): Use create_internal_breakpoint.
4668 (create_thread_event_breakpoint): Ditto.
4669 (create_solib_event_breakpoint): Ditto.
4670 (create_overlay_event_breakpoint): New function.
4671 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
4672 (update_breakpoints_after_exec): Delete and re-initialize
4673 overlay event breakpoints after an exec. Add FIXME comment
4674 about longjmp breakpoint.
4675 (print_it_typical): Ignore overlay event breakpoints.
4676 (print_one_breakpoint): Ditto.
4677 (mention): Ditto.
4678 (bpstat_what): Do not stop for overlay event breakpoints.
4679 (delete_breakpoint): Don't delete overlay event breakpoints.
4680 (breakpoint_re_set_one): Delete the overlay event breakpoint.
4681 (breakpoint_re_set): Re-create overlay event breakpoint.
4682
4683 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
4684 (overlay_manual_command): Disable overlay breakpoints.
4685 (overlay_off_command): Disable overlay breakpoints.
4686
4687 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
4688
4689 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
4690 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
4691 to here from config/tm-arm.h.
4692 (coff_sym_is_thumb): Make static.
4693 (arm_elf_make_msymbol_special): New function.
4694 (arm_coff_make_msymbol_special): New function.
4695 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
4696 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
4697 (coff_sym_is_thumb): Delete declaration.
4698 (arm_elf_make_msymbol_special): Declare.
4699 (arm_coff_make_msymbol_special): Declare.
4700 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
4701 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
4702
4703 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
4704
4705 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
4706
4707 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
4708
4709 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
4710 * gdbarch.c gdbarch.h: Regenerate.
4711 * arch-utils.c (default_print_float_info): New function.
4712 * arch-utils.h (default_print_float_info): Prototype it.
4713 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
4714 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
4715 (PRINT_FLOAT_INFO): Document it.
4716
4717 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
4718 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
4719 (PRINT_FLOAT_INFO): Define.
4720
4721 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
4722
4723 * win32-nat.c (_initialize_check_for_gdb_ini):
4724 Add typecast to sprintf argument to suppress a warning.
4725
4726 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
4727
4728 * win32-nat.c (last_sig): Changed type of variable to target_signal,
4729 to allow easier handling of pass state.
4730 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
4731 that gives exception name and address.
4732 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
4733 and set last_sig value to ourstatus->value.sig. Some missing
4734 exceptions added.
4735 (child_continue): Correctly report continue_status.
4736 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
4737 TARGET_SIGNAL_0 (new default value).
4738 (child_resume): consider sig argument passed to decide if
4739 the exception should be passed to debuggee or not.
4740
4741 2002-02-05 Michael Snyder <msnyder@redhat.com>
4742
4743 * regcache.c (fetch_register): Call target_fetch_register
4744 only if we don't call FETCH_PSEUDO_REGISTER.
4745 (store_register): Call target_store_register only if we
4746 don't call STORE_PSEUDO_REGISTER.
4747
4748 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
4749
4750 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
4751 ELF_MAKE_MSYMBOL_SPECIAL.
4752 * gdbarch.c, gdbarch.h: Regenerate.
4753 * arch-utils.c (default_make_msymbol_special): New function.
4754 * arch-utils.h (default_make_msymbol_special): Export.
4755 * elfread.c (elf_symtab_read): Compile use of
4756 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
4757 multiarched.
4758 * coffread.c (coff_symtab_read): Ditto, for
4759 COFF_MAKE_MSYMBOL_SPECIAL.
4760
4761 2002-02-05 Jim Blandy <jimb@redhat.com>
4762
4763 * solib-svr4.c (svr4_truncate_ptr): New function.
4764 (svr4_relocate_section_addresses): Do the address arithmetic with
4765 the appropriate truncation for target addresses, even when
4766 CORE_ADDR is larger than a target address.
4767
4768 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4769
4770 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
4771 to (int *).
4772
4773 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4774
4775 * gdbserver/linux-low.c (kill_inferior): Remove commented out
4776 code.
4777
4778 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4779
4780 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
4781
4782 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4783
4784 * gdbserver/linux-low.c: Remove unused include files.
4785
4786 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4787
4788 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
4789 (read_inferior_memory): Use it.
4790 (write_inferior_memory): Likewise.
4791
4792 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4793
4794 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
4795 grubbing through sys_errlist.
4796
4797 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
4798
4799 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
4800
4801 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4802 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
4803
4804 2002-02-04 Andrew Cagney <ac131313@redhat.com>
4805
4806 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
4807 (do_sfunc, set_cmd_sfunc): New functions.
4808
4809 * command.h (struct cmd_list_element): Add field func.
4810 * cli/cli-decode.h (struct cmd_list_element): Ditto.
4811 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
4812 * cli/cli-decode.h: Ditto.
4813
4814 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
4815 (help_all, help_cmd_list): Ditto.
4816 (find_cmd, complete_on_cmdlist): Ditto.
4817 * top.c (execute_command): Ditto.
4818
4819 * cli/cli-setshow.c (do_setshow_command): Call func instead of
4820 function.sfunc.
4821
4822 * infcmd.c (notice_args_read): Fix function signature.
4823
4824 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
4825 * cli/cli-decode.c (add_set_cmd): Ditto.
4826 * utils.c (initialize_utils): Ditto.
4827 * maint.c (_initialize_maint_cmds): Ditto.
4828 * infrun.c (_initialize_infrun): Ditto.
4829 * demangle.c (_initialize_demangler): Ditto.
4830 * remote.c (add_packet_config_cmd): Ditto.
4831 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4832 * cris-tdep.c (_initialize_cris_tdep): Ditto.
4833 * proc-api.c (_initialize_proc_api): Ditto.
4834 * kod.c (_initialize_kod): Ditto.
4835 * valprint.c (_initialize_valprint): Ditto.
4836 * top.c (init_main): Ditto.
4837 * infcmd.c (_initialize_infcmd): Ditto.
4838 * corefile.c (_initialize_core): Ditto.
4839 * arm-tdep.c (_initialize_arm_tdep): Ditto.
4840 * arch-utils.c (initialize_current_architecture): Ditto.
4841 (_initialize_gdbarch_utils): Ditto.
4842 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
4843
4844 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
4845 * wince.c (_initialize_inftarg): Ditto.
4846 * symfile.c (_initialize_symfile): Ditto.
4847 * mips-tdep.c (_initialize_mips_tdep): Ditto.
4848 * language.c (_initialize_language): Ditto.
4849 * arc-tdep.c (_initialize_arc_tdep): Ditto.
4850
4851 2002-02-04 Michael Snyder <msnyder@redhat.com>
4852
4853 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
4854
4855 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
4856
4857 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
4858 Add rules for building the register data files.
4859
4860 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
4861
4862 * regformats/regdat.sh: Add braces to the definition of
4863 expedite_regs_${arch}.
4864
4865 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
4866
4867 * regformats/regdef.h (struct reg): Add comment describing the
4868 requirements for offset and size fields.
4869
4870 2002-02-04 Andreas Schwab <schwab@suse.de>
4871
4872 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
4873 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
4874
4875 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
4876
4877 * gdbarch.sh (copyright): Update years in generated header.
4878 (SMASH_TEXT_ADDRESS): Add rule.
4879 * gdbarch.h, gdbarch.c: Re-generate.
4880 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
4881 * dbxread.c: Likewise.
4882 * dwarfread.c: Likewise.
4883 * elfread.c: Likewise.
4884 * somread.c: Likewise.
4885
4886 * arm-tdep.c (arm_smash_text_address): New function.
4887 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
4888
4889 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
4890
4891 Add support for hardware watchpoints on win32 native.
4892 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
4893 CONTEXT_DEBUG_REGISTERS.
4894 (dr variable): New variable. Static array containing a local copy
4895 of debug registers.
4896 (debug_registers_changed): New variable. Reflects when debug registers
4897 are changed and need to be written to inferior.
4898 (debug_registers_used): New variable. Reflects when any debug register
4899 was set, used when new threads are created.
4900 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
4901 i386-nat code.
4902 (thread_rec): Set dr array if id is the thread of current_event .
4903 (child_continue, child_resume): Change the debug registers for all
4904 threads if debug_registers_changed.
4905 (child_add_thread): Change the debug registers if debug_registers_used.
4906 * config/i386/cygwin.mh: Add use of i386-nat.o file.
4907 Link nm.h to new nm-cygwin.h file.
4908 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
4909 of hardware registers.
4910
4911 2002-02-03 Andrew Cagney <ac131313@redhat.com>
4912
4913 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
4914 Restore behavour broken by 2002-01-20 Andrew Cagney
4915 <ac131313@redhat.com> IEEE_FLOAT removal.
4916
4917 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4918
4919 * c-valprint.c (c_val_print): Pass a proper valaddr to
4920 cp_print_class_method.
4921 * valops.c (search_struct_method): If there is only one method
4922 and args is NULL, return that method.
4923
4924 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4925
4926 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
4927 accessing tag_name directly.
4928
4929 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4930
4931 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
4932 of accessing tag_name directly.
4933
4934 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
4935
4936 PR gdb/280
4937 * gdbtypes.c (replace_type): New function.
4938 * gdbtypes.h (replace_type): Add prototype.
4939 * stabsread.c (read_type): Use replace_type.
4940
4941 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
4942
4943 * Makefile.in (memattr.o): Add missing dependencies rule.
4944
4945 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
4946
4947 * breakpoint.c (break_at_finish_command): Really export.
4948 (break_at_finish_at_depth_command): Ditto.
4949 (tbreak_at_finish_command): Ditto.
4950 * hppa-tdep.c: Include completer.h.
4951 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
4952 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
4953
4954 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4955
4956 * utils.c (do_write): New function.
4957 (error_stream): Rewrite combining the code from error_begin and
4958 verror.
4959 (verror): Rewrite using error_stream.
4960 (error_begin): Delete function.
4961
4962 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4963
4964 * utils.c (error_begin): Make static.
4965 * defs.h (error_begin): Delete declaration.
4966
4967 * linespec.c (cplusplus_error): Replace cplusplus_hint.
4968 (decode_line_1): Use cplusplus_error instead of error_begin,
4969 cplusplus_hint and return_to_top_level.
4970 * coffread.c (coff_symfile_read): Use error instead of error_begin
4971 and return_to_top_level.
4972 * infrun.c (default_skip_permanent_breakpoint): Ditto.
4973
4974 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4975
4976 * language.h (type_error, range_error): Make string parameter
4977 constant.
4978 * language.c (warning_pre_print): Delete extern declaration.
4979 * dwarfread.c (warning_pre_print): Ditto.
4980 * language.c (type_error, range_error): Rewrite to use verror and
4981 vwarning instead of warning_begin.
4982
4983 2002-02-01 Michael Snyder <msnyder@redhat.com>
4984
4985 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
4986 (set_ignore_count): Move misplaced comment back where it belongs.
4987
4988 2002-02-01 Andrew Cagney <ac131313@redhat.com>
4989
4990 * command.h (NO_FUNCTION): Delete macro.
4991 * cli/cli-decode.h (NO_FUNCTION): Ditto.
4992 * top.c (execute_command): Replace NO_FUNCTION with NULL.
4993 * tracepoint.c (_initialize_tracepoint): Ditto.
4994 * cli/cli-decode.c (add_set_cmd): Ditto.
4995 * cli/cli-cmds.c (init_cli_cmds): Ditto.
4996
4997 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
4998
4999 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
5000 Update ``this'' pointer when calling virtual functions.
5001
5002 2002-02-01 Michael Snyder <msnyder@redhat.com>
5003
5004 * breakpoint.c (create_temp_exception_breakpoint): Delete.
5005 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
5006
5007 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
5008
5009 * regformats/reg-arm.dat: New file.
5010 * regformats/reg-i386.dat: New file.
5011 * regformats/reg-ia64.dat: New file.
5012 * regformats/reg-m68k.dat: New file.
5013 * regformats/reg-mips.dat: New file.
5014 * regformats/reg-ppc.dat: New file.
5015 * regformats/reg-sh.dat: New file.
5016 * regformats/regdef.h: New file.
5017 * regformats/regdat.sh: New file.
5018
5019 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
5020
5021 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
5022 (arm_frame_args_address, arm_frame_locals_address): New functions.
5023 (arm_frame_num_args): New function.
5024 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
5025 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
5026 (FRMA_NUM_ARGS): Call arm_frame_num_args.
5027
5028 2002-01-31 Michael Snyder <msnyder@redhat.com>
5029
5030 * breakpoint.c (break_at_finish_command): Export.
5031 (break_at_finish_at_depth_command): Export.
5032 (tbreak_at_finish_command): Export.
5033 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
5034 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
5035 "tbreak" commands, which are HPPA specific.
5036
5037 * printcmd.c (disassemble_command): Remove an ancient
5038 artifact of an old merge.
5039
5040 * symfile.h (enum overlay_debugging_state):
5041 Define enum constant values for overlay mode.
5042 * symfile.c (overlay_debugging): Use enums instead of literals.
5043 (overlay_is_mapped, overlay_auto_command,
5044 overlay_manual_command): Ditto.
5045
5046 * breakpoint.c (insert_breakpoints, remove_breakpoint,
5047 breakpoint_here_p, breakpoint_inserted_here_p,
5048 breakpoint_thread_match, bpstat_stop_status,
5049 describe_other_breakpoints, check_duplicates, clear_command):
5050 Coding standard fixes.
5051
5052 * target.c (target_xfer_memory): Add spaces, coding standard.
5053 (do_xfer_memory): Add missing line to trust-readonly
5054 code: check bfd SEC_READONLY flag for section.
5055
5056 2002-01-31 Andrew Cagney <ac131313@redhat.com>
5057
5058 * PROBLEMS: Fix typo, 5.1->5.1.1.
5059
5060 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
5061
5062 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
5063 data symbols, since we search based on textlow and texthigh.
5064 (find_pc_sect_symtab): Likewise.
5065
5066 2002-01-30 Andrew Cagney <ac131313@redhat.com>
5067
5068 * defs.h (vwarning): Declare.
5069 * utils.c (vwarning): New function.
5070 (warning): Call vwarning.
5071 (warning_begin): Delete function.
5072
5073 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
5074 the warning message.
5075 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
5076 warning_begin.
5077
5078 2002-01-30 Michael Snyder <msnyder@redhat.com>
5079
5080 * NEWS: Mention "set trust-readonly-sections" command.
5081 Mention generate-core-file command.
5082
5083 2002-01-15 Michael Snyder <msnyder@redhat.com>
5084
5085 * target.c: New command, "set trust-readonly-sections on".
5086 (do_xfer_memory): Honor the suggestion to trust readonly sections
5087 by reading them from the object file instead of from the target.
5088 (initialize_targets): Register command "set trust-readonly-sections".
5089
5090 2002-01-29 Andrew Cagney <ac131313@redhat.com>
5091
5092 * parse.c (target_map_name_to_register): Simplify, search regs and
5093 pseudo-regs using a single loop.
5094
5095 2002-01-30 Andrew Cagney <ac131313@redhat.com>
5096
5097 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
5098
5099 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
5100
5101 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
5102 * config/i386/i386v42mp.mh: Add i387-nat.o .
5103 * i386v4-nat.c: Include i387-nat.h.
5104 (supply_fpregset): Use i387_supply_fsave.
5105 (fill_fpregset): Use i387_fill_fsave.
5106
5107 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
5108
5109 * arm-tdep.c (arm_call_dummy_words): Define.
5110 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
5111 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
5112 (CALL_DUMMY_WORDS): Define.
5113 (arm_call_dummy_words): Declare.
5114 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
5115 (arm_linux_call_dummy_words): Declare.
5116
5117 2002-01-30 Andreas Schwab <schwab@suse.de>
5118
5119 * m68klinux-nat.c: Fix last change to use regcache_collect
5120 instead of referencing registers[] directly.
5121
5122 2002-01-29 Andrew Cagney <ac131313@redhat.com>
5123
5124 * parse.c (target_map_name_to_register): Delete code wrapped in
5125 #ifdef REGISTER_NAME_ALIAS_HOOK.
5126
5127 2002-01-28 Michael Snyder <msnyder@redhat.com>
5128
5129 * regcache.c (legacy_read_register_gen): Need to be able to
5130 read pseudo-register as well as real register.
5131 (legacy_write_register_gen): Ditto.
5132
5133 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5134
5135 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5136 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
5137 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
5138 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
5139 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
5140 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
5141 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
5142 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
5143 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
5144 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
5145 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
5146 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
5147 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
5148 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
5149 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
5150 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
5151 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
5152 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
5153 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
5154 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
5155
5156 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5157
5158 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
5159 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
5160 (initialize_current_architecture): Update target_byte_order using
5161 information from BFD.
5162 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
5163 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
5164
5165 2002-01-28 Andrew Cagney <ac131313@redhat.com>
5166
5167 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
5168 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
5169
5170 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
5171 #ifdef INVALID_FLOAT.
5172 * infcmd.c (do_registers_info): Ditto.
5173 * values.c (unpack_double): Ditto. Add comment.
5174
5175 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
5176 already commented out.
5177
5178 2002-01-26 Andreas Schwab <schwab@suse.de>
5179
5180 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
5181 * m68klinux-nat.c: Update ptrace interface for fetching/storing
5182 registers and add support for PTRACE_GETREGS.
5183
5184 2002-01-24 Andrew Cagney <ac131313@redhat.com>
5185
5186 GDB 5.1.1 released from 5.1 branch.
5187 * NEWS: Add 5.1.1 news.
5188 * README: Sync with 5.1 branch.
5189
5190 2002-01-23 Fred Fish <fnf@redhat.com>
5191
5192 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
5193 stabstring on initial malloc. Reallocing will copy it for us,
5194 if necessary.
5195
5196 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
5197
5198 * Makefile.in (hpread_h): Delete.
5199 (HFILES_NO_SRCDIR): Remove hpread.h.
5200 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
5201 (hpread.o): Update dependencies.
5202 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
5203
5204 * hp-psymtab-read.c: Remove file.
5205 * hp-symtab-read.c: Remove file.
5206 * hpread.h: Remove file.
5207
5208 * hpread.c: Merge all contents of hp-psymtab-read.c,
5209 hp-symtab-read.c and hpread.h into this file, as it was prior to
5210 January 1999.
5211
5212 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
5213 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
5214 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
5215 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
5216
5217 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
5218
5219 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
5220 fill_gregset): Call gdbarch_tdep() just once, assign result to
5221 variable and use that, instead of calling the function several
5222 times.
5223
5224 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
5225
5226 * configure.host: Accept sparcv9 as alias for sparc64.
5227 * configure.tgt: Likewise.
5228
5229 2002-01-22 Kevin Buettner <kevinb@redhat.com>
5230
5231 * solib-aix5.c (build_so_list_from_mapfile)
5232 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
5233 arguments is not reversed.
5234 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
5235 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
5236
5237 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
5238
5239 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
5240 modified version of obsolete sh_fetch_pseudo_register.
5241 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
5242 (sh4_register_read): New function.
5243 (sh_pseudo_register_write): New function. Renamed and modified
5244 version of obsolete sh_store_pseudo_register.
5245 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
5246 (sh4_register_write): New function.
5247 (sh_gdbarch_init): Remove setting of gdbarch function
5248 fetch_pseudo_register and store_pseudo_register. Remove setting of
5249 register_convert_to_raw, register_convert_to_virtual,
5250 register_convertible.
5251 (sh_sh4_register_convertible): Delete. No longer needed. All is
5252 taken care by architecture specific functions
5253 register_read/register_write.
5254 (sh_sh4_register_convert_to_virtual): Make static.
5255 (sh_sh4_register_convert_to_raw): Ditto.
5256
5257 2002-01-22 Andrew Cagney <ac131313@redhat.com>
5258
5259 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
5260 (floatformat_is_nan, floatformat_mantissa): Ditto.
5261
5262 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
5263 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
5264 builtin_type_ieee_double_little,
5265 builtin_type_ieee_double_littlebyte_bigword,
5266 builtin_type_m68881_ext, builtin_type_i960_ext,
5267 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
5268 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
5269 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
5270 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
5271
5272 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
5273
5274 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
5275 parameter. Set frameless flag if it exists and depended of
5276 whether the scanned function is frameless or not.
5277 (xstormy16_skip_prologue): If function is frameless, return
5278 result of xstormy16_scan_prologue().
5279 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
5280 call.
5281
5282 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
5283
5284 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
5285 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
5286 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
5287 sh_sh4_register_byte, sh_sh4_register_raw_size,
5288 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
5289 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
5290 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
5291 sh_store_pseudo_register, sh_do_pseudo_register): Call
5292 gdbarch_tdep() just once, assign result to variable and use that,
5293 instead of calling the function several times.
5294
5295 2002-01-20 Mark Kettenis <kettenis@gnu.org>
5296
5297 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
5298 macros instead of LAST_FPU_CTRL_REGNUM.
5299 (store_register): Likewise.
5300
5301 2002-01-21 Jim Blandy <jimb@redhat.com>
5302
5303 * infcmd.c (run_command): Check that the `exec' target layer's BFD
5304 is up-to-date before running the program, not just when a program
5305 exits.
5306
5307 2002-01-21 Fred Fish <fnf@redhat.com>
5308
5309 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
5310 when we have found all instructions we are looking for.
5311
5312 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
5313
5314 * arm-tdep.c (arm_register_name): New function.
5315 (arm_registers_names): Make static.
5316 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
5317 (arm_register_name): Declare.
5318 (REGISTER_NAME): Use it.
5319
5320 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
5321 Kevin Buettner <kevinb@redhat.com>
5322
5323 Convert arm targets to new FRAME interface.
5324 * arm-tdep.c (struct frame_extra_info): Remove fsr.
5325 (arm_frame_find_save_regs): Delete.
5326 (arm_frame_init_saved_regs): New.
5327 (arm_init_extra_frame_info): Alloacte saved_regs as required.
5328 Allocate extra_info as required. Convert all uses of fsr.regs
5329 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
5330 to use extra_info.
5331 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
5332 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
5333 (check_prologue_cache, save_prologue_cache): Likewise.
5334 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
5335 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
5336 (FRAME_FIND_SAVED_REGS): Delete.
5337 (arm_frame_find_saved_regs): Delete prototype.
5338 (arm_frame_init_saved_regs): New prototype.
5339 (FRAME_INIT_SAVED_REGS): Define.
5340
5341 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5342
5343 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
5344
5345 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5346
5347 From Jeff Law <law@redhat.com>:
5348 * infttrace.c: Include <sys/pstat.h>.
5349 (child_pid_to_exec_file): Revamp. Use pstat call to get the
5350 exec file if the ttrace equivalent fails.
5351
5352 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5353
5354 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
5355 (closeLogFile): Ditto.
5356
5357 2002-01-20 Michael Chastain <mec@shout.net>
5358
5359 * top.c (print_gdb_version): Bump copyright year to 2002.
5360
5361 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5362
5363 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
5364 Zannoni and Eli Zaretskii.
5365
5366 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5367
5368 * buildsym.c: Update copyright years.
5369 * c-typeprint.c: Likewise.
5370 * dwarf2read.c: Likewise.
5371 * f-typeprint.c: Likewise.
5372 * gdbtypes.c: Likewise.
5373 * gdbtypes.h: Likewise.
5374 * hp-symtab-read.c: Likewise.
5375 * hpread.c: Likewise.
5376 * mdebugread.c: Likewise.
5377 * p-typeprint.c: Likewise.
5378
5379 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5380
5381 * remote-sim.c (gdbsim_open): Simplify code testing the macro
5382 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
5383 byte-order selectable.
5384 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
5385 * arch-utils.c: Ditto.
5386 (set_endian): Ditto.
5387 (set_endian_from_file): Ditto.
5388 * gdbserver/low-sim.c (create_inferior): Ditto.
5389 * gdbarch.sh: Ditto.
5390 * gdbarch.h: Re-generate.
5391 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5392 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
5393 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
5394 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5395 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5396 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
5397 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
5398 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
5399 macro definition.
5400 * config/mips/tm-wince.h: Remove #undef of macro
5401 TARGET_BYTE_ORDER_SELECTABLE.
5402 * config/sh/tm-wince.h: Ditto.
5403
5404 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5405
5406 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
5407 member function fields. Add accessor macro
5408 TYPE_FN_FIELD_ARTIFICIAL.
5409 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
5410 * c-typeprint.c (c_type_print_base): Skip artificial member
5411 functions.
5412
5413 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5414
5415 * f-typeprint.c: Delete unused function f_type_print_args.
5416 * p-typeprint.c: Delete unused function pascal_type_print_args.
5417
5418 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
5419
5420 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
5421 comment. Add ``artificial'' to ``union field_location''.
5422
5423 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
5424
5425 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
5426 * mdebugread.c (parse_symbol): Likewise.
5427 * stabsread.c (define_symbol): Likewise.
5428 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
5429 initializing TYPE_FIELD_BITPOS to n (obsolete).
5430 (hpread_doc_function_type): Likewise.
5431 * hpread.c (hpread_function_type): Likewise.
5432
5433 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5434
5435 * configure.in (host_makefile_frag): Only require a host makefile
5436 fragment when a native build.
5437 * configure: Re-generate.
5438
5439 2002-01-20 Andrew Cagney <ac131313@redhat.com>
5440
5441 * doublest.h (floatformat_from_type): Declare.
5442 * doublest.c (floatformat_from_type): New function.
5443 (convert_typed_floating): Use.
5444
5445 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
5446 call to function floatformat_from_type.
5447
5448 * gdbarch.sh (IEEE_FLOAT): Delete.
5449 * gdbarch.h, gdbarch.c: Re-generate.
5450 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
5451 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
5452 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
5453 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
5454 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
5455 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
5456 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
5457 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
5458 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
5459 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
5460 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
5461 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
5462
5463 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
5464 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
5465 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5466 * sh-tdep.c (sh_gdbarch_init): Ditto.
5467 * mips-tdep.c (mips_gdbarch_init): Ditto.
5468 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5469 * cris-tdep.c (cris_gdbarch_init): Ditto.
5470
5471 2002-01-20 Jiri Smid <smid@suse.cz>
5472
5473 * configure.host, configure.tgt: Support x86-64.
5474 * NEWS: Note new target x86-64.
5475
5476 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
5477 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
5478 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
5479 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
5480 x86-64-linux-nat.o): Fix dependencies.
5481
5482 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5483
5484 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
5485 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
5486 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
5487 * config/sparc/xm-sun4os4.h: Delete file.
5488 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
5489
5490 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5491
5492 * config/sparc/sparclynx.mh (XM_FILE): Delete.
5493 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
5494 * config/m68k/m68klynx.mh (XM_FILE): Delete.
5495 * config/i386/i386lynx.mh (XM_FILE): Delete.
5496 * config/rs6000/xm-rs6000ly.h: Delete file.
5497 * config/sparc/xm-sparclynx.h: Delete file.
5498 * config/m68k/xm-m68klynx.h: Delete file.
5499 * config/i386/xm-i386lynx.h: Delete file.
5500 * config/xm-lynx.h: Delete file.
5501 * config/djgpp/fnchange.lst: Update.
5502
5503 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5504
5505 * alpha-tdep.c (alpha_register_byte): New function.
5506 (alpha_register_raw_size): Ditto.
5507 (alpha_register_virtual_size): Ditto.
5508 (alpha_skip_prologue_internal): Renamed from
5509 alpha_skip_prologue.
5510 (alpha_skip_prologue): New version that calls
5511 alpha_skip_prologue_internal.
5512 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
5513 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
5514 second argument from alpha_skip_prologue.
5515 (REGISTER_BYTE): Use alpha_register_byte.
5516 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
5517 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
5518 (FRAMELESS_FUNCTION_INVOCATION): Use
5519 generic_frameless_function_invocation_not.
5520 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
5521 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
5522
5523 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5524
5525 * config/mips/xm-news-mips.h: Delete file.
5526 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
5527
5528 * config/m88k/xm-m88k.h: Delete file.
5529 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
5530 * config/m88k/xm-delta88v4.h: Ditto.
5531 * config/m88k/xm-delta88.h: Ditto.
5532
5533 * config/alpha/xm-fbsd.h: Delete file.
5534 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
5535
5536 * config/sparc/xm-sparc.h: Delete file.
5537 * Makefile.in (xm-sun4os4.h): Delete dependency.
5538 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
5539 * config/sparc/xm-sun4os4.h: Ditto.
5540 * config/sparc/xm-linux.h: Ditto.
5541
5542 * config/i386/xm-windows.h: Delete file.
5543
5544 2002-01-19 Andrew Cagney <ac131313@redhat.com>
5545
5546 * utils.c: Include <sys/param.h> for MAXPATHLEN.
5547 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
5548
5549 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5550
5551 * alpha-tdep.c (alpha_call_dummy_words): New.
5552 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
5553 (CALL_DUMMY_P): Define.
5554 (CALL_DUMMY_WORDS): Define.
5555 (SIZEOF_CALL_DUMMY_WORDS): Define.
5556
5557 2002-01-19 Per Bothner <per@bothner.com>
5558
5559 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
5560 isn't NULL, which can happen with some gcj-3.x-produced code.
5561
5562 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
5563
5564 * alpha-tdep.c (alpha_register_virtual_type): New function.
5565 (alpha_init_frame_pc_first): Ditto.
5566 (alpha_fix_call_dummy): Ditto.
5567 (alpha_store_struct_return): Ditto.
5568 (alpha_extract_struct_value_address): Ditto.
5569 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
5570 alpha_register_virtual_type.
5571 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
5572 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
5573 alpha_extract_struct_value_address.
5574 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
5575 (INIT_FRAME_PC): Use init_frame_pc_noop.
5576 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
5577
5578 2002-01-19 Mark Kettenis <kettenis@gnu.org>
5579
5580 * i386gnu-nat.c: Include "i386-tdep.h".
5581 (fetch_fpregs): Simplify code dealing with uninitialized floating
5582 point states such that it doesn't require FP7_REGNUM.
5583
5584 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5585
5586 * alpha-tdep.c (frame_extra_info): New.
5587 (alpha_find_saved_regs): Make static. Use
5588 frame->extra_info.
5589 (alpha_frame_init_saved_regs): New function.
5590 (alpha_frame_saved_pc): Use frame->extra_info.
5591 (temp_saved_regs): Don't declare as struct frame_saved_regs.
5592 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
5593 (init_extra_frame_info): Rename to...
5594 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
5595 (alpha_print_extra_frame_info): New function.
5596 (alpha_frame_locals_address): Ditto.
5597 (alpha_frame_args_address): Ditto.
5598 (alpha_pop_frame): Use frame->extra_info.
5599 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
5600 alpha_frame_args_address.
5601 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
5602 (alpha_find_saved_regs): Remove prototype.
5603 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
5604 (EXTRA_FRAME_INFO): Remove.
5605 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
5606 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
5607
5608 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5609
5610 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
5611 (alpha_cannot_fetch_register): Ditto.
5612 (alpha_cannot_store_register): Ditto.
5613 (alpha_register_convertible): Ditto.
5614 (alpha_use_struct_convention): Ditto.
5615 * config/alpha/tm-alpha.h: Update copyright years.
5616 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
5617 (INNER_THAN): Use core_addr_lessthan.
5618 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
5619 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
5620 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
5621 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
5622 (FRAME_CHAIN): Remove unnecessary cast.
5623
5624 2002-01-18 Andrew Cagney <ac131313@redhat.com>
5625
5626 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
5627 obsolete.
5628
5629 2002-01-18 Andrew Cagney <ac131313@redhat.com>
5630
5631 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
5632 * monitor.c, remote-array.c, remote-bug.c: Ditto.
5633 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
5634 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
5635 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
5636 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
5637 * x86-64-linux-nat.c: Ditto.
5638
5639 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5640
5641 * alpha-tdep.c (alpha_register_name): New function.
5642 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
5643 (REGISTER_NAME): Define.
5644
5645 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5646
5647 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
5648
5649 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5650
5651 * alpha-tdep.c: Update copyright years.
5652 (alpha_next_pc): New function.
5653 (alpha_software_single_step): Ditto.
5654 * config/alpha/tm-alpha.h: Add prototype for
5655 alpha_software_single_step.
5656
5657 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
5658
5659 * alphabsd-nat.c: Update copyright years.
5660 (fill_gregset): Use regcache_collect.
5661 (fill_fpregset): Likewise.
5662 (fetch_inferior_registers): Only fetch integer registers
5663 if requested to do so.
5664 (store_inferior_registers): Only store integer registers
5665 if requested to do so.
5666
5667 2002-01-17 Andrew Cagney <ac131313@redhat.com>
5668
5669 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
5670 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
5671 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
5672 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
5673 * config/alpha/fbsd.mh (XDEPFILES): Delete.
5674 * config/arm/linux.mh (XDEPFILES): Delete.
5675 * config/arm/nbsd.mh (XDEPFILES): Delete.
5676 * config/i386/i386dgux.mh (XDEPFILES): Delete.
5677 * config/i386/i386sol2.mh (XDEPFILES): Delete.
5678 * config/i386/i386m3.mh (XDEPFILES): Delete.
5679 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
5680 * config/i386/i386gnu.mh (XDEPFILES): Delete.
5681 * config/i386/fbsd.mh (XDEPFILES): Delete.
5682 * config/i386/i386bsd.mh (XDEPFILES): Delete.
5683 * config/i386/i386sco5.mh (XDEPFILES): Delete.
5684 * config/i386/i386v4.mh (XDEPFILES): Delete.
5685 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
5686 * config/i386/i386sco4.mh (XDEPFILES): Delete.
5687 * config/i386/i386aix.mh (XDEPFILES): Delete.
5688 * config/i386/go32.mh (XDEPFILES): Delete.
5689 * config/i386/cygwin.mh (XDEPFILES): Delete.
5690 * config/i386/i386lynx.mh (XDEPFILES): Delete.
5691 * config/i386/i386mach.mh (XDEPFILES): Delete.
5692 * config/i386/i386v32.mh (XDEPFILES): Delete.
5693 * config/i386/linux.mh (XDEPFILES): Delete.
5694 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
5695 * config/i386/ncr3000.mh (XDEPFILES): Delete.
5696 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
5697 * config/i386/i386sco.mh (XDEPFILES): Delete.
5698 * config/i386/i386v.mh (XDEPFILES): Delete.
5699 * config/i386/nbsd.mh (XDEPFILES): Delete.
5700 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
5701 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
5702 * config/i386/symmetry.mh (XDEPFILES): Delete.
5703 * config/i386/obsd.mh (XDEPFILES): Delete.
5704 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
5705 * config/ia64/linux.mh (XDEPFILES): Delete.
5706 * config/ia64/aix.mh (XDEPFILES): Delete.
5707 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
5708 * config/m68k/dpx2.mh (XDEPFILES): Delete.
5709 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
5710 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
5711 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
5712 * config/m68k/linux.mh (XDEPFILES): Delete.
5713 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
5714 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
5715 * config/m68k/nbsd.mh (XDEPFILES): Delete.
5716 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
5717 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
5718 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
5719 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
5720 * config/m88k/delta88.mh (XDEPFILES): Delete.
5721 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
5722 * config/m88k/m88k.mh (XDEPFILES): Delete.
5723 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
5724 * config/mips/linux.mh (XDEPFILES): Delete.
5725 * config/mips/irix6.mh (XDEPFILES): Delete.
5726 * config/mips/irix5.mh (XDEPFILES): Delete.
5727 * config/mips/irix4.mh (XDEPFILES): Delete.
5728 * config/mips/irix3.mh (XDEPFILES): Delete.
5729 * config/mips/decstation.mh (XDEPFILES): Delete.
5730 * config/mips/mipsm3.mh (XDEPFILES): Delete.
5731 (NATDEPFILES): Move core-aout.o to here.
5732 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
5733 * config/pa/hpux1020.mh (XDEPFILES): Delete.
5734 * config/pa/hppabsd.mh (XDEPFILES): Delete.
5735 * config/pa/hppahpux.mh (XDEPFILES): Delete.
5736 * config/pa/hpux11w.mh (XDEPFILES): Delete.
5737 * config/pa/hppaosf.mh (XDEPFILES): Delete.
5738 * config/pa/hpux11.mh (XDEPFILES): Delete.
5739 * config/powerpc/aix.mh (XDEPFILES): Delete.
5740 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
5741 * config/powerpc/linux.mh (XDEPFILES): Delete.
5742 * config/romp/rtbsd.mh: Rename XDEPFILES.
5743 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
5744 * config/rs6000/aix4.mh (XDEPFILES): Delete.
5745 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
5746 * config/s390/s390.mh (XDEPFILES): Delete.
5747 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
5748 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
5749 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
5750 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
5751 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
5752 * config/sparc/nbsd.mh (XDEPFILES): Delete.
5753 * config/sparc/linux.mh (XDEPFILES): Delete.
5754 * config/vax/vaxult.mh (XDEPFILES): Delete.
5755 * config/vax/vaxult2.mh (XDEPFILES): Delete.
5756 * Makefile.in (DEPFILES): Remove XDEPFILES.
5757
5758 2002-01-17 Andrew Cagney <ac131313@redhat.com>
5759
5760 * utils.c (internal_verror): Fix comments, default is yes not no.
5761 Update queries to match. Default to quit and dump core.
5762
5763 2002-01-17 Andrew Cagney <ac131313@redhat.com>
5764
5765 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
5766 copyright.
5767 * defs.h, event-top.c, gdbcmd.h: Ditto.
5768 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
5769 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
5770 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
5771 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
5772 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
5773 * mi/mi-main.c:Ditto.
5774
5775 * stack.c, symfile.c: Update copyright.
5776
5777 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
5778
5779 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
5780 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
5781 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
5782 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
5783
5784 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
5785
5786 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
5787 * gdbserver/low-lynx.c (myattach): Likewise.
5788 * gdbserver/low-nbsd.c (myattach): Likewise.
5789 * gdbserver/low-sim.c (myattach): Likewise.
5790 * gdbserver/low-sparc.c (myattach): Likewise.
5791 * gdbserver/low-sun3.c (myattach): Likewise.
5792
5793 * gdbserver/low-linux.c (myattach): New function.
5794
5795 * gdbserver/server.c (attach_inferior): New function.
5796 (main): Handle "--attach".
5797
5798 2002-01-16 Andrew Cagney <ac131313@redhat.com>
5799
5800 * MAINTAINERS (language support): Daniel Jacobwitz is C++
5801 maintainer.
5802
5803 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
5804
5805 * c-typeprint.c (is_type_conversion_operator): Add additional
5806 check for non-conversion operators.
5807
5808 2002-01-15 Michael Snyder <msnyder@redhat.com>
5809
5810 * linux-proc.c: Add "info proc" command, a la procfs.c.
5811 (read_mapping): New function, abstract and re-use code.
5812 (linux_find_memory_regions): Use new func read_mapping.
5813 (linux_info_proc_cmd): New function, implement "info proc".
5814 (_initialize_linux_proc): Add new command "info proc".
5815
5816 2002-01-15 Michael Snyder <msnyder@redhat.com>
5817
5818 * symfile.c (generic_load): Use bfd_map_over_sections method
5819 instead of manipulating bfd structure members directly.
5820 (add_section_size_callback): New function, bfd sections callback
5821 used by generic_load.
5822 (load_sections_callback): New function, bfd sections callback
5823 used by generic_load.
5824
5825 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
5826
5827 [Based on work by Jim Blandy]
5828 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
5829 (builtin_type_vec128): Export.
5830 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
5831 types.
5832 (builtin_type_vec128): New builtin type for 128 bit vector
5833 registers.
5834 (build_gdbtypes): Initialize builtin_type_v16qi and
5835 builtin_type_v8hi. Create the vec128 register builtin type
5836 structure.
5837 (build_builtin_type_vec128): New function.
5838 (_initialize_gdbtypes): Register builtin_type_v16qi and
5839 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
5840 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
5841 AltiVec register to new builtin type.
5842
5843 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
5844
5845 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
5846 to make_cv_type.
5847
5848 2002-01-14 Andrew Cagney <ac131313@redhat.com>
5849
5850 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
5851 CLEAN_UP_REGISTER_VALUE.
5852 * regcache.c (supply_register): Update only call.
5853
5854 2002-01-14 Andrew Cagney <ac131313@redhat.com>
5855
5856 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
5857 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
5858 a29k-*-vxworks* targets as obsolete.
5859
5860 2002-01-14 Michael Snyder <msnyder@redhat.com>
5861
5862 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
5863 until we can resolve portability issues.
5864 * gregset.h: Remove references to fpxregs.
5865 * gcore.c (gcore_command): Initialize note_sec to NULL.
5866
5867 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5868
5869 * signals.c (target_signal_to_name): Rewrite. Only use
5870 signals[].name when in bounds and non-NULL.
5871
5872 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5873
5874 From Petr Ledvina <ledvinap@kae.zcu.cz>:
5875 * signals.c (target_signal_to_name): Verify that SIG is within the
5876 bounds of the signals array.
5877
5878 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5879
5880 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
5881
5882 2002-01-13 Keith Seitz <keiths@redhat.com>
5883
5884 * stack.c (print_frame_info_base): Print the frame's pc
5885 only if when print_frame_info_listing_hook is not defined.
5886
5887 2002-01-13 Keith Seitz <keiths@redhat.com>
5888
5889 * varobj.c (varobj_set_value): Make sure that there were no
5890 errors evaluating the object before attempting to set its
5891 value.
5892 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
5893 so this offset adjustment is no longer necessary.
5894 (create_child): Don't set the error flag if the child is
5895 a CPLUS_FAKE_CHILD.
5896 (value_of_child): If value_fetch_lazy fails, return NULL
5897 so that callers will be notified that an error occurred.
5898 (c_value_of_variable): Delay check of variable's validity
5899 until later. We actually want all structs and unions to have
5900 the value "{...}".
5901 Do not return "???" for variables which could not be evaluated.
5902 This error condition must be returned to the caller so that it
5903 can get the error condition from gdb.
5904 (cplus_name_of_child): Adjust index for vptr before figuring
5905 out the name of the child.
5906 (cplus_value_of_child): If a child's (real) parent is not valid,
5907 don't even bother trying to give a value for it. Just return
5908 an error. Change all instances in this function.
5909 (cplus_type_of_child): If our parent is one of the "fake"
5910 parents, we need to get at the type of the real parent, and
5911 derive the child's true type using this information.
5912
5913 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5914
5915 From 2002-01-09 John Marshall <johnm@falch.net>:
5916 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
5917 sources.redhat.com, and tweak some related URLs which had
5918 suffered from linkrot.
5919
5920 2002-01-13 Andrew Cagney <ac131313@redhat.com>
5921
5922 From Jeff law:
5923 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
5924 structures passed in registers.
5925
5926 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
5927
5928 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
5929 white space which prevented compilation. Reported by DSK
5930 <dsk@student.unsw.edu.au>.
5931
5932 2002-01-11 Michael Snyder <msnyder@redhat.com>
5933
5934 * symfile.c (build_section_addr_info_from_section_tab):
5935 Use bfd access method instead of manipulating bfd directly.
5936 (syms_from_objfile): Ditto.
5937 (simple_overlay_update_1): Ditto.
5938 (simple_overlay_update): Ditto.
5939 (generic_load): Ditto.
5940 (overlay_unmapped_address): FIXME comment, bfd access methods.
5941 (sections_overlap): FIXME comment, bfd access methods.
5942 (pc_in_mapped_range): FIXME comment, bfd access methods.
5943 (pc_in_unmapped_range): FIXME comment, bfd access methods.
5944 (section_is_mapped): FIXME comment, bfd access methods.
5945 (section_is_overlay): FIXME comment, bfd access methods.
5946
5947 * symfile.c (generic_load): Whitespace and long line cleanups.
5948 Remove duplicate variable, change several local variables to
5949 more appropriate data types.
5950 (print_transfer_performance): Use %lu instead of %ld for ulongs.
5951
5952 2002-01-12 Andrew Cagney <ac131313@redhat.com>
5953
5954 From Peter Schauer:
5955 * language.c (longest_local_hex_string_custom): Use phex_nz to
5956 convert NUM to a hex string.
5957
5958 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
5959
5960 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
5961 the function.
5962 Update Copyright year.
5963
5964 2002-01-12 Andrew Cagney <ac131313@redhat.com>
5965
5966 * language.c (longest_raw_hex_string): Delete unused function.
5967
5968 2002-01-11 Petr Sorfa <petrs@caldera.com>
5969
5970 * MAINTAINERS (write-after-approval): Add myself.
5971 * dwarf2read.c (read_tag_string_type): Handling of
5972 DW_AT_byte_size.
5973 (read_tag_string_type): FORTRAN fix to prevent propagation of
5974 first string size.
5975 (set_cu_language): Handling of DW_LANG_Fortran95
5976
5977 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
5978
5979 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
5980 GETPID(inferior_ptid).
5981 (store_inferior_registers): Likewise.
5982
5983 2002-01-10 Jason Merrill <jason@redhat.com>
5984
5985 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
5986 Fix DW_OP_minus.
5987
5988 2002-01-10 Andrew Cagney <ac131313@redhat.com>
5989
5990 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
5991 and bfd/elf32-sh-nbsd.c.
5992
5993 2002-01-10 Michael Snyder <msnyder@redhat.com>
5994
5995 * NEWS: Mention --pid and corefile/proc-id behavior change.
5996
5997 * Makefile.in: Add rules for gcore.o and linux-proc.o.
5998 * gcore.c: Include cli/cli-decode.h instead of command.h.
5999
6000 * main.c (captured_main): Add new command line option "--pid".
6001 If the second command line argument (following the symbol-file)
6002 begins with a digit, try to attach to it before trying to open
6003 it as a corefile.
6004 (print_gdb_help): Document the "--pid" argument.
6005
6006 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
6007
6008 * completer.c (command_completer): New function.
6009
6010 * completer.h <command_completer>: Add prototype.
6011
6012 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
6013 completer for the "help" command.
6014
6015 2002-01-09 Jason Merrill <jason@redhat.com>
6016
6017 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
6018
6019 2002-01-09 Michael Snyder <msnyder@redhat.com>
6020
6021 * i386-linux-nat.c (fill_fpxregset): Make global.
6022 (store_fpxregset): Ditto.
6023
6024 * gregset.h (gdb_fpxregset_t): Define.
6025 (supply_fpxregset): Prototype.
6026 (fill_fpxregset): Prototype.
6027
6028 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
6029
6030 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
6031
6032 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
6033 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
6034 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
6035
6036 2002-01-09 Andrew Cagney <ac131313@redhat.com>
6037
6038 * MAINTAINERS: Update target maintainer rules so that any
6039 Maintainer can approve a tested patch for a maintenance-only
6040 target.
6041
6042 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
6043
6044 * MAINTAINERS (write-after-approval): Add myself.
6045
6046 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
6047 IN_SIGTRAMP.
6048
6049 2002-01-08 Michael Snyder <msnyder@redhat.com>
6050
6051 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
6052 real name of the executable, rather than the /proc name.
6053
6054 2002-01-03 Michael Snyder <msnyder@redhat.com>
6055
6056 Implement a "generate-core-file" command in gdb, save target state.
6057 * gcore.c: New file. Implement new command 'generate-core-file'.
6058 Save a corefile image of the current state of the inferior.
6059 * linux-proc.c: Add linux-specific code for saving corefiles.
6060 * target.h (struct target_ops): Add new target vectors for saving
6061 corefiles; to_find_memory_regions and to_make_corefile_notes.
6062 (target_find_memory_regions): New macro.
6063 (target_make_corefile_notes): New macro.
6064 * target.c (update_current_target): Inherit new target methods.
6065 (dummy_find_memory_regions): New place-holder method.
6066 (dummy_make_corefile_notes): New place-holder method.
6067 (init_dummy_target): Initialize new dummy target vectors.
6068 * exec.c (exec_set_find_memory_regions): New function.
6069 Allow the exec_ops vector for memory regions to be taken over.
6070 (exec_make_note_section): New function, target vector method.
6071 * defs.h (exec_set_find_memory_regions): Export prototype.
6072 * procfs.c (proc_find_memory_regions): New function, corefile method.
6073 (procfs_make_note_section): New function, corefile method.
6074 (init_procfs_ops): Set new target vector pointers.
6075 (find_memory_regions_callback): New function.
6076 (procfs_do_thread_registers): New function.
6077 (procfs_corefile_thread_callback): New function.
6078 * sol-thread.c (sol_find_memory_regions): New function.
6079 (sol_make_note_section): New function.
6080 (init_sol_thread_ops): Initialize new target vectors.
6081 * inftarg.c (inftarg_set_find_memory_regions): New function.
6082 Allow to_find_memory_regions vector to be taken over.
6083 (inftarg_set_make_corefile_notes): New function.
6084 Allow to_make_corefile_notes vector to be taken over.
6085 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
6086 interface layer if not target_has_execution (may be a corefile).
6087 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
6088 * config/sparc/sun4sol2.mh: Ditto.
6089 * config/alpha/alpha-linux.mh: Ditto.
6090 * config/arm/linux.mh: Ditto.
6091 * config/i386/x86-64linux.mh: Ditto.
6092 * config/ia64/linux.mh: Ditto.
6093 * config/m68k/linux.mh: Ditto.
6094 * config/mips/linux.mh: Ditto.
6095 * config/powerpc/linux.mh: Ditto.
6096 * config/sparc/linux.mh: Ditto.
6097
6098 2002-01-07 Michael Snyder <msnyder@redhat.com>
6099
6100 * arm-linux-nat.c: Remove references to regcache.c internal data
6101 (registers[] and register_valid[]).
6102
6103 2002-01-07 Michael Snyder <msnyder@redhat.com>
6104
6105 * linux-proc.c: New file. Implement child_pid_to_exec_file,
6106 so that attaching to a pid will automatically read the process's
6107 symbol file and shlibs.
6108 * Makefile.in: Add rule for linux-proc.o.
6109 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
6110 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
6111 * config/arm/linux.mh: Ditto.
6112 * config/i386/linux.mh: Ditto.
6113 * config/i386/x86-64linux.mh: Ditto.
6114 * config/ia64/linux.mh: Ditto.
6115 * config/m68k/linux.mh: Ditto.
6116 * config/mips/linux.mh: Ditto.
6117 * config/powerpc/linux.mh: Ditto.
6118 * config/sparc/linux.mh: Ditto.
6119
6120 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
6121
6122 * win32-nat.c: Add i386-tdep.h dependency.
6123
6124 2002-01-07 Michael Snyder <msnyder@redhat.com>
6125
6126 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
6127 instead of bfd_get_arch_size. Don't bail out just because
6128 there's no exec_bfd.
6129
6130 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
6131 * p-valprint.c (pascal_object_print_value): Ditto.
6132 * somread.c (som_symtab_read): Ditto.
6133 * symfile.c (simple_free_overlay_region_table): Ditto.
6134 * valops.c (value_assign): Ditto.
6135
6136 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
6137 use tilde_expand and strerror for opening save-tracepoints file.
6138
6139 * thread-db.c (thread_db_new_objfile): Indendation fix.
6140
6141 * infptrace.c (GDB_MAX_ALLOCA): New define.
6142 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
6143 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
6144 can be overridden with whatever value is appropriate to the host).
6145 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
6146 alloca to allocate potentially large buffer.
6147 * rs6000-nat.c (child_xfer_memory): Ditto.
6148 * symm-nat.c (child_xfer_memory): Ditto.
6149 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
6150
6151 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
6152
6153 From Nick Clifton <nickc@redhat.com>
6154 * d10v-tdep.c: Set STACK_START to 0x200bffe.
6155
6156 2002-01-07 Michael Snyder <msnyder@redhat.com>
6157
6158 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
6159 Don't use exec_bfd if it's NULL.
6160
6161 2002-01-06 Mark Kettenis <kettenis@gnu.org>
6162
6163 * valops.c (value_arg_coerce): Fix formatting.
6164
6165 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6166
6167 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
6168 * gnu-nat.c: Ditto.
6169
6170 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6171
6172 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
6173 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
6174 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
6175 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
6176 z8k-coff have not been multi-arched. Update z8k-coff build
6177 status.
6178
6179 2002-01-06 Andrew Cagney <ac131313@redhat.com>
6180
6181 * MAINTAINERS: Mark a29k target as obsolete.
6182 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
6183 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
6184 comments.
6185 * NEWS: Note that a29k targets are obsolete.
6186 * a29k-tdep.c: Mark as obsolete.
6187 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
6188 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
6189 a29k-*-vxworks* targets as obsolete.
6190 * remote-adapt.c: Obsolete.
6191 * remote-eb.c: Obsolete.
6192 * remote-mm.c: Obsolete.
6193 * remote-udi.c: Obsolete.
6194 * config/a29k/a29k-udi.mt: Obsolete.
6195 * config/a29k/a29k.mt: Obsolete.
6196 * config/a29k/tm-a29k.h: Obsolete.
6197 * config/a29k/tm-vx29k.h: Obsolete.
6198 * config/a29k/vx29k.mt: Obsolete.
6199
6200 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6201
6202 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
6203 with BFD_ENDIAN_BIG.
6204
6205 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6206
6207 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
6208 * configure, config.in: Re-generate.
6209 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
6210 * defs.h: Do not include <endian.h>.
6211
6212 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
6213
6214 * acconfig.h (HAVE_PT_GETXMMREGS): New.
6215 * config.in: Regenerate.
6216 * configure.in: Update copyright years.
6217 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
6218 * configure: Regenerate.
6219 * i386bsd-nat.c: Update copyright years.
6220 (fill_gregset): Use regcache_collect.
6221 (fetch_inferior_registers): Only fetch integer registers
6222 if requested to do so. Add support for XMM registers
6223 using PT_GETXMMREGS.
6224 (store_inferior_registers): Only store integer registers
6225 if requested to do so. Add support for XMM registers
6226 using PT_SETXMMREGS.
6227 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
6228 (store_inferior_registers): Remove.
6229 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
6230 (fetch_elfcore_registers): New function.
6231 (i386nbsd_elfcore_fns): New.
6232 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
6233 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
6234 i386bsd-nat.o.
6235 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
6236 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
6237 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
6238 * config/i386/tm-nbsd.h: Update copyright years.
6239 (HAVE_SSE_REGS): Define.
6240 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
6241 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
6242 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
6243 (SIGCONTEXT_PC_OFFSET): Remove.
6244 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
6245
6246 2002-01-05 Andrew Cagney <ac131313@redhat.com>
6247
6248 * configure.tgt: Remove powerpc-*-macos* target.
6249 * config/m68k/xm-mpw.h: Delete file.
6250 * config/xm-mpw.h: Delete file.
6251 * ser-mac.c: Delete file.
6252 * mpw-make.sed: Delete file.
6253 * mpw-config.in: Delete file.
6254 * mac-xdep.c: Delete file.
6255 * mac-gdb.r: Delete file.
6256 * mac-defs.h: Delete file.
6257 * mac-nat.c: Delete file.
6258 * config/powerpc/macos.mh: Delete file.
6259 * config/powerpc/macos.mt: Delete file.
6260 * config/powerpc/nm-macos.h: Delete file.
6261 * config/powerpc/tm-macos.h: Delete file.
6262 * source.c (openp, open_source_file): Remove obsolete code.
6263 * top.c (gdb_readline): Ditto.
6264 * utils.c (query): Ditto.
6265 * event-top.c (display_gdb_prompt): Ditto.
6266 * Makefile.in (ser-mac.o): Delete obsolete target.
6267 * NEWS: Update.
6268
6269 2002-01-04 Andrew Cagney <ac131313@redhat.com>
6270
6271 * defs.h (BIG_ENDIAN): Delete macro definition.
6272 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
6273 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
6274 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
6275 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
6276 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
6277 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
6278 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
6279 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
6280 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
6281 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
6282 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
6283 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
6284 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
6285 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
6286 * gdbarch.c: Re-generate.
6287
6288 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6289
6290 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
6291 for core files.
6292
6293 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6294
6295 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
6296
6297 2002-01-04 Andrew Cagney <ac131313@redhat.com>
6298
6299 * value.h (value_ptr): Delete typedef.
6300
6301 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
6302
6303 * i386nbsd-nat.c: Update copyright years.
6304 Include i386-tdep.h.
6305
6306 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
6307
6308 * stabsread.c: Update copyright years.
6309
6310 From Debashis Mahata <debashis.mahata@wipro.com>:
6311 (read_struct_fields): Deal with Sun C compiler erroneous stab
6312 output for structs and unions.
6313 Fix PR gdb/269.
6314
6315 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6316
6317 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
6318 prototype.
6319
6320 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6321
6322 * cp-abi.c: Fix whitespace.
6323 (baseclass_offset): New wrapper function.
6324 * cp-abi.h (baseclass_offset): Add prototype.
6325 (struct cp_abi_ops): Add baseclass_offset pointer.
6326
6327 * valops.c (vb_match): Move to...
6328 * gnu-v2-abi.c (vb_match): here.
6329 * valops.c (baseclass_offset): Move to...
6330 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
6331
6332 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
6333
6334 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
6335 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
6336 * hpacc-abi.c (init_hpacc_ops): Likewise.
6337
6338 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6339
6340 * valops.c (find_overload_match): Accept obj as a
6341 reference parameter. Update it before returning.
6342 * value.h (find_overload_match): Update prototype.
6343 * eval.c (evaluate_subexp_standard): Pass object to
6344 find_overload_match by reference.
6345
6346 2002-01-03 Andrew Cagney <ac131313@redhat.com>
6347
6348 * valarith.c: Replace value_ptr with struct value pointer. Remove
6349 register attribute from value declarations.
6350 * valops.c: Ditto.
6351 * value.h: Ditto.
6352 * scm-lang.c (scm_lookup_name): Ditto.
6353
6354 2002-01-03 Michael Snyder <msnyder@redhat.com>
6355
6356 Abstract the functionality of iterating over mapped memory
6357 regions into a general purpose iterator function.
6358 * procfs.c (iterate_over_mappings): New function, general purpose
6359 iterator for memory sections.
6360 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
6361 (solib_mappings_callback): New function, callback for above.
6362 (info_proc_mappings): Reimpliment using iterate_over_mappings.
6363 (info_mappings_callback): New function, callback for above.
6364
6365 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
6366
6367 2002-01-01 Mark Kettenis <kettenis@gnu.org>
6368
6369 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
6370 * i386-tdep.c: Include "elf-bfd.h".
6371 (process_note_abi_tag_sections): New function.
6372 (i386_gdbarch_init): Add code to recognize various OS/ABI
6373 combinations.
6374
6375 * maint.c (_initialize_maint_cmds): Add missing \ in
6376 string-literal.
6377
6378 For older changes see ChangeLog-2001
6379 \f
6380 Local Variables:
6381 mode: change-log
6382 left-margin: 8
6383 fill-column: 74
6384 version-control: never
6385 End:
This page took 0.163048 seconds and 4 git commands to generate.