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