* alphafbsd-tdep.c: Update copyright years. Include
[binutils-gdb.git] / gdb / ChangeLog
1 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
2
3 * alphafbsd-tdep.c: Update copyright years. Include
4 alpha-tdep.h.
5 (alphafbsd_use_struct_convention): Make static.
6 (alphafbsd_init_abi): New function.
7 (_initialize_alphafbsd_tdep): New function.
8 * config/alpha/tm-fbsd.h: Update copyright years.
9 (USE_STRUCT_CONVENTION): Remove.
10
11 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
12
13 * alpha-tdep.c (alpha_abi_handler): New structure to describe
14 an Alpha ABI variant.
15 (alpha_abi_handler_list): Declare.
16 (alpha_gdbarch_register_os_abi): New function.
17 (alpha_gdbarch_init): Give registered ABI variant handlers a
18 chance to tweak the gdbarch once we have set up defaults.
19 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
20
21 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
22
23 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
24 to standard_coerce_float_to_double.
25 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
26
27 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
28
29 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
30 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
31 from gdbarch_tdep rather than a constant.
32 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
33 the default text address for all Alpha Unix ABIs.
34 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
35 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
36
37 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
38
39 * alpha-tdep.h: New file. Includes several Alpha target constants
40 taken from...
41 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
42 let gdbarch deal with.
43 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
44 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
45 to dependency list.
46 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
47 Alpha target register names.
48 * alphabsd-nat.c: Likewise.
49 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
50 Alpha target register names. Make serveral routines static.
51 (alpha_get_saved_register): New function.
52 (alpha_abi_names): New.
53 (process_note_abi_tag_sections): New function.
54 (get_elfosabi): New function.
55 (alpha_gdbarch_init): New function.
56 (alpha_dump_tdep): New function.
57 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
58
59 2002-04-21 Andrew Cagney <ac131313@redhat.com>
60
61 * frame.c (find_saved_register): Delete #ifdef
62 HAVE_REGISTER_WINDOWS code.
63 * config/sparc/tm-sparc.h: Update comments.
64 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
65
66 2002-04-21 Andrew Cagney <ac131313@redhat.com>
67
68 * i960-tdep.c (i960_find_saved_register): New function.
69 (i960_get_saved_register): New function.
70 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
71 (i960_get_saved_register): Declare.
72 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
73
74 2002-04-20 David S. Miller <davem@redhat.com>
75
76 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
77
78 2002-04-20 Andrew Cagney <ac131313@redhat.com>
79
80 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
81 instead of NUM_PSEUDO_REGS.
82
83 2002-04-20 David S. Miller <davem@redhat.com>
84
85 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
86 GDB_MULTI_ARCH_PARTIAL
87 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
88 define, let tm-sp64.h do it.
89
90 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
91
92 * frame.c (find_saved_register): Avoid a NULL pointer
93 dereference and actually walk the frame list.
94
95 2002-04-20 Andrew Cagney <ac131313@redhat.com>
96
97 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
98 sorted in most most-recent-used order. Document.
99 * gdbarch.h, gdbarch.c: Regenerate.
100
101 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
102
103 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
104 (add_inferior): Call create_register_cache.
105 (clear_inferiors): Call free_register_cache.
106 (inferior_regcache_data, set_inferior_regcache_data): New functions.
107 * gdbserver/regcache.c (struct inferior_regcache_data): New.
108 (registers): Remove.
109 (get_regcache): New function.
110 (create_register_cache, free_register_cache): New functions.
111 (set_register_cache): Don't initialize the register cache here.
112 (registers_to_string, registers_from_string, register_data): Call
113 get_regcache.
114 * gdbserver/regcache.h: Add prototypes.
115 * gdbserver/server.h: Likewise.
116
117 2002-04-20 Daniel Jacobowitz <drow@mvista.com>
118
119 * gdbserver/mem-break.c: New file.
120 * gdbserver/mem-break.h: New file.
121 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
122 dependencies.
123 * gdbserver/inferiors.c (struct inferior_info): Add target_data
124 member.
125 (clear_inferiors): Free target_data member if set.
126 (inferior_target_data, set_inferior_target_data): New functions.
127 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
128 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
129 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
130 (struct inferior_linux_data): New.
131 (linux_create_inferior): Use set_inferior_target_data.
132 (linux_attach): Likewise. Call add_inferior.
133 (linux_wait_for_one_inferior): New function.
134 (linux_wait): Call it.
135 (linux_write_memory): Add const.
136 (initialize_low): Call set_breakpoint_data.
137 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
138 handling members.
139 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
140 call.
141 * gdbserver/server.h: Include mem-break.h. Update inferior.c
142 prototypes.
143 * gdbserver/target.c (read_inferior_memory)
144 (write_inferior_memory): New functions.
145 * gdbserver/target.h (read_inferior_memory)
146 (write_inferior_memory): Change macros to prototypes.
147 (struct target_ops): Update comments. Add const to write_memory
148 definition.
149
150 2002-04-19 Andrew Cagney <ac131313@redhat.com>
151
152 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
153 instead of ->prev.
154 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
155 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
156 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
157 instead of ->prev.
158
159 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
160
161 Fix PR gdb/471.
162 * gdbtypes.c (init_simd_type): Rewrite using new functions.
163 (build_builtin_type_vec128): Ditto.
164 (append_composite_type_field): Fix calculation of type length in
165 union case.
166
167 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
168
169 * config/djgpp/README: Update.
170
171 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
172 compiler warnings.
173
174 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
175
176 * alpha-tdep.c (setup_arbitrary_frame): Rename...
177 (alpha_setup_arbitrary_frame): ...to this.
178 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
179 for alpha_setup_arbitrary_frame.
180
181 2002-04-18 Andrew Cagney <cagney@redhat.com>
182
183 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
184 * gdbarch.h, gdbarch.c: Regenerate.
185
186 * defs.h (breakpoint_from_pc_fn): Delete type definition.
187 * target.h (memory_breakpoint_from_pc): Update declaration.
188 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
189
190 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
191 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
192 * mem-break.c (memory_breakpoint_from_pc): Ditto.
193 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
194 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
195 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
196 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
197 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
198 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
199 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
200 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
201 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
202
203 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
204 const pointer.
205 * monitor.c (monitor_insert_breakpoint): Ditto.
206 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
207
208 * config/mcore/tm-mcore.h: Update copyright.
209 * mem-break.c: Ditto.
210 * xstormy16-tdep.c: Ditto.
211
212 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
213
214 * p-exp.y: Add precedence rule for '^' token.
215 This removes the shift/reduce conflicts.
216 Remove the comment concerning these shift/reduce conflicts.
217
218 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
219
220 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
221 (registers_powerpc_nofp): New register set for processors
222 without floating point unit.
223
224 2002-04-18 David S. Miller <davem@redhat.com>
225
226 * MAINTAINERS: Add myself to write-after-approval.
227
228 2002-04-17 Andrew Cagney <ac131313@redhat.com>
229
230 * rs6000-tdep.c (frame_initial_stack_address): Use
231 frame_register_read to read the alloca_reg.
232
233 2002-04-17 Andrew Cagney <ac131313@redhat.com>
234
235 * frame.c (find_saved_register): Find saved registers in the next
236 not prev frame.
237 Fix PR gdb/365.
238
239 2002-04-17 Andrew Cagney <ac131313@redhat.com>
240
241 * gdbarch.sh (LANG): Set to ``c''.
242
243 2002-04-15 Andrew Cagney <ac131313@redhat.com>
244
245 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
246
247 2002-04-15 Andrew Cagney <ac131313@redhat.com>
248
249 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
250 Update copyright.
251
252 * hpread.c (hpread_get_lntt): Add declaration.
253 Also fix PR gdb/391.
254
255 2002-04-14 Andrew Cagney <ac131313@redhat.com>
256
257 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
258 * aclocal.m4, configure: Re-generate.
259 Fix PR gdb/391.
260
261 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
262
263 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
264 instead of tm_print_insn.
265
266 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
267
268 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
269
270 2002-04-14 Andrew Cagney <ac131313@redhat.com>
271
272 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
273 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
274 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
275
276 2002-04-12 Don Howard <dhoward@redhat.com>
277
278 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
279 max_user_call_depth.
280 (init_cmd_lists): Initialize the new value;
281 * cli/cli-script.c (execute_user_command): Limit the call depth of
282 user defined commands. This avoids a core-dump when user commands
283 are infinitly recursive.
284
285 2002-04-12 Kevin Buettner <kevinb@redhat.com>
286
287 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
288 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
289 from tdep struct instead of DEFAULT_LR_SAVE.
290 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
291 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
292 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
293
294 2002-04-12 Michael Snyder <msnyder@redhat.com>
295
296 * Remote.c: Spelling fix.
297 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
298 If no symbol found for "sbrk", try "_sbrk".
299 (make_output_phdrs): Use bfd_section_name.
300 (gcore_copy_callback): Use bfd_section_name.
301 * eval.c: Indentation fix-ups.
302 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
303 in case it gets applied to an address that is already
304 in the instruction space.
305 * cli/cli-decode.c (help_list): Allow long lines to wrap.
306 * symfile.c: Fix indentation, long lines.
307 * source.c: White space fix-up.
308
309 2002-04-12 Andrew Cagney <cagney@redhat.com>
310
311 * defs.h (read_relative_register_raw_bytes): Delete declaration.
312 * frame.c (frame_register_read): New function. Return non-zero on
313 success.
314 (read_relative_register_raw_bytes_for_frame): Delete.
315 (read_relative_register_raw_bytes): Delete.
316 * frame.h (frame_register_read): Declare.
317 * d30v-tdep.c: Update Copyright. Use frame_register_read.
318 * sh-tdep.c: Ditto.
319 * infcmd.c (do_registers_info): Ditto.
320 * hppa-tdep.c: Ditto.
321 * rs6000-tdep.c: Ditto.
322 * h8500-tdep.c: Ditto.
323 * mips-tdep.c: Ditto.
324 * h8300-tdep.c: Ditto.
325 * z8k-tdep.c: Ditto.
326
327 2002-04-12 Kevin Buettner <kevinb@redhat.com>
328
329 From Jimi X <jimix@watson.ibm.com>:
330 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
331 64-bit SysV ABI.
332
333 2002-04-12 Kevin Buettner <kevinb@redhat.com>
334
335 From Jimi X <jimix@watson.ibm.com>:
336 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
337 bfd info.
338
339 2002-04-12 Kevin Buettner <kevinb@redhat.com>
340
341 From Jimi X <jimix@watson.ibm.com>:
342 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
343 register sets for these processor variants.
344
345 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
346
347 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
348 registers which are allowed to fail to store.
349 * gdbserver/linux-low.h (linux_target_ops): Likewise.
350 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
351 (ppc_cannot_store_register): FPSCR may not be storable.
352 * regformats/reg-ppc.dat: Support FPSCR.
353
354 2002-04-11 Kevin Buettner <kevinb@redhat.com>
355
356 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
357 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
358 Add fpscr as an invalid/unfetchable register.
359 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
360 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
361 (fill_fpregset): Add support for register fpscr.
362 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
363 (fill_gregset): Account for the fact that register ``mq'' might
364 not exist.
365 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
366 (registers_power): Add fpscr to register set at slot 71.
367 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
368 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
369
370 2002-04-11 Michael Snyder <msnyder@redhat.com>
371
372 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
373 * configure: Regenerate.
374 * config.in: Regenerate.
375 * acconfig.h: Add define for _SYSCALL32.
376 * core-sol2.c: Remove #define _SYSCALL32.
377 * solib-legacy.c: Remove #define _SYSCALL32.
378
379 2002-04-10 Andrew Cagney <ac131313@redhat.com>
380
381 * stack.c (select_frame): Cleanup internal error message, do not
382 use %p.
383
384 2002-04-10 Andrew Cagney <ac131313@redhat.com>
385
386 * stack.c (select_frame): Check that selected_frame and the
387 specified level are as expected.
388 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
389 Update copyright.
390 * frame.h (struct frame_info): Add field `level'. Update
391 copyright.
392 Work-in-progress PR gdb/464.
393
394 2002-04-10 Andrew Cagney <ac131313@redhat.com>
395
396 * maint.c (maint_print_section_info): Rename print_section_info.
397 (print_bfd_section_info, print_objfile_section_info): Update.
398 * inferior.h (struct gdbarch): Add opaque declaration.
399 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
400 * gdbarch.h: Regenerate.
401
402 2002-04-10 Michal Ludvig <mludvig@suse.cz>
403
404 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
405 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
406 (kernel_u_size): Added.
407 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
408 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
409
410 2002-04-04 Jim Ingham <jingham@apple.com>
411
412 * valarith.c (find_size_for_pointer_math): New function, either returns
413 the size for a pointer's target, returns 1 for void *, or errors for
414 incomplete types.
415 (value_add, value_sub): use find_size_for_pointer_math.
416
417 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
418
419 * linux-low.c (linux_look_up_symbols): New hook.
420 (linux_target_ops): Add linux_look_up_symbols.
421 * remote-utils.c (decode_address): New function.
422 (look_up_one_symbol): New function.
423 * server.c (handle_query): Call target look_up_symbols hook.
424 * server.h (look_up_one_symbol): Add prototype.
425 * target.h (struct target_ops): Add look_up_symbols hook.
426
427 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
428
429 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
430 * ChangeLog: Correct paths in last ChangeLog entry.
431
432 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
433
434 * gdbserver/linux-low.h: Remove obsolete prototypes.
435 (struct linux_target_ops): New.
436 (extern the_low_target): New.
437 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
438 (register_addr): Use the_low_target explicitly.
439 (fetch_register): Likewise.
440 (usr_fetch_inferior_registers): Likewise.
441 (usr_store_inferior_registers): Likewise.
442 * gdbserver/linux-arm-low.c (num_regs): Remove.
443 (arm_num_regs): Define.
444 (arm_regmap): Renamed from regmap, made static.
445 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
446 made static.
447 (arm_cannot_store_register): Renamed from cannot_store_register,
448 made static.
449 (the_low_target): New.
450 * gdbserver/linux-i386-low.c (num_regs): Remove.
451 (i386_num_regs): Define.
452 (i386_regmap): Renamed from regmap, made static.
453 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
454 made static.
455 (i386_cannot_store_register): Renamed from cannot_store_register,
456 made static.
457 (the_low_target): New.
458 * gdbserver/linux-ia64-low.c (num_regs): Remove.
459 (ia64_num_regs): Define.
460 (ia64_regmap): Renamed from regmap, made static.
461 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
462 made static.
463 (ia64_cannot_store_register): Renamed from cannot_store_register,
464 made static.
465 (the_low_target): New.
466 * gdbserver/linux-m68k-low.c (num_regs): Remove.
467 (m68k_num_regs): Define.
468 (m68k_regmap): Renamed from regmap, made static.
469 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
470 made static.
471 (m68k_cannot_store_register): Renamed from cannot_store_register,
472 made static.
473 (the_low_target): New.
474 * gdbserver/linux-mips-low.c (num_regs): Remove.
475 (mips_num_regs): Define.
476 (mips_regmap): Renamed from regmap, made static.
477 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
478 made static.
479 (mips_cannot_store_register): Renamed from cannot_store_register,
480 made static.
481 (the_low_target): New.
482 * gdbserver/linux-ppc-low.c (num_regs): Remove.
483 (ppc_num_regs): Define.
484 (ppc_regmap): Renamed from regmap, made static.
485 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
486 made static.
487 (ppc_cannot_store_register): Renamed from cannot_store_register,
488 made static.
489 (the_low_target): New.
490 * gdbserver/linux-s390-low.c (num_regs): Remove.
491 (s390_num_regs): Define.
492 (s390_regmap): Renamed from regmap, made static.
493 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
494 made static.
495 (s390_cannot_store_register): Renamed from cannot_store_register,
496 made static.
497 (the_low_target): New.
498 * gdbserver/linux-sh-low.c (num_regs): Remove.
499 (sh_num_regs): Define.
500 (sh_regmap): Renamed from regmap, made static.
501 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
502 made static.
503 (sh_cannot_store_register): Renamed from cannot_store_register,
504 made static.
505 (the_low_target): New.
506 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
507 (the_low_target): New.
508
509 2002-04-09 Andrew Cagney <ac131313@redhat.com>
510
511 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
512 override FP_REGNUM with frame->fp. Update copyright.
513 * parse.c (num_std_regs, std_regs): Delete.
514 (target_map_name_to_register): Do not search std_regs. Update
515 function description.
516 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
517 declarations. Update copyright.
518 Fix PR gdb/251.
519
520 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
521
522 * gdbserver/Makefile.in: Add stamp-h target.
523 * gdbserver/configure.in: Create stamp-h.
524 * gdbserver/configure: Regenerated.
525
526 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
527
528 * gdbserver/inferiors.c: New file.
529 * gdbserver/target.c: New file.
530 * gdbserver/target.h: New file.
531 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
532 dependencies.
533 * gdbserver/linux-low.c (inferior_pid): New static variable,
534 moved from server.c.
535 (linux_create_inferior): Renamed from create_inferior.
536 Call add_inferior. Return 0 on success instead of a PID.
537 (linux_attach): Renamed from myattach.
538 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
539 (linux_thread_alive): Renamed from mythread_alive.
540 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
541 child dies.
542 (linux_resume): Renamed from myresume. Add missing ``return 0''.
543 (regsets_store_inferior_registers): Correct error message.
544 Add missing ``return 0''.
545 (linux_fetch_registers): Renamed from fetch_inferior_registers.
546 (linux_store_registers): Renamed from store_inferior_registers.
547 (linux_read_memory): Renamed from read_inferior_memory.
548 (linux_write_memory): Renamed from write_inferior_memory.
549 (linux_target_ops): New structure.
550 (initialize_low): Call set_target_ops ().
551 * gdbserver/remote-utils.c (unhexify): New function.
552 (hexify): New function.
553 (input_interrupt): Send signals to ``signal_pid''.
554 * gdbserver/server.c (inferior_pid): Remove.
555 (start_inferior): Update create_inferior call.
556 (attach_inferior): Call add_inferior.
557 (handle_query): New function.
558 (main): Call handle_query for `q' packets.
559 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
560 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
561
562 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
563
564 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
565 dependencies.
566 * gdbserver/configure.in: Check for <string.h>
567 * gdbserver/configure: Regenerate.
568 * gdbserver/config.in: Regenerate.
569 * gdbserver/gdbreplay.c: Include needed system headers.
570 (remote_open): Remove strchr prototype.
571 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
572 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
573 (supply_register_by_name): Likewise.
574 (collect_register): Change buf argument to void *.
575 (collect_register_by_name): Likewise.
576 * gdbserver/regcache.h: Add missing prototypes.
577 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
578 * gdbserver/server.c (handle_query): New function.
579 (attached): New static variable, moved out of main.
580 (main): Quiet longjmp clobber warnings.
581 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
582 * gdbserver/utils.c (error): Remove NORETURN.
583 (fatal): Likewise.
584
585 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
586
587 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
588 after the last symbol in a block.
589
590 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
591
592 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
593 is non zero as a found symbol.
594
595 2002-04-08 Andrew Cagney <ac131313@redhat.com>
596
597 * findvar.c: Include "builtin-regs.h".
598 (value_of_register): Call value_of_builtin_reg when applicable.
599 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
600 (target_map_name_to_register): Call
601 builtin_reg_map_name_to_regnum.
602 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
603 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
604 (builtin_regs_h): Define.
605 (builtin-regs.o): New target.
606 (findvar.o): Add $(builtin_regs_h).
607 * builtin-regs.c, builtin-regs.h: New files.
608 * std-regs.c: New file.
609 Partial fix for PR gdb/251.
610
611 2002-04-08 Kevin Buettner <kevinb@redhat.com>
612
613 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
614 it's no longer required.
615
616 2002-04-08 Andrew Cagney <ac131313@redhat.com>
617
618 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
619
620 2002-04-08 Kevin Buettner <kevinb@redhat.com>
621
622 From Jimi X <jimix@watson.ibm.com>:
623 * rs6000-tdep.c (rs6000_software_single_step): Use
624 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
625 and size. Use target_insert_breakpoint() and
626 target_remove_breakpoint() to insert and remove breakpoints
627 instead of explicit memory reads and writes.
628
629 2002-04-08 Kevin Buettner <kevinb@redhat.com>
630
631 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
632 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
633 ELF_OBJECT_FORMAT ifdef.
634
635 2002-04-08 Kevin Buettner <kevinb@redhat.com>
636
637 From Jimi X <jimix@watson.ibm.com>:
638 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
639
640 2002-04-08 Kevin Buettner <kevinb@redhat.com>
641
642 From Jimi X <jimix@watson.ibm.com>:
643 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
644 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
645
646 2002-04-07 Mark Kettenis <kettenis@gnu.org>
647
648 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
649 s/asprintf/xasprintf/.
650 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
651
652 2002-04-07 Andrew Cagney <ac131313@redhat.com>
653
654 I believe Jeff Law denies responsability for this one:
655 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
656 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
657 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
658 Work-around for PR gdb/366.
659
660 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
661
662 * remote-e7000.c (write_small, e7000_read_inferior_memory,
663 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
664 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
665
666 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
667
668 * sh-tdep.c (sh_fp_frame_init_saved_regs,
669 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
670 information.
671
672 2002-04-07 Andrew Cagney <ac131313@redhat.com>
673
674 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
675 maintainer.
676
677 2002-04-07 Andrew Cagney <ac131313@redhat.com>
678
679 * README (Reporting Bugs in GDB): Document the bug web page as the
680 prefered way of submitting bugs.
681 Fix PR gdb/402.
682
683 2002-04-06 Andrew Cagney <ac131313@redhat.com>
684
685 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
686 -1. Update comment.
687 * gdbarch.h, gdbarch.c: Re-generate.
688
689 2002-04-07 Andreas Schwab <schwab@suse.de>
690
691 * m68klinux-nat.c (fill_fpregset): Properly pass address of
692 buffer to regcache_collect.
693
694 2002-04-06 Andrew Cagney <ac131313@redhat.com>
695
696 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
697 * gdbarch.c, gdbarch.h: Re-generate.
698
699 2002-04-06 Andrew Cagney <ac131313@redhat.com>
700
701 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
702 declaration. Fix -Werror.
703
704 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
705
706 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
707 * gdbarch.c: Regenerate.
708
709 2002-04-05 Michael Snyder <msnyder@redhat.com>
710
711 * breakpoint.c (clear_command): Rewrite middle section to
712 combine two loops with identical control conditions.
713 Add a cleanup to eliminate a memory leak.
714 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
715
716 2002-04-05 H.J. Lu (hjl@gnu.org)
717
718 * solib-svr4.c (bkpt_names): Add "__start".
719
720 2002-04-04 Andrew Cagney <ac131313@redhat.com>
721
722 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
723 as test for 64 bit target.
724
725 2002-04-05 Andrew Cagney <ac131313@redhat.com>
726
727 * h8500-tdep.c (h8500_write_fp): Delete function.
728 * dwarf2cfi.c (cfi_write_fp): Document as not used.
729 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
730 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
731 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
732 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
733 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
734 (s390_write_fp):
735 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
736 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
737 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
738 (d10v_write_fp): Delete function.
739 * inferior.h (write_fp, generic_target_write_fp): Delete
740 declarations.
741 * regcache.c (generic_target_write_fp): Delete function.
742 (write_fp): Delete function.
743 * gdbarch.sh (TARGET_WRITE_FP): Delete.
744 * gdbarch.h, gdbarch.c: Regenerate.
745 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
746 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
747 (sparc64_write_fp): Delete declaration.
748 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
749 (h8500_write_fp): Delete declaration.
750
751 2002-04-04 Andrew Cagney <ac131313@redhat.com>
752
753 * sparc-tdep.c (sparc64_write_fp): Delete.
754 (sparc_push_dummy_frame): Replace write_fp call with code to store
755 the FP directly.
756 (sparc_gdbarch_init): Do not initialize write_fp.
757
758 2002-04-05 Kevin Buettner <kevinb@redhat.com>
759
760 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
761 clause.
762
763 2002-03-29 Jim Blandy <jimb@redhat.com>
764
765 * stack.c (get_selected_block): Add new argument `addr_in_block',
766 used to return the exact code address we used to select the block,
767 not just the block.
768 * blockframe.c (get_frame_block, get_current_block): Same.
769 * frame.h (get_frame_block, get_current_block,
770 get_selected_block): Update declarations.
771 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
772 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
773
774 2002-04-05 Michael Snyder <msnyder@redhat.com>
775
776 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
777 warning message.
778
779 2002-04-05 J. Brobecker <brobecker@gnat.com>
780
781 * utils.c (xfullpath): New function.
782 * defs.h (xfullpath): Add declaration.
783 * source.c (openp): Use xfullpath in place of gdb_realpath to
784 avoid resolving the basename part of filenames when the
785 associated file is a symbolic link. This fixes a potential
786 inconsistency between the filenames known to GDB and the
787 filenames it prints in the annotations.
788 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
789 to be able to match a filename with either the real filename, or
790 the name of any symbolic link to this file.
791 (lookup_partial_symtab): Ditto.
792
793 2002-04-04 Michael Snyder <msnyder@redhat.com>
794
795 * breakpoint.c: Add support for hardware breakpoints in overlays.
796 (overlay_events_enabled): New state variable.
797 (insert_breakpoints): Use overlay_events_enabled to decide
798 whether to attempt to set a breakpoint at the overlay load addr.
799 Handle bp_hardware_breakpoint as well as bp_breakpoint.
800 (remove_breakpoint): Use overlay_events_enabled to decide
801 whether breakpoints need to be removed from overlay load addr.
802 Handle bp_hardware_breakpoint as well as bp_breakpoint.
803 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
804 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
805 disable_overlay_breakpoints): Update overlay_events_enabled.
806
807 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
808
809 * dwarf2read.c (struct function_range): New.
810 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
811 (check_cu_functions): New.
812 (read_file_scope): Initialize global function lists.
813 Call dwarf_decode_line after processing children.
814 (read_func_scope): Add to global function list.
815 (dwarf_decode_lines): Call check_cu_functions everywhere
816 record_line is called. Call record_line with a linenumber
817 of 0 to mark sequence ends.
818
819 2002-04-04 Michal Ludvig <mludvig@suse.cz>
820
821 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
822 change sync with glibc.
823
824 2002-04-03 Jim Blandy <jimb@redhat.com>
825
826 * configure.in: Call AC_C_INLINE.
827 * configure: Regenerated.
828
829 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
830
831 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
832 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
833
834 2002-03-31 Mark Kettenis <kettenis@gnu.org>
835
836 * NEWS: Mention gcore support on FreeBSD/i386.
837
838 * fbsd-proc.c: New file.
839 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
840 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
841
842 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
843 while statement.
844
845 2002-03-29 Jim Blandy <jimb@redhat.com>
846
847 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
848 unescaped newlines in string literals, but newer ones don't. So
849 escape them.
850
851 2002-03-26 Michael Snyder <msnyder@redhat.com>
852 Andrew Cagney <cagney@redhat.com>
853
854 * cli/cli-dump.c: New file. Dump memory to file,
855 restore file to memory.
856 * cli/cli-dump.h: New file.
857 * Makefile.in: Add rules, dependencies for cli-dump.o.
858 * NEWS: Mention new commands.
859
860 2002-03-28 Michael Snyder <msnyder@redhat.com>
861
862 * symfile.c (symbol_file_add): Move test for null symbols to later.
863
864 2002-03-27 Andrew Cagney <ac131313@redhat.com>
865
866 From veksler at il.ibm.com:
867 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
868 the xstrduped original path.
869 Fix PR gdb/417.
870
871 2002-03-27 Michael Snyder <msnyder@redhat.com>
872
873 * breakpoint.c (_initialize_breakpoint): Clean up help string.
874 * infcmd.c (_initialize_infcmd): Ditto.
875 * language.c (_initialize_language): Ditto.
876 * symfile.c (_initialize_symfile): Ditto.
877 * top.c (_init_main): Ditto.
878 * cli/cli-cmds.c (init_cli_cmds): Ditto.
879
880 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
881
882 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
883 vector registers handling.
884 (skip_prologue): Handle new AltiVec instructions. Fill in new
885 fields of frame data.
886 (frame_get_saved_regs): Fill in information for AltiVec registers.
887
888 2002-03-27 Jim Blandy <jimb@redhat.com>
889
890 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
891 a function; leave this macro here to invoke that function.
892 (symbol_init_mangled_name): Declaration for that function.
893 * symtab.c (symbol_init_mangled_name): New function.
894
895 2002-03-27 Andrew Cagney <ac131313@redhat.com>
896
897 * valarith.c: Replace strerror with safe_strerror.
898 * tracepoint.c: Ditto.
899 * lin-lwp.c: Ditto.
900 * go32-nat.c: Ditto.
901 * inflow.c: Ditto.
902 * gnu-nat.c: Ditto.
903
904 2002-03-27 Andreas Schwab <schwab@suse.de>
905
906 * event-top.c (command_line_handler): Remove useless if.
907
908 2002-03-27 Andreas Jaeger <aj@suse.de>
909
910 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
911 comment.
912
913 2002-03-27 Michal Ludvig <mludvig@suse.cz>
914
915 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
916 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
917 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
918 (x86_64_linux_dr_get_status, supply_gregset),
919 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
920 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
921 (x86_64_register_info_table): Add.
922 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
923 (x86_64_register_raw_size, x86_64_register_virtual_type),
924 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
925 general x86_64_register_info_table.
926 (i386_gdbarch_init): gdbarch_register_bytes is now set
927 dynamicaly during initialization.
928 * regformats/reg-x86-64.dat: Synced with changes to registers above.
929 * gdbserver/linux-x86-64-low.c: Ditto.
930
931 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
932
933 * gdbserver/server.c (main): Call target_signal_to_host_p
934 and target_signal_to_host on signals received from the remote.
935 * gdbserver/remote-utils.c (prepare_resume_reply): Call
936 target_signal_from_host on signals sent to the remote.
937 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
938 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
939
940 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
941
942 * signals/signals.c: Include "server.h" in gdbserver build.
943 (target_signal_from_name): Don't use STREQ.
944 (_initialize_signals): Likewise. Don't include function in
945 gdbserver build.
946
947 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
948
949 * signals.c: Moved to...
950 * signals/signals.c: Here.
951 * Makefile (signals.o): Update.
952
953 2002-03-26 Jeff Law (law@redhat.com)
954
955 * somread.c (som_symtab_read): Remove some commented out code and
956 updated related comments. Do not set the minimal symbol table to
957 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
958 in a dynamic executable.
959 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
960 where we are unable to find the minimal symbol for the given
961 PC value.
962
963 2002-03-25 Jeff Law (law@redhat.com)
964
965 * linux-proc.c (read_mapping): Scan up to end of line for filename.
966
967 2002-03-25 Michal Ludvig <mludvig@suse.cz>
968
969 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
970
971 2002-03-23 Andrew Cagney <ac131313@redhat.com>
972
973 * command.h: Update copyright.
974 (struct cmd_list_element): Replace definition with opaque
975 declaration.
976 (enum cmd_types): Document that it will eventually be moved to
977 cli/cli-decode.h
978 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
979 (MALLOCED_REPLACEMENT): Delete macro.
980 * Makefile.in (cli_decode_h): Add $(command_h).
981 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
982 * top.c: Include "cli/cli-decode.h".
983 * completer.c: Include "cli/cli-decode.h".
984 * maint.c: Include "cli/cli-decode.h".
985 * cli/cli-decode.h: Include "command.h".
986 (enum command_class): Delete.
987 (enum cmd_types): Comment out.
988 (enum cmd_auto_boolean): Delete.
989 (enum var_types): Delete.
990
991 2002-03-23 Andrew Cagney <ac131313@redhat.com>
992
993 * cli/cli-decode.c: Include "gdb_assert.h".
994 (add_set_or_show_cmd): New static function.
995 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
996 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
997 all fields, such as func, from the set command.
998
999 2002-03-23 Andrew Cagney <ac131313@redhat.com>
1000
1001 * MAINTAINERS (sh-elf): Change warning flag to -w.
1002
1003 2002-03-23 Andrew Cagney <cagney@redhat.com>
1004
1005 * defs.h (error): Add printf format attribute.
1006 * thread-db.c (thread_from_lwp): Fix error format string.
1007 * stack.c (parse_frame_specification): Ditto.
1008 * cli/cli-decode.c (undef_cmd_error): Ditto.
1009 * scm-lang.c (scm_lookup_name): Ditto.
1010 * tracepoint.c (trace_error): Ditto.
1011 * remote-utils.c (usage): Ditto.
1012 * remote.c (compare_sections_command): Ditto.
1013 Fix PR gdb/328.
1014
1015 2002-03-22 Andrew Cagney <ac131313@redhat.com>
1016
1017 * gdbtypes.c (append_composite_type_field): New function.
1018 (init_composite_type): New function.
1019 * gdbtypes.h (append_composite_type_field): Declare.
1020 (init_composite_type): Ditto.
1021
1022 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
1023
1024 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
1025 function.
1026 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1027 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1028 structure returning convention for SYSV ABI case, but not
1029 for GNU/Linux, FreeBSD, or NetBSD.
1030
1031 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
1032
1033 * symtab.h (lookup_block_symbol): Add mangled_name argument
1034 to prototype.
1035
1036 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1037 with new mangled_name argument.
1038 * linespec.c (decode_line_1): Likewise.
1039 * valops (value_of_this): Likewise.
1040 * symtab.c (lookup_transparent_type): Likewise.
1041 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1042 (lookup_symbol): If we are given a mangled name, pass it down
1043 to lookup_symbol_aux.
1044 (lookup_block_symbol): If we are given a mangled name to check
1045 against, only return symbols which match it.
1046
1047 2002-03-22 Christopher Faylor <cgf@redhat.com>
1048
1049 * win32-nat.c (child_create_inferior): Check for proper shell to use
1050 here, in case the user changes it on the fly.
1051 (_initialize_inftarg): Remove shell path considerations.
1052
1053 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
1054
1055 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1056 for gdbarch_max_register_raw_size and max_register_virtual_size.
1057 Adjust copyright year.
1058
1059 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
1060
1061 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1062 in a function to cover the entire beginning of the function
1063 as well if it does not already.
1064
1065 2002-03-21 Tom Rix <trix@redhat.com>
1066
1067 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1068 (rs6000_ptrace64): Renamed from ptrace64.
1069
1070 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1071
1072 * gdbserver/remote-utils.c (remote_open): Don't call
1073 getprotobyname, we're all using TCP here so just use
1074 IPPROTO_TCP.
1075 * gdbserver/gdbreplay.c (remote_open): Ditto.
1076
1077 2002-03-20 Martin M. Hunt <hunt@redhat.com>
1078
1079 * regcache.c (_initialize_regcache): No need to call
1080 build_regcache() at this time; it gets called whenever
1081 the gdbarch changes.
1082
1083 2002-03-20 David O'Brien <obrien@FreeBSD.org>
1084
1085 * sparc-nat.c: Include sys/param.h where possible.
1086
1087 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
1088
1089 Fix PR gdb/422.
1090 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1091 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1092 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1093 complex types.
1094 * stabsread.c (rs6000_builtin_type): Likewise.
1095 (read_sun_floating_type): Likewise.
1096
1097 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1098
1099 * stabsread.c (read_member_functions): Remove skip code for duplicate
1100 constructor/destructor methods. Use standard parsing for these
1101 methods and just do not chain them to the list of methods after
1102 parsing.
1103
1104 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
1105
1106 * coffread.c: Remove redundant static declarations. Replace
1107 occurrences of `PTR' with `void *'.
1108 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1109 * top.h (quit_cover): Likewise.
1110 * defs.h (catch_errors): Likewise.
1111
1112 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1113
1114 * defs.h (XMALLOC): Define.
1115 * gdb-events.sh (XMALLOC): Delete macro.
1116 * gdb-events.c, gdb-events.h: Regenerate.
1117 * gdbarch.sh (XMALLOC): Delete macro.
1118 * gdbarch.c: Regenerate.
1119 * serial.c (XMALLOC): Delete macro.
1120 * ui-file.c (XMALLOC): Ditto.
1121 * ser-unix.h (XMALLOC): Ditto.
1122 * sh-tdep.c (XMALLOC): Ditto.
1123 * ui-out.c (XMALLOC): Ditto.
1124 * utils.c (XMALLOC): Ditto.
1125 * i386-tdep.c (XMALLOC): Ditto.
1126 * gdb-events.c (XMALLOC): Ditto.
1127 * d10v-tdep.c (XMALLOC): Ditto.
1128 * cli-out.c (XMALLOC): Ditto.
1129
1130 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1131 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1132 * ui-file.c, ui-out.c: Ditto.
1133
1134 2002-03-18 Andrew Cagney <ac131313@redhat.com>
1135
1136 * command.h (struct cmd_list_element): Add field context.
1137 (set_cmd_context, get_cmd_context): Declare.
1138 * cli/cli-decode.h: Ditto.
1139 * cli/cli-decode.c (get_cmd_context): New function.
1140 (set_cmd_context): New function.
1141 (add_cmd): Initialize context.
1142 Part of fixing PR gdb/145 and PR gdb/146.
1143
1144 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1145
1146 * cli/cli-decode.c (cmd_type): New function.
1147 * command.h (cmd_type): Declare.
1148 * infrun.c (set_schedlock_func): Call function cmd_type.
1149 * kod.c (kod_set_os): Call cmd_type.
1150 * cris-tdep.c (cris_version_update): Use function cmd_type.
1151 (cris_mode_update, cris_abi_update): Ditto.
1152
1153 * command.h: (execute_cmd_post_hook): Declare.
1154 (execute_cmd_pre_hook): Declare.
1155 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1156 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1157 functions. Execute pre/post hook while ensuring that afterwords
1158 hook_in is cleared.
1159 * top.c (execute_command): Use execute_cmd_post_hook, and
1160 execute_cmd_pre_hook to execute pre/post commands.
1161 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1162 hook_stop_stub.
1163 (hook_stop_stub): Call execute_cmd_pre_hook.
1164
1165 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1166
1167 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1168 set'' and this leads to a core dump. Move xstrdup of
1169 operating_system to after check that it is not NULL.
1170
1171 2002-03-17 Andrew Cagney <ac131313@redhat.com>
1172
1173 * kod.c (kod_set_os): Remove unnecessary check that
1174 ``command->type'' is set_cmd.
1175
1176 * valprint.c (set_input_radix): Use input_radix.
1177 (set_output_radix): Use output_radix.
1178 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1179 isn't reverted.
1180
1181 2002-03-16 Andrew Cagney <ac131313@redhat.com>
1182
1183 * value.h (struct value): Delete field ``substring_addr''. Change
1184 aligner fields to force_doublest_align, force_longest_align,
1185 force_core_addr_align and force_pointer_aligh.
1186
1187 * value.h (struct value): Fix typo in above change.
1188
1189 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1190
1191 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1192 to fix internal_error from ``maintenance print architecture''.
1193
1194 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1195
1196 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1197 for gcc versions after gcc-2.8.1.
1198
1199 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1200
1201 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1202 for method resolution. Restore adjustment of ``this'' pointer after
1203 calling value_struct_elt, which was accidentally removed during the
1204 HP merge.
1205
1206 2002-03-15 Andrew Cagney <ac131313@redhat.com>
1207
1208 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1209 value_of_register.
1210 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1211 get_saved_register.
1212 * value.h (value_of_register): Update.
1213
1214 2002-03-14 Richard Henderson <rth@redhat.com>
1215
1216 * configure.in: Detect declaration for canonicalize_file_name.
1217 * utils.c (canonicalize_file_name): Declare, if needed.
1218 (gdb_realpath): Prefer realpath if available and usable.
1219 * config.in, configure: Rebuild.
1220
1221 2002-03-14 Richard Henderson <rth@redhat.com>
1222
1223 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1224 a constant array bound.
1225
1226 * MAINTAINERS: Add myself to write-after-approval.
1227
1228 2002-03-14 Michael Snyder <msnyder@redhat.com>
1229
1230 * symfile.c (syms_from_objfile): Return immediately if no syms.
1231 (symbol_file_add): Return immediately if no syms.
1232 (find_sym_fns): Return immediately if no syms.
1233
1234 2002-03-13 Michal Ludvig <mludvig@suse.cz>
1235
1236 * gdbserver/remote-util.c (remote_open): Print remote-side's
1237 IP address when remote debugging over the network.
1238
1239 2002-03-12 David O'Brien <obrien@FreeBSD.org>
1240
1241 * config/sparc/fbsd.mh: Fix copyright.
1242 * config/sparc/fbsd.mt: Likewise.
1243
1244 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
1245
1246 * MAINTAINERS: Fix typo in name of gdb warnings option.
1247 (x86-64): Fix formating so that this can be parsed by awk.
1248
1249 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1250
1251 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1252 * defs.h: Include "gdb/signals.h".
1253 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1254
1255 2002-03-10 Michal Ludvig <mludvig@suse.cz>
1256
1257 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
1258 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
1259 from x86-64-tdep.h
1260
1261 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
1262 Don Howard <dhoward@redhat.com>
1263
1264 * mips-tdep.c (ST0_FR): Define.
1265 (mips2_fp_compat): New function, temporarily disabled.
1266 (mips_read_fp_register_single): New function.
1267 (mips_read_fp_register_double): New function.
1268 (mips_print_register): Use them.
1269 (do_fp_register_row): Likewise.
1270
1271 2002-03-09 Andrew Cagney <ac131313@redhat.com>
1272
1273 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1274 approval''.
1275
1276 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1277
1278 * stabsread.c (read_member_functions): Fix is_stub test for
1279 static member functions, improve comment.
1280
1281 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
1282
1283 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1284 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1285 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1286 commands that set boolean values.
1287 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1288 (arm_rdi_resume): Always initialize PC.
1289 (arm_rdi_open): Don't use rslt as a boolean.
1290 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1291 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1292 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1293 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1294
1295 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
1296
1297 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1298 * configure: Rebuilt.
1299
1300 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1301
1302 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1303 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1304
1305 2002-03-06 Andrew Cagney <ac131313@redhat.com>
1306
1307 * cli/cli-decode.c (set_cmd_completer): New function.
1308 * command.h (set_cmd_completer): Declare.
1309 * cli/cli-decode.h (set_cmd_completer): Ditto.
1310
1311 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1312 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1313 * win32-nat.c (_initialize_inftarg): Ditto.
1314 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1315 * proc-api.c (_initialize_proc_api): Ditto.
1316 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1317 * source.c (_initialize_source): Ditto.
1318 * exec.c (_initialize_exec): Ditto.
1319 * solib.c (_initialize_solib): Ditto.
1320 * top.c (init_main): Ditto.
1321 * tracepoint.c (_initialize_tracepoint): Ditto.
1322 * symfile.c (_initialize_symfile): Ditto.
1323 * printcmd.c (_initialize_printcmd): Ditto.
1324 * infcmd.c (_initialize_infcmd): Ditto.
1325 * corefile.c (_initialize_core): Ditto.
1326
1327 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1328
1329 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1330
1331 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1332
1333 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1334
1335 2002-03-05 Andrew Cagney <ac131313@redhat.com>
1336
1337 * NEWS: Update headings, 5.2 has branched.
1338
1339 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
1340
1341 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1342 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1343 (register_addr, REGISTER_RAW_SIZE): Likewise.
1344 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1345 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1346
1347 2002-03-03 Michal Ludvig <mludvig@suse.cz>
1348
1349 * MAINTAINERS (x86-64): Add myself.
1350 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1351 changed value_ptr -> struct value *
1352
1353 2002-03-01 David O'Brien <obrien@FreeBSD.org>
1354
1355 * configure.host (sparc64-*-freebsd): Add.
1356 * configure.tgt: Likewise.
1357 * config/sparc/fbsd.mh: New file.
1358 * config/sparc/fbsd.mt: Likewise.
1359 * config/sparc/nm-fbsd.h: Likewise.
1360 * config/sparc/tm-fbsd.h: Likewise.
1361
1362 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
1363
1364 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1365 regformats/reg-s390x.dat.
1366
1367 2002-03-01 Andrew Cagney <ac131313@redhat.com>
1368
1369 * utils.c: Add FIXME explaining true/false problem.
1370
1371 2002-02-28 Andrew Cagney <ac131313@redhat.com>
1372
1373 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1374
1375 2002-02-28 Michael Chastain <mec@shout.net>
1376
1377 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1378
1379 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
1380
1381 * gdbserver/linux-s390-low.c: New file.
1382 * regformats/reg-s390.dat: New file.
1383 * regformats/reg-s390x.dat: New file.
1384 * gdbserver/configure.srv: Add S/390.
1385 * gdbserver/Makefile.in: Add S/390.
1386 * configure.tgt: Enable gdbserver for S/390.
1387
1388 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1389
1390 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1391 first line of the doc string for "info dos", except at the end of
1392 the sentence, since the short help stops at the first period.
1393
1394 2002-02-28 Jason Merrill <jason@redhat.com>
1395
1396 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1397
1398 2002-02-27 Fred Fish <fnf@redhat.com>
1399
1400 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1401 comment (dumy -> dummy).
1402
1403 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1404
1405 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1406
1407 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
1408
1409 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1410
1411 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1412
1413 * gdbserver/acconfig.h: New file.
1414 * gdbserver/i387-fp.c: New file.
1415 * gdbserver/i387-fp.h: New file.
1416 * gdbserver/linux-x86-64.c: New file.
1417 * regformats/reg-x86-64.dat: New file.
1418 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1419 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1420 * gdbserver/configure.in: Add support for regsets.
1421 * gdbserver/config.in: Regenerate.
1422 * gdbserver/configure: Regenerate.
1423 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1424 * gdbserver/linux-low.h: New file.
1425 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1426 for regsets.
1427 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1428 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1429 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1430 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1431 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1432 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1433 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1434 "i387-fp.h". Add PTRACE_GETREGS and friends.
1435 * gdbserver/regcache.c (supply_register): New function.
1436 (supply_register_by_name): New function.
1437 (collect_register): New function.
1438 (collect_register_by_name): New function.
1439
1440 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1441
1442 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1443 (config.status): Add configure.srv dependency.
1444 (server_h): Add config.h dependency.
1445
1446 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
1447
1448 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1449 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1450 * gdbserver/configure.srv: Change i386-*-linux* to use
1451 reg-i386-linux.o.
1452
1453 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1454
1455 * x86-64-tdep.c: Re-indent. Update copyright date.
1456
1457 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1458
1459 From Michal Ludvig <mludvig@suse.cz>:
1460 * x86-64-tdep.c (value.h): Delete.
1461 (gdb_assert.h): Include.
1462 (x86_64_register_convert_to_virtual,
1463 x86_64_register_convert_to_raw ): Add check which lets only
1464 floating-point values to be converted.
1465 (value_push): Delete.
1466 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1467 (i386_gdbarch_init): Number of register_bytes fixed.
1468
1469 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1470
1471 * MAINTAINERS: Add x86-64 target.
1472
1473 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1474
1475 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1476 * osfsolib.c (solib_map_sections): Ditto.
1477 * irix5-nat.c (solib_map_sections): Ditto.
1478 * corelow.c (gdb_check_format): Ditto.
1479 * symfile.c (symfile_bfd_open): Ditto.
1480 * solib.c (solib_map_sections): Ditto.
1481 Fix PR gdb/354.
1482
1483 2002-02-26 Andrew Cagney <ac131313@redhat.com>
1484
1485 * remote.c (_initialize_remote): By default, disable ``e'' and
1486 ``E'' step out-of-range packets.
1487
1488 2002-02-26 Andreas Schwab <schwab@suse.de>
1489
1490 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
1491 m68k_linux_frame_saved_pc.
1492 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
1493 in_sigtramp.
1494 (SIGCONTEXT_PC_OFFSET): Remove.
1495 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
1496 m68k_linux_sigtramp_saved_pc): New functions.
1497 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
1498 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
1499 (UCONTEXT_PC_OFFSET): Define.
1500 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
1501 non-RT and RT signal trampolines.
1502
1503 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
1504
1505 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
1506 (TARGET_NBPG, STACK_END_ADDR): Delete
1507 (VARIABLES_INSIDE_BLOCK): Delete.
1508
1509 2002-02-25 Andrew Cagney <ac131313@redhat.com>
1510
1511 * utils.c (perror_with_name): Make string parameter constant.
1512 (print_sys_errmsg): Ditto.
1513 (query): Ditto.
1514 * defs.h (perror_with_name): Update.
1515 (print_sys_errmsg): Update.
1516 (query): Update.
1517
1518 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
1519
1520 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
1521 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
1522
1523 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1524
1525 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
1526 if it already matches the current architecture from the exec file.
1527 Include arch-utils.h for gdbarch_info_init prototype.
1528 * Makefile.in (rs6000-nat.o): Update dependencies.
1529
1530 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
1531
1532 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1533 list of exported variables.
1534
1535 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
1536
1537 * gdbserver/configure.srv: New file.
1538 * gdbserver/configure.in: Use configure.srv instead
1539 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
1540 from it.
1541 * gdbserver/configure: Regenerated.
1542 * gdbserver/terminal.h: New file.
1543 * gdbserver/Makefile.in: Update for configure changes. Remove
1544 more unneeded include paths.
1545
1546 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1547
1548 From wiz at danbala:
1549 * config/sparc/tm-sp64.h: Fix grammar and typos.
1550 Fix PR gdb/287.
1551
1552 2002-02-24 Andrew Cagney <ac131313@redhat.com>
1553
1554 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
1555 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
1556 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1557 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
1558 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1559 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1560 * s390-tdep.c: Ditto.
1561 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1562 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1563 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1564 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1565 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1566 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
1567 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
1568 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
1569 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
1570 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
1571 Fix PR gdb/378.
1572
1573 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1574
1575 * lin-thread.c: Delete file.
1576 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
1577 to gdb_proc_service.h.
1578 * configure: Re-generate.
1579
1580 * ocd.c (ocd_open): Do not try to open the "ocd" device.
1581 * serial.c (serial_open): Delete check for "ocd".
1582 Fix PR gdb/349.
1583
1584 * Makefile.in (linux-thread.o): Delete target.
1585 * linux-thread.c: Delete file.
1586
1587 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
1588 renamed SH files to be consistent.
1589
1590 * symtab.c (sort_search_symbols): Use xfree.
1591
1592 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1593
1594 * arm-linux-tdep.c (arm_linux_init_abi): Register
1595 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
1596 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
1597 definition with undef, since we don't want the sysvr4 definition.
1598 (SKIP_TRAMPOLINE_CODE): Likewise.
1599
1600 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1601
1602 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
1603
1604 * configure.in: (AC_CHECK_FUNCS) Added test for
1605 canonicalize_file_name Regenerated.
1606 * config.in, configure: Regenerated.
1607 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
1608 defined use canonicalize_file_name.
1609
1610 2002-02-23 Michael Chastain <mec@shout.net>
1611
1612 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
1613
1614 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1615
1616 * README: Remove references to cygnus.com.
1617 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
1618 dot com'' form. Remove references to cygnus.com and sourceware.
1619
1620 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1621
1622 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
1623 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
1624 1003.1-2001 no longer allows "head -1".
1625 * gdb/Makefile.in (version.c): Likewise.
1626 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
1627 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
1628 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
1629
1630 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1631
1632 * cli/cli-decode.c (cmd_cfunc_eq): New function.
1633 * command.h (cmd_cfunc_eq): Declare.
1634 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
1635
1636 * cli/cli-cmds.h (is_complete_command): Change parameter to a
1637 ``struct cmd_list_element *''.
1638 * cli/cli-cmds.c (is_complete_command): Update. Use
1639 cmd_cfunc_eq.
1640 * top.c (execute_command): Pass the command to
1641 is_complete_command.
1642 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
1643
1644 2002-02-23 Andrew Cagney <ac131313@redhat.com>
1645
1646 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
1647 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
1648 architecture defines.
1649 * s390-tdep.c (s390_gdbarch_init): Likewise.
1650
1651 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1652
1653 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
1654 (arm_linux_push_arguments): Likewise.
1655 (arm_linux_init_abi): Register them. Also register linux-specific
1656 call_dummy_words.
1657 (find_minsym_and_objfile): Use strcmp, not STREQ.
1658 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
1659 (arm_linux_call_dummy_words): Delete declaration.
1660 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
1661 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
1662 declarations.
1663 (LOWEST_PC): Delete.
1664
1665 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1666
1667 * maint.c (print_section_info): Do not prepend `0x' to filepos
1668 output, it will be handled by local_hex_string_custom.
1669
1670 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
1671
1672 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
1673 (store_newfpe_double, store_newfpe_extended, store_fpregister)
1674 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
1675
1676 2002-02-22 Jim Blandy <jimb@redhat.com>
1677
1678 Indicate that the bcache functions don't change the strings
1679 they're passed.
1680 * bcache.h (bcache, hash): Add `const' keywords to declarations.
1681 * bcache.c (bcache, hash): Add `const' keywords to definitions.
1682
1683 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
1684
1685 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
1686
1687 2002-02-21 Christopher Faylor <cgf@redhat.com>
1688
1689 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
1690 find the complete path to a loaded DLL.
1691
1692 2002-02-21 Fred Fish <fnf@redhat.com>
1693
1694 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
1695 that marks the end of the range of a function, enter a line number
1696 entry that has a line number of zero and a PC offset that matches
1697 the end of the function. This starts a range of PC's for which no
1698 line number information is known.
1699 * symtab.c (find_pc_sect_line): If our best fit is in a range of
1700 PC's for which no line number info is found (line number is zero)
1701 then we didn't find any valid line information.
1702 * symtab.h: Document use of zero line number entry.
1703
1704 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
1705
1706 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
1707 (have_ptrace_getvrregs): Define for run time checks.
1708 (gdb_vrregset_t): New type for Altivec register handling.
1709 (fetch_register, store_register): Fetch/store altivec register
1710 when needed.
1711 (fetch_altivec_register, store_altivec_register): New functions.
1712 (supply_vrregset, fill_vrregset): New functions.
1713 (fetch_altivec_registers, store_altivec_registers): New functions.
1714 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
1715 registers as well.
1716
1717 2002-02-21 Jiri Smid <smid@suse.cz>
1718
1719 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
1720
1721 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
1722
1723 * Makefile.in (armnbsd-nat.o): Update dependencies.
1724 * armnbsd-nat.c (supply_gregset): New function. Common code to
1725 supply the integer register set.
1726 (supply_fparegset): New function. Similar for FPA registers.
1727 (fetch_regs, fetch_fp_regs): Use them.
1728 (fetch_core_registers): Likewise.
1729 (fetch_elfcore_registers): New function.
1730 (arm_netbsd_elfcore_fns): New core-file type specification.
1731 (_initialize_arm_netbsd_nat): Register it.
1732
1733 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
1734
1735 * armnbsd-nat.c: Include gdbcore.h.
1736 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
1737 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
1738 'void' to declaration, to shut up ARI.
1739 (fetch_core_registers): Make static. Rewrite using supply_register.
1740 (arm_netbsd_core_fns): New core-file type specification.
1741 (_initialize_arm_netbsd_nat): New function.
1742
1743 2002-02-21 Christopher Faylor <cgf@redhat.com>
1744
1745 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
1746 value.
1747
1748 2002-02-20 Christopher Faylor <cgf@redhat.com>
1749
1750 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
1751 fails.
1752
1753 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1754
1755 * jv-exp.y (parse_number): Change type of implicit longs
1756 to builtin_type_uint64.
1757
1758 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1759
1760 * gdbserver/linux-low.c (mywait): Change argument to waitpid
1761 to be an integer instead of a `union wait'.
1762
1763 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1764
1765 * mips-linux-nat.c: Call the operating system GNU/Linux.
1766 * mips-linux-tdep.c: Likewise.
1767 * mips-tdep.c: Likewise.
1768
1769 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1770
1771 Fix PR gdb/265.
1772 * jv-exp.y (parse_number): Handle 64-bit integers.
1773
1774 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1775
1776 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
1777 AC_STDC_HEADERS to AC_HEADER_STDC.
1778 * gdbserver/configure: Regenerated.
1779
1780 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
1781
1782 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
1783 is defined.
1784 * sparc-tdep.c (get_longjmp_target): Likewise.
1785
1786 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
1787
1788 * News: Add news about ARM and Multi-arch. Mention the new target
1789 arm*-*-netbsd*.
1790
1791 2002-02-19 Jim Blandy <jimb@redhat.com>
1792
1793 * stabsread.c (error_type_complaint): Improve error message.
1794
1795 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
1796
1797 * gdbserver/README: Update documentation.
1798 * gdbserver/configure.in: Update configury to match documentation.
1799 * gdbserver/Makefile.in: Likewise.
1800 * gdbserver/configure: Regenerated.
1801 * gdbserver/aclocal.m4: New file, generated by aclocal.
1802 * gdbserver/config.in: New file, generated by autoheader.
1803
1804 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1805
1806 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
1807 armnbsd-nat.c.
1808
1809 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1810
1811 * arm-tdep.h (enum arm_float_model): New enum.
1812 (struct gdbarch_tdep): Add fp_model.
1813 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
1814 up floating-point conversions until we know the floating-point model
1815 in use by the inferior. Don't complain about being unable to
1816 determine the ABI of the inferior when we don't have one.
1817 (arm_extract_return_value): Support different floating-point models.
1818 (arm_store_return_value): Likewise.
1819 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
1820 ARM_FLOAT_SOFT.
1821 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
1822
1823 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1824
1825 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
1826 of ``current_gdbarch''.
1827
1828 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1829
1830 * armnbsd-nat.c : ANSIfy all function declarations.
1831 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
1832 (fetch_inferior_registers): Re-implement in terms of above.
1833 (store_register, store_regs, store_fp_register, store_fp_regs): New.
1834 (store_inferior_registers): Re-implement in terms of above.
1835
1836 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1837
1838 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
1839 kernel.
1840 * arm-linux-tdep.c: Likewise.
1841 * config/arm/tm-linux.h: Likewise.
1842
1843 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1844
1845 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
1846 * config/arm/nbsd.mt (TM_FILE): Delete.
1847 * config/arm/tm-nbsd.h: Delete.
1848
1849 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1850
1851 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
1852 Initialize CALL_DUMMY_LENGTH.
1853
1854 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
1855
1856 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
1857 function.
1858 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
1859 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
1860 defines one thing and that is incorrect for this port.
1861 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
1862
1863 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1864
1865 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
1866
1867 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
1868
1869 * win32-nat.c (display_selector): New function. Displays information
1870 about the information returned by GetThreadSelectorEntry API function.
1871 (display_selectors): New function. Displays the infomation of
1872 the selector given as argument, or of CS, DS ans FS selectors
1873 if no argument is given.
1874 ( _initialize_inftarg): Add "w32" as info prefix command.
1875 Add "info w32 selector" as command calling display_selectors.
1876
1877 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
1878
1879 * i386-tdep.c (get_longjmp_target): Fix compilation failure
1880 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
1881 if not defined.
1882
1883 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1884
1885 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
1886
1887 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1888
1889 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
1890 (arm_fix_call_dummy): Call it.
1891 (arm_call_dummy_breakpoint_offset): Delete.
1892 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
1893 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
1894
1895 2002-02-18 Andrew Cagney <ac131313@redhat.com>
1896
1897 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
1898 Default to func_frame_chain_valid.
1899 * gdbarch.h, gdbarch.c: Re-generate.
1900 * frame.h (FRAME_CHAIN_VALID): Delete definition.
1901
1902 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
1903
1904 * ppc-linux-nat.c: Update copyright.
1905 (fetch_register, store_register): Add tid parameter, don't compute
1906 tid here.
1907 (fetch_ppc_registers, store_ppc_registers): Add tid
1908 parameter. Pass it along to callees.
1909 (fetch_inferior_registers, store_inferior_registers): Compute tid
1910 here, and pass it to calleed functions.
1911 (fill_gregset, supply_fpregset): Clean up formatting.
1912
1913 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1914
1915 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
1916 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
1917
1918 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
1919
1920 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
1921 * gdbarch.c gdbarch.h: Regenerate.
1922 * breakpoint.c (create_longjmp_breakpoint): Always compile this
1923 function.
1924 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
1925 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
1926 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
1927
1928 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
1929 * arm-tdep.c (arm_get_longjmp_target): New function.
1930 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
1931 this to a positive value register arm_get_longjmp_target as the
1932 longjmp handler.
1933 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
1934 (arm_linux_init_abi): Set up longjmp description in tdep.
1935 * armnbsd-nat.c (get_longjmp_target): Delete.
1936 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
1937 description in tdep.
1938 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
1939 (get_longjmp_target): Delete declaration.
1940 (GET_LONGJMP_TARGET): Delete.
1941 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
1942 (GET_LONGJMP_TARGET): Delete.
1943
1944 2002-02-17 Kevin Buettner <kevinb@redhat.com>
1945
1946 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
1947 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
1948 of ``current_gdbarch''.
1949
1950 2002-02-17 Tom Tromey <tromey@redhat.com>
1951
1952 * cli/cli-cmds.c (compare_strings): New function.
1953 (complete_command): Only print each unique item once.
1954 * completer.h (complete_line): Declare.
1955 * completer.c (complete_line): New function.
1956 (line_completion_function): Use it.
1957
1958 2002-02-16 Andrew Cagney <ac131313@redhat.com>
1959
1960 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
1961 * gdbarch.h, gdbarch.c: Re-generate.
1962
1963 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1964
1965 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
1966
1967 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
1968
1969 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
1970 * valops.c (value_arg_coerce): Don't take the address of a reference
1971 to convert an argument to a reference.
1972
1973 2002-02-15 Christopher Faylor <cgf@redhat.com>
1974
1975 * win32-nat.c (get_image_name): New function.
1976 (handle_load_dll): Use get_image_name function.
1977 (get_child_debug_event): Avoid registering debug events until possibly
1978 execed process is started.
1979 (child_create_inferior): Allow invocation via shell so that command
1980 line redirection, etc. works ok.
1981 (_initialize_inftarg): Add new command: "set shell" to control whether
1982 a shell is used to start a process.
1983
1984 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1985
1986 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
1987 instead of find_register_by_number.
1988 (cannot_store_register): Likewise.
1989
1990 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
1991
1992 * dwarf2read.c: Replace fprintf (stderr, ...) by
1993 fprintf_unfiltered (gdb_stderr, ...).
1994
1995 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
1996
1997 * gdbserver/gdbserver.1: Document --attach.
1998
1999 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2000
2001 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2002 descriptions.
2003 * arm-tdep.c (arm_default_arm_le_breakpoint)
2004 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2005 (arm_default_thumb_be_breakpoint): New. Initialize them from
2006 traditional breakpoint defines.
2007 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2008 (arm_gdbarch_init): Initialize new breakpoint variables.
2009 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2010 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2011 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2012 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2013 code out to ...
2014 (arm_netbsd_init_abi_common): ... here; new function.
2015 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2016 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2017 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2018 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2019
2020 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
2021
2022 * arm-tdep.h (enum arm_abi): New enum.
2023 (struct gdbarch_tdep): New structure.
2024 (LOWEST_PC): Provide a default.
2025 (arm_gdbarch_register_os_abi): Declare new function.
2026 * arm-tdep.c (arm_abi_names): New array.
2027 (process_note_abi_tag_sections): New function.
2028 (get_elfosabi): New function.
2029 (arm_gdbarch_register_os_abi): New function.
2030 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2031 support for that ABI has been built in, then call the appropriate
2032 configuration routine. Use gdbarch_num_regs() to get the number
2033 of registers.
2034 (arm_dump_tdep): New function.
2035 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2036 place-holder functions.
2037 (_initialize_arm_tdep): Register them.
2038 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2039
2040 * armnbsd-tdep.c: New file.
2041 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2042 * config/arm/nbsd.mt (TDEPFILES): Add it.
2043 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2044
2045 * armnbsd-nat.c: Include regcache.h.
2046 * Makefile.in (armnbsd-nat.o): Update dependency list.
2047
2048 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2049
2050 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2051
2052 * gdbserver/Makefile.in: Fix typos in target rules.
2053
2054 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2055
2056 Fix part of PR gdb/267.
2057 * linespec.c (find_methods): Handle constructors specially for now.
2058
2059 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
2060
2061 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2062 handling.
2063 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2064 standard_coerce_float_to_double().
2065
2066 2002-02-14 Christopher Faylor <cgf@redhat.com>
2067
2068 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2069 GDBINIT_FILENAME.
2070
2071 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
2072
2073 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2074 find_variant_by_name, because it confuses the multiarch
2075 framework. Return NULL if there isn't an architecture with the
2076 user supplied name, instead of forcing a different one without
2077 recording the change with the multiarch machinery.
2078 (find_variant_by_name): Delete.
2079
2080 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2081
2082 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2083 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2084
2085 2002-02-13 Martin M. Hunt <hunt@redhat.com>
2086
2087 * stack.c (print_frame_info_base): When calling
2088 print_frame_info_listing_hook, set current_source_symtab.
2089
2090 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2091
2092 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2093 and remove unused $(INCLUDE_DIR).
2094 Add regcache.c to OBS.
2095 Add generated register protocol files to clean target.
2096 Update dependencies for new objects, obsolete old target code.
2097
2098 * gdbserver/linux-low.c: Remove all platform-specific code to
2099 new files. Remove various dead code. Update to use regcache
2100 functionality.
2101 * gdbserver/remote-utils.c (fromhex): Add return statement
2102 to quiet warning.
2103 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2104 constant.
2105 (input_interrupt): Add integer parameter to match prototype
2106 of a signal handler.
2107 (outreg): Use register_data ().
2108 (prepare_resume_reply): Use gdbserver_expedite_regs.
2109 * gdbserver/server.c (main): Dynamically allocate own_buf because
2110 PBUFSIZ is no longer constant. Use registers_to_string () and
2111 registers_from_string ().
2112 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2113 for error (), fatal (), and warning (). Update definition of
2114 PBUFSIZ to use regcache functionality. Add include guard.
2115 * gdbserver/utils.c (fatal): Add missing ``const''.
2116 (warning): New function.
2117
2118 * regformats/regdat.sh: Include "regcache.h" in generated files.
2119 Provide init_registers () function.
2120 * regformats/regdef.h: Add prototype for set_register_cache ().
2121 Add include guard.
2122
2123 * gdbserver/linux-arm-low.c: New file.
2124 * gdbserver/linux-i386-low.c: New file.
2125 * gdbserver/linux-ia64-low.c: New file.
2126 * gdbserver/linux-m68k-low.c: New file.
2127 * gdbserver/linux-mips-low.c: New file.
2128 * gdbserver/linux-ppc-low.c: New file.
2129 * gdbserver/linux-sh-low.c: New file.
2130
2131 * gdbserver/regcache.c: New file.
2132 * gdbserver/regcache.h: New file.
2133
2134 * gdbserver/low-linux.c: Removed obsolete file.
2135
2136 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2137
2138 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2139 * config/i386/linux.mt: Likewise.
2140 * config/ia64/linux.mt: Likewise.
2141 * config/m68k/linux.mh: Likewise.
2142 * config/powerpc/linux.mh: Likewise.
2143 * config/mips/linux.mt: Likewise.
2144
2145 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2146
2147 * config/i386/i386lynx.mh: Mark gdbserver variables
2148 as (currently) obsolete for this target.
2149 * config/i386/nbsd.mt: Likewise.
2150 * config/i386/nbsdelf.mt: Likewise.
2151 * config/m32r/m32r.mt: Likewise.
2152 * config/m68k/m68klynx.mh: Likewise.
2153 * config/m68k/nbsd.mt: Likewise.
2154 * config/m68k/sun3os4.mh: Likewise.
2155 * config/mips/vr5000.mt: Likewise.
2156 * config/ns32k/nbsd.mt: Likewise.
2157 * config/pa/hppabsd.mh: Likewise.
2158 * config/pa/hppaosf.mh: Likewise.
2159 * config/powerpc/nbsd.mt: Likewise.
2160 * config/rs6000/rs6000lynx.mh: Likewise.
2161 * config/s390/s390.mt: Likewise.
2162 * config/s390/s390x.mt: Likewise.
2163 * config/sparc/sparclynx.mh: Likewise.
2164 * config/sparc/sun4os4.mh: Likewise.
2165 * config/i386/x86-64linux.mt: Likewise.
2166 * config/sparc/linux.mh: Likewise.
2167
2168 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
2169
2170 * configure.tgt: Configure gdbserver only for known working
2171 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2172 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2173 SUBDIRS if it is configured. Update comment for ${nativefile}.
2174 * configure: Regenerated.
2175
2176 2002-02-13 Michael Snyder <msnyder@redhat.com>
2177
2178 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2179
2180 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2181 (default_gcore_mach): Just return 0, work around a problem in bfd.
2182 (default_gcore_target): OK to return NULL if exec_bfd is null.
2183 (make_mem_sec): Use a cast, avoid a warning.
2184
2185 * procfs.c (find_memory_regions_callback): Use a cast instead of
2186 calling host_pointer_to_address (which complains if
2187 sizeof (host pointer) != sizeof (target pointer)).
2188 (procfs_make_note_section): Avoid overflow in psargs string.
2189
2190 * procfs.c (procfs_make_note_section): Make the default
2191 implementation return an error.
2192
2193 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
2194
2195 * procfs.c (procfs_make_note_section): Provide a default definition
2196 (for alpha-dec-osf4.0f). Fix typos.
2197
2198 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
2199
2200 * linux-proc.c: Add include of regcache.h.
2201 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2202
2203 2002-02-13 Andrew Cagney <ac131313@redhat.com>
2204
2205 From 2002-01-18 Greg McGary <greg@mcgary.org>:
2206 * memattr.c (create_mem_region): Disallow useless empty region.
2207 Regions are half-open intervals, so allow [A..B) [B..C) as
2208 non-overlapping.
2209
2210 2002-02-13 Michael Chastain <mec@shout.net>
2211
2212 * defs.h: Kill CONST_PTR.
2213 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2214 * c-lang.c (c_builtin_types): Likewise.
2215 * ch-lang.c (ch_builtin_types): Likewise.
2216 * f-lang.c (f_builtin_types): Likewise.
2217 * language.c (unknown_builtin_types): Likewise.
2218 * m2-lang.c (m2_builtin_types): Likewise.
2219 * p-lang.c (pascal_builtin_types): Likewise.
2220 * scm-lang.c (c_builtin_types): Likewise.
2221
2222 2002-02-13 Keith Seitz <keiths@redhat.com>
2223
2224 * arm-tdep.h (arm_get_next_pc): Add declaration.
2225
2226 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
2227
2228 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2229 with other related struct-returning functions.
2230 (arm_extract_struct_value_address): New function.
2231 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2232 initialize float_format, double_format and long_double_format as
2233 appropriate to the endianness of the target.
2234 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2235 (arm_use_struct_convention): Delete declaration.
2236 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2237
2238 2002-02-13 Keith Seitz <keiths@redhat.com>
2239
2240 * defs.h (core_addr_to_string_nz): New function.
2241
2242 2002-02-13 Mark Kettenis <kettenis@gnu.org>
2243
2244 Apply missing bits of 2002-01-15 patch.
2245 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2246 (fill_fpregset): Use i387_fill_fsave.
2247
2248 2002-02-12 Keith Seitz <keiths@redhat.com>
2249
2250 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2251 (core_addr_to_string_nz): New function.
2252
2253 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2254
2255 * arm-linux-nat.c: Really include arm-tdep.h.
2256 * config/arm/tm-linux.h (struct type, struct value): Declare.
2257
2258 2002-02-11 Michael Snyder <msnyder@redhat.com>
2259
2260 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2261 (gcore section): Ifdef for Solaris and Unixware only.
2262 (procfs_do_thread_registers): Unixware needs one lwpstatus
2263 per thread (not one prstatus or pstatus).
2264 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2265 not over all gdb threads. For unixware, call elfcore_write_pstatus
2266 once before iterating over threads.
2267
2268 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2269
2270 * arm-tdep.h: New file.
2271 * arm-tdep.c: Include arm-tdep.h.
2272 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2273 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2274 (arm_print_float_info, arm_register_type, convert_to_extended)
2275 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2276 (arm_extract_return_value, arm_register_name): Make static.
2277 (arm_software_single_step): Similarly. Fix types in declaration.
2278 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2279 (arm_store_return_value, arm_store_struct_return): New functions.
2280 (arm_gdbarch_init): Register the above functions. Also register
2281 call_dummy_start_offset, sizeof_call_dummy_words,
2282 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2283 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
2284 max_register_virtual_size, register_size. Set up
2285 prologue_cache.saved_regs here, rather than ...
2286 (_initialize_arm_tdep): ... here.
2287 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2288 declarations.
2289 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2290 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2291 (arm_print_float_info, arm_register_type, convert_to_extended)
2292 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2293 (arm_extract_return_value, arm_register_name): Delete declarations.
2294 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2295 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2296 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2297 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2298 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2299 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2300 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2301 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2302 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2303 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2304 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2305 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2306 interface.
2307 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2308 * remote-rdi.c remote-rdp.c: Likewise.
2309 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2310 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2311 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2312 definition.
2313
2314 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2315 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2316 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2317 from non-ARM_ prefixed definitions.
2318 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2319 all uses of above.
2320 * remote-rdi.c remote-rdp.c: Likewise.
2321 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2322
2323 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
2324
2325 * arm-tdep.c (arm_frameless_function_invocation)
2326 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2327 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2328 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2329 (arm_pop_frame, arm_get_next_pc): Make static.
2330 (arm_gdbarch_init): Register above in gdbarch structure.
2331 (arm_read_fp): Renamed from arm_target_read_fp.
2332 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2333 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2334 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2335 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2336 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2337 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2338 (arm_pc_is_thumb_dummy): Delete declarations.
2339 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2340 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2341 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2342 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
2343
2344 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
2345
2346 * symtab.c (compare_search_syms): New function.
2347 (sort_search_symbols): New function.
2348 (search_symbols): Sort symbols after searching rather than
2349 before.
2350
2351 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2352
2353 * NEWS: Linux -> GNU/Linux.
2354
2355 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2356
2357 * gdbarch.sh: For for level one methods, disallow a definition
2358 when partially multi-arched. Add comments explaining rationale.
2359 * gdbarch.h: Re-generate.
2360
2361 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2362
2363 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2364 multi-arch partial.
2365
2366 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2367
2368 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2369 field. Use diff -u.
2370 * gdbarch.c: Re-generate.
2371
2372 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2373
2374 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
2375 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2376 partial.
2377
2378 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2379
2380 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2381 multi-arch partial.
2382 (PUSH_ARGUMENTS): Switch to using predefault.
2383 * gdbarch.c: Regenerate.
2384
2385 2002-02-10 Andrew Cagney <ac131313@redhat.com>
2386
2387 * valops.c (PUSH_ARGUMENTS): Delete definition.
2388 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2389 partial. Default to default_push_arguments.
2390 * gdbarch.h, gdbarch.c: Regenerate.
2391
2392 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2393
2394 * defs.h (throw_exception): Rename return_to_top_level. Update
2395 comments.
2396 * utils.c (error_stream, internal_verror, quit): Ditto.
2397 * top.c (throw_exception, catcher): Ditto.
2398 * sparclet-rom.c (sparclet_load): Ditto.
2399 * remote.c (interrupt_query, minitelnet): Ditto.
2400 * remote-sds.c (interrupt_query): Ditto.
2401 * remote-mips.c (mips_error, mips_kill): Ditto.
2402 * ocd.c (interrupt_query): Ditto.
2403 * monitor.c (monitor_interrupt_query): Ditto.
2404 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2405 * target.h: Update comment.
2406
2407 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
2408
2409 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2410
2411 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2412 default_double_format.
2413 * gdbarch.h, gdbarch.c: Re-generate.
2414 * findvar.c (floatformat_unknown): Delete variable definition.
2415 * doublest.h (floatformat_unknown): Delete variable declaration.
2416
2417 2002-02-09 Jim Blandy <jimb@redhat.com>
2418
2419 * stabsread.c (read_type): Add code to parse Sun's syntax for
2420 prototyped function types.
2421
2422 2002-02-09 Andrew Cagney <ac131313@redhat.com>
2423
2424 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2425 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2426
2427 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2428
2429 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2430 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2431 now _initialize_xcoffsolib gets called again and overrides the
2432 commands from solib.c in a native configuration.
2433
2434 2002-02-09 Mark Kettenis <kettenis@gnu.org>
2435
2436 * doublest.c (store_typed_floating): Don't try to return a value.
2437 Fixes PR gdb/290.
2438
2439 2002-02-08 Jim Blandy <jimb@redhat.com>
2440
2441 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2442 is prototyped and has no arguments, print its argument list as
2443 `(void)'.
2444
2445 2002-02-08 Chris Demetriou <cgd@broadcom.com>
2446
2447 * MAINTAINERS (write-after-approval): Add myself.
2448 (paper-trail): I've escaped!
2449
2450 2002-02-08 Christopher Faylor <cgf@redhat.com>
2451
2452 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2453 changes.
2454 (_initialize_check_for_gdb_ini): Ditto.
2455
2456 2002-02-08 Martin M. Hunt <hunt@redhat.com>
2457
2458 * win32-nat.c (cygwin_pid_to_str): Fix typo.
2459 xaprintf -> xasprintf.
2460
2461 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
2462
2463 * win32-nat.c: Remove use of printf and sprintf functions.
2464
2465 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
2466
2467 * arm-tdep.c (arm_frame_chain_valid): Make static.
2468 (arm_push_arguments): Likewise.
2469 (arm_gdbarch_init): New function.
2470 (_initialize_arm_tdep): Call it.
2471 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2472 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2473 (FRAME_CHAIN_VALID): Delete.
2474 (arm_frame_chain_valid): Delete declaration.
2475 (PUSH_ARGUMENTS): Delete.
2476 (arm_push_arguments): Delete declaration.
2477 (CALL_DUMMY_P): Delete.
2478
2479 2002-02-08 Andrew Cagney <ac131313@redhat.com>
2480 Corinna Vinschen <vinschen@redhat.com>
2481
2482 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
2483 on builtin float types.
2484
2485 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
2486
2487 * utils.c: Include <curses.h> before "bfd.h".
2488 * tui/tui-hooks.c: Likewise.
2489 * tui/tui.c: Likewise.
2490 * tui/tuiCommand.c: Likewise.
2491 * tui/tuiData.c: Likewise.
2492 * tui/tuiDataWin.c: Likewise.
2493 * tui/tuiDisassem.c: Likewise.
2494 * tui/tuiGeneralWin.c: Likewise.
2495 * tui/tuiIO.c: Likewise.
2496 * tui/tuiLayout.c: Likewise.
2497 * tui/tuiRegs.c: Likewise.
2498 * tui/tuiSource.c: Likewise.
2499 * tui/tuiSourceWin.c: Likewise.
2500 * tui/tuiStack.c: Likewise.
2501 * tui/tuiWin.c: Likewise.
2502
2503 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
2504
2505 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
2506 to include space for pseudoregs as well. Update loops accordingly.
2507 (sh_fp_frame_init_saved_regs): Ditto.
2508 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2509
2510 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2511
2512 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2513 Add Richard Earnshaw to Arm maintainers.
2514
2515 2002-02-07 Andrew Cagney <ac131313@redhat.com>
2516
2517 * defs.h (warning_begin): Delete declaration.
2518
2519 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
2520 Delete macro.
2521
2522 2002-02-07 Michael Snyder <msnyder@redhat.com>
2523
2524 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
2525 Logic bug, remove misplaced else.
2526
2527 2002-02-07 Klee Dienes <klee@apple.com>
2528
2529 * fork-inferior.c (fork_inferior): Add '!' to the list of
2530 characters that need to be quoted when building a string for the
2531 shell. Quote '!' specifically with a backslash, since CSH chokes
2532 when trying to evaluate "str!str".
2533
2534 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2535
2536 * rdi-share/host.h: Only provide a typedef for bool if it is not
2537 defined.
2538
2539 2002-02-04 Michael Snyder <msnyder@redhat.com>
2540
2541 * breakpoint.h (enum bptype): Add new overlay event bp type.
2542 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
2543
2544 * breakpoint.c (create_internal_breakpoint): New function.
2545 (internal_breakpoint_number): Moved into create_internal_breakpoint.
2546 (create_longjmp_breakpoint): Use create_internal_breakpoint.
2547 (create_thread_event_breakpoint): Ditto.
2548 (create_solib_event_breakpoint): Ditto.
2549 (create_overlay_event_breakpoint): New function.
2550 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2551 (update_breakpoints_after_exec): Delete and re-initialize
2552 overlay event breakpoints after an exec. Add FIXME comment
2553 about longjmp breakpoint.
2554 (print_it_typical): Ignore overlay event breakpoints.
2555 (print_one_breakpoint): Ditto.
2556 (mention): Ditto.
2557 (bpstat_what): Do not stop for overlay event breakpoints.
2558 (delete_breakpoint): Don't delete overlay event breakpoints.
2559 (breakpoint_re_set_one): Delete the overlay event breakpoint.
2560 (breakpoint_re_set): Re-create overlay event breakpoint.
2561
2562 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2563 (overlay_manual_command): Disable overlay breakpoints.
2564 (overlay_off_command): Disable overlay breakpoints.
2565
2566 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2567
2568 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
2569 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
2570 to here from config/tm-arm.h.
2571 (coff_sym_is_thumb): Make static.
2572 (arm_elf_make_msymbol_special): New function.
2573 (arm_coff_make_msymbol_special): New function.
2574 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
2575 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
2576 (coff_sym_is_thumb): Delete declaration.
2577 (arm_elf_make_msymbol_special): Declare.
2578 (arm_coff_make_msymbol_special): Declare.
2579 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
2580 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
2581
2582 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2583
2584 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
2585
2586 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
2587
2588 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
2589 * gdbarch.c gdbarch.h: Regenerate.
2590 * arch-utils.c (default_print_float_info): New function.
2591 * arch-utils.h (default_print_float_info): Prototype it.
2592 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
2593 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
2594 (PRINT_FLOAT_INFO): Document it.
2595
2596 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
2597 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
2598 (PRINT_FLOAT_INFO): Define.
2599
2600 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2601
2602 * win32-nat.c (_initialize_check_for_gdb_ini):
2603 Add typecast to sprintf argument to suppress a warning.
2604
2605 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
2606
2607 * win32-nat.c (last_sig): Changed type of variable to target_signal,
2608 to allow easier handling of pass state.
2609 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
2610 that gives exception name and address.
2611 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
2612 and set last_sig value to ourstatus->value.sig. Some missing
2613 exceptions added.
2614 (child_continue): Correctly report continue_status.
2615 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
2616 TARGET_SIGNAL_0 (new default value).
2617 (child_resume): consider sig argument passed to decide if
2618 the exception should be passed to debuggee or not.
2619
2620 2002-02-05 Michael Snyder <msnyder@redhat.com>
2621
2622 * regcache.c (fetch_register): Call target_fetch_register
2623 only if we don't call FETCH_PSEUDO_REGISTER.
2624 (store_register): Call target_store_register only if we
2625 don't call STORE_PSEUDO_REGISTER.
2626
2627 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
2628
2629 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
2630 ELF_MAKE_MSYMBOL_SPECIAL.
2631 * gdbarch.c, gdbarch.h: Regenerate.
2632 * arch-utils.c (default_make_msymbol_special): New function.
2633 * arch-utils.h (default_make_msymbol_special): Export.
2634 * elfread.c (elf_symtab_read): Compile use of
2635 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
2636 multiarched.
2637 * coffread.c (coff_symtab_read): Ditto, for
2638 COFF_MAKE_MSYMBOL_SPECIAL.
2639
2640 2002-02-05 Jim Blandy <jimb@redhat.com>
2641
2642 * solib-svr4.c (svr4_truncate_ptr): New function.
2643 (svr4_relocate_section_addresses): Do the address arithmetic with
2644 the appropriate truncation for target addresses, even when
2645 CORE_ADDR is larger than a target address.
2646
2647 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2648
2649 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
2650 to (int *).
2651
2652 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2653
2654 * gdbserver/linux-low.c (kill_inferior): Remove commented out
2655 code.
2656
2657 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2658
2659 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
2660
2661 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2662
2663 * gdbserver/linux-low.c: Remove unused include files.
2664
2665 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2666
2667 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
2668 (read_inferior_memory): Use it.
2669 (write_inferior_memory): Likewise.
2670
2671 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2672
2673 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
2674 grubbing through sys_errlist.
2675
2676 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
2677
2678 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
2679
2680 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2681 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
2682
2683 2002-02-04 Andrew Cagney <ac131313@redhat.com>
2684
2685 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
2686 (do_sfunc, set_cmd_sfunc): New functions.
2687
2688 * command.h (struct cmd_list_element): Add field func.
2689 * cli/cli-decode.h (struct cmd_list_element): Ditto.
2690 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
2691 * cli/cli-decode.h: Ditto.
2692
2693 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
2694 (help_all, help_cmd_list): Ditto.
2695 (find_cmd, complete_on_cmdlist): Ditto.
2696 * top.c (execute_command): Ditto.
2697
2698 * cli/cli-setshow.c (do_setshow_command): Call func instead of
2699 function.sfunc.
2700
2701 * infcmd.c (notice_args_read): Fix function signature.
2702
2703 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
2704 * cli/cli-decode.c (add_set_cmd): Ditto.
2705 * utils.c (initialize_utils): Ditto.
2706 * maint.c (_initialize_maint_cmds): Ditto.
2707 * infrun.c (_initialize_infrun): Ditto.
2708 * demangle.c (_initialize_demangler): Ditto.
2709 * remote.c (add_packet_config_cmd): Ditto.
2710 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2711 * cris-tdep.c (_initialize_cris_tdep): Ditto.
2712 * proc-api.c (_initialize_proc_api): Ditto.
2713 * kod.c (_initialize_kod): Ditto.
2714 * valprint.c (_initialize_valprint): Ditto.
2715 * top.c (init_main): Ditto.
2716 * infcmd.c (_initialize_infcmd): Ditto.
2717 * corefile.c (_initialize_core): Ditto.
2718 * arm-tdep.c (_initialize_arm_tdep): Ditto.
2719 * arch-utils.c (initialize_current_architecture): Ditto.
2720 (_initialize_gdbarch_utils): Ditto.
2721 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
2722
2723 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
2724 * wince.c (_initialize_inftarg): Ditto.
2725 * symfile.c (_initialize_symfile): Ditto.
2726 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2727 * language.c (_initialize_language): Ditto.
2728 * arc-tdep.c (_initialize_arc_tdep): Ditto.
2729
2730 2002-02-04 Michael Snyder <msnyder@redhat.com>
2731
2732 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
2733
2734 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2735
2736 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
2737 Add rules for building the register data files.
2738
2739 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2740
2741 * regformats/regdat.sh: Add braces to the definition of
2742 expedite_regs_${arch}.
2743
2744 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
2745
2746 * regformats/regdef.h (struct reg): Add comment describing the
2747 requirements for offset and size fields.
2748
2749 2002-02-04 Andreas Schwab <schwab@suse.de>
2750
2751 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
2752 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
2753
2754 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
2755
2756 * gdbarch.sh (copyright): Update years in generated header.
2757 (SMASH_TEXT_ADDRESS): Add rule.
2758 * gdbarch.h, gdbarch.c: Re-generate.
2759 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
2760 * dbxread.c: Likewise.
2761 * dwarfread.c: Likewise.
2762 * elfread.c: Likewise.
2763 * somread.c: Likewise.
2764
2765 * arm-tdep.c (arm_smash_text_address): New function.
2766 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
2767
2768 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
2769
2770 Add support for hardware watchpoints on win32 native.
2771 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
2772 CONTEXT_DEBUG_REGISTERS.
2773 (dr variable): New variable. Static array containing a local copy
2774 of debug registers.
2775 (debug_registers_changed): New variable. Reflects when debug registers
2776 are changed and need to be written to inferior.
2777 (debug_registers_used): New variable. Reflects when any debug register
2778 was set, used when new threads are created.
2779 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
2780 i386-nat code.
2781 (thread_rec): Set dr array if id is the thread of current_event .
2782 (child_continue, child_resume): Change the debug registers for all
2783 threads if debug_registers_changed.
2784 (child_add_thread): Change the debug registers if debug_registers_used.
2785 * config/i386/cygwin.mh: Add use of i386-nat.o file.
2786 Link nm.h to new nm-cygwin.h file.
2787 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
2788 of hardware registers.
2789
2790 2002-02-03 Andrew Cagney <ac131313@redhat.com>
2791
2792 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
2793 Restore behavour broken by 2002-01-20 Andrew Cagney
2794 <ac131313@redhat.com> IEEE_FLOAT removal.
2795
2796 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2797
2798 * c-valprint.c (c_val_print): Pass a proper valaddr to
2799 cp_print_class_method.
2800 * valops.c (search_struct_method): If there is only one method
2801 and args is NULL, return that method.
2802
2803 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2804
2805 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
2806 accessing tag_name directly.
2807
2808 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2809
2810 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
2811 of accessing tag_name directly.
2812
2813 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
2814
2815 PR gdb/280
2816 * gdbtypes.c (replace_type): New function.
2817 * gdbtypes.h (replace_type): Add prototype.
2818 * stabsread.c (read_type): Use replace_type.
2819
2820 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
2821
2822 * Makefile.in (memattr.o): Add missing dependencies rule.
2823
2824 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2825
2826 * breakpoint.c (break_at_finish_command): Really export.
2827 (break_at_finish_at_depth_command): Ditto.
2828 (tbreak_at_finish_command): Ditto.
2829 * hppa-tdep.c: Include completer.h.
2830 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
2831 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
2832
2833 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2834
2835 * utils.c (do_write): New function.
2836 (error_stream): Rewrite combining the code from error_begin and
2837 verror.
2838 (verror): Rewrite using error_stream.
2839 (error_begin): Delete function.
2840
2841 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2842
2843 * utils.c (error_begin): Make static.
2844 * defs.h (error_begin): Delete declaration.
2845
2846 * linespec.c (cplusplus_error): Replace cplusplus_hint.
2847 (decode_line_1): Use cplusplus_error instead of error_begin,
2848 cplusplus_hint and return_to_top_level.
2849 * coffread.c (coff_symfile_read): Use error instead of error_begin
2850 and return_to_top_level.
2851 * infrun.c (default_skip_permanent_breakpoint): Ditto.
2852
2853 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2854
2855 * language.h (type_error, range_error): Make string parameter
2856 constant.
2857 * language.c (warning_pre_print): Delete extern declaration.
2858 * dwarfread.c (warning_pre_print): Ditto.
2859 * language.c (type_error, range_error): Rewrite to use verror and
2860 vwarning instead of warning_begin.
2861
2862 2002-02-01 Michael Snyder <msnyder@redhat.com>
2863
2864 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
2865 (set_ignore_count): Move misplaced comment back where it belongs.
2866
2867 2002-02-01 Andrew Cagney <ac131313@redhat.com>
2868
2869 * command.h (NO_FUNCTION): Delete macro.
2870 * cli/cli-decode.h (NO_FUNCTION): Ditto.
2871 * top.c (execute_command): Replace NO_FUNCTION with NULL.
2872 * tracepoint.c (_initialize_tracepoint): Ditto.
2873 * cli/cli-decode.c (add_set_cmd): Ditto.
2874 * cli/cli-cmds.c (init_cli_cmds): Ditto.
2875
2876 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
2877
2878 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
2879 Update ``this'' pointer when calling virtual functions.
2880
2881 2002-02-01 Michael Snyder <msnyder@redhat.com>
2882
2883 * breakpoint.c (create_temp_exception_breakpoint): Delete.
2884 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
2885
2886 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
2887
2888 * regformats/reg-arm.dat: New file.
2889 * regformats/reg-i386.dat: New file.
2890 * regformats/reg-ia64.dat: New file.
2891 * regformats/reg-m68k.dat: New file.
2892 * regformats/reg-mips.dat: New file.
2893 * regformats/reg-ppc.dat: New file.
2894 * regformats/reg-sh.dat: New file.
2895 * regformats/regdef.h: New file.
2896 * regformats/regdat.sh: New file.
2897
2898 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
2899
2900 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
2901 (arm_frame_args_address, arm_frame_locals_address): New functions.
2902 (arm_frame_num_args): New function.
2903 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
2904 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
2905 (FRMA_NUM_ARGS): Call arm_frame_num_args.
2906
2907 2002-01-31 Michael Snyder <msnyder@redhat.com>
2908
2909 * breakpoint.c (break_at_finish_command): Export.
2910 (break_at_finish_at_depth_command): Export.
2911 (tbreak_at_finish_command): Export.
2912 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
2913 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
2914 "tbreak" commands, which are HPPA specific.
2915
2916 * printcmd.c (disassemble_command): Remove an ancient
2917 artifact of an old merge.
2918
2919 * symfile.h (enum overlay_debugging_state):
2920 Define enum constant values for overlay mode.
2921 * symfile.c (overlay_debugging): Use enums instead of literals.
2922 (overlay_is_mapped, overlay_auto_command,
2923 overlay_manual_command): Ditto.
2924
2925 * breakpoint.c (insert_breakpoints, remove_breakpoint,
2926 breakpoint_here_p, breakpoint_inserted_here_p,
2927 breakpoint_thread_match, bpstat_stop_status,
2928 describe_other_breakpoints, check_duplicates, clear_command):
2929 Coding standard fixes.
2930
2931 * target.c (target_xfer_memory): Add spaces, coding standard.
2932 (do_xfer_memory): Add missing line to trust-readonly
2933 code: check bfd SEC_READONLY flag for section.
2934
2935 2002-01-31 Andrew Cagney <ac131313@redhat.com>
2936
2937 * PROBLEMS: Fix typo, 5.1->5.1.1.
2938
2939 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
2940
2941 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
2942 data symbols, since we search based on textlow and texthigh.
2943 (find_pc_sect_symtab): Likewise.
2944
2945 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2946
2947 * defs.h (vwarning): Declare.
2948 * utils.c (vwarning): New function.
2949 (warning): Call vwarning.
2950 (warning_begin): Delete function.
2951
2952 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
2953 the warning message.
2954 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
2955 warning_begin.
2956
2957 2002-01-30 Michael Snyder <msnyder@redhat.com>
2958
2959 * NEWS: Mention "set trust-readonly-sections" command.
2960 Mention generate-core-file command.
2961
2962 2002-01-15 Michael Snyder <msnyder@redhat.com>
2963
2964 * target.c: New command, "set trust-readonly-sections on".
2965 (do_xfer_memory): Honor the suggestion to trust readonly sections
2966 by reading them from the object file instead of from the target.
2967 (initialize_targets): Register command "set trust-readonly-sections".
2968
2969 2002-01-29 Andrew Cagney <ac131313@redhat.com>
2970
2971 * parse.c (target_map_name_to_register): Simplify, search regs and
2972 pseudo-regs using a single loop.
2973
2974 2002-01-30 Andrew Cagney <ac131313@redhat.com>
2975
2976 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
2977
2978 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
2979
2980 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
2981 * config/i386/i386v42mp.mh: Add i387-nat.o .
2982 * i386v4-nat.c: Include i387-nat.h.
2983 (supply_fpregset): Use i387_supply_fsave.
2984 (fill_fpregset): Use i387_fill_fsave.
2985
2986 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
2987
2988 * arm-tdep.c (arm_call_dummy_words): Define.
2989 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
2990 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
2991 (CALL_DUMMY_WORDS): Define.
2992 (arm_call_dummy_words): Declare.
2993 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
2994 (arm_linux_call_dummy_words): Declare.
2995
2996 2002-01-30 Andreas Schwab <schwab@suse.de>
2997
2998 * m68klinux-nat.c: Fix last change to use regcache_collect
2999 instead of referencing registers[] directly.
3000
3001 2002-01-29 Andrew Cagney <ac131313@redhat.com>
3002
3003 * parse.c (target_map_name_to_register): Delete code wrapped in
3004 #ifdef REGISTER_NAME_ALIAS_HOOK.
3005
3006 2002-01-28 Michael Snyder <msnyder@redhat.com>
3007
3008 * regcache.c (legacy_read_register_gen): Need to be able to
3009 read pseudo-register as well as real register.
3010 (legacy_write_register_gen): Ditto.
3011
3012 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3013
3014 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3015 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3016 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3017 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3018 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3019 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3020 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3021 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3022 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3023 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3024 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3025 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3026 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3027 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3028 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3029 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3030 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3031 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3032 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3033 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3034
3035 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3036
3037 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3038 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3039 (initialize_current_architecture): Update target_byte_order using
3040 information from BFD.
3041 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
3042 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3043
3044 2002-01-28 Andrew Cagney <ac131313@redhat.com>
3045
3046 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3047 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3048
3049 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3050 #ifdef INVALID_FLOAT.
3051 * infcmd.c (do_registers_info): Ditto.
3052 * values.c (unpack_double): Ditto. Add comment.
3053
3054 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3055 already commented out.
3056
3057 2002-01-26 Andreas Schwab <schwab@suse.de>
3058
3059 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3060 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3061 registers and add support for PTRACE_GETREGS.
3062
3063 2002-01-24 Andrew Cagney <ac131313@redhat.com>
3064
3065 GDB 5.1.1 released from 5.1 branch.
3066 * NEWS: Add 5.1.1 news.
3067 * README: Sync with 5.1 branch.
3068
3069 2002-01-23 Fred Fish <fnf@redhat.com>
3070
3071 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3072 stabstring on initial malloc. Reallocing will copy it for us,
3073 if necessary.
3074
3075 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3076
3077 * Makefile.in (hpread_h): Delete.
3078 (HFILES_NO_SRCDIR): Remove hpread.h.
3079 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3080 (hpread.o): Update dependencies.
3081 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3082
3083 * hp-psymtab-read.c: Remove file.
3084 * hp-symtab-read.c: Remove file.
3085 * hpread.h: Remove file.
3086
3087 * hpread.c: Merge all contents of hp-psymtab-read.c,
3088 hp-symtab-read.c and hpread.h into this file, as it was prior to
3089 January 1999.
3090
3091 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
3092 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
3093 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3094 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3095
3096 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
3097
3098 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3099 fill_gregset): Call gdbarch_tdep() just once, assign result to
3100 variable and use that, instead of calling the function several
3101 times.
3102
3103 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
3104
3105 * configure.host: Accept sparcv9 as alias for sparc64.
3106 * configure.tgt: Likewise.
3107
3108 2002-01-22 Kevin Buettner <kevinb@redhat.com>
3109
3110 * solib-aix5.c (build_so_list_from_mapfile)
3111 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3112 arguments is not reversed.
3113 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3114 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
3115
3116 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
3117
3118 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3119 modified version of obsolete sh_fetch_pseudo_register.
3120 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3121 (sh4_register_read): New function.
3122 (sh_pseudo_register_write): New function. Renamed and modified
3123 version of obsolete sh_store_pseudo_register.
3124 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3125 (sh4_register_write): New function.
3126 (sh_gdbarch_init): Remove setting of gdbarch function
3127 fetch_pseudo_register and store_pseudo_register. Remove setting of
3128 register_convert_to_raw, register_convert_to_virtual,
3129 register_convertible.
3130 (sh_sh4_register_convertible): Delete. No longer needed. All is
3131 taken care by architecture specific functions
3132 register_read/register_write.
3133 (sh_sh4_register_convert_to_virtual): Make static.
3134 (sh_sh4_register_convert_to_raw): Ditto.
3135
3136 2002-01-22 Andrew Cagney <ac131313@redhat.com>
3137
3138 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3139 (floatformat_is_nan, floatformat_mantissa): Ditto.
3140
3141 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3142 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3143 builtin_type_ieee_double_little,
3144 builtin_type_ieee_double_littlebyte_bigword,
3145 builtin_type_m68881_ext, builtin_type_i960_ext,
3146 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3147 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3148 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3149 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3150
3151 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
3152
3153 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3154 parameter. Set frameless flag if it exists and depended of
3155 whether the scanned function is frameless or not.
3156 (xstormy16_skip_prologue): If function is frameless, return
3157 result of xstormy16_scan_prologue().
3158 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3159 call.
3160
3161 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
3162
3163 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3164 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3165 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3166 sh_sh4_register_byte, sh_sh4_register_raw_size,
3167 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3168 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3169 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3170 sh_store_pseudo_register, sh_do_pseudo_register): Call
3171 gdbarch_tdep() just once, assign result to variable and use that,
3172 instead of calling the function several times.
3173
3174 2002-01-20 Mark Kettenis <kettenis@gnu.org>
3175
3176 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3177 macros instead of LAST_FPU_CTRL_REGNUM.
3178 (store_register): Likewise.
3179
3180 2002-01-21 Jim Blandy <jimb@redhat.com>
3181
3182 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3183 is up-to-date before running the program, not just when a program
3184 exits.
3185
3186 2002-01-21 Fred Fish <fnf@redhat.com>
3187
3188 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3189 when we have found all instructions we are looking for.
3190
3191 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3192
3193 * arm-tdep.c (arm_register_name): New function.
3194 (arm_registers_names): Make static.
3195 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3196 (arm_register_name): Declare.
3197 (REGISTER_NAME): Use it.
3198
3199 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
3200 Kevin Buettner <kevinb@redhat.com>
3201
3202 Convert arm targets to new FRAME interface.
3203 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3204 (arm_frame_find_save_regs): Delete.
3205 (arm_frame_init_saved_regs): New.
3206 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3207 Allocate extra_info as required. Convert all uses of fsr.regs
3208 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3209 to use extra_info.
3210 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3211 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3212 (check_prologue_cache, save_prologue_cache): Likewise.
3213 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3214 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3215 (FRAME_FIND_SAVED_REGS): Delete.
3216 (arm_frame_find_saved_regs): Delete prototype.
3217 (arm_frame_init_saved_regs): New prototype.
3218 (FRAME_INIT_SAVED_REGS): Define.
3219
3220 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3221
3222 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3223
3224 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3225
3226 From Jeff Law <law@redhat.com>:
3227 * infttrace.c: Include <sys/pstat.h>.
3228 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3229 exec file if the ttrace equivalent fails.
3230
3231 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3232
3233 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3234 (closeLogFile): Ditto.
3235
3236 2002-01-20 Michael Chastain <mec@shout.net>
3237
3238 * top.c (print_gdb_version): Bump copyright year to 2002.
3239
3240 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3241
3242 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3243 Zannoni and Eli Zaretskii.
3244
3245 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3246
3247 * buildsym.c: Update copyright years.
3248 * c-typeprint.c: Likewise.
3249 * dwarf2read.c: Likewise.
3250 * f-typeprint.c: Likewise.
3251 * gdbtypes.c: Likewise.
3252 * gdbtypes.h: Likewise.
3253 * hp-symtab-read.c: Likewise.
3254 * hpread.c: Likewise.
3255 * mdebugread.c: Likewise.
3256 * p-typeprint.c: Likewise.
3257
3258 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3259
3260 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3261 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3262 byte-order selectable.
3263 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3264 * arch-utils.c: Ditto.
3265 (set_endian): Ditto.
3266 (set_endian_from_file): Ditto.
3267 * gdbserver/low-sim.c (create_inferior): Ditto.
3268 * gdbarch.sh: Ditto.
3269 * gdbarch.h: Re-generate.
3270 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3271 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3272 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3273 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3274 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3275 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3276 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3277 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3278 macro definition.
3279 * config/mips/tm-wince.h: Remove #undef of macro
3280 TARGET_BYTE_ORDER_SELECTABLE.
3281 * config/sh/tm-wince.h: Ditto.
3282
3283 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3284
3285 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3286 member function fields. Add accessor macro
3287 TYPE_FN_FIELD_ARTIFICIAL.
3288 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3289 * c-typeprint.c (c_type_print_base): Skip artificial member
3290 functions.
3291
3292 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3293
3294 * f-typeprint.c: Delete unused function f_type_print_args.
3295 * p-typeprint.c: Delete unused function pascal_type_print_args.
3296
3297 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
3298
3299 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3300 comment. Add ``artificial'' to ``union field_location''.
3301
3302 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3303
3304 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3305 * mdebugread.c (parse_symbol): Likewise.
3306 * stabsread.c (define_symbol): Likewise.
3307 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3308 initializing TYPE_FIELD_BITPOS to n (obsolete).
3309 (hpread_doc_function_type): Likewise.
3310 * hpread.c (hpread_function_type): Likewise.
3311
3312 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3313
3314 * configure.in (host_makefile_frag): Only require a host makefile
3315 fragment when a native build.
3316 * configure: Re-generate.
3317
3318 2002-01-20 Andrew Cagney <ac131313@redhat.com>
3319
3320 * doublest.h (floatformat_from_type): Declare.
3321 * doublest.c (floatformat_from_type): New function.
3322 (convert_typed_floating): Use.
3323
3324 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3325 call to function floatformat_from_type.
3326
3327 * gdbarch.sh (IEEE_FLOAT): Delete.
3328 * gdbarch.h, gdbarch.c: Re-generate.
3329 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3330 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3331 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3332 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3333 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3334 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3335 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3336 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3337 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3338 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3339 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
3340 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3341
3342 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3343 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3344 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3345 * sh-tdep.c (sh_gdbarch_init): Ditto.
3346 * mips-tdep.c (mips_gdbarch_init): Ditto.
3347 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3348 * cris-tdep.c (cris_gdbarch_init): Ditto.
3349
3350 2002-01-20 Jiri Smid <smid@suse.cz>
3351
3352 * configure.host, configure.tgt: Support x86-64.
3353 * NEWS: Note new target x86-64.
3354
3355 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3356 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3357 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3358 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3359 x86-64-linux-nat.o): Fix dependencies.
3360
3361 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3362
3363 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3364 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3365 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3366 * config/sparc/xm-sun4os4.h: Delete file.
3367 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
3368
3369 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3370
3371 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3372 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3373 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3374 * config/i386/i386lynx.mh (XM_FILE): Delete.
3375 * config/rs6000/xm-rs6000ly.h: Delete file.
3376 * config/sparc/xm-sparclynx.h: Delete file.
3377 * config/m68k/xm-m68klynx.h: Delete file.
3378 * config/i386/xm-i386lynx.h: Delete file.
3379 * config/xm-lynx.h: Delete file.
3380 * config/djgpp/fnchange.lst: Update.
3381
3382 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3383
3384 * alpha-tdep.c (alpha_register_byte): New function.
3385 (alpha_register_raw_size): Ditto.
3386 (alpha_register_virtual_size): Ditto.
3387 (alpha_skip_prologue_internal): Renamed from
3388 alpha_skip_prologue.
3389 (alpha_skip_prologue): New version that calls
3390 alpha_skip_prologue_internal.
3391 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3392 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3393 second argument from alpha_skip_prologue.
3394 (REGISTER_BYTE): Use alpha_register_byte.
3395 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3396 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3397 (FRAMELESS_FUNCTION_INVOCATION): Use
3398 generic_frameless_function_invocation_not.
3399 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3400 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3401
3402 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3403
3404 * config/mips/xm-news-mips.h: Delete file.
3405 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3406
3407 * config/m88k/xm-m88k.h: Delete file.
3408 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3409 * config/m88k/xm-delta88v4.h: Ditto.
3410 * config/m88k/xm-delta88.h: Ditto.
3411
3412 * config/alpha/xm-fbsd.h: Delete file.
3413 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3414
3415 * config/sparc/xm-sparc.h: Delete file.
3416 * Makefile.in (xm-sun4os4.h): Delete dependency.
3417 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3418 * config/sparc/xm-sun4os4.h: Ditto.
3419 * config/sparc/xm-linux.h: Ditto.
3420
3421 * config/i386/xm-windows.h: Delete file.
3422
3423 2002-01-19 Andrew Cagney <ac131313@redhat.com>
3424
3425 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3426 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3427
3428 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3429
3430 * alpha-tdep.c (alpha_call_dummy_words): New.
3431 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3432 (CALL_DUMMY_P): Define.
3433 (CALL_DUMMY_WORDS): Define.
3434 (SIZEOF_CALL_DUMMY_WORDS): Define.
3435
3436 2002-01-19 Per Bothner <per@bothner.com>
3437
3438 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3439 isn't NULL, which can happen with some gcj-3.x-produced code.
3440
3441 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3442
3443 * alpha-tdep.c (alpha_register_virtual_type): New function.
3444 (alpha_init_frame_pc_first): Ditto.
3445 (alpha_fix_call_dummy): Ditto.
3446 (alpha_store_struct_return): Ditto.
3447 (alpha_extract_struct_value_address): Ditto.
3448 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3449 alpha_register_virtual_type.
3450 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3451 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3452 alpha_extract_struct_value_address.
3453 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3454 (INIT_FRAME_PC): Use init_frame_pc_noop.
3455 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3456
3457 2002-01-19 Mark Kettenis <kettenis@gnu.org>
3458
3459 * i386gnu-nat.c: Include "i386-tdep.h".
3460 (fetch_fpregs): Simplify code dealing with uninitialized floating
3461 point states such that it doesn't require FP7_REGNUM.
3462
3463 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3464
3465 * alpha-tdep.c (frame_extra_info): New.
3466 (alpha_find_saved_regs): Make static. Use
3467 frame->extra_info.
3468 (alpha_frame_init_saved_regs): New function.
3469 (alpha_frame_saved_pc): Use frame->extra_info.
3470 (temp_saved_regs): Don't declare as struct frame_saved_regs.
3471 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
3472 (init_extra_frame_info): Rename to...
3473 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
3474 (alpha_print_extra_frame_info): New function.
3475 (alpha_frame_locals_address): Ditto.
3476 (alpha_frame_args_address): Ditto.
3477 (alpha_pop_frame): Use frame->extra_info.
3478 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3479 alpha_frame_args_address.
3480 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
3481 (alpha_find_saved_regs): Remove prototype.
3482 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
3483 (EXTRA_FRAME_INFO): Remove.
3484 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
3485 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
3486
3487 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3488
3489 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
3490 (alpha_cannot_fetch_register): Ditto.
3491 (alpha_cannot_store_register): Ditto.
3492 (alpha_register_convertible): Ditto.
3493 (alpha_use_struct_convention): Ditto.
3494 * config/alpha/tm-alpha.h: Update copyright years.
3495 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
3496 (INNER_THAN): Use core_addr_lessthan.
3497 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
3498 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
3499 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
3500 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
3501 (FRAME_CHAIN): Remove unnecessary cast.
3502
3503 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3504
3505 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
3506 obsolete.
3507
3508 2002-01-18 Andrew Cagney <ac131313@redhat.com>
3509
3510 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
3511 * monitor.c, remote-array.c, remote-bug.c: Ditto.
3512 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3513 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3514 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
3515 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
3516 * x86-64-linux-nat.c: Ditto.
3517
3518 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3519
3520 * alpha-tdep.c (alpha_register_name): New function.
3521 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
3522 (REGISTER_NAME): Define.
3523
3524 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3525
3526 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
3527
3528 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3529
3530 * alpha-tdep.c: Update copyright years.
3531 (alpha_next_pc): New function.
3532 (alpha_software_single_step): Ditto.
3533 * config/alpha/tm-alpha.h: Add prototype for
3534 alpha_software_single_step.
3535
3536 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3537
3538 * alphabsd-nat.c: Update copyright years.
3539 (fill_gregset): Use regcache_collect.
3540 (fill_fpregset): Likewise.
3541 (fetch_inferior_registers): Only fetch integer registers
3542 if requested to do so.
3543 (store_inferior_registers): Only store integer registers
3544 if requested to do so.
3545
3546 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3547
3548 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3549 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3550 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3551 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3552 * config/alpha/fbsd.mh (XDEPFILES): Delete.
3553 * config/arm/linux.mh (XDEPFILES): Delete.
3554 * config/arm/nbsd.mh (XDEPFILES): Delete.
3555 * config/i386/i386dgux.mh (XDEPFILES): Delete.
3556 * config/i386/i386sol2.mh (XDEPFILES): Delete.
3557 * config/i386/i386m3.mh (XDEPFILES): Delete.
3558 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3559 * config/i386/i386gnu.mh (XDEPFILES): Delete.
3560 * config/i386/fbsd.mh (XDEPFILES): Delete.
3561 * config/i386/i386bsd.mh (XDEPFILES): Delete.
3562 * config/i386/i386sco5.mh (XDEPFILES): Delete.
3563 * config/i386/i386v4.mh (XDEPFILES): Delete.
3564 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3565 * config/i386/i386sco4.mh (XDEPFILES): Delete.
3566 * config/i386/i386aix.mh (XDEPFILES): Delete.
3567 * config/i386/go32.mh (XDEPFILES): Delete.
3568 * config/i386/cygwin.mh (XDEPFILES): Delete.
3569 * config/i386/i386lynx.mh (XDEPFILES): Delete.
3570 * config/i386/i386mach.mh (XDEPFILES): Delete.
3571 * config/i386/i386v32.mh (XDEPFILES): Delete.
3572 * config/i386/linux.mh (XDEPFILES): Delete.
3573 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
3574 * config/i386/ncr3000.mh (XDEPFILES): Delete.
3575 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
3576 * config/i386/i386sco.mh (XDEPFILES): Delete.
3577 * config/i386/i386v.mh (XDEPFILES): Delete.
3578 * config/i386/nbsd.mh (XDEPFILES): Delete.
3579 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
3580 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
3581 * config/i386/symmetry.mh (XDEPFILES): Delete.
3582 * config/i386/obsd.mh (XDEPFILES): Delete.
3583 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
3584 * config/ia64/linux.mh (XDEPFILES): Delete.
3585 * config/ia64/aix.mh (XDEPFILES): Delete.
3586 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
3587 * config/m68k/dpx2.mh (XDEPFILES): Delete.
3588 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
3589 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
3590 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
3591 * config/m68k/linux.mh (XDEPFILES): Delete.
3592 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
3593 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
3594 * config/m68k/nbsd.mh (XDEPFILES): Delete.
3595 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
3596 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
3597 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
3598 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
3599 * config/m88k/delta88.mh (XDEPFILES): Delete.
3600 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
3601 * config/m88k/m88k.mh (XDEPFILES): Delete.
3602 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
3603 * config/mips/linux.mh (XDEPFILES): Delete.
3604 * config/mips/irix6.mh (XDEPFILES): Delete.
3605 * config/mips/irix5.mh (XDEPFILES): Delete.
3606 * config/mips/irix4.mh (XDEPFILES): Delete.
3607 * config/mips/irix3.mh (XDEPFILES): Delete.
3608 * config/mips/decstation.mh (XDEPFILES): Delete.
3609 * config/mips/mipsm3.mh (XDEPFILES): Delete.
3610 (NATDEPFILES): Move core-aout.o to here.
3611 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
3612 * config/pa/hpux1020.mh (XDEPFILES): Delete.
3613 * config/pa/hppabsd.mh (XDEPFILES): Delete.
3614 * config/pa/hppahpux.mh (XDEPFILES): Delete.
3615 * config/pa/hpux11w.mh (XDEPFILES): Delete.
3616 * config/pa/hppaosf.mh (XDEPFILES): Delete.
3617 * config/pa/hpux11.mh (XDEPFILES): Delete.
3618 * config/powerpc/aix.mh (XDEPFILES): Delete.
3619 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
3620 * config/powerpc/linux.mh (XDEPFILES): Delete.
3621 * config/romp/rtbsd.mh: Rename XDEPFILES.
3622 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
3623 * config/rs6000/aix4.mh (XDEPFILES): Delete.
3624 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
3625 * config/s390/s390.mh (XDEPFILES): Delete.
3626 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
3627 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
3628 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
3629 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
3630 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
3631 * config/sparc/nbsd.mh (XDEPFILES): Delete.
3632 * config/sparc/linux.mh (XDEPFILES): Delete.
3633 * config/vax/vaxult.mh (XDEPFILES): Delete.
3634 * config/vax/vaxult2.mh (XDEPFILES): Delete.
3635 * Makefile.in (DEPFILES): Remove XDEPFILES.
3636
3637 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3638
3639 * utils.c (internal_verror): Fix comments, default is yes not no.
3640 Update queries to match. Default to quit and dump core.
3641
3642 2002-01-17 Andrew Cagney <ac131313@redhat.com>
3643
3644 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
3645 copyright.
3646 * defs.h, event-top.c, gdbcmd.h: Ditto.
3647 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
3648 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
3649 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
3650 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
3651 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
3652 * mi/mi-main.c:Ditto.
3653
3654 * stack.c, symfile.c: Update copyright.
3655
3656 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3657
3658 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
3659 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
3660 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
3661 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
3662
3663 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
3664
3665 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
3666 * gdbserver/low-lynx.c (myattach): Likewise.
3667 * gdbserver/low-nbsd.c (myattach): Likewise.
3668 * gdbserver/low-sim.c (myattach): Likewise.
3669 * gdbserver/low-sparc.c (myattach): Likewise.
3670 * gdbserver/low-sun3.c (myattach): Likewise.
3671
3672 * gdbserver/low-linux.c (myattach): New function.
3673
3674 * gdbserver/server.c (attach_inferior): New function.
3675 (main): Handle "--attach".
3676
3677 2002-01-16 Andrew Cagney <ac131313@redhat.com>
3678
3679 * MAINTAINERS (language support): Daniel Jacobwitz is C++
3680 maintainer.
3681
3682 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
3683
3684 * c-typeprint.c (is_type_conversion_operator): Add additional
3685 check for non-conversion operators.
3686
3687 2002-01-15 Michael Snyder <msnyder@redhat.com>
3688
3689 * linux-proc.c: Add "info proc" command, a la procfs.c.
3690 (read_mapping): New function, abstract and re-use code.
3691 (linux_find_memory_regions): Use new func read_mapping.
3692 (linux_info_proc_cmd): New function, implement "info proc".
3693 (_initialize_linux_proc): Add new command "info proc".
3694
3695 2002-01-15 Michael Snyder <msnyder@redhat.com>
3696
3697 * symfile.c (generic_load): Use bfd_map_over_sections method
3698 instead of manipulating bfd structure members directly.
3699 (add_section_size_callback): New function, bfd sections callback
3700 used by generic_load.
3701 (load_sections_callback): New function, bfd sections callback
3702 used by generic_load.
3703
3704 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
3705
3706 [Based on work by Jim Blandy]
3707 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
3708 (builtin_type_vec128): Export.
3709 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
3710 types.
3711 (builtin_type_vec128): New builtin type for 128 bit vector
3712 registers.
3713 (build_gdbtypes): Initialize builtin_type_v16qi and
3714 builtin_type_v8hi. Create the vec128 register builtin type
3715 structure.
3716 (build_builtin_type_vec128): New function.
3717 (_initialize_gdbtypes): Register builtin_type_v16qi and
3718 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
3719 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
3720 AltiVec register to new builtin type.
3721
3722 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
3723
3724 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
3725 to make_cv_type.
3726
3727 2002-01-14 Andrew Cagney <ac131313@redhat.com>
3728
3729 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
3730 CLEAN_UP_REGISTER_VALUE.
3731 * regcache.c (supply_register): Update only call.
3732
3733 2002-01-14 Andrew Cagney <ac131313@redhat.com>
3734
3735 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
3736 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
3737 a29k-*-vxworks* targets as obsolete.
3738
3739 2002-01-14 Michael Snyder <msnyder@redhat.com>
3740
3741 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
3742 until we can resolve portability issues.
3743 * gregset.h: Remove references to fpxregs.
3744 * gcore.c (gcore_command): Initialize note_sec to NULL.
3745
3746 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3747
3748 * signals.c (target_signal_to_name): Rewrite. Only use
3749 signals[].name when in bounds and non-NULL.
3750
3751 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3752
3753 From Petr Ledvina <ledvinap@kae.zcu.cz>:
3754 * signals.c (target_signal_to_name): Verify that SIG is within the
3755 bounds of the signals array.
3756
3757 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3758
3759 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
3760
3761 2002-01-13 Keith Seitz <keiths@redhat.com>
3762
3763 * stack.c (print_frame_info_base): Print the frame's pc
3764 only if when print_frame_info_listing_hook is not defined.
3765
3766 2002-01-13 Keith Seitz <keiths@redhat.com>
3767
3768 * varobj.c (varobj_set_value): Make sure that there were no
3769 errors evaluating the object before attempting to set its
3770 value.
3771 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
3772 so this offset adjustment is no longer necessary.
3773 (create_child): Don't set the error flag if the child is
3774 a CPLUS_FAKE_CHILD.
3775 (value_of_child): If value_fetch_lazy fails, return NULL
3776 so that callers will be notified that an error occurred.
3777 (c_value_of_variable): Delay check of variable's validity
3778 until later. We actually want all structs and unions to have
3779 the value "{...}".
3780 Do not return "???" for variables which could not be evaluated.
3781 This error condition must be returned to the caller so that it
3782 can get the error condition from gdb.
3783 (cplus_name_of_child): Adjust index for vptr before figuring
3784 out the name of the child.
3785 (cplus_value_of_child): If a child's (real) parent is not valid,
3786 don't even bother trying to give a value for it. Just return
3787 an error. Change all instances in this function.
3788 (cplus_type_of_child): If our parent is one of the "fake"
3789 parents, we need to get at the type of the real parent, and
3790 derive the child's true type using this information.
3791
3792 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3793
3794 From 2002-01-09 John Marshall <johnm@falch.net>:
3795 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
3796 sources.redhat.com, and tweak some related URLs which had
3797 suffered from linkrot.
3798
3799 2002-01-13 Andrew Cagney <ac131313@redhat.com>
3800
3801 From Jeff law:
3802 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
3803 structures passed in registers.
3804
3805 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
3806
3807 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
3808 white space which prevented compilation. Reported by DSK
3809 <dsk@student.unsw.edu.au>.
3810
3811 2002-01-11 Michael Snyder <msnyder@redhat.com>
3812
3813 * symfile.c (build_section_addr_info_from_section_tab):
3814 Use bfd access method instead of manipulating bfd directly.
3815 (syms_from_objfile): Ditto.
3816 (simple_overlay_update_1): Ditto.
3817 (simple_overlay_update): Ditto.
3818 (generic_load): Ditto.
3819 (overlay_unmapped_address): FIXME comment, bfd access methods.
3820 (sections_overlap): FIXME comment, bfd access methods.
3821 (pc_in_mapped_range): FIXME comment, bfd access methods.
3822 (pc_in_unmapped_range): FIXME comment, bfd access methods.
3823 (section_is_mapped): FIXME comment, bfd access methods.
3824 (section_is_overlay): FIXME comment, bfd access methods.
3825
3826 * symfile.c (generic_load): Whitespace and long line cleanups.
3827 Remove duplicate variable, change several local variables to
3828 more appropriate data types.
3829 (print_transfer_performance): Use %lu instead of %ld for ulongs.
3830
3831 2002-01-12 Andrew Cagney <ac131313@redhat.com>
3832
3833 From Peter Schauer:
3834 * language.c (longest_local_hex_string_custom): Use phex_nz to
3835 convert NUM to a hex string.
3836
3837 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
3838
3839 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
3840 the function.
3841 Update Copyright year.
3842
3843 2002-01-12 Andrew Cagney <ac131313@redhat.com>
3844
3845 * language.c (longest_raw_hex_string): Delete unused function.
3846
3847 2002-01-11 Petr Sorfa <petrs@caldera.com>
3848
3849 * MAINTAINERS (write-after-approval): Add myself.
3850 * dwarf2read.c (read_tag_string_type): Handling of
3851 DW_AT_byte_size.
3852 (read_tag_string_type): FORTRAN fix to prevent propagation of
3853 first string size.
3854 (set_cu_language): Handling of DW_LANG_Fortran95
3855
3856 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
3857
3858 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
3859 GETPID(inferior_ptid).
3860 (store_inferior_registers): Likewise.
3861
3862 2002-01-10 Jason Merrill <jason@redhat.com>
3863
3864 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
3865 Fix DW_OP_minus.
3866
3867 2002-01-10 Andrew Cagney <ac131313@redhat.com>
3868
3869 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
3870 and bfd/elf32-sh-nbsd.c.
3871
3872 2002-01-10 Michael Snyder <msnyder@redhat.com>
3873
3874 * NEWS: Mention --pid and corefile/proc-id behavior change.
3875
3876 * Makefile.in: Add rules for gcore.o and linux-proc.o.
3877 * gcore.c: Include cli/cli-decode.h instead of command.h.
3878
3879 * main.c (captured_main): Add new command line option "--pid".
3880 If the second command line argument (following the symbol-file)
3881 begins with a digit, try to attach to it before trying to open
3882 it as a corefile.
3883 (print_gdb_help): Document the "--pid" argument.
3884
3885 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
3886
3887 * completer.c (command_completer): New function.
3888
3889 * completer.h <command_completer>: Add prototype.
3890
3891 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
3892 completer for the "help" command.
3893
3894 2002-01-09 Jason Merrill <jason@redhat.com>
3895
3896 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
3897
3898 2002-01-09 Michael Snyder <msnyder@redhat.com>
3899
3900 * i386-linux-nat.c (fill_fpxregset): Make global.
3901 (store_fpxregset): Ditto.
3902
3903 * gregset.h (gdb_fpxregset_t): Define.
3904 (supply_fpxregset): Prototype.
3905 (fill_fpxregset): Prototype.
3906
3907 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
3908
3909 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
3910
3911 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
3912 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
3913 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
3914
3915 2002-01-09 Andrew Cagney <ac131313@redhat.com>
3916
3917 * MAINTAINERS: Update target maintainer rules so that any
3918 Maintainer can approve a tested patch for a maintenance-only
3919 target.
3920
3921 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
3922
3923 * MAINTAINERS (write-after-approval): Add myself.
3924
3925 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
3926 IN_SIGTRAMP.
3927
3928 2002-01-08 Michael Snyder <msnyder@redhat.com>
3929
3930 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
3931 real name of the executable, rather than the /proc name.
3932
3933 2002-01-03 Michael Snyder <msnyder@redhat.com>
3934
3935 Implement a "generate-core-file" command in gdb, save target state.
3936 * gcore.c: New file. Implement new command 'generate-core-file'.
3937 Save a corefile image of the current state of the inferior.
3938 * linux-proc.c: Add linux-specific code for saving corefiles.
3939 * target.h (struct target_ops): Add new target vectors for saving
3940 corefiles; to_find_memory_regions and to_make_corefile_notes.
3941 (target_find_memory_regions): New macro.
3942 (target_make_corefile_notes): New macro.
3943 * target.c (update_current_target): Inherit new target methods.
3944 (dummy_find_memory_regions): New place-holder method.
3945 (dummy_make_corefile_notes): New place-holder method.
3946 (init_dummy_target): Initialize new dummy target vectors.
3947 * exec.c (exec_set_find_memory_regions): New function.
3948 Allow the exec_ops vector for memory regions to be taken over.
3949 (exec_make_note_section): New function, target vector method.
3950 * defs.h (exec_set_find_memory_regions): Export prototype.
3951 * procfs.c (proc_find_memory_regions): New function, corefile method.
3952 (procfs_make_note_section): New function, corefile method.
3953 (init_procfs_ops): Set new target vector pointers.
3954 (find_memory_regions_callback): New function.
3955 (procfs_do_thread_registers): New function.
3956 (procfs_corefile_thread_callback): New function.
3957 * sol-thread.c (sol_find_memory_regions): New function.
3958 (sol_make_note_section): New function.
3959 (init_sol_thread_ops): Initialize new target vectors.
3960 * inftarg.c (inftarg_set_find_memory_regions): New function.
3961 Allow to_find_memory_regions vector to be taken over.
3962 (inftarg_set_make_corefile_notes): New function.
3963 Allow to_make_corefile_notes vector to be taken over.
3964 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
3965 interface layer if not target_has_execution (may be a corefile).
3966 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
3967 * config/sparc/sun4sol2.mh: Ditto.
3968 * config/alpha/alpha-linux.mh: Ditto.
3969 * config/arm/linux.mh: Ditto.
3970 * config/i386/x86-64linux.mh: Ditto.
3971 * config/ia64/linux.mh: Ditto.
3972 * config/m68k/linux.mh: Ditto.
3973 * config/mips/linux.mh: Ditto.
3974 * config/powerpc/linux.mh: Ditto.
3975 * config/sparc/linux.mh: Ditto.
3976
3977 2002-01-07 Michael Snyder <msnyder@redhat.com>
3978
3979 * arm-linux-nat.c: Remove references to regcache.c internal data
3980 (registers[] and register_valid[]).
3981
3982 2002-01-07 Michael Snyder <msnyder@redhat.com>
3983
3984 * linux-proc.c: New file. Implement child_pid_to_exec_file,
3985 so that attaching to a pid will automatically read the process's
3986 symbol file and shlibs.
3987 * Makefile.in: Add rule for linux-proc.o.
3988 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
3989 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
3990 * config/arm/linux.mh: Ditto.
3991 * config/i386/linux.mh: Ditto.
3992 * config/i386/x86-64linux.mh: Ditto.
3993 * config/ia64/linux.mh: Ditto.
3994 * config/m68k/linux.mh: Ditto.
3995 * config/mips/linux.mh: Ditto.
3996 * config/powerpc/linux.mh: Ditto.
3997 * config/sparc/linux.mh: Ditto.
3998
3999 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4000
4001 * win32-nat.c: Add i386-tdep.h dependency.
4002
4003 2002-01-07 Michael Snyder <msnyder@redhat.com>
4004
4005 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4006 instead of bfd_get_arch_size. Don't bail out just because
4007 there's no exec_bfd.
4008
4009 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4010 * p-valprint.c (pascal_object_print_value): Ditto.
4011 * somread.c (som_symtab_read): Ditto.
4012 * symfile.c (simple_free_overlay_region_table): Ditto.
4013 * valops.c (value_assign): Ditto.
4014
4015 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4016 use tilde_expand and strerror for opening save-tracepoints file.
4017
4018 * thread-db.c (thread_db_new_objfile): Indendation fix.
4019
4020 * infptrace.c (GDB_MAX_ALLOCA): New define.
4021 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
4022 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
4023 can be overridden with whatever value is appropriate to the host).
4024 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4025 alloca to allocate potentially large buffer.
4026 * rs6000-nat.c (child_xfer_memory): Ditto.
4027 * symm-nat.c (child_xfer_memory): Ditto.
4028 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4029
4030 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4031
4032 From Nick Clifton <nickc@redhat.com>
4033 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4034
4035 2002-01-07 Michael Snyder <msnyder@redhat.com>
4036
4037 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
4038 Don't use exec_bfd if it's NULL.
4039
4040 2002-01-06 Mark Kettenis <kettenis@gnu.org>
4041
4042 * valops.c (value_arg_coerce): Fix formatting.
4043
4044 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4045
4046 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4047 * gnu-nat.c: Ditto.
4048
4049 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4050
4051 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4052 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4053 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4054 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4055 z8k-coff have not been multi-arched. Update z8k-coff build
4056 status.
4057
4058 2002-01-06 Andrew Cagney <ac131313@redhat.com>
4059
4060 * MAINTAINERS: Mark a29k target as obsolete.
4061 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4062 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4063 comments.
4064 * NEWS: Note that a29k targets are obsolete.
4065 * a29k-tdep.c: Mark as obsolete.
4066 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4067 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4068 a29k-*-vxworks* targets as obsolete.
4069 * remote-adapt.c: Obsolete.
4070 * remote-eb.c: Obsolete.
4071 * remote-mm.c: Obsolete.
4072 * remote-udi.c: Obsolete.
4073 * config/a29k/a29k-udi.mt: Obsolete.
4074 * config/a29k/a29k.mt: Obsolete.
4075 * config/a29k/tm-a29k.h: Obsolete.
4076 * config/a29k/tm-vx29k.h: Obsolete.
4077 * config/a29k/vx29k.mt: Obsolete.
4078
4079 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4080
4081 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4082 with BFD_ENDIAN_BIG.
4083
4084 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4085
4086 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4087 * configure, config.in: Re-generate.
4088 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4089 * defs.h: Do not include <endian.h>.
4090
4091 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4092
4093 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4094 * config.in: Regenerate.
4095 * configure.in: Update copyright years.
4096 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4097 * configure: Regenerate.
4098 * i386bsd-nat.c: Update copyright years.
4099 (fill_gregset): Use regcache_collect.
4100 (fetch_inferior_registers): Only fetch integer registers
4101 if requested to do so. Add support for XMM registers
4102 using PT_GETXMMREGS.
4103 (store_inferior_registers): Only store integer registers
4104 if requested to do so. Add support for XMM registers
4105 using PT_SETXMMREGS.
4106 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4107 (store_inferior_registers): Remove.
4108 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4109 (fetch_elfcore_registers): New function.
4110 (i386nbsd_elfcore_fns): New.
4111 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4112 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4113 i386bsd-nat.o.
4114 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4115 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4116 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4117 * config/i386/tm-nbsd.h: Update copyright years.
4118 (HAVE_SSE_REGS): Define.
4119 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4120 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4121 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4122 (SIGCONTEXT_PC_OFFSET): Remove.
4123 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4124
4125 2002-01-05 Andrew Cagney <ac131313@redhat.com>
4126
4127 * configure.tgt: Remove powerpc-*-macos* target.
4128 * config/m68k/xm-mpw.h: Delete file.
4129 * config/xm-mpw.h: Delete file.
4130 * ser-mac.c: Delete file.
4131 * mpw-make.sed: Delete file.
4132 * mpw-config.in: Delete file.
4133 * mac-xdep.c: Delete file.
4134 * mac-gdb.r: Delete file.
4135 * mac-defs.h: Delete file.
4136 * mac-nat.c: Delete file.
4137 * config/powerpc/macos.mh: Delete file.
4138 * config/powerpc/macos.mt: Delete file.
4139 * config/powerpc/nm-macos.h: Delete file.
4140 * config/powerpc/tm-macos.h: Delete file.
4141 * source.c (openp, open_source_file): Remove obsolete code.
4142 * top.c (gdb_readline): Ditto.
4143 * utils.c (query): Ditto.
4144 * event-top.c (display_gdb_prompt): Ditto.
4145 * Makefile.in (ser-mac.o): Delete obsolete target.
4146 * NEWS: Update.
4147
4148 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4149
4150 * defs.h (BIG_ENDIAN): Delete macro definition.
4151 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4152 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4153 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4154 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4155 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4156 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4157 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4158 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4159 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4160 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4161 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4162 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4163 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4164 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4165 * gdbarch.c: Re-generate.
4166
4167 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4168
4169 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4170 for core files.
4171
4172 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4173
4174 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4175
4176 2002-01-04 Andrew Cagney <ac131313@redhat.com>
4177
4178 * value.h (value_ptr): Delete typedef.
4179
4180 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4181
4182 * i386nbsd-nat.c: Update copyright years.
4183 Include i386-tdep.h.
4184
4185 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
4186
4187 * stabsread.c: Update copyright years.
4188
4189 From Debashis Mahata <debashis.mahata@wipro.com>:
4190 (read_struct_fields): Deal with Sun C compiler erroneous stab
4191 output for structs and unions.
4192 Fix PR gdb/269.
4193
4194 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4195
4196 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4197 prototype.
4198
4199 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4200
4201 * cp-abi.c: Fix whitespace.
4202 (baseclass_offset): New wrapper function.
4203 * cp-abi.h (baseclass_offset): Add prototype.
4204 (struct cp_abi_ops): Add baseclass_offset pointer.
4205
4206 * valops.c (vb_match): Move to...
4207 * gnu-v2-abi.c (vb_match): here.
4208 * valops.c (baseclass_offset): Move to...
4209 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4210
4211 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4212
4213 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4214 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4215 * hpacc-abi.c (init_hpacc_ops): Likewise.
4216
4217 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
4218
4219 * valops.c (find_overload_match): Accept obj as a
4220 reference parameter. Update it before returning.
4221 * value.h (find_overload_match): Update prototype.
4222 * eval.c (evaluate_subexp_standard): Pass object to
4223 find_overload_match by reference.
4224
4225 2002-01-03 Andrew Cagney <ac131313@redhat.com>
4226
4227 * valarith.c: Replace value_ptr with struct value pointer. Remove
4228 register attribute from value declarations.
4229 * valops.c: Ditto.
4230 * value.h: Ditto.
4231 * scm-lang.c (scm_lookup_name): Ditto.
4232
4233 2002-01-03 Michael Snyder <msnyder@redhat.com>
4234
4235 Abstract the functionality of iterating over mapped memory
4236 regions into a general purpose iterator function.
4237 * procfs.c (iterate_over_mappings): New function, general purpose
4238 iterator for memory sections.
4239 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4240 (solib_mappings_callback): New function, callback for above.
4241 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4242 (info_mappings_callback): New function, callback for above.
4243
4244 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4245
4246 2002-01-01 Mark Kettenis <kettenis@gnu.org>
4247
4248 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4249 * i386-tdep.c: Include "elf-bfd.h".
4250 (process_note_abi_tag_sections): New function.
4251 (i386_gdbarch_init): Add code to recognize various OS/ABI
4252 combinations.
4253
4254 * maint.c (_initialize_maint_cmds): Add missing \ in
4255 string-literal.
4256
4257 For older changes see ChangeLog-2001
4258 \f
4259 Local Variables:
4260 mode: change-log
4261 left-margin: 8
4262 fill-column: 74
4263 version-control: never
4264 End: