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