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