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