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