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