2002-04-25 Elena Zannoni <ezannoni@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
95b80706
JT
12002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
2
3 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
4 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
5 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
6 to 0.
7 * config/alpha/tm-alpha.h: Remove forward decls of struct type
8 and struct value.
9 (FUNCTION_START_OFFSET): Remove.
10 (BREAKPOINT): Ditto.
11
e90cc612
JT
122002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
13
14 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
15 * NEWS: Ditto.
16
6c72f9f9
JT
172002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
18
19 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
20 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
21 alpha_linux_pc_in_sigtramp.
22 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
23 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
24 alpha_osf1_pc_in_sigtramp.
25 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
26 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
27 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
28 alphafbsd_pc_in_sigtramp.
29 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
30 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
31 alphanbsd_pc_in_sigtramp.
32 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
33 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
34
5e4f3379
JT
352002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
36
37 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
38
da8ca43d
JT
392002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
40
41 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
42 alphanbsd-tdep.c.
43 (alphanbsd-nat.o): New dependency list.
44 (alphanbsd-tdep.o): Ditto.
45 * NEWS: Note new native NetBSD/alpha configuration.
46 * alphanbsd-nat.c: New file.
47 * alphanbsd-tdep.c: Ditto.
48 * configure.host (alpha*-*-netbsd*): New host.
49 * configure.tgt (alpha*-*-netbsd*): New target.
50 * config/alpha/nbsd.mh: New file.
51 * config/alpha/nbsd.mt: Ditto.
52 * config/alpha/nm-nbsd.h: Ditto.
53 * config/alpha/tm-nbsd.h: Ditto.
54
36a6271d
JT
552002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
56
57 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
58 (alpha-osf1-tdep.o): New dependency list.
59 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
60 and skip_sigtramp_frame members.
61 * alpha-linux-tdep.c: Include gdbcore.h.
62 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
63 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
64 * alpha-osf1-tdep.c: New file.
65 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
66 alpha-osf1-dep.c.
67 (alpha_frame_past_sigtramp_frame): New function.
68 (alpha_dynamic_sigtramp_offset): Ditto.
69 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
70 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
71 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
72 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
73 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
74 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
75 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
76 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
77 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
78 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
79 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
80 to find_solib_trampoline_target.
81 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
82 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
83 (SKIP_TRAMPOLINE_CODE): Remove.
84 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
85 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
86 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
87 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
88 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
89 (PROC_SIGTRAMP_MAGIC): Ditto.
90 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
91 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
92 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
93 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
94 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
95
2f4bc57b
JT
962002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
97
98 * NEWS: Note that Alpha targets are now multi-arch.
99
665132f9
MS
1002002-04-24 Michael Snyder <msnyder@redhat.com>
101
102 * parser-defs.h (prev_lexptr): New external variable.
103 * parse.c (parse_exp_1): Set prev_lexptr to null before
104 calling the language-specific parser.
105 * c-exp.y (yylex): Set prev_lexptr to start of current token.
106 (yyerror): Use prev_lexptr in error reporting.
107
32872fa7
DJ
1082002-04-24 Daniel Jacobowitz <drow@mvista.com>
109
110 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
111 * gregset.h: If FILL_FPXREGSET is defined, provide
112 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
113 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
114 is defined, call fill_fpxregset.
115
57e76fac
MS
1162002-04-24 Roland McGrath <roland@frob.com>
117
118 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
119 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
120 (supply_gregset, supply_fpregset): New functions.
121
122 * gnu-nat.c (gnu_find_memory_regions): New function.
123 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
124 (gnu_xfer_memory): Add a cast.
125
f43845b3
MS
1262002-04-24 Michael Snyder <msnyder@redhat.com>
127
128 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
129 loop. Add handling for "str lr, [sp, #-4]!" and for saves
130 of argument regs ("str r(0123), [r11, #-nn"]).
131 (arm_skip_prologue): Better handling for frameless functions.
132 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
133 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
134
a0abec03
AC
135Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
136
137 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
138 NUM_PSEUDO_REGS can be used.
139
d7bd68ca
AC
1402002-04-24 Andrew Cagney <ac131313@redhat.com>
141
142 * arch-utils.h: Update copyright.
143
144 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
145 * gdbarch.h, gdbarch.c: Re-generate.
146
147 * inferior.h (IN_SIGTRAMP): Delete definition.
148 * arch-utils.c (legacy_pc_in_sigtramp): New function.
149 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
150
151 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
152 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
153 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
154 (find_proc_framesize): Ditto.
155 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
156 (alpha_init_extra_frame_info): Ditto.
157 * infrun.c (handle_inferior_event): Ditto.
158 (handle_inferior_event): Ditto.
159 (check_sigtramp2): Ditto.
160 * blockframe.c (create_new_frame): Ditto.
161 (get_prev_frame): Ditto.
162 * ppc-linux-tdep.c: Update comments.
163 * i386-linux-tdep.c: Update comments.
164 * breakpoint.c (bpstat_what): Update comment.
165
d06f167a
ML
1662002-04-24 Michal Ludvig <mludvig@suse.cz>
167
168 * gdbserver/linux-low.c (regsets_fetch_inferior_registers),
169 (regsets_store_inferior_registers): Removed cast to int from
170 ptrace() calls.
171 * gdbserver/regcache.h: Added declaration of struct inferior_info.
172
4867e41e
DM
1732002-04-24 David S. Miller <davem@redhat.com>
174
21d83aa5
DM
175 * i960-tdep.c (register_in_window_p): New function.
176 (i960_find_saved_register): Use it instead of
177 REGISTER_IN_WINDOW_P.
178 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
179
4867e41e
DM
180 * symtab.h (find_stab_function_addr): Kill extern.
181 * minsyms.c (find_stab_function_addr): Remove from here...
182 * dbxread.c: ... to here, and mark it static.
183
69cdf6a2
DM
1842002-04-20 David S. Miller <davem@redhat.com>
185
186 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
187 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
188
5a595886
DM
1892002-04-21 David S. Miller <davem@redhat.com>
190
191 * remote-vxsparc.c (vx_read_register): Fix typo, we want
192 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
193 (vx_write_register): Likewise.
194
1da1a192
JB
1952002-04-23 J. Brobecker <brobecker@gnat.com>
196
197 * source.c (is_regular_file): New function.
198 (openp): Check wether file to open is a regular file
199 to avoid opening directories.
200
baa6f10b
JT
2012002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
202
203 * findvar.c (extract_signed_integer): Cast printf argument
204 to suppress format warning.
205 (extract_unsigned_integer): Likewise.
206 * infcmd.c (registers_info): Likewise.
207 * top.c (get_prompt_1): Likewise.
208 * valops.c (value_assign): Likewise.
209 * valprint.c (print_decimal): Likewise.
210
b2c4da81
L
2112002-04-22 H.J. Lu (hjl@gnu.org)
212
213 * c-exp.y (typebase): Support
214
215 [long|long long|short] [signed|unsigned] [int|]
216
217 and
218
219 signed [long|long long|short] int
220
f267bd6a
JT
2212002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
222
223 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
224 and vax-tdep.h.
225 * vax-tdep.h: New file.
226 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
227 Make several routines static.
228 (vax_get_saved_register): New function.
229 (vax_gdbarch_init): New function.
230 (_initialize_vax_tdep): Register vax_gdbarch_init.
231 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
232 Remove macros now under the control of gdbarch.
233
da3c6d4a
MS
2342002-04-22 Michael Snyder <msnyder@redhat.com>
235
11d3b27d
MS
236 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
237 Some whitespace and coding standards tweaks.
da3c6d4a 238
a33f7558
JT
2392002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
240
241 * vax-tdep.c: Include regcache.h.
242 (vax_call_dummy_words): New.
243 (sizeof_vax_call_dummy_words): New.
244 (vax_fix_call_dummy): New function.
245 (vax_saved_pc_after_call): Ditto.
246 * config/vax/tm-vax.h: Don't include regcache.h.
247 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
248 (CALL_DUMMY): Remove.
249 (CALL_DUMMY_WORDS): Define.
250 (SIZEOF_CALL_DUMMY_WORDS): Define.
251 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
252
47a73475
MS
2532002-04-18 Michael Snyder <msnyder@redhat.com>
254
255 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
256
52efde73
JT
2572002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
258
259 * vax-tdep.c (vax_frame_chain): New function.
260 (vax_push_dummy_frame): Ditto.
261 (vax_pop_frame): Ditto.
262 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
263 (FRAMELESS_FUNCTION_INVOCATION): Use
264 generic_frameless_function_invocation_not.
265 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
266 (POP_FRAME): Use vax_pop_frame.
267
ea74468c
JT
2682002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
269
270 * vax-tdep.c (vax_store_struct_return): New function.
271 (vax_extract_return_value): Ditto.
272 (vax_store_return_value): Ditto.
273 (vax_extract_struct_value_address): Ditto.
274 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
275 vax_store_struct_return.
276 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
277 (STORE_RETURN_VALUE): Use vax_store_return_value.
278 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
279
5516aa92
JT
2802002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
281
282 * vax-tdep.c (vax_frame_saved_pc): New function.
283 (vax_frame_args_address_correct): Ditto.
284 (vax_frame_args_address): Ditto.
285 (vax_frame_locals_address): Ditto.
286 (vax_frame_num_args): Move code to be in proximity to
287 other frame-related functions.
288 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
289 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
290 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
291 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
292 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
293
36af0b35
L
2942002-04-22 H.J. Lu (hjl@gnu.org)
295
296 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
297 includedir.
298
ab62c900
JT
2992002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
300
301 * vax-tdep.c (vax_frame_init_saved_regs): New function.
302 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
303 (FRAME_INIT_SAVED_REGS): New macro.
304
7232b100
JT
3052002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
306
307 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
308
b70d2aee
JT
3092002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
310
311 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
312 where needed.
313 (fetch_osf_core_registers): Likewise.
314 (supply_gregset): Likewise.
315
a0e8a2d1
JB
3162002-04-22 J. Brobecker <brobecker@gnat.com>
317
318 * symfile.h (get_section_index): Define.
319 * symfile.c (get_section_index): New function.
320 * mdebugread.c (SC_IS_SBSS): New macro.
321 (SC_IS_BSS): Return true for the scBss storage class only, as
322 the scSBss storage class refers to the .sbss section.
323 (parse_partial_symbols): Discard the symbols which associated
324 section does not exist.
325 Make sure to use the .sbss section index for symbols which
326 storage class is scBss, rather than using the .bss section index.
327
51eb8b08
JT
3282002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
329
330 * vax-tdep.c: Update copyright years.
331 (vax_register_name): New function.
332 (vax_register_byte): Ditto.
333 (vax_register_raw_size): Ditto.
334 (vax_register_virtual_size): Ditto.
335 (vax_register_virtual_type): Ditto.
336 * config/vax/tm-vax.h: Update copyright years.
337 (REGISTER_NAMES): Remove.
338 (REGISTER_NAME): Define.
339 (REGISTER_BYTE): Use vax_register_byte.
340 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
341 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
342 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
343
6cc1c0a8
AC
3442002-04-21 Andrew Cagney <ac131313@redhat.com>
345
346 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
347 declaration
348 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
349
9319a2fe
DM
3502002-04-21 David S. Miller <davem@redhat.com>
351
352 * arch-utils.c (generic_prologue_frameless_p): Kill
353 SKIP_PROLOGUE_FRAMELESS_P code.
354 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
355 references.
356 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
357 * arc-tdep.c (arc_prologue_frameless_p): Implement.
358 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
359 references.
360 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
361 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
362 (sparc_gdbarch_init): Pass it to
363 set_gdbarch_prologue_frameless_p.
a0e8a2d1 364
e9ed6d01
JT
3652002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
366
367 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
368 (alphabsd-nat.o): New dependency list.
369
36012033
JT
3702002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
371
372 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
373 alphafbsd-tdep.c.
374 (alpha-linux-tdep.o): New dependency list.
375 (alphafbsd-tdep.o): Likewise.
376
3379287a
JT
3772002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
378
379 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
380 to here...
381 * alpha-tdep.c: ...from here.
382 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
383
4bcbd6cb
JT
3842002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
385
386 * config/alpha/tm-alpha.h: Move alpha_software_single_step
387 prototype from here...
388 * alpha-tdep.h: ...to here.
389
b31da25e
AC
3902002-04-21 Andrew Cagney <ac131313@redhat.com>
391
392 * frame.h (selected_frame_level): Document as deprecated.
393 (frame_relative_level): Declare.
394 * stack.c (frame_relative_level): New function.
395 (selected_frame_level): Document as deprecated.
396 (select_frame): Do not set the selected_frame_level.
397
398 * stack.c (frame_info, record_selected_frame): Update.
399 (frame_command, current_frame_command): Update.
400 (up_silently_base, up_command, down_silently_base): Update.
401 (down_command): Update.
402 * inflow.c (kill_command): Update.
403 * tracepoint.c (finish_tfind_command): Update.
404 * corelow.c (core_open): Update.
405 * thread.c (info_threads_command): Update.
406 (do_captured_thread_select): Update.
407 * infcmd.c (finish_command): Update.
408 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
409
9c1d6fe5
JT
4102002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
411
412 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
413
ab89facf
AC
4142002-04-21 Andrew Cagney <ac131313@redhat.com>
415
416 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
417 type const.
418
82a4efa1
JT
4192002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
420
421 * alphafbsd-tdep.c: Update copyright years. Include
422 alpha-tdep.h.
423 (alphafbsd_use_struct_convention): Make static.
424 (alphafbsd_init_abi): New function.
425 (_initialize_alphafbsd_tdep): New function.
426 * config/alpha/tm-fbsd.h: Update copyright years.
427 (USE_STRUCT_CONVENTION): Remove.
428
44dffaac
JT
4292002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
430
431 * alpha-tdep.c (alpha_abi_handler): New structure to describe
432 an Alpha ABI variant.
433 (alpha_abi_handler_list): Declare.
434 (alpha_gdbarch_register_os_abi): New function.
435 (alpha_gdbarch_init): Give registered ABI variant handlers a
436 chance to tweak the gdbarch once we have set up defaults.
437 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
438
65585be4
JT
4392002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
440
441 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
442 to standard_coerce_float_to_double.
443 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
444
d9b023cc
JT
4452002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
446
447 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
448 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
449 from gdbarch_tdep rather than a constant.
450 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
451 the default text address for all Alpha Unix ABIs.
452 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
453 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
454
dc129d82
JT
4552002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
456
457 * alpha-tdep.h: New file. Includes several Alpha target constants
458 taken from...
459 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
460 let gdbarch deal with.
461 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
462 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
463 to dependency list.
464 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
465 Alpha target register names.
466 * alphabsd-nat.c: Likewise.
467 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
468 Alpha target register names. Make serveral routines static.
469 (alpha_get_saved_register): New function.
470 (alpha_abi_names): New.
471 (process_note_abi_tag_sections): New function.
472 (get_elfosabi): New function.
473 (alpha_gdbarch_init): New function.
474 (alpha_dump_tdep): New function.
475 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
476
d49d1e0a
AC
4772002-04-21 Andrew Cagney <ac131313@redhat.com>
478
479 * frame.c (find_saved_register): Delete #ifdef
480 HAVE_REGISTER_WINDOWS code.
481 * config/sparc/tm-sparc.h: Update comments.
482 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
483
92e8c9ed
AC
4842002-04-21 Andrew Cagney <ac131313@redhat.com>
485
486 * i960-tdep.c (i960_find_saved_register): New function.
487 (i960_get_saved_register): New function.
488 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
489 (i960_get_saved_register): Declare.
490 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
491
e1925118
DM
4922002-04-20 David S. Miller <davem@redhat.com>
493
494 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
495
29673b29
AC
4962002-04-20 Andrew Cagney <ac131313@redhat.com>
497
498 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
499 instead of NUM_PSEUDO_REGS.
500
6c86dcd5
DM
5012002-04-20 David S. Miller <davem@redhat.com>
502
503 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
504 GDB_MULTI_ARCH_PARTIAL
505 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
506 define, let tm-sp64.h do it.
507
aa40ec90
JT
5082002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
509
510 * frame.c (find_saved_register): Avoid a NULL pointer
511 dereference and actually walk the frame list.
512
0f79675b
AC
5132002-04-20 Andrew Cagney <ac131313@redhat.com>
514
515 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
516 sorted in most most-recent-used order. Document.
517 * gdbarch.h, gdbarch.c: Regenerate.
518
c04a1aa8
DJ
5192002-04-20 Daniel Jacobowitz <drow@mvista.com>
520
521 * gdbserver/inferiors.c (struct inferior_info): Add regcache_data.
522 (add_inferior): Call create_register_cache.
523 (clear_inferiors): Call free_register_cache.
524 (inferior_regcache_data, set_inferior_regcache_data): New functions.
525 * gdbserver/regcache.c (struct inferior_regcache_data): New.
526 (registers): Remove.
527 (get_regcache): New function.
528 (create_register_cache, free_register_cache): New functions.
529 (set_register_cache): Don't initialize the register cache here.
530 (registers_to_string, registers_from_string, register_data): Call
531 get_regcache.
532 * gdbserver/regcache.h: Add prototypes.
533 * gdbserver/server.h: Likewise.
534
611cb4a5
DJ
5352002-04-20 Daniel Jacobowitz <drow@mvista.com>
536
537 * gdbserver/mem-break.c: New file.
538 * gdbserver/mem-break.h: New file.
539 * gdbserver/Makefile.in: Add mem-break.o rule; update server.h
540 dependencies.
541 * gdbserver/inferiors.c (struct inferior_info): Add target_data
542 member.
543 (clear_inferiors): Free target_data member if set.
544 (inferior_target_data, set_inferior_target_data): New functions.
545 * gdbserver/linux-i386-low.c (i386_breakpoint, i386_breakpoint_len)
546 (i386_stop_pc, i386_set_pc): New. Add to the_low_target.
547 * gdbserver/linux-low.c (linux_bp_reinsert): New variable.
548 (struct inferior_linux_data): New.
549 (linux_create_inferior): Use set_inferior_target_data.
550 (linux_attach): Likewise. Call add_inferior.
551 (linux_wait_for_one_inferior): New function.
552 (linux_wait): Call it.
553 (linux_write_memory): Add const.
554 (initialize_low): Call set_breakpoint_data.
555 * gdbserver/linux-low.h (struct linux_target_ops): Add breakpoint
556 handling members.
557 * gdbserver/server.c (attach_inferior): Remove extra add_inferior
558 call.
559 * gdbserver/server.h: Include mem-break.h. Update inferior.c
560 prototypes.
561 * gdbserver/target.c (read_inferior_memory)
562 (write_inferior_memory): New functions.
563 * gdbserver/target.h (read_inferior_memory)
564 (write_inferior_memory): Change macros to prototypes.
565 (struct target_ops): Update comments. Add const to write_memory
566 definition.
567
f91305dd 5682002-04-19 Andrew Cagney <ac131313@redhat.com>
bf75c8c1
AC
569
570 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
571 instead of ->prev.
572 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
573 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
574 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
575 instead of ->prev.
576
73d322b1
EZ
5772002-04-19 Elena Zannoni <ezannoni@redhat.com>
578
579 Fix PR gdb/471.
580 * gdbtypes.c (init_simd_type): Rewrite using new functions.
581 (build_builtin_type_vec128): Ditto.
582 (append_composite_type_field): Fix calculation of type length in
583 union case.
584
ccd9a834
EZ
5852002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
586
587 * config/djgpp/README: Update.
588
589 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
590 compiler warnings.
591
a57f9e49
JT
5922002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
593
594 * alpha-tdep.c (setup_arbitrary_frame): Rename...
595 (alpha_setup_arbitrary_frame): ...to this.
596 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
597 for alpha_setup_arbitrary_frame.
598
f4f9705a
AC
5992002-04-18 Andrew Cagney <cagney@redhat.com>
600
601 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
602 * gdbarch.h, gdbarch.c: Regenerate.
603
604 * defs.h (breakpoint_from_pc_fn): Delete type definition.
605 * target.h (memory_breakpoint_from_pc): Update declaration.
606 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
607
608 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
609 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
610 * mem-break.c (memory_breakpoint_from_pc): Ditto.
611 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
612 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
613 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
614 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
615 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
616 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
617 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
618 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
619 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
620
621 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
622 const pointer.
623 * monitor.c (monitor_insert_breakpoint): Ditto.
624 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
625
626 * config/mcore/tm-mcore.h: Update copyright.
627 * mem-break.c: Ditto.
628 * xstormy16-tdep.c: Ditto.
629
29f319b8
PM
6302002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
631
632 * p-exp.y: Add precedence rule for '^' token.
633 This removes the shift/reduce conflicts.
634 Remove the comment concerning these shift/reduce conflicts.
635
ebeac11a
EZ
6362002-04-18 Elena Zannoni <ezannoni@redhat.com>
637
638 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
639 (registers_powerpc_nofp): New register set for processors
640 without floating point unit.
641
27c31547
DM
6422002-04-18 David S. Miller <davem@redhat.com>
643
644 * MAINTAINERS: Add myself to write-after-approval.
645
47a73475
MS
6462002-04-17 Michael Snyder <msnyder@redhat.com>
647
648 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
649
953836b2
AC
6502002-04-17 Andrew Cagney <ac131313@redhat.com>
651
652 * rs6000-tdep.c (frame_initial_stack_address): Use
653 frame_register_read to read the alloca_reg.
654
8b0d4340
AC
6552002-04-17 Andrew Cagney <ac131313@redhat.com>
656
657 * frame.c (find_saved_register): Find saved registers in the next
658 not prev frame.
659 Fix PR gdb/365.
660
d8864532
AC
6612002-04-17 Andrew Cagney <ac131313@redhat.com>
662
663 * gdbarch.sh (LANG): Set to ``c''.
664
36cc83a3
AC
6652002-04-15 Andrew Cagney <ac131313@redhat.com>
666
667 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
668
2f4150cc 6692002-04-15 Andrew Cagney <ac131313@redhat.com>
2c7ef074
AC
670
671 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
672 Update copyright.
673
628703c6 674 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc
AC
675 Also fix PR gdb/391.
676
56157b4a
AC
6772002-04-14 Andrew Cagney <ac131313@redhat.com>
678
679 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
680 * aclocal.m4, configure: Re-generate.
681 Fix PR gdb/391.
682
6d1e3329
EZ
6832002-04-14 Elena Zannoni <ezannoni@redhat.com>
684
685 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
686 instead of tm_print_insn.
687
cb06fa07
EZ
6882002-04-14 Elena Zannoni <ezannoni@redhat.com>
689
690 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
691
f208ba17
AC
6922002-04-14 Andrew Cagney <ac131313@redhat.com>
693
694 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
695 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
696 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
697
20f01a46
DH
6982002-04-12 Don Howard <dhoward@redhat.com>
699
700 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
701 max_user_call_depth.
702 (init_cmd_lists): Initialize the new value;
703 * cli/cli-script.c (execute_user_command): Limit the call depth of
704 user defined commands. This avoids a core-dump when user commands
705 are infinitly recursive.
706
a88376a3
KB
7072002-04-12 Kevin Buettner <kevinb@redhat.com>
708
709 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
710 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
711 from tdep struct instead of DEFAULT_LR_SAVE.
712 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
713 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
714 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
715
f2172603
MS
7162002-04-12 Michael Snyder <msnyder@redhat.com>
717
694f61fb 718 * Remote.c: Spelling fix.
20fe79c8
MS
719 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
720 If no symbol found for "sbrk", try "_sbrk".
721 (make_output_phdrs): Use bfd_section_name.
722 (gcore_copy_callback): Use bfd_section_name.
62995fc4 723 * eval.c: Indentation fix-ups.
169a7369
MS
724 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
725 in case it gets applied to an address that is already
726 in the instruction space.
de74f71f
MS
727 * cli/cli-decode.c (help_list): Allow long lines to wrap.
728 * symfile.c: Fix indentation, long lines.
f2172603
MS
729 * source.c: White space fix-up.
730
cda5a58a
AC
7312002-04-12 Andrew Cagney <cagney@redhat.com>
732
733 * defs.h (read_relative_register_raw_bytes): Delete declaration.
734 * frame.c (frame_register_read): New function. Return non-zero on
735 success.
736 (read_relative_register_raw_bytes_for_frame): Delete.
737 (read_relative_register_raw_bytes): Delete.
738 * frame.h (frame_register_read): Declare.
739 * d30v-tdep.c: Update Copyright. Use frame_register_read.
740 * sh-tdep.c: Ditto.
741 * infcmd.c (do_registers_info): Ditto.
742 * hppa-tdep.c: Ditto.
743 * rs6000-tdep.c: Ditto.
744 * h8500-tdep.c: Ditto.
745 * mips-tdep.c: Ditto.
746 * h8300-tdep.c: Ditto.
747 * z8k-tdep.c: Ditto.
748
2ea5f656
KB
7492002-04-12 Kevin Buettner <kevinb@redhat.com>
750
751 From Jimi X <jimix@watson.ibm.com>:
752 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
753 64-bit SysV ABI.
754
27b15785
KB
7552002-04-12 Kevin Buettner <kevinb@redhat.com>
756
757 From Jimi X <jimix@watson.ibm.com>:
758 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
759 bfd info.
760
5d57ee30
KB
7612002-04-12 Kevin Buettner <kevinb@redhat.com>
762
763 From Jimi X <jimix@watson.ibm.com>:
764 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
765 register sets for these processor variants.
766
bc1e36ca
DJ
7672002-04-11 Daniel Jacobowitz <drow@mvista.com>
768
769 * gdbserver/linux-low.c (usr_store_inferior_registers): Support
770 registers which are allowed to fail to store.
771 * gdbserver/linux-low.h (linux_target_ops): Likewise.
772 * gdbserver/linux-ppc-low.c (ppc_regmap): Support FPSCR.
773 (ppc_cannot_store_register): FPSCR may not be storable.
774 * regformats/reg-ppc.dat: Support FPSCR.
775
e3f36dbd
KB
7762002-04-11 Kevin Buettner <kevinb@redhat.com>
777
778 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
779 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
780 Add fpscr as an invalid/unfetchable register.
781 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
782 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
783 (fill_fpregset): Add support for register fpscr.
784 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
785 (fill_gregset): Account for the fact that register ``mq'' might
786 not exist.
787 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
788 (registers_power): Add fpscr to register set at slot 71.
789 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
790 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
791
943c9c25
MS
7922002-04-11 Michael Snyder <msnyder@redhat.com>
793
794 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
795 * configure: Regenerate.
796 * config.in: Regenerate.
797 * acconfig.h: Add define for _SYSCALL32.
798 * core-sol2.c: Remove #define _SYSCALL32.
799 * solib-legacy.c: Remove #define _SYSCALL32.
800
d8c0a2e7
AC
8012002-04-10 Andrew Cagney <ac131313@redhat.com>
802
803 * stack.c (select_frame): Cleanup internal error message, do not
804 use %p.
805
7cc19214
AC
8062002-04-10 Andrew Cagney <ac131313@redhat.com>
807
808 * stack.c (select_frame): Check that selected_frame and the
809 specified level are as expected.
810 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
811 Update copyright.
812 * frame.h (struct frame_info): Add field `level'. Update
813 copyright.
814 Work-in-progress PR gdb/464.
815
67a2b77e
AC
8162002-04-10 Andrew Cagney <ac131313@redhat.com>
817
818 * maint.c (maint_print_section_info): Rename print_section_info.
819 (print_bfd_section_info, print_objfile_section_info): Update.
820 * inferior.h (struct gdbarch): Add opaque declaration.
821 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
822 * gdbarch.h: Regenerate.
823
8cfda98c
ML
8242002-04-10 Michal Ludvig <mludvig@suse.cz>
825
826 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
827 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
828 (kernel_u_size): Added.
829 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
830 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
831
ca439ad2
JI
8322002-04-04 Jim Ingham <jingham@apple.com>
833
834 * valarith.c (find_size_for_pointer_math): New function, either returns
835 the size for a pointer's target, returns 1 for void *, or errors for
836 incomplete types.
837 (value_add, value_sub): use find_size_for_pointer_math.
838
2f2893d9
DJ
8392002-04-09 Daniel Jacobowitz <drow@mvista.com>
840
841 * linux-low.c (linux_look_up_symbols): New hook.
842 (linux_target_ops): Add linux_look_up_symbols.
843 * remote-utils.c (decode_address): New function.
844 (look_up_one_symbol): New function.
845 * server.c (handle_query): Call target look_up_symbols hook.
846 * server.h (look_up_one_symbol): Add prototype.
847 * target.h (struct target_ops): Add look_up_symbols hook.
848
2ec06d2e
DJ
8492002-04-09 Daniel Jacobowitz <drow@mvista.com>
850
d64b8841
DJ
851 * gdbserver/server.h: Include <string.h> if HAVE_STRING_H.
852 * ChangeLog: Correct paths in last ChangeLog entry.
853
8542002-04-09 Daniel Jacobowitz <drow@mvista.com>
855
856 * gdbserver/linux-low.h: Remove obsolete prototypes.
2ec06d2e
DJ
857 (struct linux_target_ops): New.
858 (extern the_low_target): New.
d64b8841 859 * gdbserver/linux-low.c (num_regs, regmap): Remove declarations.
2ec06d2e
DJ
860 (register_addr): Use the_low_target explicitly.
861 (fetch_register): Likewise.
862 (usr_fetch_inferior_registers): Likewise.
863 (usr_store_inferior_registers): Likewise.
d64b8841 864 * gdbserver/linux-arm-low.c (num_regs): Remove.
2ec06d2e
DJ
865 (arm_num_regs): Define.
866 (arm_regmap): Renamed from regmap, made static.
867 (arm_cannot_fetch_register): Renamed from cannot_fetch_register,
868 made static.
869 (arm_cannot_store_register): Renamed from cannot_store_register,
870 made static.
871 (the_low_target): New.
d64b8841 872 * gdbserver/linux-i386-low.c (num_regs): Remove.
2ec06d2e
DJ
873 (i386_num_regs): Define.
874 (i386_regmap): Renamed from regmap, made static.
875 (i386_cannot_fetch_register): Renamed from cannot_fetch_register,
876 made static.
877 (i386_cannot_store_register): Renamed from cannot_store_register,
878 made static.
879 (the_low_target): New.
d64b8841 880 * gdbserver/linux-ia64-low.c (num_regs): Remove.
2ec06d2e
DJ
881 (ia64_num_regs): Define.
882 (ia64_regmap): Renamed from regmap, made static.
883 (ia64_cannot_fetch_register): Renamed from cannot_fetch_register,
884 made static.
885 (ia64_cannot_store_register): Renamed from cannot_store_register,
886 made static.
887 (the_low_target): New.
d64b8841 888 * gdbserver/linux-m68k-low.c (num_regs): Remove.
2ec06d2e
DJ
889 (m68k_num_regs): Define.
890 (m68k_regmap): Renamed from regmap, made static.
891 (m68k_cannot_fetch_register): Renamed from cannot_fetch_register,
892 made static.
893 (m68k_cannot_store_register): Renamed from cannot_store_register,
894 made static.
895 (the_low_target): New.
d64b8841 896 * gdbserver/linux-mips-low.c (num_regs): Remove.
2ec06d2e
DJ
897 (mips_num_regs): Define.
898 (mips_regmap): Renamed from regmap, made static.
899 (mips_cannot_fetch_register): Renamed from cannot_fetch_register,
900 made static.
901 (mips_cannot_store_register): Renamed from cannot_store_register,
902 made static.
903 (the_low_target): New.
d64b8841 904 * gdbserver/linux-ppc-low.c (num_regs): Remove.
2ec06d2e
DJ
905 (ppc_num_regs): Define.
906 (ppc_regmap): Renamed from regmap, made static.
907 (ppc_cannot_fetch_register): Renamed from cannot_fetch_register,
908 made static.
909 (ppc_cannot_store_register): Renamed from cannot_store_register,
910 made static.
911 (the_low_target): New.
d64b8841 912 * gdbserver/linux-s390-low.c (num_regs): Remove.
2ec06d2e
DJ
913 (s390_num_regs): Define.
914 (s390_regmap): Renamed from regmap, made static.
915 (s390_cannot_fetch_register): Renamed from cannot_fetch_register,
916 made static.
917 (s390_cannot_store_register): Renamed from cannot_store_register,
918 made static.
919 (the_low_target): New.
d64b8841 920 * gdbserver/linux-sh-low.c (num_regs): Remove.
2ec06d2e
DJ
921 (sh_num_regs): Define.
922 (sh_regmap): Renamed from regmap, made static.
923 (sh_cannot_fetch_register): Renamed from cannot_fetch_register,
924 made static.
925 (sh_cannot_store_register): Renamed from cannot_store_register,
926 made static.
927 (the_low_target): New.
d64b8841 928 * gdbserver/linux-x86-64-low.c (x86_64_regmap): Renamed from regmap.
2ec06d2e
DJ
929 (the_low_target): New.
930
96cb11df
AC
9312002-04-09 Andrew Cagney <ac131313@redhat.com>
932
933 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
934 override FP_REGNUM with frame->fp. Update copyright.
935 * parse.c (num_std_regs, std_regs): Delete.
936 (target_map_name_to_register): Do not search std_regs. Update
937 function description.
938 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
939 declarations. Update copyright.
940 Fix PR gdb/251.
941
c3a3ccc7
DJ
9422002-04-09 Daniel Jacobowitz <drow@mvista.com>
943
944 * gdbserver/Makefile.in: Add stamp-h target.
945 * gdbserver/configure.in: Create stamp-h.
946 * gdbserver/configure: Regenerated.
947
ce3a066d
DJ
9482002-04-09 Daniel Jacobowitz <drow@mvista.com>
949
950 * gdbserver/inferiors.c: New file.
951 * gdbserver/target.c: New file.
952 * gdbserver/target.h: New file.
953 * gdbserver/Makefile.in: Add target.o and inferiors.o. Update
954 dependencies.
955 * gdbserver/linux-low.c (inferior_pid): New static variable,
956 moved from server.c.
957 (linux_create_inferior): Renamed from create_inferior.
958 Call add_inferior. Return 0 on success instead of a PID.
959 (linux_attach): Renamed from myattach.
960 (linux_kill): Renamed from kill_inferior. Call clear_inferiors ().
961 (linux_thread_alive): Renamed from mythread_alive.
962 (linux_wait): Renamed from mywait. Call clear_inferiors () if the
963 child dies.
964 (linux_resume): Renamed from myresume. Add missing ``return 0''.
965 (regsets_store_inferior_registers): Correct error message.
966 Add missing ``return 0''.
967 (linux_fetch_registers): Renamed from fetch_inferior_registers.
968 (linux_store_registers): Renamed from store_inferior_registers.
969 (linux_read_memory): Renamed from read_inferior_memory.
970 (linux_write_memory): Renamed from write_inferior_memory.
971 (linux_target_ops): New structure.
972 (initialize_low): Call set_target_ops ().
973 * gdbserver/remote-utils.c (unhexify): New function.
974 (hexify): New function.
975 (input_interrupt): Send signals to ``signal_pid''.
976 * gdbserver/server.c (inferior_pid): Remove.
977 (start_inferior): Update create_inferior call.
978 (attach_inferior): Call add_inferior.
979 (handle_query): New function.
980 (main): Call handle_query for `q' packets.
981 * gdbserver/server.h: Include "target.h". Remove obsolete prototypes.
982 Add prototypes for "inferiors.c", "target.c", hexify, and unhexify.
983
0729219d
DJ
9842002-04-09 Daniel Jacobowitz <drow@mvista.com>
985
986 * gdbserver/Makefile.in: Add WARN_CFLAGS. Update configury
987 dependencies.
988 * gdbserver/configure.in: Check for <string.h>
989 * gdbserver/configure: Regenerate.
990 * gdbserver/config.in: Regenerate.
991 * gdbserver/gdbreplay.c: Include needed system headers.
992 (remote_open): Remove strchr prototype.
993 * gdbserver/linux-low.h: Correct #ifdef to HAVE_LINUX_USRREGS.
994 * gdbserver/regcache.c (supply_register): Change buf argument to const void *.
995 (supply_register_by_name): Likewise.
996 (collect_register): Change buf argument to void *.
997 (collect_register_by_name): Likewise.
998 * gdbserver/regcache.h: Add missing prototypes.
999 * gdbserver/remote-utils.c: Include <arpa/inet.h> for inet_ntoa.
1000 * gdbserver/server.c (handle_query): New function.
1001 (attached): New static variable, moved out of main.
1002 (main): Quiet longjmp clobber warnings.
1003 * gdbserver/server.h: Add ATTR_NORETURN and ATTR_FORMAT. Update prototypes.
1004 * gdbserver/utils.c (error): Remove NORETURN.
1005 (fatal): Likewise.
1006
97658e92
DJ
10072002-04-09 Daniel Jacobowitz <drow@mvista.com>
1008
1009 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
1010 after the last symbol in a block.
1011
6044e3eb
PM
10122002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
1013
1014 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
1015 is non zero as a found symbol.
1016
0406ec40
AC
10172002-04-08 Andrew Cagney <ac131313@redhat.com>
1018
1019 * findvar.c: Include "builtin-regs.h".
1020 (value_of_register): Call value_of_builtin_reg when applicable.
1021 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
1022 (target_map_name_to_register): Call
1023 builtin_reg_map_name_to_regnum.
1024 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
1025 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
1026 (builtin_regs_h): Define.
1027 (builtin-regs.o): New target.
1028 (findvar.o): Add $(builtin_regs_h).
1029 * builtin-regs.c, builtin-regs.h: New files.
1030 * std-regs.c: New file.
1031 Partial fix for PR gdb/251.
1032
56a6dfb9
KB
10332002-04-08 Kevin Buettner <kevinb@redhat.com>
1034
1035 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
1036 it's no longer required.
1037
3a808432
AC
10382002-04-08 Andrew Cagney <ac131313@redhat.com>
1039
1040 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
1041
7c40d541
KB
10422002-04-08 Kevin Buettner <kevinb@redhat.com>
1043
1044 From Jimi X <jimix@watson.ibm.com>:
1045 * rs6000-tdep.c (rs6000_software_single_step): Use
1046 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
1047 and size. Use target_insert_breakpoint() and
1048 target_remove_breakpoint() to insert and remove breakpoints
1049 instead of explicit memory reads and writes.
1050
cc9836a8
KB
10512002-04-08 Kevin Buettner <kevinb@redhat.com>
1052
1053 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
1054 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
1055 ELF_OBJECT_FORMAT ifdef.
1056
7495d1dc
KB
10572002-04-08 Kevin Buettner <kevinb@redhat.com>
1058
1059 From Jimi X <jimix@watson.ibm.com>:
1060 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
1061
4288e836
KB
10622002-04-08 Kevin Buettner <kevinb@redhat.com>
1063
1064 From Jimi X <jimix@watson.ibm.com>:
1065 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
1066 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
1067
a4e4e501
MK
10682002-04-07 Mark Kettenis <kettenis@gnu.org>
1069
1070 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
1071 s/asprintf/xasprintf/.
1072 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
1073
006defba
AC
10742002-04-07 Andrew Cagney <ac131313@redhat.com>
1075
1076 I believe Jeff Law denies responsability for this one:
1077 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
1078 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
1079 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
1080 Work-around for PR gdb/366.
1081
7aa83cac
EZ
10822002-04-07 Elena Zannoni <ezannoni@redhat.com>
1083
1084 * remote-e7000.c (write_small, e7000_read_inferior_memory,
1085 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
1086 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
1087
cf1fcca1
EZ
10882002-04-07 Elena Zannoni <ezannoni@redhat.com>
1089
1090 * sh-tdep.c (sh_fp_frame_init_saved_regs,
1091 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
1092 information.
1093
3f289e6f
AC
10942002-04-07 Andrew Cagney <ac131313@redhat.com>
1095
1096 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
1097 maintainer.
1098
129188f6
AC
10992002-04-07 Andrew Cagney <ac131313@redhat.com>
1100
1101 * README (Reporting Bugs in GDB): Document the bug web page as the
1102 prefered way of submitting bugs.
1103 Fix PR gdb/402.
1104
1200cd6e
AC
11052002-04-06 Andrew Cagney <ac131313@redhat.com>
1106
1107 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
1108 -1. Update comment.
1109 * gdbarch.h, gdbarch.c: Re-generate.
1110
2853c33c
AS
11112002-04-07 Andreas Schwab <schwab@suse.de>
1112
1113 * m68klinux-nat.c (fill_fpregset): Properly pass address of
1114 buffer to regcache_collect.
1115
c2169756
AC
11162002-04-06 Andrew Cagney <ac131313@redhat.com>
1117
1118 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
1119 * gdbarch.c, gdbarch.h: Re-generate.
1120
25f1b008
AC
11212002-04-06 Andrew Cagney <ac131313@redhat.com>
1122
1123 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
1124 declaration. Fix -Werror.
1125
59263426
DJ
11262002-04-05 Daniel Jacobowitz <drow@mvista.com>
1127
1128 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
1129 * gdbarch.c: Regenerate.
1130
f5db4da3
MS
11312002-04-05 Michael Snyder <msnyder@redhat.com>
1132
80f8a6eb
MS
1133 * breakpoint.c (clear_command): Rewrite middle section to
1134 combine two loops with identical control conditions.
1135 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
1136 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
1137
ad3dcc5c
L
11382002-04-05 H.J. Lu (hjl@gnu.org)
1139
1140 * solib-svr4.c (bkpt_names): Add "__start".
1141
f32e7a74
AC
11422002-04-04 Andrew Cagney <ac131313@redhat.com>
1143
1144 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
1145 as test for 64 bit target.
1146
8227c0ff
AC
11472002-04-05 Andrew Cagney <ac131313@redhat.com>
1148
1149 * h8500-tdep.c (h8500_write_fp): Delete function.
1150 * dwarf2cfi.c (cfi_write_fp): Document as not used.
1151 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
1152 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
1153 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
1154 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
1155 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
1156 (s390_write_fp):
1157 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
1158 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
1159 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
1160 (d10v_write_fp): Delete function.
1161 * inferior.h (write_fp, generic_target_write_fp): Delete
1162 declarations.
1163 * regcache.c (generic_target_write_fp): Delete function.
1164 (write_fp): Delete function.
1165 * gdbarch.sh (TARGET_WRITE_FP): Delete.
1166 * gdbarch.h, gdbarch.c: Regenerate.
1167 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
1168 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
1169 (sparc64_write_fp): Delete declaration.
1170 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
1171 (h8500_write_fp): Delete declaration.
1172
2757dd86
AC
11732002-04-04 Andrew Cagney <ac131313@redhat.com>
1174
1175 * sparc-tdep.c (sparc64_write_fp): Delete.
1176 (sparc_push_dummy_frame): Replace write_fp call with code to store
1177 the FP directly.
1178 (sparc_gdbarch_init): Do not initialize write_fp.
1179
c69255e1
KB
11802002-04-05 Kevin Buettner <kevinb@redhat.com>
1181
1182 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
1183 clause.
1184
ae767bfb
JB
11852002-03-29 Jim Blandy <jimb@redhat.com>
1186
1187 * stack.c (get_selected_block): Add new argument `addr_in_block',
1188 used to return the exact code address we used to select the block,
1189 not just the block.
1190 * blockframe.c (get_frame_block, get_current_block): Same.
1191 * frame.h (get_frame_block, get_current_block,
1192 get_selected_block): Update declarations.
1193 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
1194 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
1195
84d2ac95
MS
11962002-04-05 Michael Snyder <msnyder@redhat.com>
1197
1198 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
1199 warning message.
1200
596aa3bf
JB
12012002-04-05 J. Brobecker <brobecker@gnat.com>
1202
1203 * utils.c (xfullpath): New function.
1204 * defs.h (xfullpath): Add declaration.
1205 * source.c (openp): Use xfullpath in place of gdb_realpath to
1206 avoid resolving the basename part of filenames when the
1207 associated file is a symbolic link. This fixes a potential
1208 inconsistency between the filenames known to GDB and the
1209 filenames it prints in the annotations.
1210 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
1211 to be able to match a filename with either the real filename, or
1212 the name of any symbolic link to this file.
1213 (lookup_partial_symtab): Ditto.
1214
c02f5703
MS
12152002-04-04 Michael Snyder <msnyder@redhat.com>
1216
1217 * breakpoint.c: Add support for hardware breakpoints in overlays.
1218 (overlay_events_enabled): New state variable.
1219 (insert_breakpoints): Use overlay_events_enabled to decide
1220 whether to attempt to set a breakpoint at the overlay load addr.
1221 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1222 (remove_breakpoint): Use overlay_events_enabled to decide
1223 whether breakpoints need to be removed from overlay load addr.
1224 Handle bp_hardware_breakpoint as well as bp_breakpoint.
1225 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
1226 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
1227 disable_overlay_breakpoints): Update overlay_events_enabled.
1228
5fb290d7
DJ
12292002-04-04 Daniel Jacobowitz <drow@mvista.com>
1230
1231 * dwarf2read.c (struct function_range): New.
1232 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
1233 (check_cu_functions): New.
1234 (read_file_scope): Initialize global function lists.
1235 Call dwarf_decode_line after processing children.
1236 (read_func_scope): Add to global function list.
1237 (dwarf_decode_lines): Call check_cu_functions everywhere
1238 record_line is called. Call record_line with a linenumber
1239 of 0 to mark sequence ends.
1240
7b3fabf0
ML
12412002-04-04 Michal Ludvig <mludvig@suse.cz>
1242
1243 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
1244 change sync with glibc.
1245
bce58c09
JB
12462002-04-03 Jim Blandy <jimb@redhat.com>
1247
1248 * configure.in: Call AC_C_INLINE.
1249 * configure: Regenerated.
1250
2fccf04a
DJ
12512002-04-01 Daniel Jacobowitz <drow@mvista.com>
1252
1253 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
1254 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
1255
2d1bfe2e
MK
12562002-03-31 Mark Kettenis <kettenis@gnu.org>
1257
a5941fbf
MK
1258 * NEWS: Mention gcore support on FreeBSD/i386.
1259
a90cd31d
MK
1260 * fbsd-proc.c: New file.
1261 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
1262 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
1263
2d1bfe2e
MK
1264 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
1265 while statement.
1266
9eb6e5a1
JB
12672002-03-29 Jim Blandy <jimb@redhat.com>
1268
1269 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
1270 unescaped newlines in string literals, but newer ones don't. So
1271 escape them.
1272
f02df580
MS
12732002-03-26 Michael Snyder <msnyder@redhat.com>
1274 Andrew Cagney <cagney@redhat.com>
1275
1276 * cli/cli-dump.c: New file. Dump memory to file,
1277 restore file to memory.
1278 * cli/cli-dump.h: New file.
1279 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 1280 * NEWS: Mention new commands.
f02df580 1281
109f874e
MS
12822002-03-28 Michael Snyder <msnyder@redhat.com>
1283
1284 * symfile.c (symbol_file_add): Move test for null symbols to later.
1285
520f6ade
AC
12862002-03-27 Andrew Cagney <ac131313@redhat.com>
1287
1288 From veksler at il.ibm.com:
1289 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
1290 the xstrduped original path.
1291 Fix PR gdb/417.
1292
d4654627
MS
12932002-03-27 Michael Snyder <msnyder@redhat.com>
1294
1295 * breakpoint.c (_initialize_breakpoint): Clean up help string.
1296 * infcmd.c (_initialize_infcmd): Ditto.
1297 * language.c (_initialize_language): Ditto.
1298 * symfile.c (_initialize_symfile): Ditto.
1299 * top.c (_init_main): Ditto.
1300 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1301
6be8bc0c
EZ
13022002-03-27 Elena Zannoni <ezannoni@redhat.com>
1303
1304 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
1305 vector registers handling.
1306 (skip_prologue): Handle new AltiVec instructions. Fill in new
1307 fields of frame data.
1308 (frame_get_saved_regs): Fill in information for AltiVec registers.
1309
12af6855
JB
13102002-03-27 Jim Blandy <jimb@redhat.com>
1311
1312 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
1313 a function; leave this macro here to invoke that function.
1314 (symbol_init_mangled_name): Declaration for that function.
1315 * symtab.c (symbol_init_mangled_name): New function.
1316
dc672865
AC
13172002-03-27 Andrew Cagney <ac131313@redhat.com>
1318
1319 * valarith.c: Replace strerror with safe_strerror.
1320 * tracepoint.c: Ditto.
1321 * lin-lwp.c: Ditto.
1322 * go32-nat.c: Ditto.
1323 * inflow.c: Ditto.
1324 * gnu-nat.c: Ditto.
1325
d96429cd
AS
13262002-03-27 Andreas Schwab <schwab@suse.de>
1327
1328 * event-top.c (command_line_handler): Remove useless if.
1329
7e336ba1
AJ
13302002-03-27 Andreas Jaeger <aj@suse.de>
1331
1332 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
1333 comment.
1334
de220d0f
ML
13352002-03-27 Michal Ludvig <mludvig@suse.cz>
1336
1337 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
1338 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
1339 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
1340 (x86_64_linux_dr_get_status, supply_gregset),
1341 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
1342 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
1343 (x86_64_register_info_table): Add.
1344 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
1345 (x86_64_register_raw_size, x86_64_register_virtual_type),
1346 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
1347 general x86_64_register_info_table.
1348 (i386_gdbarch_init): gdbarch_register_bytes is now set
1349 dynamicaly during initialization.
1350 * regformats/reg-x86-64.dat: Synced with changes to registers above.
1351 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 1352
0e98d0a7
DJ
13532002-03-27 Daniel Jacobowitz <drow@mvista.com>
1354
1355 * gdbserver/server.c (main): Call target_signal_to_host_p
1356 and target_signal_to_host on signals received from the remote.
1357 * gdbserver/remote-utils.c (prepare_resume_reply): Call
1358 target_signal_from_host on signals sent to the remote.
1359 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
1360 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
1361
3130066b
DJ
13622002-03-27 Daniel Jacobowitz <drow@mvista.com>
1363
1364 * signals/signals.c: Include "server.h" in gdbserver build.
1365 (target_signal_from_name): Don't use STREQ.
1366 (_initialize_signals): Likewise. Don't include function in
1367 gdbserver build.
1368
9aedf4f4
DJ
13692002-03-27 Daniel Jacobowitz <drow@mvista.com>
1370
1371 * signals.c: Moved to...
1372 * signals/signals.c: Here.
7e336ba1 1373 * Makefile (signals.o): Update.
9aedf4f4 1374
3fa41cdb
JL
13752002-03-26 Jeff Law (law@redhat.com)
1376
1377 * somread.c (som_symtab_read): Remove some commented out code and
1378 updated related comments. Do not set the minimal symbol table to
1379 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
1380 in a dynamic executable.
1381 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
1382 where we are unable to find the minimal symbol for the given
1383 PC value.
1384
ee677e8d
MS
13852002-03-25 Jeff Law (law@redhat.com)
1386
1387 * linux-proc.c (read_mapping): Scan up to end of line for filename.
1388
e76e1718
ML
13892002-03-25 Michal Ludvig <mludvig@suse.cz>
1390
1391 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
1392
18a642a1
AC
13932002-03-23 Andrew Cagney <ac131313@redhat.com>
1394
1395 * command.h: Update copyright.
1396 (struct cmd_list_element): Replace definition with opaque
1397 declaration.
1398 (enum cmd_types): Document that it will eventually be moved to
1399 cli/cli-decode.h
1400 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
1401 (MALLOCED_REPLACEMENT): Delete macro.
1402 * Makefile.in (cli_decode_h): Add $(command_h).
1403 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 1404 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
1405 * completer.c: Include "cli/cli-decode.h".
1406 * maint.c: Include "cli/cli-decode.h".
1407 * cli/cli-decode.h: Include "command.h".
1408 (enum command_class): Delete.
1409 (enum cmd_types): Comment out.
1410 (enum cmd_auto_boolean): Delete.
1411 (enum var_types): Delete.
1412
b2875cc0
AC
14132002-03-23 Andrew Cagney <ac131313@redhat.com>
1414
1415 * cli/cli-decode.c: Include "gdb_assert.h".
1416 (add_set_or_show_cmd): New static function.
1417 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
1418 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
1419 all fields, such as func, from the set command.
1420
3b45974e
AC
14212002-03-23 Andrew Cagney <ac131313@redhat.com>
1422
1423 * MAINTAINERS (sh-elf): Change warning flag to -w.
1424
823ca731
AC
14252002-03-23 Andrew Cagney <cagney@redhat.com>
1426
1427 * defs.h (error): Add printf format attribute.
1428 * thread-db.c (thread_from_lwp): Fix error format string.
1429 * stack.c (parse_frame_specification): Ditto.
1430 * cli/cli-decode.c (undef_cmd_error): Ditto.
1431 * scm-lang.c (scm_lookup_name): Ditto.
1432 * tracepoint.c (trace_error): Ditto.
1433 * remote-utils.c (usage): Ditto.
1434 * remote.c (compare_sections_command): Ditto.
1435 Fix PR gdb/328.
1436
0e101458
AC
14372002-03-22 Andrew Cagney <ac131313@redhat.com>
1438
1439 * gdbtypes.c (append_composite_type_field): New function.
1440 (init_composite_type): New function.
1441 * gdbtypes.h (append_composite_type_field): Declare.
1442 (init_composite_type): Ditto.
1443
8e0662df
EZ
14442002-03-22 Elena Zannoni <ezannoni@redhat.com>
1445
1446 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 1447 function.
8e0662df
EZ
1448 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
1449 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
1450 structure returning convention for SYSV ABI case, but not
1451 for GNU/Linux, FreeBSD, or NetBSD.
1452
3121eff0
DJ
14532002-03-22 Daniel Jacobowitz <drow@mvista.com>
1454
1455 * symtab.h (lookup_block_symbol): Add mangled_name argument
1456 to prototype.
1457
1458 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
1459 with new mangled_name argument.
1460 * linespec.c (decode_line_1): Likewise.
1461 * valops (value_of_this): Likewise.
1462 * symtab.c (lookup_transparent_type): Likewise.
1463 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
1464 (lookup_symbol): If we are given a mangled name, pass it down
1465 to lookup_symbol_aux.
1466 (lookup_block_symbol): If we are given a mangled name to check
1467 against, only return symbols which match it.
1468
349b409f
CF
14692002-03-22 Christopher Faylor <cgf@redhat.com>
1470
1471 * win32-nat.c (child_create_inferior): Check for proper shell to use
1472 here, in case the user changes it on the fly.
1473 (_initialize_inftarg): Remove shell path considerations.
1474
2a873819
EZ
14752002-03-21 Elena Zannoni <ezannoni@redhat.com>
1476
1477 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
1478 for gdbarch_max_register_raw_size and max_register_virtual_size.
1479 Adjust copyright year.
1480
a1b9830c
DJ
14812002-03-21 Daniel Jacobowitz <drow@mvista.com>
1482
1483 * dbxread.c (process_one_symbol): Extend the first N_SLINE
1484 in a function to cover the entire beginning of the function
1485 as well if it does not already.
1486
8b5790f2
TR
14872002-03-21 Tom Rix <trix@redhat.com>
1488
1489 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
1490 (rs6000_ptrace64): Renamed from ptrace64.
1491
bdbe5747
MH
14922002-03-20 Martin M. Hunt <hunt@redhat.com>
1493
1494 * gdbserver/remote-utils.c (remote_open): Don't call
1495 getprotobyname, we're all using TCP here so just use
1496 IPPROTO_TCP.
7e336ba1 1497 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
1498
14992002-03-20 Martin M. Hunt <hunt@redhat.com>
7e336ba1 1500
bdbe5747
MH
1501 * regcache.c (_initialize_regcache): No need to call
1502 build_regcache() at this time; it gets called whenever
1503 the gdbarch changes.
1504
7781cd62
DB
15052002-03-20 David O'Brien <obrien@FreeBSD.org>
1506
1507 * sparc-nat.c: Include sys/param.h where possible.
1508
f65ca430
DJ
15092002-03-20 Daniel Jacobowitz <drow@mvista.com>
1510
1511 Fix PR gdb/422.
1512 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
1513 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
1514 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
1515 complex types.
1516 * stabsread.c (rs6000_builtin_type): Likewise.
1517 (read_sun_floating_type): Likewise.
1518
0c867556
PS
15192002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1520
1521 * stabsread.c (read_member_functions): Remove skip code for duplicate
1522 constructor/destructor methods. Use standard parsing for these
1523 methods and just do not chain them to the list of methods after
1524 parsing.
1525
12b9c64f
AO
15262002-03-19 Alexandre Oliva <aoliva@redhat.com>
1527
1528 * coffread.c: Remove redundant static declarations. Replace
1529 occurrences of `PTR' with `void *'.
1530 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
1531 * top.h (quit_cover): Likewise.
1532 * defs.h (catch_errors): Likewise.
1533
349c5d5f
AC
15342002-03-18 Andrew Cagney <ac131313@redhat.com>
1535
1536 * defs.h (XMALLOC): Define.
1537 * gdb-events.sh (XMALLOC): Delete macro.
1538 * gdb-events.c, gdb-events.h: Regenerate.
1539 * gdbarch.sh (XMALLOC): Delete macro.
1540 * gdbarch.c: Regenerate.
1541 * serial.c (XMALLOC): Delete macro.
1542 * ui-file.c (XMALLOC): Ditto.
1543 * ser-unix.h (XMALLOC): Ditto.
1544 * sh-tdep.c (XMALLOC): Ditto.
1545 * ui-out.c (XMALLOC): Ditto.
1546 * utils.c (XMALLOC): Ditto.
1547 * i386-tdep.c (XMALLOC): Ditto.
1548 * gdb-events.c (XMALLOC): Ditto.
1549 * d10v-tdep.c (XMALLOC): Ditto.
1550 * cli-out.c (XMALLOC): Ditto.
1551
1552 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
1553 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
1554 * ui-file.c, ui-out.c: Ditto.
1555
7d0766f3
AC
15562002-03-18 Andrew Cagney <ac131313@redhat.com>
1557
1558 * command.h (struct cmd_list_element): Add field context.
1559 (set_cmd_context, get_cmd_context): Declare.
1560 * cli/cli-decode.h: Ditto.
1561 * cli/cli-decode.c (get_cmd_context): New function.
1562 (set_cmd_context): New function.
1563 (add_cmd): Initialize context.
1564 Part of fixing PR gdb/145 and PR gdb/146.
1565
5913bcb0
AC
15662002-03-17 Andrew Cagney <ac131313@redhat.com>
1567
1868c04e
AC
1568 * cli/cli-decode.c (cmd_type): New function.
1569 * command.h (cmd_type): Declare.
1570 * infrun.c (set_schedlock_func): Call function cmd_type.
1571 * kod.c (kod_set_os): Call cmd_type.
1572 * cris-tdep.c (cris_version_update): Use function cmd_type.
1573 (cris_mode_update, cris_abi_update): Ditto.
1574
5913bcb0
AC
1575 * command.h: (execute_cmd_post_hook): Declare.
1576 (execute_cmd_pre_hook): Declare.
1577 * cli/cli-script.c (clear_hook_in_cleanup): New function.
1578 (execute_cmd_post_hook, execute_cmd_pre_hook): New
1579 functions. Execute pre/post hook while ensuring that afterwords
1580 hook_in is cleared.
1581 * top.c (execute_command): Use execute_cmd_post_hook, and
1582 execute_cmd_pre_hook to execute pre/post commands.
1583 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
1584 hook_stop_stub.
1585 (hook_stop_stub): Call execute_cmd_pre_hook.
1586
b51450c9
AC
15872002-03-17 Andrew Cagney <ac131313@redhat.com>
1588
1589 * kod.c (kod_set_os): Revert previous change. Is called by ``info
1590 set'' and this leads to a core dump. Move xstrdup of
1591 operating_system to after check that it is not NULL.
1592
f66c9f11
AC
15932002-03-17 Andrew Cagney <ac131313@redhat.com>
1594
8e694ecf
AC
1595 * kod.c (kod_set_os): Remove unnecessary check that
1596 ``command->type'' is set_cmd.
1597
f66c9f11
AC
1598 * valprint.c (set_input_radix): Use input_radix.
1599 (set_output_radix): Use output_radix.
1600 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
1601 isn't reverted.
1602
9d01611c
AC
16032002-03-16 Andrew Cagney <ac131313@redhat.com>
1604
1605 * value.h (struct value): Delete field ``substring_addr''. Change
1606 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
1607 force_core_addr_align and force_pointer_aligh.
1608
1609 * value.h (struct value): Fix typo in above change.
9d01611c 1610
4156bb53
PS
16112002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1612
1613 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
1614 to fix internal_error from ``maintenance print architecture''.
1615
0e5e3ea6
PS
16162002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1617
1618 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
1619 for gcc versions after gcc-2.8.1.
1620
9b013045
PS
16212002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1622
1623 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
1624 for method resolution. Restore adjustment of ``this'' pointer after
1625 calling value_struct_elt, which was accidentally removed during the
1626 HP merge.
1627
376c9600
AC
16282002-03-15 Andrew Cagney <ac131313@redhat.com>
1629
1630 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
1631 value_of_register.
1632 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
1633 get_saved_register.
1634 * value.h (value_of_register): Update.
1635
a4db0f07
RH
16362002-03-14 Richard Henderson <rth@redhat.com>
1637
1638 * configure.in: Detect declaration for canonicalize_file_name.
1639 * utils.c (canonicalize_file_name): Declare, if needed.
1640 (gdb_realpath): Prefer realpath if available and usable.
1641 * config.in, configure: Rebuild.
1642
96383835
RH
16432002-03-14 Richard Henderson <rth@redhat.com>
1644
1645 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
1646 a constant array bound.
1647
1648 * MAINTAINERS: Add myself to write-after-approval.
1649
75245b24
MS
16502002-03-14 Michael Snyder <msnyder@redhat.com>
1651
1652 * symfile.c (syms_from_objfile): Return immediately if no syms.
1653 (symbol_file_add): Return immediately if no syms.
1654 (find_sym_fns): Return immediately if no syms.
1655
e641a1ca
ML
16562002-03-13 Michal Ludvig <mludvig@suse.cz>
1657
1658 * gdbserver/remote-util.c (remote_open): Print remote-side's
1659 IP address when remote debugging over the network.
7e336ba1 1660
df08bfec
DB
16612002-03-12 David O'Brien <obrien@FreeBSD.org>
1662
1663 * config/sparc/fbsd.mh: Fix copyright.
1664 * config/sparc/fbsd.mt: Likewise.
1665
9a57864f
RE
16662002-03-11 Richard Earnshaw <rearnsha@arm.com>
1667
1668 * MAINTAINERS: Fix typo in name of gdb warnings option.
1669 (x86-64): Fix formating so that this can be parsed by awk.
1670
dd7bf85e
DJ
16712002-03-10 Daniel Jacobowitz <drow@mvista.com>
1672
1673 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
1674 * defs.h: Include "gdb/signals.h".
1675 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
1676
33a0a2ac
ML
16772002-03-10 Michal Ludvig <mludvig@suse.cz>
1678
1679 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 1680 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
1681 from x86-64-tdep.h
1682
dd824b04
DJ
16832002-03-10 Daniel Jacobowitz <drow@mvista.com>
1684 Don Howard <dhoward@redhat.com>
1685
1686 * mips-tdep.c (ST0_FR): Define.
1687 (mips2_fp_compat): New function, temporarily disabled.
1688 (mips_read_fp_register_single): New function.
1689 (mips_read_fp_register_double): New function.
1690 (mips_print_register): Use them.
1691 (do_fp_register_row): Likewise.
1692
6a41ff59
AC
16932002-03-09 Andrew Cagney <ac131313@redhat.com>
1694
1695 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
1696 approval''.
1697
4ea09c10
PS
16982002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1699
1700 * stabsread.c (read_member_functions): Fix is_stub test for
1701 static member functions, improve comment.
1702
6ccc741d
RE
17032002-03-07 Richard Earnshaw <rearnsha@arm.com>
1704
1705 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
1706 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
1707 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
1708 commands that set boolean values.
1709 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
1710 (arm_rdi_resume): Always initialize PC.
1711 (arm_rdi_open): Don't use rslt as a boolean.
1712 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
1713 (arm_rdi_fetch_registers, arm_rdi_store_registers)
1714 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
1715 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
1716
438013df
AO
17172002-03-06 Alexandre Oliva <aoliva@redhat.com>
1718
1719 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
1720 * configure: Rebuilt.
1721
70ed8774
SC
17222002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1723
1724 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
1725 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
1726
5ba2abeb
AC
17272002-03-06 Andrew Cagney <ac131313@redhat.com>
1728
1729 * cli/cli-decode.c (set_cmd_completer): New function.
1730 * command.h (set_cmd_completer): Declare.
1731 * cli/cli-decode.h (set_cmd_completer): Ditto.
1732
1733 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
1734 * cli/cli-cmds.c (init_cli_cmds): Ditto.
1735 * win32-nat.c (_initialize_inftarg): Ditto.
1736 * remote-rdi.c (_initialize_remote_rdi): Ditto.
1737 * proc-api.c (_initialize_proc_api): Ditto.
1738 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
1739 * source.c (_initialize_source): Ditto.
1740 * exec.c (_initialize_exec): Ditto.
1741 * solib.c (_initialize_solib): Ditto.
1742 * top.c (init_main): Ditto.
1743 * tracepoint.c (_initialize_tracepoint): Ditto.
1744 * symfile.c (_initialize_symfile): Ditto.
1745 * printcmd.c (_initialize_printcmd): Ditto.
1746 * infcmd.c (_initialize_infcmd): Ditto.
1747 * corefile.c (_initialize_core): Ditto.
1748
f779ca99
AC
17492002-03-05 Andrew Cagney <ac131313@redhat.com>
1750
1751 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
1752
01a3934b
AC
17532002-03-05 Andrew Cagney <ac131313@redhat.com>
1754
1755 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
1756
37057839
AC
17572002-03-05 Andrew Cagney <ac131313@redhat.com>
1758
1759 * NEWS: Update headings, 5.2 has branched.
1760
c6ecbae5
DJ
17612002-03-04 Daniel Jacobowitz <drow@mvista.com>
1762
1763 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
1764 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
1765 (register_addr, REGISTER_RAW_SIZE): Likewise.
1766 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
1767 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
1768
e9f30c21
ML
17692002-03-03 Michal Ludvig <mludvig@suse.cz>
1770
1771 * MAINTAINERS (x86-64): Add myself.
1772 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
1773 changed value_ptr -> struct value *
1774
54394ac3
DB
17752002-03-01 David O'Brien <obrien@FreeBSD.org>
1776
1777 * configure.host (sparc64-*-freebsd): Add.
1778 * configure.tgt: Likewise.
1779 * config/sparc/fbsd.mh: New file.
1780 * config/sparc/fbsd.mt: Likewise.
1781 * config/sparc/nm-fbsd.h: Likewise.
1782 * config/sparc/tm-fbsd.h: Likewise.
1783
bfe95955
DJ
17842002-03-01 Daniel Jacobowitz <drow@mvista.com>
1785
1786 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
1787 regformats/reg-s390x.dat.
1788
f33c6cbf
AC
17892002-03-01 Andrew Cagney <ac131313@redhat.com>
1790
1791 * utils.c: Add FIXME explaining true/false problem.
1792
5ecaa7dd
AC
17932002-02-28 Andrew Cagney <ac131313@redhat.com>
1794
1795 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
1796
2a251cc2
MC
17972002-02-28 Michael Chastain <mec@shout.net>
1798
1799 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
1800
6a8031a3 18012002-02-28 Daniel Jacobowitz <drow@mvista.com>
265f716b
DJ
1802
1803 * gdbserver/linux-s390-low.c: New file.
1804 * regformats/reg-s390.dat: New file.
1805 * regformats/reg-s390x.dat: New file.
1806 * gdbserver/configure.srv: Add S/390.
1807 * gdbserver/Makefile.in: Add S/390.
1808 * configure.tgt: Enable gdbserver for S/390.
1809
ac469903
EZ
18102002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
1811
1812 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
1813 first line of the doc string for "info dos", except at the end of
1814 the sentence, since the short help stops at the first period.
1815
985cb1a3
JM
18162002-02-28 Jason Merrill <jason@redhat.com>
1817
1818 * dwarf2read.c (dwarf_cfi_name): Add new codes.
1819
c570663e
FF
18202002-02-27 Fred Fish <fnf@redhat.com>
1821
1822 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
1823 comment (dumy -> dummy).
1824
43630227
PS
18252002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1826
1827 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
1828
b84911e8
RB
18292002-02-27 Rodney Brown <rbrown64@csc.com.au>
1830
1831 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
1832
58caa3dc
DJ
18332002-02-27 Daniel Jacobowitz <drow@mvista.com>
1834
1835 * gdbserver/acconfig.h: New file.
1836 * gdbserver/i387-fp.c: New file.
1837 * gdbserver/i387-fp.h: New file.
1838 * gdbserver/linux-x86-64.c: New file.
1839 * regformats/reg-x86-64.dat: New file.
1840 * configure.tgt: Add x86_64-*-linux* gdbserver support.
1841 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
1842 * gdbserver/configure.in: Add support for regsets.
1843 * gdbserver/config.in: Regenerate.
1844 * gdbserver/configure: Regenerate.
1845 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
1846 * gdbserver/linux-low.h: New file.
1847 * gdbserver/linux-low.c: Include "linux-low.h". Add support
1848 for regsets.
1849 * gdbserver/linux-arm-low.c: Include "linux-low.h".
1850 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
1851 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
1852 * gdbserver/linux-mips-low.c: Include "linux-low.h".
1853 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
1854 * gdbserver/linux-sh-low.c: Include "linux-low.h".
1855 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
1856 "i387-fp.h". Add PTRACE_GETREGS and friends.
1857 * gdbserver/regcache.c (supply_register): New function.
1858 (supply_register_by_name): New function.
1859 (collect_register): New function.
1860 (collect_register_by_name): New function.
1861
93652174
DJ
18622002-02-27 Daniel Jacobowitz <drow@mvista.com>
1863
1864 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
1865 (config.status): Add configure.srv dependency.
1866 (server_h): Add config.h dependency.
1867
a02e4a61
DJ
18682002-02-27 Daniel Jacobowitz <drow@mvista.com>
1869
1870 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
1871 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
1872 * gdbserver/configure.srv: Change i386-*-linux* to use
1873 reg-i386-linux.o.
1874
ce0eebec
AC
18752002-02-26 Andrew Cagney <ac131313@redhat.com>
1876
1877 * x86-64-tdep.c: Re-indent. Update copyright date.
1878
82dbc5f7
AC
18792002-02-26 Andrew Cagney <ac131313@redhat.com>
1880
1881 From Michal Ludvig <mludvig@suse.cz>:
1882 * x86-64-tdep.c (value.h): Delete.
1883 (gdb_assert.h): Include.
1884 (x86_64_register_convert_to_virtual,
1885 x86_64_register_convert_to_raw ): Add check which lets only
1886 floating-point values to be converted.
1887 (value_push): Delete.
1888 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
1889 (i386_gdbarch_init): Number of register_bytes fixed.
1890
e4621584
AC
18912002-02-26 Andrew Cagney <ac131313@redhat.com>
1892
1893 * MAINTAINERS: Add x86-64 target.
1894
81a9a963
AC
18952002-02-26 Andrew Cagney <ac131313@redhat.com>
1896
1897 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
1898 * osfsolib.c (solib_map_sections): Ditto.
1899 * irix5-nat.c (solib_map_sections): Ditto.
1900 * corelow.c (gdb_check_format): Ditto.
1901 * symfile.c (symfile_bfd_open): Ditto.
1902 * solib.c (solib_map_sections): Ditto.
1903 Fix PR gdb/354.
7e336ba1 1904
0f017ab9
AC
19052002-02-26 Andrew Cagney <ac131313@redhat.com>
1906
1907 * remote.c (_initialize_remote): By default, disable ``e'' and
1908 ``E'' step out-of-range packets.
1909
75738c29
AS
19102002-02-26 Andreas Schwab <schwab@suse.de>
1911
1912 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
1913 m68k_linux_frame_saved_pc.
1914 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
1915 in_sigtramp.
1916 (SIGCONTEXT_PC_OFFSET): Remove.
1917 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
1918 m68k_linux_sigtramp_saved_pc): New functions.
1919 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
1920 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
1921 (UCONTEXT_PC_OFFSET): Define.
1922 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
1923 non-RT and RT signal trampolines.
1924
7e8ed687
RE
19252002-02-26 Richard Earnshaw <rearnsha@arm.com>
1926
1927 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
1928 (TARGET_NBPG, STACK_END_ADDR): Delete
1929 (VARIABLES_INSIDE_BLOCK): Delete.
1930
6972bc8b
AC
19312002-02-25 Andrew Cagney <ac131313@redhat.com>
1932
1933 * utils.c (perror_with_name): Make string parameter constant.
1934 (print_sys_errmsg): Ditto.
1935 (query): Ditto.
1936 * defs.h (perror_with_name): Update.
1937 (print_sys_errmsg): Update.
1938 (query): Update.
1939
aa32f823
DJ
19402002-02-25 Daniel Jacobowitz <drow@mvista.com>
1941
1942 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
1943 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
1944
19caaa45
PS
19452002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
1946
1947 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
1948 if it already matches the current architecture from the exec file.
1949 Include arch-utils.h for gdbarch_info_init prototype.
1950 * Makefile.in (rs6000-nat.o): Update dependencies.
1951
d951901f
EZ
19522002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
1953
1954 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
1955 list of exported variables.
1956
7ea81414
DJ
19572002-02-24 Daniel Jacobowitz <drow@mvista.com>
1958
1959 * gdbserver/configure.srv: New file.
1960 * gdbserver/configure.in: Use configure.srv instead
1961 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
1962 from it.
1963 * gdbserver/configure: Regenerated.
1964 * gdbserver/terminal.h: New file.
1965 * gdbserver/Makefile.in: Update for configure changes. Remove
1966 more unneeded include paths.
1967
080fe24b
AC
19682002-02-24 Andrew Cagney <ac131313@redhat.com>
1969
1970 From wiz at danbala:
1971 * config/sparc/tm-sp64.h: Fix grammar and typos.
1972 Fix PR gdb/287.
1973
8605d56e
AC
19742002-02-24 Andrew Cagney <ac131313@redhat.com>
1975
1976 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
1977 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
1978 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
1979 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
1980 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
1981 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
1982 * s390-tdep.c: Ditto.
92362027
AC
1983 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
1984 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
1985 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
1986 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
1987 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
1988 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
1989 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
1990 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
1991 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
1992 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 1993 Fix PR gdb/378.
7e336ba1 1994
8ed32cc0
AC
19952002-02-23 Andrew Cagney <ac131313@redhat.com>
1996
a3007b6f
AC
1997 * lin-thread.c: Delete file.
1998 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
1999 to gdb_proc_service.h.
2000 * configure: Re-generate.
2001
50a9e2f1
AC
2002 * ocd.c (ocd_open): Do not try to open the "ocd" device.
2003 * serial.c (serial_open): Delete check for "ocd".
2004 Fix PR gdb/349.
2005
8b6e7932
AC
2006 * Makefile.in (linux-thread.o): Delete target.
2007 * linux-thread.c: Delete file.
2008
d155c46b
AC
2009 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
2010 renamed SH files to be consistent.
2011
8ed32cc0
AC
2012 * symtab.c (sort_search_symbols): Use xfree.
2013
0e18d038
RE
20142002-02-23 Richard Earnshaw <rearnsha@arm.com>
2015
2016 * arm-linux-tdep.c (arm_linux_init_abi): Register
2017 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
2018 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
2019 definition with undef, since we don't want the sysvr4 definition.
2020 (SKIP_TRAMPOLINE_CODE): Likewise.
2021
27aac7ff
AC
20222002-02-23 Andrew Cagney <ac131313@redhat.com>
2023
2024 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
2025
2026 * configure.in: (AC_CHECK_FUNCS) Added test for
2027 canonicalize_file_name Regenerated.
2028 * config.in, configure: Regenerated.
2029 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
2030 defined use canonicalize_file_name.
7e336ba1 2031
65a6e0ee
MC
20322002-02-23 Michael Chastain <mec@shout.net>
2033
2034 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
2035
47b95330
AC
20362002-02-23 Andrew Cagney <ac131313@redhat.com>
2037
2038 * README: Remove references to cygnus.com.
2039 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
2040 dot com'' form. Remove references to cygnus.com and sourceware.
2041
696f451b
AC
20422002-02-23 Andrew Cagney <ac131313@redhat.com>
2043
2044 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
2045 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
2046 1003.1-2001 no longer allows "head -1".
2047 * gdb/Makefile.in (version.c): Likewise.
2048 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
2049 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
2050 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
2051
bbaca940
AC
20522002-02-23 Andrew Cagney <ac131313@redhat.com>
2053
2054 * cli/cli-decode.c (cmd_cfunc_eq): New function.
2055 * command.h (cmd_cfunc_eq): Declare.
2056 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
2057
2058 * cli/cli-cmds.h (is_complete_command): Change parameter to a
2059 ``struct cmd_list_element *''.
2060 * cli/cli-cmds.c (is_complete_command): Update. Use
2061 cmd_cfunc_eq.
2062 * top.c (execute_command): Pass the command to
2063 is_complete_command.
2064 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
2065
b8b8b047
AC
20662002-02-23 Andrew Cagney <ac131313@redhat.com>
2067
2068 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
2069 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
2070 architecture defines.
2071 * s390-tdep.c (s390_gdbarch_init): Likewise.
2072
19d3fc80
RE
20732002-02-23 Richard Earnshaw <rearnsha@arm.com>
2074
2075 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
2076 (arm_linux_push_arguments): Likewise.
2077 (arm_linux_init_abi): Register them. Also register linux-specific
2078 call_dummy_words.
2079 (find_minsym_and_objfile): Use strcmp, not STREQ.
2080 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
2081 (arm_linux_call_dummy_words): Delete declaration.
2082 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
2083 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
2084 declarations.
2085 (LOWEST_PC): Delete.
2086
3ab13650
PS
20872002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2088
2089 * maint.c (print_section_info): Do not prepend `0x' to filepos
2090 output, it will be handled by local_hex_string_custom.
2091
19d3fc80 20922002-02-23 Richard Earnshaw <rearnsha@arm.com>
85ae890c
RE
2093
2094 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
2095 (store_newfpe_double, store_newfpe_extended, store_fpregister)
2096 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
2097
d85a5daf
JB
20982002-02-22 Jim Blandy <jimb@redhat.com>
2099
2100 Indicate that the bcache functions don't change the strings
2101 they're passed.
2102 * bcache.h (bcache, hash): Add `const' keywords to declarations.
2103 * bcache.c (bcache, hash): Add `const' keywords to definitions.
2104
eeb25b8a
PM
21052002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
2106
2107 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
2108
6badb179
CF
21092002-02-21 Christopher Faylor <cgf@redhat.com>
2110
2111 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
2112 find the complete path to a loaded DLL.
2113
e8717518
FF
21142002-02-21 Fred Fish <fnf@redhat.com>
2115
2116 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
2117 that marks the end of the range of a function, enter a line number
2118 entry that has a line number of zero and a PC offset that matches
2119 the end of the function. This starts a range of PC's for which no
2120 line number information is known.
2121 * symtab.c (find_pc_sect_line): If our best fit is in a range of
2122 PC's for which no line number info is found (line number is zero)
2123 then we didn't find any valid line information.
2124 * symtab.h: Document use of zero line number entry.
2125
9abe5450
EZ
21262002-02-21 Elena Zannoni <ezannoni@redhat.com>
2127
2128 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
2129 (have_ptrace_getvrregs): Define for run time checks.
2130 (gdb_vrregset_t): New type for Altivec register handling.
2131 (fetch_register, store_register): Fetch/store altivec register
2132 when needed.
2133 (fetch_altivec_register, store_altivec_register): New functions.
2134 (supply_vrregset, fill_vrregset): New functions.
2135 (fetch_altivec_registers, store_altivec_registers): New functions.
2136 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
2137 registers as well.
2138
aaa38bb5
AJ
21392002-02-21 Jiri Smid <smid@suse.cz>
2140
2141 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
2142
b34db576
RE
21432002-02-21 Richard Earnshaw <rearnsha@arm.com>
2144
2145 * Makefile.in (armnbsd-nat.o): Update dependencies.
2146 * armnbsd-nat.c (supply_gregset): New function. Common code to
2147 supply the integer register set.
2148 (supply_fparegset): New function. Similar for FPA registers.
2149 (fetch_regs, fetch_fp_regs): Use them.
2150 (fetch_core_registers): Likewise.
2151 (fetch_elfcore_registers): New function.
2152 (arm_netbsd_elfcore_fns): New core-file type specification.
2153 (_initialize_arm_netbsd_nat): Register it.
2154
3e56fc4b
RE
21552002-02-21 Richard Earnshaw <rearnsha@arm.com>
2156
2157 * armnbsd-nat.c: Include gdbcore.h.
2158 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
2159 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
2160 'void' to declaration, to shut up ARI.
2161 (fetch_core_registers): Make static. Rewrite using supply_register.
2162 (arm_netbsd_core_fns): New core-file type specification.
2163 (_initialize_arm_netbsd_nat): New function.
2164
097f6b0b
CF
21652002-02-21 Christopher Faylor <cgf@redhat.com>
2166
2167 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
2168 value.
2169
c914e0cc
CF
21702002-02-20 Christopher Faylor <cgf@redhat.com>
2171
2172 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
2173 fails.
2174
385fa495
DJ
21752002-02-20 Daniel Jacobowitz <drow@mvista.com>
2176
2177 * jv-exp.y (parse_number): Change type of implicit longs
2178 to builtin_type_uint64.
2179
e5f1222d
DJ
21802002-02-20 Daniel Jacobowitz <drow@mvista.com>
2181
2182 * gdbserver/linux-low.c (mywait): Change argument to waitpid
2183 to be an integer instead of a `union wait'.
2184
75c9abc6
DJ
21852002-02-20 Daniel Jacobowitz <drow@mvista.com>
2186
2187 * mips-linux-nat.c: Call the operating system GNU/Linux.
2188 * mips-linux-tdep.c: Likewise.
2189 * mips-tdep.c: Likewise.
2190
551792a5
DJ
21912002-02-20 Daniel Jacobowitz <drow@mvista.com>
2192
2193 Fix PR gdb/265.
2194 * jv-exp.y (parse_number): Handle 64-bit integers.
2195
ee6e2b82
DJ
21962002-02-20 Daniel Jacobowitz <drow@mvista.com>
2197
2198 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
2199 AC_STDC_HEADERS to AC_HEADER_STDC.
2200 * gdbserver/configure: Regenerated.
2201
a48442a0
RE
22022002-02-20 Richard Earnshaw <rearnsha@arm.com>
2203
2204 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
2205 is defined.
2206 * sparc-tdep.c (get_longjmp_target): Likewise.
2207
fe419ffc
RE
22082002-02-20 Richard Earnshaw <rearnsha@arm.com>
2209
2210 * News: Add news about ARM and Multi-arch. Mention the new target
2211 arm*-*-netbsd*.
2212
5832ed7e
JB
22132002-02-19 Jim Blandy <jimb@redhat.com>
2214
2215 * stabsread.c (error_type_complaint): Improve error message.
2216
84563040
DJ
22172002-02-19 Daniel Jacobowitz <drow@mvista.com>
2218
2219 * gdbserver/README: Update documentation.
2220 * gdbserver/configure.in: Update configury to match documentation.
2221 * gdbserver/Makefile.in: Likewise.
2222 * gdbserver/configure: Regenerated.
2223 * gdbserver/aclocal.m4: New file, generated by aclocal.
2224 * gdbserver/config.in: New file, generated by autoheader.
2225
375fd65b
RE
22262002-02-19 Richard Earnshaw <rearnsha@arm.com>
2227
2228 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
2229 armnbsd-nat.c.
2230
08216dd7
RE
22312002-02-19 Richard Earnshaw <rearnsha@arm.com>
2232
2233 * arm-tdep.h (enum arm_float_model): New enum.
2234 (struct gdbarch_tdep): Add fp_model.
2235 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
2236 up floating-point conversions until we know the floating-point model
2237 in use by the inferior. Don't complain about being unable to
2238 determine the ABI of the inferior when we don't have one.
2239 (arm_extract_return_value): Support different floating-point models.
2240 (arm_store_return_value): Likewise.
aaa38bb5 2241 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
2242 ARM_FLOAT_SOFT.
2243 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
2244
65d6d66a
PS
22452002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2246
2247 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
2248 of ``current_gdbarch''.
2249
47221191
RE
22502002-02-19 Richard Earnshaw <rearnsha@arm.com>
2251
2252 * armnbsd-nat.c : ANSIfy all function declarations.
2253 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
2254 (fetch_inferior_registers): Re-implement in terms of above.
2255 (store_register, store_regs, store_fp_register, store_fp_regs): New.
2256 (store_inferior_registers): Re-implement in terms of above.
2257
fdf39c9a
RE
22582002-02-19 Richard Earnshaw <rearnsha@arm.com>
2259
aaa38bb5 2260 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
2261 kernel.
2262 * arm-linux-tdep.c: Likewise.
2263 * config/arm/tm-linux.h: Likewise.
2264
93247f88
RE
22652002-02-19 Richard Earnshaw <rearnsha@arm.com>
2266
2267 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
2268 * config/arm/nbsd.mt (TM_FILE): Delete.
2269 * config/arm/tm-nbsd.h: Delete.
2270
d7b486e7
RE
22712002-02-19 Richard Earnshaw <rearnsha@arm.com>
2272
2273 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
2274 Initialize CALL_DUMMY_LENGTH.
2275
41d39a95
RE
22762002-02-19 Richard Earnshaw <rearnsha@arm.com>
2277
2278 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
2279 function.
2280 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 2281 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
2282 defines one thing and that is incorrect for this port.
2283 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
2284
e1195560
PM
22852002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2286
2287 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
2288
c1748f97
PM
22892002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2290
2291 * win32-nat.c (display_selector): New function. Displays information
2292 about the information returned by GetThreadSelectorEntry API function.
2293 (display_selectors): New function. Displays the infomation of
2294 the selector given as argument, or of CS, DS ans FS selectors
2295 if no argument is given.
2296 ( _initialize_inftarg): Add "w32" as info prefix command.
2297 Add "info w32 selector" as command calling display_selectors.
2298
e41e6bbf
PM
22992002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
2300
2301 * i386-tdep.c (get_longjmp_target): Fix compilation failure
2302 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
2303 if not defined.
2304
0d3a9f48
RE
23052002-02-18 Richard Earnshaw <rearnsha@arm.com>
2306
2307 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
2308
3fb4b924
RE
23092002-02-18 Richard Earnshaw <rearnsha@arm.com>
2310
2311 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
2312 (arm_fix_call_dummy): Call it.
2313 (arm_call_dummy_breakpoint_offset): Delete.
2314 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
2315 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2316
7f55af32
AC
23172002-02-18 Andrew Cagney <ac131313@redhat.com>
2318
2319 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
2320 Default to func_frame_chain_valid.
2321 * gdbarch.h, gdbarch.c: Re-generate.
2322 * frame.h (FRAME_CHAIN_VALID): Delete definition.
2323
05f13b9c
EZ
23242002-02-18 Elena Zannoni <ezannoni@redhat.com>
2325
2326 * ppc-linux-nat.c: Update copyright.
2327 (fetch_register, store_register): Add tid parameter, don't compute
2328 tid here.
2329 (fetch_ppc_registers, store_ppc_registers): Add tid
2330 parameter. Pass it along to callees.
2331 (fetch_inferior_registers, store_inferior_registers): Compute tid
2332 here, and pass it to calleed functions.
2333 (fill_gregset, supply_fpregset): Clean up formatting.
2334
d7afb4c9
RE
23352002-02-18 Richard Earnshaw <rearnsha@arm.com>
2336
2337 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
2338 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
2339
9df628e0
RE
23402002-02-18 Richard Earnshaw <rearnsha@arm.com>
2341
2342 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
2343 * gdbarch.c gdbarch.h: Regenerate.
2344 * breakpoint.c (create_longjmp_breakpoint): Always compile this
2345 function.
2346 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
2347 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
2348 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
2349
2350 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
2351 * arm-tdep.c (arm_get_longjmp_target): New function.
2352 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
2353 this to a positive value register arm_get_longjmp_target as the
2354 longjmp handler.
2355 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
2356 (arm_linux_init_abi): Set up longjmp description in tdep.
2357 * armnbsd-nat.c (get_longjmp_target): Delete.
2358 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
2359 description in tdep.
2360 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
2361 (get_longjmp_target): Delete declaration.
2362 (GET_LONGJMP_TARGET): Delete.
2363 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
2364 (GET_LONGJMP_TARGET): Delete.
2365
57bc8964
KB
23662002-02-17 Kevin Buettner <kevinb@redhat.com>
2367
2368 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
2369 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
2370 of ``current_gdbarch''.
2371
83d31a92
TT
23722002-02-17 Tom Tromey <tromey@redhat.com>
2373
2374 * cli/cli-cmds.c (compare_strings): New function.
2375 (complete_command): Only print each unique item once.
2376 * completer.h (complete_line): Declare.
2377 * completer.c (complete_line): New function.
2378 (line_completion_function): Use it.
2379
17ef5d92
AC
23802002-02-16 Andrew Cagney <ac131313@redhat.com>
2381
2382 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
2383 * gdbarch.h, gdbarch.c: Re-generate.
2384
491b8946
DJ
23852002-02-16 Daniel Jacobowitz <drow@mvista.com>
2386
2387 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
2388
23892002-02-16 Daniel Jacobowitz <drow@mvista.com>
2390
2391 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
2392 * valops.c (value_arg_coerce): Don't take the address of a reference
2393 to convert an argument to a reference.
2394
dfe7f3ac
CF
23952002-02-15 Christopher Faylor <cgf@redhat.com>
2396
2397 * win32-nat.c (get_image_name): New function.
2398 (handle_load_dll): Use get_image_name function.
2399 (get_child_debug_event): Avoid registering debug events until possibly
2400 execed process is started.
2401 (child_create_inferior): Allow invocation via shell so that command
2402 line redirection, etc. works ok.
2403 (_initialize_inftarg): Add new command: "set shell" to control whether
2404 a shell is used to start a process.
2405
1d33e73a
DJ
24062002-02-15 Daniel Jacobowitz <drow@mvista.com>
2407
2408 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
2409 instead of find_register_by_number.
2410 (cannot_store_register): Likewise.
2411
48cd0caa
PM
24122002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
2413
aaa38bb5 2414 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
2415 fprintf_unfiltered (gdb_stderr, ...).
2416
8656e7d8
DJ
24172002-02-15 Daniel Jacobowitz <drow@mvista.com>
2418
2419 * gdbserver/gdbserver.1: Document --attach.
2420
66e810cd
RE
24212002-02-15 Richard Earnshaw <rearnsha@arm.com>
2422
2423 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
2424 descriptions.
2425 * arm-tdep.c (arm_default_arm_le_breakpoint)
2426 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
2427 (arm_default_thumb_be_breakpoint): New. Initialize them from
2428 traditional breakpoint defines.
2429 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
2430 (arm_gdbarch_init): Initialize new breakpoint variables.
2431 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
2432 (arm_linux_init_abi): Initialize linux-specific breakpoint.
2433 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
2434 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
2435 code out to ...
2436 (arm_netbsd_init_abi_common): ... here; new function.
2437 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
2438 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
2439 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
2440 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
2441
97e03143
RE
24422002-02-15 Richard Earnshaw <rearnsha@arm.com>
2443
2444 * arm-tdep.h (enum arm_abi): New enum.
2445 (struct gdbarch_tdep): New structure.
2446 (LOWEST_PC): Provide a default.
2447 (arm_gdbarch_register_os_abi): Declare new function.
2448 * arm-tdep.c (arm_abi_names): New array.
2449 (process_note_abi_tag_sections): New function.
2450 (get_elfosabi): New function.
2451 (arm_gdbarch_register_os_abi): New function.
2452 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
2453 support for that ABI has been built in, then call the appropriate
2454 configuration routine. Use gdbarch_num_regs() to get the number
2455 of registers.
2456 (arm_dump_tdep): New function.
2457 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
2458 place-holder functions.
2459 (_initialize_arm_tdep): Register them.
2460 * config/arm/tm-arm.h (LOWEST_PC): Delete.
2461
2462 * armnbsd-tdep.c: New file.
2463 * Makefile.in (armnbsd-tdep.o): Add dependencies.
2464 * config/arm/nbsd.mt (TDEPFILES): Add it.
2465 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
2466
2467 * armnbsd-nat.c: Include regcache.h.
2468 * Makefile.in (armnbsd-nat.o): Update dependency list.
2469
2470 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
2471
ad68be46
DJ
24722002-02-14 Daniel Jacobowitz <drow@mvista.com>
2473
2474 * gdbserver/Makefile.in: Fix typos in target rules.
2475
003d6d1d
DJ
24762002-02-14 Daniel Jacobowitz <drow@mvista.com>
2477
aaa38bb5 2478 Fix part of PR gdb/267.
003d6d1d
DJ
2479 * linespec.c (find_methods): Handle constructors specially for now.
2480
6b230f1b
CV
24812002-02-14 Corinna Vinschen <vinschen@redhat.com>
2482
2483 * arm-tdep.c (arm_push_arguments): Eliminate special float type
2484 handling.
2485 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
2486 standard_coerce_float_to_double().
2487
1ea98d12
CF
24882002-02-14 Christopher Faylor <cgf@redhat.com>
2489
2490 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
2491 GDBINIT_FILENAME.
2492
dd47e6fd
EZ
24932002-02-14 Elena Zannoni <ezannoni@redhat.com>
2494
2495 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
2496 find_variant_by_name, because it confuses the multiarch
2497 framework. Return NULL if there isn't an architecture with the
2498 user supplied name, instead of forcing a different one without
2499 recording the change with the multiarch machinery.
2500 (find_variant_by_name): Delete.
2501
d7e39b9e
PS
25022002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2503
2504 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
2505 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
2506
76e42a4f
MH
25072002-02-13 Martin M. Hunt <hunt@redhat.com>
2508
aaa38bb5 2509 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
2510 print_frame_info_listing_hook, set current_source_symtab.
2511
0a30fbc4
DJ
25122002-02-14 Daniel Jacobowitz <drow@mvista.com>
2513
2514 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
2515 and remove unused $(INCLUDE_DIR).
2516 Add regcache.c to OBS.
2517 Add generated register protocol files to clean target.
2518 Update dependencies for new objects, obsolete old target code.
2519
2520 * gdbserver/linux-low.c: Remove all platform-specific code to
2521 new files. Remove various dead code. Update to use regcache
2522 functionality.
2523 * gdbserver/remote-utils.c (fromhex): Add return statement
2524 to quiet warning.
2525 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
2526 constant.
2527 (input_interrupt): Add integer parameter to match prototype
2528 of a signal handler.
2529 (outreg): Use register_data ().
2530 (prepare_resume_reply): Use gdbserver_expedite_regs.
2531 * gdbserver/server.c (main): Dynamically allocate own_buf because
2532 PBUFSIZ is no longer constant. Use registers_to_string () and
2533 registers_from_string ().
2534 * gdbserver/server.h: No longer include "defs.h". Add prototypes
2535 for error (), fatal (), and warning (). Update definition of
2536 PBUFSIZ to use regcache functionality. Add include guard.
2537 * gdbserver/utils.c (fatal): Add missing ``const''.
2538 (warning): New function.
2539
2540 * regformats/regdat.sh: Include "regcache.h" in generated files.
2541 Provide init_registers () function.
2542 * regformats/regdef.h: Add prototype for set_register_cache ().
2543 Add include guard.
2544
2545 * gdbserver/linux-arm-low.c: New file.
2546 * gdbserver/linux-i386-low.c: New file.
2547 * gdbserver/linux-ia64-low.c: New file.
2548 * gdbserver/linux-m68k-low.c: New file.
2549 * gdbserver/linux-mips-low.c: New file.
2550 * gdbserver/linux-ppc-low.c: New file.
2551 * gdbserver/linux-sh-low.c: New file.
2552
2553 * gdbserver/regcache.c: New file.
2554 * gdbserver/regcache.h: New file.
2555
2556 * gdbserver/low-linux.c: Removed obsolete file.
2557
4cc841d0
DJ
25582002-02-14 Daniel Jacobowitz <drow@mvista.com>
2559
2560 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
2561 * config/i386/linux.mt: Likewise.
2562 * config/ia64/linux.mt: Likewise.
2563 * config/m68k/linux.mh: Likewise.
2564 * config/powerpc/linux.mh: Likewise.
2565 * config/mips/linux.mt: Likewise.
2566
2567 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
2568
2569 * config/i386/i386lynx.mh: Mark gdbserver variables
2570 as (currently) obsolete for this target.
2571 * config/i386/nbsd.mt: Likewise.
2572 * config/i386/nbsdelf.mt: Likewise.
2573 * config/m32r/m32r.mt: Likewise.
2574 * config/m68k/m68klynx.mh: Likewise.
2575 * config/m68k/nbsd.mt: Likewise.
2576 * config/m68k/sun3os4.mh: Likewise.
2577 * config/mips/vr5000.mt: Likewise.
2578 * config/ns32k/nbsd.mt: Likewise.
2579 * config/pa/hppabsd.mh: Likewise.
2580 * config/pa/hppaosf.mh: Likewise.
2581 * config/powerpc/nbsd.mt: Likewise.
2582 * config/rs6000/rs6000lynx.mh: Likewise.
2583 * config/s390/s390.mt: Likewise.
2584 * config/s390/s390x.mt: Likewise.
2585 * config/sparc/sparclynx.mh: Likewise.
2586 * config/sparc/sun4os4.mh: Likewise.
2587 * config/i386/x86-64linux.mt: Likewise.
2588 * config/sparc/linux.mh: Likewise.
2589
a85f51e7
DJ
25902002-02-14 Daniel Jacobowitz <drow@mvista.com>
2591
2592 * configure.tgt: Configure gdbserver only for known working
2593 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
2594 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
2595 SUBDIRS if it is configured. Update comment for ${nativefile}.
2596 * configure: Regenerated.
2597
65554fef
MS
25982002-02-13 Michael Snyder <msnyder@redhat.com>
2599
670a52db
MS
2600 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
2601
6dbdc4a3
MS
2602 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
2603 (default_gcore_mach): Just return 0, work around a problem in bfd.
2604 (default_gcore_target): OK to return NULL if exec_bfd is null.
2605 (make_mem_sec): Use a cast, avoid a warning.
2606
2607 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 2608 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
2609 sizeof (host pointer) != sizeof (target pointer)).
2610 (procfs_make_note_section): Avoid overflow in psargs string.
2611
aaa38bb5 2612 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
2613 implementation return an error.
2614
26152002-02-13 Rodney Brown <rbrown64@csc.com.au>
2616
2617 * procfs.c (procfs_make_note_section): Provide a default definition
2618 (for alpha-dec-osf4.0f). Fix typos.
2619
1e4d76e7
EZ
26202002-02-13 Elena Zannoni <ezannoni@redhat.com>
2621
2622 * linux-proc.c: Add include of regcache.h.
2623 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
2624
b6d1a1d5
AC
26252002-02-13 Andrew Cagney <ac131313@redhat.com>
2626
2627 From 2002-01-18 Greg McGary <greg@mcgary.org>:
aaa38bb5
AJ
2628 * memattr.c (create_mem_region): Disallow useless empty region.
2629 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 2630 non-overlapping.
b6d1a1d5 2631
6c6ea35e
MC
26322002-02-13 Michael Chastain <mec@shout.net>
2633
2634 * defs.h: Kill CONST_PTR.
2635 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
2636 * c-lang.c (c_builtin_types): Likewise.
2637 * ch-lang.c (ch_builtin_types): Likewise.
2638 * f-lang.c (f_builtin_types): Likewise.
2639 * language.c (unknown_builtin_types): Likewise.
2640 * m2-lang.c (m2_builtin_types): Likewise.
2641 * p-lang.c (pascal_builtin_types): Likewise.
2642 * scm-lang.c (c_builtin_types): Likewise.
2643
3e0b0f48
KS
26442002-02-13 Keith Seitz <keiths@redhat.com>
2645
2646 * arm-tdep.h (arm_get_next_pc): Add declaration.
2647
67255d04
RE
26482002-02-13 Richard Earnshaw <rearnsha@arm.com>
2649
2650 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
2651 with other related struct-returning functions.
2652 (arm_extract_struct_value_address): New function.
2653 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
2654 initialize float_format, double_format and long_double_format as
2655 appropriate to the endianness of the target.
2656 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
2657 (arm_use_struct_convention): Delete declaration.
2658 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
2659
079777f6
KS
26602002-02-13 Keith Seitz <keiths@redhat.com>
2661
2662 * defs.h (core_addr_to_string_nz): New function.
2663
34588f23
MK
26642002-02-13 Mark Kettenis <kettenis@gnu.org>
2665
2666 Apply missing bits of 2002-01-15 patch.
2667 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
2668 (fill_fpregset): Use i387_fill_fsave.
2669
49b563f9
KS
26702002-02-12 Keith Seitz <keiths@redhat.com>
2671
49b563f9
KS
2672 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
2673 (core_addr_to_string_nz): New function.
2674
aeb98c60
RE
26752002-02-11 Richard Earnshaw <rearnsha@arm.com>
2676
2677 * arm-linux-nat.c: Really include arm-tdep.h.
2678 * config/arm/tm-linux.h (struct type, struct value): Declare.
2679
65554fef
MS
26802002-02-11 Michael Snyder <msnyder@redhat.com>
2681
2682 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
2683 (gcore section): Ifdef for Solaris and Unixware only.
2684 (procfs_do_thread_registers): Unixware needs one lwpstatus
2685 per thread (not one prstatus or pstatus).
2686 (procfs_make_note_section): Iterate only over kernel threads (lwps),
2687 not over all gdb threads. For unixware, call elfcore_write_pstatus
2688 once before iterating over threads.
2689
34e8f22d
RE
26902002-02-11 Richard Earnshaw <rearnsha@arm.com>
2691
2692 * arm-tdep.h: New file.
2693 * arm-tdep.c: Include arm-tdep.h.
2694 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2695 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2696 (arm_print_float_info, arm_register_type, convert_to_extended)
2697 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2698 (arm_extract_return_value, arm_register_name): Make static.
2699 (arm_software_single_step): Similarly. Fix types in declaration.
2700 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
2701 (arm_store_return_value, arm_store_struct_return): New functions.
2702 (arm_gdbarch_init): Register the above functions. Also register
2703 call_dummy_start_offset, sizeof_call_dummy_words,
2704 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
2705 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 2706 max_register_virtual_size, register_size. Set up
34e8f22d
RE
2707 prologue_cache.saved_regs here, rather than ...
2708 (_initialize_arm_tdep): ... here.
2709 * config/arm/tm-arm.h (struct type, struct value): Delete forward
2710 declarations.
2711 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
2712 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
2713 (arm_print_float_info, arm_register_type, convert_to_extended)
2714 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
2715 (arm_extract_return_value, arm_register_name): Delete declarations.
2716 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
2717 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
2718 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
2719 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
2720 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
2721 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
2722 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
2723 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
2724 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
2725 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
2726 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
2727 (arm_get_next_pc): No-longer static -- these are needed by the RDI
2728 interface.
2729 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
2730 * remote-rdi.c remote-rdp.c: Likewise.
2731 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
2732 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
2733 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
2734 definition.
2735
2736 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
2737 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
2738 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
2739 from non-ARM_ prefixed definitions.
2740 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
2741 all uses of above.
2742 * remote-rdi.c remote-rdp.c: Likewise.
2743 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
2744
148754e5
RE
27452002-02-11 Richard Earnshaw <rearnsha@arm.com>
2746
2747 * arm-tdep.c (arm_frameless_function_invocation)
2748 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2749 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2750 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2751 (arm_pop_frame, arm_get_next_pc): Make static.
2752 (arm_gdbarch_init): Register above in gdbarch structure.
2753 (arm_read_fp): Renamed from arm_target_read_fp.
2754 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
2755 * config/arm/tm-arm.h (arm_frameless_function_invocation)
2756 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
2757 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
2758 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
2759 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
2760 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
2761 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
2762 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
2763 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
2764 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 2765
434d2d4f
DJ
27662002-02-10 Daniel Jacobowitz <drow@mvista.com>
2767
2768 * symtab.c (compare_search_syms): New function.
2769 (sort_search_symbols): New function.
2770 (search_symbols): Sort symbols after searching rather than
2771 before.
2772
55241689
AC
27732002-02-10 Andrew Cagney <ac131313@redhat.com>
2774
2775 * NEWS: Linux -> GNU/Linux.
2776
028c194b
AC
27772002-02-10 Andrew Cagney <ac131313@redhat.com>
2778
2779 * gdbarch.sh: For for level one methods, disallow a definition
2780 when partially multi-arched. Add comments explaining rationale.
2781 * gdbarch.h: Re-generate.
2782
6acf50cd
AC
27832002-02-10 Andrew Cagney <ac131313@redhat.com>
2784
2785 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
2786 multi-arch partial.
aaa38bb5 2787
50248794
AC
27882002-02-10 Andrew Cagney <ac131313@redhat.com>
2789
2790 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
2791 field. Use diff -u.
2792 * gdbarch.c: Re-generate.
2793
c30e0066
AC
27942002-02-10 Andrew Cagney <ac131313@redhat.com>
2795
9b56c5f3 2796 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
2797 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
2798 partial.
2799
6e6d6484
AC
28002002-02-10 Andrew Cagney <ac131313@redhat.com>
2801
2802 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
2803 multi-arch partial.
2804 (PUSH_ARGUMENTS): Switch to using predefault.
2805 * gdbarch.c: Regenerate.
2806
c203844d
AC
28072002-02-10 Andrew Cagney <ac131313@redhat.com>
2808
2809 * valops.c (PUSH_ARGUMENTS): Delete definition.
2810 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
2811 partial. Default to default_push_arguments.
2812 * gdbarch.h, gdbarch.c: Regenerate.
2813
b5a2688f
AC
28142002-02-09 Andrew Cagney <ac131313@redhat.com>
2815
2816 * defs.h (throw_exception): Rename return_to_top_level. Update
2817 comments.
2818 * utils.c (error_stream, internal_verror, quit): Ditto.
2819 * top.c (throw_exception, catcher): Ditto.
2820 * sparclet-rom.c (sparclet_load): Ditto.
2821 * remote.c (interrupt_query, minitelnet): Ditto.
2822 * remote-sds.c (interrupt_query): Ditto.
2823 * remote-mips.c (mips_error, mips_kill): Ditto.
2824 * ocd.c (interrupt_query): Ditto.
2825 * monitor.c (monitor_interrupt_query): Ditto.
2826 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
2827 * target.h: Update comment.
aaa38bb5 2828
b5a2688f 2829 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 2830
2fa5c1e0
AC
28312002-02-09 Andrew Cagney <ac131313@redhat.com>
2832
2833 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
2834 default_double_format.
2835 * gdbarch.h, gdbarch.c: Re-generate.
2836 * findvar.c (floatformat_unknown): Delete variable definition.
2837 * doublest.h (floatformat_unknown): Delete variable declaration.
2838
da966255
JB
28392002-02-09 Jim Blandy <jimb@redhat.com>
2840
2841 * stabsread.c (read_type): Add code to parse Sun's syntax for
2842 prototyped function types.
2843
123a4891
AC
28442002-02-09 Andrew Cagney <ac131313@redhat.com>
2845
2846 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
2847 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
2848
fb39c8f3
PS
28492002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
2850
2851 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
2852 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
2853 now _initialize_xcoffsolib gets called again and overrides the
2854 commands from solib.c in a native configuration.
2855
0b87a11d
MK
28562002-02-09 Mark Kettenis <kettenis@gnu.org>
2857
2858 * doublest.c (store_typed_floating): Don't try to return a value.
2859 Fixes PR gdb/290.
2860
bdc2fc72
JB
28612002-02-08 Jim Blandy <jimb@redhat.com>
2862
2863 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
2864 is prototyped and has no arguments, print its argument list as
2865 `(void)'.
2866
da69bbcf
CD
28672002-02-08 Chris Demetriou <cgd@broadcom.com>
2868
2869 * MAINTAINERS (write-after-approval): Add myself.
2870 (paper-trail): I've escaped!
aaa38bb5 2871
b69571f5
CF
28722002-02-08 Christopher Faylor <cgf@redhat.com>
2873
2874 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
2875 changes.
2876 (_initialize_check_for_gdb_ini): Ditto.
2877
f6871398
MH
28782002-02-08 Martin M. Hunt <hunt@redhat.com>
2879
2880 * win32-nat.c (cygwin_pid_to_str): Fix typo.
2881 xaprintf -> xasprintf.
2882
4e52d31c
PM
28832002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
2884
2885 * win32-nat.c: Remove use of printf and sprintf functions.
2886
39bbf761
RE
28872002-02-08 Richard Earnshaw <rearnsha@arm.com>
2888
2889 * arm-tdep.c (arm_frame_chain_valid): Make static.
2890 (arm_push_arguments): Likewise.
2891 (arm_gdbarch_init): New function.
2892 (_initialize_arm_tdep): Call it.
2893 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
2894 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
2895 (FRAME_CHAIN_VALID): Delete.
2896 (arm_frame_chain_valid): Delete declaration.
2897 (PUSH_ARGUMENTS): Delete.
2898 (arm_push_arguments): Delete declaration.
2899 (CALL_DUMMY_P): Delete.
2900
9c9532c9
CV
29012002-02-08 Andrew Cagney <ac131313@redhat.com>
2902 Corinna Vinschen <vinschen@redhat.com>
2903
2904 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
2905 on builtin float types.
2906
4e8f7a8b
DJ
29072002-02-08 Daniel Jacobowitz <drow@mvista.com>
2908
2909 * utils.c: Include <curses.h> before "bfd.h".
2910 * tui/tui-hooks.c: Likewise.
2911 * tui/tui.c: Likewise.
2912 * tui/tuiCommand.c: Likewise.
2913 * tui/tuiData.c: Likewise.
2914 * tui/tuiDataWin.c: Likewise.
2915 * tui/tuiDisassem.c: Likewise.
2916 * tui/tuiGeneralWin.c: Likewise.
2917 * tui/tuiIO.c: Likewise.
2918 * tui/tuiLayout.c: Likewise.
2919 * tui/tuiRegs.c: Likewise.
2920 * tui/tuiSource.c: Likewise.
2921 * tui/tuiSourceWin.c: Likewise.
2922 * tui/tuiStack.c: Likewise.
2923 * tui/tuiWin.c: Likewise.
2924
cd4bffcf
EZ
29252002-02-07 Elena Zannoni <ezannoni@redhat.com>
2926
2927 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
2928 to include space for pseudoregs as well. Update loops accordingly.
2929 (sh_fp_frame_init_saved_regs): Ditto.
2930 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
2931
26806ce2
AC
29322002-02-07 Andrew Cagney <ac131313@redhat.com>
2933
2934 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
2935 Add Richard Earnshaw to Arm maintainers.
2936
97fdab62
AC
29372002-02-07 Andrew Cagney <ac131313@redhat.com>
2938
a6b98203
AC
2939 * defs.h (warning_begin): Delete declaration.
2940
97fdab62
AC
2941 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
2942 Delete macro.
2943
78b29b40
MS
29442002-02-07 Michael Snyder <msnyder@redhat.com>
2945
aaa38bb5 2946 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
2947 Logic bug, remove misplaced else.
2948
d8849953
KD
29492002-02-07 Klee Dienes <klee@apple.com>
2950
2951 * fork-inferior.c (fork_inferior): Add '!' to the list of
2952 characters that need to be quoted when building a string for the
2953 shell. Quote '!' specifically with a backslash, since CSH chokes
2954 when trying to evaluate "str!str".
aaa38bb5 2955
095778a0
NC
29562002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2957
2958 * rdi-share/host.h: Only provide a typedef for bool if it is not
2959 defined.
2960
1900040c
MS
29612002-02-04 Michael Snyder <msnyder@redhat.com>
2962
2963 * breakpoint.h (enum bptype): Add new overlay event bp type.
2964 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 2965
1900040c
MS
2966 * breakpoint.c (create_internal_breakpoint): New function.
2967 (internal_breakpoint_number): Moved into create_internal_breakpoint.
2968 (create_longjmp_breakpoint): Use create_internal_breakpoint.
2969 (create_thread_event_breakpoint): Ditto.
2970 (create_solib_event_breakpoint): Ditto.
2971 (create_overlay_event_breakpoint): New function.
2972 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
2973 (update_breakpoints_after_exec): Delete and re-initialize
2974 overlay event breakpoints after an exec. Add FIXME comment
2975 about longjmp breakpoint.
2976 (print_it_typical): Ignore overlay event breakpoints.
2977 (print_one_breakpoint): Ditto.
2978 (mention): Ditto.
2979 (bpstat_what): Do not stop for overlay event breakpoints.
2980 (delete_breakpoint): Don't delete overlay event breakpoints.
2981 (breakpoint_re_set_one): Delete the overlay event breakpoint.
2982 (breakpoint_re_set): Re-create overlay event breakpoint.
2983
2984 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
2985 (overlay_manual_command): Disable overlay breakpoints.
2986 (overlay_off_command): Disable overlay breakpoints.
2987
082fc60d
RE
29882002-02-06 Richard Earnshaw <rearnsha@arm.com>
2989
2990 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
2991 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
2992 to here from config/tm-arm.h.
2993 (coff_sym_is_thumb): Make static.
2994 (arm_elf_make_msymbol_special): New function.
2995 (arm_coff_make_msymbol_special): New function.
2996 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
2997 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
2998 (coff_sym_is_thumb): Delete declaration.
2999 (arm_elf_make_msymbol_special): Declare.
3000 (arm_coff_make_msymbol_special): Declare.
3001 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
3002 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
3003
039c5766
RE
30042002-02-06 Richard Earnshaw <rearnsha@arm.com>
3005
3006 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
3007
30082002-02-06 Richard Earnshaw <rearnsha@arm.com>
3009
3010 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
3011 * gdbarch.c gdbarch.h: Regenerate.
3012 * arch-utils.c (default_print_float_info): New function.
3013 * arch-utils.h (default_print_float_info): Prototype it.
3014 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
3015 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
3016 (PRINT_FLOAT_INFO): Document it.
3017
3018 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
3019 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
3020 (PRINT_FLOAT_INFO): Define.
3021
58fa08f0
PM
30222002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
3023
aaa38bb5 3024 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
3025 Add typecast to sprintf argument to suppress a warning.
3026
7393af7c
PM
30272002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
3028
58fa08f0 3029 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
3030 to allow easier handling of pass state.
3031 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
3032 that gives exception name and address.
3033 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 3034 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 3035 exceptions added.
aaa38bb5
AJ
3036 (child_continue): Correctly report continue_status.
3037 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 3038 TARGET_SIGNAL_0 (new default value).
aaa38bb5 3039 (child_resume): consider sig argument passed to decide if
7393af7c
PM
3040 the exception should be passed to debuggee or not.
3041
6af4589c
MS
30422002-02-05 Michael Snyder <msnyder@redhat.com>
3043
3044 * regcache.c (fetch_register): Call target_fetch_register
3045 only if we don't call FETCH_PSEUDO_REGISTER.
3046 (store_register): Call target_store_register only if we
3047 don't call STORE_PSEUDO_REGISTER.
3048
a2cf933a
EZ
30492002-02-05 Elena Zannoni <ezannoni@redhat.com>
3050
3051 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
3052 ELF_MAKE_MSYMBOL_SPECIAL.
3053 * gdbarch.c, gdbarch.h: Regenerate.
3054 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 3055 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
3056 * elfread.c (elf_symtab_read): Compile use of
3057 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
3058 multiarched.
3059 * coffread.c (coff_symtab_read): Ditto, for
3060 COFF_MAKE_MSYMBOL_SPECIAL.
3061
6bb7be43
JB
30622002-02-05 Jim Blandy <jimb@redhat.com>
3063
3064 * solib-svr4.c (svr4_truncate_ptr): New function.
3065 (svr4_relocate_section_addresses): Do the address arithmetic with
3066 the appropriate truncation for target addresses, even when
3067 CORE_ADDR is larger than a target address.
3068
e18651ec
DJ
30692002-02-05 Daniel Jacobowitz <drow@mvista.com>
3070
3071 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
3072 to (int *).
3073
6b2725be
DJ
30742002-02-05 Daniel Jacobowitz <drow@mvista.com>
3075
3076 * gdbserver/linux-low.c (kill_inferior): Remove commented out
3077 code.
3078
fca9e603
DJ
30792002-02-05 Daniel Jacobowitz <drow@mvista.com>
3080
3081 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
3082
6c537a52
DJ
30832002-02-05 Daniel Jacobowitz <drow@mvista.com>
3084
3085 * gdbserver/linux-low.c: Remove unused include files.
3086
d844cde6
DJ
30872002-02-05 Daniel Jacobowitz <drow@mvista.com>
3088
3089 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
3090 (read_inferior_memory): Use it.
3091 (write_inferior_memory): Likewise.
3092
d07c63e7
DJ
30932002-02-05 Daniel Jacobowitz <drow@mvista.com>
3094
3095 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
3096 grubbing through sys_errlist.
3097
da6d8c04
DJ
30982002-02-05 Daniel Jacobowitz <drow@mvista.com>
3099
3100 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
3101
5b421780
PM
31022002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3103 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
3104
9f60d481
AC
31052002-02-04 Andrew Cagney <ac131313@redhat.com>
3106
3107 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
3108 (do_sfunc, set_cmd_sfunc): New functions.
3109
3110 * command.h (struct cmd_list_element): Add field func.
3111 * cli/cli-decode.h (struct cmd_list_element): Ditto.
3112 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
3113 * cli/cli-decode.h: Ditto.
3114
3115 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
3116 (help_all, help_cmd_list): Ditto.
3117 (find_cmd, complete_on_cmdlist): Ditto.
3118 * top.c (execute_command): Ditto.
3119
3120 * cli/cli-setshow.c (do_setshow_command): Call func instead of
3121 function.sfunc.
3122
3123 * infcmd.c (notice_args_read): Fix function signature.
3124
3125 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
3126 * cli/cli-decode.c (add_set_cmd): Ditto.
3127 * utils.c (initialize_utils): Ditto.
3128 * maint.c (_initialize_maint_cmds): Ditto.
3129 * infrun.c (_initialize_infrun): Ditto.
3130 * demangle.c (_initialize_demangler): Ditto.
3131 * remote.c (add_packet_config_cmd): Ditto.
3132 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3133 * cris-tdep.c (_initialize_cris_tdep): Ditto.
3134 * proc-api.c (_initialize_proc_api): Ditto.
3135 * kod.c (_initialize_kod): Ditto.
3136 * valprint.c (_initialize_valprint): Ditto.
3137 * top.c (init_main): Ditto.
3138 * infcmd.c (_initialize_infcmd): Ditto.
3139 * corefile.c (_initialize_core): Ditto.
3140 * arm-tdep.c (_initialize_arm_tdep): Ditto.
3141 * arch-utils.c (initialize_current_architecture): Ditto.
3142 (_initialize_gdbarch_utils): Ditto.
3143 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
3144
3145 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
3146 * wince.c (_initialize_inftarg): Ditto.
3147 * symfile.c (_initialize_symfile): Ditto.
3148 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3149 * language.c (_initialize_language): Ditto.
3150 * arc-tdep.c (_initialize_arc_tdep): Ditto.
3151
f9ba0717
MS
31522002-02-04 Michael Snyder <msnyder@redhat.com>
3153
3154 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
3155
0c74b2a7
DJ
31562002-02-04 Daniel Jacobowitz <drow@mvista.com>
3157
3158 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
3159 Add rules for building the register data files.
3160
c638789f
DJ
31612002-02-04 Daniel Jacobowitz <drow@mvista.com>
3162
3163 * regformats/regdat.sh: Add braces to the definition of
3164 expedite_regs_${arch}.
3165
db253027
DJ
31662002-02-04 Daniel Jacobowitz <drow@mvista.com>
3167
3168 * regformats/regdef.h (struct reg): Add comment describing the
3169 requirements for offset and size fields.
3170
206be19c
AS
31712002-02-04 Andreas Schwab <schwab@suse.de>
3172
3173 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
3174 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
3175
181c1381
RE
31762002-02-04 Richard Earnshaw <rearnsha@arm.com>
3177
3178 * gdbarch.sh (copyright): Update years in generated header.
3179 (SMASH_TEXT_ADDRESS): Add rule.
db253027 3180 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
3181 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
3182 * dbxread.c: Likewise.
3183 * dwarfread.c: Likewise.
3184 * elfread.c: Likewise.
3185 * somread.c: Likewise.
3186
3187 * arm-tdep.c (arm_smash_text_address): New function.
3188 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
3189
fa4ba8da
PM
31902002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
3191
3192 Add support for hardware watchpoints on win32 native.
aaa38bb5 3193 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 3194 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 3195 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
3196 of debug registers.
3197 (debug_registers_changed): New variable. Reflects when debug registers
3198 are changed and need to be written to inferior.
aaa38bb5 3199 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
3200 was set, used when new threads are created.
3201 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
3202 i386-nat code.
3203 (thread_rec): Set dr array if id is the thread of current_event .
3204 (child_continue, child_resume): Change the debug registers for all
3205 threads if debug_registers_changed.
3206 (child_add_thread): Change the debug registers if debug_registers_used.
3207 * config/i386/cygwin.mh: Add use of i386-nat.o file.
3208 Link nm.h to new nm-cygwin.h file.
3209 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
3210 of hardware registers.
3211
a73c86fb
AC
32122002-02-03 Andrew Cagney <ac131313@redhat.com>
3213
3214 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
3215 Restore behavour broken by 2002-01-20 Andrew Cagney
3216 <ac131313@redhat.com> IEEE_FLOAT removal.
3217
acf5ed49
DJ
32182002-02-03 Daniel Jacobowitz <drow@mvista.com>
3219
3220 * c-valprint.c (c_val_print): Pass a proper valaddr to
3221 cp_print_class_method.
3222 * valops.c (search_struct_method): If there is only one method
3223 and args is NULL, return that method.
3224
493d28d5
DJ
32252002-02-03 Daniel Jacobowitz <drow@mvista.com>
3226
3227 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
3228 accessing tag_name directly.
3229
7495dfdb
DJ
32302002-02-03 Daniel Jacobowitz <drow@mvista.com>
3231
3232 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
3233 of accessing tag_name directly.
3234
dd6bda65
DJ
32352002-02-03 Daniel Jacobowitz <drow@mvista.com>
3236
3237 PR gdb/280
3238 * gdbtypes.c (replace_type): New function.
3239 * gdbtypes.h (replace_type): Add prototype.
3240 * stabsread.c (read_type): Use replace_type.
3241
88fe217c
RE
32422002-02-03 Richard Earnshaw <rearnsha@arm.com>
3243
3244 * Makefile.in (memattr.o): Add missing dependencies rule.
3245
e5d66720
PS
32462002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
3247
3248 * breakpoint.c (break_at_finish_command): Really export.
3249 (break_at_finish_at_depth_command): Ditto.
3250 (tbreak_at_finish_command): Ditto.
3251 * hppa-tdep.c: Include completer.h.
3252 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
3253 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
3254
fffee0be
AC
32552002-02-01 Andrew Cagney <ac131313@redhat.com>
3256
3257 * utils.c (do_write): New function.
3258 (error_stream): Rewrite combining the code from error_begin and
3259 verror.
3260 (verror): Rewrite using error_stream.
3261 (error_begin): Delete function.
3262
255e7dbf
AC
32632002-02-01 Andrew Cagney <ac131313@redhat.com>
3264
3265 * utils.c (error_begin): Make static.
3266 * defs.h (error_begin): Delete declaration.
3267
3268 * linespec.c (cplusplus_error): Replace cplusplus_hint.
3269 (decode_line_1): Use cplusplus_error instead of error_begin,
3270 cplusplus_hint and return_to_top_level.
3271 * coffread.c (coff_symfile_read): Use error instead of error_begin
3272 and return_to_top_level.
3273 * infrun.c (default_skip_permanent_breakpoint): Ditto.
3274
ddfe3c15
AC
32752002-02-01 Andrew Cagney <ac131313@redhat.com>
3276
3277 * language.h (type_error, range_error): Make string parameter
3278 constant.
3279 * language.c (warning_pre_print): Delete extern declaration.
3280 * dwarfread.c (warning_pre_print): Ditto.
3281 * language.c (type_error, range_error): Rewrite to use verror and
3282 vwarning instead of warning_begin.
3283
03ac34d5
MS
32842002-02-01 Michael Snyder <msnyder@redhat.com>
3285
261c4ca2
MS
3286 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
3287 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 3288
e00d1dc8
AC
32892002-02-01 Andrew Cagney <ac131313@redhat.com>
3290
3291 * command.h (NO_FUNCTION): Delete macro.
3292 * cli/cli-decode.h (NO_FUNCTION): Ditto.
3293 * top.c (execute_command): Replace NO_FUNCTION with NULL.
3294 * tracepoint.c (_initialize_tracepoint): Ditto.
3295 * cli/cli-decode.c (add_set_cmd): Ditto.
3296 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 3297
76b79d6e
DJ
32982002-02-01 Daniel Jacobowitz <drow@mvista.com>
3299
3300 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
3301 Update ``this'' pointer when calling virtual functions.
3302
799f9e91
MS
33032002-02-01 Michael Snyder <msnyder@redhat.com>
3304
c7bd442c 3305 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
3306 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
3307
3cf384d4
DJ
33082002-02-01 Daniel Jacobowitz <drow@mvista.com>
3309
3310 * regformats/reg-arm.dat: New file.
3311 * regformats/reg-i386.dat: New file.
3312 * regformats/reg-ia64.dat: New file.
3313 * regformats/reg-m68k.dat: New file.
3314 * regformats/reg-mips.dat: New file.
3315 * regformats/reg-ppc.dat: New file.
3316 * regformats/reg-sh.dat: New file.
3317 * regformats/regdef.h: New file.
3318 * regformats/regdat.sh: New file.
3319
0defa245
RE
33202002-02-01 Richard Earnshaw <reanrsha@arm.com>
3321
3322 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
3323 (arm_frame_args_address, arm_frame_locals_address): New functions.
3324 (arm_frame_num_args): New function.
3325 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
3326 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
3327 (FRMA_NUM_ARGS): Call arm_frame_num_args.
3328
405f26e6
MS
33292002-01-31 Michael Snyder <msnyder@redhat.com>
3330
502fd408
MS
3331 * breakpoint.c (break_at_finish_command): Export.
3332 (break_at_finish_at_depth_command): Export.
3333 (tbreak_at_finish_command): Export.
3334 (_initialize_breakpoint): Delete "xbreak" and "tbreak" commands.
3335 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
3336 "tbreak" commands, which are HPPA specific.
3337
7d35e135
MS
3338 * printcmd.c (disassemble_command): Remove an ancient
3339 artifact of an old merge.
3340
aaa38bb5 3341 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
3342 Define enum constant values for overlay mode.
3343 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
3344 (overlay_is_mapped, overlay_auto_command,
3345 overlay_manual_command): Ditto.
d874f1e2 3346
aaa38bb5
AJ
3347 * breakpoint.c (insert_breakpoints, remove_breakpoint,
3348 breakpoint_here_p, breakpoint_inserted_here_p,
3349 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
3350 describe_other_breakpoints, check_duplicates, clear_command):
3351 Coding standard fixes.
3352
8add0441 3353 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 3354 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
3355 code: check bfd SEC_READONLY flag for section.
3356
e351066e
AC
33572002-01-31 Andrew Cagney <ac131313@redhat.com>
3358
7d35e135 3359 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 3360
8a48e967
DJ
33612002-01-30 Daniel Jacobowitz <drow@mvista.com>
3362
3363 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
3364 data symbols, since we search based on textlow and texthigh.
3365 (find_pc_sect_symtab): Likewise.
3366
f5a96129
AC
33672002-01-30 Andrew Cagney <ac131313@redhat.com>
3368
3369 * defs.h (vwarning): Declare.
f5a96129
AC
3370 * utils.c (vwarning): New function.
3371 (warning): Call vwarning.
3372 (warning_begin): Delete function.
3373
3374 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
3375 the warning message.
3376 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
3377 warning_begin.
3378
cefd4ef5
MS
33792002-01-30 Michael Snyder <msnyder@redhat.com>
3380
1a703748
MS
3381 * NEWS: Mention "set trust-readonly-sections" command.
3382 Mention generate-core-file command.
cefd4ef5 3383
3a11626d
MS
33842002-01-15 Michael Snyder <msnyder@redhat.com>
3385
3386 * target.c: New command, "set trust-readonly-sections on".
3387 (do_xfer_memory): Honor the suggestion to trust readonly sections
3388 by reading them from the object file instead of from the target.
3389 (initialize_targets): Register command "set trust-readonly-sections".
3390
d1c7e53b
AC
33912002-01-29 Andrew Cagney <ac131313@redhat.com>
3392
3393 * parse.c (target_map_name_to_register): Simplify, search regs and
3394 pseudo-regs using a single loop.
3395
e2c9a72c
AC
33962002-01-30 Andrew Cagney <ac131313@redhat.com>
3397
3398 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
3399
69824b4e
MK
34002002-01-15 Rodney Brown <rbrown64@csc.com.au>
3401
3402 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
3403 * config/i386/i386v42mp.mh: Add i387-nat.o .
3404 * i386v4-nat.c: Include i387-nat.h.
3405 (supply_fpregset): Use i387_supply_fsave.
3406 (fill_fpregset): Use i387_fill_fsave.
3407
6eb69eab
RE
34082002-01-30 Richard Earnshaw <rearnsha@arm.com>
3409
3410 * arm-tdep.c (arm_call_dummy_words): Define.
3411 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
3412 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
3413 (CALL_DUMMY_WORDS): Define.
3414 (arm_call_dummy_words): Declare.
3415 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
3416 (arm_linux_call_dummy_words): Declare.
3417
9852326a
AS
34182002-01-30 Andreas Schwab <schwab@suse.de>
3419
3420 * m68klinux-nat.c: Fix last change to use regcache_collect
3421 instead of referencing registers[] directly.
3422
977a3030
AC
34232002-01-29 Andrew Cagney <ac131313@redhat.com>
3424
3425 * parse.c (target_map_name_to_register): Delete code wrapped in
3426 #ifdef REGISTER_NAME_ALIAS_HOOK.
3427
2076c72b
MS
34282002-01-28 Michael Snyder <msnyder@redhat.com>
3429
3430 * regcache.c (legacy_read_register_gen): Need to be able to
3431 read pseudo-register as well as real register.
3432 (legacy_write_register_gen): Ditto.
3433
8fcc723b
AC
34342002-01-28 Andrew Cagney <ac131313@redhat.com>
3435
3436 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3437 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
3438 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
3439 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
3440 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
3441 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
3442 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
3443 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
3444 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
3445 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
3446 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
3447 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
3448 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
3449 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
3450 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
3451 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
3452 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
3453 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
3454 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
3455 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
3456
afe64c1a
AC
34572002-01-28 Andrew Cagney <ac131313@redhat.com>
3458
3459 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
3460 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
3461 (initialize_current_architecture): Update target_byte_order using
3462 information from BFD.
aaa38bb5 3463 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
3464 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
3465
75bc7ddf
AC
34662002-01-28 Andrew Cagney <ac131313@redhat.com>
3467
3468 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
3469 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
3470
3471 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
3472 #ifdef INVALID_FLOAT.
3473 * infcmd.c (do_registers_info): Ditto.
3474 * values.c (unpack_double): Ditto. Add comment.
3475
3476 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
3477 already commented out.
3478
0280a90a
AS
34792002-01-26 Andreas Schwab <schwab@suse.de>
3480
3481 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
3482 * m68klinux-nat.c: Update ptrace interface for fetching/storing
3483 registers and add support for PTRACE_GETREGS.
3484
7072a954
AC
34852002-01-24 Andrew Cagney <ac131313@redhat.com>
3486
3487 GDB 5.1.1 released from 5.1 branch.
3488 * NEWS: Add 5.1.1 news.
3489 * README: Sync with 5.1 branch.
3490
86f902e0
FF
34912002-01-23 Fred Fish <fnf@redhat.com>
3492
3493 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
3494 stabstring on initial malloc. Reallocing will copy it for us,
3495 if necessary.
3496
8af51c36
EZ
34972002-01-23 Elena Zannoni <ezannoni@redhat.com>
3498
aaa38bb5 3499 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
3500 (HFILES_NO_SRCDIR): Remove hpread.h.
3501 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
3502 (hpread.o): Update dependencies.
3503 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
3504
3505 * hp-psymtab-read.c: Remove file.
3506 * hp-symtab-read.c: Remove file.
3507 * hpread.h: Remove file.
3508
3509 * hpread.c: Merge all contents of hp-psymtab-read.c,
3510 hp-symtab-read.c and hpread.h into this file, as it was prior to
3511 January 1999.
3512
3513 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 3514 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
3515 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
3516 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
3517
dc5cfeb6
EZ
35182002-01-23 Elena Zannoni <ezannoni@redhat.com>
3519
3520 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
3521 fill_gregset): Call gdbarch_tdep() just once, assign result to
3522 variable and use that, instead of calling the function several
3523 times.
3524
ea87b71b
AO
35252002-01-24 Alexandre Oliva <aoliva@redhat.com>
3526
3527 * configure.host: Accept sparcv9 as alias for sparc64.
3528 * configure.tgt: Likewise.
3529
13fc0c2f
KB
35302002-01-22 Kevin Buettner <kevinb@redhat.com>
3531
3532 * solib-aix5.c (build_so_list_from_mapfile)
3533 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
3534 arguments is not reversed.
3535 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
3536 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 3537
7bd872fe
EZ
35382002-01-22 Elena Zannoni <ezannoni@redhat.com>
3539
3540 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
3541 modified version of obsolete sh_fetch_pseudo_register.
3542 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
3543 (sh4_register_read): New function.
3544 (sh_pseudo_register_write): New function. Renamed and modified
3545 version of obsolete sh_store_pseudo_register.
3546 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
3547 (sh4_register_write): New function.
3548 (sh_gdbarch_init): Remove setting of gdbarch function
3549 fetch_pseudo_register and store_pseudo_register. Remove setting of
3550 register_convert_to_raw, register_convert_to_virtual,
3551 register_convertible.
3552 (sh_sh4_register_convertible): Delete. No longer needed. All is
3553 taken care by architecture specific functions
3554 register_read/register_write.
3555 (sh_sh4_register_convert_to_virtual): Make static.
3556 (sh_sh4_register_convert_to_raw): Ditto.
3557
069e84fd
AC
35582002-01-22 Andrew Cagney <ac131313@redhat.com>
3559
3560 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
3561 (floatformat_is_nan, floatformat_mantissa): Ditto.
3562
3563 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
3564 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
3565 builtin_type_ieee_double_little,
3566 builtin_type_ieee_double_littlebyte_bigword,
3567 builtin_type_m68881_ext, builtin_type_i960_ext,
3568 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
3569 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
3570 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
3571 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
3572
211a4f69
CV
35732002-01-22 Corinna Vinschen <vinschen@redhat.com>
3574
3575 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
3576 parameter. Set frameless flag if it exists and depended of
3577 whether the scanned function is frameless or not.
3578 (xstormy16_skip_prologue): If function is frameless, return
3579 result of xstormy16_scan_prologue().
3580 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
3581 call.
3582
f81353e4
EZ
35832002-01-21 Elena Zannoni <ezannoni@redhat.com>
3584
3585 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
3586 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
3587 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
3588 sh_sh4_register_byte, sh_sh4_register_raw_size,
3589 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
3590 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
3591 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
3592 sh_store_pseudo_register, sh_do_pseudo_register): Call
3593 gdbarch_tdep() just once, assign result to variable and use that,
3594 instead of calling the function several times.
3595
63c73a17
MK
35962002-01-20 Mark Kettenis <kettenis@gnu.org>
3597
3598 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
3599 macros instead of LAST_FPU_CTRL_REGNUM.
3600 (store_register): Likewise.
3601
39ad761d
JB
36022002-01-21 Jim Blandy <jimb@redhat.com>
3603
3604 * infcmd.c (run_command): Check that the `exec' target layer's BFD
3605 is up-to-date before running the program, not just when a program
3606 exits.
3607
3d74b771
FF
36082002-01-21 Fred Fish <fnf@redhat.com>
3609
3610 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
3611 when we have found all instructions we are looking for.
3612
966fbf70
RE
36132002-01-21 Richard Earnshaw <rearnsha@arm.com>
3614
3615 * arm-tdep.c (arm_register_name): New function.
3616 (arm_registers_names): Make static.
3617 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
3618 (arm_register_name): Declare.
3619 (REGISTER_NAME): Use it.
3620
c3b4394c
RE
36212002-01-21 Richard Earnshaw <rearnsha@arm.com>
3622 Kevin Buettner <kevinb@redhat.com>
3623
3624 Convert arm targets to new FRAME interface.
3625 * arm-tdep.c (struct frame_extra_info): Remove fsr.
3626 (arm_frame_find_save_regs): Delete.
3627 (arm_frame_init_saved_regs): New.
3628 (arm_init_extra_frame_info): Alloacte saved_regs as required.
3629 Allocate extra_info as required. Convert all uses of fsr.regs
3630 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
3631 to use extra_info.
3632 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
3633 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
3634 (check_prologue_cache, save_prologue_cache): Likewise.
3635 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
3636 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
3637 (FRAME_FIND_SAVED_REGS): Delete.
3638 (arm_frame_find_saved_regs): Delete prototype.
3639 (arm_frame_init_saved_regs): New prototype.
3640 (FRAME_INIT_SAVED_REGS): Define.
3641
61d99182
AC
36422002-01-20 Andrew Cagney <ac131313@redhat.com>
3643
3644 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
3645
6aaea291
AC
36462002-01-20 Andrew Cagney <ac131313@redhat.com>
3647
3648 From Jeff Law <law@redhat.com>:
3649 * infttrace.c: Include <sys/pstat.h>.
3650 (child_pid_to_exec_file): Revamp. Use pstat call to get the
3651 exec file if the ttrace equivalent fails.
3652
15f698d2
AC
36532002-01-20 Andrew Cagney <ac131313@redhat.com>
3654
3655 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
3656 (closeLogFile): Ditto.
3657
f86ddd7c
MC
36582002-01-20 Michael Chastain <mec@shout.net>
3659
3660 * top.c (print_gdb_version): Bump copyright year to 2002.
3661
904507ce
AC
36622002-01-20 Andrew Cagney <ac131313@redhat.com>
3663
3664 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
3665 Zannoni and Eli Zaretskii.
3666
d7f0b9ce
DJ
36672002-01-20 Daniel Jacobowitz <drow@mvista.com>
3668
3669 * buildsym.c: Update copyright years.
3670 * c-typeprint.c: Likewise.
3671 * dwarf2read.c: Likewise.
3672 * f-typeprint.c: Likewise.
3673 * gdbtypes.c: Likewise.
3674 * gdbtypes.h: Likewise.
3675 * hp-symtab-read.c: Likewise.
3676 * hpread.c: Likewise.
3677 * mdebugread.c: Likewise.
3678 * p-typeprint.c: Likewise.
3679
3fd3d7d2
AC
36802002-01-20 Andrew Cagney <ac131313@redhat.com>
3681
3682 * remote-sim.c (gdbsim_open): Simplify code testing the macro
3683 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
3684 byte-order selectable.
3685 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
3686 * arch-utils.c: Ditto.
3687 (set_endian): Ditto.
3688 (set_endian_from_file): Ditto.
3689 * gdbserver/low-sim.c (create_inferior): Ditto.
3690 * gdbarch.sh: Ditto.
3691 * gdbarch.h: Re-generate.
aaa38bb5
AJ
3692 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3693 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
3694 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
3695 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3696 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3697 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
3698 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
3699 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
3700 macro definition.
3701 * config/mips/tm-wince.h: Remove #undef of macro
3702 TARGET_BYTE_ORDER_SELECTABLE.
3703 * config/sh/tm-wince.h: Ditto.
3704
b02dede2
DJ
37052002-01-20 Daniel Jacobowitz <drow@mvista.com>
3706
3707 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
3708 member function fields. Add accessor macro
3709 TYPE_FN_FIELD_ARTIFICIAL.
3710 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
3711 * c-typeprint.c (c_type_print_base): Skip artificial member
3712 functions.
3713
c3643761
DJ
37142002-01-20 Daniel Jacobowitz <drow@mvista.com>
3715
3716 * f-typeprint.c: Delete unused function f_type_print_args.
3717 * p-typeprint.c: Delete unused function pascal_type_print_args.
3718
8176bb6d
DJ
37192002-01-20 Daniel Jacobowitz <drow@mvista.com>
3720
3721 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
3722 comment. Add ``artificial'' to ``union field_location''.
3723
3724 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
3725
3726 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
3727 * mdebugread.c (parse_symbol): Likewise.
3728 * stabsread.c (define_symbol): Likewise.
3729 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
3730 initializing TYPE_FIELD_BITPOS to n (obsolete).
3731 (hpread_doc_function_type): Likewise.
3732 * hpread.c (hpread_function_type): Likewise.
3733
7fd60527
AC
37342002-01-20 Andrew Cagney <ac131313@redhat.com>
3735
3736 * configure.in (host_makefile_frag): Only require a host makefile
3737 fragment when a native build.
3738 * configure: Re-generate.
3739
c2f05ac9
AC
37402002-01-20 Andrew Cagney <ac131313@redhat.com>
3741
3742 * doublest.h (floatformat_from_type): Declare.
3743 * doublest.c (floatformat_from_type): New function.
3744 (convert_typed_floating): Use.
3745
3746 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
3747 call to function floatformat_from_type.
3748
3749 * gdbarch.sh (IEEE_FLOAT): Delete.
3750 * gdbarch.h, gdbarch.c: Re-generate.
3751 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
3752 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
3753 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
3754 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
3755 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
3756 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
3757 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
3758 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
3759 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
3760 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
3761 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
3762 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
3763
3764 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
3765 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
3766 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3767 * sh-tdep.c (sh_gdbarch_init): Ditto.
3768 * mips-tdep.c (mips_gdbarch_init): Ditto.
3769 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3770 * cris-tdep.c (cris_gdbarch_init): Ditto.
3771
abf22e64
AJ
37722002-01-20 Jiri Smid <smid@suse.cz>
3773
3774 * configure.host, configure.tgt: Support x86-64.
3775 * NEWS: Note new target x86-64.
3776
b7c4cbf8
AJ
3777 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
3778 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
3779 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
3780 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
3781 x86-64-linux-nat.o): Fix dependencies.
3782
82600034
AC
37832002-01-19 Andrew Cagney <ac131313@redhat.com>
3784
3785 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
3786 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
3787 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
3788 * config/sparc/xm-sun4os4.h: Delete file.
3789 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 3790
bbe5c628
AC
37912002-01-19 Andrew Cagney <ac131313@redhat.com>
3792
3793 * config/sparc/sparclynx.mh (XM_FILE): Delete.
3794 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
3795 * config/m68k/m68klynx.mh (XM_FILE): Delete.
3796 * config/i386/i386lynx.mh (XM_FILE): Delete.
3797 * config/rs6000/xm-rs6000ly.h: Delete file.
3798 * config/sparc/xm-sparclynx.h: Delete file.
3799 * config/m68k/xm-m68klynx.h: Delete file.
3800 * config/i386/xm-i386lynx.h: Delete file.
3801 * config/xm-lynx.h: Delete file.
3802 * config/djgpp/fnchange.lst: Update.
3803
f8453e34
JT
38042002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3805
3806 * alpha-tdep.c (alpha_register_byte): New function.
3807 (alpha_register_raw_size): Ditto.
3808 (alpha_register_virtual_size): Ditto.
3809 (alpha_skip_prologue_internal): Renamed from
3810 alpha_skip_prologue.
3811 (alpha_skip_prologue): New version that calls
3812 alpha_skip_prologue_internal.
3813 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
3814 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
3815 second argument from alpha_skip_prologue.
3816 (REGISTER_BYTE): Use alpha_register_byte.
3817 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
3818 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
3819 (FRAMELESS_FUNCTION_INVOCATION): Use
3820 generic_frameless_function_invocation_not.
3821 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
3822 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
3823
52d9e613
AC
38242002-01-19 Andrew Cagney <ac131313@redhat.com>
3825
3826 * config/mips/xm-news-mips.h: Delete file.
3827 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
3828
3829 * config/m88k/xm-m88k.h: Delete file.
3830 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
3831 * config/m88k/xm-delta88v4.h: Ditto.
3832 * config/m88k/xm-delta88.h: Ditto.
3833
3834 * config/alpha/xm-fbsd.h: Delete file.
3835 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
3836
3837 * config/sparc/xm-sparc.h: Delete file.
3838 * Makefile.in (xm-sun4os4.h): Delete dependency.
3839 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
3840 * config/sparc/xm-sun4os4.h: Ditto.
3841 * config/sparc/xm-linux.h: Ditto.
3842
3843 * config/i386/xm-windows.h: Delete file.
3844
2d1b2124
AC
38452002-01-19 Andrew Cagney <ac131313@redhat.com>
3846
3847 * utils.c: Include <sys/param.h> for MAXPATHLEN.
3848 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
3849
ee1f65f0
JT
38502002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3851
3852 * alpha-tdep.c (alpha_call_dummy_words): New.
3853 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
3854 (CALL_DUMMY_P): Define.
3855 (CALL_DUMMY_WORDS): Define.
3856 (SIZEOF_CALL_DUMMY_WORDS): Define.
3857
98081e55
PB
38582002-01-19 Per Bothner <per@bothner.com>
3859
3860 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
3861 isn't NULL, which can happen with some gcj-3.x-produced code.
3862
0d056799
JT
38632002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
3864
3865 * alpha-tdep.c (alpha_register_virtual_type): New function.
3866 (alpha_init_frame_pc_first): Ditto.
3867 (alpha_fix_call_dummy): Ditto.
3868 (alpha_store_struct_return): Ditto.
3869 (alpha_extract_struct_value_address): Ditto.
3870 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
3871 alpha_register_virtual_type.
3872 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
3873 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
3874 alpha_extract_struct_value_address.
3875 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
3876 (INIT_FRAME_PC): Use init_frame_pc_noop.
3877 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
3878
4604bcad
MK
38792002-01-19 Mark Kettenis <kettenis@gnu.org>
3880
3881 * i386gnu-nat.c: Include "i386-tdep.h".
3882 (fetch_fpregs): Simplify code dealing with uninitialized floating
3883 point states such that it doesn't require FP7_REGNUM.
3884
140f9984
JT
38852002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3886
abf22e64
AJ
3887 * alpha-tdep.c (frame_extra_info): New.
3888 (alpha_find_saved_regs): Make static. Use
140f9984
JT
3889 frame->extra_info.
3890 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
3891 (alpha_frame_saved_pc): Use frame->extra_info.
3892 (temp_saved_regs): Don't declare as struct frame_saved_regs.
3893 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
3894 (init_extra_frame_info): Rename to...
3895 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 3896 (alpha_print_extra_frame_info): New function.
140f9984
JT
3897 (alpha_frame_locals_address): Ditto.
3898 (alpha_frame_args_address): Ditto.
abf22e64 3899 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
3900 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
3901 alpha_frame_args_address.
abf22e64 3902 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 3903 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
3904 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
3905 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
3906 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
3907 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
3908
d734c450
JT
39092002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3910
3911 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
3912 (alpha_cannot_fetch_register): Ditto.
3913 (alpha_cannot_store_register): Ditto.
3914 (alpha_register_convertible): Ditto.
3915 (alpha_use_struct_convention): Ditto.
3916 * config/alpha/tm-alpha.h: Update copyright years.
3917 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
3918 (INNER_THAN): Use core_addr_lessthan.
3919 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
3920 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
3921 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
3922 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
3923 (FRAME_CHAIN): Remove unnecessary cast.
3924
b4ceaee6
AC
39252002-01-18 Andrew Cagney <ac131313@redhat.com>
3926
3927 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
3928 obsolete.
3929
0a65a603
AC
39302002-01-18 Andrew Cagney <ac131313@redhat.com>
3931
3932 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
3933 * monitor.c, remote-array.c, remote-bug.c: Ditto.
3934 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
3935 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
3936 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
3937 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
3938 * x86-64-linux-nat.c: Ditto.
3939
636a6dfc
JT
39402002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3941
abf22e64 3942 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
3943 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
3944 (REGISTER_NAME): Define.
3945
acceddb6
JT
39462002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3947
3948 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
3949
ec32e4be
JT
39502002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3951
3952 * alpha-tdep.c: Update copyright years.
3953 (alpha_next_pc): New function.
3954 (alpha_software_single_step): Ditto.
3955 * config/alpha/tm-alpha.h: Add prototype for
3956 alpha_software_single_step.
3957
e771a871
JT
39582002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
3959
3960 * alphabsd-nat.c: Update copyright years.
3961 (fill_gregset): Use regcache_collect.
3962 (fill_fpregset): Likewise.
3963 (fetch_inferior_registers): Only fetch integer registers
3964 if requested to do so.
3965 (store_inferior_registers): Only store integer registers
3966 if requested to do so.
3967
7708fa01
AC
39682002-01-17 Andrew Cagney <ac131313@redhat.com>
3969
3970 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
3971 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
3972 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
3973 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
3974 * config/alpha/fbsd.mh (XDEPFILES): Delete.
3975 * config/arm/linux.mh (XDEPFILES): Delete.
3976 * config/arm/nbsd.mh (XDEPFILES): Delete.
3977 * config/i386/i386dgux.mh (XDEPFILES): Delete.
3978 * config/i386/i386sol2.mh (XDEPFILES): Delete.
3979 * config/i386/i386m3.mh (XDEPFILES): Delete.
3980 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
3981 * config/i386/i386gnu.mh (XDEPFILES): Delete.
3982 * config/i386/fbsd.mh (XDEPFILES): Delete.
3983 * config/i386/i386bsd.mh (XDEPFILES): Delete.
3984 * config/i386/i386sco5.mh (XDEPFILES): Delete.
3985 * config/i386/i386v4.mh (XDEPFILES): Delete.
3986 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
3987 * config/i386/i386sco4.mh (XDEPFILES): Delete.
3988 * config/i386/i386aix.mh (XDEPFILES): Delete.
3989 * config/i386/go32.mh (XDEPFILES): Delete.
3990 * config/i386/cygwin.mh (XDEPFILES): Delete.
3991 * config/i386/i386lynx.mh (XDEPFILES): Delete.
3992 * config/i386/i386mach.mh (XDEPFILES): Delete.
3993 * config/i386/i386v32.mh (XDEPFILES): Delete.
3994 * config/i386/linux.mh (XDEPFILES): Delete.
3995 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
3996 * config/i386/ncr3000.mh (XDEPFILES): Delete.
3997 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
3998 * config/i386/i386sco.mh (XDEPFILES): Delete.
3999 * config/i386/i386v.mh (XDEPFILES): Delete.
4000 * config/i386/nbsd.mh (XDEPFILES): Delete.
4001 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
4002 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
4003 * config/i386/symmetry.mh (XDEPFILES): Delete.
4004 * config/i386/obsd.mh (XDEPFILES): Delete.
4005 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
4006 * config/ia64/linux.mh (XDEPFILES): Delete.
4007 * config/ia64/aix.mh (XDEPFILES): Delete.
4008 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
4009 * config/m68k/dpx2.mh (XDEPFILES): Delete.
4010 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
4011 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
4012 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
4013 * config/m68k/linux.mh (XDEPFILES): Delete.
4014 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
4015 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
4016 * config/m68k/nbsd.mh (XDEPFILES): Delete.
4017 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
4018 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
4019 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
4020 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
4021 * config/m88k/delta88.mh (XDEPFILES): Delete.
4022 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
4023 * config/m88k/m88k.mh (XDEPFILES): Delete.
4024 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
4025 * config/mips/linux.mh (XDEPFILES): Delete.
4026 * config/mips/irix6.mh (XDEPFILES): Delete.
4027 * config/mips/irix5.mh (XDEPFILES): Delete.
4028 * config/mips/irix4.mh (XDEPFILES): Delete.
4029 * config/mips/irix3.mh (XDEPFILES): Delete.
4030 * config/mips/decstation.mh (XDEPFILES): Delete.
4031 * config/mips/mipsm3.mh (XDEPFILES): Delete.
4032 (NATDEPFILES): Move core-aout.o to here.
4033 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
4034 * config/pa/hpux1020.mh (XDEPFILES): Delete.
4035 * config/pa/hppabsd.mh (XDEPFILES): Delete.
4036 * config/pa/hppahpux.mh (XDEPFILES): Delete.
4037 * config/pa/hpux11w.mh (XDEPFILES): Delete.
4038 * config/pa/hppaosf.mh (XDEPFILES): Delete.
4039 * config/pa/hpux11.mh (XDEPFILES): Delete.
4040 * config/powerpc/aix.mh (XDEPFILES): Delete.
4041 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
4042 * config/powerpc/linux.mh (XDEPFILES): Delete.
4043 * config/romp/rtbsd.mh: Rename XDEPFILES.
4044 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
4045 * config/rs6000/aix4.mh (XDEPFILES): Delete.
4046 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
4047 * config/s390/s390.mh (XDEPFILES): Delete.
4048 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
4049 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
4050 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
4051 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
4052 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
4053 * config/sparc/nbsd.mh (XDEPFILES): Delete.
4054 * config/sparc/linux.mh (XDEPFILES): Delete.
4055 * config/vax/vaxult.mh (XDEPFILES): Delete.
4056 * config/vax/vaxult2.mh (XDEPFILES): Delete.
4057 * Makefile.in (DEPFILES): Remove XDEPFILES.
4058
375fc983
AC
40592002-01-17 Andrew Cagney <ac131313@redhat.com>
4060
4061 * utils.c (internal_verror): Fix comments, default is yes not no.
4062 Update queries to match. Default to quit and dump core.
4063
8926118c
AC
40642002-01-17 Andrew Cagney <ac131313@redhat.com>
4065
4066 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
4067 copyright.
4068 * defs.h, event-top.c, gdbcmd.h: Ditto.
4069 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
4070 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
4071 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
4072 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
4073 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
4074 * mi/mi-main.c:Ditto.
4075
4076 * stack.c, symfile.c: Update copyright.
4077
45b7b345
DJ
40782002-01-17 Daniel Jacobowitz <drow@mvista.com>
4079
db728ff7
DJ
4080 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
4081 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
4082 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
4083 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 4084
db728ff7
DJ
40852002-01-17 Daniel Jacobowitz <drow@mvista.com>
4086
4087 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
4088 * gdbserver/low-lynx.c (myattach): Likewise.
4089 * gdbserver/low-nbsd.c (myattach): Likewise.
4090 * gdbserver/low-sim.c (myattach): Likewise.
4091 * gdbserver/low-sparc.c (myattach): Likewise.
4092 * gdbserver/low-sun3.c (myattach): Likewise.
4093
4094 * gdbserver/low-linux.c (myattach): New function.
45b7b345 4095
db728ff7 4096 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
4097 (main): Handle "--attach".
4098
8de3c354
AC
40992002-01-16 Andrew Cagney <ac131313@redhat.com>
4100
4101 * MAINTAINERS (language support): Daniel Jacobwitz is C++
4102 maintainer.
4103
b0129042
DJ
41042002-01-15 Daniel Jacobowitz <drow@mvista.com>
4105
4106 * c-typeprint.c (is_type_conversion_operator): Add additional
4107 check for non-conversion operators.
4108
ba8679fb 41092002-01-15 Michael Snyder <msnyder@redhat.com>
2bf543a6
MS
4110
4111 * linux-proc.c: Add "info proc" command, a la procfs.c.
4112 (read_mapping): New function, abstract and re-use code.
4113 (linux_find_memory_regions): Use new func read_mapping.
4114 (linux_info_proc_cmd): New function, implement "info proc".
4115 (_initialize_linux_proc): Add new command "info proc".
4116
e4f9b4d5
MS
41172002-01-15 Michael Snyder <msnyder@redhat.com>
4118
4119 * symfile.c (generic_load): Use bfd_map_over_sections method
4120 instead of manipulating bfd structure members directly.
4121 (add_section_size_callback): New function, bfd sections callback
4122 used by generic_load.
4123 (load_sections_callback): New function, bfd sections callback
4124 used by generic_load.
4125
08cf96df
EZ
41262002-01-15 Elena Zannoni <ezannoni@redhat.com>
4127
abf22e64 4128 [Based on work by Jim Blandy]
08cf96df
EZ
4129 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
4130 (builtin_type_vec128): Export.
4131 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
4132 types.
4133 (builtin_type_vec128): New builtin type for 128 bit vector
4134 registers.
4135 (build_gdbtypes): Initialize builtin_type_v16qi and
4136 builtin_type_v8hi. Create the vec128 register builtin type
4137 structure.
4138 (build_builtin_type_vec128): New function.
abf22e64 4139 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
4140 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
4141 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
4142 AltiVec register to new builtin type.
4143
d7242108
DJ
41442001-01-15 Daniel Jacobowitz <drow@mvista.com>
4145
4146 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
4147 to make_cv_type.
4148
4ee3352d
AC
41492002-01-14 Andrew Cagney <ac131313@redhat.com>
4150
4151 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
4152 CLEAN_UP_REGISTER_VALUE.
4153 * regcache.c (supply_register): Update only call.
4154
f015b2e7
AC
41552002-01-14 Andrew Cagney <ac131313@redhat.com>
4156
4157 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4158 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4159 a29k-*-vxworks* targets as obsolete.
4160
356ae49d
MS
41612002-01-14 Michael Snyder <msnyder@redhat.com>
4162
4163 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
4164 until we can resolve portability issues.
4165 * gregset.h: Remove references to fpxregs.
4166 * gcore.c (gcore_command): Initialize note_sec to NULL.
4167
ade8f45e
AC
41682002-01-13 Andrew Cagney <ac131313@redhat.com>
4169
4170 * signals.c (target_signal_to_name): Rewrite. Only use
4171 signals[].name when in bounds and non-NULL.
abf22e64 4172
89c49e7a
AC
41732002-01-13 Andrew Cagney <ac131313@redhat.com>
4174
4175 From Petr Ledvina <ledvinap@kae.zcu.cz>:
4176 * signals.c (target_signal_to_name): Verify that SIG is within the
4177 bounds of the signals array.
4178
4daa9f9f
AC
41792002-01-13 Andrew Cagney <ac131313@redhat.com>
4180
4181 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
4182
ba4bbdcb
KS
41832002-01-13 Keith Seitz <keiths@redhat.com>
4184
4185 * stack.c (print_frame_info_base): Print the frame's pc
4186 only if when print_frame_info_listing_hook is not defined.
4187
575bbeb6
KS
41882002-01-13 Keith Seitz <keiths@redhat.com>
4189
4190 * varobj.c (varobj_set_value): Make sure that there were no
4191 errors evaluating the object before attempting to set its
4192 value.
4193 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
4194 so this offset adjustment is no longer necessary.
4195 (create_child): Don't set the error flag if the child is
4196 a CPLUS_FAKE_CHILD.
4197 (value_of_child): If value_fetch_lazy fails, return NULL
4198 so that callers will be notified that an error occurred.
4199 (c_value_of_variable): Delay check of variable's validity
4200 until later. We actually want all structs and unions to have
4201 the value "{...}".
4202 Do not return "???" for variables which could not be evaluated.
4203 This error condition must be returned to the caller so that it
4204 can get the error condition from gdb.
4205 (cplus_name_of_child): Adjust index for vptr before figuring
4206 out the name of the child.
4207 (cplus_value_of_child): If a child's (real) parent is not valid,
4208 don't even bother trying to give a value for it. Just return
4209 an error. Change all instances in this function.
4210 (cplus_type_of_child): If our parent is one of the "fake"
4211 parents, we need to get at the type of the real parent, and
4212 derive the child's true type using this information.
4213
b76898ab
AC
42142002-01-13 Andrew Cagney <ac131313@redhat.com>
4215
4216 From 2002-01-09 John Marshall <johnm@falch.net>:
4217 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
4218 sources.redhat.com, and tweak some related URLs which had
4219 suffered from linkrot.
4220
b6649e88
AC
42212002-01-13 Andrew Cagney <ac131313@redhat.com>
4222
4223 From Jeff law:
4224 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
4225 structures passed in registers.
4226
82cc5033
EZ
42272002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
4228
4229 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
4230 white space which prevented compilation. Reported by DSK
4231 <dsk@student.unsw.edu.au>.
4232
ba5f2f8a
MS
42332002-01-11 Michael Snyder <msnyder@redhat.com>
4234
fbd35540
MS
4235 * symfile.c (build_section_addr_info_from_section_tab):
4236 Use bfd access method instead of manipulating bfd directly.
4237 (syms_from_objfile): Ditto.
4238 (simple_overlay_update_1): Ditto.
4239 (simple_overlay_update): Ditto.
4240 (generic_load): Ditto.
4241 (overlay_unmapped_address): FIXME comment, bfd access methods.
4242 (sections_overlap): FIXME comment, bfd access methods.
4243 (pc_in_mapped_range): FIXME comment, bfd access methods.
4244 (pc_in_unmapped_range): FIXME comment, bfd access methods.
4245 (section_is_mapped): FIXME comment, bfd access methods.
4246 (section_is_overlay): FIXME comment, bfd access methods.
4247
ba5f2f8a
MS
4248 * symfile.c (generic_load): Whitespace and long line cleanups.
4249 Remove duplicate variable, change several local variables to
4250 more appropriate data types.
4251 (print_transfer_performance): Use %lu instead of %ld for ulongs.
4252
17df2af6
AC
42532002-01-12 Andrew Cagney <ac131313@redhat.com>
4254
4255 From Peter Schauer:
4256 * language.c (longest_local_hex_string_custom): Use phex_nz to
4257 convert NUM to a hex string.
4258
ec920329
EZ
42592002-01-12 Elena Zannoni <ezannoni@redhat.com>
4260
4261 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
4262 the function.
538a76d6 4263 Update Copyright year.
ec920329 4264
3abd2e01
AC
42652002-01-12 Andrew Cagney <ac131313@redhat.com>
4266
4267 * language.c (longest_raw_hex_string): Delete unused function.
4268
b21b22e0
PS
42692002-01-11 Petr Sorfa <petrs@caldera.com>
4270
4271 * MAINTAINERS (write-after-approval): Add myself.
4272 * dwarf2read.c (read_tag_string_type): Handling of
4273 DW_AT_byte_size.
4274 (read_tag_string_type): FORTRAN fix to prevent propagation of
4275 first string size.
4276 (set_cu_language): Handling of DW_LANG_Fortran95
4277
747fe712
RE
42782002-01-11 Richard Earnshaw <rearnsha@arm.com>
4279
4280 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
4281 GETPID(inferior_ptid).
4282 (store_inferior_registers): Likewise.
4283
f1bea926
JM
42842002-01-10 Jason Merrill <jason@redhat.com>
4285
4286 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
4287 Fix DW_OP_minus.
4288
ae940673
AC
42892002-01-10 Andrew Cagney <ac131313@redhat.com>
4290
4291 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
4292 and bfd/elf32-sh-nbsd.c.
4293
00546b04
MS
42942002-01-10 Michael Snyder <msnyder@redhat.com>
4295
352ed7b4
MS
4296 * NEWS: Mention --pid and corefile/proc-id behavior change.
4297
c18be923
MS
4298 * Makefile.in: Add rules for gcore.o and linux-proc.o.
4299 * gcore.c: Include cli/cli-decode.h instead of command.h.
4300
00546b04
MS
4301 * main.c (captured_main): Add new command line option "--pid".
4302 If the second command line argument (following the symbol-file)
4303 begins with a digit, try to attach to it before trying to open
4304 it as a corefile.
4305 (print_gdb_help): Document the "--pid" argument.
4306
db60ec62
EZ
43072002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
4308
4309 * completer.c (command_completer): New function.
4310
4311 * completer.h <command_completer>: Add prototype.
4312
4313 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
4314 completer for the "help" command.
4315
39c22d1a
JM
43162002-01-09 Jason Merrill <jason@redhat.com>
4317
4318 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
4319
c564377f
MS
43202002-01-09 Michael Snyder <msnyder@redhat.com>
4321
975aec09
MS
4322 * i386-linux-nat.c (fill_fpxregset): Make global.
4323 (store_fpxregset): Ditto.
4324
db4a10fa
MS
4325 * gregset.h (gdb_fpxregset_t): Define.
4326 (supply_fpxregset): Prototype.
4327 (fill_fpxregset): Prototype.
4328
c564377f
MS
4329 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
4330
c3d45d70
RE
43312002-01-09 Richard Earnshaw <rearnsha@arm.com>
4332
4333 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
4334 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
4335 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
4336
fcc87af1
AC
43372002-01-09 Andrew Cagney <ac131313@redhat.com>
4338
4339 * MAINTAINERS: Update target maintainer rules so that any
4340 Maintainer can approve a tested patch for a maintenance-only
4341 target.
4342
dd96c05b
RE
43432002-01-09 Richard Earnshaw <rearnsha@arm.com>
4344
d4297db9 4345 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 4346
d4297db9 4347 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
4348 IN_SIGTRAMP.
4349
145fdc6e
MS
43502002-01-08 Michael Snyder <msnyder@redhat.com>
4351
4352 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
4353 real name of the executable, rather than the /proc name.
4354
be4d1333
MS
43552002-01-03 Michael Snyder <msnyder@redhat.com>
4356
4357 Implement a "generate-core-file" command in gdb, save target state.
4358 * gcore.c: New file. Implement new command 'generate-core-file'.
4359 Save a corefile image of the current state of the inferior.
4360 * linux-proc.c: Add linux-specific code for saving corefiles.
4361 * target.h (struct target_ops): Add new target vectors for saving
4362 corefiles; to_find_memory_regions and to_make_corefile_notes.
4363 (target_find_memory_regions): New macro.
4364 (target_make_corefile_notes): New macro.
4365 * target.c (update_current_target): Inherit new target methods.
4366 (dummy_find_memory_regions): New place-holder method.
4367 (dummy_make_corefile_notes): New place-holder method.
4368 (init_dummy_target): Initialize new dummy target vectors.
4369 * exec.c (exec_set_find_memory_regions): New function.
4370 Allow the exec_ops vector for memory regions to be taken over.
4371 (exec_make_note_section): New function, target vector method.
4372 * defs.h (exec_set_find_memory_regions): Export prototype.
4373 * procfs.c (proc_find_memory_regions): New function, corefile method.
4374 (procfs_make_note_section): New function, corefile method.
4375 (init_procfs_ops): Set new target vector pointers.
4376 (find_memory_regions_callback): New function.
4377 (procfs_do_thread_registers): New function.
4378 (procfs_corefile_thread_callback): New function.
4379 * sol-thread.c (sol_find_memory_regions): New function.
4380 (sol_make_note_section): New function.
4381 (init_sol_thread_ops): Initialize new target vectors.
4382 * inftarg.c (inftarg_set_find_memory_regions): New function.
4383 Allow to_find_memory_regions vector to be taken over.
4384 (inftarg_set_make_corefile_notes): New function.
4385 Allow to_make_corefile_notes vector to be taken over.
4386 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
4387 interface layer if not target_has_execution (may be a corefile).
4388 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
4389 * config/sparc/sun4sol2.mh: Ditto.
4390 * config/alpha/alpha-linux.mh: Ditto.
4391 * config/arm/linux.mh: Ditto.
4392 * config/i386/x86-64linux.mh: Ditto.
4393 * config/ia64/linux.mh: Ditto.
4394 * config/m68k/linux.mh: Ditto.
4395 * config/mips/linux.mh: Ditto.
4396 * config/powerpc/linux.mh: Ditto.
4397 * config/sparc/linux.mh: Ditto.
4398
c6b92abd
MS
43992002-01-07 Michael Snyder <msnyder@redhat.com>
4400
4401 * arm-linux-nat.c: Remove references to regcache.c internal data
4402 (registers[] and register_valid[]).
4403
4b09dc8c
MS
44042002-01-07 Michael Snyder <msnyder@redhat.com>
4405
abf22e64
AJ
4406 * linux-proc.c: New file. Implement child_pid_to_exec_file,
4407 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
4408 symbol file and shlibs.
4409 * Makefile.in: Add rule for linux-proc.o.
4410 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
4411 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
4412 * config/arm/linux.mh: Ditto.
4413 * config/i386/linux.mh: Ditto.
4414 * config/i386/x86-64linux.mh: Ditto.
4415 * config/ia64/linux.mh: Ditto.
4416 * config/m68k/linux.mh: Ditto.
4417 * config/mips/linux.mh: Ditto.
4418 * config/powerpc/linux.mh: Ditto.
4419 * config/sparc/linux.mh: Ditto.
4420
c25b74ac
PM
44212002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
4422
4423 * win32-nat.c: Add i386-tdep.h dependency.
4424
94cd915f
MS
44252002-01-07 Michael Snyder <msnyder@redhat.com>
4426
c7cccb76
MS
4427 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
4428 instead of bfd_get_arch_size. Don't bail out just because
4429 there's no exec_bfd.
abf22e64 4430
34c0bd93
MS
4431 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
4432 * p-valprint.c (pascal_object_print_value): Ditto.
4433 * somread.c (som_symtab_read): Ditto.
4434 * symfile.c (simple_free_overlay_region_table): Ditto.
4435 * valops.c (value_assign): Ditto.
4436
21c1c920
MS
4437 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
4438 use tilde_expand and strerror for opening save-tracepoints file.
4439
5bbd998e
MS
4440 * thread-db.c (thread_db_new_objfile): Indendation fix.
4441
94cd915f
MS
4442 * infptrace.c (GDB_MAX_ALLOCA): New define.
4443 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 4444 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
4445 can be overridden with whatever value is appropriate to the host).
4446 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
4447 alloca to allocate potentially large buffer.
4448 * rs6000-nat.c (child_xfer_memory): Ditto.
4449 * symm-nat.c (child_xfer_memory): Ditto.
4450 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
4451
494e8a93
JSC
44522002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
4453
4454 From Nick Clifton <nickc@redhat.com>
4455 * d10v-tdep.c: Set STACK_START to 0x200bffe.
4456
d0e1d48e
MS
44572002-01-07 Michael Snyder <msnyder@redhat.com>
4458
abf22e64 4459 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
4460 Don't use exec_bfd if it's NULL.
4461
290b2c7a
MK
44622002-01-06 Mark Kettenis <kettenis@gnu.org>
4463
abf22e64 4464 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 4465
aef21287
AC
44662002-01-06 Andrew Cagney <ac131313@redhat.com>
4467
4468 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
4469 * gnu-nat.c: Ditto.
4470
30efa627
AC
44712002-01-06 Andrew Cagney <ac131313@redhat.com>
4472
4473 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
4474 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
4475 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
4476 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
4477 z8k-coff have not been multi-arched. Update z8k-coff build
4478 status.
4479
9b4ff276
AC
44802002-01-06 Andrew Cagney <ac131313@redhat.com>
4481
4482 * MAINTAINERS: Mark a29k target as obsolete.
4483 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
4484 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
4485 comments.
4486 * NEWS: Note that a29k targets are obsolete.
4487 * a29k-tdep.c: Mark as obsolete.
4488 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
4489 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
4490 a29k-*-vxworks* targets as obsolete.
4491 * remote-adapt.c: Obsolete.
4492 * remote-eb.c: Obsolete.
4493 * remote-mm.c: Obsolete.
4494 * remote-udi.c: Obsolete.
4495 * config/a29k/a29k-udi.mt: Obsolete.
4496 * config/a29k/a29k.mt: Obsolete.
4497 * config/a29k/tm-a29k.h: Obsolete.
4498 * config/a29k/tm-vx29k.h: Obsolete.
4499 * config/a29k/vx29k.mt: Obsolete.
4500
a9011d31
AC
45012002-01-05 Andrew Cagney <ac131313@redhat.com>
4502
4503 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
4504 with BFD_ENDIAN_BIG.
4505
9299404e
AC
45062002-01-05 Andrew Cagney <ac131313@redhat.com>
4507
4508 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
4509 * configure, config.in: Re-generate.
4510 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
4511 * defs.h: Do not include <endian.h>.
4512
7e89e357
JT
45132002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
4514
4515 * acconfig.h (HAVE_PT_GETXMMREGS): New.
4516 * config.in: Regenerate.
4517 * configure.in: Update copyright years.
4518 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
4519 * configure: Regenerate.
4520 * i386bsd-nat.c: Update copyright years.
4521 (fill_gregset): Use regcache_collect.
4522 (fetch_inferior_registers): Only fetch integer registers
4523 if requested to do so. Add support for XMM registers
4524 using PT_GETXMMREGS.
4525 (store_inferior_registers): Only store integer registers
4526 if requested to do so. Add support for XMM registers
4527 using PT_SETXMMREGS.
4528 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
4529 (store_inferior_registers): Remove.
4530 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
4531 (fetch_elfcore_registers): New function.
4532 (i386nbsd_elfcore_fns): New.
4533 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
4534 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
4535 i386bsd-nat.o.
4536 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
4537 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
4538 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4539 * config/i386/tm-nbsd.h: Update copyright years.
4540 (HAVE_SSE_REGS): Define.
4541 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
4542 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
4543 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
4544 (SIGCONTEXT_PC_OFFSET): Remove.
4545 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
4546
a752853e
AC
45472002-01-05 Andrew Cagney <ac131313@redhat.com>
4548
4549 * configure.tgt: Remove powerpc-*-macos* target.
4550 * config/m68k/xm-mpw.h: Delete file.
4551 * config/xm-mpw.h: Delete file.
4552 * ser-mac.c: Delete file.
4553 * mpw-make.sed: Delete file.
4554 * mpw-config.in: Delete file.
4555 * mac-xdep.c: Delete file.
4556 * mac-gdb.r: Delete file.
4557 * mac-defs.h: Delete file.
4558 * mac-nat.c: Delete file.
4559 * config/powerpc/macos.mh: Delete file.
4560 * config/powerpc/macos.mt: Delete file.
4561 * config/powerpc/nm-macos.h: Delete file.
4562 * config/powerpc/tm-macos.h: Delete file.
4563 * source.c (openp, open_source_file): Remove obsolete code.
4564 * top.c (gdb_readline): Ditto.
4565 * utils.c (query): Ditto.
4566 * event-top.c (display_gdb_prompt): Ditto.
4567 * Makefile.in (ser-mac.o): Delete obsolete target.
4568 * NEWS: Update.
4569
d7449b42
AC
45702002-01-04 Andrew Cagney <ac131313@redhat.com>
4571
4572 * defs.h (BIG_ENDIAN): Delete macro definition.
4573 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
4574 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
4575 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
4576 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
4577 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
4578 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
4579 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
4580 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
4581 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
4582 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
4583 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
4584 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
4585 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4586 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
4587 * gdbarch.c: Re-generate.
4588
356374e8
DJ
45892002-01-04 Daniel Jacobowitz <drow@mvista.com>
4590
4591 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
4592 for core files.
4593
a2b8f8f8
JT
45942002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4595
4596 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
4597
12466af9
AC
45982002-01-04 Andrew Cagney <ac131313@redhat.com>
4599
4600 * value.h (value_ptr): Delete typedef.
4601
3549ab40
JT
46022002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
4603
4604 * i386nbsd-nat.c: Update copyright years.
4605 Include i386-tdep.h.
4606
fedbd091
EZ
46072002-01-04 Elena Zannoni <ezannoni@redhat.com>
4608
4609 * stabsread.c: Update copyright years.
4610
4611 From Debashis Mahata <debashis.mahata@wipro.com>:
4612 (read_struct_fields): Deal with Sun C compiler erroneous stab
4613 output for structs and unions.
fec8b34f 4614 Fix PR gdb/269.
fedbd091 4615
eb43544b
DJ
46162002-01-04 Daniel Jacobowitz <drow@mvista.com>
4617
4618 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
4619 prototype.
4620
1514d34e
DJ
46212002-01-04 Daniel Jacobowitz <drow@mvista.com>
4622
4623 * cp-abi.c: Fix whitespace.
4624 (baseclass_offset): New wrapper function.
4625 * cp-abi.h (baseclass_offset): Add prototype.
4626 (struct cp_abi_ops): Add baseclass_offset pointer.
4627
4628 * valops.c (vb_match): Move to...
4629 * gnu-v2-abi.c (vb_match): here.
4630 * valops.c (baseclass_offset): Move to...
4631 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
4632
4633 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
4634
4635 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
4636 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
4637 * hpacc-abi.c (init_hpacc_ops): Likewise.
4638
7f8c9282
DJ
46392002-01-04 Daniel Jacobowitz <drow@mvista.com>
4640
4641 * valops.c (find_overload_match): Accept obj as a
4642 reference parameter. Update it before returning.
4643 * value.h (find_overload_match): Update prototype.
4644 * eval.c (evaluate_subexp_standard): Pass object to
4645 find_overload_match by reference.
4646
f23631e4
AC
46472002-01-03 Andrew Cagney <ac131313@redhat.com>
4648
4649 * valarith.c: Replace value_ptr with struct value pointer. Remove
4650 register attribute from value declarations.
4651 * valops.c: Ditto.
4652 * value.h: Ditto.
4653 * scm-lang.c (scm_lookup_name): Ditto.
4654
79e10fab 46552002-01-03 Michael Snyder <msnyder@redhat.com>
abf22e64 4656
79e10fab
AC
4657 Abstract the functionality of iterating over mapped memory
4658 regions into a general purpose iterator function.
abf22e64 4659 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
4660 iterator for memory sections.
4661 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
4662 (solib_mappings_callback): New function, callback for above.
4663 (info_proc_mappings): Reimpliment using iterate_over_mappings.
4664 (info_mappings_callback): New function, callback for above.
4665
4666 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
4667
c5ad026a
MK
46682002-01-01 Mark Kettenis <kettenis@gnu.org>
4669
d2a7c97a
MK
4670 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
4671 * i386-tdep.c: Include "elf-bfd.h".
4672 (process_note_abi_tag_sections): New function.
4673 (i386_gdbarch_init): Add code to recognize various OS/ABI
4674 combinations.
4675
c5ad026a
MK
4676 * maint.c (_initialize_maint_cmds): Add missing \ in
4677 string-literal.
4678
a1a5b71e 4679For older changes see ChangeLog-2001
c906108c
SS
4680\f
4681Local Variables:
4682mode: change-log
4683left-margin: 8
4684fill-column: 74
4685version-control: never
4686End:
This page took 0.470662 seconds and 4 git commands to generate.