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