]> Git Repo - binutils.git/blame - gdb/ChangeLog
*** empty log message ***
[binutils.git] / gdb / ChangeLog
CommitLineData
1a14e234
AC
12002-12-16 Andrew Cagney <[email protected]>
2
3 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
4 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
5 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
6 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
7 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
8 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
9 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
10 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
11 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
12 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
13 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
14 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
15 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
16 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
17 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
18 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
19 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
20 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
21 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
22 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
23 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
24 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
25 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
26 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
27 * config/m88k/xm-dgux.h: Delete.
28 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
29 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
30 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
31 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
32 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
33 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
34 * ch-valprint.c: Delete.
35
04e68871
DJ
362002-12-15 Daniel Jacobowitz <[email protected]>
37
38 * infrun.c (handle_inferior_event): Rearrange code to resume if
39 no catchpoint triggers for an event.
40
deb3b17b
DJ
412002-12-15 Daniel Jacobowitz <[email protected]>
42
43 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
44 and TARGET_WAITKIND_VFORKED cases.
45
675bf4cb
DJ
462002-12-15 Daniel Jacobowitz <[email protected]>
47
48 * infrun.c (handle_inferior_event): Assume that catchpoints
49 are not affected by DECR_PC_AFTER_BREAK.
50
81e56179
DJ
512002-12-15 Daniel Jacobowitz <[email protected]>
52
53 * target.c (update_current_target): Don't inherit DONT_USE.
54 * target.h (struct target_ops): Remove DONT_USE.
55 (target_next): Remove macro.
56
a3edc55b
MK
572002-12-15 Mark Kettenis <[email protected]>
58
59 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
60
b508a996
RE
612002-12-14 Richard Earnshaw <[email protected]>
62
63 * arm-tdep.c (convert_from_extended): New argument to hold the
64 type of floating point result we want to convert to. Make input
65 argument const. Fix all callers.
66 (convert_to_extended): Similarly.
67 (arm_extract_return_value): Now takes a regcache argument. Change
68 code to use regcache accessor functions. Correctly extract
69 smaller-than-word results on big-endian machines.
70 (arm_store_return_value): Now takes a regcache argument. Change
71 code to use regcache accessor functions. Correctly zero/sign extend
72 smaller than word results before storing into r0.
73 (arm_gdbarch_init): Register new-style extract_return_value and
74 store_return_value functions.
75
3197744f
MS
762002-12-13 Michael Snyder <[email protected]>
77
78 * thread-db.c (thread_from_lwp): Uniquify error msg.
79 (lwp_from_thread): Ditto.
80 (check_event): Ditto.
81 (find_new_threads_callback): Ditto.
82 (thread_db_pid_to_str): Ditto.
83
6baff1d2
AC
842002-12-13 Andrew Cagney <[email protected]>
85
86 * frame.h (get_frame_saved_regs): Declare.
87 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
88 pointer.
89 * frame.c (get_frame_saved_regs): New function.
90 (frame_saved_regs_zalloc): Return the allocated saved_regs.
91
b87efeee
AC
922002-12-13 Andrew Cagney <[email protected]>
93
94 * frame.c (deprecated_update_current_frame_pc_hack): New
95 function.
96 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
97 * infrun.c (normal_stop): Use said function instead of directly
98 modifying the frame's PC.
99
3de2dc4f
AO
1002002-12-13 Alexandre Oliva <[email protected]>
101
102 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
103
fe29b929
KB
1042002-12-13 Kevin Buettner <[email protected]>
105
106 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
107 config/mips/tm-irix6.h (NUM_REGS): Delete.
108 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
109 (temp_saved_regs): Declare as a pointer rather than an array.
110 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
111 that ``temp_saved_regs'' has storage allocated to it and that
112 it's the correct size.
113
c04e0a08
JJ
1142002-12-13 Jeff Johnston <[email protected]>
115
116 * defs.h (init_last_source_visited): New prototype.
117 (add_path): Ditto.
118 * source.c (add_path): New function that adds to a specified path.
119 (mod_path): Change to call add_path.
120 (init_last_source_visited): New function to allow interfaces to
121 initialize static variable: last_source_visited. Part of fix
122 for PR gdb/741.
123 * Makefile.in: Add support for mi/mi-cmd-env.c.
124
c689142b
AC
1252002-12-13 Andrew Cagney <[email protected]>
126
127 * frame.h (frame_id_unwind): Declare.
128 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
129 id_unwind_cache.
130 (frame_id_unwind_ftype): Declare.
131 * frame.c (frame_id_unwind): New function.
132 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
133 (create_new_frame, get_prev_frame): Pass id_unwind to
134 set_unwind_by_pc.
135 (frame_saved_regs_id_unwind): New function.
136 (frame_saved_regs_id_unwind): New function.
137 * dummy-frame.c (dummy_frame_id_unwind): New function.
138 (struct dummy_frame): Add field id.
139 (generic_push_dummy_frame): Initialize `id'.
140 * dummy-frame.h (dummy_frame_id_unwind): Declare.
141
18ea5ba4
AC
1422002-12-13 Andrew Cagney <[email protected]>
143
144 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
145 pass that to set_momentary_breakpoint. Move comments to where they
146 belong.
147 * frame.h (set_current_frame): Delete declaration.
148 * frame.c (set_current_frame): Delete function.
149
2c517d0e
AC
1502002-12-13 Andrew Cagney <[email protected]>
151
152 * frame.c (frame_extra_info_zalloc): New function.
153 * frame.h (frame_extra_info_zalloc): Declare.
154
516b1f28
JB
1552002-12-13 Joel Brobecker <[email protected]>
156
157 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
158 in the previous prototype change to set_momentary_breakpoint.
159
fbb265fc
DJ
1602002-12-12 Daniel Jacobowitz <[email protected]>
161
162 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
163 and saw_child_exec.
164 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
165 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
166 (stop_stepping): Remove outdated check for child vfork events.
167
4fd7f624
AC
1682002-12-12 Andrew Cagney <[email protected]>
169
170 * GDB 5.3 released from gdb_5_3-branch.
171
4c9ba7e0
DJ
1722002-12-11 Daniel Jacobowitz <[email protected]>
173
174 * corelow.c (init_core_ops): Delete references to to_require_attach
175 and to_require_detach.
176 * exec.c (init_exec_ops): Likewise.
177 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
178 hppa_require_detach directly.
179 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
180 * inftarg.c (child_detach): Remove.
181 (child_detach_from_process): Rename to child_detach, remove
182 after_fork argument.
183 (child_attach): Remove.
184 (child_attach_to_process): Rename to child_attach, remove after_fork
185 argument.
186 (init_child_ops): Delete references to to_require_attach
187 and to_require_detach.
188 * infttrace.c (hppa_require_attach): Update comment.
189 * target.c (cleanup_target, update_current_target)
190 (init_dummy_target, setup_target_debug): Delete references to
191 to_require_attach and to_require_detach.
192 (find_default_require_detach, find_default_require_attach)
193 (debug_to_require_attach, debug_to_require_detach): Remove
194 functions.
195 * target.h (struct target_ops): Remove to_require_attach
196 and to_require_detach.
197 (target_require_attach, target_require_detach): Delete macros.
198 (find_default_require_detach, find_default_require_attach): Delete
199 prototypes.
200 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
201
0394eb2a
AC
2022002-12-11 Andrew Cagney <[email protected]>
203
204 * frame.c (get_frame_extra_info): New function.
205 * frame.h (get_frame_extra_info): Declare.
206
818dd999
AC
2072002-12-11 Andrew Cagney <[email protected]>
208
209 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
210 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
211 with `struct frame_id'.
212 (set_longjmp_resume_breakpoint): Ditto.
213 * infrun.c (handle_inferior_event): Update.
214 * breakpoint.c (watch_command_1, until_break_command): Update.
215 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
216 (handle_inferior_event, step_over_function): Update.
217 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
218 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
219 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
220 * infcmd.c (finish_command, run_stack_dummy): Update.
221
4d3c2250
KB
2222002-12-11 Kevin Buettner <[email protected]>
223
224 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
225 (dwarf2_non_const_array_bound_ignored)
226 (dwarf2_missing_line_number_section)
227 (dwarf2_statement_list_fits_in_line_number_section)
228 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
229 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
230 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
231 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
232 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
233 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
234 (dwarf2_missing_member_fn_type_complaint)
235 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
236 (dwarf2_const_value_length_mismatch)
237 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
238 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
239 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
240 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
241 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
242 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
243 complaints using deprecated struct..
244 (dwarf2_non_const_array_bound_ignored_complaint)
245 (dwarf2_complex_location_expr_complaint)
246 (dwarf2_unsupported_at_frame_base_complaint)
247 (dwarf2_const_value_length_mismatch_complaint)
248 (dwarf2_macros_too_long_complaint)
249 (dwarf2_macro_malformed_definition_complaint)
250 (dwarf2_invalid_attrib_class_complaint): New functions.
251 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
252 (read_structure_scope, read_array_type, read_common_block)
253 (read_tag_pointer_type, read_base_type, read_partial_die)
254 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
255 (new_symbol, dwarf2_const_value, read_type_die)
256 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
257 (parse_macro_definition, dwarf_decode_macros): Replace calls to
258 complain() with, possibly indirect, calls to complaint().
259
95486978
AC
2602002-12-11 Andrew Cagney <[email protected]>
261
262 * frame.c (deprecated_get_frame_saved_regs): Rename
263 get_frame_saved_regs.
264 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
265 * sparc-tdep.c: Update.
266 * hppa-tdep.c: Update.
267 * h8500-tdep.c: Update.
268
321432c0
KB
2692002-12-11 Kevin Buettner <[email protected]>
270
271 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
272 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
273 ``char *'' for return and parameter types.
274 * gdbarch.h, gdbarch.c: Regenerate.
275 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
276 return type from ``char *'' to ``const char *''.
277 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
278 const.
279
5a4d6ff4
MK
2802002-12-11 Mark Kettenis <[email protected]>
281
282 * i386-tdep.c: Include "dummy-frame.h".
283 (i386_frame_chain, i386_frame_saved_pc): Replace
284 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
285 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
286
a5afb99f
AC
2872002-12-10 Andrew Cagney <[email protected]>
288
289 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
290 Change to a function with predicate.
291 * gdbarch.h, gdbarch.c: Re-generate.
292 * frame.c (get_prev_frame): Update. Test
293 DEPRECATED_INIT_FRAME_PC_P.
294 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
295 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
296 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
297 * alpha-tdep.c (alpha_gdbarch_init): Update.
298 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
299 * mips-tdep.c (mips_gdbarch_init): Update.
300 * i386-interix-tdep.c (i386_interix_init_abi): Update.
301 * arm-tdep.c: Update comments.
302 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
303 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
304 * frv-tdep.c (frv_gdbarch_init): Ditto.
305 * x86-64-tdep.c (x86_64_init_abi): Ditto.
306 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
307 * s390-tdep.c (s390_gdbarch_init): Ditto.
308 * v850-tdep.c (v850_gdbarch_init): Ditto.
309 * vax-tdep.c (vax_gdbarch_init): Ditto.
310 * sh-tdep.c (sh_gdbarch_init): Ditto.
311 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
312 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
313 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
314 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
315 * i386-tdep.c (i386_gdbarch_init): Ditto.
316 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
317 * cris-tdep.c (cris_gdbarch_init): Ditto.
318 * avr-tdep.c (avr_gdbarch_init): Ditto.
319 * arm-tdep.c (arm_gdbarch_init): Ditto.
320 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
321 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
322
6604731b
DJ
3232002-12-10 Daniel Jacobowitz <[email protected]>
324
325 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
326 CHILD_FOLLOW_FORK.
327 * hppah-nat.c (saved_vfork_pid): Add.
328 (child_post_follow_vfork): Remove.
329 (child_follow_fork): New function.
330 (child_wait): Call detach_breakpoints after receiving the child vfork.
331 Call child_resume directly instead of going through resume ().
332 Make sure we have the exec before reporting the vfork.
333 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
334 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
335 (follow_fork): New function. Call target_follow_fork.
336 (follow_inferior_reset_breakpoints): New function broken out from
337 old follow_inferior_fork.
338 (resume): Remove hack to follow exec after vfork.
339 * inftarg.c (child_post_follow_vfork): Remove.
340 (child_follow_fork): New function.
341 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
342 * target.c (cleanup_target): Replace to_post_follow_vfork with
343 to_follow_fork.
344 (update_current_target): Likewise.
345 (setup_target_debug): Likewise.
346 (debug_to_post_follow_vfork): Remove.
347 (debug_to_follow_fork): New function.
348 * target.h (struct target_ops): Replace to_post_folow_vfork with
349 to_follow_fork.
350 (child_post_follow_vfork): Remove prototype.
351 (child_follow_fork): Add prototype.
352 (target_post_follow_vfork): Remove macro.
353 (target_follow_fork): Add macro.
354
7d2830a3
DJ
3552002-12-10 Daniel Jacobowitz <[email protected]>
356
357 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
358 (child_post_follow_vfork): Cancel pending exec event if we follow
359 the parent.
360 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
361 events have been processed. Return a fake TARGET_WAITKIND_EXECD
362 event at the following wait call if necessary.
363 * infrun.c (follow_vfork): Don't follow_exec here.
364 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
365 case about HP/UX 10.20. Remove code pushed down to
366 hppah-nat.c:child_wait.
367 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
368 vfork_in_flight is set.
369
3702002-12-10 Daniel Jacobowitz <[email protected]>
8e7d2c16
DJ
371
372 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
373 for the parent's fork event.
374 * infrun.c (handle_inferior_event): Only expect one fork event.
375 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
376 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
377
50631d4f
AC
3782002-12-10 Andrew Cagney <[email protected]>
379
bc124bd3
AC
380 * PROBLEMS: Delete reference to PR gdb/725.
381
50631d4f
AC
382 * MAINTAINERS (gdb.c++): Add David Carlton.
383
808013d1
DC
3842002-12-09 David Carlton <[email protected]>
385
386 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
387 * cli/cli-cmds.c: Ditto.
388
31deffe5
AC
3892002-12-09 Andrew Cagney <[email protected]>
390
6cbda714
AC
391 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
392 function address in <>.
31deffe5
AC
393 * gdbarch.c: Re-generate.
394
2692ddb3
DC
3952002-12-09 David Carlton <[email protected]>
396
397 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
398
f3c39e76
DC
3992002-12-09 David Carlton <[email protected]>
400
401 * linespec.c (symtab_from_filename): New function.
402 (decode_line_1): Move code into symtab_from_filename.
403
1b84163e
KB
4042002-12-09 Kevin Buettner <[email protected]>
405
406 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
407
bdd78e62
AC
4082002-12-07 Andrew Cagney <[email protected]>
409
410 * f-valprint.c (info_common_command): Use get_frame_pc.
411 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
412 * ax-gdb.c (agent_command): Ditto.
413 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
414 (rs6000_pop_frame): Ditto.
415 (rs6000_frameless_function_invocation): Ditto.
416 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
417 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
418 * macroscope.c (default_macro_scope): Ditto.
419 * stack.c (print_frame_info_base): Ditto.
420 (print_frame, frame_info, print_frame_label_vars): Ditto.
421 (return_command, func_command, get_frame_language): Ditto.
422 * infcmd.c (finish_command): Ditto.
423 * dummy-frame.c (cached_find_dummy_frame): Ditto.
424 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
425 (break_at_finish_at_depth_command_1): Ditto.
426 (break_at_finish_command_1): Ditto.
427 (until_break_command, get_catch_sals): Ditto.
428 * blockframe.c (func_frame_chain_valid): Ditto.
429 (frameless_look_for_prologue): Ditto.
430 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
431
408400e7
AC
4322002-12-08 Andrew Cagney <[email protected]>
433
434 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
435 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
436
97f46953
AC
4372002-12-08 Andrew Cagney <[email protected]>
438
439 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
440 to pure functions.
441 * gdbarch.h, gdbarch.c: Re-generate.
442 * frame.c (get_prev_frame): Explictly assign prev's pc with value
443 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
444
445 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
446 declaration to a function returning a CORE_ADDR.
447 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
448 * arch-utils.c (init_frame_pc_noop): Return the PC value.
449 (init_frame_pc_default): Ditto.
450 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
451 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
452 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
453 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
454 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
455 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
456
457 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
458 to init_frame_pc_noop.
459 (i386_interix_init_frame_pc): Delete function.
460 * z8k-tdep.c (init_frame_pc): Delete function.
461 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
462 (INIT_FRAME_PC_FIRST): Ditto.
463 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
464 (INIT_FRAME_PC_FIRST): Ditto.
465 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
466 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
467 init_frame_pc_noop.
468 (INIT_FRAME_PC_FIRST): Convert to an expression.
469 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
470
8b36eed8
AC
4712002-12-08 Andrew Cagney <[email protected]>
472
473 * blockframe.c: Use get_frame_base instead of directly accessing
474 the `struct frame_info' member frame.
475 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
476 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
477
aeeccc89
EZ
4782002-12-08 Elena Zannoni <[email protected]>
479
480 * Makefile.in (readline_h): Define.
481 (completer.o): Depend on readline_h.
482 (corelow.o): Ditto.
483 (event-top.o): Ditto.
484 (exec.o): Ditto.
485 (solib.o): Ditto.
486 (source.o): Ditto.
487 (symfile.o): Ditto.
488 (symmisc.o): Ditto.
489 (top.o): Ditto.
490 (tracepoint.o): Ditto.
491 (utils.o): Ditto.
492 (cli-dump.o): Ditto.
493 (tui-hooks.o): Ditto.
494 (tuiWin.o): Ditto.
495
38017ce8
EZ
4962002-12-08 Elena Zannoni <[email protected]>
497
498 More cleanup from import of readline 4.3.
499 * completer.h (complete_line, readline_line_completion_function):
500 Update prototypes.
501 (line_completion_function): Removed, not used outside of completer.c.
502 * completer.c (readline_line_completion_function,
503 complete_function, line_completion_function): Use const for first
504 parameter.
505 (line_completion_function): Make static.
506 (filename_completer): filename_completion_function is now called
507 rl_filename_completion_function
508 * corelow.c: Include <readline/readline.h>.
509 * exec.c: Ditto.
510 * solib.c: Ditto.
511 * source.c: Ditto.
512 * symfile.c: Ditto.
513 * symmisc.c: Ditto.
514 * top.c (init_main): No need to coerce
515 readline_line_completion_function anymore.
516 * cli/cli-dump.c: Include <readline/readline.h>.
517
75e3c1f9
AC
5182002-12-08 Andrew Cagney <[email protected]>
519
520 * stack.c (frame_info): Use get_prev_frame.
521 * blockframe.c (frame_address_in_block): Ditto.
522 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
523 (rs6000_frameless_function_invocation): Ditto.
524 (rs6000_frame_saved_pc): Ditto.
525 (rs6000_frame_chain): Ditto.
526 * arch-utils.c (init_frame_pc_default): Ditto.
527
0d2b8049
AC
5282002-12-08 Andrew Cagney <[email protected]>
529
530 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
531 Delete redundant definition.
532
9255ee31
EZ
5332002-12-08 Elena Zannoni <[email protected]>
534
535 Import of readline 4.3:
536 * cli/cli-cmds.c: Include readline/tilde.h.
537 * cli/cli-setshow.c: Ditto.
538 * defs.h: Don't declare tilde_expand anymore, since readline
539 exports it.
540
3442dad6 5412002-12-08 Elena Zannoni <[email protected]>
57725d84
EZ
542
543 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
544 -Werror on this file.
545
52f87c51
AC
5462002-12-07 Andrew Cagney <[email protected]>
547
548 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
549 the format name.
550 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
551 * gdbarch.c: Regenerate.
552
2ca6c561
AC
5532002-12-06 Andrew Cagney <[email protected]>
554
555 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
556 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
557 provide a default value.
558 * gdbarch.h, gdbarch.c: Regenerate.
559 * frame.c (get_prev_frame): Update. Check
560 DEPRECATED_INIT_FRAME_PC_FIRST_P.
561 * s390-tdep.c (s390_gdbarch_init): Update.
562 * mips-tdep.c (mips_gdbarch_init): Update.
563 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
564 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
565 * alpha-tdep.c (alpha_gdbarch_init): Update.
566
e162d11b
EZ
5672002-12-06 Elena Zannoni <[email protected]>
568
569 * ia64-linux-nat.c: Include gdb_string.h.
570 * alpha-nat.c: Ditto.
2b298b5d
EZ
571 * ppc-linux-nat.c: Ditto.
572 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
573 Update dependencies.
e162d11b 574
aa0cd9c1
AC
5752002-12-05 Andrew Cagney <[email protected]>
576
577 * gdbthread.h: Include "frame.h".
578 (struct thread_info): Replace step_frame_address with
579 step_frame_id.
580 * inferior.h: Include "frame.h".
581 (step_frame_id): Replace external variable step_frame_address.
582 * gdbthread.h (save_infrun_state): Replace step_frame_address
583 parameter with step_frame_id parameter.
584 (load_infrun_state): Ditto.
585 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
586 * infcmd.c (step_frame_id, step_1, step_once): Update.
587 * thread.c (load_infrun_state, save_infrun_state): Update.
588 * infrun.c (clear_proceed_status, save_inferior_status): Update.
589 (handle_inferior_event, step_over_function): Update.
590 (normal_stop, context_switch, restore_inferior_status): Update.
591 (struct inferior_status): Replace step_frame_address with
592 step_frame_id.
593
a9a9bd0f
DC
5942002-12-05 David Carlton <[email protected]>
595
596 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
597 DW_TAG_member as well as a declaration as being a C++ static data
598 member.
599 (read_structure_scope): Combine tests for DW_TAG_member and
600 DW_TAG_variable.
601
614b3b14
DC
6022002-12-05 David Carlton <[email protected]>
603
604 * linespec.c (decode_compound): New function.
605 (decode_line_1): Move code into decode_compound.
606
e4051eeb
DC
6072002-12-05 David Carlton <[email protected]>
608
609 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
610 argument.
611 (lookup_symbol_aux): Do the 'field_of_this' check before checking
612 the static block. See PR gdb/804.
613
f61e8913
DC
6142002-12-05 David Carlton <[email protected]>
615
616 * symtab.c (lookup_symbol_aux_block): New function.
617 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
618
1e9f55d0
AC
6192002-12-05 Andrew Cagney <[email protected]>
620
621 * gdbarch.sh: Dump the predicate function and macro values.
622 (read): Print error on standard error.
623 * gdbarch.c: Regenerate.
624
d1973055
KB
6252002-12-04 Kevin Buettner <[email protected]>
626
627 * Makefile.in (mips_tdep_h): Define.
628 (mips-tdep.o): Add mips_tdep_h to dependency list.
629 * mips-tdep.h: New file.
630 * mips-tdep.c (mips-tdep.h): Include.
631 (enum mips_abi): Move to mips-tdep.h.
632 (mips_abi): New function.
633
f1253c7b
DC
6342002-12-04 David Carlton <[email protected]>
635
636 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
637
406bc4de
DC
6382002-12-04 David Carlton <[email protected]>
639
640 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
641 function.
642 (lookup_symbol_aux_minsyms): New function.
643
2a3750c5
JB
6442002-12-04 J. Brobecker <[email protected]>
645
646 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
647
961d8652
JB
6482002-12-04 J. Brobecker <[email protected]>
649
650 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
651 which is an obsolete macro name.
652
38c52d5a
DJ
6532002-12-04 Daniel Jacobowitz <[email protected]>
654
655 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
656 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
657
d8ef46f5
DJ
6582002-12-03 H.J. Lu ([email protected])
659
660 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
661 (create_breakpoints): Make sure the addr_string field is not
662 NULL.
663
02ae7771
AC
6642002-12-03 Andrew Cagney <[email protected]>
665
666 * sparc-nat.c (fetch_inferior_registers)
667 (store_inferior_registers): Add comment on problem of LWP vs
668 threads.
669
670 From 2002-11-21 Daniel Jacobowitz <[email protected]>
671 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
672 (lin_lwp_store_registers): Remove.
673 (init_lin_lwp_ops): Use fetch_inferior_registers
674 and store_inferior_registers directly.
675 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
676 (store_inferior_registers): Likewise.
677 Fix PR gdb/725.
678
7a424e99
AC
6792002-12-03 Andrew Cagney <[email protected]>
680
681 * frame.h (get_frame_id): Convert to a function.
682 (null_frame_id, frame_id_p): Declare.
683 (frame_id_eq, frame_id_inner): Declare.
684 (frame_id_build): New function.
685 * frame.c (get_frame_id): Update. Use null_frame_id.
686 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
687 frame_id_inner.
688 (null_frame_id, frame_id_p): Define.
689 (frame_id_eq, frame_id_inner): Define.
690 (frame_id_build): New function.
691 * varobj.c (varobj_create): Update.
692 (varobj_update): Update.
693 * valops.c (value_assign): Update.
694 (new_root_variable): Update.
695 * infrun.c (save_inferior_status): Update.
696 * breakpoint.c (watch_command_1): Update.
697
891c7f5f
JB
6982002-12-03 J. Brobecker <[email protected]>
699
700 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
701 (SNAP2): Likewise.
702
144da3c1
AC
7032002-12-03 Andrew Cagney <[email protected]>
704
46248966
AC
705 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
706 patch.
707
144da3c1
AC
708 * PROBLEMS: Mention PR gdb/725.
709
03c6228e
AS
7102002-12-03 Andreas Schwab <[email protected]>
711
712 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
713
36e53c63
AF
7142002-12-02 Adam Fedor <[email protected]>
715 Klee Dienes <[email protected]>
716
717 * objc-lang.c (objc_printstr): Add width arg to match
718 printstr prototype.
719 (compare_selectors): Add 'const' to arg types.
720 (compare_classes): Likewise.
721 (find_imps): Cast msym pointer to avoid compiler warning.
722 (print_object_command): Validate the address before
723 passing it to the print routine.
724 (find_objc_msgcall_submethod): Change function argument to
725 return an int.
726 * objc-lang.h: Add 'extern' to all function declarations.
727 (value_nsstring): Add declaration.
728
504d5c7e
JB
7292002-12-02 J. Brobecker <[email protected]>
730
731 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
732 Fixes a build failure on HP/UX.
733
734 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
735 failure on HP/UX.
736 (hpread_has_name): Advance declaration to avoid a compilation warning.
737 (pst_syms_count): Add missing variable type. By change, the compiler
738 was defaulting to int, which seems a good choice. Fixes a compilation
739 warning.
740 (pst_syms_size): Likewise.
741
59623e27
JB
7422002-12-02 J. Brobecker <[email protected]>
743
744 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
745 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
746 later to set the proper gdbarch methods depending on the osabi.
747 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
748
a09a320d
JB
7492002-12-02 J. Brobecker <[email protected]>
750
751 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
752 * osabi.c (gdb_osabi_name): Add strings images for the two new
753 enum values.
754 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
755
8a81a99e
AC
7562002-12-02 Andrew Cagney <[email protected]>
757
758 * MAINTAINERS (Java): Global maintainers are responible for Java.
759 (Past Maintainers): Mention both Anthony Green and Per Bothner as
760 part Java maintainers.
761
7af35dad
JB
7622002-12-02 J. Brobecker <[email protected]>
763
764 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
765 Fixes a compilation failure on AiX.
766
f4ede9bc
JB
7672002-12-02 J. Brobecker <[email protected]>
768
769 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
770 why aix-thread.o is not listed.
771
ae45cd16
AC
7722002-12-01 Andrew Cagney <[email protected]>
773
774 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
775 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
776 * gdbarch.h, gdbarch.c: Re-generate.
777 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
778 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
779 * config/pa/tm-hppa.h, frame.h: Update.
780 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
781 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
782 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
783 * cris-tdep.c, alpha-tdep.c: Update.
784 * frame.c (set_unwind_by_pc, create_new_frame): Use either
785 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
786 (get_prev_frame): Ditto.
787
020cc13c
AC
7882002-11-30 Andrew Cagney <[email protected]>
789
790 * exec.c (xfer_memory): Replace boolean with int.
791 * p-exp.y: Use 0 instead of false.
792 * corelow.c (gdb_check_format): Change return type to int from
793 boolean.
794 * utils.c: Don't include <curses.h> or <term.h> first.
795
1d9b2aa8
SC
7962002-11-29 Stephane Carrez <[email protected]>
797
798 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
799 (m68hc11_register_byte): Remove.
800 (m68hc11_gdbarch_init): Don't set the above.
801
a193e397
AC
8022002-11-29 Andrew Cagney <[email protected]>
803
804 * remote-mips.c (mips_initialize): Force a selected frame rebuild
805 by calling get_selected_frame.
806 * ocd.c (ocd_start_remote): Use get_selected frame instead of
807 set_current_frame, create_new_frame, select_frame and
808 get_current_frame.
809 * remote-e7000.c (e7000_start_remote): Ditto.
810 * remote-mips.c (common_open): Ditto
811 * remote-rdp.c (remote_rdp_open): Ditto.
812
b5fc49aa
AS
8132002-11-29 Andreas Schwab <[email protected]>
814
815 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
816 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
817 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
818 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
819 read_memory_unsigned_integer instead of read_memory_integer when
820 dealing with addresses and instruction opcodes.
821 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
822 (m68k_linux_frame_saved_pc): Likewise.
823
6e7f8b9c
AC
8242002-11-29 Andrew Cagney <[email protected]>
825
826 * stack.c (selected_frame, select_frame): Move from here ...
827 * frame.c (selected_frame, select_frame): ... to here. Include
828 "language.h".
829 * Makefile.in (frame.o): Update dependencies.
830 * frame.c (get_selected_frame): New function.
831 * frame.h (get_selected_frame): Declare.
832 (deprecated_selected_frame): Rename selected_frame.
833 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
834 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
835 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
836 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
837 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
838 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
839 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
840 * z8k-tdep.c, cli/cli-cmds.c: Update.
841
805e2818
AC
8422002-11-29 Andrew Cagney <[email protected]>
843
844 * frame.h (get_selected_block): Add comments.
845
1058bca7
AC
8462002-11-28 Andrew Cagney <[email protected]>
847
848 * frame.c (pc_notcurrent): New function.
849 (find_frame_sal): New function.
850 * frame.h (find_frame_sal): Declare.
851 (struct symtab_and_line): Add opaque declaration.
fe67b6c5
AC
852 * stack.c (print_frame_info_base): Use find_frame_sal instead of
853 find_pc_line.
1058bca7
AC
854 (frame_info): Ditto.
855 * ada-lang.c (find_printable_frame): Ditto.
856
d92419e5
JB
8572002-11-28 J. Brobecker <[email protected]>
858
859 * configure.in: Check that the pthdebug library is recent enough
860 before enabling thread support on native AiX.
861 * configure: Regenerate.
862
863 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
864 from the list of object files as it is now appended by configure
865 if thread support is enabled.
866 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
867 if thread support is enabled.
868
8c69fc49
AC
8692002-11-28 Andrew Cagney <[email protected]>
870
871 * stack.c (get_selected_block): In-line get_current_block.
872 * frame.h (get_current_block): Delete declaration.
873 * blockframe.c (get_current_block): Delete function.
874
07555a72
AC
8752002-11-28 Andrew Cagney <[email protected]>
876
877 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
878 USE_GENERIC_DUMMY_FRAMES.
879 * gdbarch.h, gdbarch.c: Regenerate.
880 * valops.c, frame.c: Update.
881 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
882 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
883 * config/pa/tm-hppa.h, blockframe.c: Update.
884 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
885 * m68k-tdep.c, alpha-tdep.c: Ditto.
886
887 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
888 * mips-tdep.c: Ditto.
889
b99fa2d2
AC
8902002-11-27 Andrew Cagney <[email protected]>
891
892 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
893 (USE_GENERIC_DUMMY_FRAMES): Default to true.
894 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
895 * gdbarch.c, gdbarch.h: Re-generate.
896 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
897 (CALL_DUMMY_LOCATION): Delete macro definition.
898 (PC_IN_CALL_DUMMY): Delete macro definitions.
899
900 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
901 default is already generic_pc_in_call_dummy.
902 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
903 * v850-tdep.c (v850_gdbarch_init): Ditto.
904 * sh-tdep.c (sh_gdbarch_init): Ditto.
905 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
906 * mips-tdep.c (mips_gdbarch_init): Ditto.
907 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
908 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
909 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
910 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
911 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
912 * avr-tdep.c (avr_gdbarch_init): Ditto.
913
914 * arm-tdep.c (arm_gdbarch_init): Do not set
915 use_generic_dummy_frames, default is already 1.
916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
917 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
918 * v850-tdep.c (v850_gdbarch_init): Ditto.
919 * sh-tdep.c (sh_gdbarch_init): Ditto.
920 * s390-tdep.c (s390_gdbarch_init): Ditto.
921 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
922 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
923 * mips-tdep.c (mips_gdbarch_init): Ditto.
924 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
926 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
927 * i386-tdep.c (i386_gdbarch_init): Ditto.
928 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
929 * frv-tdep.c (frv_gdbarch_init): Ditto.
930 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
931 * cris-tdep.c (cris_gdbarch_init): Ditto.
932 * avr-tdep.c (avr_gdbarch_init): Ditto.
933
934 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
935 call_dummy_location, default is already AT_ENTRY_POINT.
936 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
937 * v850-tdep.c (v850_gdbarch_init): Ditto.
938 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
939 * sh-tdep.c (sh_gdbarch_init): Ditto.
940 * s390-tdep.c (s390_gdbarch_init): Ditto.
941 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
942 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
943 * mips-tdep.c (mips_gdbarch_init): Ditto.
944 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
945 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
946 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
947 * i386-tdep.c (i386_gdbarch_init): Ditto.
948 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
949 * frv-tdep.c (frv_gdbarch_init): Ditto.
950 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
951 * cris-tdep.c (cris_gdbarch_init): Ditto.
952 * avr-tdep.c (avr_gdbarch_init): Ditto.
953 * arm-tdep.c (arm_gdbarch_init): Ditto.
954 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
955
abc0af47
AC
9562002-11-28 Andrew Cagney <[email protected]>
957
958 * frame.h: Update comments on set_current_frame, create_new_frame,
959 flush_cached_frames, reinit_frame_cache, select_frame and
960 selected_frame.
961
ed5cedc5
AC
9622002-11-27 Andrew Cagney <[email protected]>
963
964 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
965 deprecated pc_in_call_dummy function.
966 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
967 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
968 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
969 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
970 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
971
b2a1bd4f
MH
9722002-11-26 Martin M. Hunt <[email protected]>
973
974 * Makefile.in: Remove Tix dependencies.
975 * acinclude.m4: Ditto.
976 * aclocal.m4: Ditto.
977 * configure.in: Ditto.
978 * configure: Regenerated.
979
f09cffaa
AC
9802002-11-26 Andrew Cagney <[email protected]>
981
982 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
983 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
984 * gdbarch.c: Re-generate.
985
e92b0cc9
AC
9862002-11-26 Andrew Cagney <[email protected]>
987
988 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
989 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
990 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
991 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
992 pc_in_call_dummy_at_entry_point.
993 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
994 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
995 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
996 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
997 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
998 pc_in_call_dummy_on_stack.
999 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1000 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1001 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1002 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1003 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1004
b4b88177
AC
10052002-11-26 Andrew Cagney <[email protected]>
1006
1007 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1008 pc_in_call_dummy_before_text_end
1009 (deprecated_pc_in_call_dummy_after_text_end): Rename
1010 pc_in_call_dummy_after_text_end.
1011 (deprecated_pc_in_call_dummy_on_stack): Rename
1012 pc_in_call_dummy_on_stack.
1013 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1014 pc_in_call_dummy_at_entry_point.
1015 * m68k-tdep.c (m68k_gdbarch_init): Update.
1016 * s390-tdep.c (s390_gdbarch_init): Update.
1017 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1018 * vax-tdep.c (vax_gdbarch_init): Update.
1019 * sparc-tdep.c (sparc_gdbarch_init): Update.
1020 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1021 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1022 * i386-tdep.c (i386_gdbarch_init): Update.
1023 * frv-tdep.c (frv_gdbarch_init): Update.
1024 * cris-tdep.c (cris_gdbarch_init): Update.
1025 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1026 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1027 (deprecated_pc_in_call_dummy_after_text_end)
1028 (deprecated_pc_in_call_dummy_on_stack)
1029 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1030 * alpha-tdep.c (alpha_gdbarch_init): Update.
1031
eb784848
DJ
10322002-11-25 Daniel Jacobowitz <[email protected]>
1033
1034 * acconfig.h (HAVE_PREAD64): Add.
1035 * configure.in: Check for pread64.
1036 * config.in: Regenerated.
1037 * configure: Regenerated.
1038 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1039 * linux-proc.c (linux_proc_xfer_memory): New function.
1040 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
1041
933c6fe4
DC
10422002-11-25 David Carlton <[email protected]>
1043
1044 * dwarf2read.c (scan_partial_symbols): Descend into namespace
1045 pdi's with no name.
1046
158a8022
AC
10472002-11-25 Andrew Cagney <[email protected]>
1048
1049 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
1050 16:32:04 1999 Andrew Cagney <[email protected]>.
1051
481d0f41
JB
10522002-11-25 Jim Blandy <[email protected]>
1053
e8289572
JB
1054 * symfile.c (init_objfile_sect_indices): New function.
1055 (default_symfile_offsets): Move the section-index-initializing
1056 stuff into init_objfile_sect_indices, and call that.
1057
b29c9944
JB
1058 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
1059 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
1060
13de58df
JB
1061 * symfile.c (syms_from_objfile): Adjust indentation.
1062
481d0f41
JB
1063 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
1064 || info_verbose isn't true.
1065
7d6a26a7
AC
10662002-11-24 Andrew Cagney <[email protected]>
1067
1068 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
1069 default to get_frame_base.
1070 * gdbarch.h, gdbarch.c: Regenerate.
1071 * arch-utils.c (default_frame_address): Delete function.
1072 * arch-utils.h (default_frame_address): Delete declaration
1073
6abe1021
PM
10742002-11-24 Pierre Muller <[email protected]>
1075
1076 * varobj.c (find_frame_addr_in_frame_chain):
1077 Use get_frame_base instead of FRAME_FP,
1078 obvious fix.
1079
c193f6ac
AC
10802002-11-19 Andrew Cagney <[email protected]>
1081
1082 * frame.h (FRAME_FP): Delete macro.
1083 (get_frame_base): New function declaration.
1084 * frame.c (get_frame_base): New function.
1085 (get_frame_id): Use ->frame.
1086 (frame_find_by_id): Rewrite to use get_frame_id.
1087 * blockframe.c: Use get_frame_base instead of FRAME_FP.
1088 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
1089 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
1090 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
1091 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
1092 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
1093 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
1094
e5d2af14
AC
10952002-11-24 Andrew Cagney <[email protected]>
1096
1097 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
1098
931d12c6
AC
10992002-11-24 Andrew Cagney <[email protected]>
1100
1101 * frame.c (set_unwind_by_pc): Revert change below, use
1102 PC_IN_CALL_DUMMY.
1103 (get_prev_frame): Ditto.
1104
5e0f933e
AC
11052002-11-24 Andrew Cagney <[email protected]>
1106
1107 * dummy-frame.c (pc_in_dummy_frame): New function.
1108 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
1109 (find_dummy_frame): Update comment.
1110 (generic_pop_current_frame): Use get_frame_type.
1111 * dummy-frame.h (pc_in_dummy_frame): Declare.
1112 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
1113 (create_new_frame): Use pc_in_dummy_frame.
1114 (get_prev_frame): Use pc_in_dummy_frame.
1115 (frame_saved_regs_register_unwind): Use get_prev_frame.
1116 (deprecated_generic_get_saved_register): Use get_prev_frame.
1117
7d8547c9
AC
11182002-11-23 Andrew Cagney <[email protected]>
1119
1120 * blockframe.c (find_frame_addr_in_frame_chain): Move function
1121 from here ...
1122 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
1123 (varobj_create): Note that frame ID should be used.
1124 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
1125
0225421b
AC
11262002-11-23 Andrew Cagney <[email protected]>
1127
1128 * breakpoint.c: Include "gdb_assert.h".
1129 (deprecated_frame_in_dummy): Assert that generic dummy frames are
1130 not being used.
1131 * Makefile.in (breakpoint.o): Update dependencies.
1132 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
1133 deprecated_frame_in_dummy.
1134 * stack.c (print_frame_info_base): Ditto.
1135 (frame_info): Ditto.
1136 (print_frame_info_base): Ditto. Delete dead code.
1137
32eeb91a
AS
11382002-11-23 Andreas Schwab <[email protected]>
1139
1140 * Makefile.in (m68k_tdep_h): Define.
1141 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
1142 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
1143 * m68k-tdep.c: Move register number enum ...
1144 * m68k-tdep.h: ... to this new file and rename the constants from
1145 E_* to M68K_*. All uses changed.
1146 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
1147 * abug-rom.c: Include "m68k-tdep.h". Use
1148 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
1149 * cpu32bug-rom.c: Likewise.
1150 * dbug-rom.c: Likewise.
1151 * m68k-tdep.c: Likewise.
1152 * m68klinux-nat.c: Likewise.
1153 * remote-est.c: Likewise.
1154 * rom68k-rom.c: Likewise.
1155 * config/m68k/tm-linux.h: Likewise.
1156
9648bac8
AC
11572002-11-23 Andrew Cagney <[email protected]>
1158
1159 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
1160 dummy frame initialization code.
1161 * mips-tdep.c (mips_gdbarch_init): Ditto.
1162
91a175b3
CF
11632002-11-22 Christopher Faylor <[email protected]>
1164
1165 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
1166 attach will hang.
1167
f4ded5b1
AC
11682002-11-22 Andrew Cagney <[email protected]>
1169
1170 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
1171 to default_frame_address.
1172 * gdbarch.h, gdbarch.c: Re-generate.
1173
1174 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
1175 or frame_locals_address to default_frame_address.
1176 * m68k-tdep.c (m68k_gdbarch_init): Update.
1177 * i386-tdep.c (i386_gdbarch_init): Update.
1178 * frv-tdep.c (frv_gdbarch_init): Update.
1179 * sh-tdep.c (sh_gdbarch_init): Update.
1180 * v850-tdep.c (v850_gdbarch_init): Update.
1181 * sparc-tdep.c (sparc_gdbarch_init): Update.
1182 * mips-tdep.c (mips_gdbarch_init): Update.
1183 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1184 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1186
1187 * cris-tdep.c (cris_frame_args_address): Delete function.
1188 (cris_frame_locals_address): Delete function.
1189 (cris_gdbarch_init): Do not set frame_args_address or
1190 frame_locals_address.
1191
f7c1e0f3
MS
11922002-11-22 Michael Snyder <[email protected]>
1193
1194 * thread-db.c (thread_db_load): Tell the user what's going on
1195 if dlopen fails on libthread_db.
1196
03dac896
AS
11972002-11-23 Andreas Schwab <[email protected]>
1198
1199 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
1200 invariant return values.
1201
7a67d0fe
AS
12022002-11-22 Andreas Schwab <[email protected]>
1203
1204 * valops.c (value_slice): Move declaration of `offset' to avoid
1205 warning.
1206
5633f842
CF
12072002-11-22 Christopher Faylor <[email protected]>
1208
1209 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
1210 (struct so_stuff): Add end_addr field.
1211 (register_loaded_dll): Calculate and store end address of loaded dll.
1212 (solib_address): New function.
1213 (child_solib_loaded_library_pathname): Pass carefully constructed
1214 section info to safe_symbol_file_add rather than ignoring it.
1215 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
1216 DLL is loaded.
1217 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
1218 (child_create_inferior): Fix a compiler warning.
1219 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
1220 (solib_address): Declare new function.
1221
d85fe7f7
AS
12222002-11-22 Andreas Schwab <[email protected]>
1223
1224 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
1225 and FPS registers.
1226
8308e54c
DJ
12272002-11-21 Daniel Jacobowitz <[email protected]>
1228
1229 * maint.c (_initialize_maint_cmds): Fix typo. From
1230 Francesco Potorti` <[email protected]>.
1231
8997bd5e
AC
12322002-11-21 Andrew Cagney <[email protected]>
1233
1234 * mips-tdep.c (mips_dump_tdep): Delete references to
1235 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1236 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
1237 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
1238 * printcmd.c (build_address_symbolic): Delete calls to
1239 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
1240 (address_info): Ditto.
1241 Fix PR gdb/773.
1242
4e87b832
KD
12432002-11-19 Klee Dienes <[email protected]>
1244 Adam Fedor <[email protected]>
1245
1246 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
1247 the ability to explicitly specify the quote characters and word
1248 break characters; if NULL is specified for either, use the old
1249 behavior of using the characters used by the completer.
1250 (skip_chars): New function. Convenience wrapper around
1251 skip_quoted_chars to provide the original skip_chars behavior.
1252 * completer.h (skip_quoted_chars): Add prototype.
1253
9ba8d803
AC
12542002-11-19 Andrew Cagney <[email protected]>
1255
1256 Problems reported by Paul Eggert.
1257 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
1258
0a595803
AS
12592002-11-19 Andreas Schwab <[email protected]>
1260
1261 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
1262 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
1263 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
1264 (m68k_linux_frame_saved_pc): Move to ...
1265 * m68klinux-tdep.c: ... here. New file.
1266 * Makefile.in (m68klinux-tdep.o): Add dependencies.
1267 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
1268
e8afa4d7
AF
12692002-11-19 Adam Fedor <[email protected]>
1270
1271 * objc-exp.y: Revert to old skip_quoted usage.
1272
a76c9d72
AF
12732002-11-19 Adam Fedor <[email protected]>
1274
1275 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
1276 (objc_lang_h): Define.
1277 (YYFILES): Add objc-exp.tab.c.
1278 (local-maintainer-clean): Remove objc-exp.tab.c.
1279 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
1280
fd0e9d45
PM
12812002-11-19 Pierre Muller <[email protected]>
1282
1283 * p-exp.y (typecast rule): Add automatic dereference of
1284 pascal classes if needed.
1285 (THIS): Set current_type.
1286 Automatically dereference pascal classes.
1287 (typebase rule): Add ^typebase recognition.
1288
82eeeb94
AF
12892002-11-18 Adam Fedor <[email protected]>
1290
1291 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
1292 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
1293 (op_name): Handle OP_OBJC_SELF.
1294 * Makefile.in (expprint.o): Add additional depends.
1295
646df18d
AF
12962002-11-18 Adam Fedor <[email protected]>
1297
1298 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
1299 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
1300 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
1301 * objc-exp.y: Likewise.
1302
379b85df
AF
13032002-11-18 Adam Fedor <[email protected]>
1304
1305 * gdb/parser-defs.h: (struct objc_class_str): New structure
1306 for parsing ObjC classes.
1307
85cf597a
AC
13082002-11-18 Andrew Cagney <[email protected]>
1309
1310 * stack.c (frame_relative_level): Copy function from here ...
1311 * frame.c (frame_relative_level): ...to here.
1312
5a203e44
AC
13132002-11-18 Andrew Cagney <[email protected]>
1314
1315 * frame.h (enum frame_type): Define.
1316 (get_frame_type): Declare.
1317 (struct frame_info): Add field `type'. Delete field
1318 signal_handler_caller.
1319 (deprecated_set_frame_signal_handler_caller): Declare.
1320 * frame.c (get_frame_type): New function.
1321 (deprecated_set_frame_type): New function.
1322 (create_new_frame): Set the frame's type.
1323 (get_prev_frame): Similar.
1324 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
1325 * s390-tdep.c: Ditto.
1326 * m68klinux-nat.c: Ditto.
1327 * ns32k-tdep.c: Ditto.
1328 * x86-64-linux-tdep.c: Ditto.
1329 * vax-tdep.c: Ditto.
1330 * rs6000-tdep.c: Ditto.
1331 * ppc-linux-tdep.c: Ditto.
1332 * i386-interix-tdep.c: Ditto.
1333 * mips-tdep.c: Ditto.
1334 * m68k-tdep.c: Ditto.
1335 * hppa-tdep.c: Ditto.
1336 * ia64-tdep.c: Ditto.
1337 * cris-tdep.c: Ditto.
1338 * arm-tdep.c: Ditto.
1339 * alpha-tdep.c: Ditto.
1340 * i386-tdep.c: Ditto.
1341 * stack.c: Ditto.
1342 * ada-lang.c: Ditto.
1343 * blockframe.c: Update.
1344 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
1345 deprecated_set_frame_type instead of signal_handler_caller.
1346 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
1347 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1348 * breakpoint.h: Delete FIXME suggesting get_frame_type.
1349
bf4ae8b2
KD
13502002-11-18 Klee Dienes <[email protected]>
1351
1352 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
1353
a672ef13
KD
13542002-11-18 Klee Dienes <[email protected]>
1355
1356 * buildsym.c (pop_context): Add comment.
1357
0c5e171a
KD
13582002-11-18 Klee Dienes <[email protected]>
1359
1360 * buildsym.h (pop_context): Convert to function, defined in
1361 buildsym.c.
1362 * buildsym.c: Include gdb_assert.h.
1363 (pop_context): Implement as C function. Add check for stack
1364 underflow.
1365 * dbxread.c (process_one_symbol): Complain and stop processing
1366 that symbol if we are already at the top of the context stack for
1367 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
1368 when processing N_RBRAC.
1369
8a1f4c4c
DJ
13702002-11-16 Daniel Jacobowitz <[email protected]>
1371
1372 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
1373 define.
1374 (struct target_waitstatus): Add opaque definition.
1375 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
1376 * exec.c (init_exec_ops): Likewise.
1377 * fork-child.c (clone_and_follow_inferior): Remove.
1378 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
1379 * inferior.h (clone_and_follow_inferior): Remove prototype.
1380 * infrun.c (follow_fork_mode_both): Remove.
1381 (follow_fork_mode_kind_names): Remove commented out "both".
1382 (follow_inferior_fork): Remove follow_fork_mode_both support.
1383 * inftarg.c (child_clone_and_follow_inferior): Remove.
1384 (child_post_follow_inferior_by_clone): Remove.
1385 (init_child_ops): Don't set to_clone_and_follow_inferior
1386 or to_post_follow_inferior_by_clone.
1387 * target.c (default_clone_and_follow_inferior): Remove.
1388 (cleanup_target): Don't set to_clone_and_follow_inferior
1389 or to_post_follow_inferior_by_clone.
1390 (find_default_clone_and_follow_inferior): Remove.
1391 (init_dummy_target): Don't set to_clone_and_follow_inferior.
1392 (debug_to_clone_and_follow_inferior): Remove.
1393 (debug_to_post_follow_inferior_by_clone): Remove.
1394 (setup_target_debug): Don't set to_clone_and_follow_inferior
1395 or to_post_follow_inferior_by_clone.
1396 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
1397 and to_post_follow_inferior_by_clone.
1398 (child_clone_and_follow_inferior): Remove prototype.
1399 (child_post_follow_inferior_by_clone): Remove prototype.
1400 (target_clone_and_follow_inferior): Remove macro.
1401 (target_post_follow_inferior_by_clone): Remove macro.
1402 (find_default_clone_and_follow_inferior): Remove prototype.
1403
47932f85
DJ
14042002-11-16 Daniel Jacobowitz <[email protected]>
1405
1406 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
1407 inferior_has_vforked, and inferior_has_execd instead of
1408 target_has_forked, target_has_vforked, and target_has_execd.
1409 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
1410 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
1411 (CHILD_WAIT): Define.
1412 (child_wait): Add prototype.
1413 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
1414 Add prototype.
1415 (hpux_has_vforked): Likewise, from child_has_vforked.
1416 (hpux_has_execd): Likewise, from child_has_execd.
1417 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1418 (not_same_real_pid, child_wait): New, copied from inftarg.c.
1419 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
1420 and hpux_has_syscall_event instead of the target hooks.
1421 * infrun.c (inferior_has_forked, inferior_has_vforked)
1422 (inferior_has_execd): New functions.
1423 * inftarg.c (not_same_real_pid): Remove.
1424 (child_wait): Remove references to not_same_real_pid,
1425 target_has_forked, target_has_vforked, target_has_execd,
1426 and target_has_syscall_event.
1427 (child_has_forked, child_has_vforked, child_has_execd)
1428 (child_has_syscall_event): Remove.
1429 (init_child_ops): Remove references to child_has_forked,
1430 child_has_vforked, child_has_execd, and child_has_syscall_event.
1431 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
1432 (hpux_has_vforked): Likewise, from child_has_vforked.
1433 (hpux_has_execd): Likewise, from child_has_execd.
1434 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
1435 * target.c (cleanup_target): Remove references to
1436 to_has_forked, to_has_vforked, to_has_execd, and
1437 to_has_syscall_event.
1438 (update_current_target): Likewise.
1439 (setup_target_debug): Likewise.
1440 (debug_to_has_forked): Remove.
1441 (debug_to_has_vforked): Remove.
1442 (debug_to_has_execd): Remove.
1443 (debug_to_has_syscall_event): Remove.
1444 * target.h (struct target_ops): Remove to_has_forked.
1445 to_has_vforked, to_has_execd, and to_has_syscall_event.
1446 (child_has_forked, child_has_vforked, child_has_execd)
1447 (child_has_syscall_event): Remove prototypes.
1448 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
1449 prototypes.
1450 (target_has_forked, target_has_vforked, target_has_execd)
1451 (target_has_syscall_event): Remove macros.
1452
4088142a
DJ
14532002-11-16 Daniel Jacobowitz <[email protected]>
1454
1455 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
1456 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
1457 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
1458 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
1459 * target.c (cleanup_target): Remove reference to
1460 to_can_follow_vfork_prior_to_exec.
1461 (update_current_target): Likewise.
1462 (debug_to_can_follow_vfork_prior_to_exec): Remove.
1463 (setup_target_debug): Remove reference to
1464 to_can_follow_vfork_prior_to_exec.
1465 * target.h (struct target_ops): Remove
1466 to_can_follow_vfork_prior_to_exec.
1467 (child_can_follow_vfork_prior_to_exec): Remove prototype.
1468 (target_can_follow_vfork_prior_to_exec): Remove definition.
1469 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
1470 define.
1471 * infrun.c (follow_vfork_when_exec): Remove.
1472 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
1473 (follow_exec): Likewise.
1474 (handle_inferior_event): Likewise.
1475 (keep_going): Likewise.
1476
18cde8d5
AC
14772002-11-15 Andrew Cagney <[email protected]>
1478
1479 * frame.c (generic_unwind_get_saved_register): Make static.
1480 * frame.h (generic_unwind_get_saved_register): Delete declaration.
1481 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
1482 defaults to generic_unwind_get_saved_register.
1483 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1484 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1485 * frv-tdep.c (frv_gdbarch_init): Ditto.
1486 * i386-tdep.c (i386_gdbarch_init): Ditto.
1487 * s390-tdep.c (s390_gdbarch_init): Ditto.
1488 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1489 * v850-tdep.c (v850_gdbarch_init): Ditto.
1490 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1491 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1492 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
1493
a6b063af
AC
14942002-11-15 Andrew Cagney <[email protected]>
1495
1496 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
1497 i386-tdep.c.
1498
f407986f
AC
14992002-11-15 Andrew Cagney <[email protected]>
1500
1501 * frame.h (sigtramp_saved_pc): Delete declaration.
1502 * blockframe.c (sigtramp_saved_pc): Delete function.
1503 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
1504 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
1505 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
1506 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
1507
f18c5a73
AC
15082002-11-15 Andrew Cagney <[email protected]>
1509
1510 * frame.c (frame_pc_unwind): New function.
1511 (frame_saved_regs_pc_unwind): New function.
1512 (frame_register_unwind): Pass unwind_cache instead of
1513 register_unwind_cache.
1514 (set_unwind_by_pc): Add unwind_pc parameter, set.
1515 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
1516 (get_prev_frame): Ditto.
1517 * frame.h (frame_pc_unwind_ftype): Declare.
1518 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
1519 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
1520 (frame_pc_unwind): Declare.
1521 * dummy-frame.c (dummy_frame_pc_unwind): New function.
1522 (struct dummy_frame): Add comment mentioning that values are for
1523 previous frame.
1524 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
1525 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
1526 (generic_file_frame_chain_valid): Ditto.
1527 * stack.c (frame_info): Ditto.
1528
d9285969 15292002-11-15 David Carlton <[email protected]>
0960f083
DC
1530
1531 * linespec.c (locate_first_half): New function.
1532 (decode_line_1): Move code into locate_first_half.
1533
d741b867
AC
15342002-11-15 Andrew Cagney <[email protected]>
1535
1536 * complaints.h: Add comment explaining how to eliminate a
1537 deprecated_complain call.
24382c5c 1538 * complaints.h: Fix spelling errors.
d741b867 1539
82d03c99
DC
15402002-11-15 David Carlton <[email protected]>
1541
1542 * printcmd.c: Remove #include "disasm.h".
1543
c97eb5d9
AC
15442002-11-14 Andrew Cagney <[email protected]>
1545
1546 * frame.h: Move the most relevant interface functions to the start
1547 of the file.
1548
524d7c18
AC
15492002-11-14 Andrew Cagney <[email protected]>
1550
1551 * regcache.h (deprecated_registers): Rename registers.
1552 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
1553 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
1554 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
1555 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
1556 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
1557 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
1558 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
1559 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
1560 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
1561 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
1562 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
1563 * v850ice.c: Update.
1564
6411e720
AC
1565Wed Nov 13 19:51:05 2002 Andrew Cagney <[email protected]>
1566
1567 * utils.c (gdb_realpath): Add comment mentioning realpath with a
1568 NULL buffer.
1569
73937e03
AC
15702002-11-13 Andrew Cagney <[email protected]>
1571
1572 * regcache.h (deprecated_read_register_bytes): Rename
1573 read_register_bytes.
1574 (deprecated_write_register_bytes): Rename write_register_bytes.
1575 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
1576 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
1577 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
1578 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
1579 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
1580 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
1581 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
1582 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
1583 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
1584 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
1585 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
1586 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
1587 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
1588 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
1589
fb0cd46e
JB
15902002-11-13 Jim Blandy <[email protected]>
1591
1592 * findvar.c (read_var_value): Doc fix.
1593
2d28509a
AC
15942002-11-13 Andrew Cagney <[email protected]>
1595
1596 * regcache.c (struct regcache): Replace passthough_p with
1597 readonly_p.
1598 (regcache_xmalloc): Initialize readonly_p.
1599 (build_regcache): Initialize readonly_p.
1600 (regcache_save): New function.
1601 (regcache_restore): New function.
1602 (regcache_cpy): Re-implement using regcache_save and
1603 regcache_restore.
1604 (regcache_raw_read): Update.
1605 (regcache_cooked_read): When a read-only cache, checked for cached
1606 pseudo register values.
1607 (regcache_raw_write): Assert that the cache is not read-only.
1608 Remove code handling a non-passthrough cache.
1609 * regcache.h (regcache_save): Declare.
1610 (regcache_restore): Declare.
1611
067df2e5
AC
16122002-11-13 Andrew Cagney <[email protected]>
1613
1614 * regcache.c (struct regcache_descr): Add fields
1615 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
1616 (init_legacy_regcache_descr): Compute the size of a cooked
1617 register cache and then assign that to sizeof_raw_registers. Set
1618 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
1619 (init_legacy_regcache_descr): Ditto.
1620
51b1fe4e
AC
16212002-11-13 Andrew Cagney <[email protected]>
1622
1623 * regcache.c (register_buffer): Move to near start of file, update
1624 description.
1625 (regcache_raw_read): Use.
1626 (regcache_raw_write): Use.
1627 (struct regcache): Rename raw_registers to registers and
1628 raw_register_valid_p to register_valid_p.
1629 (regcache_xmalloc): Update.
1630 (regcache_xfree): Update.
1631 (register_buffer): Update.
1632 (regcache_cpy): Update.
1633 (regcache_cpy_no_passthrough): Update.
1634 (regcache_valid_p): Update.
1635 (deprecated_grub_regcache_for_registers): Update.
1636 (deprecated_grub_regcache_for_register_valid): Update.
1637 (set_register_cached): Update.
1638 (regcache_raw_write): Update.
1639
80b4c677
PM
16402002-11-13 Pierre Muller <[email protected]>
1641
1642 * p-exp.y (name_not_typename): Use copy_name to
1643 set current_type variable for fields of THIS.
1644
0f3fafde
DJ
16452002-11-12 Daniel Jacobowitz <[email protected]>
1646
1647 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
1648 * monitor.c (init_base_monitor_ops): Likewise.
1649 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
1650 * remote-array.c (init_array_ops): Likewise.
1651 * remote-e7000.c (init_e7000_ops): Likewise.
1652 * remote-es.c (init_es1800_ops): Likewise.
1653 (init_es1800_child_ops): Likewise.
1654 * remote-rdp.c (init_remote_rdp_ops): Likewise.
1655 * remote-sim.c (init_gdbsim_ops): Likewise.
1656 * remote-st.c (init_st2000_ops): Likewise.
1657 * sol-thread.c (init_sol_core_ops): Likewise.
1658 (init_sol_thread_ops): Likewise.
1659 * v850ice.c (init_850ice_ops): Likewise.
1660 * win32-nat.c (init_child_ops): Likewise.
1661 * wince.c (init_child_ops): Likewise.
1662
82c0260e
AC
16632002-11-12 Andrew Cagney <[email protected]>
1664
1665 * utils.c (gdb_realpath): Make rp a constant pointer.
1666
70d35819
AC
16672002-11-12 Andrew Cagney <[email protected]>
1668
1669 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
1670 a constant buffer; cannonicalize_file_name(); realpath() with a
1671 pathconf() defined buffer, xstrdup().
1672
9835a8b0
AC
16732002-11-12 Andrew Cagney <[email protected]>
1674
1675 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
1676 to hang2.C; hang3.c to hang3.C.
1677
3f47be5c
EZ
16782002-11-11 Elena Zannoni <[email protected]>
1679
1680 * findvar.c (read_var_value): Reenable TLS code.
1681
16822002-11-11 Elena Zannoni <[email protected]>
1683 Jim Blandy <[email protected]>
1684
1685 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
1686 * target.c (update_current_target): Add
1687 to_get_thread_local_address.
1688 * target.h (to_get_thread_local_address): Export.
1689 (target_get_thread_local_address): Define.
1690 (target_get_thread_local_address_p): Define.
1691 * thread-db.c: Include solib-svr4.h.
1692 (td_thr_tls_get_addr_p): Define.
1693 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
1694 (thread_db_get_thread_local_address): New function.
1695 (init_thread_db_ops): Initialize to_get_thread_local_address.
1696 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
1697 * configure: Regenerate.
1698 * config.in: Regenerate.
1699
636b1a6d
DC
17002002-11-11 David Carlton <[email protected]>
1701
1702 * linespec.c (set_flags): New function.
1703 (decode_line_1): Move code into set_flags.
1704
44fe14ab
DC
17052002-11-11 David Carlton <[email protected]>
1706
1707 * linespec.c (decode_line_1): Move chunks of code to separate
1708 functions.
1709 (initialize_defaults): New function.
1710 (decode_indirect): New function.
1711
e6f181f5
AC
17122002-11-11 Andrew Cagney <[email protected]>
1713
8971b011
AC
1714 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
1715 instead of void_code_ptr.
1716 (sigtramp_saved_pc): Ditto.
1717
e6f181f5
AC
1718 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
1719 i386_fp_regnum_p.
1720
01ad7f36
DJ
17212002-11-10 Daniel Jacobowitz <[email protected]>
1722
1723 * gdbtypes.h (struct main_type): Move artificial flag out of
1724 loc. New member of ``struct field'' named static_kind. Reduce
1725 overloaded meaning of bitsize.
1726 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
1727 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
1728 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
1729
1730 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
1731 new fields.
1732 (template_to_fixed_record_type, template_to_static_fixed_type)
1733 (to_record_with_fixed_variant_part): Likewise.
1734 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
1735 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
1736 * dwarfread.c (struct_type, enum_type): Likewise.
1737 * hpread.c (hpread_read_enum_type)
1738 (hpread_read_function_type, hpread_read_doc_function_type)
1739 (hpread_read_struct_type): Likewise.
1740 * mdebugread.c (parse_symbol): Likewise.
1741
bf1e52be
AC
17422002-11-10 Andrew Cagney <[email protected]>
1743
1744 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
1745 * stack.c (print_frame_info_base): Update.
1746 (print_frame_info_base, frame_info): Update.
1747 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
1748 (sparc_frame_saved_pc): Update.
1749 * ada-lang.c (find_printable_frame): Update.
1750 * breakpoint.c (deprecated_frame_in_dummy): Update.
1751
ce556f85
MK
17522002-11-09 Mark Kettenis <[email protected]>
1753
1754 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
1755 defined.
1756 (regmap): Extend to cover all registers.
1757 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
1758 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
1759 definitions.
1760 (fetch_register, sore_register): Simplify.
1761 (old_fetch_inferior_registers, old_store_inferior_registers):
1762 Remove functions.
1763 (cannot_fetch_register, cannot_store_register): Change
1764 implementation to use regmap array to decide which registers
1765 cannot be fetched/stored. This removes $orig_eax from the
1766 registers that cannot be fetched/stored.
1767 (fetch_inferior_registers): Call fetch_register directly instead
1768 of calling old_fetch_inferior_registers.
1769 (store_inferior_registers): Call store_register directly instead
1770 of calling old_store_inferior_registers.
1771 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
1772 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
1773 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
1774
932bb524
KD
17752002-11-09 Klee Dienes <[email protected]>
1776
1777 * i387-tdep.c (i387_supply_register): When called with NULL as a
1778 buffer, mark the register as not provided (to mirror the behavior
1779 of supply_register).
1780 (i387_supply_fxsave): Ditto.
1781 (i387_supply_fsave): Ditto (inherits the behavior from
1782 i387_supply_register).
1783
ebe68b27
KD
17842002-11-09 Klee Dienes <[email protected]>
1785
1786 * blockframe.c (sigtramp_saved_pc): Use
1787 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
1788 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
1789 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
1790
15220c65
AC
17912002-11-09 Andrew Cagney <[email protected]>
1792
1793 * frame.c (get_prev_frame): Test prev_p to identify a previously
1794 unwound frame. Initialize prev_p.
1795 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
1796 comment.
1797
95adb866
AC
17982002-11-09 Andrew Cagney <[email protected]>
1799
1800 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
1801 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
1802 more comments. Zap dead code.
1803
e71ecd70
MK
18042002-11-09 Mark Kettenis <[email protected]>
1805
1806 * infcmd.c (print_vector_info, print_float_info): Move code that
1807 checks whether the target has any registers and whether there is a
1808 selected frame up, such that it is also used if a target provides
1809 multi-arch definitions of these functions.
1810
c525330d
AC
18112002-11-08 Andrew Cagney <[email protected]>
1812
72bdd927
AC
1813 * Makefile.in (DESTDIR): Define.
1814 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
1815 prefix.
1816
c525330d
AC
1817 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
1818 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
1819
38c968cf
AC
18202002-11-08 Andrew Cagney <[email protected]>
1821
1822 * i386-linux-tdep.c: Include "reggroups.h".
1823 (i386_linux_register_reggroup_p): New function.
1824 (i386_linux_init_abi): Set register_reggroup_p to
1825 i386_linux_register_reggroup_p.
1826 * i386-tdep.h (i386_register_reggroup_p): Declare.
1827 * i386-tdep.c: Include "reggroups.h".
1828 (i386_init_reggroups): New function.
1829 (i386_add_reggroups): New function.
1830 (i386_register_reggroup_p): New function.
1831 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
1832 (_initialize_i386_tdep): Call i386_init_reggroups.
1833 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
1834 specific reggroups.
1835
19e33363
MK
18362002-11-09 Mark Kettenis <[email protected]>
1837
371a6e84
MK
1838 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
1839 request that's available in *BSD.
1840
94ba925a
MK
1841 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
1842
19e33363
MK
1843 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
1844 FDOFF_REGNUM.
1845
8779790c
AC
18462002-11-08 Andrew Cagney <[email protected]>
1847
1848 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
1849 * dummy-frame.c (find_dummy_frame): Rename
1850 generic_find_dummy_frame, make static. Return the dummy frame
1851 instead of the regcache.
1852 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
1853 (cached_find_dummy_frame): New function. Use find_dummy_frame.
1854 (dummy_frame_register_unwind): Rename
1855 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
1856 * dummy-frame.h (dummy_frame_register_unwind): Rename
1857 generic_call_dummy_register_unwind.
1858
8674b74f
MK
18592002-11-08 Mark Kettenis <[email protected]>
1860
1861 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
1862 except the inclusion of "i386/tm-i386.h", to...
1863 * config/i386/nm-i386v42mp.h: ...here.
1864 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
1865
4c1e7e9d
AC
18662002-11-08 Andrew Cagney <[email protected]>
1867
1868 * Makefile.in (frame.o): Update dependencies.
1869 * blockframe.c (current_frame, frame_obstack_alloc)
1870 (frame_saved_regs_zalloc, get_current_frame)
1871 (set_current_frame, create_new_frame)
1872 (set_unwind_by_pc, get_next_frame)
1873 (flush_cached_frames, reinit_frame_cache)
1874 (frame_saved_regs_register_unwind)
1875 (deprecated_generic_get_saved_register)
1876 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
1877 (_initialize_blockframe): Move frame code from here...
1878 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
1879 "annotate.h" and "dummy-frame.h".
1880 (_initialize_frame): New function.
1881
921e78cf
JB
18822002-11-08 Jim Blandy <[email protected]>
1883
1884 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
1885 when we finish a function a context.
1886 * buildsym.h (outermost_context_p): New macro.
1887 (Bug analyzed by David Edelsohn.)
1888
9c1412c1
AC
18892002-11-08 Andrew Cagney <[email protected]>
1890
1891 * blockframe.c: Include "dummy-frame.h".
1892 (struct dummy_frame, dummy_frame_stack)
1893 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
1894 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
1895 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
1896 (generic_save_call_dummy_addr, generic_pop_current_frame)
1897 (generic_pop_dummy_frame, generic_fix_call_dummy)
1898 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
1899 dummy frame code from here...
1900 * dummy-frame.c: ...to here. New file.
1901 * dummy-frame.h: New file.
1902 (generic_call_dummy_register_unwind): Declare.
1903 (generic_find_dummy_frame): Declare.
1904 * Makefile.in (SFILES): Add dummy-frame.c.
1905 (dummy-frame.o): Specify dependencies.
1906 (dummy_frame_h): Define.
1907 (COMMON_OBS): Add dummy-frame.o.
1908 (blockframe.o): Update dependencies.
1909
208d8187
JB
19102002-11-08 Jim Blandy <[email protected]>
1911
1912 * dwarf2read.c (read_func_scope): Restore local_symbols and
1913 param_symbols after we finish the function context. (Based on a
1914 patch from David Edelsohn.)
1915
413dad4d
DC
19162002-11-08 David Carlton <[email protected]>
1917
1918 * linespec.c (symbol_found): New function.
1919 (minsym_found): New function.
1920 (decode_line_1): Separate out some code into separate functions.
1921
5512c44a
JB
19222002-11-08 Joel Brobecker <[email protected]>
1923
1924 * i386-tdep.c (i386_frameless_signal_p): Make non static for
1925 the benefit of the interix target.
1926 * i386-tdep.h (i386_frameless_signal_p): Declare.
1927
1b33ef47
AC
19282002-11-08 Andrew Cagney <[email protected]>
1929
1930 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
1931 declaration that snuck in from change below.
1932
23a34459
AC
19332002-11-06 Andrew Cagney <[email protected]>
1934
1935 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
1936 all callers.
1937 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
1938 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
1939 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
1940 (i386_mxcsr_regnum_p): new function. Use instead of
1941 MXCSR_REGNUM_P.
1942 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
1943 (i386_sse_regnum_p): Declare.
1944 (i386_mxcsr_regnum_p): Declare.
1945 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
1946 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
1947 (IS_FP_REGNUM): Update definition.
1948 (IS_FPU_CTRL_REGNUM): Update definition..
1949 (IS_SSE_REGNUM): Update definition..
1950 * i386v-nat.c (register_u_addr): Update.
1951 * go32-nat.c (fetch_register): Update.
1952 (store_register): Update.
1953
d709c020
JB
19542002-11-07 Joel Brobecker <[email protected]>
1955
1956 Preparation work to convert the hppa targets to multiarch partial.
1957
1958 * hppa-tdep.c: Add new functions replacing macro bodies from
1959 config/pa/tm-hppa.h. These function will be used to initialize
1960 the gdbarch structure. Import some comments from tm-hppa.h,
1961 and place them where appropriate, to avoid loosing them when
1962 we cleanup this file.
1963 (hppa_reg_struct_has_addr): New function.
1964 (hppa_inner_than): New function.
1965 (hppa_stack_align): New function.
1966 (hppa_pc_requires_run_before_use): New function.
1967 (hppa_instruction_nullified): New function.
1968 (hppa_register_byte): New function.
1969 (hppa_register_virtual_type): New function.
1970 (hppa_store_struct_return): New function.
1971 (hppa_cannot_store_register): New function.
1972 (hppa_frame_args_address): New function.
1973 (hppa_frame_locals_address): New function.
1974 (hppa_smash_text_address): New function.
1975 (hppa_coerce_float_to_double): New function. Requires the inclusion
1976 of "language.h".
1977
1978 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
1979
1980 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
1981 gdbarch-eligible macro to a call to the new associated function
1982 created in hppa-tdep.c.
1983 (INNER_THAN): Likewise.
1984 (STACK_ALIGN): Likewise.
1985 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
1986 (INSTRUCTION_NULLIFIED): Likewise.
1987 (REGISTER_BYTE): Likewise.
1988 (REGISTER_VIRTUAL_TYPE): Likewise.
1989 (STORE_STRUCT_RETURN): Likewise.
1990 (CANNOT_STORE_REGISTER): Likewise.
1991 (FRAME_ARGS_ADDRESS): Likewise.
1992 (FRAME_LOCALS_ADDRESS): Likewise.
1993 (SMASH_TEXT_ADDRESS): Likewise.
1994 (COERCE_FLOAT_TO_DOUBLE): Likewise.
1995 (ABOUT_TO_RETURN): Delete, as no longer used.
1996
83c31e7d
FN
19972002-11-07 Fernando Nasser <[email protected]>
1998
1999 * printcmd.c (disassemble_command): Remove obsolete function.
2000 (_initialize_printcmd): Do not create disassemble command here.
2001 * cli/cli-cmds.c (disassemble_command): New function. Implements
2002 disassemble command.
2003 (init_cli_cmds): Create disassemble command here instead.
2004
0ec30a36
AC
20052002-11-07 Andrew Cagney <[email protected]>
2006
2007 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2008
e600bd34
AC
20092002-11-07 Andrew Cagney <[email protected]>
2010
2011 * regcache.h (regcache_cooked_read_using_offset_hack)
2012 (regcache_cooked_write_using_offset_hack): Delete declarations.
2013 (register_changed): Delete declaration.
2014 * regcache.c (regcache_cooked_read_using_offset_hack)
2015 (regcache_cooked_write_using_offset_hack): Delete functions.
2016 (cooked_xfer_using_offset_hack): Delete function.
2017 (register_changed): Delete function.
2018
568f8739
JB
20192002-11-07 Jim Blandy <[email protected]>
2020
2021 * macroscope.c: #include "complaints.h".
2022 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2023 but not in the macro table.
2024 * Makefile.in (macroscope.o): Record dependency.
2025
b0718b7b
JB
20262002-11-07 Joel Brobecker <[email protected]>
2027
2028 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2029
2b9e5f3f
AC
20302002-11-07 Andrew Cagney <[email protected]>
2031
2032 * regcache.c (deprecated_registers_fetched): Update.
2033 * regcache.h (deprecated_registers_fetched): Rename
2034 registers_fetched.
2035 * remote-vxsparc.c (vx_read_register): Update.
2036 * remote-vxmips.c (vx_read_register): Update.
2037 * remote-vx68.c (vx_read_register): Update.
2038 * irix5-nat.c (fetch_core_registers): Update.
2039 * mipsm3-nat.c (fetch_inferior_registers): Update.
2040 * sun3-nat.c (fetch_inferior_registers): Update.
2041 * symm-nat.c (fetch_inferior_registers): Update.
2042 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
2043 (fetch_core_registers): Update.
2044 (fetch_kcore_registers): Update.
2045 * mips-nat.c (fetch_inferior_registers): Update.
2046 * corelow.c (get_core_registers): Update.
2047 * a68v-nat.c (fetch_inferior_registers): Update.
2048
e6e68f1f
JB
20492002-11-06 Joel Brobecker <[email protected]>
2050
2051 Put in place the framework necessary for multiarching the hppa targets.
2052 * hppa-tdep.c (hppa_gdbarch_init): New function.
2053 (hppa_dump_tdep): New function.
2054 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
2055 tdep structure dumper.
2056 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
2057 until the multi-arching conversion has partially been completed.
2058
492254e9
AC
20592002-11-06 Andrew Cagney <[email protected]>
2060
2061 * valops.c (value_assign): Merge lval_register case into
2062 lval_reg_frame_relative. Use frame_register and
2063 regcache_cooked_write instead of get_saved_register and
2064 write_register_bytes. After flushing the register cache, try to
2065 re-select the selected frame.
2066
8262ee23
AC
20672002-11-06 Andrew Cagney <[email protected]>
2068
2069 * regcache.h (deprecated_register_valid): Rename register_valid.
2070 * regcache.c: Update.
2071 * ia64-aix-nat.c: Update.
2072 * i386gnu-nat.c: Update.
2073 * alpha-nat.c: Update.
2074 * sparc-nat.c: Update.
2075 * lynx-nat.c: Update.
2076 * remote-mips.c: Update.
2077
4facf7e8
JB
20782002-11-06 Joel Brobecker <[email protected]>
2079
2080 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
2081 to end of file, to be more consistent with the pratice followed
2082 by other targets.
2083
f9418c0f
AC
20842002-11-06 Andrew Cagney <[email protected]>
2085
2086 * infcmd.c: Include "reggroups.h" and <ctype.h>.
2087 (print_float_info): Print registers in float_reggroup.
2088 (print_vector_info): Print registers in vector_reggroup.
2089 (default_print_registers_info): When all, print registers in
2090 all_reggroup. Otherwize, print registers in general_reggroup.
2091 (registers_info): Rewrite. Add support for register groups.
2092 Eliminate a goto.
2093
3fe235a7
EZ
20942002-11-06 Elena Zannoni <[email protected]>
2095
2096 * symtab.c (methods_info): Delete. It has been ifdeffed out for
2097 ages.
2098 (symtab_symbol_info): Remove eons old ifdeffed out code.
2099 (_initialize_symtab): Remove prehistoric disabled 'info methods'
2100 command.
2101
ef944135
TR
21022002-11-06 Theodore A. Roth <[email protected]>
2103
2104 * c-exp.y: Add missing semi-colons.
2105 * f-exp.y: Add missing semi-colons.
2106 * m2-exp.y: Add missing semi-colons.
2107 * p-exp.y: Add missing semi-colons.
2108 Add empty action to start rule to avoid a type clash error when
2109 building with bison >= 1.50.
2110
f8302a57
JB
21112002-11-06 Jim Blandy <[email protected]>
2112
2113 * macrotab.h (struct macro_source_file): Doc fix.
2114
6e382aa3
JJ
21152002-11-05 Jeff Johnston <[email protected]>
2116
2117 * varobj.c (child_exists, cplus_number_of_children): Change
2118 STREQ macro references to strcmp.
2119 (cplus_name_of_child): Change code to handle the fact that
2120 fields are not necessarily contiguous with regards to their
2121 access control. This is a fix for PR gdb/792.
2122
a216a322
AC
21232002-11-05 Andrew Cagney <[email protected]>
2124
2125 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
2126 * gdbarch.h, gdbarch.c: Regnerate.
2127 * frame.h (frame_register): Declare.
2128 * frame.c (frame_register): New function.
2129 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
2130 GET_SAVED_REGISTER, otherwize call
2131 generic_unwind_get_saved_register.
2132 (frame_register_read): Use frame_register instead of
2133 get_saved_register.
2134
7d5b6fdd
EZ
21352002-11-05 Elena Zannoni <[email protected]>
2136
2137 From Jim Ingham <[email protected]>:
2138 * event-top.c (gdb_disable_readline): New function.
2139 (_initialize_event_loop): Move comment.
2140
b7c64260
EZ
21412002-11-05 Elena Zannoni <[email protected]>
2142
2143 * event-loop.c (start_event_loop): Add comment.
2144 Update copyright.
2145
c2e1b8f2
AC
21462002-11-05 Andrew Cagney <[email protected]>
2147
2148 * infcmd.c (default_print_registers_info): Do not call
2149 PRINT_REGISTER_HOOK.
2150
87647bb0
AC
21512002-11-05 Andrew Cagney <[email protected]>
2152
2153 * sparc-tdep.c (sparc_print_register_hook): Make static.
2154 (sparc_print_registers_info): New function.
2155 (sparc_do_registers_info): New function.
2156 (sparclet_print_registers_info): New function.
2157 (sparclet_do_registers_info): New function.
2158 (do_sparc_print_registers_info): New function.
2159 (sparc_print_registers): New static function, clone of infcmd.c's
2160 default_print_registers_info.
2161 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
2162 (sparclet_do_registers_info): Declare.
2163 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
2164 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
2165 Re-define.
2166 (sparc_do_registers_info): Declare.
2167 (PRINT_REGISTER_HOOK): Delete macro.
2168 (sparc_print_register_hook): Delete declaration.
2169
8155455b
DC
21702002-11-05 David Carlton <[email protected]>
2171
2172 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
2173 functions.
2174 (lookup_symbol_aux_local): New function.
2175 (lookup_symbol_aux_symtabs): New function.
2176 (lookup_symbol_aux_psymtabs): New function.
2177
29924310
DC
21782002-11-05 David Carlton <[email protected]>
2179
2180 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
2181 previous values of 'objfile' and 'block'.
2182
cc303028
PM
21832002-11-05 Pierre Muller <[email protected]>
2184
2185 * values.c (value_change_enclosing_type): Set
2186 enclosing_type field correctly also for the case where
2187 more memory needs to be allocated.
2188
1d70089a
MK
21892002-11-03 Mark Kettenis <[email protected]>
2190
f16a25ae
MK
2191 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
2192 of puts_filtered.
2193
1d70089a
MK
2194 * i387-tdep.c (i387_print_float_info): Replace calls to
2195 register_read and deprecated_read_register_gen with calls to
2196 frame_register_read, and make the necessary adjustments to the
2197 surrounding code.
2198
7e20f3fb
AC
21992002-11-02 Andrew Cagney <[email protected]>
2200
2201 * gdbarch.sh (register_reggroup_p): Allow default value.
2202 * gdbarch.h, gdbarch.c: Regenerate.
2203
192dbe33
AC
22042002-11-02 Andrew Cagney <[email protected]>
2205
2206 * regcache.h: Add coment indicating replacements for deprecated
2207 functions.
2208
b59ff9d5
AC
22092002-11-02 Andrew Cagney <[email protected]>
2210
2211 * reggroups.h, reggroups.c: New files.
2212 * regcache.c: Include "reggroups.h".
2213 (enum regcache_dump_what): Add `regcache_dump_groups'.
2214 (regcache_dump): Contract size of the "Type" column. When
2215 specified, dump the register's groups.
2216 (maintenance_print_register_groups): New function.
2217 (_initialize_regcache): Add command `maint print register-groups'.
2218 * Makefile.in (COMMON_OBS): Add reggroups.o
2219 (SFILES): Add reggroups.c.
2220 (reggroups_h): Define.
2221 (regcache.o, gdbarch.o): Update dependencies.
2222 (reggroups.o): Specify dependencies.
2223 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
2224 Add opaque declaration for `struct reggroup' in generated .h file.
2225 Include "reggroups.h" in generated .c file.
2226 gdbarch.h, gdbarch.c: Re-generate.
2227
4caf0990
AC
22282002-11-02 Andrew Cagney <[email protected]>
2229
2230 * regcache.h (deprecated_read_register_gen): Rename
2231 read_register_gen.
2232 (deprecated_write_register_gen): Rename write_register_gen.
2233 * i387-tdep.c: Update.
2234 * x86-64-linux-nat.c: Update
2235 * wince.c: Update.
2236 * thread-db.c: Update.
2237 * win32-nat.c: Update.
2238 * mips-tdep.c: Update.
2239 * d10v-tdep.c: Update.
2240 * cris-tdep.c: Update.
2241 * remote-sim.c: Update.
2242 * remote-rdi.c: Update.
2243 * remote-rdp.c: Update.
2244 * frame.c: Update.
2245 * target.c: Update.
2246 * blockframe.c: Update.
2247 * x86-64-tdep.c: Update.
2248 * xstormy16-tdep.c: Update.
2249 * sh-tdep.c: Update.
2250 * s390-tdep.c: Update.
2251 * rs6000-tdep.c: Update.
2252 * sparc-tdep.c: Update.
2253 * i386-tdep.c: Update.
2254 * dwarf2cfi.c: Update.
2255 * regcache.c: Update.
2256
7a7adcdf
JB
22572002-11-01 Joel Brobecker <[email protected]>
2258
2259 New interix-specific files:
2260 * config/i386/nm-interix.h: New file.
2261 * config/i386/interix.mh: New file.
2262 * config/i386/interix.mt: New file.
2263 * i386-interix-nat.c: New file.
2264 * i386-interix-tdep.c: New file.
2265
bdcdd535
AC
22662002-11-01 Andrew Cagney <[email protected]>
2267
2268 * frame.h (deprecated_generic_get_saved_register): Rename
2269 generic_get_saved_register.
2270 * blockframe.c (deprecated_generic_get_saved_register): Update.
2271 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
2272 (xstormy16_frame_saved_register): Update.
2273 * sh-tdep.c (sh_gdbarch_init): Update.
2274 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2275 * ia64-tdep.c (ia64_get_saved_register): Update.
2276 * cris-tdep.c (cris_gdbarch_init): Update.
2277 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
2278 * arm-tdep.c (arm_gdbarch_init): Update.
2279
2a4b7c45
DJ
22802002-10-31 Daniel Jacobowitz <[email protected]>
2281
2282 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
2283
ef17e74b
DJ
22842002-10-31 Daniel Jacobowitz <[email protected]>
2285
2286 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
2287 trampolines in sigaction.
2288
4904ba5b
AC
22892002-10-31 Andrew Cagney <[email protected]>
2290
2291 * h8300-tdep.c: Include "gdb_assert.h".
2292 (h8300_print_register): Add gdbarch, file and frame parameters.
2293 Use frame_read_unsigned_register to read the register's value.
2294 Use fprintf_filtered to display output.
2295 (h8300_print_registers_info): Replace h8300_do_registers_info.
2296 (h8300_gdbarch_init): Set print_registers_info.
2297
f908a0eb
AC
22982002-10-31 Andrew Cagney <[email protected]>
2299
2300 * frame.c (frame_read_unsigned_register): New function.
2301 (frame_read_signed_register): New function.
2302 * frame.h (frame_read_unsigned_register): Declare.
2303 (frame_read_signed_register): Declare.
2304
c5646e11
AC
23052002-10-31 Andrew Cagney <[email protected]>
2306
2307 * h8500-tdep.c (h8500_print_registers_info): New static function,
2308 clone of infcmd.c's default_print_registers_info.
2309 (h8500_do_registers_info): New funtion.
2310 (h8500_print_register_hook): Rename print_register_hook, make
2311 static.
2312
2313 * config/h8500/tm-h8500.h: Update copyright.
2314 (DEPRECATED_DO_REGISTERS_INFO): Define.
2315 (h8500_do_registers_info: Declare.
2316 (PRINT_REGISTER_HOOK): Delete macro.
2317 (print_register_hook): Delete function.
2318
0bdd672b
AC
23192002-10-31 Andrew Cagney <[email protected]>
2320
2321 * z8k-tdep.c (z8k_print_register_hook): Make static.
2322 (z8k_print_registers_info): New static function, clone of
2323 infcmd.c's default_print_registers_info.
2324 (z8k_do_registers_info): New function. Wrap
2325 z8k_print_registers_info.
2326 * config/z8k/tm-z8k.h: Update copyright.
2327 (PRINT_REGISTER_HOOK): Delete macro.
2328 (z8k_print_register_hook): Delete declaration.
2329 (DEPRECATED_DO_REGISTERS_INFO): Define.
2330 (z8k_do_registers_info): Declare.
2331
bf9c25dc
JB
23322002-10-30 Joel Brobecker <[email protected]>
2333
2334 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
2335 as this is already provided by value.h, and was actually causing
2336 a compilation error because of a conflict in parameter type
2337 declaration due to a missing const keyword.
2338 (low_text_segment_addres): Fix a compilation warning.
2339
2c665b51
DJ
23402002-10-29 Daniel Jacobowitz <[email protected]>
2341
2342 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
2343 registers without a name.
2344 (mips_linux_cannot_store_register): Don't store registers without
2345 a name.
2346
e70ea697
DC
23472002-10-28 David Carlton <[email protected]>
2348
2349 * symtab.c (find_addr_symbol): Delete. (It was already commented
2350 out.)
2351 * symtab.h: Delete prototype for find_addr_symbol.
2352
903ad3a6
AC
23532002-10-26 Andrew Cagney <[email protected]>
2354
2355 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
2356 DO_REGISTERS_INFO.
2357 gdbarch.h, gdbarch.c: Re-generate.
2358 * infcmd.c (default_print_registers_info): Update reference.
2359 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
2360 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
2361 * sh-tdep.c (sh_gdbarch_init): Ditto.
2362 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2363 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2364
ab91194c
MK
23652002-10-26 Mark Kettenis <[email protected]>
2366
e3033f15
MK
2367 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
2368 cfi_init_extra_frame_info.
2369 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
2370 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
2371
b83b026c
MK
2372 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
2373 target where necessary. Add more comments and remove the ones
2374 that don't provide any useful information.
2375
267bf4bb
MK
2376 * i386-tdep.c (i386_frame_saved_pc): Replace call to
2377 deprecated_read_register_dummy with
2378 frame_unwind_unsigned_register.
2379
751f1375
MK
2380 * i386-tdep.c (i386_extract_struct_value_address): Use
2381 regcache_raw_read_unsigned instead of
2382 regcache_cooked_read_unsigned since we know that the register
2383 we're reading isn't a pseudo register. Rename variable 'val' into
2384 the more descriptive 'addr'.
2385
26abbdc4
MK
2386 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
2387 (x86_64_push_return_address): Add comment.
2388 (x86_64_pop_frame): Make static.
2389 (examine_argument): Clarify comment.
2390 (x86_64_skip_prologue): Make prolog_expact variable static.
2391
9f1549cc
MK
2392 * dwarf2cfi.c: Fix some formatting problems.
2393 (context_cpy, read_encoded_pointer): Clarify comments.
2394
ab91194c
MK
2395 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
2396 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
2397 i386 target back into x86_64_gdbarch_init. Add some comments and
2398 remove meaningless ones.
2399
72367fb4
AC
24002002-10-25 Andrew Cagney <[email protected]>
2401
2402 * complaints.h (struct deprecated_complaint): Rename `struct
2403 complaint'.
2404 * complaints.c (complain): Update.
2405 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
2406 incorrect comment indicating that "symfile.h" was being included
2407 for the `struct complaint' definition.
2408 * remote-vx.c: Update.
2409 * objc-lang.c: Update.
2410 * xcoffread.c: Update.
2411 * hpread.c: Update.
2412 * mdebugread.c: Update.
2413 * stabsread.c: Update.
2414 * dwarf2read.c: Update.
2415 * dwarfread.c: Update.
2416 * elfread.c: Update.
2417 * coffread.c: Update.
2418 * stabsread.h: Update.
2419 * dbxread.c: Update.
2420 * buildsym.c: Update.
2421 * gdbtypes.c: Update.
2422 * macrotab.c: Update.
2423
1f2baacc
MK
24242002-10-25 Mark Kettenis <[email protected]>
2425
0c1a73d6
MK
2426 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
2427 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
2428 (x86_64_init_abi): ...new function.
2429
6aee4d54 2430 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
1f2baacc
MK
2431 * i386v-nat.c: Include "i386-tdep.h".
2432
8f9cbe01
AC
24332002-10-25 Andrew Cagney <[email protected]>
2434
5f11f355
AC
2435 * gdbtypes.c (address_space_name_to_int): Update.
2436 (address_space_int_to_name): Update.
2437 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
2438 multi-arch predicate.
2439 (address_class_name_to_type_flags): Ditto.
2440 * gdbarch.h, gdbarch.c: Re-generate.
2441
8f9cbe01
AC
2442 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
2443
e8d96a5d
MH
24442002-10-24 Martin M. Hunt <[email protected]>
2445
2446 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
2447
fe39c653
EZ
24482002-10-24 Elena Zannoni <[email protected]>
2449
2450 * symtab.h (INIT_SAL): Delete macro.
2451 (init_sal): Export.
2452 * symtab.c (init_sal): New function.
2453
2454 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
2455 to init_sal function call.
2456 (find_sal_from_funcs_and_line): Ditto.
2457 (all_sals_for_line): Ditto.
2458 * breakpoint.c (create_internal_breakpoint): Ditto.
2459 (create_fork_vfork_event_catchpoint): Ditto.
2460 (create_exec_event_catchpoint): Ditto.
2461 (parse_breakpoint_sals): Ditto.
2462 (watch_command_1): Ditto.
2463 (handle_gnu_4_16_catch_command): Ditto.
2464 (clear_command): Ditto.
2465 * hppa-tdep.c (child_enable_exception_callback): Ditto.
2466 * infcmd.c (run_stack_dummy): Ditto.
2467 * infrun.c (process_event_stop_test): Ditto.
2468 (check_sigtramp2): Ditto.
2469 (step_over_function): Ditto.
2470 * linespec.c (decode_line_2): Ditto.
2471 (decode_line_1): Ditto.
2472 * source.c (line_info): Ditto.
2473 * symtab.c (find_pc_sect_line): Ditto.
2474
baed091b
ML
24752002-10-24 Michal Ludvig <[email protected]>
2476
2477 * dwarf2cfi.c (struct context)
2478 (struct context_reg): Moved to dwarf2cfi.h
2479 (context_alloc, frame_state_alloc, context_cpy):
2480 Made extern instead of static, removed prototypes.
2481 * dwarf2cfi.h (struct context)
2482 (struct context_reg): New, moved from dwarf2cfi.c
2483 (context_alloc, frame_state_alloc, context_cpy):
2484 New prototypes.
2485 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
2486 Changed from static to extern.
2487 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
2488 (LINUX_SIGCONTEXT_FP_OFFSET)
2489 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
2490 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
2491 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
2492 * x86-64-tdep.c (x86_64_gdbarch_init): Several
2493 set_gdbarch_*() calls now use x86-64 specific functions
2494 instead of DWARF2 CFI ones.
2495 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
2496 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
2497 (x86_64_init_extra_frame_info): New prototypes.
2498
c38da1af
DC
24992002-10-23 David Carlton <[email protected]>
2500
2501 * linespec.c: #include "parser-defs.h".
2502 Delete prototype for find_template_name_end.
2503 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
2504
fb9b6b35
JJ
25052002-10-23 Jeff Johnston <[email protected]>
2506
2507 * NEWS: add recent mi fixes.
2508 * varobj.c (struct varobj): Add new "updated" flag.
2509 (new_variable): Default "updated" flag to 0.
2510 (varobj_set_value): Set "updated" flag to 1 if value
2511 changes.
2512 (varobj_update): Check varobj "updated" flag before
2513 comparing old and refreshed values. Fix for
2514 PR gdb/702.
2515
8da065d5
DC
25162002-10-23 David Carlton <[email protected]>
2517
2518 * parse.c (parse_exp_1): Use BLOCK_START.
2519 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
2520 SYMBOL_BLOCK_VALUE.
2521 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
2522
87f2f08c
DC
25232002-10-23 David Carlton <[email protected]>
2524
2525 * symtab.c: Delete cplusplus_hint.
2526 Delete prototype for find_template_name_end.
2527
88cda038
EZ
25282002-10-23 Elena Zannoni <[email protected]>
2529
2530 * symtab.h: Update comment.
2531
2625d86c
MS
25322002-10-23 Michael Snyder <[email protected]>
2533
2534 * printcmd.c (address_info): Restore quotes in output.
2535 * valops.c (value_of_local): Restore quotes in error message.
2536
9cc0d196
EZ
25372002-10-23 Elena Zannoni <[email protected]>
2538
2539 * symtab.c (symbol_demangled_name): New function.
2540 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
2541 turning most of it into a function.
2542 (symbol_demangled_name): Export.
2543
19de93d0
MS
25442002-10-23 Michael Snyder <[email protected]>
2545
2546 * valops.c (value_of_local): Restore quotes in error message.
2547
89aad1f9
EZ
25482002-10-23 Elena Zannoni <[email protected]>
2549
2550 * symtab.c (symbol_init_language_specific): New function.
2551 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
2552 turning most of it into a function.
2553 (symbol_init_language_specific): Export.
2554
d9fa45fe
DC
25552002-10-23 David Carlton <[email protected]>
2556
2557 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
2558 (dwarf_attr_name): Ditto.
2559 (dwarf_type_encoding_name): Ditto.
2560 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
2561 (process_die): Handle DW_TAG_namespace,
2562 DW_TAG_imported_declaration, DW_TAG_imported_module.
2563 (read_namespace): New function.
2564
1045b512
JB
25652002-10-22 Joel Brobecker <[email protected]>
2566
2567 * configure.in: Define NEW_PROC_API on Interix too.
2568 * configure: Regenerate.
2569
25702002-10-21 Joel Brobecker <[email protected]>
8ec41317
JB
2571
2572 * configure: Regenerate using the proper version of autoconf.
2573
3987b9d4
EZ
25742002-10-21 Elena Zannoni <[email protected]>
2575
2576 * findvar.c (read_var_value): Temporarily disable TLS code, until
2577 complete TLS support is added.
2578
9d774e44
EZ
25792002-10-21 Jim Blandy <[email protected]>
2580 Elena Zannoni <[email protected]>
2581
2582 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
2583 for thread local storage locations.
2584 (struct symbol): Add objfile field.
2585 (SYMBOL_OBJFILE): Define.
2586 * dwarf2read.c (is_thread_local): New static variable.
2587 (new_symbol): If variable is in thread local fill in address class
2588 and objfile appropriately.
2589 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
2590 stack operation.
2591 * printcmd.c (address_info): Print the information for thread
2592 local storage variable.
2593 * findvar.c (read_var_value): In case of thread local variable,
2594 defer to the target vector code to compute address.
2595
bc4a16ae
EZ
25962002-10-21 Elena Zannoni <[email protected]>
2597
2598 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
2599 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
2600
407caf07
EZ
26012002-10-21 Elena Zannoni <[email protected]>
2602
2603 * symtab.h (address_class): Rename
2604 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
2605 * hpread.c (hpread_process_one_debug_symbol): Ditto.
2606 * printcmd.c (address_info): Ditto.
2607 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
2608
005328e3
MK
26092002-10-20 Mark Kettenis <[email protected]>
2610
afdb036a
MK
2611 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
2612 DBREG_DRX macro to acces debug registers.
2613
ca02e098
MK
2614 * Makefile.in (i386obsd-tdep.o): New target.
2615
03cc47f7
MK
2616 * solib-sunos.c: Include "bcache.h" and "regcache.h".
2617 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
2618
005328e3
MK
2619 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
2620 * config/i386/obsd.mt: New file.
2621 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
2622 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
2623 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
2624 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
2625 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
2626 * i386obsd-tdep.c: New file.
2627
9c96f9f2
AF
26282002-10-19 Adam Fedor <[email protected]>
2629
2630 * objc-exp.y (name_not_typename): Fix invalid comment.
2631
ce1ed485
MK
26322002-10-20 Mark Kettenis <[email protected]>
2633
2634 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
2635 to allocate partial syms and macro byte caches.
2636
1efc7aaa
DC
26372002-10-18 David Carlton <[email protected]>
2638
2639 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
2640
7e1d63ec
AF
26412002-10-18 Adam Fedor <[email protected]>
2642
2643 * stabsread.c (find_name_end): New function.
2644 (define_symbol): Use it.
2645
6e8d29a9
DJ
26462002-10-18 Daniel Jacobowitz <[email protected]>
2647
2648 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2649 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2650 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2651 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
2652
1efc7aaa 26532002-10-17 David Carlton <[email protected]>
63ca651f
DC
2654
2655 * symfile.h: Add opaque declaration for struct obstack.
2656 Declare obsavestring to take a const char *.
2657 * symfile.c (obsavestring): Make first argument a const char *.
2658
1aeae86e
AF
26592002-10-16 Adam Fedor <[email protected]>
2660
2661 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
2662 names when matching breakpoints in current file.
2663
8b2dbe47
KB
26642002-10-16 Kevin Buettner <[email protected]>
2665
2666 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
2667 (read_tag_pointer_type): Add address class support.
2668 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
2669 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
2670 New methods.
2671 * gdbarch.h, gdbarch.c: Regenerate.
2672 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
2673 (make_type_with_address_space, recursive_type_dump): Add address
2674 class support.
2675 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
2676 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
2677 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
2678
74451869
KD
26792002-10-16 Klee Dienes <[email protected]>
2680
2681 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
2682 to get the last character of a char[] buffer, not
2683 name[sizeof(vptr_name)-1].
2684
ff4cb3e8
AF
26852002-10-14 Adam Fedor <[email protected]>
2686
2687 * symtab.h: New objc_specific struct.
2688 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
2689 (SYMBOL_DEMANGLED_NAME): Likewise.
2690
da2cf7e0
AF
26912002-10-14 Adam Fedor <[email protected]>
2692
2693 * symfile.c (init_filename_language_table): Add ObjC file extension.
2694
4a351cef
AF
26952002-10-14 Adam Fedor <[email protected]>
2696
2697 * utils.c (puts_filtered_tabular): New function.
2698 (fprintf_symbol_filtered): Get ObjC demangled name.
2699 * defs.h (puts_filtered_tabular): Declared.
2700
9750e763
KB
27012002-10-14 Kevin Buettner <[email protected]>
2702
2703 * c-lang.h (c_type_print_varspec_prefix): Delete.
2704 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
2705 ``need_post_space'' parameter. Adjust all callers.
2706
eee771c1
DJ
27072002-10-14 Daniel Jacobowitz <[email protected]>
2708
2709 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
2710 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2711 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2712 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
2713
46c82446
AF
27142002-10-13 Adam Fedor <[email protected]>
2715
2716 * source.c (print_source_lines): Update comments.
2717
d069f99d
AF
27182002-10-13 Adam Fedor <[email protected]>
2719
2720 * valops.c (value_of_local): New function.
2721 (value_of_this): Use it.
2722 * value.h (value_of_local): Declared.
2723
53c551b7
AF
27242002-10-13 Adam Fedor <[email protected]>
2725
2726 * parse.c: (length_of_subexp, prefixify_subexp): Handle
2727 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2728
eb392fbf
AF
27292002-10-12 Adam Fedor <[email protected]>
2730
2731 * language.c (binop_result_type): Add language_objc to case.
2732 (integral_type): Likewise.
2733 (character_type): Likewise.
2734 (string_type): Likewise.
2735 (boolean_type): Likewise.
2736 (structured_type): Likewise.
2737 (binop_type_check): Likewise.
2738
e2b23ee9
AF
27392002-10-11 Adam Fedor <[email protected]>
2740
2741 * printcmd.c (address_info): Print 'self' for ObjC.
2742
b01ab485
AF
27432002-10-11 Adam Fedor <[email protected]>
2744
2745 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
2746 OP_SELF.
2747
806e6073
AF
27482002-10-11 Adam Fedor <[email protected]>
2749
2750 * language.h (CAST_IS_CONVERSION): Add language_objc.
2751
50f85cdf
AF
27522002-10-11 Adam Fedor <[email protected]>
2753
2754 * defs.h (enum language): Add language_objc.
2755
0d540cdf
KD
27562002-10-11 Klee Dienes <[email protected]>
2757
69266111 2758 * corefile.c (read_memory_typed_address): New function.
0d540cdf
KD
2759 * gdbcore.h (read_memory_typed_address): Add prototype.
2760 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
2761 to read a value destined for a CORE_ADDR, not read_memory_integer.
2762 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
2763 (f77_get_dynamic_lowerbound): Ditto.
2764
d5dc7960
MH
27652002-10-11 Martin M. Hunt <[email protected]>
2766
2767 * utils.c (string_to_core_addr): After turning string into
2768 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
2769 which will do necessary sign-extension, etc.
2770
8343f86c
DJ
27712002-10-11 Daniel Jacobowitz <[email protected]>
2772
2773 * c-exp.y (THIS): Delete token and grammar rule.
2774 (yylex): Don't return THIS.
2775 * cp-valprint.c (vtbl_ptr_name_old): Delete.
2776 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
2777 * demangle.c (cplus_markers): Update comment. Put '$'
2778 first. Remove CPLUS_MARKER.
2779 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
2780 * jv-exp.y (THIS): Delete token and grammar rule.
2781 (yylex): Don't return THIS.
2782 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
2783 * objc-exp.y (THIS): Delete token and grammar rule.
2784 (yylex): Don't return THIS.
2785 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
2786 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
2787 (read_member_functions): Likewise for opname.
2788 (read_tilde_fields): Use is_cplus_marker.
2789
2790 * defs.h (CPLUS_MARKER): Don't define.
2791 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
2792 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
2793 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
2794 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
2795 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
2796
2797 * config/i386/tm-i386v4.h: Delete file.
2798 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
2799 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
2800 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
2801 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
2802 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
2803 * config/i386/i386sco5.mt (TM_FILE): Likewise.
2804 * config/i386/i386v4.mt (TM_FILE): Likewise.
2805 * config/i386/ncr3000.mt (TM_FILE): Likewise.
2806
967c0d83
MM
28072002-10-10 Marko Mlinar <[email protected]>
2808
2809 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
2810 accidentially not commited 2002-10-09
2811 * gdbarch.h, gdbarch.c: Re-generate.
2812
f74fa174
MM
28132002-10-09 Marko Mlinar <[email protected]>
2814
2815 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
2816 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
2817 * gdbarch.h, gdbarch.c: Re-generate.
2818
57349743
JB
28192002-10-08 Petr Sorfa <[email protected]>
2820
2821 Revised and re-submitted by John Wolfe <[email protected]>
2822
2823 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
2824 so we can work on more than one compilation unit at a time. This
2825 helps prepare GDB to handle inter-CU die references.
2826 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
2827 the code to be defined before struct comp_unit_head.
2828 (comp_unit_head): Added new members - offset, cu_head,
2829 begin_die, next and dwarf2_abbrevs.
2830 (dwarf2_abbrevs): Removed single static var; now member of
2831 struct comp_unit_head.
2832 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
2833 members.
2834 (psymtab_to_symtab_1): Changed to work with the new
2835 struct comp_unit_head.
2836 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
2837 constructs the dwarf2_abbrevs[] inside the cu_header.
2838 (dwarf2_empty_abbrev_table): Now expects a ptr to a
2839 dwarf2_abbrev table to clean up.
2840 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
2841 handling of dwarf2_abbrevs inside the cu_header.
2842 (read_partial_die): Now supports the call to the new
2843 dwarf2_lookup_abbrev.
2844 (read_full_die): Now supports the call to the new
2845 dwarf2_lookup_abbrev.
2846
4092aadb
CF
28472002-10-06 Christopher Faylor <[email protected]>
2848
2849 * Makefile.in (install-gdbtk): Add missing continuation backslash to
2850 insure that shell variables, such as "transformed_name" are propagated
2851 to later shell statements in rule.
2852
af0b2512
MK
28532002-10-06 Mark Kettenis <[email protected]>
2854
2855 * config/i386/nm-i386sco.h: Add protection against
2856 multiple-inclusion. Include "i386/nm-i386v.h".
2857 (REGISTER_U_ADDR): Remove define.
2858 (i386_register_u_addr): Remove prototype.
2859
d6020d45
MS
28602002-10-04 Michael Snyder <[email protected]>
2861
2862 * m32r-stub.c (handle_exception): Make sure exception is "trap"
2863 before treating it as a single-step event.
2864
7248f48e
AF
28652002-10-03 Adam Fedor <[email protected]>
2866
2867 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
2868 (objc_demangle): Remove assignment in if statements, Replace
2869 free with xfree.
2870 (add_msglist): Likewise.
2871 (end_msglist): Likewise.
2872 (complare_selectors): Likewise.
2873 (selectors_info): Likewise.
2874 (compare_classes): Likewise.
2875 (classes_info): Likewise.
2876 (print_object_command): Likewise.
2877 (find_objc_msgcall_submethod): Replace PTR with void *.
2878 * objc-lang.h: Remove check for __STDC__.
2879
52c6a6ac
JJ
28802002-10-03 Jeff Johnston <[email protected]>
2881
2882 * ui-out.h (ui_out_field_fmt_int): New prototype.
2883 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
2884 of field width and alignment.
2885 * stack.c (print_frame_info_base): When printing frame level, use
2886 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
2887 PR gdb/192
2888
7e3cec17
JJ
28892002-10-03 Jeff Johnston <[email protected]>
2890
2891 * MAINTAINERS: Add self to Write After Approval list.
2892
a58dd373
EZ
28932002-10-02 Elena Zannoni <[email protected]>
2894
2895 * infcmd.c (interrupt_target_command_wrapper): Delete.
2896 (interrupt_target_command): Make non static.
2897 (nofp_registers_info): Make static.
2898 * stack.c (return_command_wrapper): Delete.
2899 (return_command): Make non static.
2900
cee6ddeb
EZ
29012002-10-02 Elena Zannoni <[email protected]>
2902
2903 * event-top.c (gdb_setup_readline): New function. Code moved from
2904 _initialize_event_loop().
2905 (_initialize_event_loop): Call gdb_setup_readline().
2906
c4ed33b9
AC
29072002-10-02 Andrew Cagney <[email protected]>
2908
2909 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
2910 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
2911 * gdbarch.h, gdbarch.c: Re-generate.
2912
cef4f5dd
DJ
29132002-10-02 Daniel Jacobowitz <[email protected]>
2914
2915 Fix PR gdb/778
2916 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
2917 before recursing.
2918 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
2919 of fill_in_vptr_fieldno.
2920
36dc181b 29212002-10-02 Elena Zannoni <[email protected]>
cee6ddeb 2922
36dc181b
EZ
2923 * inferior.h (registers_info, stepi_command, nexti_command,
2924 continue_command, interrupt_target_command): Export from infcmd.c.
2925 * frame.h (args_info, selected_frame_level_changed_hook,
2926 return_command): Export from stack.c.
2927 * v850ice.c (stepi_command, nexti_command, continue_command): use
2928 prototypes from inferior.h.
2929 * tracepoint.c (registers_info, args_info, locals_info): Use
2930 prototypes from frame.h and inferior.h.
2931 * Makefile.in (mi-main.o): Add dependency on frame.h.
2932
6f99cb26
AC
29332002-10-02 Andrew Cagney <[email protected]>
2934
da3eff49
AC
2935 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
2936 value in register 3 adjusted by ppc_gp0_regnum.
2937
6f99cb26
AC
2938 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
2939
da615bee
MM
29402002-10-02 Marko Mlinar <[email protected]>
2941
2942 * MAINTAINERS: Add myself to the Write After Approval list.
2943
d154bee2
AO
29442002-10-01 Alexandre Oliva <[email protected]>
2945
62a49b2c
AO
2946 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
2947 of the section for the N64 ABI, fixed.
2948
d154bee2
AO
2949 * config/mips/tm-irix6.h: Include solib.h.
2950
ed348acc
EZ
29512002-10-01 Elena Zannoni <[email protected]>
2952
2953 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
2954 GNU operators.
2955
da0f9dcd
AC
29562002-10-01 Andrew Cagney <[email protected]>
2957
2958 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
2959 and that "mi0" syntax has been removed.
2960
bdf64bac
DC
29612002-09-30 David Carlton <[email protected]>
2962
2963 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
2964 * ppc-sysv-tdep.c: #include "gdb_string.h".
2965 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
2966 pacify GCC.
2967
54c2a1e6
AC
29682002-10-01 Andrew Cagney <[email protected]>
2969
2970 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
2971 "vrsave"'s register number.
2972
cedea778
AC
29732002-09-30 Andrew Cagney <[email protected]>
2974
2975 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
2976 use frame_unwind_signed_register to obtain the PC.
2977 (mips_frame_chain): Handle a generic dummy frame.
2978 (mips_init_extra_frame_info): When a generic dummy frame, don't
2979 re-compute the frame base.
2980 (mips_pop_frame): Handle generic dummy frames.
2981 (mips_gdbarch_init): When generic dummy frames, set
2982 use_generic_dummy_frames, push_dummy_frame to
2983 generic_push_dummy_frame, pc_in_call_dummy to
2984 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
2985 generic_save_dummy_frame_tos.
2986
68315eb8
AC
29872002-09-30 Andrew Cagney <[email protected]>
2988
2989 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
2990 against TOP when TOP was explictly set.
2991 (generic_push_dummy_frame): Set TOP to zero.
2992
3b8630c3
EZ
29932002-09-30 Elena Zannoni <[email protected]>
2994
2995 * event-loop.c (start_event_loop): Rename variable 'result' to
2996 'gdb_result', to avoid conflicts with upcoming intepreters changes.
2997
28ee05e9
KS
29982002-09-30 Keith Seitz <[email protected]>
2999
3000 * gdb-events.sh (selected_thread_changed): New event.
3001 * gdb-events.c: Regenerated.
3002 * gdb-events.h: Regenerated.
3003
6eecb1c8
HPN
30042002-09-30 Hans-Peter Nilsson <[email protected]>
3005
3006 * MAINTAINERS: Add self to Write After Approval list.
3007
92df71f0
FN
30082002-09-30 Fernando Nasser <[email protected]>
3009
3b8630c3
EZ
3010 * disasm.c: New file.
3011 * disasm.h: New file.
92df71f0
FN
3012 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3013 (compare_lines): Ditto.
3014 (dump_insns): Ditto.
3b8630c3
EZ
3015 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3016 argument.
92df71f0 3017 (do_assembly_only): Ditto.
3b8630c3
EZ
3018 (do_disassembly): Renamed to gdb_disassembly and moved to
3019 disasm.c. Sdded uiout argument.
3020 * Makefile.in: Add new files. Reorder SFILES list. Update
3021 dependencies. Include libgdb.a later in the insight executable.
92df71f0 3022
0c22854d
AC
30232002-09-29 Andrew Cagney <[email protected]>
3024
3025 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3026 bfd/elf64-alpha-fbsd.c.
3027
e67f2023
AC
30282002-09-29 Andrew Cagney <[email protected]>
3029
3030 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3031 i386gnu-tdep.c.
3032
89396210
AC
30332002-09-29 Andrew Cagney <[email protected]>
3034
3035 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3036 __FUNCTION__.
3037 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3038 function name.
3039 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
3040 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
3041 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
3042 (S_msg_sig_post_reply): Ditto.
3043
7079c36c
CV
30442002-09-28 Corinna Vinschen <[email protected]>
3045
89396210
AC
3046 * sh-tdep.c (sh_use_struct_convention): Use definition according
3047 to ABI.
7079c36c
CV
3048 (sh_push_arguments): Store in register with correct endianess.
3049 (sh_default_store_return_value): Ditto.
3050 (sh_gdbarch_init): Set sizeof long double to 8.
3051
975ac915
MK
30522002-09-27 Mark Kettenis <[email protected]>
3053
3054 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
3055 Fix some whitespace problems.
3056
9bbe19fb
DC
30572002-09-27 David Carlton <[email protected]>
3058
3059 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
3060 (mcore-tdep.o): Ditto.
3061 (ns32k-tdep.o): Ditto.
3062 (ns32knbsd-tdep.o): Ditto.
3063 (sh3-rom.o): Ditto.
3064 (vax-tdep.o): Ditto.
3065 * cris-tdep.c: #include "gdb_string.h"
3066 * mcore-tdep.c: Ditto.
3067 * ns32k-tdep.c: Ditto.
3068 * ns32knbsd-tdep.c: Ditto.
3069 * sh3-rom.c: Ditto.
3070 * vax-tdep.c: Ditto.
3071
43b2fdc7
DC
30722002-09-27 David Carlton <[email protected]>
3073
3074 * config/djgpp/fnchange.lst: Add entries for
3075 gdb/testsuite/gdb.c++/m-static files.
3076
e8cfbbd9
JW
30772002-09-27 Jim Wilson <[email protected]>
3078
3079 * MAINTAINERS: Add myself to the Write After Approval list.
3080
43b2fdc7 30812002-09-26 Martin M. Hunt <[email protected]>
4e0df2df
MH
3082
3083 * mips-tdep.c (find_proc_desc): Initialize startaddr.
3084
3085
9f3b7f07
AC
30862002-09-26 Andrew Cagney <[email protected]>
3087
3088 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
3089 frame.
3090
11269d7e
AC
30912002-09-26 Andrew Cagney <[email protected]>
3092
3093 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
3094 (rs6000_struct_return_address): Delete variable.
3095 (rs6000_store_struct_return): Update.
3096 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
3097 deprecated_extract_struct_value_address.
3098 (rs6000_frame_align): New function.
3099 (rs6000_gdbarch_init): Set frame_align.
3100
f15ab4a7
AC
31012002-09-26 Andrew Cagney <[email protected]>
3102
3103 From Grace Sainsbury <[email protected]>:
3104 * Makefile.in (gdbtk-main.o): New target.
3105 (gdb.o): New target.
3106 (main_h): Define.
3107 (main.o): Update dependencies.
3108 (gdb$(EXEEXT)): Add gdb.o.
3109 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
3110 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
3111 (SUBDIR_GDBTK_CLEAN): Set.
3112 (install-gdbtk): Install the insight binary.
3113 (uninstall-gdbtk): New target.
3114 (all-gdbtk, clean-gdbtk): New rule.
3115 * top.c (use_windows): Default to zero.
3116 * main.c: Include "main.h".
3117 (main): Delete.
3118 (struct captured_main_args): Delete.
3119 (gdb_main): New function.
3120 * main.h: New file.
3121 * gdb.c: New File.
3122
e36180d7
AC
31232002-09-25 Andrew Cagney <[email protected]>
3124
3125 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
3126 (frame_map_regnum_to_name): New function.
3127 (frame_map_name_to_regnum): New function.
3128 * frame.h (frame_map_name_to_regnum): Declare.
3129 (frame_map_regnum_to_name): Declare.
3130 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
3131 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
3132 * parse.c: Do not include "builtin-regs.h".
3133 (target_map_name_to_register): Delete function.
3134 (write_dollar_variable): Use frame_map_name_to_regnum.
3135 * parser-defs.h (target_map_name_to_register): Delete declaration.
3136 * expprint.c: Include "frame.h".
3137 (print_subexp): Use frame_map_regnum_to_name.
3138 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
3139 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
3140
8b69000d
AC
31412002-09-25 Andrew Cagney <[email protected]>
3142
3143 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
3144 wasn't saved, and the next innermost frame is a dummy, return the
3145 dummy frame's link register.
3146
046ca86a
JB
31472002-09-24 Jim Blandy <[email protected]>
3148
3149 Fix from Paul Breed:
3150 * main.c (captured_main): Add a `break' after the case for 'b'.
3151
94b66fa7
KS
31522002-09-24 Keith Seitz <[email protected]>
3153
3154 * varobj.c (c_type_of_child): Use get_target_type instead
3155 of TYPE_TARGET_TYPE.
3156
c214a6fd
FN
31572002-09-22 Fernando Nasser <[email protected]>
3158
53cb0458
FN
3159 * source.c (get_current_or_default_source_symtab_and_line): Remove
3160 function.
3161 (set_default_source_symtab_and_line): New function. Attempts to
3162 determine a source file to list lines from if one is not currently
3163 defined.
3164 (get_current_source_symtab_and_line): Initialize sal.pc and
3165 sal.end fields.
3166 (set_current_source_symtab_and_line): Mark argument as const.
3167 * source.h: Update declarations and comments.
3168 * linespec.c (decode_line_1): Replace call to removed routine above.
3169 * stack.c (print_frame_info_base): Ditto.
3170 * cli/cli-cmds.c (edit_command): Ditto.
3171 (list_command): Ditto.
3172
31732002-09-22 Fernando Nasser <[email protected]>
3174
d6020d45 3175 * source.c (get_current_or_default_source_symtab_and_line): Initialize
53cb0458 3176 sal.pc and sal.end fields.
c214a6fd
FN
3177 (get_current_or_default_source_symtab_and_line): Ditto.
3178 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
3179 so we do not cause a new source symtab to be searched for (reverting an
3180 unintentional change from the 2002-09-20 patch).
3181 * scm-lang.c (scm_unpac): Ditto.
3182
cc3b68a5
AC
31832002-09-21 Andrew Cagney <[email protected]>
3184
3185 * complaints.c (symfile_explanations): Remove new-line from
3186 ``isolated_message''.
3187 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
3188 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
3189
5835abe7
NC
31902002-09-20 Nick Clifton <[email protected]>
3191
3192 * NEWS: Announce that V850EA ISA is no longer supported.
3193 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
3194
a15ef5f5
DC
31952002-09-20 David Carlton <[email protected]>
3196
06ba1b39
DC
3197 * Makefile.in (c-lang.o): Correct dependencies.
3198 (utils.o): Gather dependencies.
3199 (charset.o): Move.
a15ef5f5
DC
3200 * c-lang.c: #include "gdb_string.h"
3201
87885426
FN
32022002-09-20 Fernando Nasser <[email protected]>
3203
3204 From 2002-07-02 George Helffrich <[email protected]>
3205 * cli/cli-cmds.c (list_command): New function. Implements the new
3206 cli edit command.
3207 (_init_cli_cmds): Add new command definition.
3208 * gdb.1: Document edit command.
3209 * doc/gdb.texinfo: Document edit command.
3210
32112002-09-20 Fernando Nasser <[email protected]>
0378c332
FN
3212
3213 * source.c: Make global variables current_source_symtab and
3214 current_source_line static.
3215 (list_command): Moved to cli/cli-cmds.c.
3216 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
3217 (get_first_line_listed): New accessor function.
3218 (get_lines_to_list): New accessor function.
3219 (get_current_source_symtab_and_line): New function. Retrieves the
3220 position in the source code that we consider current.
3221 (get_current_or_default_source_symtab_and_line): New function.
3222 Like the above but attempts to determine a default position if one
3223 is not currently defined.
3224 (set_current_source_symtab_and_line): New function. Sets the source
3225 code position considered current and returns the previously set one.
3226 (clear_current_source_symtab_and_line): Reset stored information about
3227 a current source line.
3228 (_initialize_source): Remove registration for the "list" command and
3229 its alias.
3230 * source.h: Add declarations for the new functions above.
3231 * symtab.h: Remove declarations for the global variables mentioned
3232 above.
3233 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
3234 obtain current source line.
3235 * linespec.c (decode_line_1): Ditto.
3236 * macroscope.c (default_macro_scope): Ditto.
3237 * scm-lang.c (scm_unpac): Ditto.
3238 * stack.c (print_frame_info_base): Ditto.
3239 * symfile.c (clear_symtab_users): Ditto.
3240 * symtab.c (decode_line_spec): Ditto.
3241 * cli/cli-cmds.c (list_command): Moved here from source.c.
3242 (ambiguous_line_spec): Moved here from source.c.
3243 (_init_cli_cmds): Add definition for "list" and its alias.
3244 * Makefile.in: Update dependencies.
3245
ddd216ea
CV
32462002-09-20 Corinna Vinschen <[email protected]>
3247
3248 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
3249 with what gcc thinks is correct.
3250
6d305052
CV
32512002-09-20 Corinna Vinschen <[email protected]>
3252
3253 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
3254 multiple register push instruction.
3255
234b45d4
KB
32562002-09-19 Jim Blandy <[email protected]>
3257
3258 Add support for distinct host and target character sets.
3259 * charset.c, charset.h: New files.
3260 * c-exp.y: #include "charset.h".
3261 (yylex): Convert character and string literals to the target
3262 character set, before returning them as the semantic value of the
3263 token.
3264 * c-lang.c: #include "charset.h".
3265 (c_emit_char): Use charset-specific methods to recognize
3266 characters with backslash escape forms, to decide which characters
3267 to print literally and which to print using numeric escape
3268 sequences, and to convert target characters to host characters
3269 before printing.
3270 * utils.c: #include "charset.h".
3271 (no_control_char_error): New function.
3272 (parse_escape): Use charset-specific methods to recognize
3273 backslash escapes, parse `control character' notation, and convert
3274 characters from the host character set to the target character set.
3275 * configure.in: Set the default host character set.
3276 Check where to find iconv, and what its argument types might be.
3277 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
3278 * Makefile.in (SFILES): List charset.c.
3279 (COMMON_OBS): List charset.o.
3280 (charset.o): New rule.
3281 (charset_h): New header dependency variable.
3282 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
3283 (LIBICONV): New variable, set by configure.
3284 (CLIBS): Include $(LIBICONV) here.
3285 * aclocal.m4, config.in, configure: Regenerated.
3286
525d6a61
JB
32872002-09-19 Joel Brobecker <[email protected]>
3288
3289 * ada-exp.y: Add missing semicolons to end rules. Fixes a
3290 bison 1.35 warning.
3291
3ed93867
RE
32922002-09-19 Richard Earnshaw <[email protected]>
3293
3294 * gdb_mbuild.sh: New file.
3295
437666f8
AC
32962002-09-19 Andrew Cagney <[email protected]>
3297
3298 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
3299
389e51db
AC
33002002-09-18 Andrew Cagney <[email protected]>
3301
3302 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
3303 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
3304 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
3305 valops.c, value.h: Revert previous change.
3306
3b4efeaa
MS
33072002-09-18 Michael Snyder <[email protected]>
3308
3309 Preliminary support for Objective-C:
3310 * defs.h (language_objc): New enum value.
3311 (puts_filtered_tabular): Declaration only, exported from utils.c.
3312 (skip_quoted): Delete, declared in completer.h.
3313 * c-exp.y: Include completer.h.
3314 * p-exp.y: Ditto.
3315 * jv-exp.y: Ditto.
3316 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
3317 New operator enum values.
3318 * language.h (CAST_IS_CONVERSION): Test for language_objc.
3319 * language.c (binop_result_type): Handle language_objc case.
3320 (integral_type, character_type, string_type, boolean_type,
3321 structured_type, binop_type_check): Ditto.
3322 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
3323 (struct objc_specific): Add to general_symbol_info.
3324 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
3325 (SYMBOL_DEMANGLED_NAME): Handle objc case.
3326 * parser-defs.h (struct objc_class_str): New struct type.
3327 (start_msglist, end_msglist, add_msglist): Declaration only,
3328 exported from objc-lang.c.
3329 * value.h (value_of_local, value_nsstring,
3330 call_function_by_hand_expecting_type): Exported from valops.c.
3331 * valops.c (find_function_addr): Export.
3332 (call_function_by_hand_expecting_type): New function.
3333 (value_of_local): New function.
3334 * symfile.c (init_filename_language_table): Add ".m" extension
3335 for Objective-C.
3336 * utils.c (puts_filtered_tabular): New function.
3337 (fprintf_symbol_filtered): Add objc demangling support (disabled).
3338 (set/show demangle): Extend help-string to refer to ObjC.
3339 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
3340 * stabsread.c (symbol_reference_defined): Objective-C symbols
3341 may contain colons: make allowances when scanning stabs strings
3342 for colons.
3343 (objc_find_colon): New function.
3344 * printcmd.c (address_info): If language == objc then print
3345 "self" instead of "this".
3346 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
3347 OP_NSSTRING, and OP_SELF.
3348 (prefixify_subexp): Ditto.
3349 * source.c (print_source_lines): Mention objc in comment.
3350 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
3351 method names.
3352
b9caf505
AC
33532002-09-18 Andrew Cagney <[email protected]>
3354
3355 * complaints.h: Update copyright.
3356 (struct complaints): Declare.
3357 (struct complaint): Make `message' constant.
3358 (internal_complaint): Declare.
3359 (complaint): Declare.
3360 (complaint_root): Delete declaration.
3361 (symfile_complaints): Delete declaration.
3362 (struct complaints): Add opaque declaration.
3363 (clear_complaints): Add a complaints parameter.
3364 * complaints.c: Update copyright.
3365 (enum complaint_series): Define.
3366 (complaint_root): Delete.
3367 (struct complaints): Define.
3368 (complaint_sentinel, symfile_complaint_book): New variables.
3369 (symfile_explanations, symfile_complaints): New variables.
3370 New variables.
3371 (get_complaints): New function.
3372 (vcomplaint): New function.
3373 (complaint): New function.
3374 (internal_complaint): New function.
3375 (complain): Call vcomplain with symfile_complaint.
3376 (clear_complaints): Rewrite.
3377 (_initialize_complaints): Use add_setshow_command.
3378 * Makefile.in (complaints.o): Update dependencies.
3379 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
3380 to call to clear_complaints.
3381 (new_symfile_objfile, reread_symbols): Ditto.
3382 (oldsyms_complaint): Delete.
3383 (empty_symtab_complaint, unknown_option_complaint): Delete.
3384 (free_named_symtabs): Use complaint instead of complain.
3385
d2e6263c
MS
33862002-09-18 Michael Snyder <[email protected]>
3387
5fb2031a
AC
3388 Contributed by Apple Computer, Inc. Merged with current sources
3389 by Adam Fedor <[email protected]> [cagney].
3390
d2e6263c
MS
3391 * objc-lang.c: First clean-up round: comments, indentation.
3392 * objc-lang.h: Ditto.
3393 * objc-lang.y: Ditto.
3394
dec43320
AC
33952002-09-18 Andrew Cagney <[email protected]>
3396
3397 * maint.c (maintenance_internal_error): Print the parameter as the
3398 error message.
3399 (maintenance_internal_warning): New function.
3400 (_initialize_maint_cmds): Add command `maint internal-warning'.
3401
3402 * defs.h (internal_warning, internal_vwarning): Declare.
3403 * utils.c (struct internal_problem): Define.
3404 (internal_vproblem): New function.
3405 (internal_warning): New function.
3406 (internal_vwarning): New function.
3407 (internal_warning_problem, internal_error_problem): New variables.
3408 (internal_verror): Just call internal_vproblem.
3409
b81654f1
MS
34102002-09-18 Michael Snyder <[email protected]>
3411
3412 * objc-lang.c: New file, support for Objective-C.
3413 Preliminary check-in, not yet integrated into gdb.
3414 * objc-lang.h: New file.
3415 * objc-exp.y: New file.
3416
0542c381
AC
34172002-09-18 Andrew Cagney <[email protected]>
3418
7bda5e4a
AC
3419 * infrun.c (signal_stop_update): Convert definition to ISO C.
3420 (signal_print_update): Ditto.
3421 (signal_pass_update): Ditto.
3422 * inflow.c (terminal_save_ours): Ditto.
3423
5247b418
AC
3424 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
3425 comments.
3426
fc60962c
AC
3427 * config/djgpp/fnchange.lst: Handle name clashes between
3428 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
3429 bfd/coff-tic80.c.
3430
0542c381
AC
3431 * i386-linux-tdep.h: Fix tipo.
3432
5b924b9b
AF
34332002-09-18 Adam Fedor <[email protected]>
3434
3435 * MAINTAINERS: Add myself to the Write After Approval list.
3436
5afc051b
JB
34372002-09-18 Jim Blandy <[email protected]>
3438
3439 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
3440 texthigh and textlow to reader-specific structs caused
3441 objfile_relocate to miss them. This is fixable, but the work that
3442 the change was supposed to prepare GDB for never got done anyway.
3443
eb944380
DC
34442002-09-18 David Carlton <[email protected]>
3445
3446 * MAINTAINERS: Alphabetize Write After Approval list.
3447
948e66d9
DJ
34482002-09-18 Daniel Jacobowitz <[email protected]>
3449
3450 Fix PR gdb/709
3451 * values.c (value_static_field): Call read_var_value.
3452
dc604539
AC
34532002-09-18 Andrew Cagney <[email protected]>
3454
3455 * valops.c (hand_function_call): Align the initial stack pointer
3456 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
3457 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
3458 return value.
3459 * mips-tdep.c (mips_frame_align): New function.
3460 (mips_gdbarch_init): Set frame_align.
3461 * gdbarch.sh (FRAME_ALIGN): New method.
3462 * gdbarch.h, gdbarch.c: Re-generate.
3463
cb7e422f
ML
34642002-09-18 Michal Ludvig <[email protected]>
3465
3466 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
3467 registers.
3468
a094c6fb
AC
34692002-09-17 Andrew Cagney <[email protected]>
3470
3471 * NEWS: Mention that MIPS $fp behavior changed.
3472 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
3473 reference to FP_REGNUM.
3474 (mipsnbsd_cannot_store_register): Ditto.
3475 * mips-linux-nat.c: Update copyright.
3476 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
3477 (mips_linux_cannot_store_register): Ditto.
3478 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
3479 * config/mips/tm-mips.h: Update copyright.
3480 (FP_REGNUM): Delete macro.
3481 (MIPS_REGISTER_NAMES): Replace "fp" with "".
3482 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
3483 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
3484 (mips_r3041_reg_names, mips_r3051_reg_names)
3485 (mips_r3081_reg_names): Replace "fp" with "".
3486 Fix PR gdb/480.
3487
45cf40d1
TR
34882002-09-17 Theodore A. Roth <[email protected]>
3489
3490 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
3491 generic_read_register_dummy() (PR gdb/703).
3492 (avr_push_return_address): #if 0 out unused vars.
3493 (avr_gdbarch_init): Enable use of avr_push_return_address().
3494
c7e701b5
MS
34952002-09-17 Michael Snyder <[email protected]>
3496
d76ba2a5 3497 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
c7e701b5
MS
3498 RTE will take care of it.
3499
20bcf01c
AC
35002002-09-17 Andrew Cagney <[email protected]>
3501
3502 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
3503 invalid, return SP_REGNUM.
3504
009a9971 35052002-09-17 Michael Snyder <[email protected]>
21f87145
MS
3506
3507 * mips-tdep.c (mips_pop_frame): Read saved values of floating
3508 point registers without sign extension.
3509
135c175f
AC
35102002-09-17 Andrew Cagney <[email protected]>
3511
3512 * blockframe.c (deprecated_read_register_dummy): Rename
3513 generic_read_register_dummy.
3514 * frame.c (frame_unwind_signed_register): New function.
3515 (frame_unwind_unsigned_register): New function.
3516 * frame.h (frame_unwind_signed_register): Declare.
3517 (frame_unwind_unsigned_register): Declare.
3518 (deprecated_read_register_dummy): Rename
3519 generic_read_register_dummy.
3520
3521 * h8300-tdep.c (h8300_frame_chain): Update.
3522 (h8300_frame_saved_pc): Update.
3523 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
3524 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3525 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
3526 (s390_frame_chain): Update.
3527 * v850-tdep.c (v850_find_callers_reg): Update.
3528 (v850_frame_saved_pc): Update.
3529 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
3530 (m32r_find_callers_reg): Update.
3531 (m32r_frame_saved_pc): Update.
3532 * sh-tdep.c (sh_find_callers_reg): Update.
3533 (sh64_get_saved_pr): Update.
3534 (sh_init_extra_frame_info): Update.
3535 (sh_init_extra_frame_info): Update.
3536 (sh64_init_extra_frame_info): Update.
3537 (sh64_init_extra_frame_info): Update.
3538 * mcore-tdep.c (mcore_find_callers_reg): Update.
3539 (mcore_frame_saved_pc): Update.
3540 (mcore_init_extra_frame_info): Update.
3541 * i386-tdep.c (i386_frame_saved_pc): Update.
3542 * ia64-tdep.c (ia64_frame_saved_pc): Update.
3543 (ia64_init_extra_frame_info): Update.
3544 (ia64_init_extra_frame_info): Update.
3545 * d10v-tdep.c (d10v_frame_saved_pc): Update.
3546 * cris-tdep.c (cris_init_extra_frame_info): Update.
3547 * avr-tdep.c (avr_frame_chain): Update.
3548 (avr_init_extra_frame_info): Update.
3549 (avr_frame_saved_pc): Update.
3550 * arm-tdep.c (arm_find_callers_reg): Update.
3551 (arm_init_extra_frame_info): Update.
3552 (arm_frame_saved_pc): Update.
3553
a741e514
TT
35542002-09-17 Tom Tromey <[email protected]>
3555
3556 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
3557 is "'".
3558
d1a8e808
CV
35592002-09-17 Corinna Vinschen <[email protected]>
3560
3561 * MAINTAINERS: Remove "non multi-arched" text from h8300.
3562 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
3563 NEXT_PROLOGUE_INSN.
3564 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
3565 NEXT_PROLOGUE_INSN.
3566
d9025a18
JB
35672002-09-16 Joel Brobecker <[email protected]>
3568
3569 * osfsolib.c: Remove file, replaced by solib-osf.c.
3570 * Makefile.in: Remove compilation rules for osfsolib.c.
3571
1b2ef1b6
DC
35722002-09-16 David Carlton <[email protected]>
3573
3574 * cp-valprint.c (cp_print_class_method): Correct args to
3575 check_stub_method_group.
3576
928e48af
CV
35772002-09-16 Corinna Vinschen <[email protected]>
3578
3579 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
3580 `set architecture'. Unify naming convention of functions.
3581 (h8300_skip_prologue): Improve prologue analysis.
3582 (h8300_push_arguments): Rewritten to more closely match GCC's
3583 bizarre argument-passing behavior, along with the comment describing
3584 said behavior.
3585 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
3586 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
3587 sim, remote-e7000.c, remote-hms.c and remote.c
3588
5e3397bb
MK
35892002-09-15 Mark Kettenis <[email protected]>
3590
3591 * i386-tdep.c (gdb_print_insn_i386): Removed.
3592 (i386_print_insn): New function.
3593 (i386_gdbarch_init): Set print_insn to i386_print_insns.
3594 (_initialize_i386_tdep): Don't initialize tm_print_insn and
3595 tm_print_insn_info.
3596
f710f4fc
MK
35972002-09-14 Mark Kettenis <[email protected]>
3598
3599 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
3600 zero.
3601
db54fef4
CV
36022002-09-14 Corinna Vinschen <[email protected]>
3603
3604 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
3605 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
3606 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
3607
2becadee
CF
36082002-09-13 Christopher Faylor <[email protected]>
3609
3610 * win32-nat.c (child_create_inferior): Honor 'tty' command.
3611
de17c821
DJ
36122002-09-13 Daniel Jacobowitz <[email protected]>
3613
3614 * gdbtypes.c (check_stub_method): Make static.
3615 (check_stub_method_group): New function.
3616 * gdbtypes.h: Update prototypes.
3617 * cp-support.c: New file.
3618 * cp-support.h: New file.
3619
3620 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
3621 (update_method_name_from_physname): New function.
3622 (read_member_functions): Correct method names for operators
3623 and v3 constructors/destructors. Separate v2 constructors and
3624 destructors.
3625 * Makefile.in (stabsread.o): Update dependencies.
3626 (SFILES): Add cp-support.c.
3627 (COMMON_OBS): Add cp-support.o.
3628 (cp_support_h, cp-support.o): Add.
3629
3630 * cp-valprint.c (cp_print_class_method): Call
3631 check_stub_method_group instead of check_stub_method. Remove
3632 extraneous QUITs.
3633 * p-valprint.c (pascal_object_print_class_method): Likewise.
3634 * valops.c (search_struct_method): Likewise.
3635 (find_method_list, value_struct_elt_for_reference): Likewise.
3636
e76cff22
AC
36372002-09-13 Andrew Cagney <[email protected]>
3638
3639 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
3640 * gdbarch.h, gdbarch.c: Regenerate.
3641
905abb3f
AC
36422002-09-13 Andrew Cagney <[email protected]>
3643
3644 * frame.c (find_saved_register): Delete function.
3645 * frame.h (find_saved_register): Delete declaration.
3646 Fix PR gdb/631.
3647
64159455
AC
3648Fri Sep 13 14:59:55 2002 Andrew Cagney <[email protected]>
3649
3650 * mips-tdep.c (read_next_frame_reg): Re-hack using
3651 frame_register_unwind.
3652
795e1e11
AC
3653Fri Sep 13 07:42:09 2002 Andrew Cagney <[email protected]>
3654
3655 * mips-tdep.c (mips_get_saved_register): Re-hack using
3656 frame_register_unwind.
3657
5720643c
JB
36582002-09-12 Joel Brobecker <[email protected]>
3659
3660 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
3661 vector. Will be useful for Interix.
3662 * gdbarch.h, gdbarch.c: Regenerate.
3663
3664 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
3665 name of the malloc function by NAME_OF_MALLOC.
3666
3bada2a2
JB
36672002-09-12 Joel Brobecker <[email protected]>
3668
3669 * value.h (find_function_in_inferior): Add const keyword to
3670 one of the parameters. Allows us to invoke this function with
3671 a const char *.
3672 * valops.c (find_function_in_inferior): Likewise.
3673
3db26b01
JB
36742002-09-12 Joel Brobecker <[email protected]>
3675
3676 * exec.c (xfer_memory): Fix compilation warning with old versions
3677 of GCC.
3678 * tracepoint.c (trace_find_tracepoint_command): Likewise.
3679
17c5ed2c
DC
36802002-09-12 David Carlton <[email protected]>
3681
3682 * symtab.h: Run through gdb_indent.h.
3683 Add 2002 to Copyright year list.
3684
ecd1107e
AM
36852002-09-12 Alan Modra <[email protected]>
3686
3687 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
3688 mach constants.
3689 * MAINTAINERS: Add myself to write after approval list.
3690
e64f66d1
JB
36912002-09-11 J. Brobecker <[email protected]>
3692
3693 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
3694
f9395794
JB
36952002-09-11 J. Brobecker <[email protected]>
3696
3697 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
3698 Interix.
3699
1a303dec
MS
37002002-06-05 Paul N. Hilfinger <[email protected]>
3701
3702 * procfs.c (do_detach): Clear current signal, not just fault.
3703 Corrects problem with breakpoint trap signal leaking to detached
3704 process on Tru64.
3705
c0219d42
MS
37062002-09-10 Michael Snyder <[email protected]>
3707
3708 * buildsym.c (finish_block): Protect against null pointer.
3709
9d84ac84
AC
37102002-09-10 Andrew Cagney <[email protected]>
3711
3712 * infcmd.c (default_print_registers_info): Send all output to
3713 ``file'' instead of ``gdb_stdout''.
3714
77d8f2b4
MS
37152002-09-10 Michael Snyder <[email protected]>
3716
3717 * mips-tdep.c (mips_extract_struct_value_address): Make val a
3718 LONGEST, and use signed register read (addresses are sign-
3719 extended for mips).
3720
99656a61
SC
37212002-09-10 Stephane Carrez <[email protected]>
3722
3723 * event-loop.c (gdb_do_one_event): Make public.
3724 * event-loop.h (gdb_do_one_event): Declare.
3725
da12f4d8
JL
37262002-09-10 Jeff Law <[email protected]>
3727
3728 * infttrace.c (child_resume): Simplify and rework to avoid
3729 TT_PROC_CONTINUE.
3730
d0aee0c4
FF
37312002-09-09 Fred Fish <[email protected]>
3732
3733 * printcmd.c (print_scalar_formatted): "len" is the number of
3734 target bytes, NOT the number of target bits.
3735
7cb3ec5e
EZ
37362002-09-09 Elena Zannoni <[email protected]>
3737
3738 From: Emmanuel Thome' <[email protected]>
3739 * top.c (init_main): Set rl_terminal_name.
3740
4dc81987
AS
37412002-09-08 Aidan Skinner <[email protected]>
3742
3743 * ada-lang.c (ada_array_bound, ada_type_match,
3744 _initialize_ada_language): Fix K&R definitions.
3745 * ada-tasks.c (get_current_task): Fix K&R definitions.
3746 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
3747
842330b4
CF
37482002-09-07 Christopher Faylor <[email protected]>
3749
3750 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
3751 Add XP.
3752
43156d82
MK
37532002-09-06 Mark Kettenis <[email protected]>
3754
66da5fd8
MK
3755 * i386-tdep.c (i386_register_virtual_type,
3756 i386_register_convertible, i386_register_convert_to_virtual,
3757 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
3758 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
3759 (i386_gdbarch_init): Fix comment. Add comments on calls that set
3760 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
3761 Don't set push_arguments twice.
3762
4b218c18
MK
3763 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
3764 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
3765 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
3766 sigtramp_end to NULL.
3767 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
3768 defines.
3769 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
3770
4cc314d5
MK
3771 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
3772 whitespace.
3773
43156d82
MK
3774 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
3775 * gdbarch.h, gdbarch.c: Re-generate.
3776 * blockframe.c (find_pc_sect_partial_function): Convert to use
3777 SIGTRAMP_START_P predicate.
3778
6672060b
MS
37792002-09-05 Michael Snyder <[email protected]>
3780
a90c3637
MS
3781 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
3782 generic_dummy_frame method and old method. Also distinguish
3783 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
95f95911 3784 (arm_extract_return_value): Use new regcache method.
a90c3637 3785
6672060b
MS
3786 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
3787 adjustment that doesn't conform to the ABI.
3788 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
3789 saved regcache, not from current regcache.
3790
299ffc64
AC
37912002-09-05 Andrew Cagney <[email protected]>
3792
3793 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
3794 * README: Update.
3795
a3a2ee65
JT
37962002-09-04 Jason Thorpe <[email protected]>
3797
3798 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
3799 if arm_apcs_32 is false.
3800
2bc7eea9
AC
38012002-09-04 Andrew Cagney <[email protected]>
3802
3803 GDB 5.3 branch created.
3804
8a55a7c5
TR
38052002-09-03 Theodore A. Roth <[email protected]>
3806
3807 * gdb/avr-tdep.c (avr_gdbarch_init): Use
3808 generic_unwind_get_saved_register.
3809
e26fb1d7
DC
38102002-09-03 David Carlton <[email protected]>
3811
3812 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
3813 argument (PR gdb/653). Update call to smash_to_method_type.
3814 (read_structure_scope): Update call to dwarf2_add_member_fn.
3815
30d52491
ML
38162002-09-03 Michal Ludvig <[email protected]>
3817
3818 * x86-64-linux-tdep.c: Include gdb_string.h
3819 * x86-64-linux-nat.c: Ditto.
3820
06891d83
JT
38212002-09-02 Jason Thorpe <[email protected]>
3822
3823 * ada-exp.y (yyname, yyrule): Remap global variables that appear
3824 when YYDEBUG is set to 1.
3825 * c-exp.y: Likewise.
3826 * f-exp.y: Likewise.
3827 * jv-exp.y: Likewise.
3828 * m2-exp.y: Likewise.
3829 * p-exp.y: Likewise.
3830
7d400e77
JT
38312002-09-02 Jason Thorpe <[email protected]>
3832
3833 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
3834 dependency list.
3835 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
3836 solib_svr4_fetch_link_map_offsets to
3837 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
3838 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
3839 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3840 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
3841 solib-svr4.o, and solib-legacy.o.
3842 * config/i386/tm-nbsd.h: Include solib.h.
3843
704a27c4
JT
38442002-09-02 Jason Thorpe <[email protected]>
3845
3846 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
3847 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
3848 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
3849 comment noting that this needs its own target configuration.
3850 * config/i386/nbsd.mt: New file.
3851 * config/i386/nbsdaout.mt: Remove.
3852 * config/i386/nbsdelf.mt: Ditto.
3853 * config/i386/tm-nbsdaout.h: Ditto.
3854
d66198e1
JT
38552002-09-02 Jason Thorpe <[email protected]>
3856
3857 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
3858 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
3859 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
3860 tdep->sigtramp_end.
3861 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
3862 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
3863 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
3864
3cac699e
JT
38652002-09-02 Jason Thorpe <[email protected]>
3866
3867 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
3868 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
3869 * i386-tdep.h (i386bsd_init_abi): New prototype.
3870 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
3871 function declaration.
3872 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
3873 for NetBSD-a.out or NetBSD-ELF.
3874 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
3875 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
3876 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
3877 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
3878 and nbsd-tdep.h.
3879 (i386nbsd_pc_in_sigtramp): New function.
3880 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3881 i386nbsd_pc_in_sigtramp.
3882 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
3883 and i386nbsdelf_init_abi OS ABI handlers.
3884 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
3885 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
3886
7010ca0a
MK
38872002-09-02 Mark Kettenis <[email protected]>
3888
3889 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
3890 registers if the target really has them.
3891
6dd93b72
JT
38922002-08-31 Jason Thorpe <[email protected]>
3893
3894 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
3895 than nbsd-tdep.h.
3896
2ca8ae21
JT
38972002-08-31 Jason Thorpe <[email protected]>
3898
3899 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
3900 list.
3901 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
3902 (alphanbsd_skip_sigtramp_frame): New functions.
3903 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
3904 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
3905 to alphanbsd_sigcontext_addr.
3906
3d9b49b0
JT
39072002-08-31 Jason Thorpe <[email protected]>
3908
3909 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
3910 list.
3911 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
3912 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
3913 nbsd_pc_in_sigtramp.
3914 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
3915 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
3916 * nbsd-tdep.c: Include gdb_string.h.
3917 (nbsd_pc_in_sigtramp): New function.
3918 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
3919 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
3920 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3921 ppcnbsd_pc_in_sigtramp.
3922 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
3923 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
3924 shnbsd_pc_in_sigtramp.
3925 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
3926 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
3927 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
3928
c860120c
PM
39292002-08-30 Pierre Muller <[email protected]>
3930
3931 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
3932 watchpoints to NULL.
3933 (insert_breakpoints): set val field of watchpoints if NULL.
3934
3935
c7612d53
JB
39362002-08-29 Jim Blandy <[email protected]>
3937
3938 * symtab.c (lookup_symbol_aux): In the cases where we find a
3939 minimal symbol of an appropriate name and use its address to
3940 select a symtab to read and search, use `name' (as passed to us)
3941 as the demangled name when searching the symtab's global and
3942 static blocks, not the minsym's name.
3943
66609862
KS
39442002-08-29 Keith Seitz <[email protected]>
3945
3946 * stack.c (print_frame_info_base): Always set current_source_symtab
3947 and current_source_line.
3948
151fefe2
JB
39492002-08-29 Donn Terry <[email protected]>
3950
3951 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
3952
bfb3754e
KS
39532002-08-28 Keith Seitz <[email protected]>
3954
3955 * stack.c (select_frame): Add FIXME concerning selected-frame
3956 events.
3957 (select_frame_command): Send selected-frame-level-changed
3958 event notification, but only if the level actually changed.
3959 (up_silently_base): Add selected-frame-level-changed event
3960 notification.
3961 (down_silently_base): Likewise.
3962
e822a2a0
AC
39632002-08-28 Andrew Cagney <[email protected]>
3964
3965 * Makefile.in: Update dependencies for all gdb/*.c files.
3966
309367d4
TT
39672002-08-27 Tom Tromey <[email protected]>
3968
3969 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
3970 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
3971 Update dependencies.
3972 * i387-tdep.c: Include gdb_string.h.
3973 * osabi.c: Likewise.
3974 * i386-linux-nat.c: Likewise.
3975 * lin-lwp.c: Likewise.
3976 * ax-gdb.c: Likewise.
3977 * signals/signals.c: Likewise.
3978 * jv-valprint.c: Likewise.
3979 * p-lang.c: Likewise.
3980 * c-valprint.c: Likewise.
3981 * cp-abi.c: Likewise.
3982
e1507482
EZ
39832002-08-27 Elena Zannoni <[email protected]>
3984
3985 * cli/cli-script.h (copy_command_lines): Export.
3986 * breakpoint.c: Include cli/cli-script.h.
3987 * Makefile.in (breakpoint.o): Update dependencies.
3988
c6510018
MS
39892002-08-26 Michael Snyder <[email protected]>
3990
3991 * breakpoint.c (insert_breakpoints): Protect all references
3992 to 'process_warning'. Shorten long lines.
3993
c2b8ed2c
MS
39942002-08-26 Joel Brobecker <[email protected]>
3995
3996 * cli/cli-script.c (copy_command_lines): New function.
3997 * defs.h (copy_command_lines): Export.
3998 * testsuite/gdb.base/commands.exp: New tests for commands
3999 attached to a temporary breakpoint, and for commands that
4000 delete the breakpoint they are attached to.
4001
40022002-08-26 Michael Snyder <[email protected]>
4003
4004 * breakpoint.c (bpstat_stop_status): Instead of copying the
4005 pointer to the breakpoint commands struct, make a new copy
4006 of the struct and point to that.
4007 (bpstat_clear): Free the commands struct.
4008 (bpstat_clear_actions): Free the commands struct.
4009 (bpstat_do_actions): Free the command actions. Also execute
4010 the local cleanups, instead of deleting them.
4011 (delete_breakpoint): Leave the commands field of the bpstat
4012 chain alone -- it will be freed later.
4013
64b84175
KB
40142002-08-26 Kevin Buettner <[email protected]>
4015
4016 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4017 deleted in 2002-08-20 commit. This function is still used by
4018 ppc-linux-nat.c.
4019
55970da6
KS
40202002-08-26 Keith Seitz <[email protected]>
4021
4022 * gdb-events.sh: Add selected-frame-level-changed event.
4023 * gdb-events.c: Regenerated.
4024 * gdb-events.h: Regenerated.
4025
a790ad35
SC
40262002-08-26 Stephane Carrez <[email protected]>
4027
4028 Fix PR gdb/393:
4029 * inflow.c (terminal_save_ours): New function to save terminal
4030 settings.
4031 * inferior.h (terminal_save_ours): Declare.
4032 * target.c (debug_to_terminal_save_ours): New function.
4033 (cleanup_target): Defaults to_terminal_save_ours.
4034 (update_current_target): Inherit to_terminal_save_ours.
4035 (setup_target_debug): Set to_terminal_save_ours.
4036 * target.h (target_terminal_save_ours): New to save terminal settings.
4037 (target_ops): New member to_terminal_save_ours.
4038 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4039 * hpux-thread.c (init_hpux_thread_ops): Likewise.
4040 * inftarg.c (init_child_ops): Likewise.
4041 * m3-nat.c (init_m3_ops): Likewise.
4042 * procfs.c (init_procfs_ops): Likewise.
4043 * wince.c (init_child_ops): Likewise.
4044 * win32-nat.c (init_child_ops): Likewise.
4045 * sol-thread.c (init_sol_thread_ops): Likewise.
4046
c00dcbe9
MK
40472002-08-26 Mark Kettenis <[email protected]>
4048
3d7f4f49
MK
4049 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
4050 use regcache_* functions.
4051 (i386_gdbarch_init): Set store_return_value instead of
4052 deprecated_store_return_value.
4053
c00dcbe9
MK
4054 * regcache.c (regcache_raw_write_signed,
4055 regcache_raw_write_unsigned): New functions.
4056 * regcache.h (regcache_raw_write_signed,
4057 regcache_raw_write_unsigned): New prototypes.
4058
0e0d15ca
AC
40592002-08-25 Andrew Cagney <[email protected]>
4060
4061 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
4062 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
4063 source file dependencies. Cleanup corresponding generator rules.
4064
d3b22ed5
AC
40652002-08-25 Andrew Cagney <[email protected]>
4066
4067 * regcache.h (register_offset_hack): Declare.
4068 (regcache_cooked_read_using_offset_hack): Declare.
4069 (regcache_cooked_write_using_offset_hack): Declare.
4070
4071 * regcache.c (register_offset_hack): New function.
4072 (regcache_cooked_read_using_offset_hack): New function.
4073 (regcache_cooked_write_using_offset_hack): New function.
4074 (regcache_dump): Check that the registers, according to their
4075 offset, are packed hard against each other.
4076 (cooked_xfer_using_offset_hack): New function.
4077
bb425013
AC
40782002-08-25 Andrew Cagney <[email protected]>
4079
4080 * regcache.c (struct regcache_descr): Add field register_type.
4081 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
4082 in as a parameter
4083 (init_regcache_descr): Initialize register_type. Pass the descr
4084 to init_legacy_regcache_descr. Use register_type instead of
4085 REGISTER_VIRTUAL_TYPE.
4086 (register_type): New function.
4087 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
4088 * regcache.h (register_type): Declare.
4089
d0403e00
AC
40902002-08-25 Andrew Cagney <[email protected]>
4091
4092 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
4093 instead of deprecated_store_return_value. Fix fallout from
4094 2002-08-23 Andrew Cagney <[email protected]>.
4095
0ed04cce
AC
40962002-08-25 Andrew Cagney <[email protected]>
4097
4098 * regcache.c (max_register_size): New function.
4099 (init_legacy_regcache_descr): Ensure that max_register_size is
4100 large enough for REGISTER_VIRTUAL_SIZE.
4101 * regcache.h (max_register_size): Declare.
4102
46d79c04
AC
41032002-08-24 Andrew Cagney <[email protected]>
4104
4105 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
4106 store_return_value.
4107 (e500_extract_return_value): Change type of valbuf pointer to
4108 void.
4109
853c7bd0
MK
41102002-08-24 Mark Kettenis <[email protected]>
4111
cd87e769
MK
4112 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
4113 workaround.
4114
853c7bd0
MK
4115 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
4116 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
4117 long long) to prevent compiler warning on 64-bit systems.
4118
ebba8386
AC
41192002-08-23 Andrew Cagney <[email protected]>
4120
4121 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
4122 (DEPRECATED_STORE_RETURN_VALUE): New method.
4123 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
4124 * gdbarch.h, gdbarch.c: Re-generate.
4125
4126 * values.c (set_return_value): Pass current_regcache to
4127 STORE_RETURN_VALUE.
4128 * arch-utils.h (legacy_store_return_value): Declare.
4129 * arch-utils.c (legacy_store_return_value): New function.
4130 (legacy_extract_return_value): Update parameters.
4131
4132 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
4133 STORE_RETURN_VALUE.
4134 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4135 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4136 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4137 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4138 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4139 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4140 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4141 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4142 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4143 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
4144
4145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4146 * i386-tdep.c (i386_extract_return_value): Update.
4147 * arch-utils.c (legacy_extract_return_value): Update.
4148 * frv-tdep.c (frv_gdbarch_init): Update.
4149 * cris-tdep.c (cris_gdbarch_init): Update.
4150 * d10v-tdep.c (d10v_gdbarch_init): Update.
4151 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4152 * m68k-tdep.c (m68k_gdbarch_init): Update.
4153 * mcore-tdep.c (mcore_gdbarch_init): Update.
4154 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4155 * s390-tdep.c (s390_gdbarch_init): Update.
4156 * sparc-tdep.c (sparc_gdbarch_init): Update.
4157 * sh-tdep.c (sh_gdbarch_init): Update.
4158 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
4159 * v850-tdep.c (v850_gdbarch_init): Update.
4160 * avr-tdep.c (avr_gdbarch_init): Update.
4161 * ia64-tdep.c (ia64_gdbarch_init): Update.
4162 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4163 * vax-tdep.c (vax_gdbarch_init): Update.
4164 * alpha-tdep.c (alpha_gdbarch_init): Update.
4165 * arm-tdep.c (arm_gdbarch_init): Update.
4166 * mips-tdep.c (mips_gdbarch_init): Update.
4167 * i386-tdep.c (i386_gdbarch_init): Update.
4168
5bd8c6d0
AC
41692002-08-23 Andrew Cagney <[email protected]>
4170
4171 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
4172 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
4173
e73e1724
MK
41742002-08-24 Mark Kettenis <[email protected]>
4175
4176 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
4177 problems.
4178
3e6564e1
JB
41792002-08-23 Joel Brobecker <[email protected]>
4180
4181 * infrun.c (handle_inferior_event): Move a comment outside of a
4182 function call, in order to avoid indent reformatting this part
4183 of the code in an unreadable way.
4184
81d0cc19
GS
41852002-08-23 Grace Sainsbury <[email protected]>
4186
4187 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
4188 when breakpoints fail. Move general breakpoint error messages to
4189 insert_breakpoints.
4190 * breakpoint.c (insert_breakpoints): Change warnings when
4191 breakpoints are nto inserted to specify the type. Remove call to
4192 memory_error when hardware breakpoints can't be inserted. Remove
4193 multiple calls to warning so all messages are sent to the user at
4194 once.
4195 (delete_breakpoints): Make insert error messsages more explicit.
4196
17574093
DJ
41972002-08-23 Daniel Jacobowitz <[email protected]>
4198
4199 * ChangeLog: Move gdbserver entries after GDB 5.2 to
4200 gdbserver/ChangeLog.
4201
8acc2935
MK
42022002-08-23 Mark Kettenis <[email protected]>
4203
dfe01d39
MK
4204 * i386-tdep.c: Include "objfiles.h".
4205 (i386_svr4_init_abi): Set in_solib_call_trampoline and
4206 skip_trampoline_code.
4207 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
4208 (CPLUS_MARKER): Define to '.'.
4209
8acc2935
MK
4210 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
4211 member.
4212 (linux_corefile_thread_callback): Increase args->num_notes.
4213 (linux_make_note_section): Initialize thread_args.num_notes, and
4214 use it to determine whether notes for any threads were created.
4215
151fefe2 42162002-08-23 Donn Terry <[email protected]>
640b227f
JB
4217
4218 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
4219 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
4220 and PCUNKILL.
4221 (write_with_trace): Conditionalize out the switch branch handling
4222 PCSHOLD if the corresponding macro is not defined. Likewise for
4223 PRSABORT and PRSTOP.
4224 This change will be needed by the Interix port.
4225
e1507482
EZ
42262002-08-22 Elena Zannoni <[email protected]>
4227
4228 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
4229 write_register wherever possible instead of manipulating the
4230 register bytes directly.
4231 Assign VALUE_CONTENTS to a variable and use that.
4232 The GPR numbers are now dependent on the architecture.
4233
96ff0de4
EZ
42342002-08-22 Elena Zannoni <[email protected]>
4235
4236 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
4237 ev_offset fields.
4238 (skip_prologue): Add support for BookE/e500 instructions.
4239 (e500_extract_return_value): New function.
4240 (frame_get_saved_regs): Add support for saving ev registers and
4241 pseudo gpr's.
4242 (e500_store_return_value): New function.
4243 (rs6000_gdbarch_init): Move up default intializations of
4244 deprecated_extract_return_value and store_return_value. Overwrite
4245 init of store_return_value with e500 specific version.
4246 Set extract_return_value for e500.
4247
fbefca5b
EZ
42482002-08-22 Elena Zannoni <[email protected]>
4249
4250 * blockframe.c (generic_call_dummy_register_unwind): Use
4251 regcache_cooked_read to catch cases in which the variable is
4252 stored in a pseudo register.
4253
4d210288
AC
42542002-08-22 Andrew Cagney <[email protected]>
4255
4256 * NEWS: Mention that the i960 has been made obsolete.
4257 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
4258 i960-tdep.c
4259 (remote-nrom.o): Obsolete target.
4260 (remote-nindy.o, i960-tdep.o): Ditto.
4261 * remote-nrom.c: Make file obsolete.
4262 * remote-nindy.c, remote-vx960.c: Ditto.
4263 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
4264 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
4265 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
4266 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
4267 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
4268 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
4269 i960-*-vxworks* obsolete.
4270 * MAINTAINERS: Note that the i960 is obsolete.
4271
6c0c456d
CV
42722002-08-21 Corinna Vinschen <[email protected]
4273
4274 * aix-thread.c (aix_thread_detach): Disable thread debugging on
4275 detach to allow reinitialization.
4276
9f9d12b3
AC
42772002-08-22 Andrew Cagney <[email protected]>
4278
4279 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
4280 attempt).
4281
ebeb39fe
JB
42822002-08-22 Jim Blandy <[email protected]>
4283
4284 * coffread.c (coff_symfile_read): Don't try to read the line
4285 number table from disk if the image file doesn't have a symbol
4286 table; we'll never actually look at the info anyway, and Windows
4287 ships DLL's with bogus file offsets for the line number data.
4288
5bf1c677
EZ
42892002-08-21 Elena Zannoni <[email protected]>
4290
4291 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
4292 an e500 executable.
4293
71b8ef93
MS
42942002-08-21 Michael Snyder <[email protected]>
4295
4296 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
4297 (MSYMBOL_SIZE): Replace macro with function.
18f81521
MS
4298 (DEFAULT_MIPS_TYPE): Delete unused macro.
4299 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
4300 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
71b8ef93 4301
d174216d
JB
43022002-08-21 Jim Blandy <[email protected]>
4303
4304 * valops.c (value_cast): Simplify and correct logic for doing a
4305 static cast from a pointer to a base class to a pointer to a
4306 derived class.
4307
0ab7a791
AC
43082002-08-21 Andrew Cagney <[email protected]>
4309
4310 * infcmd.c (default_print_registers_info): Replace
4311 do_registers_info.
4312 (registers_info): Use gdbarch_print_registers_info instead of
4313 DO_REGISTERS_INFO.
4314 * inferior.h (default_print_registers_info): Replace
4315 do_registers_info.
4316 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
4317 (DO_REGISTERS_INFO): Change to a predicate function.
4318 * gdbarch.h, gdbarch.c: Regenerate.
4319
e23792cc
KS
43202002-08-21 Keith Seitz <[email protected]>
4321
4322 * gdb-events.sh: Add target-changed event.
4323 * gdb-events.c: Regenerated.
4324 * gdb-events.c: Regenerated.
4325 * valops.c (value_assign): Add target-changed event notification
4326 to inlval_register, lval_memory, and lval_reg_frame_relative.
4327
9fb14e79
JB
43282002-08-21 Joel Brobecker <[email protected]>
4329
4330 * NEWS: Add an entry regarding the improvement of the next/step
4331 operation on Alpha Tru64 multi-processor machines.
4332
6d39a69f
AC
43332002-08-21 Andrew Cagney <[email protected]>
4334
72acd513
AC
4335 * Makefile.in: Update dependencies for mi/ cli/ and tui/
4336 directores.
342af04b 4337 * Makefile.in: Update all _h macro definitions.
6d39a69f
AC
4338 * Makefile.in (install-gdbtk): Move to install section.
4339 (rdi-share/libangsd.a): Move to end of file.
4340
fa5f27c7
AC
43412002-08-19 Andrew Cagney <[email protected]>
4342
4343 * frame.c (frame_register_unwind): When a register, set addrp to
4344 the register's byte.
4345
5a89d8aa
MS
43462002-08-20 Michael Snyder <[email protected]>
4347
4348 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
4349 used locally, so move them from the target machine header to here.
4350 (mips_set_processor_type, mips_register_name, mips32_next_pc,
4351 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
4352 Make static.
4353 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
4354
822e978b
AC
43552002-08-20 Andrew Cagney <[email protected]>
4356
4357 * NEWS: Mention that the Apollo line was made obsolete.
4358 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
4359 m68*-hp-hpux* obsolete.
4360 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
4361 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
4362 * buildsym.c (make_blockvector): Make static.
4363 * buildsym.h (make_blockvector): Make extern declaration obsolete.
4364 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
4365 (ALLDEPFILES): Remove dstread.c.
4366 (dstread.o): Obsolete make rule.
4367 * dstread.c: Makefile obsolete.
4368 * dst.h: Ditto.
4369 * config/m68k/hp300hpux.mt: Ditto.
4370 * config/m68k/hp300hpux.mh: Ditto.
4371 * config/m68k/hp300bsd.mt: Ditto.
4372 * config/m68k/hp300bsd.mh: Ditto.
4373 * config/m68k/apollo68b.mt: Ditto.
4374 * config/m68k/apollo68v.mh: Ditto.
4375 * config/m68k/apollo68b.mh: Ditto.
4376
e41b17f0
MS
43772002-08-20 Michael Snyder <[email protected]>
4378
4379 * mips-tdep.c (mips_in_return_stub): Make static.
4380 (mips_gdbarch_init): Set in_solib_return_trampoline.
4381 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
4382
d50355b6
MS
43832002-08-20 Michael Snyder <[email protected]>
4384
4385 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
4386 * gdbarch.c, gdbarch.h: Regenerate.
4387 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
4388 Add.
4389 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
4390
757a7cc6
MS
43912002-08-20 Michael Snyder <[email protected]>
4392
4393 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
4394 (mips_gdbarch_init): Set skip_trampoline_code,
4395 in_solib_call_trampoline.
4396 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
4397 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
4398
c8001721
EZ
43992002-08-20 Elena Zannoni <[email protected]>
4400
4401 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
4402
4403 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
4404 vector type for ev registers.
4405 (e500_pseudo_register_read): New function.
4406 (e500_pseudo_register_write): New function.
4407 (e500_dwarf2_reg_to_regnum): New function.
4408 (PPC_UISA_NOFP_SPRS): New macro.
4409 (PPC_EV_REGS): New macro.
4410 (PPC_GPRS_PSEUDO_REGS): New macro.
4411 (registers_e500): New register set for e500.
4412 (variants): Add e500 variant.
4413 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
4414 before setting architectural dependent variations. Initialize ev
4415 registers numbers. Add case for e500 architecture. Set the
4416 number of pseudo registers.
4417
64366f1c
EZ
44182002-08-20 Elena Zannoni <[email protected]>
4419
4420 * rs6000-tdep.c: Clean up comments.
4421
7e78f0ca
AC
44222002-08-20 Andrew Cagney <[email protected]>
4423
4424 * h8300-tdep.c: Re-indent file.
4425
697f7479
JB
44262002-08-20 Jim Blandy <[email protected]>
4427
4428 * Makefile.in (LDFLAGS): Allow the configure script to establish a
4429 default for this.
697f7479 4430
e86ae29f
KS
44312002-08-20 Keith Seitz <[email protected]>
4432
4433 * breakpoints.c (watch_command_1): Use internal breakpoint
4434 when setting a watchpoint_scope breakpoint.
4435
216b504f
EZ
44362002-08-20 Elena Zannoni <[email protected]>
4437
4438 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
4439 (build_builtin_type_vec64i): Ditto.
4440 (build_builtin_type_vec128): Ditto.
4441 (build_builtin_type_vec128i): Ditto.
4442
f7ab6ec6
MS
44432002-08-19 Michael Snyder <[email protected]>
4444
4445 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
4446 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
4447 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
4448 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
4449 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
4450 CALL_DUMMY_ADDRESS): Delete.
4451 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
4452 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
4453 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
4454 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
4455 push_return_address.
4456 (mips_register_raw_size, mips_eabi_use_struct_convention,
4457 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
4458 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
4459 mips_init_extra_frame_info, mips_eabi_push_arguments,
4460 mips_n32n64_push_arguments, mips_push_return_address,
4461 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
4462 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
4463
b5d1566e
MS
44642002-08-19 Michael Snyder <[email protected]>
4465
4466 * mips-tdep.c (mips_frame_num_args): New function.
4467 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
4468 frame_saved_pc, frame_args_address, frame_locals_address,
4469 frame_num_args, and frame_args_skip.
4470 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
4471 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
4472 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
4473 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
4474
2f1488ce
MS
44752002-08-20 Michael Snyder <[email protected]>
4476
4477 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
4478 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
4479 * mips-tdep.c (mips_store_struct_return): New function.
4480 (mips_extract_struct_value_address): New function.
4481 (mips_gdbarch_init): Set store_struct_return and
4482 extract_struct_value_address.
4483
41ff2da1
DC
44842002-08-20 David Carlton <[email protected]>
4485
4486 * dwarf2read.c (dwarf2_build_psymtabs): Check that
4487 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
4488 (read_file_scope): Check that line_header is nonzero before
4489 decoding macro information.
4490
e5451d58
MK
44912002-08-20 Mark Kettenis <[email protected]>
4492
4493 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
4494 flag the general-purpose registers as floating-point on targets
4495 that don't support the floating-point registers.
4496
4a6daafa
EZ
44972002-08-20 Elena Zannoni <[email protected]>
4498
4499 * rs6000-tdep.c (altivec_register_p): Delete.
4500 (rs6000_do_altivec_registers): Delete.
4501 (rs6000_altivec_registers_info): Delete.
4502 (rs6000_do_registers_info): Delete.
4503 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
4504 (rs6000_gdbarch_init): Remove setting of do_registers_info.
4505
ab4327e0
EZ
45062002-08-20 Elena Zannoni <[email protected]>
4507
4508 * infcmd.c (do_registers_info): Print vector registers in hex
4509 format only.
4510 (print_vector_info): Check that printing registers
4511 makes sense.
4512 (print_float_info): Ditto.
4513
cb1d2653
AC
45142002-08-20 Andrew Cagney <[email protected]>
4515
4516 * mips-tdep.c (mips_gdbarch_init): Update.
4517 (mips_o32_extract_return_value): Rewrite.
4518 (mips_o32_store_return_value): Rewrite.
4519 (mips_o32_xfer_return_value): New function.
4520 (mips_xfer_register): Tweak debug print message. Allow for
4521 buf_offset when dumping the value transfered.
4522
dfc3d9b2
AC
45232002-08-20 Andrew Cagney <[email protected]>
4524
4525 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
4526 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
4527 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
4528 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
4529 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
4530
7807aa61
MS
45312002-08-14 Michael Snyder <[email protected]>
4532
4533 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
4534
489461e2
EZ
45352002-08-19 Elena Zannoni <[email protected]>
4536
4537 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
4538 register.
4539 (P): New macro to define a register as a pseudo register.
4540 (R, R4, R8, R16, FR32, R64, R0): Updated.
4541 (struct variant): Add new fields for number of pseudo registers
4542 and number of total registers.
4543 (tot_num_registers): New macro replacing....
4544 (num_registers): ...deleted macro.
4545 (num_registers): New function.
4546 (num_pseudo_registers): New function.
4547 (variants): Update all variants to intialize new fields correctly.
4548 Postpone initialization of number of pseudo regs and real regs.
4549 (init_variants): New function.
4550 (rs6000_gdbarch_init): Initialize variants. Update calculation of
4551 registers offsets.
4552
fcaffe4c
DC
45532002-08-19 David Carlton <[email protected]>
4554
2c2738a0
DC
4555 * valops.c (search_struct_field): Change error message to treat
4556 return value of 0 from value_static_field as meaning that field is
4557 optimized out.
4558 (value_struct_elt_for_reference): Ditto.
4559 * values.c (value_static_field): Treat an unresolved location the
4560 same as a nonexistent symbol. Fix PR gdb/635.
2a73a662
DC
4561 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
4562 enclosed. Fix PR gdb/574.
fcaffe4c
DC
4563 * MAINTAINERS: Add self to Write After Approval list.
4564
88658117
AC
45652002-08-19 Andrew Cagney <[email protected]>
4566
4567 * mips-tdep.c (mips_xfer_register): New function.
4568 (mips_n32n64_extract_return_value): Rewrite.
4569 (mips_gdbarch_init): For N32 and N64, set extract_return_value
4570 instead of deprecated_extract_return_value.
4571
21283beb
EZ
45722002-08-19 Elena Zannoni <[email protected]>
4573
4574 * rs6000-tdep.c (TDEP): Delete macro.
4575 (branch_dest): Replace use of TDEP macro with its body.
4576 (rs6000_pop_frame): Ditto.
4577 (rs6000_push_arguments): Ditto.
4578 (rs6000_skip_trampoline_code): Ditto.
4579 (rs6000_frame_saved_pc): Ditto.
4580 (rs6000_frame_chain): Ditto.
4581 (rs6000_register_name): Ditto.
4582 (rs6000_register_byte): Ditto.
4583 (rs6000_register_raw_size): Ditto.
4584 (rs6000_register_virtual_type): Ditto.
4585 (rs6000_register_convertible): Ditto.
4586 (rs6000_convert_from_func_ptr_addr): Ditto.
4587
bf072999
DJ
45882002-08-19 Daniel Jacobowitz <[email protected]>
4589
4590 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
4591 conditionally.
4592 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
4593 MIPS_LINUX_JB_ELEMENT_SIZE.
4594 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
4595 for MAX_REGISTER_RAW_SIZE arrays.
4596 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
4597 MIPS_LINUX_JB_ELEMENT_SIZE.
4598
9b949a49
PM
45992002-08-19 Pierre Muller <[email protected]>
4600
4601 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
4602
6d3e79c6
AS
46032002-08-19 Aidan Skinner <[email protected]>
4604
4605 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
4606 ada-valprint.c ada-tasks.c.
4607 (YYFILES): Add ada-exp.y.
4608 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
4609 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
4610 (ada-exp.tab.o): New target.
4611
06c0b04e
AC
46122002-08-18 Andrew Cagney <[email protected]>
4613
4614 * regcache.c (regcache_xfer_part): New function.
4615 (regcache_raw_read_part): New function.
4616 (regcache_raw_write_part): New function.
4617 (regcache_cooked_read_part): New function.
4618 (regcache_cooked_write_part): New function.
4619 * regcache.h (regcache_raw_read_part): Declare.
4620 (regcache_raw_write_part): Declare.
4621 (regcache_cooked_read_part): Declare.
4622 (regcache_cooked_write_part): Declare.
4623
92d1e331
DJ
46242002-08-18 Daniel Jacobowitz <[email protected]>
4625
4626 * remote.c (remote_open_1): Add async_p.
4627 (remote_async_open_1): Delete.
4628 (open_remote_target): Delete.
4629 (remote_open, extended_remote_open): Update calls to remote_open_1.
4630 (remote_async_open, extended_remote_async_open): Call
4631 remote_open_1 instead of remote_async_open_1.
4632
247055de
MK
46332002-08-19 Mark Kettenis <[email protected]>
4634
4635 * blockframe.c: Fix a few coding standard violations.
4636
641eda39
MK
46372002-08-19 Mark Kettenis <[email protected]>
4638
0b717710
MK
4639 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
4640 here from ...
4641 * config/i386/tm-i386sco5.h: ... here. File removed.
4642 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
4643
26d28e12 4644 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
641eda39
MK
4645 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
4646 (TM_FILE): Set to tm-i386.h.
4647 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
4648 * config/i386/tm-i386v.h: Remove file.
4649 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
4650 instead of "i386/tm-i386v.h".
4651 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4652 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
4653 "i386/tm-i386v.h".
4654 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
4655 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
4656 "i386/tm-i386.h".
4657
d4e0bab4
MK
46582002-08-18 Mark Kettenis <[email protected]>
4659
4660 * config/i386/nm-i386v.h: Add protection against
4661 multiple-inclusion.
4662 (i386_register_u_addr): Remove prototype.
4663 (register_u_addr): New prototype.
4664 (REGISTER_U_ADDR): Redefine accordingly.
4665 * i386v-nat.c: Improve several comments.
4666 (i386_register_u_addr): Change signature and rename to
4667 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
4668 ubase variable.
4669
46cac009
AC
46702002-08-18 Andrew Cagney <[email protected]>
4671
4672 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
4673 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
4674 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
4675 deprecated_extract_return_value.
4676 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
4677 rename mips_o32o64_push_arguments.
4678 (mips_gdbarch_init): Update.
4679 (mips_extract_return_value): Delete.
4680 (mips_o32_extract_return_value): Clone mips_extract_return_value.
4681 (mips_o64_extract_return_value): Clone mips_extract_return_value.
4682 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
4683 (mips_n32n64_extract_return_value): Clone
4684 mips_extract_return_value.
4685 (mips_store_return_value): Delete.
4686 (mips_o32_store_return_value): Clone mips_store_return_value.
4687 (mips_o64_store_return_value): Clone mips_store_return_value.
4688 (mips_eabi_store_return_value): Clone mips_store_return_value.
4689 (mips_n32n64_store_return_value): Clone mips_store_return_value.
4690
d2e4a39e
AS
46912002-08-18 Aidan Skinner <[email protected]>
4692
0c30c098
AS
4693 * ada-lang.c: Use gdb_string.h instead of <string.h>.
4694 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
4695
46962002-08-18 Aidan Skinner <[email protected]>
4697
4698 * ada-lang.c: Run through gdb_indent.sh.
4699 * ada-lang.h: Run through gdb_indent.sh.
4700 * ada-tasks.c: Run through gdb_indent.sh.
4701 * ada-typeprint.c: Run through gdb_indent.sh.
4702 * ada-valprint.c: Run through gdb_indent.sh.
d2e4a39e 4703
01fc4e33
AC
47042002-08-18 Andrew Cagney <[email protected]>
4705
4706 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
4707 ABI.
4708
d8ee244c
MK
47092002-08-18 Mark Kettenis <[email protected]>
4710
c38d8261
MK
4711 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
4712
222db64c
MK
4713 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
4714 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
4715
c2848c82
MK
4716 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
4717 write_register_gen instead of write_register_bytes.
4718
d8ee244c
MK
4719 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
4720 i[3456]-*-osf1mk* configurations have been made obsolete.
4721 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
4722 i[3456]86-*-osf1mk* hosts obsolete.
4723 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
4724 targets obsolete.
4725 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
4726 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
4727 config/i386/i386m3.mt, config/i386/nm-m3.h,
4728 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
4729 config/i386/i386mk.mh, config/i386/i386mk.mt,
4730 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
4731 obsolete.
4732 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
4733 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
4734 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
4735
61d8d407
AC
47362002-08-18 Andrew Cagney <[email protected]>
4737
4738 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
4739 (hppa_value_returned_from_stack): Declare.
4740 (hppa_extract_return_value): Declare.
4741 * config/pa/hppa.mt: New file.
4742 * configure.tgt: Recognize hppa*-*-*.
4743 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
4744
0c52bd59
MK
47452002-08-18 Mark Kettenis <[email protected]>
4746
4747 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
4748 comment.
4749
b5686e99
MK
47502002-08-17 Mark Kettenis <[email protected]>
4751
4752 * top.c (gdb_rl_operate_and_get_next): Make sure
4753 operate-and-get-next functions correctly even when the history
4754 list is completely filled.
4755
c1bab85b
AC
47562002-08-18 Andrew Cagney <[email protected]>
4757
4758 * MAINTAINERS (Target Instruction Set Architectures): Rename
4759 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
4760 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
4761 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
4762 already listed under Host/Native.
4763
4764 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
4765 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
4766 mips*-*-*.
4767
32089c7c
AC
47682002-08-17 Andrew Cagney <[email protected]>
4769
4770 * config/ia64/ia64.mt: New file.
4771 * config/alpha/alpha.mt: New file.
4772 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
4773 ia64-linux-gnu. Mention that ia64-elf is broken.
4774 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
4775
b4671f85
MK
47762002-08-17 Mark Kettenis <[email protected]>
4777
4778 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
4779 generic_func_frame_valid instead of func_frame_valid.
4780
c8edd8b4
JB
47812002-08-16 Joel Brobecker <[email protected]>
4782
4783 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
4784 procfs appears to be broken when debugging on multi-processor
4785 machines. So enable software single stepping in order to avoid
4786 using the procfs interface to do next/step operations, using
4787 internal breakpoints instead.
4788
4789 * infrun.c (handle_inferior_event): Readjust the stop_pc by
4790 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
4791 make this pc address equal to the value it would have if the
4792 system stepping capability was used. Also set a new flag used
4793 to ensure that we don't readjust the PC one more time later.
4794
4795 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
4796 address by DECR_PC_AFTER_BREAK when software single step is
4797 in use for this architecture, as this has already been taken
4798 care of in handle_inferior_event().
4799
238617f6
JB
48002002-08-16 Joel Brobecker <[email protected]>
4801
4802 * infrun.c (handle_inferior_event): Minor reformatting, to make
4803 a rather long condition expression easier to read.
4804
541a7aac
AC
48052002-08-16 Andrew Cagney <[email protected]>
4806
4807 * Makefile.in (gdbtk.o): Move to end of file.
4808 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
4809 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
4810 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
4811 (gdbtk-wrapper.o, gdbres.o): Ditto.
4812
f92d4a7b
AC
48132002-08-16 Andrew Cagney <[email protected]>
4814
4815 * Makefile.in (copying.o): Separate out compile rule.
4816 (hpux-thread.o, procfs.o, signals.o): Ditto.
4817 (v850ice.o, z8k-tdep.o): Ditto.
4818 (tui-file.o): Move to TUI section.
4819 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
4820 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
4821
1cce71eb
JB
48222002-08-16 Joel Brobecker <[email protected]>
4823
4824 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
4825 skip_trampoline_code, for better namespace-proofing.
4826
4827 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
4828
0851f23d
JB
48292002-08-16 Joel Brobecker <[email protected]>
4830
4831 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
4832
f8d40ec8
JB
48332002-08-16 Joel Brobecker <[email protected]>
4834
4835 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
4836 signal, check whether we hit a breakpoint before checking for a
4837 single step breakpoint. Otherwise, GDB fails to notice that a
4838 breakpoint has been hit when stepping onto a breakpoint.
4839
63d022e0
KS
48402002-08-16 Keith Seitz <[email protected]>
4841
4842 * gdb-events.sh (clear_gdb_event_hooks): New function.
4843 * gdb-events.c: Regenerate.
4844 * gdb-events.h: Regenerate.
4845
6e31adb3
AC
48462002-08-16 Andrew Cagney <[email protected]>
4847
4848 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
4849 not_a_sw_breakpoint.
4850 * breakpoint.h (bpstat_stop_status): Add parameter names.
4851
c8189ed1
GS
48522002-08-16 Grace Sainsbury <[email protected]>
4853
4854 * remote.c (remote_insert_hw_breakpoint)
4855 (remote_remove_hw_breakpoint): Fix calculation of length field
4856 for Z-packet.
4857
d05285fa
MS
48582002-08-15 Michael Snyder <[email protected]>
4859
466d7106
MS
4860 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
4861 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
4862 (supply_fpregset): Ditto.
4863
d05285fa
MS
4864 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
4865 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
4866 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
bcb0cc15 4867 (TARGET_READ_SP): Delete.
bf1f5b4c 4868 (DO_REGISTERS_INFO): Delete.
102182a9
MS
4869 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
4870 Delete.
4871 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
4872 from macros to functions.
bf1f5b4c 4873
d05285fa
MS
4874 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
4875 (mips_register_convertible, mips_register_convert_to_virtual,
4876 mips_register_convert_to_raw): Make static.
bcb0cc15
MS
4877 (mips_read_sp): New function.
4878 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
bf1f5b4c
MS
4879 (mips_do_registers_info): Make static.
4880 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
102182a9
MS
4881 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
4882 (mips_register_convert_from_type, mips_register_convert_to_type):
4883 New functions.
4884 (mips_gdbarch_init): Set up function_start_offset,
4885 register_virtual_size, pc_in_sigtramp.
d05285fa 4886
e76f1f2e
AC
48872002-08-15 Andrew Cagney <[email protected]>
4888
4889 * infcmd.c (vector_info): New function.
4890 (_initialize_infcmd): Add command "info vector".
4891 (print_vector_info): New function.
4892
4893 * gdbarch.sh (PRINT_VECTOR_INFO): New method
4894 * gdbarch.h, gdbarch.c: Regenerate.
4895
4782dc19
AC
48962002-08-15 Andrew Cagney <[email protected]>
4897
4898 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
4899 ``print_all''. Only print vector registers when ``print_all''.
4900
23e3a7ac
AC
49012002-08-15 Andrew Cagney <[email protected]>
4902
8e186fd6
AC
4903 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
4904 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
4905
23e3a7ac
AC
4906 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
4907 Add `args' parameter.
4908 * gdbarch.h, gdbarch.c: Regenerate.
4909
4910 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
4911
4912 * infcmd.c (float_info): Call print_float_info.
4913 (print_float_info): New function. By default, print the
4914 floating-point registers.
4915
4916 * arch-utils.h (default_print_float_info): Delete declaration.
4917 * arch-utils.c (default_print_float_info): Delete function.
4918
e0ca2bb9
MK
49192002-08-16 Mark Kettenis <[email protected]>
4920
3f733acc
MK
4921 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
4922 out define.
4923
7d8d2918
MK
4924 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
4925 FRAME.
4926
1c7cc583
MK
4927 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
4928 * configure.host: Make i[3456]86-*-aix host obsolete.
4929 * configure.tgt: Make i[3456]86-*-aix target obsolete.
4930 * config/i386/i386aix.mh, config/i386/i386aix.mt,
4931 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
4932 config/i386/xm-i386aix.h: Make files obsolete.
4933 * i386aix-nat.c: Make file obsolete.
4934 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
4935 (i386aix-nat.o): Make target obsolete.
4936
e0ca2bb9
MK
4937 * config/i386/nm-gnu.h: Removed.
4938 * config/i386/nm-i386gnu.h: New file.
4939 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
4940 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
4941 Moved here from ...
4942 * config/i386/tm-i386gnu.h: ... here. Removed.
4943 * config/i386/xm-i386gnu.h: Removed.
4944 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
4945 (NAT_FILE): Set to nm-i386gnu.h.
4946 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
4947 * i386-tdep.c: New file.
4948 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
4949 (i386gnu-tdep.o): Specify dependencies.
4950
16057ec7 49512002-08-15 Mark Kettenis <[email protected]>
61113f8b 4952
6b99ee2e
MK
4953 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
4954 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
4955 Adjust a few comments to reflect reality a bit closer.
4956 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
4957 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
4958 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
4959 target_insert_watchpoint, target_remove_watchpoint):
4960 Move defines to ...
4961 * config/i386/nm-i386sco5.h: ... here.
4962 (kernel_u_size): Add prototype. Improve a few comments and add
4963 protection against multiple inclusion.
4964
d9a6f65c
MK
4965 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
4966 out define.
4967
047eff6a
MK
4968 * uw-thread.c (SP_ARG0): Define if not already defined.
4969 * config/i386/tm-i386.h (SO_ARG0): Remove define.
4970
dcdb1290
MK
4971 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
4972
5d2d0b2a
MK
4973 * config/i386/tm-i386.h: Don't include "regcache.h".
4974
61113f8b
MK
4975 * i387-tdep.h (i387_print_float_info): New prototype.
4976 * i387-tdep.c (print_i387_value, print_i387_ext,
4977 print_i387_status_word, print_i387_control_word): Add `struct
4978 ui_file *' argument and use it for output.
4979 (i387_print_float_info): Renamed from i387_float_info. Add
4980 `struct gdbarch *' and `struct ui_file *' arguments and use the
4981 latter for output.
4982 * i386-tdep.c: Include "i387-tdep.h".
4983 (i386_gdbarch_init): Set print_float_info.
4984 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
4985 (FLOAT_INFO): Remove define.
4986
46e0f506
MS
49872002-08-13 Michael Snyder <[email protected]>
4988
4989 * mips-tdep.c (mips_push_arguments): Rename to
4990 mips_eabi_push_arguments, and tune for EABI.
4991 (MIPS_REGS_HAVE_HOME_P): Delete.
4992 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
4993 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
4994 Delete references to mips_regs_have_home_p.
4995
409268de
KS
49962002-08-14 Keith Seitz <[email protected]>
4997
4998 * Makefile.in (install-gdbtk): Create insight plugin directory.
4999 Install plugins.tcl file.
5000
ffc6a242
KS
50012002-08-14 Keith Seitz <[email protected]>
5002
5003 * configure.in: Move SUBDIRS to near top of the file so that
5004 --enable options may add things to it.
5005 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5006 * configure: Regenerate.
5007
ebafbe83
MS
50082002-08-13 Michael Snyder <[email protected]>
5009
5010 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5011 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5012 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5013
32f6f25d
AC
50142002-08-13 Andrew Cagney <[email protected]>
5015
5016 * vax-tdep.c (vax_get_saved_register): Delete function.
5017 (vax_gdbarch_init): Update.
5018 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5019 (ns32k_gdbarch_init): Update.
5020 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5021 (alpha_gdbarch_init): Update.
5022
53826de9
AC
50232002-08-13 Andrew Cagney <[email protected]>
5024
5025 * regcache.c (init_regcache_descr): Overallocate the
5026 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5027 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5028 nr_raw_registers.
5029 (set_register_cached): Add range checking assertions. Use
5030 current_regcache.
5031
16057ec7 50322002-08-13 Mark Kettenis <[email protected]>
7d12f766
MK
5033
5034 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5035 numbers for MMX registers.
5036
7b4c2dce
AC
50372002-08-13 Andrew Cagney <[email protected]>
5038
5039 * i386-tdep.c (i386_gdbarch_init): Use
5040 generic_unwind_get_saved_register.
5041
1e03ad20
KB
50422002-08-13 Kevin Buettner <[email protected]>
5043
5044 * procfs.c (procfs_can_use_hw_breakpoint): New function.
5045 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
5046 target vector.
5047 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
5048 Delete. Add comment regarding this now-deleted target method.
5049
548bcbec
SC
50502002-08-13 Stephane Carrez <[email protected]>
5051
5052 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
5053 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
5054 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
5055 real PC and the page number (if it's within the memory bank window).
5056 (m68hc11_pseudo_register_write): Likewise when saving.
5057 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
5058 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
5059 (m68hc11_register_raw_size): And use 32-bit for it.
5060 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
5061 16K memory bank is used by the prog; also use the virtual pc.
5062
7df11f59
SC
50632002-08-13 Stephane Carrez <[email protected]>
5064
5065 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
5066 (m68hc11_gdbarch_init): Install it in gdbarch.
5067 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
5068 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
5069 (MSYMBOL_SIZE): New for documentation.
5070 (insn_return_kind): Enum to specify how a function returns.
5071 (frame_extra_info): Cleanup and record the return mode.
5072 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
5073 register in address computation.
5074 (m68hc11_get_return_insn): New to obtain the return instruction used
5075 by the function.
5076 (m68hc11_frame_init_saved_regs): Take into account the return
5077 instruction used by the function for far and interrupt functions.
5078 (m68hc11_init_extra_frame_info): Take into account page register.
5079 (m68hc11_frame_args_address): Adjust according to the return mode.
5080 (show_regs): Print page register only when it's used.
5081
5706502a
SC
50822002-08-13 Stephane Carrez <[email protected]>
5083
5084 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
5085 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
5086 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
5087 registers.
5088 (m68hc11_register_raw_size): Likewise.
5089
28fc6740
AC
50902002-08-13 Andrew Cagney <[email protected]>
5091
5092 * i386-tdep.c (i386_register_name): Handle mmx registers.
5093 (mmx_regnum_p): New function.
5094 (i386_mmx_names): New array.
5095 (mmx_num_regs): New variable.
5096 (i386_pseudo_register_read): New function.
5097 (i386_pseudo_register_write): New function.
5098 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
5099
5100 * regcache.c (regcache_raw_read_unsigned): New function.
5101 (regcache_raw_read_signed): New function.
5102 * regcache.h (regcache_raw_read_unsigned): Declare.
5103 (regcache_raw_read_signed): Declare.
5104
a378f419
AC
51052002-08-13 Andrew Cagney <[email protected]>
5106
5107 * regcache.c (regcache_raw_read_as_address): Delete function.
5108 (regcache_cooked_read_signed): New function.
5109 (regcache_cooked_read_unsigned): New function.
5110 * regcache.h (regcache_cooked_read_signed): Declare.
5111 (regcache_cooked_read_unsigned): Declare.
5112 (regcache_raw_read_as_address): Delete declaration.
5113
5114 * blockframe.c (generic_read_register_dummy): Use
5115 regcache_cooked_read_unsigned.
5116 * i386-tdep.c (i386_extract_struct_value_address): Use
5117 regcache_cooked_read_unsigned.
5118
81967506
SC
51192002-08-13 Stephane Carrez <[email protected]>
5120
5121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
5122 double sizes according to ELF ABI flags.
5123 (gdbarch_tdep): Record elf_flags.
5124
ffe1f3ee
SC
51252002-08-13 Stephane Carrez <[email protected]>
5126
5127 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
5128 (m6812_prolog): They can appear in 68HC12 function prologue.
5129 (m68hc11_frame_chain): Cleanup.
5130
98216c5d
AC
51312002-08-12 Andrew Cagney <[email protected]>
5132
5133 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
5134 declarations.
5135 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
5136 (i386_linux_register_raw_size): Delete function.
5137 (i386_linux_init_abi): Update.
5138 * i386-tdep.c (i386_register_raw_size): Delete function.
5139 (i386_register_byte): Delete function.
5140 (i386_gdbarch_init): Update.
5141 (i386_register_size): Delete array.
5142 (i386_register_offset): Delete array.
5143
5144 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
5145 (REGISTER_RAW_SIZE): Delete macro.
5146 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
5147 (REGISTER_BYTE): Delete macro.
5148
3b19021e
AS
51492002-08-11 Aidan Skinner <[email protected]>
5150
5151 * ada-lang.c (ada_lookup_partial_symbol)
5152 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
5153 prototype names so that grep ^func works properly.
5154
5155 * ada-lang.c (ada_array_element_type)
5156 (ada_lookup_partial_symbol): Fix typos in parameter list.
5157
5158 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
5159 Fix prototype names so that grep ^func works properly.
5160
b063e7a2
AC
51612002-08-10 Andrew Cagney <[email protected]>
5162 Elena Zannoni <[email protected]>
5163 Martin M. Hunt <[email protected]>
5164
5165 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
5166 (build_builtin_type_vec128i): Set the vector bit.
5167 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
5168 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
5169 (build_builtin_type_vec64): New function.
5170 (build_builtin_type_vec64i): New function.
5171 (build_gdbtypes): Initialize builtin_type_vec64 and
5172 builtin_type_vec64i.
5173
a7e3c2ad
AC
51742002-08-09 Andrew Cagney <[email protected]>
5175
5176 * regcache.c (regcache_dump): Compare the register offset
5177 with REGISTER_BYTE.
5178 * arch-utils.c (generic_register_byte): New function.
5179 * arch-utils.h (generic_register_byte): Declare.
5180 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
5181 * gdbarch.h, gdbarch.c: Regenerate.
5182
af030b9a
AC
51832002-08-09 Andrew Cagney <[email protected]>
5184
5185 * regcache.c: Include "gdbcmd.h"
5186 (_initialize_regcache): Add commands "maintenance print
5187 registers", "maintenance print raw-registers" and "maintenance
5188 print cooked-registers".
5189 (enum regcache_dump_what): Define.
5190 (dump_endian_bytes): New function.
5191 (regcache_dump): New function.
5192 (regcache_print): New function.
5193 (maintenance_print_registers): New function.
5194 (maintenance_print_raw_registers): New function.
5195 (maintenance_print_cooked_registers): New function.
5196 * Makefile.in (regcache.o): Update dependencies.
5197
cb3d25d1
MS
51982002-08-09 Michael Snyder <[email protected]>
5199
5200 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
5201 (mips_push_arguments): Correct some comments. Use paddr_nz
5202 for printing addresses in debug output. Replace static
5203 allocation using MAX_REGISTER_RAW_SIZE with alloca.
5204 (mips_n32n64_push_arguments): New function, cloned from
5205 mips_push_arguments and tuned for the n32/n64 ABI.
5206 (mips_push_register): Buffer needs dynamic allocation.
5207 (mips_print_register): Ditto.
5208 (do_gp_register_row): Ditto.
5209 (mips_store_return_value): Ditto.
5210 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
5211
2163ab9d
DH
52122002-08-09 Don Howard <[email protected]>
5213
5214 * memattr.c (mem_info_command): Print special case of upper bound
5215 as max CORE_ADDR + 1.
5216
b78bcb18
MS
52172002-08-08 Michael Snyder <[email protected]>
5218
5219 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
5220 returns structs by ref if they're too big to fit in two registers.
5221
ffabd70d
KB
52222002-08-09 Kevin Buettner <[email protected]>
5223
5224 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
5225 saved regs value.
5226 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
5227 mips_find_saved_regs().
5228 (mips_pop_frame): Likewise.
5229
fbcdb4a3
KB
52302002-08-09 Kevin Buettner <[email protected]>
5231
5232 * blockframe.c (frame_saved_regs_register_unwind): Revise
5233 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
5234 frames are in use.
5235
3c3bea1c
GS
52362002-08-09 Grace Sainsbury <[email protected]>
5237
5238 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
5239 T-packets; the 'a' is not taken as a register number.
5240 (remote_check_watch_resources, remote_stopped_by_watchpoint)
5241 (remote_stopped_data_address): New functions; add to target
5242 vector.
5243 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
5244 prototypes to match other implementations of this
5245 function. replace integer argument with pointer -- the length
5246 field in the Z-packet is the length of what is pointed to or 1 if
5247 pointer is null. Add to target vector.
5248 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
5249 target vector.
5250
5251 From Mark Salter:
5252 * remote.c (remote_wait): Add support to extract optional
5253 watchpoint information from T-packet. Ignore unrecognized
5254 optional info in T-packet.
5255 (remote_async_wait): Ditto.
5256
5d1d95de
CV
52572002-08-09 Corinna Vinschen <[email protected]>
5258
5259 * cli/cli-dump.c: Change fopen modes to use binary open modes
5260 as defined in include/fopen-bin.h throughout.
5261
c86b5b38
MS
52622002-08-08 Michael Snyder <[email protected]>
5263
5264 * mips-tdep.c: Minor whitespace and indentation clean-ups.
5265
b30590dc
KB
52662002-08-08 Kevin Buettner <[email protected]>
5267
5268 * doublest.c (store_floating): Avoid floatformat_from_doublest()
5269 assertion failure by returning early after a warning.
5270
498868ed
KB
52712002-08-08 Kevin Buettner <[email protected]>
5272
5273 * mips-tdep.c (mips_find_saved_regs): Make static.
5274 (mips_frame_init_saved_regs): New function.
5275 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
5276 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
5277 (mips_find_saved_regs): Delete declaration.
5278
b2dd6311
GS
52792002-08-08 Grace Sainsbury <[email protected]>
5280
3c3bea1c
GS
5281 * remote.c (remote_wait, remote_async_wait): Change
5282 thread_num from int to ULONGEST.
5283 (unpack_varlen_hex): Change result parameter from
5284 int * to ULONGEST *.
b2dd6311 5285
ea47855f
AC
52862002-08-08 Andrew Cagney <[email protected]>
5287
5288 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
5289 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
5290 powerpc*-*-*.
5291 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
5292
69db8bae
AC
52932002-08-08 Andrew Cagney <[email protected]>
5294
5295 * gcore.c (override_derive_stack_segment): Delete variable.
5296 (preempt_derive_stack_segment): Delete function.
5297 (derive_stack_segment): Delete function.
5298 (default_derive_stack_segment): Renamed to derive_stack_segment.
5299 (override_derive_heap_segment): Delete variable.
5300 (preempt_derive_heap_segment): Delete function.
5301 (derive_heap_segment): Delete function.
5302 (default_derive_heap_segment): Rename to derive_heap_segment.
5303
cb811fe7
MS
53042002-08-06 Michael Snyder <[email protected]>
5305
5306 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
5307 * mips-tdep.c (mips_EABI_use_struct_convention,
5308 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
5309 New functions. (mips_use_struct_convention): Delete.
5310 (mips_gdbarch_init): set use_gdbarch_convention.
5311
8b389c40
MS
53122002-08-06 Michael Snyder <[email protected]>
5313
5314 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
5315 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
5316 mips_o32_reg_struct_has_addr): New functions.
5317 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
5318
5c27f28a
AC
53192002-08-07 Andrew Cagney <[email protected]>
5320
5321 * regcache.c (pseudo_register): Delete function.
5322 (fetch_register): Delete function.
5323 (store_register): Delete function.
5324 (regcache_raw_read, legacy_read_register_gen): Use
5325 target_fetch_registers instead of fetch_register.
5326 (legacy_write_register_gen, regcache_raw_write): Use
5327 target_store_register instead of store_register.
5328 (write_register_bytes): Ditto.
5329
5330 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
5331 (STORE_PSEUDO_REGISTER): Delete.
5332 * gdbarch.h, gdbarch.c: Regenerate.
5333
5b331675
CV
53342002-08-06 Corinna Vinschen <[email protected]>
5335
5336 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
5337 write dump file binary.
5338
6acdf5c7
MS
53392002-08-05 Michael Snyder <[email protected]>
5340
5341 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
5342 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
5343 (mips_gdbarch_init): Set N32 target to be mips64.
5344
b2f01c35
KB
53452002-08-06 Kevin Buettner <[email protected]>
5346
5347 * frame.c (find_saved_register): Break out of loop once saved
5348 register address is found. Don't mention sparc in loop comment
5349 anymore.
5350
63db5580
KB
53512002-08-06 Kevin Buettner <[email protected]>
5352
5353 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
5354 mips_default_saved_regsize to 8.
5355
5e34e75e
AC
53562002-08-06 Andrew Cagney <[email protected]>
5357
5358 * gcore.c: Do not include <sys/procfs.h>.
5359 * Makefile.in (gcore.o): Update dependencies.
5360
eb4c54a2
AC
53612002-08-06 Andrew Cagney <[email protected]>
5362
5363 * configure.tgt: Make arc-*-* obsolete.
5364 * NEWS: Mention that arc-*-* has been identifed as obsolete.
5365 * MAINTAINERS: Make arc-elf obsolete.
5366 * arc-tdep.c: Make file obsolete.
5367 * config/arc/arc.mt: Ditto.
5368 * config/arc/tm-arc.h: Ditto.
5369
ced15480
TR
53702002-08-05 Theodore A. Roth <[email protected]>
5371
c1bab85b 5372 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
ced15480 5373
b4743822
AC
53742002-08-05 Andrew Cagney <[email protected]>
5375
5376 * mcore-tdep.c (mcore_gdbarch_init): Use
5377 generic_unwind_get_saved_register instead of
5378 generic_get_saved_register.
5379 * v850-tdep.c (v850_gdbarch_init): Ditto.
5380 * frv-tdep.c (frv_gdbarch_init): Ditto.
5381 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5382 * s390-tdep.c (s390_gdbarch_init): Ditto.
5383 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5384 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
5385 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
5386
3956d554
JB
53872002-08-05 Joel Brobecker <[email protected]>
5388
5389 * objfiles.h: Add missing #include "symfile.h"
5390
5391 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
5392
8249c0d6
AC
53932002-08-04 Andrew Cagney <[email protected]>
5394
5395 From 2002-08-01 david carlton <[email protected]>:
5396 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
5397 of FIELD_BITSIZE.
5398
b9d14705
DJ
53992002-08-04 Daniel Jacobowitz <[email protected]>
5400
5401 * NEWS: Cleanup and nitpick.
5402
dd73b9bb
AC
54032002-08-03 Andrew Cagney <[email protected]>
5404
5405 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
5406
043a27f8
AC
54072002-08-03 Andrew Cagney <[email protected]>
5408
5409 * Makefile.in (gdbtk-bp.o): Update dependencies.
5410 (gdbtk-register.o): Ditto.
5411 (gdbtk-varobj.o): Ditto.
5412
46ce284d
AC
54132002-08-03 Andrew Cagney <[email protected]>
5414
5415 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
5416 m68hc11_fetch_pseudo_register.
5417 (m68hc11_pseudo_register_write): Replace
5418 m68hc11_store_pseudo_register.
5419 (m68hc11_gdbarch_init): Update.
5420
b66d6d2e
AC
5421Fri Aug 2 15:53:50 2002 Andrew Cagney <[email protected]>
5422
5423 * gdbarch.sh: Include "gdb_string.h".
5424 * gdbarch.c: Regenerate.
5425
5426 * regcache.c: Include "gdb_string.h".
5427 * ax-general.c: Ditto.
5428 * varobj.c: Ditto.
5429 * std-regs.c: Ditto.
5430 * fbsd-proc.c: Ditto.
5431 * thread.c: Ditto.
5432
5433 * Makefile.in (regcache.o): Update dependencies.
5434 (thread.o, gdbarch.o): Ditto.
5435 (ax-general.o, gdbarch.o): Ditto.
5436 (varobj.o, std-regs.o): Ditto.
5437 (fbsd-proc.o): Specify dependencies.
5438
29e1842b
AC
54392002-08-02 Andrew Cagney <[email protected]>
5440
5441 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
5442 regnum.
5443 (regcache_cooked_write): Ditto.
5444
68365089
AC
54452002-08-02 Andrew Cagney <[email protected]>
5446
5447 * regcache.c (regcache_cooked_read): New function.
5448 (regcache_cooked_write): New function.
5449 (read_register_gen): Rewrite using regcache_cooked_read.
5450 (write_register_gen): Rewrite using regcache_cooked_write.
5451
5452 * regcache.h (regcache_cooked_read, regcache_cooked_write):
5453 Declare.
5454
d8124050
AC
54552002-08-02 Andrew Cagney <[email protected]>
5456
5457 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
5458 Replace the architecture methods register_read and register_write.
5459 * gdbarch.h, gdbarch.c: Regenerate.
5460 * regcache.c (init_regcache_descr): Update.
5461 (read_register_gen): Update.
5462 (write_register_gen): Update.
5463 (supply_register): Update comment.
5464
5465 * sh-tdep.c (sh_gdbarch_init): Update.
5466 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
5467 `regcache' and `gdbarch' parameters. Make `buffer' a void
5468 pointer. Update code.
5469 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
5470 `regcache' and `gdbarch' parameters. Make `buffer' a constant
5471 void pointer. Update code.
5472 (sh64_register_write): Delete.
5473 (sh4_register_read): Delete.
5474 (sh64_register_read): Delete.
5475 (sh4_register_write): Delete.
5476 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
5477 void pointer, `to' parameter a void pointer.
5478 (sh_sh64_register_convert_to_raw): Ditto.
5479
a6425924
KB
54802002-08-01 Kevin Buettner <[email protected]>
5481
5482 * mips-tdep.c (mips_register_virtual_type): Use architecture
5483 invariant return values.
5484
ff5922b5
AC
54852002-08-01 Andrew Cagney <[email protected]>
5486
5487 * linux-proc.c: Include "gdb_string.h".
5488 * Makefile.in (linux-proc.o): Update dependency list.
5489
32a6503c
KB
54902002-08-01 Kevin Buettner <[email protected]>
5491
5492 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
5493 comment.
5494
ccaa32c7
GS
54952002-08-01 Grace Sainsbury <[email protected]>
5496
5497 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5498 to_insert_watchpoint, to_remove_watchpoint,
5499 to_stopped_by_watchpoint, to_stopped_data_address,
5500 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
5501 target vecctor. Define their corresponding macros so they call
5502 them.
5503
5504 * target.c: Add default and debug versions of for
5505 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
5506 to_insert_watchpoint, to_remove_watchpoint,
5507 to_stopped_by_watchpoint, to_stopped_data_address,
5508 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
5509
78fde5f8
KB
55102002-08-01 Kevin Buettner <[email protected]>
5511
5512 * mips-tdep.c (mips_register_virtual_type): New function.
5513 (mips_gdbarch_init): Register mips_register_virtual_type()
5514 with gdbarch machinery.
5515 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
5516 this file instead of tm-bigmips.h.
5517 (MIPS_REGSIZE): Delete this macro.
5518 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
5519 multiarch version in mips-tdep.c will be found.
5520
db034ac5
AC
55212002-08-01 Andrew Cagney <[email protected]>
5522
5523 * NEWS: Menion that CHILL has been made obsolete.
5524
5525 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
db034ac5
AC
5526 * stabsread.c (read_range_type): Ditto.
5527 * gdbtypes.h: Ditto.
5528 * language.c (binop_type_check): Ditto.
5529 (binop_result_type): Ditto.
5530 (integral_type): Ditto.
5531 (character_type): Ditto.
5532 (string_type): Ditto.
5533 (boolean_type): Ditto.
5534 (structured_type): Ditto.
5535 (lang_bool_type): Ditto.
5536 (binop_type_check): Ditto.
5537 * language.h (_LANG_chill): Ditto.
5538 * dwarfread.c (set_cu_language): Ditto.
5539 * dwarfread.c (CHILL_PRODUCER): Ditto.
5540 * dwarfread.c (handle_producer): Ditto.
5541 * expression.h (enum exp_opcode): Ditto.
5542 * eval.c: Ditto for comments.
5543 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
5544 * expprint.c (print_subexp): Ditto.
5545 (print_subexp): Ditto.
5546 * valops.c (value_cast): Ditto.
5547 (search_struct_field): Ditto.
5548 * value.h (COERCE_VARYING_ARRAY): Ditto.
5549 * symfile.c (init_filename_language_table): Ditto.
5550 (add_psymbol_with_dem_name_to_list): Ditto.
5551 * valarith.c (value_binop): Ditto.
5552 (value_neg): Ditto.
5553 * valops.c (value_slice): Ditto.
5554 * symtab.h (union language_specific): Ditto.
5555 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
5556 (SYMBOL_DEMANGLED_NAME): Ditto.
5557 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
5558 * defs.h (enum language): Ditto.
5559 * symtab.c (got_symtab): Ditto.
5560 * utils.c (fprintf_symbol_filtered): Ditto.
5561
5562 * ch-typeprint.c: Make file obsolete.
5563 * ch-valprint.c: Make file obsolete.
5564 * ch-lang.h: Make file obsolete.
5565 * ch-exp.c: Make file obsolete.
5566 * ch-lang.c: Make file obsolete.
5567
5568 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
5569 CHILL_LIB.
5570 (TARGET_FLAGS_TO_PASS): Ditto.
5571 (CHILLFLAGS): Obsolete.
5572 (CHILL): Obsolete.
5573 (CHILL_FOR_TARGET): Obsolete.
5574 (CHILL_LIB): Obsolete.
5575 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
5576 ch-valprint.c.
5577 (HFILES_NO_SRCDIR): Remove ch-lang.h.
5578 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
5579 ch-lang.o.
5580 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
5581 targets.
5582
8aaf0b47
JB
55832002-07-31 Joel Brobecker <[email protected]>
5584
5585 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
5586 This does not change anything at the moment, but will be helpful
5587 later when full Ada support is integrated.
5588
f3a7b3a5
KB
55892002-07-31 Kevin Buettner <[email protected]>
5590
5591 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
5592 help message.
5593
fb850278
KB
55942002-07-31 Kevin Buettner <[email protected]>
5595
5596 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
5597 and save it in a local variable. Use variable in later test.
5598
e3bddbfa
KB
55992002-07-31 Kevin Buettner <[email protected]>
5600
5601 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
5602 test. (Thanks to Daniel Jacobowitz.)
5603
28d169de
KB
56042002-07-31 Kevin Buettner <[email protected]>
5605
5606 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
5607 (mips_abi_strings): Add "n64".
5608 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
5609
7fe7e44e
KB
56102002-07-31 Kevin Buettner <[email protected]>
5611
5612 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
5613 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
5614
c6caf090
KB
56152002-07-31 Kevin Buettner <[email protected]>
5616
5617 * utils.c (host_pointer_to_address, address_to_host_pointer):
5618 Use gdb_assert() instead of explicit call to internal_error().
5619
c41669e0
KB
56202002-07-30 Kevin Buettner <[email protected]>
5621
5622 * Makefile.in (rs6000-nat.o): Update dependencies.
5623
5624 From Nicholas Duffek:
5625 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
5626 (aix-thread.o): New rule.
5627 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
5628 * config/powerpc/aix432.mh: New file.
5629
2fda4977
DJ
56302002-07-30 Daniel Jacobowitz <[email protected]>
5631
5632 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
5633 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
5634 (fetch_core_registers, ppc_linux_supply_gregset)
5635 (ppc_linux_supply_fpregset): New functions.
5636 (ppc_linux_regset_core_fns): New.
5637 (_initialize_ppc_linux_tdep): Call add_core_fns.
5638 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
5639 and ppc_linux_supply_gregset.
5640 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
5641 (supply_fpregset): Call ppc_linux_supply_fpregset.
5642 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
5643 corelow.o.
5644 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
5645
729051e6
DJ
56462002-07-30 Daniel Jacobowitz <[email protected]>
5647
5648 * symtab.c (lookup_symbol): Demangle before lowercasing.
5649
5f8a3188
AC
56502002-07-30 Andrew Cagney <[email protected]>
5651
5652 * symtab.h: Replace #include "gdb_obstack.h" with opaque
5653 declaration.
5654 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
5655 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
5656 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
5657 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
5658 "gdb_string.h".
5659 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
5660 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
5661 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
5662 (avr-tdep.o, mon960-rom.o): Ditto.
5663 (aout_stabs_gnu_h): Define.
5664 (symtab_h): Remove $(gdb_obstack_h).
5665
67f07146
JB
56662002-07-30 Jim Blandy <[email protected]>
5667
5668 Patch from David Carlton <[email protected]>:
5669 * gdbinit.in: Move the `dir' commands that add GDB's own source
5670 directory to the search path to the end, so that the `gdb' source
5671 directory will be searched first.
5672
04ea0df1
AC
56732002-07-29 Andrew Cagney <[email protected]>
5674
5675 * gdb_obstack.h: New file.
5676 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
5677 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
5678 * objfiles.h: Include "gdb_obstack.h".
5679 * Makefile.in (gdb_obstack_h): Define.
5680 (symtab_h): Add $(gdb_obstack_h).
5681 (objfiles_h): Add $(gdb_obstack_h).
5682
5683 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
5684 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
5685 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
5686 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
5687 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
5688 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
5689 * symfile.c, coffread.c, c-typeprint.c: Ditto.
5690 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
5691
5692 * Makefile.in (bcache.o): Update dependencies.
5693 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
5694 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
5695 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
5696 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
5697 (stabsread.o, symfile.o, symmisc.o): Ditto.
5698 (symtab.o, typeprint.o, macroexp.o): Ditto.
5699 (macrotab.o, mdebugread.o): Ditto.
5700 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
5701 (coff_ecoff_h, aout_aout64_h): Define.
5702 (aout_stabs_gnu_h, libaout_h): Define.
5703
d138e37a
AC
57042002-07-29 Andrew Cagney <[email protected]>
5705
5706 * regcache.c (struct regcache_descr): Rename nr_registers to
5707 nr_cooked_registers. Revise comments describing the structure
5708 member fields.
5709 (init_regcache_descr): Update.
5710 (init_legacy_regcache_descr): Update.
5711 (read_register_gen, write_register_gen): When a cooked register in
5712 the raw register range, directly access the value from the raw
5713 register cache.
5714
460e6ec3
AC
57152002-07-29 Andrew Cagney <[email protected]>
5716
5717 * z8k-tdep.c: Do not include "obstack.h".
5718 * h8300-tdep.c, h8500-tdep.c: Ditto.
5719 * m68hc11-tdep.c, sh-tdep.c: Ditto.
5720 * valprint.c, v850-tdep.c: Ditto.
5721 * d10v-tdep.c, mn10300-tdep.c: Ditto.
5722 * mn10200-tdep.c: Ditto.
5723
5724 * Makefile.in (z8k-tdep.o): Update dependencies.
5725 (m68hc11-tdep.o, valprint.o): Ditto.
5726 (v850-tdep.o, d10v-tdep.o): Ditto.
5727 (mn10300-tdep.o, sparc-tdep.o): Ditto.
5728 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
5729 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
5730 (sh_opc_h, gdb_sim_sh_h): Define.
5731 (elf_sh_h, elf_bfd_h): Define.
5732 (opcode_m68hc11_h): Define.
5733 (OPCODES_SRC, OPCODES_DIR): define.
5734 (OPCODES): Use $(OPCODES_DIR).
5735 (gdb_sim_d10v_h): Rename sim_d10v_h.
5736 (gdb_sim_arm_h): Rename sim_arm_h.
5737
790c9cf0
KB
57382002-07-26 Kevin Buettner <[email protected]>
5739
5740 * utils.c (host_pointer_to_address, address_to_host_pointer):
5741 Change internal_error() message to indicate function responsible
5742 for the error.
5743
9647fa49
KB
57442002-07-26 Kevin Buettner <[email protected]>
5745
5746 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
5747 calls to local_hex_string_custom().
5748
dabbe2c0
KB
57492002-07-26 Kevin Buettner <[email protected]>
5750
5751 * irix5-nat.c: Move IRIX shared library support from here...
5752 * solib-irix.c: ...to here. Revised substantially to work with
5753 generic solib framework.
5754
b96d0a4e
KB
5755 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
5756 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
5757 * mips-irix-tdep.c: New file.
5758
313fb2f6
KB
5759 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
5760 (mips-irix-tdep.o, solib-irix.o): New rules.
5761 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
5762 solib-irix.o.
5763 * config/mips/irix6.mt (TDEPFILES): Likewise.
5764 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
5765
ab2eaf26
KB
57662002-07-26 Kevin Buettner <[email protected]>
5767
177e4768 5768 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
ab2eaf26
KB
5769 disabled (via ``#if 0'') includes.
5770
7244546a
KB
57712002-07-26 Kevin Buettner <[email protected]>
5772
5773 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
5774 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
5775 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
5776 Add support for the fpscr register.
5777 * rs6000-nat.c (regmap, fetch_inferior_registers)
5778 (store_inferior_registers, fetch_core_registers): Likewise.
5779
dd7be90a
KB
57802002-07-26 Kevin Buettner <[email protected]>
5781
5782 * rs6000-nat.c (language.h): Include.
5783 (special_regs): Delete this array.
5784 (regmap): New function.
5785 (fetch_register, store_register): Use regmap() to map gdb
5786 register numbers to ptrace register numbers. Also, use
5787 outputs from regmap() to make decisions regarding type of
5788 ptrace() call to make. In particular, don't compare against
5789 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5790 (fetch_inferior_registers, store_inferior_registers): Where
5791 possible, obtain register numbers from tdep struct. Don't
5792 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
5793 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
5794 (LAST_UISA_SP_REGNUM): Delete.
5795
11bf77db
KB
57962002-07-25 Kevin Buettner <[email protected]>
5797
5798 * rs6000-nat.c (ppc-tdep.h): Include.
d959a6ab
KB
5799 (fetch_registers, store_register, fetch_core_registers): Don't
5800 access registers[] directly. Instead, use supply_register() or
11bf77db
KB
5801 regcache_collect() as appropriate.
5802 (find_toc_address): Format hex address with local_hex_string().
5803
06afebeb
AC
58042002-07-25 Andrew Cagney <[email protected]>
5805
5806 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
5807 bfd/elf32-frv.c.
5808
8c554d79
TT
58092002-07-24 Tom Tromey <[email protected]>
5810
5811 * jv-exp.y: Marked all strings with _().
5812 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
5813 internal_error.
5814 (MethodInvocation, CastExpression, parse_number, yyerror,
5815 java_type_from_name, push_expression_name, yylex): Typo fixes.
5816
e4c242d9
DJ
58172002-07-24 Daniel Jacobowitz <[email protected]>
5818
5819 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
5820 (tee_file_flush, tee_file_write, tee_file_fputs)
5821 (tee_file_isatty): New.
5822 * ui-file.h (tee_file_new): Add prototype.
5823
ebf56fd3
AS
58242002-07-24 Aidan Skinner <[email protected]>
5825
5826 * ada-lang.c: Change k&r style function definitions to prototyped
5827 form.
5828 * ada-typeprint.c: Change k&r style function definitions to prototyped
5829 form.
5830 * ada-valprint.c: Change k&r style function definitions to prototyped
5831 form.
5832
7fb623f7
AC
58332002-07-24 Andrew Cagney <[email protected]>
5834
5835 * README: Remove reference to remote-bug.
5836 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
5837 remote-bug.c.
5838 (m88k-nat.o): Delete rule.
5839 (m88k-tdep.o): Delete rule.
5840 (remote-bug.o): Delete rule.
5841 * MAINTAINERS: Mark as obsolete.
5842 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
5843 * m88k-tdep.c: Make file obsolete.
5844 * config/m88k/m88k.mh: Ditto.
5845 * config/m88k/delta88v4.mh: Ditto.
5846 * config/m88k/delta88v4.mt: Ditto.
5847 * config/m88k/delta88.mt: Ditto.
5848 * config/m88k/delta88.mh: Ditto.
5849 * remote-bug.c: Ditto.
5850 * config/m88k/tm-delta88.h: Ditto.
5851 * config/m88k/nm-delta88v4.h: Ditto.
5852 * config/m88k/xm-delta88.h: Ditto.
5853 * config/m88k/xm-dgux.h: Ditto.
5854 * config/m88k/tm-m88k.h: Ditto.
5855 * config/m88k/nm-m88k.h: Ditto.
5856 * config/m88k/tm-delta88v4.h: Ditto.
5857 * m88k-nat.c: Ditto.
5858 * cxux-nat.c: Ditto.
5859 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
5860 and m88*-*-* obsolete.
5861 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
5862 m88*-*-* obsolete.
5863
37611a2b
AC
58642002-07-24 Andrew Cagney <[email protected]>
5865
5866 * findvar.c (extract_unsigned_integer): Make `addr' parameter
5867 constant. Same for local pointer variables.
5868 (extract_signed_integer): Ditto.
5869 * defs.h (extract_unsigned_integer): Update.
5870 (extract_signed_integer): Update.
5871
1aaa5f99
AC
58722002-07-24 Andrew Cagney <[email protected]>
5873
5874 * regcache.c (regcache_raw_write): Change buf parameter to a
5875 constant void pointer.
5876 (regcache_raw_read): Change buf parameter to a void pointer.
5877 (legacy_write_register_gen): Change myaddr parameter a constant
5878 void pointer.
5879 (supply_register): Change val parameter to a const void pointer.
5880 * regcache.h (regcache_raw_write): Update declaration.
5881 (regcache_raw_read): Update declaration.
5882 (supply_register): Update declaration.
5883
b4f5539f
TT
58842002-07-24 Tom Tromey <[email protected]>
5885
5886 * defs.h (gdb_readline_wrapper): Declare.
5887 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
5888 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
5889 * top.c (gdb_readline_wrapper): New function.
5890 (command_line_input): Use it.
5891
0818c12a
AC
58922002-07-24 Andrew Cagney <[email protected]>
5893
5894 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
5895 regcache_read and regcache_write.
5896 (regcache_raw_read_as_address): Replace regcache_read_as_address.
5897 * regcache.c: Update.
5898 * sh-tdep.c (sh64_push_arguments): Update comment.
5899 (sh_pseudo_register_read): Update.
5900 (sh_pseudo_register_write): Update.
5901 (sh4_register_read): Update.
5902 (sh4_register_write): Update.
5903 (sh64_pseudo_register_read): Update.
5904 (sh64_pseudo_register_write): Update.
5905 (sh64_register_read): Update.
5906 (sh64_register_write): Update.
5907 * i386-tdep.c (i386_extract_return_value): Update.
5908 (i386_extract_struct_value_address): Update.
5909 (i386_extract_return_value): Update.
5910 * blockframe.c (generic_read_register_dummy): Update.
5911 (generic_call_dummy_register_unwind): Update
5912 * infrun.c (write_inferior_status_register): Update.
5913
f7321c06
JB
59142002-07-23 Jim Blandy <[email protected]>
5915
5916 * parser-defs.h (expression_context_pc): Make this extern.
5917 (Thanks to Michael Snyder.)
5918
2037aebb
AC
59192002-07-23 Andrew Cagney <[email protected]>
5920
5921 GDB 5.2.1 released from 5.2 branch.
5922 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
5923 * README: Update to mention 5.2.1.
5924
66504d44
MS
59252002-07-23 Mark Salter <[email protected]>
5926
5927 * remote.c (remote_read_bytes): Fix check for error.
5928
27bae383
KB
59292002-07-22 Kevin Buettner <[email protected]>
5930
5931 * aix-thread.c (language.h): Include.
5932 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
5933 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
5934 Print newlines at end of debug messages.
5935 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
5936 (pdc_write_data): Use local_hex_string() instead of %llx formats.
5937
59382002-07-22 Kevin Buettner <[email protected]>
5939
5940 * aix-thread.c (ppc-tdep.h): Include.
5941 (special_register_p): New function.
5942 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
5943 (store_regs_user_thread): Use register number information from
5944 gdbarch_tdep struct instead of hardcoded offsets relative to
5945 FIRST_UISA_SP_REGNUM.
5946 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
5947 special_register_p() instead of using FPLAST_REGNUM and
5948 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
5949 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
5950 will be MQ's register number.
5951
59522002-07-22 Michael Snyder <[email protected]>
206d3d3c
KB
5953
5954 * aix-thread.c (ops): Rename to aix_thread_ops.
5955 (base_ops): Rename to base_target.
5956 (ops_attach): Rename to aix_thread_attach.
5957 (ops_detach): Rename to aix_thread_detach.
5958 (ops_resume): Rename to aix_thread_detach.
5959 (ops_wait): Rename to aix_thread_wait.
5960 (ops_kill): Rename to aix_thread_kill.
5961 (init_ops): Rename to init_aix_thread_ops.
5962 (ops_fetch_register): Rename to aix_thread_fetch_register.
5963 (ops_store_register): Rename to aix_thread_store_register.
5964 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
5965 (ops_thread_alive): Rename to aix_thread_thread_alive.
5966 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
5967 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
5968 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
5969 (fetch_regs_lib): Rename to fetch_regs_user_thread.
5970 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
5971 (store_regs_lib): Rename to store_regs_user_thread.
5972 (store_regs_kern): Rename to store_regs_kernel_thread.
5973
27bae383 59742002-07-22 Michael Snyder <[email protected]>
cbe92db4
KB
5975
5976 * aix-thread.c (ops_prepare_to_store): Eliminate.
5977 (init_ops): Don't initialize ops.prepare_to_store.
5978 (store_regs_kern): Pre-fetch register buffers from child,
5979 because some registers may not be in the cache. Copy
5980 regs from register cache only if they are cached.
5981 (store_regs_lib): Copy regs from register cache only
5982 if they are cached.
5983 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
5984 fill_gprs64): Ditto.
5985
61c5da0b
KB
59862002-07-22 Kevin Buettner <[email protected]>
5987
5988 * aix-thread.c (gdb_assert.h): Include.
5989 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
5990 register sizes (from register cache) match size of buffer holding
5991 register data.
5992 (fill_sprs32): Change parameter types to match those in the ptrace()
5993 buffer.
5994 (store_regs_lib): Likewise, but for 32-bit temporary variables.
5995 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
5996
59972002-07-22 Michael Snyder <[email protected]>
5998
5999 * aix-thread.c (supply_sprs64): Cosmetic change.
6000 (supply_sprs32): Cosmetic change.
6001 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6002 (fill_sprs64): Use regcache_collect instead of read_register.
6003 (store_regs_lib): Use regcache_collect instead of
6004 read_register. Use fill_sprs32 instead of fill_sprs64,
6005 if debugging a 32-bit architecture.
6006 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6007 out of the register cache, instead of passing a pointer into
6008 the register cache directly to ptrace. Use regcache_collect
6009 insteaad of read_register.
6010 (ops_prepare_to_store): Use target_read_registers instead
6011 of read_register_bytes.
6012
36479eb1
AS
60132002-07-20 Aidan Skinner <[email protected]>
6014
6015 * MAINTAINERS: Add self under write after approval.
6016
80ae6ee2
AS
60172002-07-20 Aidan Skinner <[email protected]>
6018
6019 * ada-tasks.c: Change k&r style function definitions to prototyped
6020 form.
6021
8a8ab2b9
AC
60222002-07-19 Andrew Cagney <[email protected]>
6023
6024 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6025 * x86-64-tdep.c: Include "objfiles.h".
6026 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6027 in_plt_section. From 2002-07-18 Michal Ludvig <[email protected]>.
6028
fb16b900
ML
60292002-07-17 Michal Ludvig <[email protected]>
6030
6031 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6032 (update_context): Initialise cfa variable.
6033
0fe7bf7b
MS
60342002-07-17 Michael Snyder <[email protected]>
6035
6036 * aix-thread.c: Shorten some long lines.
6037 Bring comments into line with code spec.
6038
488f131b
JB
60392002-07-18 Joel Brobecker <[email protected]>
6040
6041 * infrun.c: Re-indent using gdb_indent.sh.
6042
46c415d2
JB
60432002-07-18 Joel Brobecker <[email protected]>
6044
6045 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
6046 Leave the indentation temporarily untouched, to minimize the diffs.
6047
cdecafbe
EZ
60482002-07-18 Elena Zannoni <[email protected]>
6049
6050 * stabsread.c: Make os9k sections of the code obsolete,
6051 for real this time.
6052 * stabsread.h: Make os9k sections of the code obsolete.
6053
7b6aa020
ML
60542002-07-18 Michal Ludvig <[email protected]>
6055
09ec9b38
ML
6056 * linux-low.c (regsets_store_inferior_registers): Add free()
6057 at the end of a loop to prevent memory leak.
6058 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
6059 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7b6aa020
ML
6060 * config/sparc/tm-sp64linux.h: Make the rest of #endif
6061 line a comment.
4894ac5d 6062 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7b6aa020 6063
233282cd
JB
60642002-07-17 Jim Blandy <[email protected]>
6065
6066 * macrocmd.c (info_macro_command): Remove newline from error
6067 message.
6068
7b6aa020 60692002-07-17 J"orn Rennecke <[email protected]>
2f14585c
JR
6070
6071 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
6072 (sh_gdbarch_init): Use it for sh-dsp.
6073
f7ef9339
KB
60742002-07-16 Kevin Buettner <[email protected]>
6075
6076 * dwarf2read.c (read_initial_length): Handle older, non-standard,
6077 64-bit DWARF2 format.
6078
8dd72958
JB
60792002-07-16 Joel Brobecker <[email protected]>
6080
6081 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
6082 <sys/proc.h> when not available.
6083
a99a9e1b
AC
60842002-07-16 Andrew Cagney <[email protected]>
6085
6086 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
6087 * stabsread.c: Make os9k sections of the code obsolete.
6088 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
6089 * config/i386/i386os9k.mt: Make file obsolete.
6090 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
6091 (COMMON_OBS): Remove os9kread.o
6092 (SFILES): Remove os9kread.c.
6093 (os9kread.o, remote-os9k.o): Make target obsolete.
6094 * remote-os9k.c: Make file obsolete.
6095 * os9kread.c: Make file obsolete.
6096 * Makefile.in
6097
7a3085c1
AC
60982002-07-16 Andrew Cagney <[email protected]>
6099
6100 * NEWS: Mention that the FR30 has been made obsolete.
6101 * fr30-tdep.c: Make file obsolete.
6102 * config/fr30/tm-fr30.h: Ditto.
6103 * config/fr30/fr30.mt: Ditto.
6104 * configure.tgt: Make fr30-*-elf obsolete.
6105 * MAINTAINERS: Make fr30-elf obsolete.
6106
28a93f5a
PM
61072002-07-16 Pierre Muller <[email protected]>
6108
6109 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
6110 found is not inside a section.
6111
be006b8b
KB
61122002-07-15 Kevin Buettner <[email protected]>
6113
6114 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
6115 strerror().
6116 (pdc_realloc): Use xrealloc() instead of realloc().
6117
14fa3751
KB
61182002-07-15 Kevin Buettner <[email protected]>
6119
6120 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
6121 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
6122 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
6123 macros.
6124
42cc437f
KB
61252002-07-15 Kevin Buettner <[email protected]>
6126
6127 * aix-thread.c (ptrace_check): Eliminate goto.
6128 (sync_threadlists): Eliminate gotos. Also, fix array overrun
6129 problem.
6130
8e2c28d4
KB
61312002-07-15 Kevin Buettner <[email protected]>
6132
6133 * aix-thread.c (gdbcmd.h): Include.
6134 (DEBUG, DBG, DBG2, dbg): Eliminate.
6135 (debug_aix_thread): New static global.
6136 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6137 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
6138 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
6139 invocations to DBG and DBG2 macros to test against
6140 ``debug_aix_thread'' and call fprintf_unfiltered().
6141 (_initialize_aix_thread): Add new command "set debug aix-thread".
6142
30413464
AC
61432002-07-15 Andrew Cagney <[email protected]>
6144
6145 From Gerhard Tonn <[email protected]>:
6146 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
6147 instead of supply_register.
6148
7c43edc1
AC
61492002-07-15 Andrew Cagney <[email protected]>
6150
6151 * dwarf2cfi.c: Include "gdb_assert.h".
6152 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
6153 non-NULL.
6154 (update_context): Do not use __func__. Add missing ``break''.
6155 (update_context): Do not use __func__.
6156
9364a0ef
EZ
61572002-07-15 Elena Zannoni <[email protected]>
6158
6159 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
6160 and its setting. Set gdbarch instruction printing functions
6161 directly. For non-rs6000 case use new function
6162 gdb_print_insn_powerpc.
6163 (gdb_print_insn_powerpc): New function.
6164
3fbeef0b
AC
61652002-07-13 Andrew Cagney <[email protected]>
6166
92eb23c5 6167 * NEWS: Mention that the d30v has been marked obsolete.
3fbeef0b
AC
6168 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
6169 * configure.tgt: Mark d30v-*-* as obsolete.
6170 * d30v-tdep.c: Mark file as obsolete.
6171 * config/d30v/d30v.mt: Ditto.
6172 * config/d30v/tm-d30v.h: Ditto.
6173
aacb1f0a
AS
61742002-07-13 Aidan Skinner <[email protected]>
6175
6176 * ada-tasks.c (add_task_entry): replace calls to
6177 malloc() with xmalloc
6178 * ada-tasks.c (init_task_list): replace calls to free with xfree()
6179
6180 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
6181 ada_finish_decode_line_1, all_sals_for_line
6182 ada_breakpoint_rewrite): replace calls to free() with xfree()
6183
c11d79f2
KB
61842002-07-12 Kevin Buettner <[email protected]>
6185
6186 From Nicholas Duffek (with minor changes by Martin Hunt,
6187 Louis Hamilton, and Kevin Buettner):
6188 * aix-thread.c: New file.
6189
8e19ed76
PS
61902002-07-12 Petr Sorfa <[email protected]>
6191
6192 * dwarf2read.c (dwarf2_invalid_attrib_class): New
6193 complaint for invalid attribute class or form.
6194 (read_func_scope): DW_AT_frame_base
6195 better handling of DW_AT_block*.
6196 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
6197 better handling of DW_AT_block*.
6198 (read_common_block): DW_AT_location
6199 better handling of DW_AT_block*.
6200 (read_partial_die): DW_AT_location better handling
6201 of DW_AT_block*.
6202 (new_symbol): DW_AT_external better handling of
6203 DW_AT_block*. Proper initialization of variable
6204 "addr".
6205 (attr_form_is_block): New function that returns true
6206 if the attribute's form is of DW_FORM_block*.
6207
295401f7
DJ
62082002-07-12 Peter Schauer <[email protected]>
6209
6210 * valops.c (find_method_list): Remove comment about
6211 removed STATIC_MEMFUNCP argument.
6212 (value_find_oload_method_list): Likewise.
6213
e42dc924
KB
62142002-07-12 Kevin Buettner <[email protected]>
6215
6216 From Nicholas Duffek:
6217 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
6218 target_new_objfile_hook.
6219
6904b546
KB
62202002-07-12 Kevin Buettner <[email protected]>
6221
6222 From Nicholas Duffek:
6223 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
6224 csect.
6225
53fe9346
AC
62262002-07-12 Andrew Cagney <[email protected]>
6227
6228 * MAINTAINERS: Mention --enable-sim-build-warnings.
6229 (m68hc11-elf): Disable sim build warnings.
6230 (m32r-elf): Mark as broken obsolete candidate.
6231 (x86_64-linux-gnu): Mark as buildable with -Werror.
6232 (arm-elf): Change -w to ``,'' which enables warnings but not
6233 -Werror.
6234
af5f3db6
AC
62352002-07-12 Andrew Cagney <[email protected]>
6236
6237 * bcache.h: Update copyright.
6238 (struct bstring, struct bcache): Move definition to "bcache.c".
6239 Replaced by opaque declaration.
6240 (bcache_xfree): Replace free_bcache.
6241 (bcache_xmalloc, bcache_memory_used): Declare.
6242
6243 * bcache.c: Update copyright.
6244 (struct bstring, struct bcache): Moved to here from "bcache.h".
6245 Update comments.
6246 (bcache_xmalloc, bcache_memory_used): New functions.
6247 (bcache_xfree): Replace function free_bcache.
6248
6249 * Makefile.in (objfiles.o): Add $(bcache_h).
6250 (objfiles_h): Remove $(bcache_h).
6251 (symfile.o): Add $(bcache_h).
6252
6253 * symmisc.c: Update copyright.
6254 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
6255 (print_objfile_statistics): Use bcache_memory_used.
6256
6257 * symfile.c: Include "bcache.h".
6258 (reread_symbols): Use bcache_xfree.
6259 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
6260 (add_psymbol_to_list): Pass psymbol_cache by value.
6261 (add_psymbol_with_dem_name_to_list): Ditto.
6262
6263 * objfiles.h: Update copyright.
6264 (struct bcache): Declare opaque. Do not include "bcache.h".
6265 (struct objfile): Change psymbol_cache and macro_cache to ``struct
6266 bcache'' pointers.
6267 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
6268
6269 * objfiles.c: Include "bcache.h". Update copyright.
6270 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
6271 macro_cache.
6272 (free_objfile): Use bcache_xfree.
6273
444199e7
GS
62742002-07-11 Grace Sainsbury <[email protected]>
6275
6276 * monitor.c (monitor_fetch_register): Make name a constant.
6277 (monitor_store_register): Same.
6278
261397f8
DJ
62792002-07-11 Daniel Jacobowitz <[email protected]>
6280
6281 Based on patch from Daniel Berlin <[email protected]>.
6282 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
6283 (finish_block) For non-function blocks, hash the symbol table. For
6284 function blocks, mark the symbol table as unhashed.
6285 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
6286 (msymbol_hash_iw): Likewise.
6287 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
6288 value.
6289 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
6290 (lookup_minimal_symbol): Likewise for both.
6291 * symtab.h (struct block): Add `hashtable' flag. Comment the
6292 hashtable.
6293 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
6294 (ALL_BLOCK_SYMBOLS): Update.
6295 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
6296 (struct symbol): Add `hash_next' pointer.
6297 * symtab.c (lookup_block_symbol): Search using the hash table when
6298 possible.
6299 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
6300 (search_symbols, find_addr_symbol): Likewise.
6301
6302 * dstread.c (process_dst_block): Clear hashtable bit for new block.
6303 (read_dst_symtab): Likewise.
6304 * jv-lang.c (get_java_class_symtab): Likewise.
6305 * mdebugread.c: Include "gdb_assert.h".
6306 (shrink_block): Assert that the block being modified is not hashed.
6307 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
6308 * symmisc.c (free_symtab_block): Walk the hash table when freeing
6309 symbols.
6310 (dump_symtab): Recognize hashed blocks.
6311 * printcmd.c (print_frame_args): Assert that function blocks do not
6312 have hashed symbol tables.
6313 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
6314 (fill_in_ada_prototype, debug_print_block): Likewise.
6315 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
6316
6f0eaa01
CV
63172002-07-11 Corinna Vinschen <[email protected]>
6318
6319 * stack.c (print_frame): Use result of frame_address_in_block()
6320 instead of fi->pc when evaluating symbols.
6321 (backtrace_command_1): Ditto.
6322
a208b0cb
AC
63232002-07-11 Andrew Cagney <[email protected]>
6324
6325 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
6326 Make static.
6327
6328 * arm-tdep.c (arm_register_name): Make return type constant.
6329
a6b6b089
AC
63302002-07-10 Andrew Cagney <[email protected]>
6331
5ae5f592
AC
6332 * win32-nat.c (has_detach_ability): Convert to strict ISO C
6333 prototype.
6334 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
6335 * s390-tdep.c (s390_fp_regnum): Ditto.
6336 (s390_read_fp): Ditto.
6337 (s390_pop_frame): Ditto.
6338 (_initialize_s390_tdep): Ditto.
6339 * remote.c (get_remote_state): Ditto.
6340 * procfs.c (mappingflags): Ditto.
6341 * memattr.c (_initialize_mem): Ditto.
6342 * mcore-tdep.c (mcore_pop_frame): Ditto.
6343 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
6344 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
6345 * language.c (set_case_str): Ditto.
6346 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
6347 * frv-tdep.c (new_variant): Ditto.
6348 (frv_stopped_data_address): Ditto.
6349 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
6350 (context_alloc): Ditto.
6351 (frame_state_alloc): Ditto.
6352 (unwind_tmp_obstack_init): Ditto.
6353 (unwind_tmp_obstack_free): Ditto.
6354 (cfi_read_fp): Ditto.
6355 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
6356 (cris_pop_frame): Ditto.
6357 * c-lang.c (scanning_macro_expansion): Ditto.
6358 (finished_macro_expansion): Ditto.
6359 (c_preprocess_and_parse): Ditto.
6360 * gdbarch.sh: Ditto.
6361 * gdbarch.h, gdbarch.c: Regenerate.
6362 * config/mn10200/tm-mn10200.h: Adjust indentation.
6363 * target.c: Adjust indentation.
6364 * symtab.h: Adjust indentation.
6365 * stabsread.h: Adjust indentation.
6366 * remote-es.c: Adjust indentation.
6367 * os9kread.c: Adjust indentation.
6368
63692002-07-10 Andrew Cagney <[email protected]>
6370
a6b6b089
AC
6371 * wince.c (_initialize_wince): Rename _initialize_inftarg.
6372 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
6373
a1789893
GS
63742002-07-10 Grace Sainsbury <[email protected]>
6375
6376 * NEWS: Mention m68k, mcore multi-arching.
6377 * MAINTAINERS: Change status of m68k, mcore to reflect
6378 multi-arching.
6379
02f0d45d
DJ
63802002-07-10 Daniel Jacobowitz <[email protected]>
6381
6382 * valops.c (find_overload_match): Free oload_syms.
6383
f15f768e
JB
63842002-07-09 Joel Brobecker <[email protected]>
6385
6386 Define HAVE_SYS_PROC_H if sys/proc.h exists
6387 * configure.in: Add check for sys/proc.h
6388 * config.in: Regenerate.
6389 * configure: Regenerate.
6390
902a7139
GS
63912002-07-09 Grace Sainsbury <[email protected]>
6392
6393 * config/m68k/tm-m68k.h: Remove macros wrapped in
6394 #if !GDB_MULTI_ARCH.
6395
a534e424
AC
63962002-07-08 Andrew Cagney <[email protected]>
6397
6398 * config.in, configure: Regenerate.
6399
9b94f7bf
MK
64002002-07-08 Mark Kettenis <[email protected]>
6401
6402 * dwarf2cfi.c: Include "gcore.h".
6403 (execute_stack_op): Fix implementation of the
6404 DW_OP_deref and DW_OP_deref_size operators by letting do their
6405 lookup in the target.
6406
1d34db41
MK
64072002-07-07 Mark Kettenis <[email protected]>
6408
6409 From Peter Schauer <[email protected]>:
6410 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
6411 tdep->sc_sp_offset.
6412
79d5b63a
DJ
64132002-07-05 Daniel Jacobowitz <[email protected]>
6414
6415 Fix PR gdb/595, gdb/602
6416 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
6417 Don't call value_cast, just read the vtable pointer; update comments
6418 to match.
6419
3bb912e8
GS
64202002-07-05 Grace Sainsbury <[email protected]>
6421
6422 * config/mcore/tm-mcore.h: Remove file.
6423 * config/mcore/mcore.mt: Remove definition of TM_FILE
6424 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
6425
ca39387d
MK
64262002-07-05 Mark Kettenis <[email protected]>
6427
6428 * i386bsd-tdep.c: Include "gdb_string.h".
6429
efdc1108
GS
64302002-07-04 Grace Sainsbury <[email protected]>
6431
6432 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
6433 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
6434 mcore-tdep.
6435 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
6436 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
6437 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
6438 (RETVAL_REGNUM): Move macros from tm-mcore.h
6439 (mcore_reg_struct_has_addr): New function.
6440 (mcore_gdbarch_init): Added initializations for the macros removed
6441 from tm-mcore.h.
6442
bb21884d
MK
64432002-07-04 Mark Kettenis <[email protected]>
6444
6445 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
6446 traditonal string branding within the ELF header.
6447
228c6d41
DJ
64482002-07-04 Daniel Jacobowitz <[email protected]>
6449
6450 * symtab.c (remove_params): New function.
6451 (make_symbol_overload_list): Use it instead of cplus_demangle.
6452 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
6453
2404952e
MK
64542002-07-04 Mark Kettenis <[email protected]>
6455
e5e4acad
MK
6456 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
6457
baadce09
MK
6458 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
6459 New variables.
6460 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
6461 and tdep->sigtramp_end.
6462 * i386obsd-nat.c: New file.
6463 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
6464
2404952e
MK
6465 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
6466 Don't call get_current_frame().
6467
9b4f1ba7
PM
64682002-07-04 Pierre Muller <[email protected]>
6469
6470 * i386-nat.c (child_post_startup_inferior): New function
6471 calling i386_cleanup_dregs if
6472 I386_USE_GENERIC_WATCHPOINTS is defined.
6473 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
6474 conditional to acknowledge that i386-nat.c has its
6475 own child_post_startup_inferior function.
6476
c0d1d883
MK
64772002-07-04 Mark Kettenis <[email protected]>
6478
00f8375e
MK
6479 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
6480 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
6481 instead of MAX_REGISTER_RAW_SIZE.
6482 (i386_extract_return_value, i386_extract_struct_value_address):
6483 Convert to use regcache.
6484 (i386_gdbarch_init): Set max_register_raw_size and
6485 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
6486 Set extract_return_value and extract_struct_value_address instead
6487 of their deprecated variants.
6488
c0d1d883
MK
6489 Convert i386 target to generic dummy frames.
6490 * i386-tdep.c: Include "symfile.h".
6491 (i386_frameless_signal_p): Consider a function to be frameless if
6492 the pc points at the first instruction of the function.
6493 (i386_frame_chain): Handle (generic) call dummies.
6494 (i386_frame_saved_pc): Likewise.
6495 (i386_frame_init_saved_regs): Remove code dealing with call
6496 dummies on the stack.
6497 (i386_push_dummy_frame): Removed.
6498 (i386_call_dummy_words): Removed.
6499 (i386_fix_call_dummy): Removed.
6500 (i386_push_return_address): New function.
6501 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
6502 parameter, and don't call get_current_frame.
6503 (i386_pop_frame): New function.
6504 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
6505 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
6506 entry_point_address, set call_dummy_breakpoint_offset to 0, set
6507 call_dummy_length to 0, set call_dummy_words to NULL, set
6508 sizeof_call_dummy_words to 0, set fix_call_dummy to
6509 generic_fix_call_dummy, set pc_in_call_dummy to
6510 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
6511 generic_push_dummy_frame, set push_return_address to
6512 i386_push_return_address and set frame_chain_valid to
6513 generic_file_frame_chain_valid.
6514
049ee0e4
AC
65152002-07-03 Andrew Cagney <[email protected]>
6516
6517 * gdbarch.sh (struct regcache): Add opaque declaration.
6518 (EXTRACT_RETURN_VALUE): New architecture method.
6519 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
6520 * gdbarch.h, gdbarch.c: Regenerate.
6521 * arch-utils.c (legacy_extract_return_value): New function.
6522 * arch-utils.h (legacy_extract_return_value): Declare.
6523 * values.c (value_being_returned): Re-enable code handling
6524 EXTRACT_STRUCT_VALUE_ADDRESS. Move
6525 deprecated_grub_regcache_for_registers call to block handling
6526 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
6527 (EXTRACT_RETURN_VALUE): Do not define.
6528
4e0d9804
GS
65292002-07-03 Grace Sainsbury <[email protected]>
6530
6531 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
6532 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
6533 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
6534 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
6535 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
6536 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
6537 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
6538 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
6539 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
6540 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
6541 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
6542 argument so the function fits the prototype in the architecture
6543 vector.
6544 (mcore_pop_frame): Remove argument so the function fits the
6545 prototype. Use get_current_frame instead of the argument.
6546 (mcore_push_arguments): Change type of struct_return so the
6547 function can be used in the architecture vector.
6548 (mcore_store_struct_return): Add.
6549 (mcore_frame_init_saved_regs): Add.
6550 (mcore_gdbarch_init): Add function calls to replace the macros
6551 removed from tm-mcore.h
6552
36160dc4
AC
65532002-07-03 Andrew Cagney <[email protected]>
6554
6555 * infcmd.c (print_return_value): Remove compatibility code calling
6556 deprecated_grub_regcache_for_registers.
6557
6558 * values.c: Include "regcache.h".
6559 (value_being_returned): Update. Use
6560 deprecated_grub_regcache_for_registers to extract the register
6561 buffer address.
6562 * value.h (value_being_returned): Change ``retbuf'' parameter to a
6563 ``struct regcache''.
6564 * Makefile.in (values.o): Add dependency on $(regcache_h).
6565
6566 * inferior.h (run_stack_dummy): Change type of second parameter to
6567 a ``struct regcache''.
6568 * valops.c (hand_function_call): Change type of retbuf to ``struct
6569 regcache''. Allocate using regcache_xmalloc, clean using
6570 make_cleanup_regcache_xfree.
6571 * infcmd.c (run_stack_dummy): Update. Use
6572 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
6573
6574 * regcache.c (do_regcache_xfree): New function.
6575 (make_cleanup_regcache_xfree): New function.
6576 * regcache.h (make_cleanup_regcache_xfree): Declare.
6577
e64d9b3d
MH
65782002-07-03 Martin M. Hunt <[email protected]>
6579
4dd79c29
MH
6580 * event-top.c (command_line_handler): Don't read past
6581 beginning of buffer.
e64d9b3d 6582
4dd79c29
MH
65832002-07-03 Martin M. Hunt <[email protected]>
6584
e64d9b3d
MH
6585 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
6586 struct frame_id.
6587 (varobj_create): Store frame_id for root.
6588 (varobj_gen_name): Use xasprintf.
6589 (varobj_update): Save and restore frame using get_frame_id() and
6590 frame_find_by_id().
6591 (create_child): Use xasprintf.
6592 (new_root_variable): Initialize frame_id.
6593 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
6594 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
6595 to prevent memory leak.
6596
26e6c56a
AC
65972002-07-03 Andrew Cagney <[email protected]>
6598
6599 * valops.c (hand_function_call): Move declaration of retbuf to
6600 start of function, allocate using malloc, add a cleanup but before
6601 the inf_status cleanup, cleanup the buffer. Rename local variable
6602 old_chain to inf_status_cleanup.
6603
f436dd25
MH
66042002-07-03 Martin M. Hunt <[email protected]>
6605
6606 * top.c (execute_command): Use cmd_func() and cmd_func_p().
6607
6608 * cli/cli-decode.c (cmd_func_p): New function.
6609 (cmd_func): New function.
6610
6611 * command.h: Add cmd_func() and cmd_func_p().
6612
4cfe2084
GS
66132002-07-03 Grace Sainsbury <[email protected]>
6614
6615 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
6616 (REGISTER_SIZE): Remove.
6617 (MAX_REGISTER_RAW_SIZE): Remove.
6618 (REGISTER_VIRTUAL_TYPE): Remove.
6619 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
6620 (REGISTER_NAME): Remove.
6621 (USE_GENERIC_DUMMY_FRAMES): Remove.
6622 (CALL_DUMMY): Remove.
6623 (CALL_DUMMY_START_OFFSET): Remove.
6624 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
6625 (CALL_DUMMY_LOCATION): Remove.
6626 (FIX_CALL_DUMMY): Remove.
6627 (CALL_DUMMY_ADDRESS): Remove.
6628 (SIZEOF_CALL_DUMMY_WORDS): Remove.
6629 (SAVE_DUMMY_FRAME_TOS): Remove.
6630 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
6631 (mcore_register_virtual_type): New function.
6632 (mcore_register_byte): New function.
6633 (mcore_register_size): New function.
6634 (mcore_register_name): New function.
6635 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
6636 macros removed from tm-mcore.h.
6637 (mcore_dump_tdep): Add.
6638 (_initialize_mcore_tdep): Add gdbarch_register call.
6639
4fd667e9
MK
66402002-07-03 Mark Kettenis <[email protected]>
6641
6642 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
6643 frameless_look_for_prologue, such that we actually call this
6644 function.
6645
42f99ac2
JB
66462002-07-02 Joel Brobecker <[email protected]>
6647
6648 * frame.h (frame_address_in_block): New function.
6649
6650 * blockframe.c (frame_address_in_block): New function extracted
6651 from get_frame_block().
6652 (get_frame_block): Use frame_address_in_block().
6653 (block_innermost_frame): Use frame_address_in_block() to match
6654 the frame pc address against the block boundaries rather than
6655 the frame pc directly. This prevents a failure when a frame pc
6656 is actually a return-address pointing immediately after the end
6657 of the given block.
6658
103a1597 66592002-07-02 Grace Sainsbury <[email protected]>
83b4a0fe
GS
6660
6661 * MAINTAINERS: Add self under write after approval.
6662
66632002-07-02 Grace Sainsbury <[email protected]>
6664
103a1597
GS
6665 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
6666 used in architecture vector. The default is
6667 m68k_local_breakpoint_from_pc.
6668 (m68k_local_breakpoint_from_pc): Add.
6669 (enum): Add register numbers from tm-m68k.h.
6670 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
6671 vector.
6672 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
6673 GDB_MULTI_ARCH_PARTIAL.
6674 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
6675 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
6676 m68k-tdep.c.
6677 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
6678 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
6679 to enum in m68k-tdep.c
6680
7a5a0534
JB
66812002-07-02 Joel Brobecker <[email protected]>
6682
6683 * solib-osf.c (open_map): Compute the list of shared libraries
6684 loaded by the inferior, rather than the list of libraries loaded
6685 by GDB itself. Otherwise, GDB ends up reading the symbols from
6686 the wrong shared libraries...
6687
6f558d74
MK
66882002-07-02 Mark Kettenis <[email protected]>
6689
b7d15bf7
MK
6690 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
6691 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
6692 macros.
6693 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
6694 Remove functions.
6695 (FRAMELESS_SIGNAL): Remove function.
6696 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
6697 i386_linux_saved_pc_after_call): Removed.
6698 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
6699 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
6700 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
6701
6bff26de
MK
6702 * i386-tdep.c (i386_frameless_signal_p): New function.
6703 (i386_frame_chain): Deal with frameless signals.
6704 (i386_sigtramp_saved_sp): New function.
6705 (i386_frame_saved_pc): Deal with frameless signals.
6706 (i386_saved_pc_after_call): Make sure the correct value is
6707 returned just after entry into a sigtramp.
6708 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
6709 i386fbsd4_sc_sp_offset): New variables.
6710 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
6711 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
6712 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
6713 similiar to what we already did for sc_pc_offset.
6714 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
6715 tdep->sc_sp_offset.
6716
6f558d74
MK
6717 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
6718
145564b7
ML
67192002-07-02 Michal Ludvig <[email protected]>
6720
6721 * config/i386/tm-x86-64linux.h: New.
6722 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
6723 definitions.
6724 * config/i386/nm-x86-64.h: Rename to ...
6725 * config/i386/nm-x86-64linux.h: ... this one.
6726 * config/i386/x86-64linux.mh: Reflect the above change.
6727
3a1e71e3
MK
67282002-07-01 Mark Kettenis <[email protected]>
6729
21d0e8a4
MK
6730 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
6731 with sigcontext_addr. Add sc_sp_offset.
6732 (i386bsd_sigtramp_saved_pc): Remove prototype.
6733 (i386bsd_sicontext_addr): Add prototype.
6734 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
6735 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
6736 (i386_svr4_sigtramp_saved_pc): Removed.
6737 (i386_svr4_sigcontext_addr): New function.
6738 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6739 Initialize tdep->sigcontext_addr instead. Initialize
6740 tdep->sc_pc_offset and tdep->sc_sp_offset.
6741 (i386_gdbarch_init): Likewise.
6742 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
6743 any more.
6744 (i386bsd_sigtramp_saved_pc): Remove function.
6745 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
6746 Initialize tdep->sigcontext_addr instead. Initialize
6747 tdep->sc_pc_offset.
6748 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
6749 of tdep->sigtramp_saved_pc.
6750 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
6751 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
6752 instead.
6753
3a1e71e3
MK
6754 * i386-tdep.c (i386_frameless_function_invocation,
6755 i386_frame_num_args, i386_frame_init_saved_regs,
6756 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
6757 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
6758 i386_extract_return_value, i386_store_return_value,
6759 i386_extract_struct_value_address, i386_register_virtual_type,
6760 i386_register_convertible, i386_register_convert_to_virtual,
6761 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
6762 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
6763 static.
6764
52e9098c
MK
67652002-07-01 Mark Kettenis <[email protected]>
6766
77b13a25
MK
6767 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
6768
52e9098c
MK
6769 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
6770 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
6771 this macro. Include "value.h".
6772
1b372fff
AS
67732002-06-30 Aidan Skinner <[email protected]>
6774
6775 * ada-exp.tab.c: remove as it's a generated file
6776 * ada-lex.c: remove as it's a generated file
6777
9c5045b5
MK
67782002-06-30 Mark Kettenis <[email protected]>
6779
4a93c5bb
MK
6780 * config/i386/tm-i386.h (struct frame_info, struct
6781 frame_saved_regs, struct value, struct type): Remove forward
6782 declarations.
6783
322d4fe0
MK
6784 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
6785 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
6786 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
6787 (FILL_FPXREGSET): Define.
6788
fdd8263d
MK
6789 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
6790
482e577b
MK
6791 * configure.tgt (i[3456]86-*-openbsd*): Fold into
6792 i[3456]86-*-netbsd* case.
6793 * config/i386/tm-obsd.h: Removed.
6794 * config/i386/obsd.mt: Removed.
6795 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
6796 core-aout.o.
6797 (MH_CFLAGS): Add -DYYDEBUG=0.
6798
6916549a
MK
6799 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
6800 i386nbsd_sc_pc_offset on OpenBSD too.
6801
9c5045b5
MK
6802 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
6803 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
6804 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
6805 define.
6806 * i386bsd-tdep.c: Include "arch-utils.h".
6807 (i386bsd_aout_in_solib_call_trampoline): New function.
6808 (i386bsd_init_abi): Set in_solib_call_trampoline to
6809 i386bsd_aout_in_solib_call_trampoline.
6810 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
6811 in_solib_call_trampoline to generic_in_solib_call_trampoline.
6812
aa84d1bb
AC
68132002-06-28 Andrew Cagney <[email protected]>
6814
6815 * macrotab.h: Do not include "obstack.h" or "bcache.h".
6816 (struct obstack, struct bcache): Add opaque declarations.
6817 * Makefile.in (macrotab_h): Update
6818
b4d83933
AC
68192002-06-28 Andrew Cagney <[email protected]>
6820
6821 * blockframe.c (generic_find_dummy_frame): Change return type to
6822 ``struct regcache''.
6823 (struct dummy_frame): Replace field ``registers'' with regcache, a
6824 struct regcache object.
6825 (generic_find_dummy_frame): Update.
6826 (generic_push_dummy_frame): Update. Use regcache_xfree,
6827 regcache_xmalloc and regcache_cpy.
6828 (generic_pop_dummy_frame): Update. Use regcache_cpy and
6829 regcache_xfree.
6830 (deprecated_generic_find_dummy_frame): Update.
6831 (generic_read_register_dummy): Update. Use
6832 regcache_read_as_address.
6833 (generic_call_dummy_register_unwind): Update. Use regcache_read.
6834 (generic_get_saved_register): Update. Use regcache_read.
6835
08c0b5bc
AC
68362002-06-28 Andrew Cagney <[email protected]>
6837
6838 * Makefile.in (objfiles_h): Add $(bcache_h).
6839 * objfiles.h: Include "bcache.h".
6840
6841 * Makefile.in (symtab_h): Remove $(bcache_h).
6842 * symtab.h: Do not include "bcache.h".
6843
1f89801a
AC
68442002-06-28 Andrew Cagney <[email protected]>
6845
6846 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
6847 generic_func_frame_chain_valid.
6848
b9644b58
DB
68492002-06-28 David O'Brien <[email protected]>
6850
6851 * config/i386/nm-fbsd.h: Include <sys/param.h>.
6852 * config/i386/tm-fbsd.h: Likewise.
6853
dd486634
AC
68542002-06-28 Andrew Cagney <[email protected]>
6855
6856 * rs6000-tdep.c (rs6000_gdbarch_init): Use
6857 generic_unwind_get_saved_register.
6858
0b434a00
AC
68592002-06-27 Andrew Cagney <[email protected]>
6860
6861 From 2002-06-27 John David Anglin <[email protected]>:
6862 * regcache.c (supply_register): Add missing argument to
6863 register_buffer call.
6864
f30e5a77
AC
68652002-06-27 Andrew Cagney <[email protected]>
6866
6867 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
6868 Solaris /bin/grep does not not like it. From Peter Schauer.
6869
9f064c95
TT
68702002-06-26 Tom Tromey <[email protected]>
6871
6872 * command.h (add_setshow_cmd): Declare.
6873 (add_setshow_cmd_full): Declare.
6874 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
6875 returns void. Use add_setshow_cmd_full.
6876 (add_setshow_cmd_full): New function.
6877 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
6878 (add_setshow_boolean_cmd): Likewise.
6879
099c7589
JT
68802002-06-26 Jason Thorpe <[email protected]>
6881
6882 * config/vax/tm-vax.h: Protect from multiple inclusion.
6883 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
6884 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
6885 * config/vax/tm-vaxbsd.h: ...here. New file.
6886 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
6887
1d049c5e
JT
68882002-06-26 Jason Thorpe <[email protected]>
6889
6890 * config/vax/tm-vax.h (BREAKPOINT): Remove.
6891 (BELIEVE_PCC_PROMOTION): Remove.
6892 (AP_REGNUM): Move to...
6893 * config/vax/nm-vax.h: ...here.
6894 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
6895 (vax_breakpoint_from_pc): New function.
6896 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
6897 and gdbarch_believe_pcc_promotion.
6898
4791e091
JT
68992002-06-26 Jason Thorpe <[email protected]>
6900
6901 * Makefile.in (vax_tdep_h): Define.
6902 (vax-tdep.o): Use $(vax_tdep_h).
6903 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
6904 (vax_dump_tdep): New function.
6905 (_initialize_vax_tdep): Register vax_dump_tdep.
6906 * vax-tdep.h: Include osabi.h.
6907 (struct gdbarch_tdep): New.
6908
da130f98
AC
69092002-06-26 Andrew Cagney <[email protected]>
6910
6911 * frame.h (deprecated_generic_find_dummy_frame): Rename
6912 generic_find_dummy_frame.
6913 * blockframe.c (generic_find_dummy_frame): Make static.
6914 (deprecated_generic_find_dummy_frame): New function.
6915 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
6916 generic_find_dummy_frame with deprecated_find_dummy_frame.
6917 (sh64_nofp_frame_init_saved_regs): Ditto.
6918 (sh_fp_frame_init_saved_regs): Ditto.
6919 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
6920 (s390_frame_chain): Ditto.
6921 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6922
6300c360
GS
69232002-06-26 Grace Sainsbury <[email protected]>
6924
6925 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
6926 gdbarch vector are at the top.
6927 (NUM_REGS): Remove.
6928 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
6929 (FRAME_ARGS_ADDRESS): Remove.
6930 (FRAME_LOCALS_ADDRESS): Remove.
6931 (FRAME_NUM_ARGS): Remove.
6932 (FRAME_ARGS_SKIP): Remove.
6933 * m68k-tdep.c (enum): Add eumeration of special register numbers.
6934 (m68k_gdbarch_init): Add gdbarch initializations for macros
6935 undefined in tm-m68k.h
6936
1c617db8
GS
69372002-06-26 Grace Sainsbury <[email protected]>
6938
6939 * monitor.h: Add the function regname to monitor_ops
6940 structure. This way NUM_REGS does not have to be a constant.
6941 * monitor.c (monitor_fetch_register): Added support for regname
6942 function. The function is called if the array regnames is NULL.
6943 (monitor_store_register): Same.
da130f98
AC
6944 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
6945 regnames array.
1c617db8
GS
6946 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
6947 cpu32bug_cmds.regname to point to new function.
6948 * abug-rom.c (abug_regname): Same as above.
6949 (init_abug_cmds): Same.
6950 * dbug-rom.c (dbug_regname): Same as above.
6951 (init_dbug_cmds): Same.
6952 * remote-est.c (est_regname): Same.
6953 (init_est_cmds): Same.
6954 * rom68k-rom.c (rom68k_regname): Same.
6955 (init_rom68k_cmds): Same.
6956
ea9365bb
TT
69572002-06-25 Tom Tromey <[email protected]>
6958
6959 * breakpoint.c (delete_command): Don't repeat `delete' commands.
6960
72cec141
AC
69612002-06-25 Andrew Cagney <[email protected]>
6962
6963 * infrun.c (stop_registers): Change variable's type to ``struct
6964 regcache'''.
6965 (xmalloc_inferior_status): Delete function.
6966 (free_inferior_status): Delete function.
6967 (normal_stop): Use regcache_cpy.
6968 (struct inferior_status): Change type of fields ``stop_registers''
6969 and ``registers'' to ``struct regcache''.
6970 (write_inferior_status_register): Use regcache_write.
6971 (save_inferior_status): Instead of calling
6972 xmalloc_inferior_status, allocate the inf_status buffer directly.
6973 Use regcache_dup_no_passthrough and regcache_dup to save the
6974 buffers.
6975 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
6976 Replace the stop_registers regcache instead of overriding it. Use
6977 regcache_xfree. Instead of calling free_inferior_status, xfree
6978 the buffer directly.
6979 (discard_inferior_status): Use regcache_xfree. Instead of calling
6980 free_inferior_status, xfree the buffer directly.
6981 (build_infrun): Use regcache_xmalloc.
6982 (_initialize_infrun): Delete redundant call to build_infrun.
6983
6984 * Makefile.in (infcmd.o): Add $(regcache_h).
6985
6986 * infcmd.c: Include "regcache.h".
6987 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
6988 obtain the address of `stop_registers' register buffer.
6989 (print_return_value): Ditto.
6990
6991 * inferior.h (struct regcache): Add opaque declaration.
6992 (stop_registers): Change variable's declared type to ``struct
6993 regcache''.
6994
defc6f8c
TT
69952002-06-24 Tom Tromey <[email protected]>
6996
c0e624e7
TT
6997 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
6998 * target.c (initialize_targets): Fixed typo in
6999 trust-readonly-sections `show' documentation.
7000
defc6f8c
TT
7001 * main.c: Marked all strings with _().
7002
2b236d82
DH
70032002-06-24 Don Howard <[email protected]>
7004
7005 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7006 that means max CORE_ADDR+1.
7007 (lookup_mem_region): Ditto.
7008 (mem_info_command): Ditto.
7009
942dc0e9
GS
70102002-06-24 Grace Sainsbury <[email protected]>
7011
7012 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7013 (REGISTER_BYTES_OK): Remove.
7014 (REGISTER_BYTES): Remove.
7015 (STORE_STRUCT_RETURN): Remove.
7016 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7017 (STORE_RETURN_VALUE): Remove.
7018 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7019 (FRAME_CHAIN): Remove.
7020 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7021 (FRAME_SAVED_PC): Remove.
7022 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7023 (m68k_store_struct_return): Add.
7024 (m68k_deprecated_extract_return_value): Add.
7025 (m68k_deprecated_extract_struct_value_address): Add.
7026 (m68k_store_return_value): Add.
7027 (m68k_frame_chain): Add.
7028 (m68k_frameless_function_invocation): Add.
7029 (m68k_frame_saved_pc): Add.
7030 (m68k_gdbarch_init): added set_gdbarch calls for new
7031 functions and deleted macros.
7032
03c30d4d
TT
70332002-06-23 Tom Tromey <[email protected]>
7034
7035 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7036 (ALLDEPFILES): Likewise.
7037 (udiheaders): Removed.
7038 (udip2soc.o): Likewise.
7039 (udi2go32.o): Likewise.
7040 (udr.o): Likewise.
7041 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
7042
37e71372
AC
70432002-06-22 Andrew Cagney <[email protected]>
7044
06a6ac57
AC
7045 * infrun.c (_initialize_infrun): Delete unnecessary call to
7046 build_infrun.
7047
37e71372
AC
7048 * regcache.h: Update comments describing the regcache_cpy family
7049 of functions.
7050 (regcache_save, regcache_restore): Delete declaration.
7051 (regcache_save_no_passthrough): Delete declaration.
7052 (regcache_restore_no_passthrough): Delete declaration.
7053 * regcache.c (regcache_save): Delete function.
7054 (regcache_save_no_passthrough): Delete function.
7055 (regcache_restore): Delete function.
7056 (regcache_restore_no_passthrough): Delete function.
7057
78f6d055
AC
70582002-06-21 Andrew Cagney <[email protected]>
7059
7060 * config/m68k/tm-m68k.h: Fix typo.
7061 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
7062 (m68k_frame_init_saved_regs): Declare.
7063
78b119cb
JB
70642002-06-21 Jim Blandy <[email protected]>
7065
7066 Remove some vestiges of Harris 88k support.
7067 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
7068 register numbering quirk.
7069 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
7070 odd symbols occurring in Harris 88k ELF targets.
7071
0fbb3da7
TT
70722002-06-21 Tom Tromey <[email protected]>
7073
7074 * gdb_locale.h: New file.
7075 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
7076 (defs_h): Added gdb_locale.h.
7077 * configure, config.in: Rebuilt.
7078 * configure.in (PACKAGE): Define.
7079 * defs.h: Include gdb_locale.h.
7080 * main.c (captured_main): Call setlocale, bindtextdomain,
7081 textdomain.
7082
456f8b9d
DB
70832002-06-21 Dave Brolley <[email protected]>
7084
7085 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
7086 * config/frv/frv.mt: New file.
7087 * config/frv/tm-frv.h: New file.
7088 * configure.tgt: Support frv-*-*.
7089 * Makefile.in (frv-tdep.o): New target.
7090 * frv-tdep.c: New file.
7091 * NEWS: Mention frv.
7092
cdd463f9
DB
70932002-06-21 Dave Brolley <[email protected]>
7094
7095 * MAINTAINERS: Add self to "Write After Approval" list.
7096
5d3ed2e3
GS
70972002-06-21 Grace Sainsbury <[email protected]>
7098
7099 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
7100 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
7101 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
7102 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
7103 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
7104
7105 * m68k-tdep.c: Include arch-utils.h
7106 (m68k_register_raw_size): Add.
7107 (m68k_register_virtual_size): Add.
7108 (m68k_register_virtual_type): Add.
7109 (m68k_register_name): Add.
7110 (m68k_stack_align): Add.
7111 (m68k_register_byte): Add.
7112 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
7113 tm-m68k.h.
7114
7f8e7424
GS
71152002-06-21 Grace Sainsbury <[email protected]>
7116
a2c6a6d5 7117 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
7f8e7424
GS
7118 m68k_find_saved_regs.
7119 (m68k_pop_frame): Removed saved_regs structure, and replaced
5d3ed2e3 7120 references to it with frame->saved_regs.
7f8e7424
GS
7121 (m68k_gdbarch_init): Added function calls to initialize the
7122 gdbarch structure.
a2c6a6d5
GS
7123 (m68k_fix_call_dummy): Add.
7124 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
7125 (CALL_DUMMY): Remove.
7126 (CALL_DUMMY_LENGTH): Remove.
7127 (CALL_DUMMY_START_OFFSET): Remove.
7128 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7129 (FIX_CALL_DUMMY): Remove.
7130 (PUSH_DUMMY_FRAME): Remove.
7131 (POP_FRAME): Remove.
7f8e7424 7132
f461f5cf
PM
71332002-06-19 Pierre Muller <[email protected]>
7134
7135 * parse.c (parse_fprintf): New function used to avoid calls to
7136 fprintf in bison parser generated debug code.
7137 * parser-defs.h: Declaration of new parse_fprintf function.
7138 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
7139 Set YYDEBUG to 1 by default.
7140 Set YYFPRINTF as parse_fprintf.
7141
7f0c12ed
ML
71422002-06-21 Michal Ludvig <[email protected]>
7143
7144 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
7145 encoding anymore.
7146 (pointer_encoding, enum ptr_encoding): New.
7147 (execute_cfa_program): Take care about pointer encoding.
7148 (dwarf2_build_frame_info): Only call parse_frame_info for
7149 .debug_frame and .eh_frame.
7150 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
7151 fixed augmentation handling, added relative addressing,
7152 ignore duplicate FDEs. Added comments.
19d833a2 7153 * dwarf2cfi.c: Reindented.
7f0c12ed 7154
87c4a039
EZ
71552002-06-20 Elena Zannoni <[email protected]>
7156
7157 * event-top.c (command_handler): Don't use space_at_cmd_start
7158 unless there is sbrk() on the host. Assign time and space data
7159 to union fields of the appropriate length.
7160
1cf877ad
ML
71612002-06-20 Michal Ludvig <[email protected]>
7162
7163 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
7164 x86_64_register_name. Return type changed to 'const char *'.
7165 (x86_64_register_name2nr): Rename to x86_64_register_number.
7166 (x86_64_gdbarch_init): Update to reflect the change.
7167 * x86-64-tdep.h: Ditto.
7168 * x86-64-linux-nat.c (x86_64_fxsave_offset)
7169 (supply_fpregset): Ditto.
7170
3fadccb3
AC
71712002-06-19 Andrew Cagney <[email protected]>
7172
7173 * regcache.h: Update copyright.
7174 (struct regcache, struct gdbarch): Add opaque declarations.
7175 (current_regcache): Declare global variable.
7176 (regcache_read, regcache_write): Add gdbarch parameter.
7177 (regcache_save, regcache_save_no_passthrough)
7178 (regcache_restore, regcache_restore_no_passthrough)
7179 (regcache_dup, regcache_dup_no_passthrough)
7180 (regcache_cpy, regcache_cpy_no_passthrough)
7181 (deprecated_grub_regcache_for_registers)
7182 (deprecated_grub_regcache_for_register_valid)
7183 (regcache_valid_p): Add function declarations.
7184
7185 * regcache.c: Update copyright.
7186 (regcache_descr_handle): New global variable.
7187 (struct regcache_descr): Define.
7188 (init_legacy_regcache_descr, init_regcache_descr): New functions.
7189 (regcache_descr, xfree_regcache_descr): New functions.
7190 (struct regcache): Define.
7191 (regcache_xmalloc, regcache_xfree): New functions.
7192 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
7193 (regcache_dup, regcache_dup_no_passthrough): New functions.
7194 (regcache_valid_p, regcache_read_as_address): New functions.
7195 (deprecated_grub_regcache_for_registers): New function.
7196 (deprecated_grub_regcache_for_register_valid): New function.
7197 (current_regcache): New global variable.
7198 (register_buffer): Add regcache parameter. Update calls.
7199 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
7200 (read_register_gen, write_register_gen): Update register_buffer
7201 call. Test for legacy_p instead of gdbarch_register_read_p or
7202 gdbarch_register_write_p.
7203 (regcache_collect): Update register_buffer call.
7204 (build_regcache): Rewrite. Use deprecated grub functions.
7205 (regcache_save, regcache_save_no_passthrough): New functions.
7206 (regcache_restore, regcache_restore_no_passthrough): New
7207 functions.
7208 (_initialize_regcache): Create the regcache_data_handle. Swap
7209 current_regcache global variable.
7210
7211 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
7212 parameter to regcache_read and regcache_write calls.
7213 (sh4_register_read): Ditto.
7214 (sh64_pseudo_register_read): Ditto.
7215 (sh64_register_read): Ditto.
7216 (sh_pseudo_register_write): Ditto.
7217 (sh4_register_write): Ditto.
7218 (sh64_pseudo_register_write): Ditto.
7219 (sh64_register_write): Ditto.
7220
7221 * defs.h (XCALLOC): Define.
7222
152d9db6
GS
72232002-06-19 Grace Sainsbury <[email protected]>
7224
7225 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
7226 * m68k-tdep.c (m68k_gdbarch_init): Added.
7227 (m68k_dump_tdep): Added.
7228
170911c7
DJ
72292002-06-19 Daniel Jacobowitz <[email protected]>
7230
7231 * ada-lang.c (fill_in_ada_prototype): Update comment.
7232
2e4ebe70
DJ
72332002-06-19 Daniel Jacobowitz <[email protected]>
7234
7235 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
7236 MIPS_ABI_LAST.
7237 (mips_abi_string, mips_abi_strings): New.
7238 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
7239 (mips_gdbarch_init): Set tdep->found_abi. Don't set
7240 tdep->mips_abi_string. Honor mips_abi_string. Default to
7241 O32 if no ABI is found.
7242 (mips_dump_tdep): Use mips_abi_strings.
7243 (mips_abi_update): New function.
7244 (_initialize_mips_tdep): Initialize mips_abi_string. Add
7245 ``set mips abi'' and ``show mips abi''. Check the size of
7246 mips_abi_strings.
7247
16775908
AC
72482002-06-19 Andrew Cagney <[email protected]>
7249
7250 * i386-linux-tdep.c (i386_linux_register_name): Make return type
7251 constant.
7252
5051bfa4 72532002-06-18 Joel Brobecker <[email protected]>
16775908 7254
5051bfa4
JB
7255 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
7256 current frame using only the first stack size adjustment. All
7257 subsequent size adjustments are not considered to be part of
7258 the "static" part of the current frame.
7259 Compute the address of the saved registers relative to the
7260 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
7261 in use in this frame.
7262
56468235
DH
72632002-06-18 Don Howard <[email protected]>
7264
7265 * valops.c (value_ind): Use value_at_lazy() when dereferencing
7266 type int expressions. Thanks to Jim Blandy <[email protected]> for
7267 suggesting this solution.
7268
0b624158
AC
72692002-06-18 Andrew Cagney <[email protected]>
7270
7271 * config/romp/xm-rtbsd.h: Delete file.
7272 * config/romp/rtbsd.mh: Delete file.
7273
221ea385
KS
72742002-06-18 Keith Seitz <[email protected]>
7275
7276 * breakpoint.c (condition_command): Post breakpoint_modify
7277 when a condition is added to an existing breakpoint.
7278 (commands_command): Likewise for commands.
7279 (set_ignore_count): Likewise for ignore counts.
7280 If no tty, do not simply return, still need to send event
7281 notification.
7282 (ignore_command): Only print a newline if the command came
7283 from a tty.
7284 Don't call breakpoints_changed, since this is now properly
7285 handled by set_ignore_count.
7286
5402eed1
AC
72872002-06-18 Andrew Cagney <[email protected]>
7288
7289 * MAINTAINERS: Note that cris-elf target can be compiled with
7290 -Werror.
7291 * cris-tdep.c (cris_register_name): Make return type constant.
7292 (cris_breakpoint_from_pc): Ditto.
7293
cc22880b
ML
72942002-06-18 Michal Ludvig <[email protected]>
7295
7296 * frame.h (struct frame_info): Change type of context to
7297 'struct context'.
7298
fa88f677
AC
72992002-06-17 Andrew Cagney <[email protected]>
7300
7301 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
7302 pointer.
7303 * gdbarch.h, gdbarch.c: Regenerate.
7304 * config/mips/tm-mips.h (mips_register_name): Update.
7305 * i386-tdep.h (i386_register_name): Update.
7306 * mips-tdep.c (mips_register_name): Update
7307 * alpha-tdep.c (alpha_register_name): Update.
7308 * arch-utils.c (legacy_register_name): Update.
7309 * arch-utils.h (legacy_register_name): Update.
7310 * avr-tdep.c (avr_register_name): Update.
7311 * ia64-tdep.c (ia64_register_name): Update.
7312 * i386-tdep.c (i386_register_name): Update.
7313 * sparc-tdep.c (sparc32_register_name): Update.
7314 (sparc64_register_name): Update.
7315 (sparclite_register_name): Update.
7316 (sparclet_register_name): Update.
7317 * sh-tdep.c (sh_generic_register_name): Update.
7318 (sh_sh_register_name): Update.
7319 (sh_sh3_register_name): Update.
7320 (sh_sh3e_register_name): Update.
7321 (sh_sh_dsp_register_name): Update.
7322 (sh_sh3_dsp_register_name): Update.
7323 (sh_sh4_register_name): Update.
7324 (sh_sh64_register_name): Update.
7325 * s390-tdep.c (s390_register_name): Update.
7326 * rs6000-tdep.c (rs6000_register_name): Update.
7327 * ns32k-tdep.c (ns32k_register_name_32082): Update.
7328 (ns32k_register_name_32382): Update.
7329 * d10v-tdep.c (d10v_ts2_register_name): Update.
7330 (d10v_ts3_register_name): Update.
7331 * xstormy16-tdep.c (xstormy16_register_name): Update.
7332 * vax-tdep.c (vax_register_name): Update.
7333 * v850-tdep.c (v850_register_name): Update.
7334 * m68hc11-tdep.c (m68hc11_register_name): Update.
7335 * mn10300-tdep.c (mn10300_generic_register_name): Update.
7336 (am33_register_name): Update.
7337
ea1e7ef6
GS
73382002-06-17 Grace Sainsbury <[email protected]>
7339
7340 * m68k-tdep.c: Reindented.
7341
9b02dd1b
AC
73422002-06-17 Andrew Cagney <[email protected]>
7343
7344 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
7345 list of predefined types.
7346
8758dec1
MK
73472002-06-16 Mark Kettenis <[email protected]>
7348
b6197528
MK
7349 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
7350 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
7351 REGISTER_CONVERT_TO_RAW): Remove defines.
7352 (i386_register_virtual_type, i386_register_convertible,
7353 i386_register_convert_to_virtual, i386_register_convert_to_raw):
7354 Remove prototypes.
7355 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7356 macros mentioned above.
7357
82b47e62
MK
7358 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
7359 (i386lynx_saved_pc_after_call): Remove prototype.
7360 * i386ly-tdep.c: Include "i386-tdep.h".
7361 (i386lynx_saved_pc_after_call): Make static. Use
7362 read_memory_nobpt instead of read_memory. Use
7363 read_memory_unsigned_integer instead of read_memory_integer.
7364 (i386lynx_init_abi): New function.
7365 (i386lynx_coff_osabi_sniffer): New function.
7366 (_initialize_i386bsd_tdep): New function.
7367
8758dec1
MK
7368 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
7369 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
7370 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
7371 (i386_fix_call_dummy): Remove prototype.
7372 * i386-tdep.c (i386_call_dummy_words): New variable.
7373 (i386_gdbarch_init): Adjust for removal of the
7374 macros mentioned above.
7375
e9e68a56
AC
73762002-06-15 Andrew Cagney <[email protected]>
7377
7378 * command.h (add_setshow_auto_boolean_cmd): Replace
7379 add_set_auto_boolean_cmd.
7380 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
7381 add_set_auto_boolean_cmd.
7382 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
7383 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
7384 mask-address'' command.
7385 (show_mask_address): Add cmd parameter.
7386 * remote.c (add_packet_config_cmd): Update. Change type of
7387 set_func and show_func to cmd_sfunc_ftype.
7388 (_initialize_remote): Update `set remote Z-packet'
7389 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
7390 (show_remote_protocol_e_packet_cmd): Ditto.
7391 (show_remote_protocol_E_packet_cmd): Ditto.
7392 (show_remote_protocol_P_packet_cmd): Ditto.
7393 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
7394 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
7395 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
7396 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
7397 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
7398 (show_remote_protocol_Z_packet_cmd): Ditto.
7399 (show_remote_protocol_binary_download_cmd): Ditto.
7400 (show_remote_cmd): Pass NULL to all of above.
7401
fc08ec52
MK
74022002-06-15 Mark Kettenis <[email protected]>
7403
7404 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
7405 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
7406 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
7407 POP_FRAME): Remove defines.
7408 (i386_push_arguments, i386_store_struct_return,
7409 i386_extract_return_value, i386_store_return_value,
7410 i386_extract_struct_value_address, i386_push_dummy_frame,
7411 i386_pop_frame): Renove prototypes.
7412 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7413 macros mentioned above.
7414
e707bbc2
AC
74152002-06-15 Andrew Cagney <[email protected]>
7416
7417 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
7418 add_set_boolean_cmd.
7419 (add_setshow_cmd): New function.
7420 * command.h (add_setshow_boolean_cmd): Replace
7421 add_set_boolean_cmd.
7422 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
7423 and ``set rdiromatzero''.
7424 * maint.c (_initialize_maint_cmds): Update commented out code.
7425 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
7426 * target.c (initialize_targets): Update `set
7427 trust-readonly-sections'.
7428 * remote.c (_initialize_remote): Update `set remotebreak'.
7429
42fdc8df
MK
74302002-06-15 Mark Kettenis <[email protected]>
7431
93924b6b
MK
7432 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
7433 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
7434 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
7435 fit into multi-arch framework.
7436 (i386_breakpoint_from_pc): New function.
7437 (i386_gdbarch_init): Adjust for removal of the macros mentioned
7438 above.
7439
42fdc8df
MK
7440 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
7441 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
7442 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
7443 (i386_frameless_function_invocation, i386_frame_num_args,
7444 i386_frame_init_saved_regs): Remove prototypes.
7445 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
7446 macros mentioned above.
7447
9773a94b
AC
74482002-06-15 Andrew Cagney <[email protected]>
7449
7450 * cli/cli-decode.c (set_cmd_cfunc): Update.
7451 (set_cmd_sfunc): Update.
7452 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
7453 (set_cmd_sfunc, set_cmd_cfunc): Update.
7454 * cli/cli-decode.h: Update.
7455
6e157172
MK
74562002-06-15 Mark Kettenis <[email protected]>
7457
7458 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
7459 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
7460
7f19b9a2
AC
74612002-06-15 Andrew Cagney <[email protected]>
7462
7463 * defs.h (auto_boolean): Declare enum.
7464 * command.h (cmd_auto_boolean): Delete enum.
7465 * mips-tdep.c (mask_address_var): Update.
7466 (mips_mask_address_p): Update.
7467 (show_mask_address): Update.
7468 * remote.c (struct packet_config): Update.
7469 (update_packet_config): Update.
7470 (show_packet_config_cmd): Update.
7471 (packet_ok): Update.
7472 (add_packet_config_cmd): Update.
7473 (_initialize_remote):
7474 * command.h: Update.
7475 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
7476 (do_setshow_command): Update.
7477 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
7478 * cli/cli-decode.h: Update.
7479
1cf88de5
MK
74802002-06-15 Mark Kettenis <[email protected]>
7481
22ba8cf2
MK
7482 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
7483 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
7484 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
7485 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
7486 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
7487 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
7488
762c5349
MK
7489 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
7490 list of DJGPP COFF targets.
7491
091198bb
MK
7492 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
7493 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
7494 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
7495 (FP0_REGNUM): Remove define.
7496 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
7497 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
7498 (i386_register_virtual_size): Remove protoype.
7499 * i386-tdep.c (i386_register_virtual_size): Removed.
7500 (i386_extract_return_value, i386_store_return_value): Use
7501 FP0_REGNUM instead of NUM_FREGS to determine whether the
7502 floating-point registers are available.
7503 (i386_gdbarch_init): Tweak FIXME about FPU registers.
7504 Adjust for removal of macros mentioned above.
7505
75062002-06-15 Mark Kettenis <[email protected]>
7507
fcc9bf01
MK
7508 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
7509 comments.
7510 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
7511 Remove prototypes.
7512 (supply_gregset, fill_gregset): Remove use of register keyword and
7513 remove declaration for regmap. Use I386_NUM_GREGS instead of
7514 NUM_REGS and NUM_FREGS.
7515 (FPREGSET_FSAVE_OFFSET): Remove.
7516 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
7517 NUM_FREGS to determine whether the floating-point registers are
7518 available.
7519
65e78234
MK
7520 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
7521 gnu_store_registers): Replace usage of NUM_GREGS with
7522 I386_NUM_GREGS.
7523
98df6387
MK
7524 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
7525 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
7526 usage of NUM_GREGS with I386_NUM_GREGS.
7527
099a9414
MK
7528 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
7529
57976e88
MK
7530 * i386bsd-nat.c: Include "i386-tdep.h".
7531 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
7532 I386_NUM_GREGS.
7533
b335f4a6
MK
7534 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
7535 and associated comment. They no longer make any sense, since we
7536 don't use this file anymore on Linux.
7537
1cf88de5
MK
7538 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
7539 * i386-tdep.c (i386_register_offset, i386_register_size): Use
7540 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
7541 elements in these arrays.
7542 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
7543 MAX_NUM_REGS.
7544
daa66587
MK
75452002-06-15 Mark Kettenis <[email protected]>
7546
7547 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
7548 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
7549
26e9b323
AC
75502002-06-14 Andrew Cagney <[email protected]>
7551
7552 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
7553 EXTRACT_RETURN_VALUE.
7554 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
7555 EXTRACT_STRUCT_VALUE_ADDRESS.
7556 * gdbarch.h, gdbarch.c: Regenerate.
7557
7558 * values.c (value_being_returned): Handle
7559 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7560 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
7561
7562 * arm-linux-tdep.c (arm_linux_init_abi): Update.
7563 * arm-tdep.c (arm_gdbarch_init): Update.
7564 * avr-tdep.c (avr_gdbarch_init): Update.
7565 * cris-tdep.c (cris_gdbarch_init): Update.
7566 * d10v-tdep.c (d10v_gdbarch_init): Update.
7567 * ia64-tdep.c (ia64_gdbarch_init): Update.
7568 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7569 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7570 * s390-tdep.c (s390_gdbarch_init): Update.
7571 * sh-tdep.c (sh_gdbarch_init): Update.
7572 * s390-tdep.c (s390_gdbarch_init): Update.
7573 * sparc-tdep.c (sparc_gdbarch_init): Update.
7574 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7575 * v850-tdep.c (v850_gdbarch_init): Update.
7576 * vax-tdep.c (vax_gdbarch_init): Update.
7577 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
7578 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7579
7580 * config/arc/tm-arc.h: Update.
7581 * config/d30v/tm-d30v.h: Update.
7582 * config/fr30/tm-fr30.h: Update.
7583 * config/h8300/tm-h8300.h: Update.
7584 * config/h8500/tm-h8500.h: Update.
7585 * config/i386/tm-i386.h: Update.
7586 * config/i386/tm-ptx.h: Update.
7587 * config/i386/tm-symmetry.h: Update.
7588 * config/i960/tm-i960.h: Update.
7589 * config/m32r/tm-m32r.h: Update.
7590 * config/m68k/tm-delta68.h: Update.
7591 * config/m68k/tm-linux.h: Update.
7592 * config/m68k/tm-m68k.h: Update.
7593 * config/m88k/tm-m88k.h: Update.
7594 * config/mcore/tm-mcore.h: Update.
7595 * config/mips/tm-mips.h: Update.
7596 * config/mn10200/tm-mn10200.h: Update.
7597 * config/pa/tm-hppa.h: Update.
7598 * config/pa/tm-hppa64.h: Update.
7599 * config/sparc/tm-sp64.h: Update.
7600 * config/sparc/tm-sparc.h: Update.
7601 * config/sparc/tm-sparclet.h: Update.
7602 * config/z8k/tm-z8k.h: Update.
7603
5179e78f
AC
76042002-06-14 Andrew Cagney <[email protected]>
7605
7606 * Makefile.in (i386_linux_tdep_h): Define.
7607 (i386_tdep_h, i387_tdep_h): Define.
7608 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
7609 $(i386_tdep_h) and $(i387_tdep_h).
7610 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7611
8201327c
MK
76122002-06-14 Mark Kettenis <[email protected]>
7613
edf393ac
MK
7614 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
7615 Already covered by the default.
7616
896fb97d
MK
7617 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
7618 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
7619 (i386_gdbarch_init): Initialize long_double_format and long_double
7620 bit.
7621
8201327c
MK
7622 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
7623 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
7624 Move these to ...
7625 * config/i386/i386sol2.mh: ... here.
7626 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
7627 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
7628 (SIGCONTEXT_PC_OFFSET): Remove define.
7629 (IN_SIGTRAMP): Remove define.
7630 * i386-sol2-tdep.c: New file.
7631
7632 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
7633 * config/i386/tm-i386nw.h: Removed.
7634
7635 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
7636 USE_STRUCT_CONVENTION): Remove defines.
7637 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7638 (get_longjmp_target): Remove prototype.
7639 (IN_SIGTRAMP): Remove define.
7640 (i386bsd_in_sigtramp): Remove prototype.
7641 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7642 function. Update comment accordingly
7643 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7644 (FRAME_SAVED_PC): Remove define.
7645 (i386bsd_frame_saved_pc): Remove prototype.
7646 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
7647 GET_LONGJMP_TARGET): Remove defines.
7648 (get_longjmp_target): Remove prototype.
7649 (IN_SIGTRAMP): Remove define.
7650 (i386bsd_in_sigtramp): Remove prototype.
7651 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
7652 function. Update comment accordingly
7653 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
7654 (FRAME_SAVED_PC): Remove define.
7655 (i386bsd_frame_saved_pc): Remove prototype.
7656 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
7657 Remove prototype.
7658 (USE_STRUCT_CONVENTION): Remove prototype.
7659 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
7660 declaration.
7661 (_initialize_i386bsd_nat): Revise logic to determine some
7662 constants at compile time when compiling a native GDB. Warn if
7663 things don't match up with what we expect.
7664 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
7665 Remove variables.
7666 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
7667 to use date stored in `struct gdbarch_tdep'.
7668 (i386bsd_sigcontext_offset): Remove varaible.
7669 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
7670 stored in `struct gdbarch_tdep'.
7671 (i386bsd_frame_saved_pc): Make static.
7672 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
7673 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
7674 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
7675 i386fbsd4_sc_pc_offset): New variables.
7676 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
7677 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
7678 functions.
7679 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
7680 functions.
7681 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
7682 Modify the value of i386fbsd_sigtramp_start and
7683 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
7684 i386fbsd_sigtramp_end.
7685 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
7686 function.
7687
7688 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
7689 define to i386-linux-tdep.h.
7690 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
7691 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
7692 defines.
7693 (i386_linux_register_name, i386_linux_register_byte,
7694 i386_linux_register_raw_size): Remove prototypes.
7695 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
7696 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
7697 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
7698 TARGET_WRITE_PC): Remove defines.
7699 (i386_linux_in_sigtramp, i386_linux_frame_chain,
7700 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
7701 i386_linux_write_pc): Remove prototypes.
7702 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7703 (get_longjmp_target): Remove prototype.
7704 * i386-linux-tdep.h: New file.
7705 * i386-linux-nat.c: Include "i386-linux-tdep.h".
7706 * i386-linux-tdep.c: Include "i386-tdep.h" and
7707 "i386-linux-tdep.h".
7708 (i386_linux_register_name, i386_linux_register_byte,
7709 i386_linux_register_raw_size, i386_linux_in_sigtramp,
7710 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
7711 Make static.
7712 (i386_linux_init_abi): New function.
7713 (_initialize_i386_linux_tdep): New function.
7714
7715 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
7716 (i386_saved_pc_after_call): Remove prototype.
7717 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
7718 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
7719 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
7720 (i386_register_name, i386_stab_reg_to_regnum,
7721 i386_dwarf_reg_to_regnum): Remove prototypes.
7722 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
7723 SIZEOF_SSE_REGS): Remove defines.
7724 (REGISTER_BYTES): Remove define.
7725 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
7726 (i386_register_byte, i386_register_raw_size): Remove prototypes.
7727 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
7728 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
7729 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
7730 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
7731 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
7732 (get_longjmp_target): Remove prototype.
7733 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
7734 (sigtramp_saved_pc): Remove define.
7735 (i386v4_sigtramp_saved_pc): Remove prototype.
7736 * config/i386/tm-go32.h (FRAME_CHAIN,
7737 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
7738 (i386go32_frame_saved_pc): Remove prototype.
7739 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
7740 (get_longjmp_target): Remove prototype.
7741 * i386-tdep.h: Include "osabi.h".
7742 (enum i386_abi): Removed.
7743 (enum struct_return): New enum.
7744 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
7745 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
7746 sc_pc_offset members.
7747 (i386_gdbarch_register_os_abi): Remove prototype.
7748 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
7749 I386_SSE_NUM_REGS): New defines.
7750 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
7751 I386_SSE_SIZEOF_REGS): New defines.
7752 (i386_register_name, i386_register_byte, i386_register_raw_size):
7753 New prototypes.
7754 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
7755 (i386bsd_sigtramp_saved_pc): New prototype.
7756 * i386-tdep.c: Don't include "elf-bfd.h".
7757 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
7758 i386_frame_chain, i386_saved_pc_after_call): Make static.
7759 (i386_frame_saved_pc): Rewrite to call architecture dependent
7760 function to deal with signal handlers. Make static.
7761 (i386go32_frame_saved_pc): Removed.
7762 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
7763 Removed.
7764 (i386_get_longjmp_target): New function.
7765 (default_struct_convention, pcc_struct_convention,
7766 reg_struct_convention, valid_conventions, struct_convention): New
7767 variables.
7768 (i386_use_struct_convention): New function.
7769 (i386v4_sigtramp_saved_pc): Renamed to
7770 i386_svr4_sigtramp_saved_pc. Made static. Moved.
7771 (i386_pc_in_sigtramp): New function.
7772 (i386_abi_names): Removed.
7773 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
7774 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
7775 Removed.
7776 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
7777 i386_gdbarch_register_os_abi): Removed.
7778 (struct i386_abi_handler): Removed.
7779 (i386_abi_handler_list): Removed.
7780 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
7781 functions.
7782 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
7783 i386_nw_init_abi): New functions.
7784 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
7785 Use set_gdbarch_xxx() calls instead of relying on macros for a
7786 number of calls.
7787 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
7788 (_initialize_i386_tdep): Add new 'struct-convcention' command.
7789 Register the various architecture variants defined in this file.
7790
ad2f7632
DJ
77912002-06-14 Daniel Jacobowitz <[email protected]>
7792
7793 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
7794 (struct main_type): Remove arg_types member. Update comments for
7795 struct field.
7796 (TYPE_ARG_TYPES): Remove.
7797 (TYPE_FN_FIELD_ARGS): Update.
7798 (smash_to_method_type): Update prototype.
7799
7800 * c-typeprint.c (cp_type_print_method_args): Take method type
7801 instead of argument list. Use new argument layout. Simplify.
7802 (c_type_print_args): Use new argument layout. Simplify.
7803 (c_type_print_base): Update call to cp_type_print_method_args.
7804 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
7805 argument; use die->type instead. Update call to
7806 smash_to_method_type.
7807 (read_structure_scope): Update call to dwarf2_add_member_fn.
7808 * gdbtypes.c (allocate_stub_method): Update comment.
7809 (smash_to_method_type): Take new NARGS and VARARGS arguments.
7810 Use new argument layout.
7811 (check_stub_method): Use new argument layout. Don't count
7812 void as an argument.
7813 (print_arg_types): Update comments. Use new argument layout.
7814 (recursive_dump_type): Don't print arg_types member.
7815 * hpread.c (hpread_read_struct_type): Use new argument layout.
7816 (fixup_class_method_type): Likewise.
7817 (hpread_type_lookup): Likewise.
7818 * stabsread.c (read_type): Update calls to read_args and
7819 smash_to_method_type.
7820 (read_args): Use new argument layout. Simplify.
7821 * valops.c (typecmp): Use new argument layout. Update parameters
7822 and comments. Simplify.
7823 (hand_function_call): Use new argument layout.
7824 (search_struct_method): Update call to typecmp.
7825 (find_overload_match): Use new argument layout.
7826
6da02953
DJ
78272002-06-13 Daniel Jacobowitz <[email protected]>
7828
7829 * NEWS: Mention multithreaded debug support for gdbserver.
7830
519b2366
DJ
78312002-06-13 Daniel Jacobowitz <[email protected]>
7832
7833 * MAINTAINERS: Mention NEWS.
7834
6c0d6680
DJ
78352002-06-13 Daniel Jacobowitz <[email protected]>
7836
7837 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
7838 (struct mips_objfile_private, compare_pdr_entries): New.
7839 (non_heuristic_proc_desc): Read the ".pdr" section if it
7840 is present.
7841
6529d2dd
AC
78422002-06-12 Andrew Cagney <[email protected]>
7843
7844 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
7845 (arm_debug): New static variable.
7846 (_initialize_arm_tdep): Add ``set debug arm'' command.
7847
26216b98
AC
78482002-06-12 Andrew Cagney <[email protected]>
7849
7850 * Makefile.in (sim_arm_h): Define.
7851 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
7852 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
7853 (arm_register_sim_regno): New function, map an internal REGNUM
7854 onto a simulator register number.
7855 (arm_gdbarch_init): Set register_sim_regno.
7856
814b3ba0
AH
78572002-06-09 Aldy Hernandez <[email protected]>
7858
7859 * MAINTAINERS: Add self.
7860
475b0867
JB
78612002-06-11 Jim Blandy <[email protected]>
7862
919d772c
JB
7863 * source.c (source_info): Mention whether the symtab has
7864 information about preprocessor macros.
7865
475b0867
JB
7866 Call the command `info macro', not `show macro'.
7867 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
7868 Fix error message.
7869 (_initialize_macrocmd): Register `info_macro_command' in
7870 `infolist', not `showlist'.
7871
9e364162
DJ
78722002-06-11 Daniel Jacobowitz <[email protected]>
7873
7874 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
7875 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
7876 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
7877 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
7878 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
7879 unconditionally.
7880 (set_mipsfpu_single_command, set_mipsfpu_double_command)
7881 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
7882 (_initialize_mips_tdep): Remove dead code.
7883 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
7884 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7885 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
7886 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
7887 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
7888 MIPS_LAST_FP_ARG_REGNUM): Remove.
7889
23aa4c72
ML
78902002-06-11 Michal Ludvig <[email protected]>
7891
7892 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
7893 (unwind_tmp_obstack_free, parse_frame_info)
7894 (update_context, cfi_read_fp, cfi_write_fp)
7895 (cfi_frame_chain, cfi_init_extra_frame_info)
7896 (cfi_virtual_frame_pointer): Use the above function.
264d1763 7897 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
23aa4c72 7898
70eb15a4
CV
78992002-06-11 Corinna Vinschen <[email protected]>
7900
7901 * v850-tdep.c (v850_type_is_scalar): New function.
7902 (v850_use_struct_convention): Match current gcc implementation
7903 as close as possible.
7904 (v850_push_arguments): Fix stack_offset handling. Don't write
7905 struct_addr into register. This is done by v850_store_struct_return.
7906 (v850_extract_return_value): Care for structs.
7907 (v850_store_return_value): Ditto.
7908 (v850_store_struct_return): Actually write address.
7909
482a4d06
ML
79102002-06-11 Michal Ludvig <[email protected]>
7911
7912 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
7913 without debug information too.
7914
d855c300
AC
79152002-06-10 Andrew Cagney <[email protected]>
7916
7917 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
7918 Make multi-arch pure.
7919 * gdbarch.h, gdbarch.c: Re-generate.
7920 * arm-tdep.c (arm_print_float_info): Update.
7921 * arch-utils.h (default_print_float_info): Update.
7922 * arch-utils.c (default_print_float_info): Update.
7923 * infcmd.c (float_info): Update call.
7924
dd12a101
AC
79252002-06-10 Andrew Cagney <[email protected]>
7926
7927 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
7928 the front of the initialize list.
7929
101dcfbe
AC
79302002-06-10 Andrew Cagney <[email protected]>
7931
7932 * infrun.c (struct inferior_status): Replace fields
7933 selected_frame_address and selected_level with field
7934 selected_frame_id.
7935 (save_inferior_status): Update. Use get_frame_id.
7936 (struct restore_selected_frame_args): Delete.
7937 (restore_selected_frame): Update. Use frame_find_by_id.
7938 (restore_inferior_status): Update.
7939
7940 * breakpoint.h (struct breakpoint): Change type of
7941 watchpoint_frame to frame_id.
7942 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
7943 call to get_current_frame.
7944 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
7945 get_current_frame.
7946 (watchpoint_check): Use frame_find_by_id.
7947
7948 * frame.h (record_selected_frame): Delete declaration.
7949 * stack.c (record_selected_frame): Delete function.
7950
7951 * frame.h (struct frame_id): Define.
7952 (get_frame_id): Declare.
7953 (frame_find_by_id): Declare.
7954 * frame.c (frame_find_by_id): New function.
7955 (get_frame_id): New function.
7956
304270b6
AV
79572002-06-10 Andrey Volkov <[email protected]>
7958
7959 * ser-e7kpc.c: Fix duplicated define and call of
7960 _initialize_ser_e7000pc
7961
2f2cf184
DJ
79622002-06-09 Daniel Jacobowitz <[email protected]>
7963
7964 * signals/signals.c (target_signal_from_host): Fix #ifdef
7965 SIGRTMIN case.
7966 (do_target_signal_to_host): Likewise.
7967
caaa3122
DJ
79682002-06-09 Daniel Jacobowitz <[email protected]>
7969
7970 * mips-tdep.c (mips_find_abi_section): New function.
7971 (mips_gdbarch_init): Call it.
7972
6ac5df3a
MK
79732002-06-09 Mark Kettenis <[email protected]>
7974
7975 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
7976 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
7977 after Andrew's 2002-06-08 gdbarch change.
7978
82ea117a
MK
79792002-06-09 Mark Kettenis <[email protected]>
7980
7981 * i386-linux-nat.c (suppy_gregset): Don't supply
7982 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
7983 register cache.
7984 (fill_gregset): Don't fetch it under the same circumstances.
7985
3c25f8c7
AC
79862002-06-09 Andrew Cagney <[email protected]>
7987
7988 * Makefile.in (callback_h): Define.
7989 (remote_sim_h): Update path to remote-sim.h.
7990 (remote-rdp.o): Add $(callback_h).
7991 (remote-sim.o): Use $(callback_h).
7992 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
7993 * remote-rdp.c: Include "gdb/callback.h".
7994
1029b7fa
MK
79952002-06-09 Mark Kettenis <[email protected]>
7996
7997 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
7998 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
7999
616675d3
AC
80002002-06-08 Andrew Cagney <[email protected]>
8001
a3efda28
AC
8002 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8003 * rdi-share/serpardr.c: Ditto.
8004 * rdi-share/unixcomm.c: Ditto.
8005 * rdi-share/serdrv.c: Ditto.
8006 * rdi-share/hostchan.h: Ditto.
8007 * rdi-share/hostchan.c: Ditto.
8008 * rdi-share/host.h: Ditto.
8009 * rdi-share/devsw.c: Ditto.
8010
c5f10366
AC
8011 * objfiles.h: Change type of obj_private to void pointer.
8012 * pa64solib.c: Update copyright. Don't include "assert.h", use
8013 strcmp instead of STREQ, use LONGEST, do not use PTR
8014 * somsolib.c: Ditto.
8015
616675d3
AC
8016 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8017 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8018 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8019
e4b415d9
AC
80202002-06-08 Andrew Cagney <[email protected]>
8021
8022 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8023 (default_get_saved_register): Delete function.
8024 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8025 generic_unwind_get_saved_register.
8026 * gdbarch.h, gdbarch.c: Re-generate.
8027
ca0d0b52
AC
80282002-06-08 Andrew Cagney <[email protected]>
8029
8030 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8031 generic_func_frame_chain_valid.
8032 * gdbarch.h, gdbarch.c: Re-generate.
8033 * blockframe.c (generic_func_frame_chain_valid): Only check
8034 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8035 passing FP to PC_IN_CALL_DUMMY.
8036 Fix PR gdb/360.
8037
76860b5f
AC
80382002-06-08 Andrew Cagney <[email protected]>
8039
8040 * gdbarch.sh (struct gdbarch_data): Add field init_p.
8041 (register_gdbarch_data): Initialize init_p.
8042 (gdbarch_data): Initialize data pointer using the init function.
8043 (init_gdbarch_data): Delete function.
8044 (gdbarch_update_p): Update.
8045 (initialize_non_multiarch): Update.
8046 (struct gdbarch): Add field initialized_p.
8047 * gdbarch.h, gdbarch.c: Re-generate.
8048
8dda9770
ML
80492002-06-07 Michal Ludvig <[email protected]>
8050
8051 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
8052 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
8053 better do the things actually here.
8054 * x86-64-tdep.c (x86_64_register_name2nr): New.
8055 (x86_64_register_name): Renamed to x86_64_register_nr2name.
8056 (x86_64_gdbarch_init): Respect the above change.
8057 * x86-64-tdep.h (x86_64_register_name2nr)
8058 (x86_64_register_nr2name): Add prototypes.
8059 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
8060
3d79a47c
MS
80612002-06-06 Michael Snyder <[email protected]>
8062
7bd91a28
MS
8063 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
8064 Delete extra braces and re-indent.
8065 (d10v_store_return_value): Char return values
3d79a47c
MS
8066 must be shifted over by one byte in R0.
8067 (d10v_extract_return_value): Delete extra braces, re-indent.
8068
095a4c96
EZ
80692002-06-06 Elena Zannoni <[email protected]>
8070
8071 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
8072 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
8073 (d10v_integer_to_address): Rewrite.
8074 (d10v_frame_init_saved_regs): When reading fp and sp registers use
8075 the d10v specific functions which take care of converting to the
8076 correct space.
8077
e8a77ca4
EZ
80782002-06-06 Elena Zannoni <[email protected]>
8079
8080 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
8081 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
8082
4f2e4a4f
AC
80832002-06-02 Andrew Cagney <[email protected]>
8084
8085 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
8086 includes.
8087 * config/tm-linux.h: Ditto.
8088 * config/alpha/tm-alphalinux.h: Ditto.
8089 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
8090 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
8091 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
8092 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
8093 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
8094 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
8095 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
8096 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
8097 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
8098 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
8099 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
8100 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
8101 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
8102 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
8103 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
8104 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
8105 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
8106 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
8107 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
8108 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
8109 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
8110 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
8111 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
8112 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
8113 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
8114 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
8115 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
8116 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
8117 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
8118 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
8119 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
8120 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
8121 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
8122 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
8123 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
8124 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
8125 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
8126
ae2ab2ce
AS
81272002-05-04 Aidan Skinner <[email protected]>
8128
8129 * ada-exp.tab.c: New file
8130 * ada-exp.y: New file
8131 * ada-lang.c: New file
8132 * ada-lang.h: New file
8133 * ada-lex.c: New file
8134 * ada-lex.l: New file
8135 * ada-tasks.c: New file
8136 * ada-typeprint.c: New file
8137 * ada-valprint.c: New file
8138
0ddd0135
JT
81392002-06-02 Jason Thorpe <[email protected]>
8140
8141 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
8142 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
8143
750fbacc
JT
81442002-06-02 Jason Thorpe <[email protected]>
8145
8146 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
8147 insetead of ppc-linux-tdep.o.
8148 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
8149 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
8150
df94e18a
AC
81512002-06-02 Andrew Cagney <[email protected]>
8152
8153 2002-05-07 Christian Groessler <[email protected]>
8154 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
8155 bit register contents for little endian hosts.
8156
1a38ab75
AC
81572002-06-01 Andrew Cagney <[email protected]>
8158
8159 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
8160 any maintainer.
8161
8b1632ac
AC
81622002-06-01 Andrew Cagney <[email protected]>
8163
8164 * gdbarch.h: Regenerate.
8165
627054c8
AC
81662002-06-01 Andrew Cagney <[email protected]>
8167
8168 * MAINTAINERS: Add everyone to write-after-approval list.
8169
4f460812
AC
81702002-06-01 Andrew Cagney <[email protected]>
8171
8172 * stack.c (frame_info): Use frame_register_unwind instead of
8173 saved_regs. Mention when the SP is on the stack or in a register.
8174
8175 * frame.h (frame_register_unwind_ftype): Define. Document.
8176 (struct frame_info): Add field register_unwind and
8177 register_unwind_cache.
8178 (frame_register_unwind): Declare.
8179 (generic_unwind_get_saved_register): Declare.
8180
8181 * frame.c (frame_register_unwind): New function.
8182 (generic_unwind_get_saved_register): New function.
8183
8184 * blockframe.c (generic_call_dummy_register_unwind): New function.
8185 (frame_saved_regs_register_unwind): New function.
8186 (set_unwind_by_pc): New function.
8187 (create_new_frame): New function.
8188 (get_prev_frame): New function.
8189
de888f76
AC
81902002-05-30 Andrew Cagney <[email protected]>
8191
8192 * a29k-share/: Delete directory.
8193 * remote-vx29k.c: Delete file.
8194
2f2c3626
JT
81952002-05-30 Jason Thorpe <[email protected]>
8196
8197 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
8198 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8199
9ce5c36a
JT
82002002-05-30 Jason Thorpe <[email protected]>
8201
8202 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
8203 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
8204 (sparc64nbsd-nat.o)
8205 (sparcnbsd-nat.o)
8206 (sparcnbsd-tdep.o): New dependency lists.
8207 * NEWS: Note new UltraSPARC NetBSD native configuration.
8208 * configure.host (sparc64-*-netbsd*): New host.
8209 * configure.tgt (sparc-*-netbsdelf*)
8210 (sparc-*-netbsd*): Set gdb_target to nbsd.
8211 (sparc64-*-netbsd*): New target.
8212 * sparc64nbsd-nat.c: New file.
8213 * sparcnbsd-nat.c: New file.
8214 * sparcnbsd-tdep.c: New file.
8215 * sparcnbsd-tdep.h: New file.
8216 * config/sparc/nbsd.mt: New file.
8217 * config/sparc/nbsd64.mh: New file.
8218 * config/sparc/nbsd64.mt: New file.
8219 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
8220 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8221 (HOST_IPC): Remove.
8222 * config/sparc/nbsdaout.mt: Remove.
8223 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
8224 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
8225 (HOST_IPC): Remove.
8226 * config/sparc/nbsdelf.mt: Remove.
8227 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
8228 sparc-nat.c compatiblity defines.
8229 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
8230 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
8231 * config/sparc/tm-nbsd64.h: New file.
8232 * config/sparc/tm-nbsdaout.h: Remove.
8233 * config/sparc/xm-nbsd.h: Remove.
8234
ef3cf062
JT
82352002-05-30 Jason Thorpe <[email protected]>
8236
8237 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
8238 * sparc-tdep.c: Include osabi.h.
8239 (gdbarch_tdep): Add osabi member.
8240 (_initialize_sparc_tdep): Use gdbarch_register.
8241 (sparc_gdbarch_init): Use generic OS ABI framework.
8242 (sparc_dump_tdep): New function.
8243
ee8ff470
KB
82442002-05-30 Kevin Buettner <[email protected]>
8245
8246 * corefile.c (do_captured_read_memory_integer): Return non-zero
8247 result.
8248 (safe_read_memory_integer): Copy result of memory read when
8249 status is non-zero. Also, add comments.
8250
7b112f9c
JT
82512002-05-20 Jason Thorpe <[email protected]>
8252
8253 * Makefile.in (ppc_tdep_h): Define.
8254 (ppc-linux-nat.o)
8255 (ppc-linux-tdep.o)
8256 (rs6000-tdep.o): Use $(ppc_tdep_h).
8257 (ppc-sysv-tdep.o)
8258 (ppcnbsd-nat.o)
8259 (ppcnbsd-tdep.o): New dependency lists.
8260 * ppc-tdep.h: Use generic OS ABI framework.
357edbbc
JT
8261 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
8262 (ppc_linux_init_abi): New functions.
7b112f9c
JT
8263 (ppc_sysv_abi_broken_use_struct_convention)
8264 (ppc_sysv_abi_use_struct_convention)
8265 (ppc_sysv_abi_push_arguments): Move to...
8266 * ppc-sysv-tdep.c: ...here.
8267 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
8268 * rs6000-tdep.c (process_note_abi_tag_sections)
8269 (get_elfosabi): Remove.
8270 (rs6000_gdbarch_init): Use generic OS ABI framework.
8271 (rs6000_dump_tdep): New function.
8272 (_initialize_rs6000_tdep): Use gdbarch_register.
8273 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
8274 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
8275 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
8276 of ppc-linux-tdep.o.
8277 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
8278 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
8279 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
8280 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
8281 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
8282 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
8283
480dd42a
JB
82842002-05-29 Jim Blandy <[email protected]>
8285
8286 * macroscope.c (default_macro_scope): Put `void' in empty argument
8287 list.
8288
4182591f
AC
82892002-05-29 Andrew Cagney <[email protected]>
8290
8291 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
8292 * arch-utils.c: Include "sim-regno.h".
8293 * gdbarch.sh: Don't include "sim-regno.h".
8294 * gdbarch.h, gdbarch.c: Regenerate.
8295 * sim-regno.h (legacy_register_sim_regno): Move declaration from
8296 here.
8297 * arch-utils.h (legacy_register_sim_regno): To here.
8298 * remote-sim.c (legacy_register_sim_regno): Move function from
8299 here.
8300 * arch-utils.c (legacy_register_sim_regno): To here.
8301
8238d0bf
AC
83022002-05-28 Andrew Cagney <[email protected]>
8303
8304 * sim-regno.h: New file.
8305 * Makefile.in (sim_regno_h): Define.
8306 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
8307 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
8308 (legacy_register_sim_regno): New function.
8309 (one2one_register_sim_regno): New function.
8310 (gdbsim_fetch_register): Rewrite.
8311 (gdbsim_store_register): Only store a register when
8312 REGISTER_SIM_REGNO is valid.
8313 * d10v-tdep.c: Include "sim-regno.h".
8314 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
8315 (d10v_ts3_register_sim_regno): Ditto.
8316 * gdbarch.sh: Include "sim-regno.h".
8317 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
8318 * gdbarch.h, gdbarch.c: Regenerate.
8319 * arch-utils.h (default_register_sim_regno): Delete declaration.
8320 * arch-utils.c (default_register_sim_regno): Delete function.
8321
485721b1
JT
83222002-05-28 Jason Thorpe <[email protected]>
8323
8324 * ppcnbsd-nat.c: Rewrite.
8325 * ppcnbsd-tdep.c: New file.
8326 * ppcnbsd-tdep.h: New file.
8327 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
8328 solib.o, and solib-svr4.o.
8329 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
8330 nbsd-tdep.o, and corelow.o.
8331
697f244d
AC
83322002-05-28 Andrew Cagney <[email protected]>
8333
8334 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
8335 `tr' and `sed'. Mention that `broken' targets are not expected to
8336 build.
8337
f08caad1 83382002-05-27 Michal Ludvig <[email protected]>
b1ab997b
ML
8339
8340 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
8341 Let PC point right after the prologue before looking up symbols.
8342
3139facc
MH
83432002-05-27 Martin M. Hunt <[email protected]>
8344
8345 * i386-tdep.c (i386_register_virtual_type): Return
8346 builtin_type_vec128i for SSE registers.
8347
8348 * gdbtypes.h (builtin_type_vec128i): Declare.
8349
8350 * gdbtypes.c (build_builtin_type_vec128i): New function.
8351 (builtin_type_v2_double, builtin_type_v4_int64): New types.
8352 (builtin_type_vec128i): New type for SSE2 128-bit registers.
8353 (build_gdbtypes): Initialize new builtin vector types.
8354 (_initialize_gdbtypes): Register new vector types with gdbarch.
8355
6e3ba3b8
JT
83562002-05-26 Jason Thorpe <[email protected]>
8357
8358 * MAINTAINERS: ns32k is not longer an obsolete candidate,
8359 since it has been multi-arch'd.
8360 * NEWS: Note that ns32k-*-* is now partial multi-arch.
8361 Move Alpha and VAX multi-arch news entries to same section
8362 as other multi-arch news.
8363
93d5585d
JT
83642002-05-26 Jason Thorpe <[email protected]>
8365
8366 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
8367 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
8368 static. Rename some register numbers to put them in ns32k-tdep
8369 private namespace.
8370 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
8371 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
8372 functions.
8373 (_initialize_ns32k_tdep): Use gdbarch_register.
8374 * ns32k-tdep.h: New file.
8375 * ns32knbsd-tdep.c: New file.
8376 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
8377 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
8378 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
8379 REGISTER_BYTES, REGISTER_BYTE): Remove.
8380 * config/ns32k/tm-ns32k.h: New file.
8381 * config/ns32k/tm-umax.h: Remove.
8382
efb2c70e
JT
83832002-05-26 Jason Thorpe <[email protected]>
8384
8385 * ns32k-tdep.c (ns32k_saved_pc_after_call,
8386 ns32k_store_struct_return, ns32k_extract_return_value,
8387 ns32k_store_return_value, ns32k_extract_struct_value_address): New
8388 functions.
8389 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
8390 ns32k_saved_pc_after_call.
8391 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
8392 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
8393 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
8394 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8395 ns32k_extract_struct_value_address.
8396
7bcc927b
JT
83972002-05-26 Jason Thorpe <[email protected]>
8398
8399 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
8400 ns32k_fix_call_dummy): New.
8401 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
8402 ns32k_call_dummy_words.
8403 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
8404 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
8405 CALL_DUMMY_NARGS): Remove.
8406 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
8407
78f9d765
JT
84082002-05-26 Jason Thorpe <[email protected]>
8409
8410 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
8411 ns32k_frame_saved_pc, ns32k_frame_args_address,
8412 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
8413 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
8414 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
8415 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
8416 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
8417 (BREAKPOINT): Remove..
8418 (FRAME_CHAIN): Define as ns32k_frame_chain.
8419 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
8420 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
8421 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
8422 (FRAME_FIND_SAVED_REGS): Remove.
8423 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
8424 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
8425 (POP_FRAME): Define as ns32k_pop_frame.
8426
f2c762e0
JT
84272002-05-26 Jason Thorpe <[email protected]>
8428
8429 * ns32k-tdep.c (ns32k_register_byte_32082,
8430 ns32k_register_byte_32382, ns32k_register_raw_size,
8431 ns32k_register_virtual_size, ns32k_register_virtual_type): New
8432 functions.
8433 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
8434 ns32k_register_byte_32382.
8435 * config/ns32k/tm-umax.h: Update copyright years.
8436 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
8437 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
8438 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
8439 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
8440 (ns32k_get_enter_addr): Fix prototype.
8441
af137673
JT
84422002-05-26 Jason Thorpe <[email protected]>
8443
8444 * ns32k-tdep.c: Update copyright years.
8445 (ns32k_register_name_32082): New function.
8446 (ns32k_register_name_32382): Ditto.
8447 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
8448 (REGISTER_NAME): Define as ns32k_register_name_32382.
8449 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
8450 (REGISTER_NAME): Define as ns32k_register_name_32082.
8451
a8bc7b56
JB
84522002-05-24 Jim Blandy <[email protected]>
8453
8454 * dwarf2read.c (free_line_header): Use xfree, not free.
8455
83a45910
JT
84562002-05-24 Jason Thorpe <[email protected]>
8457
8458 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
8459 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
8460
0db71247
AC
84612002-05-23 Andrew Cagney <[email protected]>
8462
8463 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
8464
b9e5e4dd
AC
84652002-05-23 Andrew Cagney <[email protected]>
8466
8467 From Ross Alexander at NEC Europe:
8468 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
8469
de530e84
MS
84702002-05-23 Michael Snyder <[email protected]>
8471
8472 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
8473 for input, rather than parse_and_eval_address.
8474
b91b96f4
AC
84752002-05-23 Andrew Cagney <[email protected]>
8476
8477 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
8478 * Makefile.in (sim_d10v_h): Update definition.
8479
8b279e7a
AC
84802002-05-24 Andrew Cagney <[email protected]>
8481
8482 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
8483 change `2002-05-22 Michael Snyder' below.
8484 (d10v_push_arguments): Ditto.
8485 (d10v_extract_return_value): Ditto.
8486
0a3d0425
JB
84872002-05-23 Jim Blandy <[email protected]>
8488
8489 * macrotab.c (check_for_redefinition): Don't complain if the new
8490 definition is the same as the previous one. Take more arguments
8491 to allow the comparison.
8492 (macro_define_object, macro_define_function): Pass more arguments
8493 to check_for_redefinition.
8494
78eac43e
MS
84952002-05-22 Michael Snyder <[email protected]>
8496
8497 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
8498 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
8499 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
8500 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
8501 Don't bail if return_pc is PC_IN_CALL_DUMMY.
8502 Add a temp variable to save a call (and a memory read).
8503 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
8504 if possible (so that PC_IN_CALL_DUMMY will work).
8505
9bc1edb8
CV
85062002-05-22 Corinna Vinschen <[email protected]>
8507
8508 * MAINTAINERS: Remove status `OBSOLETE' from v850.
8509
005ef3d2
ML
85102002-05-22 Michal Ludvig <[email protected]>
8511
8512 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
8513 fde->cie_ptr.
8514 (dwarf2_build_frame_info): Corrected handling of eh_frame.
8515 (dwarf2_build_frame_info): Add offset to fde->initial_location
8516 so that frames of shared libraries are mapped correctly.
6c3eb890
ML
8517 (execute_stack_op): Change type of 'result' from ULONGEST to
8518 CORE_ADDR.
005ef3d2 8519
fcf4f891
JT
85202002-05-22 Jason Thorpe <[email protected]>
8521
8522 * config/alpha/tm-nbsd.h: Include solib.h.
8523
cfef91e4
JT
85242002-05-22 Jason Thorpe <[email protected]>
8525
8526 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
8527 assumptions about the host's byte order.
8528
9964235a
JT
85292002-05-22 Jason Thorpe <[email protected]>
8530
8531 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
8532 to dependency list.
8533 * alphanbsd-tdep.c: Include solib-svr4.h.
8534 * shnbsd-tdep.c: Ditto.
8535
9eeef8ef
JT
85362002-05-22 Jason Thorpe <[email protected]>
8537
8538 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
8539 nbsd-tdep.h to dependency list.
8540 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
8541 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
8542 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
8543 nbsdaout.mh and nbsdelf.mh consistently.
8544 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
8545 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
8546 nbsdaout.mt and nbsdelf.mh consistently.
8547 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
8548 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
8549 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
8550 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
8551 a.out shared library stuff from here...
8552 * config/nm-nbsdaout.h: ...to here.
8553 * config/tm-nbsd.h: Remove.
8554 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
8555 * config/arm/nbsd.mh: Remove.
8556 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
8557 nbsd-tdep.o.
8558 * config/arm/nbsdaout.mh: New file.
8559 * config/arm/nbsdelf.mh: New file.
8560 * config/arm/nm-nbsdaout.h: New file.
8561 * config/i386/nbsd.mh: Remove.
8562 * config/i386/nbsd.mt: Remove.
8563 * config/i386/nbsdaout.mh: New file.
8564 * config/i386/nbsdaout.mt: New file.
8565 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8566 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
8567 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
8568 i386_register_u_addr): Remove.
8569 * config/i386/nm-nbsdaout.h: New file.
8570 * config/i386/nm-nbsdelf.h: Remove.
8571 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
8572 (USE_STRUCT_CONVENTION): Remove.
8573 * config/i386/tm-nbsdaout.h: New file.
8574 * config/i386/tm-nbsdelf.h: Remove.
8575 * config/m68k/nbsd.mh: Remove.
8576 * config/m68k/nbsd.mt: Remove.
8577 * config/m68k/nbsdaout.mh: New file.
8578 * config/m68k/nbsdaout.mt: New file.
8579 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
8580 * config/m68k/nm-nbsdaout.h: New file.
8581 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8582 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8583 * config/ns32k/nbsd.mh: Remove.
8584 * config/ns32k/nbsd.mt: Remove.
8585 * config/ns32k/nbsdaout.mh: New file.
8586 * config/ns32k/nbsdaout.mt: New file.
8587 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
8588 * config/ns32k/nm-nbsdaout.h: New file.
8589 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
8590 (IN_SOLIB_CALL_TRAMPOLINE): Define.
8591 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
8592 (SVR4_SHARED_LIBS): Remove.
8593 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
8594 * config/sparc/nbsd.mh: Remove.
8595 * config/sparc/nbsd.mt: Remove.
8596 * config/sparc/nbsdaout.mh: New file.
8597 * config/sparc/nbsdaout.mt: New file.
8598 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
8599 * config/sparc/nbsdelf.mt: New file.
8600 * config/sparc/nm-nbsdaout.h: New file.
8601 * config/sparc/nm-nbsdelf.h: Remove.
8602 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
8603 * config/sparc/tm-nbsdaout.h: New file.
8604
257ce470
JT
86052002-05-21 Jason Thorpe <[email protected]>
8606
8607 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
8608 mipsnbsd-tdep.c
8609 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
8610
76a6d5fe
JT
86112002-05-21 Jason Thorpe <[email protected]>
8612
8613 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
8614 shnbsd-nat.c.
8615 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
8616
45888261
JT
86172002-05-21 Jason Thorpe <[email protected]>
8618
8619 * NEWS: Note new MIPS NetBSD native configuration.
8620 * configure.host (mips*-*-netbsd*): New host.
8621 * configure.tgt (mips*-*-netbsd*): New target.
8622 * mipsnbsd-nat.c: New file.
8623 * mipsnbsd-tdep.c: New file.
8624 * mipsnbsd-tdep.h: New file.
8625 * config/mips/nbsd.mh: New file.
8626 * config/mips/nbsd.mt: New file.
8627 * config/mips/nm-nbsd.h: New file.
8628 * config/mips/tm-nbsd.h: New file.
8629
70f80edf
JT
86302002-05-21 Jason Thorpe <[email protected]>
8631
8632 * Makefile.in (SFILES): Add osabi.c.
8633 (COMMON_OBS): Add osabi.o.
8634 (osabi.o): New dependency list.
8635 * osabi.c: New file.
8636 * osabi.h: New file.
8637 * doc/gdbint.texinfo: Document new generic OS ABI framework.
8638
8639 * Makefile.in (alpha_tdep_h): Define and use instead of
8640 alpha-tdep.h.
8641 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
8642 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
8643 Remove.
8644 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
8645 * alpha-tdep.h: Include osabi.h.
8646 (alpha_abi): Remove.
8647 (gdbarch_tdep): Use generic OS ABI framework.
8648 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
8649 gdbarch_register_osabi.
8650 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
8651 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
8652 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
8653
8654 * Makefile.in (sh_tdep_h): Add osabi.h.
8655 * sh-tdep.h (sh_osabi): Remove.
8656 (gdbarch_tdep): Use generic OS ABI framework.
8657 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
8658 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
8659 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
8660 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
8661
8662 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
8663 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
8664 gdbarch_register_osabi.
8665 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
8666 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
8667 (get_elfosabi): Rename to...
8668 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
8669 ABI framework support routines.
8670 (arm_gdbarch_init): Use generic OS ABI framework.
8671 (arm_dump_tdep): Likewise.
8672 (_initialize_arm_tdep): Likewise.
8673 * arm-tdep.h: Include osabi.h.
8674 (arm_abi): Remove.
8675 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
8676 osabi member.
8677 (arm_gdbarch_register_os_abi): Remove prototype.
8678 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
8679 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
8680
8681 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
8682 * mips-tdep.c: Include osabi.h.
8683 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
8684 OS ABI framework.
8685
d194345b
KH
86862002-05-20 Kazu Hirata <[email protected]>
8687
8688 * h8300-tdep.c: Fix formatting.
8689
70c6b0d1
EZ
86902002-05-20 Elena Zannoni <[email protected]>
8691
8692 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
8693 printing vector registers.
8694
165b8e33
AC
86952002-05-19 Andrew Cagney <[email protected]>
8696
8697 From Fernando Nasser:
8698 * remote.c (remote_async_open_1): Re-throw the exception when the
8699 connection fails.
8700 (remote_cisco_open): Ditto.
8701 (remote_open_1): Ditto.
8702
36918e70
AC
87032002-05-19 Andrew Cagney <[email protected]>
8704
8705 * remote.c (remote_start_remote_dummy): Add uiout parameter.
8706 (remote_start_remote): Add uiout parameter. Pass through to
8707 remote_start_remote_dummy.
8708 (remote_open_1): Use catch_exception instead of catch_errors.
8709 (remote_async_open_1): Ditto.
8710 (remote_cisco_open): Ditto.
8711
ae44c0c4
AC
87122002-05-19 Andrew Cagney <[email protected]>
8713
8714 * remote.c (remote_start_remote): Replace PTR with void pointer.
8715 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
8716 static.
8717
8efe637d
AC
87182002-05-18 Andrew Cagney <[email protected]>
8719
8720 * gdb_indent.sh: Allow the script to be run in the sim directory.
8721
2f1b5984
MK
87222002-05-18 Mark Kettenis <[email protected]>
8723
f0f625e2
MK
8724 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
8725 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
8726
2f1b5984
MK
8727 * corelow.c (core_open): Only call set_gdbarch_from_file if
8728 exec_bfd is NULL.
8729
fc974602
AV
87302002-05-17 Andrey Volkov <[email protected]>
8731
8732 * h8300-tdep.c: Add support of EXR register
8733 * config/h8300/tm-h8300.h: Ditto.
8734
906709f4
AV
87352002-05-17 Andrey Volkov <[email protected]>
8736
8737 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
8738
6e591d68
AV
87392002-05-17 Andrey Volkov <[email protected]>
8740
8741 * h8300-tdep.c: Change literal regnums to REGNO.
8742
84f0252a
JB
87432002-05-17 Jim Blandy <[email protected]>
8744
e0e9281e
JB
8745 * NEWS: Note addition of macro support.
8746
84f0252a
JB
8747 Expand preprocessor macros in C expressions.
8748 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
8749 (scan_macro_expansion, scanning_macro_expansion,
8750 finished_macro_expansion): New function declarations.
8751 (expression_macro_lookup_func, expression_macro_lookup_baton): New
8752 variable declarations.
8753 * parser-defs.h (expression_context_pc): New declaration.
8754 * parse.c (expression_context_pc): New variable.
8755 (parse_exp_1): Set expression_context_pc, as well as
8756 expression_context_block.
8757 * c-exp.y (yylex): If we're not already reading the result of a
8758 macro expansion, try to macro-expand the next token. When we're
8759 done scanning a macro expansion, switch back to the mainline text.
8760 Commas and `if's in a macro's expansion don't terminate the input.
8761 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
8762 (macro_original_text, macro_expanded_text,
8763 expression_macro_lookup_func, expression_macro_lookup_baton): New
8764 variables.
8765 (scan_macro_expansion, scanning_macro_expansion,
8766 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
8767 c_preprocess_and_parse): New functions.
8768 (c_language_defn, cplus_language_defn, asm_language_defn): Call
8769 c_preprocess_and_parse, instead of c_parse.
8770 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
8771 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
8772
1c509ca8
JR
8773Fri May 17 14:26:19 2002 J"orn Rennecke <[email protected]>
8774
8775 * sh-tdep.c (gdb_print_insn_sh64): Delete.
8776 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
8777 (sh_gdbarch_init): Always use gdb_print_insn_sh.
8778
2250ee0c
CV
87792002-05-17 Corinna Vinschen <[email protected]>
8780
8781 * NEWS: Add section for multi-arched targets. Add v850 to that section.
8782
ab3b8126
JT
87832002-05-17 Jason Thorpe <[email protected]>
8784
8785 * Makefile.in (sh_tdep_h): Define and use.
8786 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
8787 register enum): Move to...
8788 * * sh-tdep.h: ...here.
8789 * sh-tdep.c: Include sh-tdep.h.
8790 * sh3-rom.c: Likewise.
8791 * shnbsd-tdep.c: Likewise.
8792
ed9d4749
MS
87932002-05-16 Michael Snyder <[email protected]>
8794
8795 * arm-tdep.c: Spelling fix in comment.
8796
2e276125
JB
87972002-05-16 Jim Blandy <[email protected]>
8798
6821892e
JB
8799 Add commands for manually expanding macros and showing their
8800 definitions.
8801 * macrocmd.c, macroscope.c, macroscope.h: New files.
8802 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
8803 (macroscope_h): New variable.
8804 (HFILES_NO_SRCDIR): Add macroscope.h.
8805 (COMMON_OBS): Add macrocmd.o, macroscope.o.
8806 (macroscope.o, macrocmd.o): New rules.
8807
2e276125
JB
8808 Teach the Dwarf 2 reader to read macro information.
8809 * dwarf2read.c: #include "macrotab.h".
8810 (dwarf_macinfo_buffer): New variable.
8811 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
8812 dwarf_macinfo_size.
8813 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
8814 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
8815 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
8816 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
8817 dwarf2_macro_spaces_in_definition): New complaints.
8818 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
8819 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
8820 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
8821 the partial symbol table.
8822 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
8823 from what's recorded in the partial symbol table.
8824 (read_file_scope): If the compilation unit has a
8825 `DW_AT_macro_info' attribute, read its macro information.
8826 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
8827
2f53fe6c
DJ
88282002-05-16 Daniel Jacobowitz <[email protected]>
8829
8830 Fix PR gdb/546
8831 * ser-tcp.c: Don't include <netinet/udp.h>.
8832
2be99286
SC
88332002-05-16 Stephane Carrez <[email protected]>
8834
8835 * MAINTAINERS: Update my email address.
8836
c9af212b 88372002-05-16 Richard Earnshaw <[email protected]>
8501bbeb
RE
8838
8839 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
8840 include file of the same name.
8841
bf5f1a52
CV
88422002-05-16 Corinna Vinschen <[email protected]>
8843
8844 * configure.tgt: Mark v850 as multi-arched.
8845 * config/v850/tm-v850.h: Remove file.
8846 * config/v850/v850.mt: Eliminate TM_FILE.
8847
435e042a
CV
88482002-05-16 Corinna Vinschen <[email protected]>
8849
8850 * v850-tdep.c: Full multi-arch.
8851 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
8852 Define GDB_MULTI_ARCH to 2.
8853
9819c6c8
PM
88542002-05-16 Pierre Muller <[email protected]>
8855
8856 * p-exp.y (current_type): New static variable.
8857 Carries the type of the expression at the position that is parsed.
8858 (push_current_type, pop_current_type): Two new functions. Used
8859 to store/restore current_type in expression on specific tokens.
c9af212b
RE
8860 (search_field): New static variable. Set to one after parsing a point
8861 as at that point only a FIELDNAME token should be searched.
9819c6c8
PM
8862 (FIELDNAME): New token. After a point only a token belonging to
8863 current_type type definition is allowed.
8864 (all over token rules): reset and change current_type according
8865 to rules.
8866 (exp '[' rule): insert implicit array index field if
8867 exp is a pascal string type.
8868
3a06899a
CV
88692002-05-16 Corinna Vinschen <[email protected]>
8870
8871 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
8872 frame info. Use frame_info's saved_regs instead of matching member
8873 in extra_frame_info throughout.
8874 (v850_frame_init_saved_regs): New function.
8875 (v850_init_extra_frame_info): Move most functionality into
8876 v850_frame_init_saved_regs().
8877 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
8878 (v850_frame_find_saved_regs): Remove declaration.
8879 (FRAME_FIND_SAVED_REGS): Remove definition.
8880 (v850_frame_init_saved_regs): Add declaration.
8881 (FRAME_INIT_SAVED_REGS): Add definition.
8882
6ed14b0e
CV
88832002-05-16 Corinna Vinschen <[email protected]>
8884
8885 * v850-tdep.c: Begin multi-arch'ing v850.
8886 (v850_target_architecture_hook): Remove function.
8887 (v850_gdbarch_init): New function. Add code previously in
8888 v850_target_architecture_hook().
8889 (_initialize_v850_tdep): Don't set target_architecture_hook.
8890 Call register_gdbarch_init() instead.
8891
42725910
DJ
88922002-05-16 Daniel Jacobowitz <[email protected]>
8893
8894 * gdbtypes.h (struct cplus_struct_type): Remove args field.
8895 * hpread.c (hpread_read_struct_type): Remove assignments to args.
8896 (fixup_class_method_type): Likewise.
8897
99d9066e
JB
88982002-05-15 Jim Blandy <[email protected]>
8899
8900 Add macro structures to GDB's symbol tables. Nobody puts anything
8901 in them yet.
8902 * symtab.h (struct symtab): New member: `macro_table'.
8903 * buildsym.h (pending_macros): New global variable.
8904 * buildsym.c: #include "macrotab.h".
8905 (buildsym_init): Initialize `pending_macros'.
8906 (end_symtab): If we found macro information while reading a CU's
8907 debugging info, do build a symtab structure for it. Make the
8908 symtab point to the macro information, and clear the
8909 `pending_macros' pointer which held it while we were reading the
8910 debug info.
8911 (really_free_pendings): Free any pending macro table.
8912 * objfiles.h (struct objfile): New member: `macro_cache'.
8913 * objfiles.c (allocate_objfile): Set allocate and free functions
8914 for the macro cache's objstack.
8915 (free_objfile): Empty the macro cache's obstack.
8916 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
8917 set new allocate and free functions for it.
8918 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
8919 free functions for the macro cache's objstack. (Why is this
8920 function building its own objfile?)
8921 * symmisc.c (print_objfile_statistics): Print statistics on the
8922 macro bcache.
8923 * Makefile.in: Note that buildsym.o depends on macrotab.h.
8924
c899585b
RE
89252002-05-15 Richard Earnshaw <[email protected]>
8926
8927 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
8928 (REGISTER_U_ADDR): Delete definition.
8929 (arm_register_u_addr): Delete declaration.
8930
a6cdd8c5
RE
89312002-05-15 Richard Earnshaw <[email protected]>
8932
8933 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
8934 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
8935
c97dcfc7
AC
89362002-05-14 Andrew Cagney <[email protected]>
8937
8938 * regcache.c (register_valid): Revise comments refering to "Not
8939 available" and "unavailable".
8940 * frame.c (frame_register_read): Ditto.
8941 * findvar.c (value_of_register): Ditto.
8942
93021b7d
AC
89432002-05-15 Andrew Cagney <[email protected]>
8944
8945 * Makefile.in (remote_sim_h): Replace remote-sim_h.
8946 (remote-sim.o): Update dependencies.
8947 (d10v-tdep.o): Specify dependencies.
8948 (sim_d10v_h): Define.
8949
a86bc61c
JB
89502002-05-14 Jim Blandy <[email protected]>
8951
8952 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
8953 * macrotab.c (macro_lookup_inclusion, find_definition,
8954 new_macro_table): Same.
8955
8956 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
8957 not `! strcmp ()'. This is a dubious improvement.
8958 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
8959
8960 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
8961 although it's not necessary, to avoid a warning.
8962
2fdde8f8
DJ
89632002-05-14 Daniel Jacobowitz <[email protected]>
8964
8965 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
8966 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
8967 TYPE_INSTANCE_FLAGS.
8968 (struct main_type): New.
8969 (struct type): Move most members to struct main_type. Change
8970 cv_type and as_type to new type_chain member. Add instance_flags.
8971 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
8972 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
8973 (finish_cv_type): Remove prototype.
8974 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
8975 Set TYPE_CHAIN.
8976 (alloc_type_instance): New function.
8977 (smash_type): New function.
8978 (make_pointer_type, make_reference_type, make_function_type)
8979 (smash_to_member_type, smash_to_method_type): Call smash_type.
8980 (make_qualified_type): New function.
8981 (make_type_with_address_space): Call make_qualified_type.
8982 (make_cv_type): Likewise.
8983 (finish_cv_type): Remove unnecessary function.
8984 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
8985 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
8986 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
8987 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
8988 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
8989 * hpread.c (hpread_read_struct_type): Likewise.
8990 * stabsread.c (read_struct_type): Likewise.
8991
843fedf4
EZ
89922002-05-14 Elena Zannoni <[email protected]>
8993
8994 * configure.tgt: Add a catch all sh* target, for cases like
8995 sh[2,3,4]-elf and sh-hms.
8996
05a6c72c
KS
89972002-05-14 Keith Seitz <[email protected]>
8998
8999 * event-loop.c (create_file_handler): Don't do anything but
9000 update data when we are given a fd which we are already
9001 monitoring.
9002
5d085aaf
ML
90032002-05-14 Michal Ludvig <[email protected]>
9004
9005 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9006 (update_context): Use __func__ in warnings.
9007
9db8d71f
DJ
90082002-05-14 Daniel Jacobowitz <[email protected]>
9009
9010 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9011 and tcp_close to net_open and net_close.
9012 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9013 using UDP if requested. Don't try to disable Nagle on UDP
9014 sockets.
9015 * remote.c (remote_serial_open): New function. Warn about UDP.
9016 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9017
5dbc6baa
EZ
90182002-05-13 Elena Zannoni <[email protected]>
9019
9020 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9021
cc3023f7
EZ
90222002-05-13 Elena Zannoni <[email protected]>
9023
9024 * configure.tgt: Remove sh-hms target.
9025 * MAINTAINERS: Don't list sh-hms as a separate target.
9026
ec2bcbe7
JB
90272002-05-13 Jim Blandy <[email protected]>
9028
9029 Add first preprocessor macro-expansion files.
9030 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9031 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9032 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9033 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9034 (COMMON_OBS): Add macrotab.o, macroexp.o.
9035 (macroexp.o, macrotab.o): New rules.
9036
6d531722
AC
90372002-05-13 Andrew Cagney <[email protected]>
9038
9039 * config/m88k/tm-m88k.h: Update copyright.
9040 (m88k_target_write_pc): Declare
9041 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
9042 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
9043 (SHIFT_INST_REGS): Update definition.
9044 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
9045 using old definition of TARGET_WRITE_PC.
9046 * regcache.c (generic_target_write_pc): Delete code handling
9047 NNPC_REGNUM.
9048 * gdbarch.sh (NNPC_REGNUM): Delete.
9049 * gdbarch.h, gdbarch.c: Regenerate.
9050
3e3f2739
RE
90512002-05-13 Richard Earnshaw <[email protected]>
9052
9053 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
9054 builtin reg number.
9055
0004e5a2
DJ
90562002-05-13 Daniel Jacobowitz <[email protected]>
9057
9058 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
9059 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
9060 (gen_address_of, gen_struct_ref, gen_repeat): Use type
9061 access macros.
9062 * c-typeprint.c (cp_type_print_method_args): Likewise.
9063 (c_type_print_args): Likewise.
9064 * d10v-tdep.c (d10v_push_arguments): Likewise.
9065 (d10v_extract_return_value): Likewise.
9066 * expprint.c (print_subexp): Likewise.
9067 * gdbtypes.c (lookup_primitive_typename): Likewise.
9068 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
9069 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
9070 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
9071 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
9072 (TYPE_VECTOR): Likewise.
9073 * hpread.c (hpread_read_struct_type)
9074 (fix_static_member_physnames, fixup_class_method_type)
9075 (hpread_type_lookup): Likewise.
9076 * mdebugread.c (parse_symbol, parse_type): Likewise.
9077 * p-lang.c (is_pascal_string_type): Likewise.
9078 * valops.c (hand_function_call): Likewise.
9079 * x86-64-tdep.c (classify_argument): Likewise.
9080
9081 * hpread.c (hpread_read_function_type)
9082 (hpread_read_doc_function_type): Call replace_type.
9083 * dstread.c (create_new_type): Delete.
9084 (decode_dst_structure, process_dst_function): Call alloc_type.
9085 Use type access macros.
9086
dff95cc7
MK
90872002-05-12 Mark Kettenis <[email protected]>
9088
9089 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
9090 the're not supported by the current architecture.
9091 (i387_fill_fxsave): Likewise.
9092
bbcd32ad
FF
90932002-05-12 Fred Fish <[email protected]>
9094
9095 * symfile.c (default_symfile_offsets): Arrange for uninitialized
9096 sect_index_xxx members to index the first slot in section_offsets
9097 if all of the section_offsets are zero.
9098
89cf4787
MK
90992002-05-12 Mark Kettenis <[email protected]>
9100
9101 * configure.tgt (sparc-*openbsd): Remove entry accidentially
9102 checked in with last change.
9103
1f77ffc5
MK
91042002-05-12 Mark Kettenis <[email protected]>
9105
9106 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
9107 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
9108 config.sub.
9109
89b8b4a9
DJ
91102002-05-12 Daniel Jacobowitz <[email protected]>
9111
9112 * Makefile.in: Update dependencies.
9113
14a5e767
AC
91142002-05-11 Andrew Cagney <[email protected]>
9115
9116 * language.c (local_hex_string_custom): Simplify. Do not depend
9117 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
9118
9119 * memattr.c (mem_info_command): Replace calls to
9120 longest_local_hex_string and longest_local_hex_string_custom.
9121 * buildsym.c (make_blockvector): Ditto.
9122 * solib.c (info_sharedlibrary_command): Ditto.
9123 * tracepoint.c (tracepoints_info): Ditto.
9124 * symtab.c (print_msymbol_info): Ditto.
9125
9126 * language.c (local_hex_string): Delete.
9127 (local_hex_string_custom): Delete.
9128 (longest_local_hex_string): Rename to local_hex_string.
9129 (longest_local_hex_string_custom): Rename to
9130 local_hex_string_custom.
9131 * language.h (local_hex_string): Change parameter type to LONGEST.
9132 (local_hex_string_custom): Ditto.
9133 (longest_local_hex_string): Delete declaration.
9134 (longest_local_hex_string_custom): Ditto.
9135
9136 * solib.c: Update copyright.
9137 * memattr.c: Update copyright.
9138
13d01224
AC
91392002-05-11 Andrew Cagney <[email protected]>
9140
9141 * arch-utils.h (legacy_register_to_value): Declare.
9142 (legacy_value_to_register): Declare.
9143 (legacy_convert_register_p): Declare.
9144 * arch-utils.c (legacy_register_to_value): New function.
9145 (legacy_value_to_register): New function.
9146 (legacy_convert_register_p): New function.
9147
9148 * gdbarch.sh (REGISTER_TO_VALUE): Define.
9149 (VALUE_TO_REGISTER): Define.
9150 (CONVERT_REGISTER_P): Define.
9151 * gdbarch.h, gdbarch.c: Regenerate.
9152
9153 * valops.c (value_assign): Use CONVERT_REGISTER_P and
9154 VALUE_TO_REGISTER.
9155 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
9156 CONVERT_REGISTER_P.
9157
4a1970e4
DJ
91582005-05-11 Daniel Jacobowitz <[email protected]>
9159 Peter Schauer <[email protected]>
9160
9161 * Makefile.in: Update dependencies for valops.c.
9162 * valops.c: Include "gdb_assert.h".
9163 (typecmp): Skip THIS parameter to methods.
9164 (find_method_list): Remove static_memfuncp argument,
9165 update callers. Check for stub methods.
9166 (find_value_oload_method_list): Don't set *static_memfuncp.
9167 (find_overload_match): Don't check for stub methods. Assert
9168 that methods are not stubbed. Handle static methods.
9169 (value_find_oload_method_list): Remove static_memfuncp argument.
9170 * gdbtypes.c (check_stub_method): Do not add THIS pointer
9171 to the argument list for static stub methods.
9172 * value.h (value_find_oload_method_list): Update prototype.
9173
b2e75d78
AC
91742002-05-11 Andrew Cagney <[email protected]>
9175
9176 * arch-utils.h (generic_register_size): Declare.
9177 (generic_register_raw_size, generic_register_virtual_size): Delete
9178 declarations.
9179 * arch-utils.c (generic_register_raw_size): Delete.
9180 (generic_register_size): New function.
9181 (generic_register_virtual_size): Delete.
9182
9183 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
9184 default generic_register_size.
9185 * gdbarch.h, gdbarch.c: Re-generate.
9186
9187 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
9188 register_virtual_size.
9189 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
9190 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9191
451fbdda
AC
91922002-05-11 Andrew Cagney <[email protected]>
9193
9194 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
9195 * gdbarch.h, gdbarch.c: Regenerate.
9196 * gnu-v3-abi.c: Update copyright.
9197 (vtable_address_point_offset): Update.
9198 (gnuv3_rtti_type): Update.
9199 (gnuv3_baseclass_offset): Update.
9200 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
9201 (init_fetch_link_map_offsets): Update.
9202 * remote.c (get_remote_state): Update.
9203
6d2f5cea
DJ
92042002-05-11 Daniel Jacobowitz <[email protected]>
9205
9206 * TODO: Remove value_headof/value_from_vtable_info comment.
9207 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
9208 * values.c (value_headof, value_from_vtable_info): Delete.
9209 * value.h (value_from_vtable_info): Delete prototype.
9210
d2324da4
AC
92112002-05-11 Andrew Cagney <[email protected]>
9212
9213 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
9214 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
9215 $(gdb_regex_h).
9216 (gdb_assert_h): Define.
9217 (gdb_wait_h): Define.
9218 (gdb_regex_h): Define.
9219
5c717440
DJ
92202002-05-11 Daniel Jacobowitz <[email protected]>
9221
9222 From Peter Schauer <[email protected]>:
9223 * linespec.c (find_methods): Handle GCC 3.x template constructors.
9224
6c7861b3
JT
92252002-05-11 Jason Thorpe <[email protected]>
9226
9227 * nbsd-tdep.c: Fix comment.
9228
ea5bc2a6
JT
92292002-05-11 Jason Thorpe <[email protected]>
9230
9231 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
9232 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
9233 (nbsd-tdep.o): New dependency list.
9234 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
9235 nbsd-tdep.h.
9236 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
9237 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
9238 * nbsd-tdep.c: New file.
9239 * nbsd-tdep.h: New file.
9240 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
9241 nbsd-tdep.h.
9242 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
9243 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9244 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
9245 * config/sh/nbsd.mt (TDEPFILES): Ditto.
9246
b28da865
JT
92472002-05-11 Jason Thorpe <[email protected]>
9248
9249 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
9250 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
9251 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
9252 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
9253 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
9254 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
9255
4b8ff1fa
JT
92562002-05-11 Jason Thorpe <[email protected]>
9257
9258 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
9259 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9260 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
9261 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
9262 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
9263 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
9264 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
9265
dfe6eb1f
JT
92662002-05-11 Jason Thorpe <[email protected]>
9267
9268 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
9269 fetch_elfcore_registers to...
9270 * i386nbsd-tdep.c: ...here.
9271 (i386nbsd_use_struct_convention): Rename to...
9272 (i386nbsd_aout_use_struct_convention): ...this.
9273 (i386nbsd_supply_reg): New function.
9274 (i386nbsd_fill_reg): New function.
9275 (fetch_core_registers): Use i386nbsd_supply_reg.
9276 (fetch_elfcore_registers): Likewise.
9277 (_initialize_i386nbsd_tdep): New function.
9278 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
9279 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9280 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
9281 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
9282 (i386nbsd_aout_use_struct_convention): ...this.
9283
20cb8cda
JT
92842002-05-11 Jason Thorpe <[email protected]>
9285
9286 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
9287 (store_inferior_registers): Use shnbsd_fill_reg.
9288 * shnbsd-tdep.c (sh_nbsd_supply_registers,
9289 sh_nbsd_supply_register): Collapse into...
9290 (shnbsd_supply_reg): ...this.
9291 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
9292 (shnbsd_fill_reg): ...this.
9293 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
9294 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
9295 (fetch_core_registers): Use shnbsd_supply_reg.
9296 (fetch_elfcore_registers): Use shnbsd_supply_reg.
9297 (sh_nbsd_core_fns): Rename to...
9298 (shnbsd_core_fns): ...this.
9299 (sh_nbsd_elfcore_fns): Rename to...
9300 (shnbsd_elfcore_fns): ...this.
9301 (sh_nbsd_init_abi): Rename to...
9302 (shnbsd_init_abi): ...this.
9303 (_initialize_sh_nbsd_tdep): Rename to...
9304 (_initialize_shnbsd_tdep): ...this.
9305 * shnbsd-tdep.h (sh_nbsd_supply_registers,
9306 sh_nbsd_supply_register, sh_nbsd_fill_registers,
9307 sh_nbsd_fill_register): Remove prototypes.
9308 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
9309
e750d25e
JT
93102002-05-11 Jason Thorpe <[email protected]>
9311
9312 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
9313 (i387-nat.o): Delete dependency list.
9314 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
9315 (x86-64-linux-nat.o): Likewise.
9316 * i387-nat.c: Delete file, moving contents to...
9317 * i387-tdep.c: ...here.
9318 * i387-nat.h: Rename...
9319 * i387-tdep.h: ...to this.
9320 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
9321 * i386-linux-nat.c: Likewise.
9322 * i386bsd-nat.c: Likewise.
9323 * i386gnu-nat.c: Likewise.
9324 * i386nbsd-nat.c: Likewise.
9325 * i386v4-nat.c: Likewise.
9326 * x86-64-linux-nat.c: Likewise.
9327 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
9328 * config/i386/go32.mh (NATDEPFILES): Likewise.
9329 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
9330 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
9331 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
9332 * config/i386/linux.mh (NATDEPFILES): Likewise.
9333 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
9334 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
9335 * config/i386/obsd.mh (NATDEPFILES): Likewise.
9336 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
9337
1aee598a
JT
93382002-05-11 Jason Thorpe <[email protected]>
9339
9340 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
9341 (alphanbsd-nat.o): Remove dependency list.
9342 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
9343 * alphanbsd-nat.c: Delete. Contents moved to...
9344 * alphanbsd-tdep.c: ...here.
9345 (_initialize_alphanbsd_tdep): Register core functions.
9346 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
9347
12bcb0fe
JT
93482002-05-11 Jason Thorpe <[email protected]>
9349
9350 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
9351 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
9352 (alphanbsd-nat.o): Likewise.
9353 (alphabsd-tdep.o): New dependency list.
9354 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
9355 (fill_gregset): Use alphabsd_fill_reg.
9356 (supply_fpregset): Use alphabsd_supply_fpreg.
9357 (fill_fpregset): Use alphabsd_fill_fpreg.
9358 (fetch_inferior_registers): Use struct reg and struct fpreg
9359 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
9360 and alphabsd_supply_fpreg.
9361 (store_inferior_registers): Use struct reg and struct fpreg
9362 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
9363 and alphabsd_fill_fpreg.
9364 * alphabsd-tdep.c: New file.
9365 * alphabsd-tdep.h: New file.
9366 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
9367 (fetch_elfcore_registers): Use alphabsd_supply_reg and
9368 alphabsd_supply_fpreg.
9369 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
9370 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
9371
361d1df0
EC
93722002-05-11 Eric Christopher <[email protected]>
9373
9374 * mips-tdep.c (mips_double_register_type): Fix thinko.
9375 (mips_single_register_type): Ditto.
9376 * MAINTAINERS: Add self.
9377
92dd7cee
MK
93782002-05-11 Mark Kettenis <[email protected]>
9379
9380 * i387-nat.c (i387_supply_register, i387_fill_fsave,
9381 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
9382 right thing on architectures with different endianness and/or
9383 integer sizes.
9384
e27da16d
JT
93852002-05-10 Jason Thorpe <[email protected]>
9386
9387 From Christian Limpach <[email protected]>
9388 * configure.in: Change sed expression which comments out
9389 NATDEPFILES to also comment out continuation lines.
9390 * configure: Regenerate.
9391
ddde02bd
EZ
93922002-05-10 Elena Zannoni <[email protected]>
9393
9394 * sh-tdep.c: Clean up code erroneously reintroduced by previous
9395 big patch.
9396
1c922164
EZ
93972002-05-10 Elena Zannoni <[email protected]>
9398
9399 * sh-tdep.c: Include correct file.
9400
283150cd
EZ
94012002-05-10 Elena Zannoni <[email protected]>
9402
9403 New support for sh64-elf (sh5) target.
9404
9405 * configure.tgt: For sh64-elf target, default to sh-elf.
9406
9407 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
9408 (struct gdbarch_tdep): Add new fields for new registers and ABI
9409 info.
361d1df0 9410
283150cd
EZ
9411 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
9412 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
9413 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
9414 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
9415 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
9416 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
9417 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
9418 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
9419 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
9420 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
9421 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
9422 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
9423 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
9424 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
9425 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
9426 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
9427 sh64_get_gdb_regnum, sh64_media_reg_base_num,
9428 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
9429 sign_extend, sh64_nofp_frame_init_saved_regs,
9430 sh64_init_extra_frame_info, sh64_get_saved_register,
9431 sh64_extract_struct_value_address, sh64_pop_frame,
9432 sh64_push_arguments, sh64_extract_return_value,
9433 sh64_store_return_value, sh64_show_media_regs,
9434 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
9435 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
9436 sh_sh64_register_virtual_type,
9437 sh_sh64_register_convert_to_virtual,
9438 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
9439 sh64_register_read, sh64_pseudo_register_write,
9440 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
9441 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
9442 sh64_do_pseudo_register, sh_compact_do_registers_info,
9443 sh64_do_registers_info, sh_gdbarch_init): New functions.
9444
3117ed25
EZ
94452002-05-10 Elena Zannoni <[email protected]>
9446
9447 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
9448
2654e6d4
DJ
94492002-05-10 Daniel Jacobowitz <[email protected]>
9450
9451 * linespec.c (decode_line_1): Check for a double quote after
9452 a filename correctly.
9453
9ab3e532
JB
94542002-05-10 Jim Blandy <[email protected]>
9455
9456 Properly track the size of the current objfile's .debug_line section.
9457 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
9458 (DWARF_LINE_SIZE): New macro.
9459 (dwarf2_build_psymtabs_hard): Record the line section's size in
9460 the partial symbol table.
9461 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
9462 symbol table.
9463
126fa72d
PS
94642002-05-10 Petr Sorfa <[email protected]>
9465
9466 * ia64-tdep.c: Handle breakpoints on L instruction type
9467 in MLX instruction bundle by moving the breakpoint to
9468 the third slot (X instruction type) as L holds only data.
9469
1f077a3e
KB
94702002-05-10 Kevin Buettner <[email protected]>
9471
9472 * dbxread.c (discarding_local_symbols_complaint): New complaint.
9473 (process_one_symbol): Complain about discarding local symbols
9474 due to a misplaced N_LBRAC entry.
9475
8120c9d5 94762002-05-09 Elena Zannoni <[email protected]>
361d1df0
EC
9477
9478 From Daniel Berlin <[email protected]>
8120c9d5
EZ
9479 * linespec.c (find_toplevel_char): '<' and '>' also increase and
9480 decrease the depth we are at, in the case of templates.
361d1df0 9481
67b2c998
DJ
94822002-05-09 Daniel Jacobowitz <[email protected]>
9483
9484 * mips-tdep.c (mips_float_register_type): New function.
9485 (mips_double_register_type): New function.
9486 (mips_print_register): Use them.
9487 (do_fp_register_row): Likewise.
9488
fd326606
DJ
94892002-05-09 Daniel Jacobowitz <[email protected]>
9490
6609d9af 9491 * signals/signals.c (signals): Remove conditional compilation around
fd326606 9492 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
6609d9af 9493 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
fd326606 9494
bef35864
MS
94952002-05-09 Michael Snyder <[email protected]>
9496
9497 * remote-rdp.c (remote_rdp_can_run): Remove.
9498
c55a3f73
TT
94992002-05-09 Tom Tromey <[email protected]>
9500
9501 * jv-valprint.c (java_val_print): Handle `char' as a special case
9502 of TYPE_CODE_INT.
9503
b8d5e71d
MS
95042002-05-09 Michael Snyder <[email protected]>
9505
9506 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
9507 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
361d1df0 9508 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
b8d5e71d 9509 str r(0123),[sp,#nn].
361d1df0 9510 (arm_skip_prologue): Ditto. Also make disassembly
b8d5e71d
MS
9511 order-independent by placing it in a loop.
9512
e2cd42dd
MS
95132002-05-06 Michael Snyder <[email protected]>
9514
9515 * stabsread.c (read_type): Add recognition for new attribute:
9516 "@V;" means that an array type is actually a vector.
9517 This is analogous to the vector flag that's been added to dwarf2.
9518
3ce1502b
MK
95192002-05-09 Mark Kettenis <[email protected]>
9520
9521 * i386-tdep.h (i386_abi): New enum.
9522 (struct gdbarch_tdep): Replace os_ident member with abi.
9523 (i386_gdbarch_register_os_abi): New prototype.
9524 * i386-tdep.c (i386_abi_names): New array.
9525 (process_note_abi_tag_sections): Removed.
9526 (process_note_sections): New function.
9527 (i386_elf_abi_from_note, i386_elf_abi): New functions.
9528 (struct i386_abi_handler): New struct.
9529 (i386_abi_handler_list): New variable.
9530 (i386_gdbarch_register_os_abi): New function.
9531 (i386_gdbarch_init): Adapt for the changes given above.
9532
084c156a
DJ
95332002-05-08 Daniel Jacobowitz <[email protected]>
9534
9535 * gregset.h: Say "GNU/Linux".
9536
6599f021
EZ
95372002-05-08 Elena Zannoni <[email protected]>
9538
9539 * gdbtypes.c : Add new builtin type for 64 bit vectors.
9540 (build_gdbtypes): Build builtin_type_v2_float.
9541 (_initialize_gdbtypes): Register new builtin type.
9542
40af4b0c
AC
95432002-05-08 Andrew Cagney <[email protected]>
9544
9545 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
9546 (clear_gdbarch_swap): New function.
9547 (initialize_non_multiarch): Call.
9548 (gdbarch_update_p): Before calling init(), swap out and clear the
9549 existing architecture.
9550 * gdbarch.c: Regenerate.
9551
4fe84f46
JT
95522002-05-08 Jason Thorpe <[email protected]>
9553
9554 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
9555 alphanbsd-tdep.c.
9556
4015edd1
JT
95572002-05-08 Jason Thorpe <[email protected]>
9558
9559 * sh-nbsd-nat.c: Rename to...
9560 * shnbsd-nat.c: ...this.
9561 * sh-nbsd-tdep.c: Rename to...
9562 * shnbsd-tdep.c: ...this.
9563 * sh-nbsd-tdep.h: Rename to...
9564 * shnbsd-tdep.h: ...this.
9565 * config/sh/nbsd.mh: Use shnbsd-nat.o.
9566 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
9567
0e2bd219
RE
95682002-05-08 Richard Earnshaw <[email protected]>
9569
9570 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
9571 concatenation for command help messages.
9572
13a38d45
JT
95732002-05-08 Jason Thorpe <[email protected]>
9574
9575 * NEWS: Note new sh*-*-netbsdelf* configuration.
9576 * configure.host: Set gdb_host_cpu to sh for all sh*.
9577 (sh*-*-netbsdelf*): New host.
9578 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
9579 (sh*-*-netbsdelf*): New target.
9580 * sh-nbsd-nat.c: New file.
9581 * sh-nbsd-tdep.c: New file.
9582 * sh-nbsd-tdep.h: New file.
9583 * config/sh/nbsd.mh: New file.
9584 * config/sh/nbsd.mt: New file.
9585 * config/sh/nm-nbsd.h: New file.
9586 * config/sh/tm-nbsd.h: New file.
9587
d658f924
JT
95882002-05-08 Jason Thorpe <[email protected]>
9589
9590 * sh-tdep.c (sh_osabi_names): Declare.
9591 (process_note_abi_tag_sections): New function.
9592 (get_elfosabi): Ditto.
9593 (sh_gdbarch_register_os_abi): Ditto.
9594 (sh_dump_tdep): Ditto.
9595 _initialize_sh_tdep): Use gdbarch_register to register
9596 sh_gdbarch_init and sh_dump_tdep.
9597 * config/sh/tm-sh.h (sh_osabi): Declare.
9598 (gdbarch_tdep): Add sh_osabi and osabi_name members.
9599
848cfffb
AC
96002002-05-07 Andrew Cagney <[email protected]>
9601
9602 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
9603 (thumb_scan_prologue): Ditto.
9604 (arm_find_callers_reg): Ditto.
9605 (arm_frame_chain): Ditto.
9606 (arm_init_extra_frame_info): Ditto.
9607 (arm_frame_saved_pc): Ditto.
9608 (arm_pop_frame): Ditto.
9609 (arm_push_return_address): New function.
9610 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
9611 call_dummy_location, call_dummy_breakpoint_offset_p,
9612 call_dummy_breakpoint_offset, call_dummy_p,
9613 call_dummy_stack_adjust_p, call_dummy_words,
9614 sizeof_call_dummy_words, call_dummy_start_offset,
9615 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
9616 call_dummy_address, push_return_address and push_dummy_frame for
9617 generic dummy frames.
9618
e7d717c0
JT
96192002-05-07 Jason Thorpe <[email protected]>
9620
9621 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
9622 size computation for alloca.
9623 (sh_fp_frame_init_saved_regs): Likewise.
9624
7bbcf283
RE
96252002-05-07 Richard Earnshaw <[email protected]>
9626
9627 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
9628 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
361d1df0 9629 * arm-tdep.c (arm_store_return_value): Use them.
7bbcf283
RE
9630 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
9631 * remote-rdp.c (remote_rdp_fetch_register): Use
9632 ARM_MAX_REGISTER_RAW_SIZE.
9633 (remote_rdp_store_register): Likewise.
9634
4657573b
ML
96352002-05-07 Michal Ludvig <[email protected]>
9636
361d1df0 9637 * dwarf2cfi.c: Code cleanup, removed unused variables,
4657573b
ML
9638 added default labels to switch {} statements.
9639 * x86-64-tdep.c: Ditto.
9640 * x86-64-linux-nat.c: Ditto.
9641
010f3b2f
JT
96422002-05-07 Jason Thorpe <[email protected]>
9643
9644 * solib.h: Protect against multiple inclusion.
9645
debd256d
JB
96462002-05-06 Jim Blandy <[email protected]>
9647
9ab3e532
JB
9648 Add first preprocessor macro-expansion files.
9649 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9650 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9651 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9652 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9653 (COMMON_OBS): Add macrotab.o, macroexp.o.
9654 (macroexp.o, macrotab.o): New rules.
9655
debd256d
JB
9656 Separate the job of reading the line number info statement program
9657 header (...expialidocious) out into its own function.
9658 * dwarf2read.c (struct line_head, struct filenames, struct
9659 directories): Replace with...
9660 (struct line_header): New structure, containing the full
9661 contents of the statement program header, including the
9662 include directory and file name tables.
9663 (read_file_scope): If we have line number info, instead of just
9664 calling dwarf_decode_lines to do all the work, call
9665 dwarf_decode_line_header first to get a `struct line_header'
9666 containing the data in the statement program header, and then
9667 pass that to dwarf_decode_lines, which will pick up where that
9668 left off. Be sure to clean up the `struct line_header' object.
9669 (dwarf_decode_line_header, free_line_header, add_include_dir,
9670 add_file_name): New functions.
9671 (dwarf_decode_lines): Move all the code to read the statement
9672 program header into dwarf_decode_line_header. Take the line
9673 header it built as the first argument, instead of the offset to
9674 the compilation unit's line number info. Use the new `struct
9675 line_header' type instead of the old structures. No need to do
9676 cleanups here now, since we don't allocate anything.
9677 (dwarf2_statement_list_fits_in_line_number_section,
9678 dwarf2_line_header_too_long): New complaints.
9679
ac3aafc7
EZ
96802002-05-06 Elena Zannoni <[email protected]>
9681
9682 * gdbtypes.c (init_vector_type): New function.
9683 (build_builtin_type_vec128): Simplify the representation of SIMD
9684 registers.
9685 (build_gdbtypes): Initialize new builtin vector types.
9686 (_initialize_gdbtypes): Register new vector types with gdbarch.
9687 (builtin_type_v4_float, builtin_type_v4_int32,
9688 builtin_type_v8_int16, builtin_type_v16_int8,
9689 builtin_type_v2_int32, builtin_type_v4_int16,
9690 builtin_type_v8_int8): New (renamed) SIMD types.
9691
13e49980
MK
96922002-05-06 Mark Kettenis <[email protected]>
9693
9694 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
9695 (i387_fill_fxsave): Likewise.
9696
997b20b8
AO
96972002-05-05 Alexandre Oliva <[email protected]>
9698
9699 * alpha-tdep.c (alpha_extract_return_value): Don't use
9700 non-constant array size in prototype.
9701
535c96ce
AC
97022002-05-04 Andrew Cagney <[email protected]>
9703
9704 From Brian Taylor <briant at model dot com>:
9705 * ui-out.c (ui_out_field_core_addr): Use the function
9706 longest_local_hex_string_custom'to format addresses > 32 bits
9707 wide.
9708
9709 * ui-out.c (ui_out_field_core_addr): Update comment.
9710
bedfa57b
AC
97112002-05-04 Andrew Cagney <[email protected]>
9712
9713 * stack.c (select_and_print_frame): Make static. Delete the
9714 parameter `level'.
9715 (func_command): Update call.
9716 (select_frame_command): Delete code computing the frame level.
9717 * frame.h (select_and_print_frame): Delete declaration.
9718
f621c63e
AC
97192002-05-04 Andrew Cagney <[email protected]>
9720
9721 * sparc-tdep.c (sparc_get_saved_register): Comment why
9722 get_prev_frame call is safe.
9723
0f7d239c
AC
97242002-05-04 Andrew Cagney <[email protected]>
9725
9726 * frame.h (select_frame): Delete level parameter.
9727 * stack.c (select_frame): Update. Use frame_relative_level to
9728 obtain the frame's level.
9729 (select_and_print_frame): Update call.
9730 (select_frame_command): Ditto.
9731 (up_silently_base): Ditto.
9732 (down_silently_base): Ditto.
9733 * ocd.c (ocd_start_remote): Ditto.
9734 * remote-rdp.c (remote_rdp_open): Ditto.
9735 * remote-mips.c (mips_initialize): Ditto.
9736 (common_open): Ditto.
9737 * remote-e7000.c (e7000_start_remote): Ditto.
9738 * m3-nat.c (select_thread): Ditto.
9739 * hppa-tdep.c (child_get_current_exception_event): Ditto.
9740 (child_get_current_exception_event): Ditto.
9741 * varobj.c (varobj_create): Ditto.
9742 (varobj_update): Ditto.
9743 (c_value_of_root): Ditto.
9744 * tracepoint.c (finish_tfind_command): Ditto.
9745 * corelow.c (core_open): Ditto.
9746 * arch-utils.c (generic_prepare_to_proceed): Ditto.
9747 * thread.c (info_threads_command): Ditto.
9748 (switch_to_thread): Ditto.
9749 * infrun.c (normal_stop): Ditto.
9750 (restore_selected_frame): Ditto.
9751 (restore_inferior_status): Ditto.
9752 * breakpoint.c (insert_breakpoints): Ditto.
9753 (watchpoint_check): Ditto.
9754 (bpstat_stop_status): Ditto.
9755 (do_enable_breakpoint): Ditto.
9756 * blockframe.c (flush_cached_frames): Ditto.
9757 (reinit_frame_cache): Ditto.
9758
71d6c7b1
AC
97592002-05-04 Andrew Cagney <[email protected]>
9760
9761 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
9762 maintainer.
9763
cda6c68a
JB
97642002-05-04 Jim Blandy <[email protected]>
9765
9766 * gdbtypes.c (replace_type): Doc fix.
9767
5c1c87f0
AC
97682002-05-04 Andrew Cagney <[email protected]>
9769
9770 * valprint.c (strcat_longest): Delete commented out function.
9771 Update copyright.
9772
cd9bfe15
AC
97732002-05-04 Andrew Cagney <[email protected]>
9774
9775 * MAINTAINERS: Mark a29k as deleted.
9776 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
9777 Move new configurations to the top.
9778 * configure.tgt: Remove a29k.
9779 * config/a29k/tm-vx29k.h: Delete.
9780 * config/a29k/vx29k.mt: Delete.
9781 * config/a29k/tm-a29k.h: Delete.
9782 * config/a29k/a29k-udi.mt: Delete.
9783 * config/a29k/a29k.mt: Delete.
9784 * a29k-tdep.c: Delete.
9785 * remote-udi.c: Delete.
9786 * remote-mm.c: Delete.
9787 * remote-eb.c: Delete.
9788 * remote-adapt.c: Delete.
9789 * Makefile.in: Remove obsolete code.
cd9bfe15
AC
9790 * config/s390/s390x.mt: Ditto.
9791 * config/s390/s390.mt: Ditto.
9792 * config/sparc/sparclynx.mh: Ditto.
9793 * config/sparc/linux.mh: Ditto.
9794 * config/pa/hppaosf.mh: Ditto.
9795 * config/pa/hppabsd.mh: Ditto.
9796 * config/ns32k/nbsd.mt: Ditto.
9797 * config/mips/vr5000.mt: Ditto.
9798 * config/m68k/sun3os4.mh: Ditto.
9799 * config/m68k/nbsd.mt: Ditto.
9800 * config/m68k/m68klynx.mh: Ditto.
9801 * config/m32r/m32r.mt: Ditto.
9802 * config/i386/x86-64linux.mt: Ditto.
9803 * config/i386/nbsdelf.mt: Ditto.
9804 * config/i386/nbsd.mt: Ditto.
9805 * config/i386/i386lynx.mh: Ditto.
9806
bf0c5130
AC
98072002-05-04 Andrew Cagney <[email protected]>
9808
9809 * target.c (debug_print_register): New function. Handle oversize
9810 registers.
9811 (debug_to_fetch_registers): Call.
9812 (debug_to_store_registers): Call.
9813
2ae1c2d2
JB
98142002-05-03 Jim Blandy <[email protected]>
9815
13a393b0
JB
9816 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
9817 (read_type): Doc fix.
9818 * gdbtypes.c (replace_type): Doc fix.
9819
2ae1c2d2
JB
9820 * stabsread.c (multiply_defined_struct): New complaint.
9821 (read_struct_type): If the type we were passed isn't empty, or
9822 incomplete, don't read the new struct type into it; complain,
9823 and return the original type unchanged. Take a new `type_code'
9824 argument, which is the type code for the new type.
9825 (read_type): Rather than storing the type's type code here, pass
9826 it as an argument to read_struct_type, and let that take care of
9827 storing it. That way, we don't overwrite the original type code,
9828 so read_struct_type can use it to decide whether we're overwriting
9829 something we shouldn't.
9830 (complain_about_struct_wipeout): New function.
9831
8de9bdc4
AC
98322002-05-03 Andrew Cagney <[email protected]>
9833
9834 * gdbarch.sh: Assert that gdbarch is non-NULL.
9835 * gdbarch.c: Regenerate.
9836
f773fdbb
JM
98372002-05-03 Jason Merrill <[email protected]>
9838
9839 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
9840 and return NULL.
9841
0e04a514
ML
98422002-05-03 Michal Ludvig <[email protected]>
9843
9844 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
9845 (x86_64_dwarf2gdb_regno_map_length),
9846 (x86_64_dwarf2_reg_to_regnum): Added.
9847 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
9848 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
9849 (_initialize_x86_64_tdep): Synced with the change above.
9850 (x86_64_skip_prologue): Reformulated message.
9851
065432a8
PM
98522002-05-03 Pierre Muller <[email protected]>
9853
9854 * f-exp.y: Also use new prev_lexptr variable
9855 to improve error reporting. Based on Michael Snyder
9856 2002-04-24 dated patch to c-exp.y.
9857 * jv-exp.y: Likewise.
9858 * m2-exp.y: Likewise.
9859
a3162708
EZ
98602002-05-02 Elena Zannoni <[email protected]>
9861
9862 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
9863 we are dealing with vectors.
9864
03620c38
PM
98652002-05-02 Pierre Muller <[email protected]>
9866
9867 * config/m68k/tm-nbsd.h: Obvious fix,
9868 correct machine name.
9869
6604db2e
PM
98702002-05-02 Pierre Muller <[email protected]>
9871
9872 * p-typeprint.c (pascal_type_print_base): Add support
9873 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
9874
0906b739
PM
98752002-05-02 Pierre Muller <[email protected]>
9876
9877 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
9878 for fondamental pascal 'char' type.
9879
e2625b33
PM
98802002-05-02 Pierre Muller <[email protected]>
9881
9882 * p-lang.h (is_pascal_string_type): Declaration changed,
9883 new sixth argument of type char ** added.
361d1df0 9884 * p-lang.c (is_pascal_string_type): Implementation
e2625b33
PM
9885 changed. Args length_pos, length_size, string_pos, char_size
9886 can now be NULL. New argument arrayname set to the field
9887 name of the char array. Return value set to char array
9888 field index plus one.
361d1df0 9889 * p-valprint.c (pascal_val_print): Adapt to new declaration of
e2625b33
PM
9890 is_pascal_string_type function.
9891
cf17c188
AC
98922002-05-02 Andrew Cagney <[email protected]>
9893
9894 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
9895 <[email protected]> change.
9896 * gdbarch.c: Regenerate.
9897
52bca491
AC
98982002-05-02 Andrew Cagney <[email protected]>
9899
9900 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
9901 before probing for a new one. Detect errorenous gdbarch_init
9902 functions.
9903 * gdbarch.c: Regenerate.
9904
d5e72505
AC
99052002-05-01 Andrew Cagney <[email protected]>
9906
9907 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
9908 * config/mcore/tm-mcore.h: Ditto. Update copyright.
9909 * config/v850/tm-v850.h: Ditto. Update copyright.
9910
af566d9f
AC
99112002-04-30 Andrew Cagney <[email protected]>
9912
9913 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
9914 current_gdbarch.
9915
880d85fa
MS
99162002-04-30 Michael Snyder <[email protected]>
9917
94c30b78
MS
9918 * arm-tdep.c: Whitespace clean-ups.
9919 (arm_skip_prologue): Fix thinko; two lines
880d85fa
MS
9920 should have been removed as part of 4/24 change.
9921
6f5987a6
KB
99222002-04-30 Kevin Buettner <[email protected]>
9923
9924 * rs6000-tdep.c: Added comment describing how fpscr register
9925 numbers were chosen.
9926
1a113c93
MS
99272002-04-30 Michael Snyder <[email protected]>
9928
9929 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
9930
9a6f53fe
EZ
99312002-04-29 Elena Zannoni <[email protected]>
9932
9933 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
9934 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
9935 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
9936
11ed25ac
KB
99372002-04-29 Kevin Buettner <[email protected]>
9938
9939 From Louis Hamilton <[email protected]>:
9940 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
9941 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
9942 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
9943 not bfd-private xcoff data, to determine wordsize.
9944 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
9945
ae232405
AC
99462002-04-29 Andrew Cagney <[email protected]>
9947
9948 GDB 5.2 released from 5.2 branch.
9949
91fd20f7
ML
99502002-04-29 Michal Ludvig <[email protected]>
9951
9952 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
9953 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
9954 (x86_64_register_info_table): Added comments with register numbers.
361d1df0 9955
2dc5091b
EZ
99562002-04-29 Elena Zannoni <[email protected]>
9957
9958 * rs6000-tdep.c (rs6000_extract_return_value,
9959 rs6000_store_return_value): Handle returning vectors.
9960 (rs6000_gdbarch_init): Use
9961 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
9962 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
9963 New function.
9964 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
9965 vectors.
9966 (ppc_sysv_abi_push_arguments): Handle vector parameters.
9967 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
361d1df0 9968
2b9848d8
PM
99692002-04-24 Pierre Muller <ics.u-strasbg.fr>
9970
9971 * hpread.c (hpread_psymtab_to_symtab_1,
aacb1f0a 9972 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
2b9848d8
PM
9973 with fprintf_unfiltered (gdb_stderr,...).
9974
f8d17dc5
PM
99752002-04-24 Pierre Muller <ics.u-strasbg.fr>
9976
9977 * remote-array.c (printf_monitor, write_monitor,
361d1df0 9978 array_insert_breakpoint, array_remove_breakpoint ):
f8d17dc5
PM
9979 Replace fprintf (stderr,...
9980 with fprintf_unfiltered (gdb_stderr,....
9981 * remote-es.c: Likewise.
9982 * remote-os9k.c: Likewise.
9983 * remote-st.c: Likewise.
9984
2f2f1ad1
AS
99852002-04-28 Andreas Schwab <[email protected]>
9986
9987 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
9988 linux-proc.o and gcore.o.
9989
b6779aa2
AC
99902002-04-26 Michal Ludvig <[email protected]>
9991
9992 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
9993 code without frame pointers.
9994
7e57f5f4
AC
99952002-04-26 Andrew Cagney <[email protected]>
9996
9997 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
9998 ON_STACK is needed.
9999
2ceb85d0
BE
100002002-04-26 Ben Elliston <[email protected]>
10001
10002 * target.c (do_xfer_memory): Correct reference to the new option
10003 "trust-readonly-sections".
10004
f5f8a009
EZ
100052002-04-26 Elena Zannoni <[email protected]>
10006
10007 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10008 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10009 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10010 vectors.
10011 (read_array_type): Record the fact that this array type is really a
10012 vector (i.e. are passed in by value).
10013
5868c862
JT
100142002-04-26 Jason Thorpe <[email protected]>
10015
10016 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10017 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10018 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10019 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10020 * alpha-linux-tdep.c: Include frame.h.
10021 (alpha_linux_sigcontext_addr): New function.
10022 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10023 alpha_linux_sigcontext_addr.
10024 * alpha-osf1-tdep.c: Include gdbcore.h.
10025 (alpha_osf1_sigcontext_addr): New function.
10026 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10027 alpha_osf1_sigcontext_addr.
10028 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10029 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10030
bfb01f37
AC
100312002-04-26 Andrew Cagney <[email protected]>
10032
361d1df0 10033 * stack.c (selected_frame_level):
bfb01f37
AC
10034 (select_frame): Do not set selected_frame_level.
10035 * frame.h (selected_frame_level): Delete declaration.
10036
15813d3f
AC
100372002-04-26 Andrew Cagney <[email protected]>
10038
10039 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
10040 convert_from_func_ptr-addr when AIX / PowerOpen.
10041
6096c27a
AC
100422002-04-25 Andrew Cagney <[email protected]>
10043
10044 * valops.c (hand_function_call): Call
10045 generic_save_call_dummy_addr.
10046 * frame.h (generic_save_call_dummy_addr): Declare.
10047 * blockframe.c (struct dummy_frame): Add fields call_lo and
10048 call_hi.
10049 (generic_find_dummy_frame): Check for PC in range call_lo to
10050 call_hi instead of entry_point_address.
10051 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
10052 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
10053 (generic_save_call_dummy_addr): New function.
10054
f510d44e
DM
100552002-04-24 David S. Miller <[email protected]>
10056
10057 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
10058 sparc_skip_prologue.
10059 (sparc_skip_prologue): Kill frameless_p arg, and use line number
10060 information to find prologue when possible.
10061 (sparc_prologue_frameless_p): Call examine_prologue directly.
10062 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
10063 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
10064 second argument.
10065 (SKIP_PROLOGUE): Likewise.
10066
15d72a92
JT
100672002-04-25 Jason Thorpe <[email protected]>
10068
10069 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
10070 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
10071 indicate that the condition it was testing is always true.
10072 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
10073 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10074 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
10075
accc6d1f
JT
100762002-04-25 Jason Thorpe <[email protected]>
10077
10078 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
10079 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
10080 tdep->jb_pc and tdep->jb_elt_size.
10081 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
10082 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
10083 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
10084 * alpha-nat.c (get_longjmp_target): Remove.
10085 (JB_ELEMENT_SIZE): Ditto.
10086 (JB_PC): Ditto.
10087 * alpha-tdep.c (alpha_get_longjmp_target): New function.
10088 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
10089 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
10090 to alpha_get_longjmp_target.
10091 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
10092 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
10093 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
10094
1bfdc549
AC
100952002-04-25 Andrew Cagney <[email protected]>
10096
10097 * README: Update to GDB 5.2.
10098
1bd316f0
AC
100992002-04-25 Andrew Cagney <[email protected]>
10100
10101 * gdbarch.sh (LC_ALL): Set to `c'.
10102
2e5ff58c
TR
101032002-04-25 Theodore A. Roth <[email protected]>
10104
10105 * avr-tdep.c: Ran through gdb_indent.sh.
10106
e33ce519
TR
101072002-04-25 Theodore A. Roth <[email protected]>
10108
10109 * MAINTAINERS: Add myself as AVR maintainer.
10110 * NEWS: Note new target avr.
10111
8818c391
TR
101122002-04-25 Theodore A. Roth <[email protected]>
10113
10114 * Makefile.in: Add support for AVR target.
10115 * configure.tgt: Add support for AVR target.
10116 * avr-tdep.c: New file
10117 * config/avr/avr.mt: New file.
10118
79509c2d
TR
101192002-04-25 Theodore A. Roth <[email protected]>
10120
10121 * MAINTAINERS: Add myself to write-after-approval.
10122
dac8068e
PM
101232002-04-24 Pierre Muller <ics.u-strasbg.fr>
10124
10125 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
10126 with fprintf_unfiltered (gdb_stderr,....
10127
25bf3106
PM
101282002-04-25 Pierre Muller <[email protected]>
10129
10130 Fix PR gdb/508.
10131 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
10132
24467a86
PM
101332002-04-25 Pierre Muller <[email protected]>
10134
10135 * p-exp.y: Also use new prev_lexptr variable
10136 to improve error reporting. Based on Michael Snyder
10137 2002-04-24 dated patch to c-exp.y.
10138
95b80706
JT
101392002-04-25 Jason Thorpe <[email protected]>
10140
10141 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
10142 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
10143 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
10144 to 0.
10145 * config/alpha/tm-alpha.h: Remove forward decls of struct type
10146 and struct value.
10147 (FUNCTION_START_OFFSET): Remove.
10148 (BREAKPOINT): Ditto.
10149
e90cc612
JT
101502002-04-25 Jason Thorpe <[email protected]>
10151
10152 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
10153 * NEWS: Ditto.
10154
6c72f9f9
JT
101552002-04-24 Jason Thorpe <[email protected]>
10156
10157 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
10158 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
10159 alpha_linux_pc_in_sigtramp.
10160 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
10161 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
10162 alpha_osf1_pc_in_sigtramp.
10163 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
10164 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
10165 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10166 alphafbsd_pc_in_sigtramp.
10167 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
10168 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
10169 alphanbsd_pc_in_sigtramp.
10170 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
10171 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
10172
5e4f3379
JT
101732002-04-24 Jason Thorpe <[email protected]>
10174
10175 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
10176
da8ca43d
JT
101772002-04-24 Jason Thorpe <[email protected]>
10178
10179 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
10180 alphanbsd-tdep.c.
10181 (alphanbsd-nat.o): New dependency list.
10182 (alphanbsd-tdep.o): Ditto.
10183 * NEWS: Note new native NetBSD/alpha configuration.
10184 * alphanbsd-nat.c: New file.
10185 * alphanbsd-tdep.c: Ditto.
10186 * configure.host (alpha*-*-netbsd*): New host.
10187 * configure.tgt (alpha*-*-netbsd*): New target.
10188 * config/alpha/nbsd.mh: New file.
10189 * config/alpha/nbsd.mt: Ditto.
10190 * config/alpha/nm-nbsd.h: Ditto.
10191 * config/alpha/tm-nbsd.h: Ditto.
10192
36a6271d
JT
101932002-04-24 Jason Thorpe <[email protected]>
10194
10195 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
10196 (alpha-osf1-tdep.o): New dependency list.
10197 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
10198 and skip_sigtramp_frame members.
10199 * alpha-linux-tdep.c: Include gdbcore.h.
10200 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
10201 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
10202 * alpha-osf1-tdep.c: New file.
10203 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
10204 alpha-osf1-dep.c.
10205 (alpha_frame_past_sigtramp_frame): New function.
10206 (alpha_dynamic_sigtramp_offset): Ditto.
10207 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
10208 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
10209 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
10210 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
10211 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
10212 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
10213 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
10214 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
10215 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
10216 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
10217 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
10218 to find_solib_trampoline_target.
10219 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
10220 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
10221 (SKIP_TRAMPOLINE_CODE): Remove.
10222 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10223 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10224 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10225 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10226 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
10227 (PROC_SIGTRAMP_MAGIC): Ditto.
10228 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10229 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10230 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
10231 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
10232 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
10233
2f4bc57b
JT
102342002-04-24 Jason Thorpe <[email protected]>
10235
10236 * NEWS: Note that Alpha targets are now multi-arch.
10237
665132f9
MS
102382002-04-24 Michael Snyder <[email protected]>
10239
10240 * parser-defs.h (prev_lexptr): New external variable.
10241 * parse.c (parse_exp_1): Set prev_lexptr to null before
10242 calling the language-specific parser.
10243 * c-exp.y (yylex): Set prev_lexptr to start of current token.
10244 (yyerror): Use prev_lexptr in error reporting.
10245
32872fa7
DJ
102462002-04-24 Daniel Jacobowitz <[email protected]>
10247
10248 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
10249 * gregset.h: If FILL_FPXREGSET is defined, provide
10250 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
10251 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
10252 is defined, call fill_fpxregset.
10253
57e76fac
MS
102542002-04-24 Roland McGrath <[email protected]>
10255
10256 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
10257 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
10258 (supply_gregset, supply_fpregset): New functions.
10259
10260 * gnu-nat.c (gnu_find_memory_regions): New function.
10261 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
10262 (gnu_xfer_memory): Add a cast.
10263
f43845b3
MS
102642002-04-24 Michael Snyder <[email protected]>
10265
361d1df0 10266 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
f43845b3
MS
10267 loop. Add handling for "str lr, [sp, #-4]!" and for saves
10268 of argument regs ("str r(0123), [r11, #-nn"]).
361d1df0 10269 (arm_skip_prologue): Better handling for frameless functions.
f43845b3
MS
10270 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
10271 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
10272
a0abec03
AC
10273Wed Apr 24 14:22:21 2002 Andrew Cagney <[email protected]>
10274
10275 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
10276 NUM_PSEUDO_REGS can be used.
10277
d7bd68ca
AC
102782002-04-24 Andrew Cagney <[email protected]>
10279
10280 * arch-utils.h: Update copyright.
10281
10282 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
10283 * gdbarch.h, gdbarch.c: Re-generate.
10284
10285 * inferior.h (IN_SIGTRAMP): Delete definition.
10286 * arch-utils.c (legacy_pc_in_sigtramp): New function.
10287 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
10288
10289 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
10290 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
10291 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
10292 (find_proc_framesize): Ditto.
10293 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
10294 (alpha_init_extra_frame_info): Ditto.
10295 * infrun.c (handle_inferior_event): Ditto.
10296 (handle_inferior_event): Ditto.
10297 (check_sigtramp2): Ditto.
10298 * blockframe.c (create_new_frame): Ditto.
10299 (get_prev_frame): Ditto.
10300 * ppc-linux-tdep.c: Update comments.
10301 * i386-linux-tdep.c: Update comments.
10302 * breakpoint.c (bpstat_what): Update comment.
10303
4867e41e
DM
103042002-04-24 David S. Miller <[email protected]>
10305
21d83aa5
DM
10306 * i960-tdep.c (register_in_window_p): New function.
10307 (i960_find_saved_register): Use it instead of
10308 REGISTER_IN_WINDOW_P.
10309 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
10310
4867e41e
DM
10311 * symtab.h (find_stab_function_addr): Kill extern.
10312 * minsyms.c (find_stab_function_addr): Remove from here...
10313 * dbxread.c: ... to here, and mark it static.
10314
69cdf6a2
DM
103152002-04-20 David S. Miller <[email protected]>
10316
10317 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
10318 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
10319
5a595886
DM
103202002-04-21 David S. Miller <[email protected]>
10321
10322 * remote-vxsparc.c (vx_read_register): Fix typo, we want
10323 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
10324 (vx_write_register): Likewise.
10325
1da1a192
JB
103262002-04-23 J. Brobecker <[email protected]>
10327
10328 * source.c (is_regular_file): New function.
10329 (openp): Check wether file to open is a regular file
10330 to avoid opening directories.
10331
baa6f10b
JT
103322002-04-22 Jason Thorpe <[email protected]>
10333
10334 * findvar.c (extract_signed_integer): Cast printf argument
10335 to suppress format warning.
10336 (extract_unsigned_integer): Likewise.
10337 * infcmd.c (registers_info): Likewise.
10338 * top.c (get_prompt_1): Likewise.
10339 * valops.c (value_assign): Likewise.
10340 * valprint.c (print_decimal): Likewise.
10341
b2c4da81
L
103422002-04-22 H.J. Lu ([email protected])
10343
10344 * c-exp.y (typebase): Support
361d1df0 10345
b2c4da81
L
10346 [long|long long|short] [signed|unsigned] [int|]
10347
10348 and
10349
10350 signed [long|long long|short] int
10351
f267bd6a
JT
103522002-04-22 Jason Thorpe <[email protected]>
10353
10354 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
10355 and vax-tdep.h.
10356 * vax-tdep.h: New file.
10357 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
10358 Make several routines static.
10359 (vax_get_saved_register): New function.
10360 (vax_gdbarch_init): New function.
10361 (_initialize_vax_tdep): Register vax_gdbarch_init.
10362 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
10363 Remove macros now under the control of gdbarch.
10364
da3c6d4a
MS
103652002-04-22 Michael Snyder <[email protected]>
10366
11d3b27d
MS
10367 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
10368 Some whitespace and coding standards tweaks.
da3c6d4a 10369
a33f7558
JT
103702002-04-22 Jason Thorpe <[email protected]>
10371
10372 * vax-tdep.c: Include regcache.h.
10373 (vax_call_dummy_words): New.
10374 (sizeof_vax_call_dummy_words): New.
10375 (vax_fix_call_dummy): New function.
10376 (vax_saved_pc_after_call): Ditto.
10377 * config/vax/tm-vax.h: Don't include regcache.h.
10378 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
10379 (CALL_DUMMY): Remove.
10380 (CALL_DUMMY_WORDS): Define.
10381 (SIZEOF_CALL_DUMMY_WORDS): Define.
10382 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
10383
47a73475
MS
103842002-04-18 Michael Snyder <[email protected]>
10385
10386 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
10387
52efde73
JT
103882002-04-22 Jason Thorpe <[email protected]>
10389
10390 * vax-tdep.c (vax_frame_chain): New function.
10391 (vax_push_dummy_frame): Ditto.
10392 (vax_pop_frame): Ditto.
10393 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
10394 (FRAMELESS_FUNCTION_INVOCATION): Use
10395 generic_frameless_function_invocation_not.
10396 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
10397 (POP_FRAME): Use vax_pop_frame.
10398
ea74468c
JT
103992002-04-22 Jason Thorpe <[email protected]>
10400
10401 * vax-tdep.c (vax_store_struct_return): New function.
10402 (vax_extract_return_value): Ditto.
10403 (vax_store_return_value): Ditto.
10404 (vax_extract_struct_value_address): Ditto.
10405 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
10406 vax_store_struct_return.
10407 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
10408 (STORE_RETURN_VALUE): Use vax_store_return_value.
10409 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
10410
5516aa92
JT
104112002-04-22 Jason Thorpe <[email protected]>
10412
10413 * vax-tdep.c (vax_frame_saved_pc): New function.
10414 (vax_frame_args_address_correct): Ditto.
10415 (vax_frame_args_address): Ditto.
10416 (vax_frame_locals_address): Ditto.
10417 (vax_frame_num_args): Move code to be in proximity to
10418 other frame-related functions.
10419 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
10420 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
10421 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
10422 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
10423 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
10424
36af0b35
L
104252002-04-22 H.J. Lu ([email protected])
10426
10427 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
10428 includedir.
10429
ab62c900
JT
104302002-04-22 Jason Thorpe <[email protected]>
10431
10432 * vax-tdep.c (vax_frame_init_saved_regs): New function.
10433 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
10434 (FRAME_INIT_SAVED_REGS): New macro.
10435
7232b100
JT
104362002-04-22 Jason Thorpe <[email protected]>
10437
10438 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
10439
b70d2aee
JT
104402002-04-22 Jason Thorpe <[email protected]>
10441
10442 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
10443 where needed.
10444 (fetch_osf_core_registers): Likewise.
10445 (supply_gregset): Likewise.
10446
a0e8a2d1 104472002-04-22 J. Brobecker <[email protected]>
361d1df0 10448
a0e8a2d1
JB
10449 * symfile.h (get_section_index): Define.
10450 * symfile.c (get_section_index): New function.
10451 * mdebugread.c (SC_IS_SBSS): New macro.
10452 (SC_IS_BSS): Return true for the scBss storage class only, as
10453 the scSBss storage class refers to the .sbss section.
10454 (parse_partial_symbols): Discard the symbols which associated
10455 section does not exist.
10456 Make sure to use the .sbss section index for symbols which
10457 storage class is scBss, rather than using the .bss section index.
10458
51eb8b08
JT
104592002-04-22 Jason Thorpe <[email protected]>
10460
10461 * vax-tdep.c: Update copyright years.
10462 (vax_register_name): New function.
10463 (vax_register_byte): Ditto.
10464 (vax_register_raw_size): Ditto.
10465 (vax_register_virtual_size): Ditto.
10466 (vax_register_virtual_type): Ditto.
10467 * config/vax/tm-vax.h: Update copyright years.
10468 (REGISTER_NAMES): Remove.
10469 (REGISTER_NAME): Define.
10470 (REGISTER_BYTE): Use vax_register_byte.
10471 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
10472 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
10473 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
10474
6cc1c0a8
AC
104752002-04-21 Andrew Cagney <[email protected]>
10476
10477 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
10478 declaration
10479 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
10480
9319a2fe
DM
104812002-04-21 David S. Miller <[email protected]>
10482
10483 * arch-utils.c (generic_prologue_frameless_p): Kill
10484 SKIP_PROLOGUE_FRAMELESS_P code.
10485 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10486 references.
10487 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
10488 * arc-tdep.c (arc_prologue_frameless_p): Implement.
10489 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
10490 references.
10491 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
10492 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
10493 (sparc_gdbarch_init): Pass it to
10494 set_gdbarch_prologue_frameless_p.
a0e8a2d1 10495
e9ed6d01
JT
104962002-04-21 Jason Thorpe <[email protected]>
10497
10498 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
10499 (alphabsd-nat.o): New dependency list.
10500
36012033
JT
105012002-04-21 Jason Thorpe <[email protected]>
10502
10503 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
10504 alphafbsd-tdep.c.
10505 (alpha-linux-tdep.o): New dependency list.
10506 (alphafbsd-tdep.o): Likewise.
10507
3379287a
JT
105082002-04-21 Jason Thorpe <[email protected]>
10509
10510 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
10511 to here...
10512 * alpha-tdep.c: ...from here.
10513 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
10514
4bcbd6cb
JT
105152002-04-21 Jason Thorpe <[email protected]>
10516
10517 * config/alpha/tm-alpha.h: Move alpha_software_single_step
10518 prototype from here...
10519 * alpha-tdep.h: ...to here.
10520
b31da25e
AC
105212002-04-21 Andrew Cagney <[email protected]>
10522
10523 * frame.h (selected_frame_level): Document as deprecated.
10524 (frame_relative_level): Declare.
10525 * stack.c (frame_relative_level): New function.
10526 (selected_frame_level): Document as deprecated.
10527 (select_frame): Do not set the selected_frame_level.
10528
10529 * stack.c (frame_info, record_selected_frame): Update.
10530 (frame_command, current_frame_command): Update.
10531 (up_silently_base, up_command, down_silently_base): Update.
10532 (down_command): Update.
10533 * inflow.c (kill_command): Update.
10534 * tracepoint.c (finish_tfind_command): Update.
10535 * corelow.c (core_open): Update.
10536 * thread.c (info_threads_command): Update.
10537 (do_captured_thread_select): Update.
10538 * infcmd.c (finish_command): Update.
10539 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
10540
9c1d6fe5
JT
105412002-04-21 Jason Thorpe <[email protected]>
10542
10543 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
10544
ab89facf
AC
105452002-04-21 Andrew Cagney <[email protected]>
10546
10547 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
10548 type const.
10549
82a4efa1
JT
105502002-04-21 Jason Thorpe <[email protected]>
10551
10552 * alphafbsd-tdep.c: Update copyright years. Include
10553 alpha-tdep.h.
10554 (alphafbsd_use_struct_convention): Make static.
10555 (alphafbsd_init_abi): New function.
10556 (_initialize_alphafbsd_tdep): New function.
10557 * config/alpha/tm-fbsd.h: Update copyright years.
10558 (USE_STRUCT_CONVENTION): Remove.
10559
44dffaac
JT
105602002-04-21 Jason Thorpe <[email protected]>
10561
10562 * alpha-tdep.c (alpha_abi_handler): New structure to describe
10563 an Alpha ABI variant.
10564 (alpha_abi_handler_list): Declare.
10565 (alpha_gdbarch_register_os_abi): New function.
10566 (alpha_gdbarch_init): Give registered ABI variant handlers a
10567 chance to tweak the gdbarch once we have set up defaults.
10568 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
10569
65585be4
JT
105702002-04-21 Jason Thorpe <[email protected]>
10571
10572 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
10573 to standard_coerce_float_to_double.
10574 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10575
d9b023cc
JT
105762002-04-21 Jason Thorpe <[email protected]>
10577
10578 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
10579 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
10580 from gdbarch_tdep rather than a constant.
10581 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
10582 the default text address for all Alpha Unix ABIs.
10583 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
10584 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
10585
dc129d82
JT
105862002-04-21 Jason Thorpe <[email protected]>
10587
10588 * alpha-tdep.h: New file. Includes several Alpha target constants
10589 taken from...
10590 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
10591 let gdbarch deal with.
10592 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
10593 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
10594 to dependency list.
10595 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
10596 Alpha target register names.
10597 * alphabsd-nat.c: Likewise.
10598 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
10599 Alpha target register names. Make serveral routines static.
10600 (alpha_get_saved_register): New function.
10601 (alpha_abi_names): New.
10602 (process_note_abi_tag_sections): New function.
10603 (get_elfosabi): New function.
10604 (alpha_gdbarch_init): New function.
10605 (alpha_dump_tdep): New function.
10606 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
10607
d49d1e0a
AC
106082002-04-21 Andrew Cagney <[email protected]>
10609
10610 * frame.c (find_saved_register): Delete #ifdef
10611 HAVE_REGISTER_WINDOWS code.
10612 * config/sparc/tm-sparc.h: Update comments.
10613 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
10614
92e8c9ed
AC
106152002-04-21 Andrew Cagney <[email protected]>
10616
10617 * i960-tdep.c (i960_find_saved_register): New function.
10618 (i960_get_saved_register): New function.
10619 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
10620 (i960_get_saved_register): Declare.
10621 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
10622
e1925118
DM
106232002-04-20 David S. Miller <[email protected]>
10624
10625 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
10626
29673b29
AC
106272002-04-20 Andrew Cagney <[email protected]>
10628
10629 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
10630 instead of NUM_PSEUDO_REGS.
10631
6c86dcd5
DM
106322002-04-20 David S. Miller <[email protected]>
10633
10634 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
10635 GDB_MULTI_ARCH_PARTIAL
10636 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
10637 define, let tm-sp64.h do it.
10638
aa40ec90
JT
106392002-04-20 Jason Thorpe <[email protected]>
10640
10641 * frame.c (find_saved_register): Avoid a NULL pointer
10642 dereference and actually walk the frame list.
10643
0f79675b
AC
106442002-04-20 Andrew Cagney <[email protected]>
10645
10646 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
10647 sorted in most most-recent-used order. Document.
10648 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10649
f91305dd 106502002-04-19 Andrew Cagney <[email protected]>
bf75c8c1
AC
10651
10652 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
10653 instead of ->prev.
10654 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
10655 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
10656 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
10657 instead of ->prev.
10658
73d322b1
EZ
106592002-04-19 Elena Zannoni <[email protected]>
10660
10661 Fix PR gdb/471.
10662 * gdbtypes.c (init_simd_type): Rewrite using new functions.
10663 (build_builtin_type_vec128): Ditto.
10664 (append_composite_type_field): Fix calculation of type length in
10665 union case.
10666
ccd9a834
EZ
106672002-04-19 Eli Zaretskii <[email protected]>
10668
10669 * config/djgpp/README: Update.
10670
10671 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
10672 compiler warnings.
10673
a57f9e49
JT
106742002-04-19 Jason Thorpe <[email protected]>
10675
10676 * alpha-tdep.c (setup_arbitrary_frame): Rename...
10677 (alpha_setup_arbitrary_frame): ...to this.
10678 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
10679 for alpha_setup_arbitrary_frame.
10680
f4f9705a
AC
106812002-04-18 Andrew Cagney <[email protected]>
10682
10683 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
10684 * gdbarch.h, gdbarch.c: Regenerate.
361d1df0 10685
f4f9705a
AC
10686 * defs.h (breakpoint_from_pc_fn): Delete type definition.
10687 * target.h (memory_breakpoint_from_pc): Update declaration.
10688 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
10689
10690 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
10691 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
10692 * mem-break.c (memory_breakpoint_from_pc): Ditto.
10693 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
10694 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
10695 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
10696 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
10697 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
10698 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
10699 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
10700 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
10701 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
10702
10703 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
10704 const pointer.
10705 * monitor.c (monitor_insert_breakpoint): Ditto.
10706 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
10707
10708 * config/mcore/tm-mcore.h: Update copyright.
10709 * mem-break.c: Ditto.
10710 * xstormy16-tdep.c: Ditto.
10711
29f319b8
PM
107122002-04-18 Pierre Muller <[email protected]>
10713
10714 * p-exp.y: Add precedence rule for '^' token.
10715 This removes the shift/reduce conflicts.
10716 Remove the comment concerning these shift/reduce conflicts.
10717
ebeac11a
EZ
107182002-04-18 Elena Zannoni <[email protected]>
10719
10720 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
10721 (registers_powerpc_nofp): New register set for processors
10722 without floating point unit.
10723
27c31547
DM
107242002-04-18 David S. Miller <[email protected]>
10725
10726 * MAINTAINERS: Add myself to write-after-approval.
10727
47a73475
MS
107282002-04-17 Michael Snyder <[email protected]>
10729
10730 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
10731
953836b2
AC
107322002-04-17 Andrew Cagney <[email protected]>
10733
10734 * rs6000-tdep.c (frame_initial_stack_address): Use
10735 frame_register_read to read the alloca_reg.
10736
8b0d4340
AC
107372002-04-17 Andrew Cagney <[email protected]>
10738
10739 * frame.c (find_saved_register): Find saved registers in the next
10740 not prev frame.
10741 Fix PR gdb/365.
10742
d8864532
AC
107432002-04-17 Andrew Cagney <[email protected]>
10744
10745 * gdbarch.sh (LANG): Set to ``c''.
10746
36cc83a3 107472002-04-15 Andrew Cagney <[email protected]>
361d1df0 10748
36cc83a3 10749 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
361d1df0 10750
2f4150cc 107512002-04-15 Andrew Cagney <[email protected]>
2c7ef074
AC
10752
10753 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
10754 Update copyright.
10755
628703c6 10756 * hpread.c (hpread_get_lntt): Add declaration.
2f4150cc 10757 Also fix PR gdb/391.
361d1df0 10758
56157b4a
AC
107592002-04-14 Andrew Cagney <[email protected]>
10760
10761 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
10762 * aclocal.m4, configure: Re-generate.
10763 Fix PR gdb/391.
361d1df0 10764
6d1e3329
EZ
107652002-04-14 Elena Zannoni <[email protected]>
10766
10767 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
10768 instead of tm_print_insn.
10769
cb06fa07
EZ
107702002-04-14 Elena Zannoni <[email protected]>
10771
10772 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
10773
f208ba17
AC
107742002-04-14 Andrew Cagney <[email protected]>
10775
10776 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
10777 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
10778 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
10779
20f01a46
DH
107802002-04-12 Don Howard <[email protected]>
10781
10782 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
10783 max_user_call_depth.
10784 (init_cmd_lists): Initialize the new value;
10785 * cli/cli-script.c (execute_user_command): Limit the call depth of
10786 user defined commands. This avoids a core-dump when user commands
10787 are infinitly recursive.
10788
a88376a3
KB
107892002-04-12 Kevin Buettner <[email protected]>
10790
10791 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
10792 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
10793 from tdep struct instead of DEFAULT_LR_SAVE.
10794 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
10795 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
10796 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
10797
f2172603
MS
107982002-04-12 Michael Snyder <[email protected]>
10799
694f61fb 10800 * Remote.c: Spelling fix.
20fe79c8
MS
10801 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
10802 If no symbol found for "sbrk", try "_sbrk".
10803 (make_output_phdrs): Use bfd_section_name.
10804 (gcore_copy_callback): Use bfd_section_name.
62995fc4 10805 * eval.c: Indentation fix-ups.
169a7369
MS
10806 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
10807 in case it gets applied to an address that is already
10808 in the instruction space.
de74f71f
MS
10809 * cli/cli-decode.c (help_list): Allow long lines to wrap.
10810 * symfile.c: Fix indentation, long lines.
f2172603
MS
10811 * source.c: White space fix-up.
10812
cda5a58a
AC
108132002-04-12 Andrew Cagney <[email protected]>
10814
10815 * defs.h (read_relative_register_raw_bytes): Delete declaration.
10816 * frame.c (frame_register_read): New function. Return non-zero on
10817 success.
10818 (read_relative_register_raw_bytes_for_frame): Delete.
10819 (read_relative_register_raw_bytes): Delete.
10820 * frame.h (frame_register_read): Declare.
10821 * d30v-tdep.c: Update Copyright. Use frame_register_read.
10822 * sh-tdep.c: Ditto.
10823 * infcmd.c (do_registers_info): Ditto.
10824 * hppa-tdep.c: Ditto.
10825 * rs6000-tdep.c: Ditto.
10826 * h8500-tdep.c: Ditto.
10827 * mips-tdep.c: Ditto.
10828 * h8300-tdep.c: Ditto.
10829 * z8k-tdep.c: Ditto.
10830
2ea5f656
KB
108312002-04-12 Kevin Buettner <[email protected]>
10832
10833 From Jimi X <[email protected]>:
10834 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
10835 64-bit SysV ABI.
10836
27b15785
KB
108372002-04-12 Kevin Buettner <[email protected]>
10838
10839 From Jimi X <[email protected]>:
10840 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
10841 bfd info.
10842
5d57ee30
KB
108432002-04-12 Kevin Buettner <[email protected]>
10844
10845 From Jimi X <[email protected]>:
10846 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
10847 register sets for these processor variants.
10848
bc1e36ca
DJ
108492002-04-11 Daniel Jacobowitz <[email protected]>
10850
bc1e36ca
DJ
10851 * regformats/reg-ppc.dat: Support FPSCR.
10852
e3f36dbd
KB
108532002-04-11 Kevin Buettner <[email protected]>
10854
10855 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
10856 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
10857 Add fpscr as an invalid/unfetchable register.
10858 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
10859 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
10860 (fill_fpregset): Add support for register fpscr.
10861 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
10862 (fill_gregset): Account for the fact that register ``mq'' might
10863 not exist.
10864 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
10865 (registers_power): Add fpscr to register set at slot 71.
10866 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
10867 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
10868
943c9c25
MS
108692002-04-11 Michael Snyder <[email protected]>
10870
10871 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
10872 * configure: Regenerate.
10873 * config.in: Regenerate.
10874 * acconfig.h: Add define for _SYSCALL32.
10875 * core-sol2.c: Remove #define _SYSCALL32.
10876 * solib-legacy.c: Remove #define _SYSCALL32.
10877
d8c0a2e7
AC
108782002-04-10 Andrew Cagney <[email protected]>
10879
10880 * stack.c (select_frame): Cleanup internal error message, do not
10881 use %p.
10882
7cc19214
AC
108832002-04-10 Andrew Cagney <[email protected]>
10884
10885 * stack.c (select_frame): Check that selected_frame and the
10886 specified level are as expected.
10887 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
10888 Update copyright.
10889 * frame.h (struct frame_info): Add field `level'. Update
10890 copyright.
10891 Work-in-progress PR gdb/464.
10892
67a2b77e
AC
108932002-04-10 Andrew Cagney <[email protected]>
10894
10895 * maint.c (maint_print_section_info): Rename print_section_info.
10896 (print_bfd_section_info, print_objfile_section_info): Update.
10897 * inferior.h (struct gdbarch): Add opaque declaration.
10898 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
10899 * gdbarch.h: Regenerate.
10900
8cfda98c
ML
109012002-04-10 Michal Ludvig <[email protected]>
10902
10903 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
10904 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
10905 (kernel_u_size): Added.
10906 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
10907 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
10908
ca439ad2 109092002-04-04 Jim Ingham <[email protected]>
361d1df0 10910
ca439ad2
JI
10911 * valarith.c (find_size_for_pointer_math): New function, either returns
10912 the size for a pointer's target, returns 1 for void *, or errors for
10913 incomplete types.
10914 (value_add, value_sub): use find_size_for_pointer_math.
10915
2f2893d9
DJ
109162002-04-09 Daniel Jacobowitz <[email protected]>
10917
10918 * linux-low.c (linux_look_up_symbols): New hook.
10919 (linux_target_ops): Add linux_look_up_symbols.
10920 * remote-utils.c (decode_address): New function.
10921 (look_up_one_symbol): New function.
10922 * server.c (handle_query): Call target look_up_symbols hook.
10923 * server.h (look_up_one_symbol): Add prototype.
10924 * target.h (struct target_ops): Add look_up_symbols hook.
10925
96cb11df
AC
109262002-04-09 Andrew Cagney <[email protected]>
10927
10928 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
10929 override FP_REGNUM with frame->fp. Update copyright.
10930 * parse.c (num_std_regs, std_regs): Delete.
10931 (target_map_name_to_register): Do not search std_regs. Update
10932 function description.
10933 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
10934 declarations. Update copyright.
10935 Fix PR gdb/251.
361d1df0 10936
97658e92
DJ
109372002-04-09 Daniel Jacobowitz <[email protected]>
10938
10939 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
10940 after the last symbol in a block.
10941
6044e3eb
PM
109422002-04-09 Pierre Muller <[email protected]>
10943
10944 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
10945 is non zero as a found symbol.
10946
0406ec40
AC
109472002-04-08 Andrew Cagney <[email protected]>
10948
10949 * findvar.c: Include "builtin-regs.h".
10950 (value_of_register): Call value_of_builtin_reg when applicable.
10951 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
10952 (target_map_name_to_register): Call
10953 builtin_reg_map_name_to_regnum.
10954 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
10955 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
10956 (builtin_regs_h): Define.
10957 (builtin-regs.o): New target.
10958 (findvar.o): Add $(builtin_regs_h).
10959 * builtin-regs.c, builtin-regs.h: New files.
10960 * std-regs.c: New file.
10961 Partial fix for PR gdb/251.
10962
56a6dfb9
KB
109632002-04-08 Kevin Buettner <[email protected]>
10964
10965 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
10966 it's no longer required.
10967
3a808432
AC
109682002-04-08 Andrew Cagney <[email protected]>
10969
10970 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
10971
7c40d541
KB
109722002-04-08 Kevin Buettner <[email protected]>
10973
10974 From Jimi X <[email protected]>:
10975 * rs6000-tdep.c (rs6000_software_single_step): Use
10976 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
10977 and size. Use target_insert_breakpoint() and
10978 target_remove_breakpoint() to insert and remove breakpoints
10979 instead of explicit memory reads and writes.
10980
cc9836a8
KB
109812002-04-08 Kevin Buettner <[email protected]>
10982
10983 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
10984 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
10985 ELF_OBJECT_FORMAT ifdef.
10986
7495d1dc
KB
109872002-04-08 Kevin Buettner <[email protected]>
10988
10989 From Jimi X <[email protected]>:
10990 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
10991
4288e836
KB
109922002-04-08 Kevin Buettner <[email protected]>
10993
10994 From Jimi X <[email protected]>:
10995 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
10996 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
10997
a4e4e501
MK
109982002-04-07 Mark Kettenis <[email protected]>
10999
11000 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11001 s/asprintf/xasprintf/.
11002 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11003
006defba
AC
110042002-04-07 Andrew Cagney <[email protected]>
11005
11006 I believe Jeff Law denies responsability for this one:
11007 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11008 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11009 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11010 Work-around for PR gdb/366.
11011
7aa83cac
EZ
110122002-04-07 Elena Zannoni <[email protected]>
11013
11014 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11015 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11016 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11017
cf1fcca1
EZ
110182002-04-07 Elena Zannoni <[email protected]>
11019
11020 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11021 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11022 information.
11023
3f289e6f
AC
110242002-04-07 Andrew Cagney <[email protected]>
11025
11026 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11027 maintainer.
11028
129188f6
AC
110292002-04-07 Andrew Cagney <[email protected]>
11030
11031 * README (Reporting Bugs in GDB): Document the bug web page as the
11032 prefered way of submitting bugs.
11033 Fix PR gdb/402.
11034
1200cd6e
AC
110352002-04-06 Andrew Cagney <[email protected]>
11036
11037 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11038 -1. Update comment.
11039 * gdbarch.h, gdbarch.c: Re-generate.
11040
2853c33c
AS
110412002-04-07 Andreas Schwab <[email protected]>
11042
11043 * m68klinux-nat.c (fill_fpregset): Properly pass address of
11044 buffer to regcache_collect.
11045
c2169756
AC
110462002-04-06 Andrew Cagney <[email protected]>
11047
11048 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
11049 * gdbarch.c, gdbarch.h: Re-generate.
11050
25f1b008
AC
110512002-04-06 Andrew Cagney <[email protected]>
11052
11053 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
11054 declaration. Fix -Werror.
11055
59263426
DJ
110562002-04-05 Daniel Jacobowitz <[email protected]>
11057
11058 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
11059 * gdbarch.c: Regenerate.
11060
f5db4da3
MS
110612002-04-05 Michael Snyder <[email protected]>
11062
80f8a6eb
MS
11063 * breakpoint.c (clear_command): Rewrite middle section to
11064 combine two loops with identical control conditions.
11065 Add a cleanup to eliminate a memory leak.
f5db4da3
MS
11066 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
11067
ad3dcc5c
L
110682002-04-05 H.J. Lu ([email protected])
11069
11070 * solib-svr4.c (bkpt_names): Add "__start".
11071
f32e7a74
AC
110722002-04-04 Andrew Cagney <[email protected]>
11073
11074 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
11075 as test for 64 bit target.
11076
8227c0ff
AC
110772002-04-05 Andrew Cagney <[email protected]>
11078
11079 * h8500-tdep.c (h8500_write_fp): Delete function.
11080 * dwarf2cfi.c (cfi_write_fp): Document as not used.
11081 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
11082 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
11083 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
11084 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
11085 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
11086 (s390_write_fp):
11087 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
11088 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
11089 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
11090 (d10v_write_fp): Delete function.
11091 * inferior.h (write_fp, generic_target_write_fp): Delete
11092 declarations.
11093 * regcache.c (generic_target_write_fp): Delete function.
11094 (write_fp): Delete function.
11095 * gdbarch.sh (TARGET_WRITE_FP): Delete.
11096 * gdbarch.h, gdbarch.c: Regenerate.
11097 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
11098 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
11099 (sparc64_write_fp): Delete declaration.
11100 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
11101 (h8500_write_fp): Delete declaration.
11102
2757dd86
AC
111032002-04-04 Andrew Cagney <[email protected]>
11104
11105 * sparc-tdep.c (sparc64_write_fp): Delete.
11106 (sparc_push_dummy_frame): Replace write_fp call with code to store
11107 the FP directly.
11108 (sparc_gdbarch_init): Do not initialize write_fp.
11109
c69255e1
KB
111102002-04-05 Kevin Buettner <[email protected]>
11111
11112 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
11113 clause.
11114
ae767bfb
JB
111152002-03-29 Jim Blandy <[email protected]>
11116
11117 * stack.c (get_selected_block): Add new argument `addr_in_block',
11118 used to return the exact code address we used to select the block,
11119 not just the block.
11120 * blockframe.c (get_frame_block, get_current_block): Same.
11121 * frame.h (get_frame_block, get_current_block,
11122 get_selected_block): Update declarations.
11123 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
11124 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
11125
84d2ac95
MS
111262002-04-05 Michael Snyder <[email protected]>
11127
11128 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
11129 warning message.
11130
596aa3bf
JB
111312002-04-05 J. Brobecker <[email protected]>
11132
11133 * utils.c (xfullpath): New function.
11134 * defs.h (xfullpath): Add declaration.
11135 * source.c (openp): Use xfullpath in place of gdb_realpath to
11136 avoid resolving the basename part of filenames when the
11137 associated file is a symbolic link. This fixes a potential
11138 inconsistency between the filenames known to GDB and the
11139 filenames it prints in the annotations.
11140 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
11141 to be able to match a filename with either the real filename, or
11142 the name of any symbolic link to this file.
11143 (lookup_partial_symtab): Ditto.
11144
c02f5703
MS
111452002-04-04 Michael Snyder <[email protected]>
11146
11147 * breakpoint.c: Add support for hardware breakpoints in overlays.
11148 (overlay_events_enabled): New state variable.
11149 (insert_breakpoints): Use overlay_events_enabled to decide
11150 whether to attempt to set a breakpoint at the overlay load addr.
11151 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11152 (remove_breakpoint): Use overlay_events_enabled to decide
11153 whether breakpoints need to be removed from overlay load addr.
11154 Handle bp_hardware_breakpoint as well as bp_breakpoint.
11155 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
361d1df0 11156 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
c02f5703
MS
11157 disable_overlay_breakpoints): Update overlay_events_enabled.
11158
5fb290d7
DJ
111592002-04-04 Daniel Jacobowitz <[email protected]>
11160
11161 * dwarf2read.c (struct function_range): New.
11162 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
11163 (check_cu_functions): New.
11164 (read_file_scope): Initialize global function lists.
11165 Call dwarf_decode_line after processing children.
11166 (read_func_scope): Add to global function list.
11167 (dwarf_decode_lines): Call check_cu_functions everywhere
11168 record_line is called. Call record_line with a linenumber
11169 of 0 to mark sequence ends.
11170
7b3fabf0
ML
111712002-04-04 Michal Ludvig <[email protected]>
11172
361d1df0 11173 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
7b3fabf0
ML
11174 change sync with glibc.
11175
bce58c09
JB
111762002-04-03 Jim Blandy <[email protected]>
11177
11178 * configure.in: Call AC_C_INLINE.
11179 * configure: Regenerated.
361d1df0 11180
2fccf04a
DJ
111812002-04-01 Daniel Jacobowitz <[email protected]>
11182
11183 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
11184 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
11185
2d1bfe2e
MK
111862002-03-31 Mark Kettenis <[email protected]>
11187
a5941fbf
MK
11188 * NEWS: Mention gcore support on FreeBSD/i386.
11189
a90cd31d
MK
11190 * fbsd-proc.c: New file.
11191 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
11192 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
11193
2d1bfe2e
MK
11194 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
11195 while statement.
11196
9eb6e5a1
JB
111972002-03-29 Jim Blandy <[email protected]>
11198
11199 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
11200 unescaped newlines in string literals, but newer ones don't. So
11201 escape them.
11202
f02df580
MS
112032002-03-26 Michael Snyder <[email protected]>
11204 Andrew Cagney <[email protected]>
11205
361d1df0 11206 * cli/cli-dump.c: New file. Dump memory to file,
f02df580
MS
11207 restore file to memory.
11208 * cli/cli-dump.h: New file.
11209 * Makefile.in: Add rules, dependencies for cli-dump.o.
89743e04 11210 * NEWS: Mention new commands.
f02df580 11211
109f874e
MS
112122002-03-28 Michael Snyder <[email protected]>
11213
11214 * symfile.c (symbol_file_add): Move test for null symbols to later.
11215
520f6ade
AC
112162002-03-27 Andrew Cagney <[email protected]>
11217
11218 From veksler at il.ibm.com:
11219 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
11220 the xstrduped original path.
11221 Fix PR gdb/417.
11222
d4654627
MS
112232002-03-27 Michael Snyder <[email protected]>
11224
11225 * breakpoint.c (_initialize_breakpoint): Clean up help string.
11226 * infcmd.c (_initialize_infcmd): Ditto.
11227 * language.c (_initialize_language): Ditto.
11228 * symfile.c (_initialize_symfile): Ditto.
11229 * top.c (_init_main): Ditto.
11230 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11231
6be8bc0c
EZ
112322002-03-27 Elena Zannoni <[email protected]>
11233
11234 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
11235 vector registers handling.
11236 (skip_prologue): Handle new AltiVec instructions. Fill in new
11237 fields of frame data.
11238 (frame_get_saved_regs): Fill in information for AltiVec registers.
11239
12af6855
JB
112402002-03-27 Jim Blandy <[email protected]>
11241
11242 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
11243 a function; leave this macro here to invoke that function.
11244 (symbol_init_mangled_name): Declaration for that function.
11245 * symtab.c (symbol_init_mangled_name): New function.
11246
dc672865
AC
112472002-03-27 Andrew Cagney <[email protected]>
11248
11249 * valarith.c: Replace strerror with safe_strerror.
11250 * tracepoint.c: Ditto.
11251 * lin-lwp.c: Ditto.
11252 * go32-nat.c: Ditto.
11253 * inflow.c: Ditto.
11254 * gnu-nat.c: Ditto.
11255
d96429cd
AS
112562002-03-27 Andreas Schwab <[email protected]>
11257
11258 * event-top.c (command_line_handler): Remove useless if.
11259
7e336ba1
AJ
112602002-03-27 Andreas Jaeger <[email protected]>
11261
11262 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
11263 comment.
11264
de220d0f
ML
112652002-03-27 Michal Ludvig <[email protected]>
11266
11267 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
11268 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
11269 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
11270 (x86_64_linux_dr_get_status, supply_gregset),
11271 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
11272 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
11273 (x86_64_register_info_table): Add.
11274 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
11275 (x86_64_register_raw_size, x86_64_register_virtual_type),
11276 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
11277 general x86_64_register_info_table.
11278 (i386_gdbarch_init): gdbarch_register_bytes is now set
11279 dynamicaly during initialization.
11280 * regformats/reg-x86-64.dat: Synced with changes to registers above.
11281 * gdbserver/linux-x86-64-low.c: Ditto.
7e336ba1 11282
0e98d0a7
DJ
112832002-03-27 Daniel Jacobowitz <[email protected]>
11284
11285 * gdbserver/server.c (main): Call target_signal_to_host_p
11286 and target_signal_to_host on signals received from the remote.
11287 * gdbserver/remote-utils.c (prepare_resume_reply): Call
11288 target_signal_from_host on signals sent to the remote.
11289 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
11290 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
11291
3130066b
DJ
112922002-03-27 Daniel Jacobowitz <[email protected]>
11293
11294 * signals/signals.c: Include "server.h" in gdbserver build.
11295 (target_signal_from_name): Don't use STREQ.
11296 (_initialize_signals): Likewise. Don't include function in
11297 gdbserver build.
11298
9aedf4f4
DJ
112992002-03-27 Daniel Jacobowitz <[email protected]>
11300
11301 * signals.c: Moved to...
11302 * signals/signals.c: Here.
7e336ba1 11303 * Makefile (signals.o): Update.
9aedf4f4 11304
3fa41cdb
JL
113052002-03-26 Jeff Law ([email protected])
11306
11307 * somread.c (som_symtab_read): Remove some commented out code and
11308 updated related comments. Do not set the minimal symbol table to
11309 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
11310 in a dynamic executable.
11311 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
11312 where we are unable to find the minimal symbol for the given
11313 PC value.
11314
ee677e8d
MS
113152002-03-25 Jeff Law ([email protected])
11316
11317 * linux-proc.c (read_mapping): Scan up to end of line for filename.
11318
e76e1718
ML
113192002-03-25 Michal Ludvig <[email protected]>
11320
11321 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
11322
18a642a1
AC
113232002-03-23 Andrew Cagney <[email protected]>
11324
11325 * command.h: Update copyright.
11326 (struct cmd_list_element): Replace definition with opaque
11327 declaration.
11328 (enum cmd_types): Document that it will eventually be moved to
11329 cli/cli-decode.h
11330 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
11331 (MALLOCED_REPLACEMENT): Delete macro.
11332 * Makefile.in (cli_decode_h): Add $(command_h).
11333 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
7e336ba1 11334 * top.c: Include "cli/cli-decode.h".
18a642a1
AC
11335 * completer.c: Include "cli/cli-decode.h".
11336 * maint.c: Include "cli/cli-decode.h".
11337 * cli/cli-decode.h: Include "command.h".
11338 (enum command_class): Delete.
11339 (enum cmd_types): Comment out.
11340 (enum cmd_auto_boolean): Delete.
11341 (enum var_types): Delete.
11342
b2875cc0
AC
113432002-03-23 Andrew Cagney <[email protected]>
11344
11345 * cli/cli-decode.c: Include "gdb_assert.h".
11346 (add_set_or_show_cmd): New static function.
11347 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
11348 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
11349 all fields, such as func, from the set command.
11350
3b45974e
AC
113512002-03-23 Andrew Cagney <[email protected]>
11352
11353 * MAINTAINERS (sh-elf): Change warning flag to -w.
11354
823ca731
AC
113552002-03-23 Andrew Cagney <[email protected]>
11356
11357 * defs.h (error): Add printf format attribute.
11358 * thread-db.c (thread_from_lwp): Fix error format string.
11359 * stack.c (parse_frame_specification): Ditto.
11360 * cli/cli-decode.c (undef_cmd_error): Ditto.
11361 * scm-lang.c (scm_lookup_name): Ditto.
11362 * tracepoint.c (trace_error): Ditto.
11363 * remote-utils.c (usage): Ditto.
11364 * remote.c (compare_sections_command): Ditto.
11365 Fix PR gdb/328.
11366
0e101458
AC
113672002-03-22 Andrew Cagney <[email protected]>
11368
11369 * gdbtypes.c (append_composite_type_field): New function.
11370 (init_composite_type): New function.
11371 * gdbtypes.h (append_composite_type_field): Declare.
11372 (init_composite_type): Ditto.
11373
8e0662df
EZ
113742002-03-22 Elena Zannoni <[email protected]>
11375
11376 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
7e336ba1 11377 function.
8e0662df
EZ
11378 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
11379 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
11380 structure returning convention for SYSV ABI case, but not
11381 for GNU/Linux, FreeBSD, or NetBSD.
11382
3121eff0
DJ
113832002-03-22 Daniel Jacobowitz <[email protected]>
11384
11385 * symtab.h (lookup_block_symbol): Add mangled_name argument
11386 to prototype.
11387
11388 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
11389 with new mangled_name argument.
11390 * linespec.c (decode_line_1): Likewise.
11391 * valops (value_of_this): Likewise.
11392 * symtab.c (lookup_transparent_type): Likewise.
11393 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
11394 (lookup_symbol): If we are given a mangled name, pass it down
11395 to lookup_symbol_aux.
11396 (lookup_block_symbol): If we are given a mangled name to check
11397 against, only return symbols which match it.
11398
349b409f
CF
113992002-03-22 Christopher Faylor <[email protected]>
11400
11401 * win32-nat.c (child_create_inferior): Check for proper shell to use
11402 here, in case the user changes it on the fly.
11403 (_initialize_inftarg): Remove shell path considerations.
11404
2a873819
EZ
114052002-03-21 Elena Zannoni <[email protected]>
11406
11407 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
11408 for gdbarch_max_register_raw_size and max_register_virtual_size.
11409 Adjust copyright year.
11410
a1b9830c
DJ
114112002-03-21 Daniel Jacobowitz <[email protected]>
11412
11413 * dbxread.c (process_one_symbol): Extend the first N_SLINE
11414 in a function to cover the entire beginning of the function
11415 as well if it does not already.
11416
8b5790f2
TR
114172002-03-21 Tom Rix <[email protected]>
11418
11419 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
11420 (rs6000_ptrace64): Renamed from ptrace64.
11421
bdbe5747
MH
114222002-03-20 Martin M. Hunt <[email protected]>
11423
11424 * gdbserver/remote-utils.c (remote_open): Don't call
11425 getprotobyname, we're all using TCP here so just use
11426 IPPROTO_TCP.
7e336ba1 11427 * gdbserver/gdbreplay.c (remote_open): Ditto.
bdbe5747
MH
11428
114292002-03-20 Martin M. Hunt <[email protected]>
7e336ba1 11430
bdbe5747
MH
11431 * regcache.c (_initialize_regcache): No need to call
11432 build_regcache() at this time; it gets called whenever
11433 the gdbarch changes.
11434
7781cd62
DB
114352002-03-20 David O'Brien <[email protected]>
11436
11437 * sparc-nat.c: Include sys/param.h where possible.
11438
f65ca430
DJ
114392002-03-20 Daniel Jacobowitz <[email protected]>
11440
11441 Fix PR gdb/422.
11442 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
11443 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
11444 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
11445 complex types.
11446 * stabsread.c (rs6000_builtin_type): Likewise.
11447 (read_sun_floating_type): Likewise.
11448
0c867556
PS
114492002-03-19 Peter Schauer <[email protected]>
11450
11451 * stabsread.c (read_member_functions): Remove skip code for duplicate
11452 constructor/destructor methods. Use standard parsing for these
11453 methods and just do not chain them to the list of methods after
11454 parsing.
11455
12b9c64f
AO
114562002-03-19 Alexandre Oliva <[email protected]>
11457
11458 * coffread.c: Remove redundant static declarations. Replace
11459 occurrences of `PTR' with `void *'.
11460 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
11461 * top.h (quit_cover): Likewise.
11462 * defs.h (catch_errors): Likewise.
11463
349c5d5f
AC
114642002-03-18 Andrew Cagney <[email protected]>
11465
11466 * defs.h (XMALLOC): Define.
11467 * gdb-events.sh (XMALLOC): Delete macro.
11468 * gdb-events.c, gdb-events.h: Regenerate.
11469 * gdbarch.sh (XMALLOC): Delete macro.
11470 * gdbarch.c: Regenerate.
11471 * serial.c (XMALLOC): Delete macro.
11472 * ui-file.c (XMALLOC): Ditto.
11473 * ser-unix.h (XMALLOC): Ditto.
11474 * sh-tdep.c (XMALLOC): Ditto.
11475 * ui-out.c (XMALLOC): Ditto.
11476 * utils.c (XMALLOC): Ditto.
11477 * i386-tdep.c (XMALLOC): Ditto.
11478 * gdb-events.c (XMALLOC): Ditto.
11479 * d10v-tdep.c (XMALLOC): Ditto.
11480 * cli-out.c (XMALLOC): Ditto.
11481
11482 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
11483 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
11484 * ui-file.c, ui-out.c: Ditto.
11485
7d0766f3
AC
114862002-03-18 Andrew Cagney <[email protected]>
11487
11488 * command.h (struct cmd_list_element): Add field context.
11489 (set_cmd_context, get_cmd_context): Declare.
11490 * cli/cli-decode.h: Ditto.
11491 * cli/cli-decode.c (get_cmd_context): New function.
11492 (set_cmd_context): New function.
11493 (add_cmd): Initialize context.
11494 Part of fixing PR gdb/145 and PR gdb/146.
11495
5913bcb0
AC
114962002-03-17 Andrew Cagney <[email protected]>
11497
1868c04e
AC
11498 * cli/cli-decode.c (cmd_type): New function.
11499 * command.h (cmd_type): Declare.
11500 * infrun.c (set_schedlock_func): Call function cmd_type.
11501 * kod.c (kod_set_os): Call cmd_type.
11502 * cris-tdep.c (cris_version_update): Use function cmd_type.
11503 (cris_mode_update, cris_abi_update): Ditto.
11504
5913bcb0
AC
11505 * command.h: (execute_cmd_post_hook): Declare.
11506 (execute_cmd_pre_hook): Declare.
11507 * cli/cli-script.c (clear_hook_in_cleanup): New function.
11508 (execute_cmd_post_hook, execute_cmd_pre_hook): New
11509 functions. Execute pre/post hook while ensuring that afterwords
11510 hook_in is cleared.
11511 * top.c (execute_command): Use execute_cmd_post_hook, and
11512 execute_cmd_pre_hook to execute pre/post commands.
11513 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
11514 hook_stop_stub.
11515 (hook_stop_stub): Call execute_cmd_pre_hook.
11516
b51450c9
AC
115172002-03-17 Andrew Cagney <[email protected]>
11518
11519 * kod.c (kod_set_os): Revert previous change. Is called by ``info
11520 set'' and this leads to a core dump. Move xstrdup of
11521 operating_system to after check that it is not NULL.
11522
f66c9f11
AC
115232002-03-17 Andrew Cagney <[email protected]>
11524
8e694ecf
AC
11525 * kod.c (kod_set_os): Remove unnecessary check that
11526 ``command->type'' is set_cmd.
11527
f66c9f11
AC
11528 * valprint.c (set_input_radix): Use input_radix.
11529 (set_output_radix): Use output_radix.
11530 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
11531 isn't reverted.
11532
9d01611c
AC
115332002-03-16 Andrew Cagney <[email protected]>
11534
11535 * value.h (struct value): Delete field ``substring_addr''. Change
11536 aligner fields to force_doublest_align, force_longest_align,
ee2d3b3a
AC
11537 force_core_addr_align and force_pointer_aligh.
11538
11539 * value.h (struct value): Fix typo in above change.
9d01611c 11540
4156bb53
PS
115412002-03-16 Peter Schauer <[email protected]>
11542
11543 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
11544 to fix internal_error from ``maintenance print architecture''.
11545
0e5e3ea6
PS
115462002-03-16 Peter Schauer <[email protected]>
11547
11548 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
11549 for gcc versions after gcc-2.8.1.
11550
9b013045
PS
115512002-03-16 Peter Schauer <[email protected]>
11552
11553 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
11554 for method resolution. Restore adjustment of ``this'' pointer after
11555 calling value_struct_elt, which was accidentally removed during the
11556 HP merge.
11557
376c9600
AC
115582002-03-15 Andrew Cagney <[email protected]>
11559
11560 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
11561 value_of_register.
11562 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
11563 get_saved_register.
11564 * value.h (value_of_register): Update.
11565
a4db0f07
RH
115662002-03-14 Richard Henderson <[email protected]>
11567
11568 * configure.in: Detect declaration for canonicalize_file_name.
11569 * utils.c (canonicalize_file_name): Declare, if needed.
11570 (gdb_realpath): Prefer realpath if available and usable.
11571 * config.in, configure: Rebuild.
11572
96383835
RH
115732002-03-14 Richard Henderson <[email protected]>
11574
11575 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
11576 a constant array bound.
11577
11578 * MAINTAINERS: Add myself to write-after-approval.
11579
75245b24
MS
115802002-03-14 Michael Snyder <[email protected]>
11581
11582 * symfile.c (syms_from_objfile): Return immediately if no syms.
11583 (symbol_file_add): Return immediately if no syms.
11584 (find_sym_fns): Return immediately if no syms.
11585
e641a1ca
ML
115862002-03-13 Michal Ludvig <[email protected]>
11587
11588 * gdbserver/remote-util.c (remote_open): Print remote-side's
11589 IP address when remote debugging over the network.
7e336ba1 11590
df08bfec
DB
115912002-03-12 David O'Brien <[email protected]>
11592
11593 * config/sparc/fbsd.mh: Fix copyright.
11594 * config/sparc/fbsd.mt: Likewise.
11595
9a57864f
RE
115962002-03-11 Richard Earnshaw <[email protected]>
11597
11598 * MAINTAINERS: Fix typo in name of gdb warnings option.
11599 (x86-64): Fix formating so that this can be parsed by awk.
11600
dd7bf85e
DJ
116012002-03-10 Daniel Jacobowitz <[email protected]>
11602
11603 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
11604 * defs.h: Include "gdb/signals.h".
11605 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
11606
33a0a2ac
ML
116072002-03-10 Michal Ludvig <[email protected]>
11608
11609 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
7e336ba1 11610 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
33a0a2ac
ML
11611 from x86-64-tdep.h
11612
dd824b04
DJ
116132002-03-10 Daniel Jacobowitz <[email protected]>
11614 Don Howard <[email protected]>
11615
11616 * mips-tdep.c (ST0_FR): Define.
11617 (mips2_fp_compat): New function, temporarily disabled.
11618 (mips_read_fp_register_single): New function.
11619 (mips_read_fp_register_double): New function.
11620 (mips_print_register): Use them.
11621 (do_fp_register_row): Likewise.
11622
6a41ff59
AC
116232002-03-09 Andrew Cagney <[email protected]>
11624
11625 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
11626 approval''.
11627
4ea09c10
PS
116282002-03-08 Peter Schauer <[email protected]>
11629
11630 * stabsread.c (read_member_functions): Fix is_stub test for
11631 static member functions, improve comment.
11632
6ccc741d
RE
116332002-03-07 Richard Earnshaw <[email protected]>
11634
11635 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
11636 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
11637 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
11638 commands that set boolean values.
11639 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
11640 (arm_rdi_resume): Always initialize PC.
11641 (arm_rdi_open): Don't use rslt as a boolean.
11642 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
11643 (arm_rdi_fetch_registers, arm_rdi_store_registers)
11644 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
11645 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
11646
438013df
AO
116472002-03-06 Alexandre Oliva <[email protected]>
11648
11649 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
11650 * configure: Rebuilt.
11651
70ed8774
SC
116522002-03-06 Stephane Carrez <[email protected]>
11653
11654 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
11655 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
11656
5ba2abeb
AC
116572002-03-06 Andrew Cagney <[email protected]>
11658
11659 * cli/cli-decode.c (set_cmd_completer): New function.
11660 * command.h (set_cmd_completer): Declare.
11661 * cli/cli-decode.h (set_cmd_completer): Ditto.
11662
11663 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
11664 * cli/cli-cmds.c (init_cli_cmds): Ditto.
11665 * win32-nat.c (_initialize_inftarg): Ditto.
11666 * remote-rdi.c (_initialize_remote_rdi): Ditto.
11667 * proc-api.c (_initialize_proc_api): Ditto.
11668 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
11669 * source.c (_initialize_source): Ditto.
11670 * exec.c (_initialize_exec): Ditto.
11671 * solib.c (_initialize_solib): Ditto.
11672 * top.c (init_main): Ditto.
11673 * tracepoint.c (_initialize_tracepoint): Ditto.
11674 * symfile.c (_initialize_symfile): Ditto.
11675 * printcmd.c (_initialize_printcmd): Ditto.
11676 * infcmd.c (_initialize_infcmd): Ditto.
11677 * corefile.c (_initialize_core): Ditto.
11678
f779ca99
AC
116792002-03-05 Andrew Cagney <[email protected]>
11680
11681 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
11682
01a3934b
AC
116832002-03-05 Andrew Cagney <[email protected]>
11684
11685 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
11686
37057839
AC
116872002-03-05 Andrew Cagney <[email protected]>
11688
11689 * NEWS: Update headings, 5.2 has branched.
11690
c6ecbae5
DJ
116912002-03-04 Daniel Jacobowitz <[email protected]>
11692
11693 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
11694 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
11695 (register_addr, REGISTER_RAW_SIZE): Likewise.
11696 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
11697 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
11698
e9f30c21
ML
116992002-03-03 Michal Ludvig <[email protected]>
11700
11701 * MAINTAINERS (x86-64): Add myself.
11702 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
11703 changed value_ptr -> struct value *
11704
54394ac3
DB
117052002-03-01 David O'Brien <[email protected]>
11706
11707 * configure.host (sparc64-*-freebsd): Add.
11708 * configure.tgt: Likewise.
11709 * config/sparc/fbsd.mh: New file.
11710 * config/sparc/fbsd.mt: Likewise.
11711 * config/sparc/nm-fbsd.h: Likewise.
11712 * config/sparc/tm-fbsd.h: Likewise.
11713
bfe95955
DJ
117142002-03-01 Daniel Jacobowitz <[email protected]>
11715
11716 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
11717 regformats/reg-s390x.dat.
11718
f33c6cbf
AC
117192002-03-01 Andrew Cagney <[email protected]>
11720
11721 * utils.c: Add FIXME explaining true/false problem.
11722
5ecaa7dd
AC
117232002-02-28 Andrew Cagney <[email protected]>
11724
11725 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
11726
2a251cc2
MC
117272002-02-28 Michael Chastain <[email protected]>
11728
11729 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
11730
6a8031a3 117312002-02-28 Daniel Jacobowitz <[email protected]>
265f716b
DJ
11732
11733 * gdbserver/linux-s390-low.c: New file.
11734 * regformats/reg-s390.dat: New file.
11735 * regformats/reg-s390x.dat: New file.
11736 * gdbserver/configure.srv: Add S/390.
11737 * gdbserver/Makefile.in: Add S/390.
11738 * configure.tgt: Enable gdbserver for S/390.
11739
ac469903
EZ
117402002-02-28 Eli Zaretskii <[email protected]>
11741
11742 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
11743 first line of the doc string for "info dos", except at the end of
11744 the sentence, since the short help stops at the first period.
11745
985cb1a3
JM
117462002-02-28 Jason Merrill <[email protected]>
11747
11748 * dwarf2read.c (dwarf_cfi_name): Add new codes.
11749
c570663e
FF
117502002-02-27 Fred Fish <[email protected]>
11751
11752 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
11753 comment (dumy -> dummy).
11754
43630227
PS
117552002-02-27 Peter Schauer <[email protected]>
11756
11757 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
11758
b84911e8
RB
117592002-02-27 Rodney Brown <[email protected]>
11760
11761 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
11762
58caa3dc
DJ
117632002-02-27 Daniel Jacobowitz <[email protected]>
11764
11765 * gdbserver/acconfig.h: New file.
11766 * gdbserver/i387-fp.c: New file.
11767 * gdbserver/i387-fp.h: New file.
11768 * gdbserver/linux-x86-64.c: New file.
11769 * regformats/reg-x86-64.dat: New file.
11770 * configure.tgt: Add x86_64-*-linux* gdbserver support.
11771 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
11772 * gdbserver/configure.in: Add support for regsets.
11773 * gdbserver/config.in: Regenerate.
11774 * gdbserver/configure: Regenerate.
11775 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
11776 * gdbserver/linux-low.h: New file.
11777 * gdbserver/linux-low.c: Include "linux-low.h". Add support
11778 for regsets.
11779 * gdbserver/linux-arm-low.c: Include "linux-low.h".
11780 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
11781 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
11782 * gdbserver/linux-mips-low.c: Include "linux-low.h".
11783 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
11784 * gdbserver/linux-sh-low.c: Include "linux-low.h".
11785 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
11786 "i387-fp.h". Add PTRACE_GETREGS and friends.
11787 * gdbserver/regcache.c (supply_register): New function.
11788 (supply_register_by_name): New function.
11789 (collect_register): New function.
11790 (collect_register_by_name): New function.
11791
93652174
DJ
117922002-02-27 Daniel Jacobowitz <[email protected]>
11793
11794 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
11795 (config.status): Add configure.srv dependency.
11796 (server_h): Add config.h dependency.
11797
a02e4a61
DJ
117982002-02-27 Daniel Jacobowitz <[email protected]>
11799
11800 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
11801 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
11802 * gdbserver/configure.srv: Change i386-*-linux* to use
11803 reg-i386-linux.o.
11804
ce0eebec
AC
118052002-02-26 Andrew Cagney <[email protected]>
11806
11807 * x86-64-tdep.c: Re-indent. Update copyright date.
11808
82dbc5f7
AC
118092002-02-26 Andrew Cagney <[email protected]>
11810
11811 From Michal Ludvig <[email protected]>:
11812 * x86-64-tdep.c (value.h): Delete.
11813 (gdb_assert.h): Include.
11814 (x86_64_register_convert_to_virtual,
11815 x86_64_register_convert_to_raw ): Add check which lets only
11816 floating-point values to be converted.
11817 (value_push): Delete.
11818 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
11819 (i386_gdbarch_init): Number of register_bytes fixed.
11820
e4621584
AC
118212002-02-26 Andrew Cagney <[email protected]>
11822
11823 * MAINTAINERS: Add x86-64 target.
11824
81a9a963
AC
118252002-02-26 Andrew Cagney <[email protected]>
11826
11827 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
11828 * osfsolib.c (solib_map_sections): Ditto.
11829 * irix5-nat.c (solib_map_sections): Ditto.
11830 * corelow.c (gdb_check_format): Ditto.
11831 * symfile.c (symfile_bfd_open): Ditto.
11832 * solib.c (solib_map_sections): Ditto.
11833 Fix PR gdb/354.
7e336ba1 11834
0f017ab9
AC
118352002-02-26 Andrew Cagney <[email protected]>
11836
11837 * remote.c (_initialize_remote): By default, disable ``e'' and
11838 ``E'' step out-of-range packets.
11839
75738c29
AS
118402002-02-26 Andreas Schwab <[email protected]>
11841
11842 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
11843 m68k_linux_frame_saved_pc.
11844 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
11845 in_sigtramp.
11846 (SIGCONTEXT_PC_OFFSET): Remove.
11847 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
11848 m68k_linux_sigtramp_saved_pc): New functions.
11849 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
11850 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
11851 (UCONTEXT_PC_OFFSET): Define.
11852 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
11853 non-RT and RT signal trampolines.
11854
7e8ed687
RE
118552002-02-26 Richard Earnshaw <[email protected]>
11856
11857 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
11858 (TARGET_NBPG, STACK_END_ADDR): Delete
11859 (VARIABLES_INSIDE_BLOCK): Delete.
11860
6972bc8b
AC
118612002-02-25 Andrew Cagney <[email protected]>
11862
11863 * utils.c (perror_with_name): Make string parameter constant.
11864 (print_sys_errmsg): Ditto.
11865 (query): Ditto.
11866 * defs.h (perror_with_name): Update.
11867 (print_sys_errmsg): Update.
11868 (query): Update.
11869
aa32f823
DJ
118702002-02-25 Daniel Jacobowitz <[email protected]>
11871
11872 From Eliot Dresselhaus <[email protected]>:
11873 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
11874
19caaa45
PS
118752002-02-25 Peter Schauer <[email protected]>
11876
11877 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
11878 if it already matches the current architecture from the exec file.
11879 Include arch-utils.h for gdbarch_info_init prototype.
11880 * Makefile.in (rs6000-nat.o): Update dependencies.
11881
d951901f
EZ
118822002-02-25 Eli Zaretskii <[email protected]>
11883
11884 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
11885 list of exported variables.
11886
7ea81414
DJ
118872002-02-24 Daniel Jacobowitz <[email protected]>
11888
11889 * gdbserver/configure.srv: New file.
11890 * gdbserver/configure.in: Use configure.srv instead
11891 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
11892 from it.
11893 * gdbserver/configure: Regenerated.
11894 * gdbserver/terminal.h: New file.
11895 * gdbserver/Makefile.in: Update for configure changes. Remove
11896 more unneeded include paths.
11897
080fe24b
AC
118982002-02-24 Andrew Cagney <[email protected]>
11899
11900 From wiz at danbala:
11901 * config/sparc/tm-sp64.h: Fix grammar and typos.
11902 Fix PR gdb/287.
11903
8605d56e
AC
119042002-02-24 Andrew Cagney <[email protected]>
11905
11906 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
a4b6fc86
AC
11907 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
11908 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
11909 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
ca557f44
AC
11910 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
11911 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
11912 * s390-tdep.c: Ditto.
92362027
AC
11913 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
11914 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
11915 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
11916 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
11917 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
11918 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
11919 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
11920 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
11921 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
11922 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
8605d56e 11923 Fix PR gdb/378.
7e336ba1 11924
8ed32cc0
AC
119252002-02-23 Andrew Cagney <[email protected]>
11926
a3007b6f
AC
11927 * lin-thread.c: Delete file.
11928 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
11929 to gdb_proc_service.h.
11930 * configure: Re-generate.
11931
50a9e2f1
AC
11932 * ocd.c (ocd_open): Do not try to open the "ocd" device.
11933 * serial.c (serial_open): Delete check for "ocd".
11934 Fix PR gdb/349.
11935
8b6e7932
AC
11936 * Makefile.in (linux-thread.o): Delete target.
11937 * linux-thread.c: Delete file.
11938
d155c46b
AC
11939 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
11940 renamed SH files to be consistent.
11941
8ed32cc0
AC
11942 * symtab.c (sort_search_symbols): Use xfree.
11943
0e18d038
RE
119442002-02-23 Richard Earnshaw <[email protected]>
11945
11946 * arm-linux-tdep.c (arm_linux_init_abi): Register
11947 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
11948 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
11949 definition with undef, since we don't want the sysvr4 definition.
11950 (SKIP_TRAMPOLINE_CODE): Likewise.
11951
27aac7ff
AC
119522002-02-23 Andrew Cagney <[email protected]>
11953
11954 From 2002-02-22 Alfred M. Szmidt <[email protected]>:
11955
11956 * configure.in: (AC_CHECK_FUNCS) Added test for
11957 canonicalize_file_name Regenerated.
11958 * config.in, configure: Regenerated.
11959 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
11960 defined use canonicalize_file_name.
7e336ba1 11961
65a6e0ee
MC
119622002-02-23 Michael Chastain <[email protected]>
11963
11964 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
11965
47b95330
AC
119662002-02-23 Andrew Cagney <[email protected]>
11967
11968 * README: Remove references to cygnus.com.
11969 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
11970 dot com'' form. Remove references to cygnus.com and sourceware.
11971
696f451b
AC
119722002-02-23 Andrew Cagney <[email protected]>
11973
11974 From 2002-02-19 Paul Eggert <[email protected]>:
11975 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
11976 1003.1-2001 no longer allows "head -1".
11977 * gdb/Makefile.in (version.c): Likewise.
11978 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
11979 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
11980 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
11981
bbaca940
AC
119822002-02-23 Andrew Cagney <[email protected]>
11983
11984 * cli/cli-decode.c (cmd_cfunc_eq): New function.
11985 * command.h (cmd_cfunc_eq): Declare.
11986 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
11987
11988 * cli/cli-cmds.h (is_complete_command): Change parameter to a
11989 ``struct cmd_list_element *''.
11990 * cli/cli-cmds.c (is_complete_command): Update. Use
11991 cmd_cfunc_eq.
11992 * top.c (execute_command): Pass the command to
11993 is_complete_command.
11994 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
11995
b8b8b047
AC
119962002-02-23 Andrew Cagney <[email protected]>
11997
11998 From 2002-02-20 Martin Schwidefsky <[email protected]>:
11999 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12000 architecture defines.
12001 * s390-tdep.c (s390_gdbarch_init): Likewise.
12002
19d3fc80
RE
120032002-02-23 Richard Earnshaw <[email protected]>
12004
12005 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12006 (arm_linux_push_arguments): Likewise.
12007 (arm_linux_init_abi): Register them. Also register linux-specific
12008 call_dummy_words.
12009 (find_minsym_and_objfile): Use strcmp, not STREQ.
12010 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12011 (arm_linux_call_dummy_words): Delete declaration.
12012 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12013 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12014 declarations.
12015 (LOWEST_PC): Delete.
12016
3ab13650
PS
120172002-02-23 Peter Schauer <[email protected]>
12018
12019 * maint.c (print_section_info): Do not prepend `0x' to filepos
12020 output, it will be handled by local_hex_string_custom.
12021
19d3fc80 120222002-02-23 Richard Earnshaw <[email protected]>
85ae890c
RE
12023
12024 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12025 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12026 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12027
d85a5daf
JB
120282002-02-22 Jim Blandy <[email protected]>
12029
12030 Indicate that the bcache functions don't change the strings
12031 they're passed.
12032 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12033 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12034
eeb25b8a
PM
120352002-02-22 Pierre Muller <[email protected]>
12036
12037 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12038
6badb179
CF
120392002-02-21 Christopher Faylor <[email protected]>
12040
12041 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
12042 find the complete path to a loaded DLL.
12043
e8717518
FF
120442002-02-21 Fred Fish <[email protected]>
12045
12046 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
12047 that marks the end of the range of a function, enter a line number
12048 entry that has a line number of zero and a PC offset that matches
12049 the end of the function. This starts a range of PC's for which no
12050 line number information is known.
12051 * symtab.c (find_pc_sect_line): If our best fit is in a range of
12052 PC's for which no line number info is found (line number is zero)
12053 then we didn't find any valid line information.
12054 * symtab.h: Document use of zero line number entry.
12055
9abe5450
EZ
120562002-02-21 Elena Zannoni <[email protected]>
12057
12058 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
12059 (have_ptrace_getvrregs): Define for run time checks.
12060 (gdb_vrregset_t): New type for Altivec register handling.
12061 (fetch_register, store_register): Fetch/store altivec register
12062 when needed.
12063 (fetch_altivec_register, store_altivec_register): New functions.
12064 (supply_vrregset, fill_vrregset): New functions.
12065 (fetch_altivec_registers, store_altivec_registers): New functions.
12066 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
12067 registers as well.
12068
aaa38bb5
AJ
120692002-02-21 Jiri Smid <[email protected]>
12070
12071 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
12072
b34db576
RE
120732002-02-21 Richard Earnshaw <[email protected]>
12074
12075 * Makefile.in (armnbsd-nat.o): Update dependencies.
12076 * armnbsd-nat.c (supply_gregset): New function. Common code to
12077 supply the integer register set.
12078 (supply_fparegset): New function. Similar for FPA registers.
12079 (fetch_regs, fetch_fp_regs): Use them.
12080 (fetch_core_registers): Likewise.
12081 (fetch_elfcore_registers): New function.
12082 (arm_netbsd_elfcore_fns): New core-file type specification.
12083 (_initialize_arm_netbsd_nat): Register it.
12084
3e56fc4b
RE
120852002-02-21 Richard Earnshaw <[email protected]>
12086
12087 * armnbsd-nat.c: Include gdbcore.h.
12088 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
12089 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
12090 'void' to declaration, to shut up ARI.
12091 (fetch_core_registers): Make static. Rewrite using supply_register.
12092 (arm_netbsd_core_fns): New core-file type specification.
12093 (_initialize_arm_netbsd_nat): New function.
12094
097f6b0b
CF
120952002-02-21 Christopher Faylor <[email protected]>
12096
12097 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
12098 value.
12099
c914e0cc
CF
121002002-02-20 Christopher Faylor <[email protected]>
12101
12102 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
12103 fails.
12104
385fa495
DJ
121052002-02-20 Daniel Jacobowitz <[email protected]>
12106
12107 * jv-exp.y (parse_number): Change type of implicit longs
12108 to builtin_type_uint64.
12109
e5f1222d
DJ
121102002-02-20 Daniel Jacobowitz <[email protected]>
12111
12112 * gdbserver/linux-low.c (mywait): Change argument to waitpid
12113 to be an integer instead of a `union wait'.
12114
75c9abc6
DJ
121152002-02-20 Daniel Jacobowitz <[email protected]>
12116
12117 * mips-linux-nat.c: Call the operating system GNU/Linux.
12118 * mips-linux-tdep.c: Likewise.
12119 * mips-tdep.c: Likewise.
12120
551792a5
DJ
121212002-02-20 Daniel Jacobowitz <[email protected]>
12122
12123 Fix PR gdb/265.
12124 * jv-exp.y (parse_number): Handle 64-bit integers.
12125
ee6e2b82
DJ
121262002-02-20 Daniel Jacobowitz <[email protected]>
12127
12128 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
12129 AC_STDC_HEADERS to AC_HEADER_STDC.
12130 * gdbserver/configure: Regenerated.
12131
a48442a0
RE
121322002-02-20 Richard Earnshaw <[email protected]>
12133
12134 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
12135 is defined.
12136 * sparc-tdep.c (get_longjmp_target): Likewise.
12137
fe419ffc
RE
121382002-02-20 Richard Earnshaw <[email protected]>
12139
12140 * News: Add news about ARM and Multi-arch. Mention the new target
12141 arm*-*-netbsd*.
12142
5832ed7e
JB
121432002-02-19 Jim Blandy <[email protected]>
12144
12145 * stabsread.c (error_type_complaint): Improve error message.
12146
84563040
DJ
121472002-02-19 Daniel Jacobowitz <[email protected]>
12148
12149 * gdbserver/README: Update documentation.
12150 * gdbserver/configure.in: Update configury to match documentation.
12151 * gdbserver/Makefile.in: Likewise.
12152 * gdbserver/configure: Regenerated.
12153 * gdbserver/aclocal.m4: New file, generated by aclocal.
12154 * gdbserver/config.in: New file, generated by autoheader.
12155
375fd65b
RE
121562002-02-19 Richard Earnshaw <[email protected]>
12157
12158 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
12159 armnbsd-nat.c.
12160
08216dd7
RE
121612002-02-19 Richard Earnshaw <[email protected]>
12162
12163 * arm-tdep.h (enum arm_float_model): New enum.
12164 (struct gdbarch_tdep): Add fp_model.
12165 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
12166 up floating-point conversions until we know the floating-point model
12167 in use by the inferior. Don't complain about being unable to
12168 determine the ABI of the inferior when we don't have one.
12169 (arm_extract_return_value): Support different floating-point models.
12170 (arm_store_return_value): Likewise.
aaa38bb5 12171 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
08216dd7
RE
12172 ARM_FLOAT_SOFT.
12173 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
12174
65d6d66a
PS
121752002-02-19 Peter Schauer <[email protected]>
12176
12177 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
12178 of ``current_gdbarch''.
12179
47221191
RE
121802002-02-19 Richard Earnshaw <[email protected]>
12181
12182 * armnbsd-nat.c : ANSIfy all function declarations.
12183 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
12184 (fetch_inferior_registers): Re-implement in terms of above.
12185 (store_register, store_regs, store_fp_register, store_fp_regs): New.
12186 (store_inferior_registers): Re-implement in terms of above.
12187
fdf39c9a
RE
121882002-02-19 Richard Earnshaw <[email protected]>
12189
aaa38bb5 12190 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
fdf39c9a
RE
12191 kernel.
12192 * arm-linux-tdep.c: Likewise.
12193 * config/arm/tm-linux.h: Likewise.
12194
93247f88
RE
121952002-02-19 Richard Earnshaw <[email protected]>
12196
12197 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
12198 * config/arm/nbsd.mt (TM_FILE): Delete.
12199 * config/arm/tm-nbsd.h: Delete.
12200
d7b486e7
RE
122012002-02-19 Richard Earnshaw <[email protected]>
12202
12203 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
12204 Initialize CALL_DUMMY_LENGTH.
12205
41d39a95
RE
122062002-02-19 Richard Earnshaw <[email protected]>
12207
12208 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
12209 function.
12210 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
aaa38bb5 12211 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
41d39a95
RE
12212 defines one thing and that is incorrect for this port.
12213 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
12214
e1195560
PM
122152002-02-18 Pierre Muller <[email protected]>
12216
12217 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
12218
c1748f97
PM
122192002-02-18 Pierre Muller <[email protected]>
12220
12221 * win32-nat.c (display_selector): New function. Displays information
12222 about the information returned by GetThreadSelectorEntry API function.
12223 (display_selectors): New function. Displays the infomation of
12224 the selector given as argument, or of CS, DS ans FS selectors
12225 if no argument is given.
12226 ( _initialize_inftarg): Add "w32" as info prefix command.
12227 Add "info w32 selector" as command calling display_selectors.
12228
e41e6bbf
PM
122292002-02-19 Pierre Muller <[email protected]>
12230
12231 * i386-tdep.c (get_longjmp_target): Fix compilation failure
12232 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
12233 if not defined.
12234
0d3a9f48
RE
122352002-02-18 Richard Earnshaw <[email protected]>
12236
12237 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
12238
3fb4b924
RE
122392002-02-18 Richard Earnshaw <[email protected]>
12240
12241 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
12242 (arm_fix_call_dummy): Call it.
12243 (arm_call_dummy_breakpoint_offset): Delete.
12244 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
12245 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
12246
7f55af32
AC
122472002-02-18 Andrew Cagney <[email protected]>
12248
12249 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
12250 Default to func_frame_chain_valid.
12251 * gdbarch.h, gdbarch.c: Re-generate.
12252 * frame.h (FRAME_CHAIN_VALID): Delete definition.
12253
05f13b9c
EZ
122542002-02-18 Elena Zannoni <[email protected]>
12255
12256 * ppc-linux-nat.c: Update copyright.
12257 (fetch_register, store_register): Add tid parameter, don't compute
12258 tid here.
12259 (fetch_ppc_registers, store_ppc_registers): Add tid
12260 parameter. Pass it along to callees.
12261 (fetch_inferior_registers, store_inferior_registers): Compute tid
12262 here, and pass it to calleed functions.
12263 (fill_gregset, supply_fpregset): Clean up formatting.
12264
d7afb4c9
RE
122652002-02-18 Richard Earnshaw <[email protected]>
12266
12267 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
12268 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
12269
9df628e0
RE
122702002-02-18 Richard Earnshaw <[email protected]>
12271
12272 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
12273 * gdbarch.c gdbarch.h: Regenerate.
12274 * breakpoint.c (create_longjmp_breakpoint): Always compile this
12275 function.
12276 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
12277 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
12278 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
12279
12280 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
12281 * arm-tdep.c (arm_get_longjmp_target): New function.
12282 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
12283 this to a positive value register arm_get_longjmp_target as the
12284 longjmp handler.
12285 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
12286 (arm_linux_init_abi): Set up longjmp description in tdep.
12287 * armnbsd-nat.c (get_longjmp_target): Delete.
12288 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
12289 description in tdep.
12290 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
12291 (get_longjmp_target): Delete declaration.
12292 (GET_LONGJMP_TARGET): Delete.
12293 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
12294 (GET_LONGJMP_TARGET): Delete.
12295
57bc8964
KB
122962002-02-17 Kevin Buettner <[email protected]>
12297
12298 From Peter Schauer <[email protected]>:
12299 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
12300 of ``current_gdbarch''.
12301
83d31a92
TT
123022002-02-17 Tom Tromey <[email protected]>
12303
12304 * cli/cli-cmds.c (compare_strings): New function.
12305 (complete_command): Only print each unique item once.
12306 * completer.h (complete_line): Declare.
12307 * completer.c (complete_line): New function.
12308 (line_completion_function): Use it.
12309
17ef5d92
AC
123102002-02-16 Andrew Cagney <[email protected]>
12311
12312 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
12313 * gdbarch.h, gdbarch.c: Re-generate.
12314
491b8946
DJ
123152002-02-16 Daniel Jacobowitz <[email protected]>
12316
12317 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
12318
123192002-02-16 Daniel Jacobowitz <[email protected]>
12320
12321 From Peter Schauer <[email protected]>:
12322 * valops.c (value_arg_coerce): Don't take the address of a reference
12323 to convert an argument to a reference.
12324
dfe7f3ac
CF
123252002-02-15 Christopher Faylor <[email protected]>
12326
12327 * win32-nat.c (get_image_name): New function.
12328 (handle_load_dll): Use get_image_name function.
12329 (get_child_debug_event): Avoid registering debug events until possibly
12330 execed process is started.
12331 (child_create_inferior): Allow invocation via shell so that command
12332 line redirection, etc. works ok.
12333 (_initialize_inftarg): Add new command: "set shell" to control whether
12334 a shell is used to start a process.
12335
1d33e73a
DJ
123362002-02-15 Daniel Jacobowitz <[email protected]>
12337
12338 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
12339 instead of find_register_by_number.
12340 (cannot_store_register): Likewise.
12341
48cd0caa
PM
123422002-02-14 Pierre Muller <[email protected]>
12343
aaa38bb5 12344 * dwarf2read.c: Replace fprintf (stderr, ...) by
48cd0caa
PM
12345 fprintf_unfiltered (gdb_stderr, ...).
12346
8656e7d8
DJ
123472002-02-15 Daniel Jacobowitz <[email protected]>
12348
12349 * gdbserver/gdbserver.1: Document --attach.
12350
66e810cd
RE
123512002-02-15 Richard Earnshaw <[email protected]>
12352
12353 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
12354 descriptions.
12355 * arm-tdep.c (arm_default_arm_le_breakpoint)
12356 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
12357 (arm_default_thumb_be_breakpoint): New. Initialize them from
12358 traditional breakpoint defines.
12359 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
12360 (arm_gdbarch_init): Initialize new breakpoint variables.
12361 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
12362 (arm_linux_init_abi): Initialize linux-specific breakpoint.
12363 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
12364 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
12365 code out to ...
12366 (arm_netbsd_init_abi_common): ... here; new function.
12367 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
12368 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
12369 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
12370 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
12371
97e03143
RE
123722002-02-15 Richard Earnshaw <[email protected]>
12373
12374 * arm-tdep.h (enum arm_abi): New enum.
12375 (struct gdbarch_tdep): New structure.
12376 (LOWEST_PC): Provide a default.
12377 (arm_gdbarch_register_os_abi): Declare new function.
12378 * arm-tdep.c (arm_abi_names): New array.
12379 (process_note_abi_tag_sections): New function.
12380 (get_elfosabi): New function.
12381 (arm_gdbarch_register_os_abi): New function.
12382 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
12383 support for that ABI has been built in, then call the appropriate
12384 configuration routine. Use gdbarch_num_regs() to get the number
12385 of registers.
12386 (arm_dump_tdep): New function.
12387 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
12388 place-holder functions.
12389 (_initialize_arm_tdep): Register them.
12390 * config/arm/tm-arm.h (LOWEST_PC): Delete.
12391
12392 * armnbsd-tdep.c: New file.
12393 * Makefile.in (armnbsd-tdep.o): Add dependencies.
12394 * config/arm/nbsd.mt (TDEPFILES): Add it.
12395 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
12396
12397 * armnbsd-nat.c: Include regcache.h.
12398 * Makefile.in (armnbsd-nat.o): Update dependency list.
12399
12400 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
12401
ad68be46
DJ
124022002-02-14 Daniel Jacobowitz <[email protected]>
12403
12404 * gdbserver/Makefile.in: Fix typos in target rules.
12405
003d6d1d
DJ
124062002-02-14 Daniel Jacobowitz <[email protected]>
12407
aaa38bb5 12408 Fix part of PR gdb/267.
003d6d1d
DJ
12409 * linespec.c (find_methods): Handle constructors specially for now.
12410
6b230f1b
CV
124112002-02-14 Corinna Vinschen <[email protected]>
12412
12413 * arm-tdep.c (arm_push_arguments): Eliminate special float type
12414 handling.
12415 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
12416 standard_coerce_float_to_double().
12417
1ea98d12
CF
124182002-02-14 Christopher Faylor <[email protected]>
12419
12420 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
12421 GDBINIT_FILENAME.
12422
dd47e6fd
EZ
124232002-02-14 Elena Zannoni <[email protected]>
12424
12425 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
12426 find_variant_by_name, because it confuses the multiarch
12427 framework. Return NULL if there isn't an architecture with the
12428 user supplied name, instead of forcing a different one without
12429 recording the change with the multiarch machinery.
12430 (find_variant_by_name): Delete.
12431
d7e39b9e
PS
124322002-02-14 Peter Schauer <[email protected]>
12433
12434 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
12435 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
12436
76e42a4f
MH
124372002-02-13 Martin M. Hunt <[email protected]>
12438
aaa38bb5 12439 * stack.c (print_frame_info_base): When calling
76e42a4f
MH
12440 print_frame_info_listing_hook, set current_source_symtab.
12441
0a30fbc4
DJ
124422002-02-14 Daniel Jacobowitz <[email protected]>
12443
12444 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
12445 and remove unused $(INCLUDE_DIR).
12446 Add regcache.c to OBS.
12447 Add generated register protocol files to clean target.
12448 Update dependencies for new objects, obsolete old target code.
12449
12450 * gdbserver/linux-low.c: Remove all platform-specific code to
12451 new files. Remove various dead code. Update to use regcache
12452 functionality.
12453 * gdbserver/remote-utils.c (fromhex): Add return statement
12454 to quiet warning.
12455 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
12456 constant.
12457 (input_interrupt): Add integer parameter to match prototype
12458 of a signal handler.
12459 (outreg): Use register_data ().
12460 (prepare_resume_reply): Use gdbserver_expedite_regs.
12461 * gdbserver/server.c (main): Dynamically allocate own_buf because
12462 PBUFSIZ is no longer constant. Use registers_to_string () and
12463 registers_from_string ().
12464 * gdbserver/server.h: No longer include "defs.h". Add prototypes
12465 for error (), fatal (), and warning (). Update definition of
12466 PBUFSIZ to use regcache functionality. Add include guard.
12467 * gdbserver/utils.c (fatal): Add missing ``const''.
12468 (warning): New function.
12469
12470 * regformats/regdat.sh: Include "regcache.h" in generated files.
12471 Provide init_registers () function.
12472 * regformats/regdef.h: Add prototype for set_register_cache ().
12473 Add include guard.
12474
12475 * gdbserver/linux-arm-low.c: New file.
12476 * gdbserver/linux-i386-low.c: New file.
12477 * gdbserver/linux-ia64-low.c: New file.
12478 * gdbserver/linux-m68k-low.c: New file.
12479 * gdbserver/linux-mips-low.c: New file.
12480 * gdbserver/linux-ppc-low.c: New file.
12481 * gdbserver/linux-sh-low.c: New file.
12482
12483 * gdbserver/regcache.c: New file.
12484 * gdbserver/regcache.h: New file.
12485
12486 * gdbserver/low-linux.c: Removed obsolete file.
12487
4cc841d0
DJ
124882002-02-14 Daniel Jacobowitz <[email protected]>
12489
12490 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
12491 * config/i386/linux.mt: Likewise.
12492 * config/ia64/linux.mt: Likewise.
12493 * config/m68k/linux.mh: Likewise.
12494 * config/powerpc/linux.mh: Likewise.
12495 * config/mips/linux.mt: Likewise.
12496
12497 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
12498
12499 * config/i386/i386lynx.mh: Mark gdbserver variables
12500 as (currently) obsolete for this target.
12501 * config/i386/nbsd.mt: Likewise.
12502 * config/i386/nbsdelf.mt: Likewise.
12503 * config/m32r/m32r.mt: Likewise.
12504 * config/m68k/m68klynx.mh: Likewise.
12505 * config/m68k/nbsd.mt: Likewise.
12506 * config/m68k/sun3os4.mh: Likewise.
12507 * config/mips/vr5000.mt: Likewise.
12508 * config/ns32k/nbsd.mt: Likewise.
12509 * config/pa/hppabsd.mh: Likewise.
12510 * config/pa/hppaosf.mh: Likewise.
12511 * config/powerpc/nbsd.mt: Likewise.
12512 * config/rs6000/rs6000lynx.mh: Likewise.
12513 * config/s390/s390.mt: Likewise.
12514 * config/s390/s390x.mt: Likewise.
12515 * config/sparc/sparclynx.mh: Likewise.
12516 * config/sparc/sun4os4.mh: Likewise.
12517 * config/i386/x86-64linux.mt: Likewise.
12518 * config/sparc/linux.mh: Likewise.
12519
a85f51e7
DJ
125202002-02-14 Daniel Jacobowitz <[email protected]>
12521
12522 * configure.tgt: Configure gdbserver only for known working
12523 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
12524 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
12525 SUBDIRS if it is configured. Update comment for ${nativefile}.
12526 * configure: Regenerated.
12527
65554fef
MS
125282002-02-13 Michael Snyder <[email protected]>
12529
670a52db
MS
12530 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
12531
6dbdc4a3
MS
12532 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
12533 (default_gcore_mach): Just return 0, work around a problem in bfd.
12534 (default_gcore_target): OK to return NULL if exec_bfd is null.
12535 (make_mem_sec): Use a cast, avoid a warning.
12536
12537 * procfs.c (find_memory_regions_callback): Use a cast instead of
aaa38bb5 12538 calling host_pointer_to_address (which complains if
6dbdc4a3
MS
12539 sizeof (host pointer) != sizeof (target pointer)).
12540 (procfs_make_note_section): Avoid overflow in psargs string.
12541
aaa38bb5 12542 * procfs.c (procfs_make_note_section): Make the default
65554fef
MS
12543 implementation return an error.
12544
125452002-02-13 Rodney Brown <[email protected]>
12546
12547 * procfs.c (procfs_make_note_section): Provide a default definition
12548 (for alpha-dec-osf4.0f). Fix typos.
12549
1e4d76e7
EZ
125502002-02-13 Elena Zannoni <[email protected]>
12551
12552 * linux-proc.c: Add include of regcache.h.
12553 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
12554
b6d1a1d5
AC
125552002-02-13 Andrew Cagney <[email protected]>
12556
12557 From 2002-01-18 Greg McGary <[email protected]>:
aaa38bb5
AJ
12558 * memattr.c (create_mem_region): Disallow useless empty region.
12559 Regions are half-open intervals, so allow [A..B) [B..C) as
65554fef 12560 non-overlapping.
b6d1a1d5 12561
6c6ea35e
MC
125622002-02-13 Michael Chastain <[email protected]>
12563
12564 * defs.h: Kill CONST_PTR.
12565 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
12566 * c-lang.c (c_builtin_types): Likewise.
12567 * ch-lang.c (ch_builtin_types): Likewise.
12568 * f-lang.c (f_builtin_types): Likewise.
12569 * language.c (unknown_builtin_types): Likewise.
12570 * m2-lang.c (m2_builtin_types): Likewise.
12571 * p-lang.c (pascal_builtin_types): Likewise.
12572 * scm-lang.c (c_builtin_types): Likewise.
12573
3e0b0f48
KS
125742002-02-13 Keith Seitz <[email protected]>
12575
12576 * arm-tdep.h (arm_get_next_pc): Add declaration.
12577
67255d04
RE
125782002-02-13 Richard Earnshaw <[email protected]>
12579
12580 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
12581 with other related struct-returning functions.
12582 (arm_extract_struct_value_address): New function.
12583 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
12584 initialize float_format, double_format and long_double_format as
12585 appropriate to the endianness of the target.
12586 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
12587 (arm_use_struct_convention): Delete declaration.
12588 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
12589
079777f6
KS
125902002-02-13 Keith Seitz <[email protected]>
12591
12592 * defs.h (core_addr_to_string_nz): New function.
12593
34588f23
MK
125942002-02-13 Mark Kettenis <[email protected]>
12595
12596 Apply missing bits of 2002-01-15 patch.
12597 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
12598 (fill_fpregset): Use i387_fill_fsave.
12599
49b563f9
KS
126002002-02-12 Keith Seitz <[email protected]>
12601
49b563f9
KS
12602 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
12603 (core_addr_to_string_nz): New function.
12604
aeb98c60
RE
126052002-02-11 Richard Earnshaw <[email protected]>
12606
12607 * arm-linux-nat.c: Really include arm-tdep.h.
12608 * config/arm/tm-linux.h (struct type, struct value): Declare.
12609
65554fef
MS
126102002-02-11 Michael Snyder <[email protected]>
12611
12612 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
12613 (gcore section): Ifdef for Solaris and Unixware only.
12614 (procfs_do_thread_registers): Unixware needs one lwpstatus
12615 per thread (not one prstatus or pstatus).
12616 (procfs_make_note_section): Iterate only over kernel threads (lwps),
12617 not over all gdb threads. For unixware, call elfcore_write_pstatus
12618 once before iterating over threads.
12619
34e8f22d
RE
126202002-02-11 Richard Earnshaw <[email protected]>
12621
12622 * arm-tdep.h: New file.
12623 * arm-tdep.c: Include arm-tdep.h.
12624 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12625 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12626 (arm_print_float_info, arm_register_type, convert_to_extended)
12627 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12628 (arm_extract_return_value, arm_register_name): Make static.
12629 (arm_software_single_step): Similarly. Fix types in declaration.
12630 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
12631 (arm_store_return_value, arm_store_struct_return): New functions.
12632 (arm_gdbarch_init): Register the above functions. Also register
12633 call_dummy_start_offset, sizeof_call_dummy_words,
12634 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
12635 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
aaa38bb5 12636 max_register_virtual_size, register_size. Set up
34e8f22d
RE
12637 prologue_cache.saved_regs here, rather than ...
12638 (_initialize_arm_tdep): ... here.
12639 * config/arm/tm-arm.h (struct type, struct value): Delete forward
12640 declarations.
12641 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
12642 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
12643 (arm_print_float_info, arm_register_type, convert_to_extended)
12644 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
12645 (arm_extract_return_value, arm_register_name): Delete declarations.
12646 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
12647 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
12648 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
12649 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
12650 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
12651 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
12652 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
12653 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
12654 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
12655 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
12656 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
12657 (arm_get_next_pc): No-longer static -- these are needed by the RDI
12658 interface.
12659 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
12660 * remote-rdi.c remote-rdp.c: Likewise.
12661 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
12662 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
12663 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
12664 definition.
12665
12666 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
12667 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
12668 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
12669 from non-ARM_ prefixed definitions.
12670 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
12671 all uses of above.
12672 * remote-rdi.c remote-rdp.c: Likewise.
12673 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
12674
148754e5
RE
126752002-02-11 Richard Earnshaw <[email protected]>
12676
12677 * arm-tdep.c (arm_frameless_function_invocation)
12678 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12679 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12680 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12681 (arm_pop_frame, arm_get_next_pc): Make static.
12682 (arm_gdbarch_init): Register above in gdbarch structure.
12683 (arm_read_fp): Renamed from arm_target_read_fp.
12684 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
12685 * config/arm/tm-arm.h (arm_frameless_function_invocation)
12686 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
12687 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
12688 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
12689 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
12690 (arm_pc_is_thumb_dummy): Delete declarations.
fcfb8836
RE
12691 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
12692 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
12693 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
12694 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
148754e5 12695
434d2d4f
DJ
126962002-02-10 Daniel Jacobowitz <[email protected]>
12697
12698 * symtab.c (compare_search_syms): New function.
12699 (sort_search_symbols): New function.
12700 (search_symbols): Sort symbols after searching rather than
12701 before.
12702
55241689
AC
127032002-02-10 Andrew Cagney <[email protected]>
12704
12705 * NEWS: Linux -> GNU/Linux.
12706
028c194b
AC
127072002-02-10 Andrew Cagney <[email protected]>
12708
12709 * gdbarch.sh: For for level one methods, disallow a definition
12710 when partially multi-arched. Add comments explaining rationale.
12711 * gdbarch.h: Re-generate.
12712
6acf50cd
AC
127132002-02-10 Andrew Cagney <[email protected]>
12714
12715 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
12716 multi-arch partial.
aaa38bb5 12717
50248794
AC
127182002-02-10 Andrew Cagney <[email protected]>
12719
12720 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
12721 field. Use diff -u.
12722 * gdbarch.c: Re-generate.
12723
c30e0066
AC
127242002-02-10 Andrew Cagney <[email protected]>
12725
9b56c5f3 12726 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
c30e0066
AC
12727 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
12728 partial.
12729
6e6d6484
AC
127302002-02-10 Andrew Cagney <[email protected]>
12731
12732 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
12733 multi-arch partial.
12734 (PUSH_ARGUMENTS): Switch to using predefault.
12735 * gdbarch.c: Regenerate.
12736
c203844d
AC
127372002-02-10 Andrew Cagney <[email protected]>
12738
12739 * valops.c (PUSH_ARGUMENTS): Delete definition.
12740 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
12741 partial. Default to default_push_arguments.
12742 * gdbarch.h, gdbarch.c: Regenerate.
12743
b5a2688f
AC
127442002-02-09 Andrew Cagney <[email protected]>
12745
12746 * defs.h (throw_exception): Rename return_to_top_level. Update
12747 comments.
12748 * utils.c (error_stream, internal_verror, quit): Ditto.
12749 * top.c (throw_exception, catcher): Ditto.
12750 * sparclet-rom.c (sparclet_load): Ditto.
12751 * remote.c (interrupt_query, minitelnet): Ditto.
12752 * remote-sds.c (interrupt_query): Ditto.
12753 * remote-mips.c (mips_error, mips_kill): Ditto.
12754 * ocd.c (interrupt_query): Ditto.
12755 * monitor.c (monitor_interrupt_query): Ditto.
12756 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
12757 * target.h: Update comment.
aaa38bb5 12758
b5a2688f 12759 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
aaa38bb5 12760
2fa5c1e0
AC
127612002-02-09 Andrew Cagney <[email protected]>
12762
12763 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
12764 default_double_format.
12765 * gdbarch.h, gdbarch.c: Re-generate.
12766 * findvar.c (floatformat_unknown): Delete variable definition.
12767 * doublest.h (floatformat_unknown): Delete variable declaration.
12768
da966255
JB
127692002-02-09 Jim Blandy <[email protected]>
12770
12771 * stabsread.c (read_type): Add code to parse Sun's syntax for
12772 prototyped function types.
12773
123a4891
AC
127742002-02-09 Andrew Cagney <[email protected]>
12775
12776 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
12777 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
12778
fb39c8f3
PS
127792002-02-09 Peter Schauer <[email protected]>
12780
12781 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
12782 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
12783 now _initialize_xcoffsolib gets called again and overrides the
12784 commands from solib.c in a native configuration.
12785
0b87a11d
MK
127862002-02-09 Mark Kettenis <[email protected]>
12787
12788 * doublest.c (store_typed_floating): Don't try to return a value.
12789 Fixes PR gdb/290.
12790
bdc2fc72
JB
127912002-02-08 Jim Blandy <[email protected]>
12792
12793 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
12794 is prototyped and has no arguments, print its argument list as
12795 `(void)'.
12796
da69bbcf
CD
127972002-02-08 Chris Demetriou <[email protected]>
12798
12799 * MAINTAINERS (write-after-approval): Add myself.
12800 (paper-trail): I've escaped!
aaa38bb5 12801
b69571f5
CF
128022002-02-08 Christopher Faylor <[email protected]>
12803
12804 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
12805 changes.
12806 (_initialize_check_for_gdb_ini): Ditto.
12807
f6871398
MH
128082002-02-08 Martin M. Hunt <[email protected]>
12809
12810 * win32-nat.c (cygwin_pid_to_str): Fix typo.
12811 xaprintf -> xasprintf.
12812
4e52d31c
PM
128132002-02-08 Pierre Muller <[email protected]>
12814
12815 * win32-nat.c: Remove use of printf and sprintf functions.
12816
39bbf761
RE
128172002-02-08 Richard Earnshaw <[email protected]>
12818
12819 * arm-tdep.c (arm_frame_chain_valid): Make static.
12820 (arm_push_arguments): Likewise.
12821 (arm_gdbarch_init): New function.
12822 (_initialize_arm_tdep): Call it.
12823 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
12824 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
12825 (FRAME_CHAIN_VALID): Delete.
12826 (arm_frame_chain_valid): Delete declaration.
12827 (PUSH_ARGUMENTS): Delete.
12828 (arm_push_arguments): Delete declaration.
12829 (CALL_DUMMY_P): Delete.
12830
9c9532c9
CV
128312002-02-08 Andrew Cagney <[email protected]>
12832 Corinna Vinschen <[email protected]>
12833
12834 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
12835 on builtin float types.
12836
4e8f7a8b
DJ
128372002-02-08 Daniel Jacobowitz <[email protected]>
12838
12839 * utils.c: Include <curses.h> before "bfd.h".
12840 * tui/tui-hooks.c: Likewise.
12841 * tui/tui.c: Likewise.
12842 * tui/tuiCommand.c: Likewise.
12843 * tui/tuiData.c: Likewise.
12844 * tui/tuiDataWin.c: Likewise.
12845 * tui/tuiDisassem.c: Likewise.
12846 * tui/tuiGeneralWin.c: Likewise.
12847 * tui/tuiIO.c: Likewise.
12848 * tui/tuiLayout.c: Likewise.
12849 * tui/tuiRegs.c: Likewise.
12850 * tui/tuiSource.c: Likewise.
12851 * tui/tuiSourceWin.c: Likewise.
12852 * tui/tuiStack.c: Likewise.
12853 * tui/tuiWin.c: Likewise.
12854
cd4bffcf
EZ
128552002-02-07 Elena Zannoni <[email protected]>
12856
12857 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
12858 to include space for pseudoregs as well. Update loops accordingly.
12859 (sh_fp_frame_init_saved_regs): Ditto.
12860 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
12861
26806ce2
AC
128622002-02-07 Andrew Cagney <[email protected]>
12863
12864 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
12865 Add Richard Earnshaw to Arm maintainers.
12866
97fdab62
AC
128672002-02-07 Andrew Cagney <[email protected]>
12868
a6b98203
AC
12869 * defs.h (warning_begin): Delete declaration.
12870
97fdab62
AC
12871 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
12872 Delete macro.
12873
78b29b40
MS
128742002-02-07 Michael Snyder <[email protected]>
12875
aaa38bb5 12876 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
78b29b40
MS
12877 Logic bug, remove misplaced else.
12878
d8849953
KD
128792002-02-07 Klee Dienes <[email protected]>
12880
12881 * fork-inferior.c (fork_inferior): Add '!' to the list of
12882 characters that need to be quoted when building a string for the
12883 shell. Quote '!' specifically with a backslash, since CSH chokes
12884 when trying to evaluate "str!str".
aaa38bb5 12885
095778a0
NC
128862002-02-06 Nick Clifton <[email protected]>
12887
12888 * rdi-share/host.h: Only provide a typedef for bool if it is not
12889 defined.
12890
1900040c
MS
128912002-02-04 Michael Snyder <[email protected]>
12892
12893 * breakpoint.h (enum bptype): Add new overlay event bp type.
12894 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
aaa38bb5 12895
1900040c
MS
12896 * breakpoint.c (create_internal_breakpoint): New function.
12897 (internal_breakpoint_number): Moved into create_internal_breakpoint.
12898 (create_longjmp_breakpoint): Use create_internal_breakpoint.
12899 (create_thread_event_breakpoint): Ditto.
12900 (create_solib_event_breakpoint): Ditto.
12901 (create_overlay_event_breakpoint): New function.
12902 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
12903 (update_breakpoints_after_exec): Delete and re-initialize
12904 overlay event breakpoints after an exec. Add FIXME comment
12905 about longjmp breakpoint.
12906 (print_it_typical): Ignore overlay event breakpoints.
12907 (print_one_breakpoint): Ditto.
12908 (mention): Ditto.
12909 (bpstat_what): Do not stop for overlay event breakpoints.
12910 (delete_breakpoint): Don't delete overlay event breakpoints.
12911 (breakpoint_re_set_one): Delete the overlay event breakpoint.
12912 (breakpoint_re_set): Re-create overlay event breakpoint.
12913
12914 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
12915 (overlay_manual_command): Disable overlay breakpoints.
12916 (overlay_off_command): Disable overlay breakpoints.
12917
082fc60d
RE
129182002-02-06 Richard Earnshaw <[email protected]>
12919
12920 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
12921 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
12922 to here from config/tm-arm.h.
12923 (coff_sym_is_thumb): Make static.
12924 (arm_elf_make_msymbol_special): New function.
12925 (arm_coff_make_msymbol_special): New function.
12926 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
12927 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
12928 (coff_sym_is_thumb): Delete declaration.
12929 (arm_elf_make_msymbol_special): Declare.
12930 (arm_coff_make_msymbol_special): Declare.
12931 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
12932 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
12933
039c5766
RE
129342002-02-06 Richard Earnshaw <[email protected]>
12935
12936 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
12937
129382002-02-06 Richard Earnshaw <[email protected]>
12939
12940 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
12941 * gdbarch.c gdbarch.h: Regenerate.
12942 * arch-utils.c (default_print_float_info): New function.
12943 * arch-utils.h (default_print_float_info): Prototype it.
12944 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
12945 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
12946 (PRINT_FLOAT_INFO): Document it.
12947
12948 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
12949 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
12950 (PRINT_FLOAT_INFO): Define.
12951
58fa08f0
PM
129522002-02-06 Pierre Muller <[email protected]>
12953
aaa38bb5 12954 * win32-nat.c (_initialize_check_for_gdb_ini):
58fa08f0
PM
12955 Add typecast to sprintf argument to suppress a warning.
12956
7393af7c
PM
129572002-02-05 Pierre Muller <[email protected]>
12958
58fa08f0 12959 * win32-nat.c (last_sig): Changed type of variable to target_signal,
7393af7c
PM
12960 to allow easier handling of pass state.
12961 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
12962 that gives exception name and address.
12963 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
aaa38bb5 12964 and set last_sig value to ourstatus->value.sig. Some missing
7393af7c 12965 exceptions added.
aaa38bb5
AJ
12966 (child_continue): Correctly report continue_status.
12967 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
7393af7c 12968 TARGET_SIGNAL_0 (new default value).
aaa38bb5 12969 (child_resume): consider sig argument passed to decide if
7393af7c
PM
12970 the exception should be passed to debuggee or not.
12971
6af4589c
MS
129722002-02-05 Michael Snyder <[email protected]>
12973
12974 * regcache.c (fetch_register): Call target_fetch_register
12975 only if we don't call FETCH_PSEUDO_REGISTER.
12976 (store_register): Call target_store_register only if we
12977 don't call STORE_PSEUDO_REGISTER.
12978
a2cf933a
EZ
129792002-02-05 Elena Zannoni <[email protected]>
12980
12981 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
12982 ELF_MAKE_MSYMBOL_SPECIAL.
12983 * gdbarch.c, gdbarch.h: Regenerate.
12984 * arch-utils.c (default_make_msymbol_special): New function.
aaa38bb5 12985 * arch-utils.h (default_make_msymbol_special): Export.
a2cf933a
EZ
12986 * elfread.c (elf_symtab_read): Compile use of
12987 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
12988 multiarched.
12989 * coffread.c (coff_symtab_read): Ditto, for
12990 COFF_MAKE_MSYMBOL_SPECIAL.
12991
6bb7be43
JB
129922002-02-05 Jim Blandy <[email protected]>
12993
12994 * solib-svr4.c (svr4_truncate_ptr): New function.
12995 (svr4_relocate_section_addresses): Do the address arithmetic with
12996 the appropriate truncation for target addresses, even when
12997 CORE_ADDR is larger than a target address.
12998
e18651ec
DJ
129992002-02-05 Daniel Jacobowitz <[email protected]>
13000
13001 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13002 to (int *).
13003
6b2725be
DJ
130042002-02-05 Daniel Jacobowitz <[email protected]>
13005
13006 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13007 code.
13008
fca9e603
DJ
130092002-02-05 Daniel Jacobowitz <[email protected]>
13010
13011 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13012
6c537a52
DJ
130132002-02-05 Daniel Jacobowitz <[email protected]>
13014
13015 * gdbserver/linux-low.c: Remove unused include files.
13016
d844cde6
DJ
130172002-02-05 Daniel Jacobowitz <[email protected]>
13018
13019 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13020 (read_inferior_memory): Use it.
13021 (write_inferior_memory): Likewise.
13022
d07c63e7
DJ
130232002-02-05 Daniel Jacobowitz <[email protected]>
13024
13025 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13026 grubbing through sys_errlist.
13027
da6d8c04
DJ
130282002-02-05 Daniel Jacobowitz <[email protected]>
13029
13030 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13031
5b421780
PM
130322002-02-04 Pierre Muller <[email protected]>
13033 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13034
9f60d481
AC
130352002-02-04 Andrew Cagney <[email protected]>
13036
13037 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13038 (do_sfunc, set_cmd_sfunc): New functions.
13039
13040 * command.h (struct cmd_list_element): Add field func.
13041 * cli/cli-decode.h (struct cmd_list_element): Ditto.
13042 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
13043 * cli/cli-decode.h: Ditto.
13044
13045 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
13046 (help_all, help_cmd_list): Ditto.
13047 (find_cmd, complete_on_cmdlist): Ditto.
13048 * top.c (execute_command): Ditto.
13049
13050 * cli/cli-setshow.c (do_setshow_command): Call func instead of
13051 function.sfunc.
13052
13053 * infcmd.c (notice_args_read): Fix function signature.
13054
13055 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
13056 * cli/cli-decode.c (add_set_cmd): Ditto.
13057 * utils.c (initialize_utils): Ditto.
13058 * maint.c (_initialize_maint_cmds): Ditto.
13059 * infrun.c (_initialize_infrun): Ditto.
13060 * demangle.c (_initialize_demangler): Ditto.
13061 * remote.c (add_packet_config_cmd): Ditto.
13062 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13063 * cris-tdep.c (_initialize_cris_tdep): Ditto.
13064 * proc-api.c (_initialize_proc_api): Ditto.
13065 * kod.c (_initialize_kod): Ditto.
13066 * valprint.c (_initialize_valprint): Ditto.
13067 * top.c (init_main): Ditto.
13068 * infcmd.c (_initialize_infcmd): Ditto.
13069 * corefile.c (_initialize_core): Ditto.
13070 * arm-tdep.c (_initialize_arm_tdep): Ditto.
13071 * arch-utils.c (initialize_current_architecture): Ditto.
13072 (_initialize_gdbarch_utils): Ditto.
13073 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
13074
13075 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
13076 * wince.c (_initialize_inftarg): Ditto.
13077 * symfile.c (_initialize_symfile): Ditto.
13078 * mips-tdep.c (_initialize_mips_tdep): Ditto.
13079 * language.c (_initialize_language): Ditto.
13080 * arc-tdep.c (_initialize_arc_tdep): Ditto.
13081
f9ba0717
MS
130822002-02-04 Michael Snyder <[email protected]>
13083
13084 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
13085
0c74b2a7
DJ
130862002-02-04 Daniel Jacobowitz <[email protected]>
13087
13088 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
13089 Add rules for building the register data files.
13090
c638789f
DJ
130912002-02-04 Daniel Jacobowitz <[email protected]>
13092
13093 * regformats/regdat.sh: Add braces to the definition of
13094 expedite_regs_${arch}.
13095
db253027
DJ
130962002-02-04 Daniel Jacobowitz <[email protected]>
13097
13098 * regformats/regdef.h (struct reg): Add comment describing the
13099 requirements for offset and size fields.
13100
206be19c
AS
131012002-02-04 Andreas Schwab <[email protected]>
13102
13103 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
13104 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
13105
181c1381
RE
131062002-02-04 Richard Earnshaw <[email protected]>
13107
13108 * gdbarch.sh (copyright): Update years in generated header.
13109 (SMASH_TEXT_ADDRESS): Add rule.
db253027 13110 * gdbarch.h, gdbarch.c: Re-generate.
181c1381
RE
13111 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
13112 * dbxread.c: Likewise.
13113 * dwarfread.c: Likewise.
13114 * elfread.c: Likewise.
13115 * somread.c: Likewise.
13116
13117 * arm-tdep.c (arm_smash_text_address): New function.
13118 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
13119
fa4ba8da
PM
131202002-02-04 Pierre Muller <[email protected]>
13121
13122 Add support for hardware watchpoints on win32 native.
aaa38bb5 13123 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
fa4ba8da 13124 CONTEXT_DEBUG_REGISTERS.
aaa38bb5 13125 (dr variable): New variable. Static array containing a local copy
fa4ba8da
PM
13126 of debug registers.
13127 (debug_registers_changed): New variable. Reflects when debug registers
13128 are changed and need to be written to inferior.
aaa38bb5 13129 (debug_registers_used): New variable. Reflects when any debug register
fa4ba8da
PM
13130 was set, used when new threads are created.
13131 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
13132 i386-nat code.
13133 (thread_rec): Set dr array if id is the thread of current_event .
13134 (child_continue, child_resume): Change the debug registers for all
13135 threads if debug_registers_changed.
13136 (child_add_thread): Change the debug registers if debug_registers_used.
13137 * config/i386/cygwin.mh: Add use of i386-nat.o file.
13138 Link nm.h to new nm-cygwin.h file.
13139 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
13140 of hardware registers.
13141
a73c86fb
AC
131422002-02-03 Andrew Cagney <[email protected]>
13143
13144 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
13145 Restore behavour broken by 2002-01-20 Andrew Cagney
13146 <[email protected]> IEEE_FLOAT removal.
13147
acf5ed49
DJ
131482002-02-03 Daniel Jacobowitz <[email protected]>
13149
13150 * c-valprint.c (c_val_print): Pass a proper valaddr to
13151 cp_print_class_method.
13152 * valops.c (search_struct_method): If there is only one method
13153 and args is NULL, return that method.
13154
493d28d5
DJ
131552002-02-03 Daniel Jacobowitz <[email protected]>
13156
13157 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
13158 accessing tag_name directly.
13159
7495dfdb
DJ
131602002-02-03 Daniel Jacobowitz <[email protected]>
13161
13162 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
13163 of accessing tag_name directly.
13164
dd6bda65
DJ
131652002-02-03 Daniel Jacobowitz <[email protected]>
13166
13167 PR gdb/280
13168 * gdbtypes.c (replace_type): New function.
13169 * gdbtypes.h (replace_type): Add prototype.
13170 * stabsread.c (read_type): Use replace_type.
13171
88fe217c
RE
131722002-02-03 Richard Earnshaw <[email protected]>
13173
13174 * Makefile.in (memattr.o): Add missing dependencies rule.
13175
e5d66720
PS
131762002-02-03 Peter Schauer <[email protected]>
13177
13178 * breakpoint.c (break_at_finish_command): Really export.
13179 (break_at_finish_at_depth_command): Ditto.
13180 (tbreak_at_finish_command): Ditto.
13181 * hppa-tdep.c: Include completer.h.
13182 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
13183 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
13184
fffee0be
AC
131852002-02-01 Andrew Cagney <[email protected]>
13186
13187 * utils.c (do_write): New function.
13188 (error_stream): Rewrite combining the code from error_begin and
13189 verror.
13190 (verror): Rewrite using error_stream.
13191 (error_begin): Delete function.
13192
255e7dbf
AC
131932002-02-01 Andrew Cagney <[email protected]>
13194
13195 * utils.c (error_begin): Make static.
13196 * defs.h (error_begin): Delete declaration.
13197
13198 * linespec.c (cplusplus_error): Replace cplusplus_hint.
13199 (decode_line_1): Use cplusplus_error instead of error_begin,
13200 cplusplus_hint and return_to_top_level.
13201 * coffread.c (coff_symfile_read): Use error instead of error_begin
13202 and return_to_top_level.
13203 * infrun.c (default_skip_permanent_breakpoint): Ditto.
13204
ddfe3c15
AC
132052002-02-01 Andrew Cagney <[email protected]>
13206
13207 * language.h (type_error, range_error): Make string parameter
13208 constant.
13209 * language.c (warning_pre_print): Delete extern declaration.
13210 * dwarfread.c (warning_pre_print): Ditto.
13211 * language.c (type_error, range_error): Rewrite to use verror and
13212 vwarning instead of warning_begin.
13213
03ac34d5
MS
132142002-02-01 Michael Snyder <[email protected]>
13215
261c4ca2
MS
13216 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
13217 (set_ignore_count): Move misplaced comment back where it belongs.
03ac34d5 13218
e00d1dc8
AC
132192002-02-01 Andrew Cagney <[email protected]>
13220
13221 * command.h (NO_FUNCTION): Delete macro.
13222 * cli/cli-decode.h (NO_FUNCTION): Ditto.
13223 * top.c (execute_command): Replace NO_FUNCTION with NULL.
13224 * tracepoint.c (_initialize_tracepoint): Ditto.
13225 * cli/cli-decode.c (add_set_cmd): Ditto.
13226 * cli/cli-cmds.c (init_cli_cmds): Ditto.
aaa38bb5 13227
76b79d6e
DJ
132282002-02-01 Daniel Jacobowitz <[email protected]>
13229
13230 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
13231 Update ``this'' pointer when calling virtual functions.
13232
799f9e91
MS
132332002-02-01 Michael Snyder <[email protected]>
13234
c7bd442c 13235 * breakpoint.c (create_temp_exception_breakpoint): Delete.
799f9e91
MS
13236 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
13237
3cf384d4
DJ
132382002-02-01 Daniel Jacobowitz <[email protected]>
13239
13240 * regformats/reg-arm.dat: New file.
13241 * regformats/reg-i386.dat: New file.
13242 * regformats/reg-ia64.dat: New file.
13243 * regformats/reg-m68k.dat: New file.
13244 * regformats/reg-mips.dat: New file.
13245 * regformats/reg-ppc.dat: New file.
13246 * regformats/reg-sh.dat: New file.
13247 * regformats/regdef.h: New file.
13248 * regformats/regdat.sh: New file.
13249
0defa245
RE
132502002-02-01 Richard Earnshaw <[email protected]>
13251
13252 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
13253 (arm_frame_args_address, arm_frame_locals_address): New functions.
13254 (arm_frame_num_args): New function.
13255 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
13256 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
13257 (FRMA_NUM_ARGS): Call arm_frame_num_args.
13258
405f26e6
MS
132592002-01-31 Michael Snyder <[email protected]>
13260
502fd408
MS
13261 * breakpoint.c (break_at_finish_command): Export.
13262 (break_at_finish_at_depth_command): Export.
13263 (tbreak_at_finish_command): Export.
d6020d45 13264 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
502fd408 13265 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
d6020d45 13266 "txbreak" commands, which are HPPA specific.
502fd408 13267
7d35e135
MS
13268 * printcmd.c (disassemble_command): Remove an ancient
13269 artifact of an old merge.
13270
aaa38bb5 13271 * symfile.h (enum overlay_debugging_state):
d874f1e2
MS
13272 Define enum constant values for overlay mode.
13273 * symfile.c (overlay_debugging): Use enums instead of literals.
aaa38bb5
AJ
13274 (overlay_is_mapped, overlay_auto_command,
13275 overlay_manual_command): Ditto.
d874f1e2 13276
aaa38bb5
AJ
13277 * breakpoint.c (insert_breakpoints, remove_breakpoint,
13278 breakpoint_here_p, breakpoint_inserted_here_p,
13279 breakpoint_thread_match, bpstat_stop_status,
9f04af04
MS
13280 describe_other_breakpoints, check_duplicates, clear_command):
13281 Coding standard fixes.
13282
8add0441 13283 * target.c (target_xfer_memory): Add spaces, coding standard.
9f04af04 13284 (do_xfer_memory): Add missing line to trust-readonly
405f26e6
MS
13285 code: check bfd SEC_READONLY flag for section.
13286
e351066e
AC
132872002-01-31 Andrew Cagney <[email protected]>
13288
7d35e135 13289 * PROBLEMS: Fix typo, 5.1->5.1.1.
e351066e 13290
8a48e967
DJ
132912002-01-30 Daniel Jacobowitz <[email protected]>
13292
13293 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
13294 data symbols, since we search based on textlow and texthigh.
13295 (find_pc_sect_symtab): Likewise.
13296
f5a96129
AC
132972002-01-30 Andrew Cagney <[email protected]>
13298
13299 * defs.h (vwarning): Declare.
f5a96129
AC
13300 * utils.c (vwarning): New function.
13301 (warning): Call vwarning.
13302 (warning_begin): Delete function.
13303
13304 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
13305 the warning message.
13306 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
13307 warning_begin.
13308
cefd4ef5
MS
133092002-01-30 Michael Snyder <[email protected]>
13310
1a703748
MS
13311 * NEWS: Mention "set trust-readonly-sections" command.
13312 Mention generate-core-file command.
cefd4ef5 13313
3a11626d
MS
133142002-01-15 Michael Snyder <[email protected]>
13315
13316 * target.c: New command, "set trust-readonly-sections on".
13317 (do_xfer_memory): Honor the suggestion to trust readonly sections
13318 by reading them from the object file instead of from the target.
13319 (initialize_targets): Register command "set trust-readonly-sections".
13320
d1c7e53b
AC
133212002-01-29 Andrew Cagney <[email protected]>
13322
13323 * parse.c (target_map_name_to_register): Simplify, search regs and
13324 pseudo-regs using a single loop.
13325
e2c9a72c
AC
133262002-01-30 Andrew Cagney <[email protected]>
13327
13328 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
13329
69824b4e
MK
133302002-01-15 Rodney Brown <[email protected]>
13331
13332 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
13333 * config/i386/i386v42mp.mh: Add i387-nat.o .
13334 * i386v4-nat.c: Include i387-nat.h.
13335 (supply_fpregset): Use i387_supply_fsave.
13336 (fill_fpregset): Use i387_fill_fsave.
13337
6eb69eab
RE
133382002-01-30 Richard Earnshaw <[email protected]>
13339
13340 * arm-tdep.c (arm_call_dummy_words): Define.
13341 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
13342 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
13343 (CALL_DUMMY_WORDS): Define.
13344 (arm_call_dummy_words): Declare.
13345 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
13346 (arm_linux_call_dummy_words): Declare.
13347
9852326a
AS
133482002-01-30 Andreas Schwab <[email protected]>
13349
13350 * m68klinux-nat.c: Fix last change to use regcache_collect
13351 instead of referencing registers[] directly.
13352
977a3030
AC
133532002-01-29 Andrew Cagney <[email protected]>
13354
13355 * parse.c (target_map_name_to_register): Delete code wrapped in
13356 #ifdef REGISTER_NAME_ALIAS_HOOK.
13357
2076c72b
MS
133582002-01-28 Michael Snyder <[email protected]>
13359
13360 * regcache.c (legacy_read_register_gen): Need to be able to
13361 read pseudo-register as well as real register.
13362 (legacy_write_register_gen): Ditto.
13363
8fcc723b
AC
133642002-01-28 Andrew Cagney <[email protected]>
13365
13366 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13367 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
13368 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
13369 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
13370 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
13371 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
13372 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
13373 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
13374 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
13375 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
13376 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
13377 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
13378 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
13379 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
13380 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
13381 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
13382 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
13383 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
13384 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
13385 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
13386
afe64c1a
AC
133872002-01-28 Andrew Cagney <[email protected]>
13388
13389 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
13390 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
13391 (initialize_current_architecture): Update target_byte_order using
13392 information from BFD.
aaa38bb5 13393 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
afe64c1a
AC
13394 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
13395
75bc7ddf
AC
133962002-01-28 Andrew Cagney <[email protected]>
13397
13398 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
13399 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
13400
13401 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
13402 #ifdef INVALID_FLOAT.
13403 * infcmd.c (do_registers_info): Ditto.
13404 * values.c (unpack_double): Ditto. Add comment.
13405
13406 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
13407 already commented out.
13408
0280a90a
AS
134092002-01-26 Andreas Schwab <[email protected]>
13410
13411 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
13412 * m68klinux-nat.c: Update ptrace interface for fetching/storing
13413 registers and add support for PTRACE_GETREGS.
13414
7072a954
AC
134152002-01-24 Andrew Cagney <[email protected]>
13416
13417 GDB 5.1.1 released from 5.1 branch.
13418 * NEWS: Add 5.1.1 news.
13419 * README: Sync with 5.1 branch.
13420
86f902e0
FF
134212002-01-23 Fred Fish <[email protected]>
13422
13423 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
13424 stabstring on initial malloc. Reallocing will copy it for us,
13425 if necessary.
13426
8af51c36
EZ
134272002-01-23 Elena Zannoni <[email protected]>
13428
aaa38bb5 13429 * Makefile.in (hpread_h): Delete.
8af51c36
EZ
13430 (HFILES_NO_SRCDIR): Remove hpread.h.
13431 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
13432 (hpread.o): Update dependencies.
13433 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
13434
13435 * hp-psymtab-read.c: Remove file.
13436 * hp-symtab-read.c: Remove file.
13437 * hpread.h: Remove file.
13438
13439 * hpread.c: Merge all contents of hp-psymtab-read.c,
13440 hp-symtab-read.c and hpread.h into this file, as it was prior to
13441 January 1999.
13442
13443 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
aaa38bb5 13444 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
8af51c36
EZ
13445 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
13446 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
13447
dc5cfeb6
EZ
134482002-01-23 Elena Zannoni <[email protected]>
13449
13450 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
13451 fill_gregset): Call gdbarch_tdep() just once, assign result to
13452 variable and use that, instead of calling the function several
13453 times.
13454
ea87b71b
AO
134552002-01-24 Alexandre Oliva <[email protected]>
13456
13457 * configure.host: Accept sparcv9 as alias for sparc64.
13458 * configure.tgt: Likewise.
13459
13fc0c2f
KB
134602002-01-22 Kevin Buettner <[email protected]>
13461
13462 * solib-aix5.c (build_so_list_from_mapfile)
13463 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
13464 arguments is not reversed.
13465 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
13466 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
aaa38bb5 13467
7bd872fe
EZ
134682002-01-22 Elena Zannoni <[email protected]>
13469
13470 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
13471 modified version of obsolete sh_fetch_pseudo_register.
13472 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
13473 (sh4_register_read): New function.
13474 (sh_pseudo_register_write): New function. Renamed and modified
13475 version of obsolete sh_store_pseudo_register.
13476 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
13477 (sh4_register_write): New function.
13478 (sh_gdbarch_init): Remove setting of gdbarch function
13479 fetch_pseudo_register and store_pseudo_register. Remove setting of
13480 register_convert_to_raw, register_convert_to_virtual,
13481 register_convertible.
13482 (sh_sh4_register_convertible): Delete. No longer needed. All is
13483 taken care by architecture specific functions
13484 register_read/register_write.
13485 (sh_sh4_register_convert_to_virtual): Make static.
13486 (sh_sh4_register_convert_to_raw): Ditto.
13487
069e84fd
AC
134882002-01-22 Andrew Cagney <[email protected]>
13489
13490 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
13491 (floatformat_is_nan, floatformat_mantissa): Ditto.
13492
13493 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
13494 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
13495 builtin_type_ieee_double_little,
13496 builtin_type_ieee_double_littlebyte_bigword,
13497 builtin_type_m68881_ext, builtin_type_i960_ext,
13498 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
13499 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
13500 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
13501 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
13502
211a4f69
CV
135032002-01-22 Corinna Vinschen <[email protected]>
13504
13505 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
13506 parameter. Set frameless flag if it exists and depended of
13507 whether the scanned function is frameless or not.
13508 (xstormy16_skip_prologue): If function is frameless, return
13509 result of xstormy16_scan_prologue().
13510 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
13511 call.
13512
f81353e4
EZ
135132002-01-21 Elena Zannoni <[email protected]>
13514
13515 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
13516 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
13517 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
13518 sh_sh4_register_byte, sh_sh4_register_raw_size,
13519 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
13520 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
13521 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
13522 sh_store_pseudo_register, sh_do_pseudo_register): Call
13523 gdbarch_tdep() just once, assign result to variable and use that,
13524 instead of calling the function several times.
13525
63c73a17
MK
135262002-01-20 Mark Kettenis <[email protected]>
13527
13528 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
13529 macros instead of LAST_FPU_CTRL_REGNUM.
13530 (store_register): Likewise.
13531
39ad761d
JB
135322002-01-21 Jim Blandy <[email protected]>
13533
13534 * infcmd.c (run_command): Check that the `exec' target layer's BFD
13535 is up-to-date before running the program, not just when a program
13536 exits.
13537
3d74b771
FF
135382002-01-21 Fred Fish <[email protected]>
13539
13540 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
13541 when we have found all instructions we are looking for.
13542
966fbf70
RE
135432002-01-21 Richard Earnshaw <[email protected]>
13544
13545 * arm-tdep.c (arm_register_name): New function.
13546 (arm_registers_names): Make static.
13547 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
13548 (arm_register_name): Declare.
13549 (REGISTER_NAME): Use it.
13550
c3b4394c
RE
135512002-01-21 Richard Earnshaw <[email protected]>
13552 Kevin Buettner <[email protected]>
13553
13554 Convert arm targets to new FRAME interface.
13555 * arm-tdep.c (struct frame_extra_info): Remove fsr.
13556 (arm_frame_find_save_regs): Delete.
13557 (arm_frame_init_saved_regs): New.
13558 (arm_init_extra_frame_info): Alloacte saved_regs as required.
13559 Allocate extra_info as required. Convert all uses of fsr.regs
13560 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
13561 to use extra_info.
13562 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
13563 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
13564 (check_prologue_cache, save_prologue_cache): Likewise.
13565 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
13566 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
13567 (FRAME_FIND_SAVED_REGS): Delete.
13568 (arm_frame_find_saved_regs): Delete prototype.
13569 (arm_frame_init_saved_regs): New prototype.
13570 (FRAME_INIT_SAVED_REGS): Define.
13571
61d99182
AC
135722002-01-20 Andrew Cagney <[email protected]>
13573
13574 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
13575
6aaea291
AC
135762002-01-20 Andrew Cagney <[email protected]>
13577
13578 From Jeff Law <[email protected]>:
13579 * infttrace.c: Include <sys/pstat.h>.
13580 (child_pid_to_exec_file): Revamp. Use pstat call to get the
13581 exec file if the ttrace equivalent fails.
13582
15f698d2
AC
135832002-01-20 Andrew Cagney <[email protected]>
13584
13585 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
13586 (closeLogFile): Ditto.
13587
f86ddd7c
MC
135882002-01-20 Michael Chastain <[email protected]>
13589
13590 * top.c (print_gdb_version): Bump copyright year to 2002.
13591
904507ce
AC
135922002-01-20 Andrew Cagney <[email protected]>
13593
13594 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
13595 Zannoni and Eli Zaretskii.
13596
d7f0b9ce
DJ
135972002-01-20 Daniel Jacobowitz <[email protected]>
13598
13599 * buildsym.c: Update copyright years.
13600 * c-typeprint.c: Likewise.
13601 * dwarf2read.c: Likewise.
13602 * f-typeprint.c: Likewise.
13603 * gdbtypes.c: Likewise.
13604 * gdbtypes.h: Likewise.
13605 * hp-symtab-read.c: Likewise.
13606 * hpread.c: Likewise.
13607 * mdebugread.c: Likewise.
13608 * p-typeprint.c: Likewise.
13609
3fd3d7d2
AC
136102002-01-20 Andrew Cagney <[email protected]>
13611
13612 * remote-sim.c (gdbsim_open): Simplify code testing the macro
13613 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
13614 byte-order selectable.
13615 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
13616 * arch-utils.c: Ditto.
13617 (set_endian): Ditto.
13618 (set_endian_from_file): Ditto.
13619 * gdbserver/low-sim.c (create_inferior): Ditto.
13620 * gdbarch.sh: Ditto.
13621 * gdbarch.h: Re-generate.
aaa38bb5
AJ
13622 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13623 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
13624 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
13625 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13626 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13627 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
13628 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
3fd3d7d2
AC
13629 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
13630 macro definition.
13631 * config/mips/tm-wince.h: Remove #undef of macro
13632 TARGET_BYTE_ORDER_SELECTABLE.
13633 * config/sh/tm-wince.h: Ditto.
13634
b02dede2
DJ
136352002-01-20 Daniel Jacobowitz <[email protected]>
13636
13637 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
13638 member function fields. Add accessor macro
13639 TYPE_FN_FIELD_ARTIFICIAL.
13640 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
13641 * c-typeprint.c (c_type_print_base): Skip artificial member
13642 functions.
13643
c3643761
DJ
136442002-01-20 Daniel Jacobowitz <[email protected]>
13645
13646 * f-typeprint.c: Delete unused function f_type_print_args.
13647 * p-typeprint.c: Delete unused function pascal_type_print_args.
13648
8176bb6d
DJ
136492002-01-20 Daniel Jacobowitz <[email protected]>
13650
13651 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
13652 comment. Add ``artificial'' to ``union field_location''.
13653
13654 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
13655
13656 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
13657 * mdebugread.c (parse_symbol): Likewise.
13658 * stabsread.c (define_symbol): Likewise.
13659 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
13660 initializing TYPE_FIELD_BITPOS to n (obsolete).
13661 (hpread_doc_function_type): Likewise.
13662 * hpread.c (hpread_function_type): Likewise.
13663
7fd60527
AC
136642002-01-20 Andrew Cagney <[email protected]>
13665
13666 * configure.in (host_makefile_frag): Only require a host makefile
13667 fragment when a native build.
13668 * configure: Re-generate.
13669
c2f05ac9
AC
136702002-01-20 Andrew Cagney <[email protected]>
13671
13672 * doublest.h (floatformat_from_type): Declare.
13673 * doublest.c (floatformat_from_type): New function.
13674 (convert_typed_floating): Use.
13675
13676 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
13677 call to function floatformat_from_type.
13678
13679 * gdbarch.sh (IEEE_FLOAT): Delete.
13680 * gdbarch.h, gdbarch.c: Re-generate.
13681 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
13682 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
13683 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
13684 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
13685 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
13686 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
13687 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
13688 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
13689 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
13690 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
13691 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
c2f05ac9
AC
13692 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
13693
13694 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
13695 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
13696 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
13697 * sh-tdep.c (sh_gdbarch_init): Ditto.
13698 * mips-tdep.c (mips_gdbarch_init): Ditto.
13699 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
13700 * cris-tdep.c (cris_gdbarch_init): Ditto.
13701
abf22e64
AJ
137022002-01-20 Jiri Smid <[email protected]>
13703
13704 * configure.host, configure.tgt: Support x86-64.
13705 * NEWS: Note new target x86-64.
13706
b7c4cbf8
AJ
13707 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
13708 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
13709 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
13710 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
13711 x86-64-linux-nat.o): Fix dependencies.
13712
82600034
AC
137132002-01-19 Andrew Cagney <[email protected]>
13714
13715 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
13716 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
13717 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
13718 * config/sparc/xm-sun4os4.h: Delete file.
13719 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
abf22e64 13720
bbe5c628
AC
137212002-01-19 Andrew Cagney <[email protected]>
13722
13723 * config/sparc/sparclynx.mh (XM_FILE): Delete.
13724 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
13725 * config/m68k/m68klynx.mh (XM_FILE): Delete.
13726 * config/i386/i386lynx.mh (XM_FILE): Delete.
13727 * config/rs6000/xm-rs6000ly.h: Delete file.
13728 * config/sparc/xm-sparclynx.h: Delete file.
13729 * config/m68k/xm-m68klynx.h: Delete file.
13730 * config/i386/xm-i386lynx.h: Delete file.
13731 * config/xm-lynx.h: Delete file.
13732 * config/djgpp/fnchange.lst: Update.
13733
f8453e34
JT
137342002-01-19 Jason Thorpe <[email protected]>
13735
13736 * alpha-tdep.c (alpha_register_byte): New function.
13737 (alpha_register_raw_size): Ditto.
13738 (alpha_register_virtual_size): Ditto.
13739 (alpha_skip_prologue_internal): Renamed from
13740 alpha_skip_prologue.
13741 (alpha_skip_prologue): New version that calls
13742 alpha_skip_prologue_internal.
13743 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
13744 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
13745 second argument from alpha_skip_prologue.
13746 (REGISTER_BYTE): Use alpha_register_byte.
13747 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
13748 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
13749 (FRAMELESS_FUNCTION_INVOCATION): Use
13750 generic_frameless_function_invocation_not.
13751 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
13752 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
13753
52d9e613
AC
137542002-01-19 Andrew Cagney <[email protected]>
13755
13756 * config/mips/xm-news-mips.h: Delete file.
13757 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
13758
13759 * config/m88k/xm-m88k.h: Delete file.
13760 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
13761 * config/m88k/xm-delta88v4.h: Ditto.
13762 * config/m88k/xm-delta88.h: Ditto.
13763
13764 * config/alpha/xm-fbsd.h: Delete file.
13765 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
13766
13767 * config/sparc/xm-sparc.h: Delete file.
13768 * Makefile.in (xm-sun4os4.h): Delete dependency.
13769 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
13770 * config/sparc/xm-sun4os4.h: Ditto.
13771 * config/sparc/xm-linux.h: Ditto.
13772
13773 * config/i386/xm-windows.h: Delete file.
13774
2d1b2124
AC
137752002-01-19 Andrew Cagney <[email protected]>
13776
13777 * utils.c: Include <sys/param.h> for MAXPATHLEN.
13778 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
13779
ee1f65f0
JT
137802002-01-19 Jason Thorpe <[email protected]>
13781
13782 * alpha-tdep.c (alpha_call_dummy_words): New.
13783 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
13784 (CALL_DUMMY_P): Define.
13785 (CALL_DUMMY_WORDS): Define.
13786 (SIZEOF_CALL_DUMMY_WORDS): Define.
13787
98081e55
PB
137882002-01-19 Per Bothner <[email protected]>
13789
13790 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
13791 isn't NULL, which can happen with some gcj-3.x-produced code.
13792
0d056799
JT
137932002-01-19 Jason Thorpe <[email protected]>
13794
13795 * alpha-tdep.c (alpha_register_virtual_type): New function.
13796 (alpha_init_frame_pc_first): Ditto.
13797 (alpha_fix_call_dummy): Ditto.
13798 (alpha_store_struct_return): Ditto.
13799 (alpha_extract_struct_value_address): Ditto.
13800 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
13801 alpha_register_virtual_type.
13802 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
13803 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
13804 alpha_extract_struct_value_address.
13805 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
13806 (INIT_FRAME_PC): Use init_frame_pc_noop.
13807 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
13808
4604bcad
MK
138092002-01-19 Mark Kettenis <[email protected]>
13810
13811 * i386gnu-nat.c: Include "i386-tdep.h".
13812 (fetch_fpregs): Simplify code dealing with uninitialized floating
13813 point states such that it doesn't require FP7_REGNUM.
13814
140f9984
JT
138152002-01-18 Jason Thorpe <[email protected]>
13816
abf22e64
AJ
13817 * alpha-tdep.c (frame_extra_info): New.
13818 (alpha_find_saved_regs): Make static. Use
140f9984
JT
13819 frame->extra_info.
13820 (alpha_frame_init_saved_regs): New function.
abf22e64
AJ
13821 (alpha_frame_saved_pc): Use frame->extra_info.
13822 (temp_saved_regs): Don't declare as struct frame_saved_regs.
13823 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
140f9984
JT
13824 (init_extra_frame_info): Rename to...
13825 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
abf22e64 13826 (alpha_print_extra_frame_info): New function.
140f9984
JT
13827 (alpha_frame_locals_address): Ditto.
13828 (alpha_frame_args_address): Ditto.
abf22e64 13829 (alpha_pop_frame): Use frame->extra_info.
140f9984
JT
13830 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
13831 alpha_frame_args_address.
abf22e64 13832 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
140f9984 13833 (alpha_find_saved_regs): Remove prototype.
abf22e64
AJ
13834 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
13835 (EXTRA_FRAME_INFO): Remove.
140f9984
JT
13836 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
13837 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
13838
d734c450
JT
138392002-01-18 Jason Thorpe <[email protected]>
13840
13841 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
13842 (alpha_cannot_fetch_register): Ditto.
13843 (alpha_cannot_store_register): Ditto.
13844 (alpha_register_convertible): Ditto.
13845 (alpha_use_struct_convention): Ditto.
13846 * config/alpha/tm-alpha.h: Update copyright years.
13847 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
13848 (INNER_THAN): Use core_addr_lessthan.
13849 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
13850 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
13851 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
13852 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
13853 (FRAME_CHAIN): Remove unnecessary cast.
13854
b4ceaee6
AC
138552002-01-18 Andrew Cagney <[email protected]>
13856
13857 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
13858 obsolete.
13859
0a65a603
AC
138602002-01-18 Andrew Cagney <[email protected]>
13861
13862 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
13863 * monitor.c, remote-array.c, remote-bug.c: Ditto.
13864 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
13865 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
13866 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
13867 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
13868 * x86-64-linux-nat.c: Ditto.
13869
636a6dfc
JT
138702002-01-18 Jason Thorpe <[email protected]>
13871
abf22e64 13872 * alpha-tdep.c (alpha_register_name): New function.
636a6dfc
JT
13873 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
13874 (REGISTER_NAME): Define.
13875
acceddb6
JT
138762002-01-18 Jason Thorpe <[email protected]>
13877
13878 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
13879
ec32e4be
JT
138802002-01-18 Jason Thorpe <[email protected]>
13881
13882 * alpha-tdep.c: Update copyright years.
13883 (alpha_next_pc): New function.
13884 (alpha_software_single_step): Ditto.
13885 * config/alpha/tm-alpha.h: Add prototype for
13886 alpha_software_single_step.
13887
e771a871
JT
138882002-01-18 Jason Thorpe <[email protected]>
13889
13890 * alphabsd-nat.c: Update copyright years.
13891 (fill_gregset): Use regcache_collect.
13892 (fill_fpregset): Likewise.
13893 (fetch_inferior_registers): Only fetch integer registers
13894 if requested to do so.
13895 (store_inferior_registers): Only store integer registers
13896 if requested to do so.
13897
7708fa01
AC
138982002-01-17 Andrew Cagney <[email protected]>
13899
13900 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
13901 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
13902 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
13903 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
13904 * config/alpha/fbsd.mh (XDEPFILES): Delete.
13905 * config/arm/linux.mh (XDEPFILES): Delete.
13906 * config/arm/nbsd.mh (XDEPFILES): Delete.
13907 * config/i386/i386dgux.mh (XDEPFILES): Delete.
13908 * config/i386/i386sol2.mh (XDEPFILES): Delete.
13909 * config/i386/i386m3.mh (XDEPFILES): Delete.
13910 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
13911 * config/i386/i386gnu.mh (XDEPFILES): Delete.
13912 * config/i386/fbsd.mh (XDEPFILES): Delete.
13913 * config/i386/i386bsd.mh (XDEPFILES): Delete.
13914 * config/i386/i386sco5.mh (XDEPFILES): Delete.
13915 * config/i386/i386v4.mh (XDEPFILES): Delete.
13916 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
13917 * config/i386/i386sco4.mh (XDEPFILES): Delete.
13918 * config/i386/i386aix.mh (XDEPFILES): Delete.
13919 * config/i386/go32.mh (XDEPFILES): Delete.
13920 * config/i386/cygwin.mh (XDEPFILES): Delete.
13921 * config/i386/i386lynx.mh (XDEPFILES): Delete.
13922 * config/i386/i386mach.mh (XDEPFILES): Delete.
13923 * config/i386/i386v32.mh (XDEPFILES): Delete.
13924 * config/i386/linux.mh (XDEPFILES): Delete.
13925 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
13926 * config/i386/ncr3000.mh (XDEPFILES): Delete.
13927 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
13928 * config/i386/i386sco.mh (XDEPFILES): Delete.
13929 * config/i386/i386v.mh (XDEPFILES): Delete.
13930 * config/i386/nbsd.mh (XDEPFILES): Delete.
13931 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
13932 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
13933 * config/i386/symmetry.mh (XDEPFILES): Delete.
13934 * config/i386/obsd.mh (XDEPFILES): Delete.
13935 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
13936 * config/ia64/linux.mh (XDEPFILES): Delete.
13937 * config/ia64/aix.mh (XDEPFILES): Delete.
13938 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
13939 * config/m68k/dpx2.mh (XDEPFILES): Delete.
13940 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
13941 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
13942 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
13943 * config/m68k/linux.mh (XDEPFILES): Delete.
13944 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
13945 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
13946 * config/m68k/nbsd.mh (XDEPFILES): Delete.
13947 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
13948 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
13949 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
13950 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
13951 * config/m88k/delta88.mh (XDEPFILES): Delete.
13952 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
13953 * config/m88k/m88k.mh (XDEPFILES): Delete.
13954 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
13955 * config/mips/linux.mh (XDEPFILES): Delete.
13956 * config/mips/irix6.mh (XDEPFILES): Delete.
13957 * config/mips/irix5.mh (XDEPFILES): Delete.
13958 * config/mips/irix4.mh (XDEPFILES): Delete.
13959 * config/mips/irix3.mh (XDEPFILES): Delete.
13960 * config/mips/decstation.mh (XDEPFILES): Delete.
13961 * config/mips/mipsm3.mh (XDEPFILES): Delete.
13962 (NATDEPFILES): Move core-aout.o to here.
13963 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
13964 * config/pa/hpux1020.mh (XDEPFILES): Delete.
13965 * config/pa/hppabsd.mh (XDEPFILES): Delete.
13966 * config/pa/hppahpux.mh (XDEPFILES): Delete.
13967 * config/pa/hpux11w.mh (XDEPFILES): Delete.
13968 * config/pa/hppaosf.mh (XDEPFILES): Delete.
13969 * config/pa/hpux11.mh (XDEPFILES): Delete.
13970 * config/powerpc/aix.mh (XDEPFILES): Delete.
13971 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
13972 * config/powerpc/linux.mh (XDEPFILES): Delete.
13973 * config/romp/rtbsd.mh: Rename XDEPFILES.
13974 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
13975 * config/rs6000/aix4.mh (XDEPFILES): Delete.
13976 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
13977 * config/s390/s390.mh (XDEPFILES): Delete.
13978 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
13979 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
13980 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
13981 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
13982 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
13983 * config/sparc/nbsd.mh (XDEPFILES): Delete.
13984 * config/sparc/linux.mh (XDEPFILES): Delete.
13985 * config/vax/vaxult.mh (XDEPFILES): Delete.
13986 * config/vax/vaxult2.mh (XDEPFILES): Delete.
13987 * Makefile.in (DEPFILES): Remove XDEPFILES.
13988
375fc983
AC
139892002-01-17 Andrew Cagney <[email protected]>
13990
13991 * utils.c (internal_verror): Fix comments, default is yes not no.
13992 Update queries to match. Default to quit and dump core.
13993
8926118c
AC
139942002-01-17 Andrew Cagney <[email protected]>
13995
13996 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
13997 copyright.
13998 * defs.h, event-top.c, gdbcmd.h: Ditto.
13999 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14000 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14001 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14002 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14003 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14004 * mi/mi-main.c:Ditto.
14005
14006 * stack.c, symfile.c: Update copyright.
14007
45b7b345
DJ
140082002-01-17 Daniel Jacobowitz <[email protected]>
14009
db728ff7
DJ
14010 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14011 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14012 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14013 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
45b7b345 14014
db728ff7
DJ
140152002-01-17 Daniel Jacobowitz <[email protected]>
14016
14017 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14018 * gdbserver/low-lynx.c (myattach): Likewise.
14019 * gdbserver/low-nbsd.c (myattach): Likewise.
14020 * gdbserver/low-sim.c (myattach): Likewise.
14021 * gdbserver/low-sparc.c (myattach): Likewise.
14022 * gdbserver/low-sun3.c (myattach): Likewise.
14023
14024 * gdbserver/low-linux.c (myattach): New function.
45b7b345 14025
db728ff7 14026 * gdbserver/server.c (attach_inferior): New function.
45b7b345
DJ
14027 (main): Handle "--attach".
14028
8de3c354
AC
140292002-01-16 Andrew Cagney <[email protected]>
14030
14031 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14032 maintainer.
14033
b0129042
DJ
140342002-01-15 Daniel Jacobowitz <[email protected]>
14035
14036 * c-typeprint.c (is_type_conversion_operator): Add additional
14037 check for non-conversion operators.
14038
ba8679fb 140392002-01-15 Michael Snyder <[email protected]>
2bf543a6
MS
14040
14041 * linux-proc.c: Add "info proc" command, a la procfs.c.
14042 (read_mapping): New function, abstract and re-use code.
14043 (linux_find_memory_regions): Use new func read_mapping.
14044 (linux_info_proc_cmd): New function, implement "info proc".
14045 (_initialize_linux_proc): Add new command "info proc".
14046
e4f9b4d5
MS
140472002-01-15 Michael Snyder <[email protected]>
14048
14049 * symfile.c (generic_load): Use bfd_map_over_sections method
14050 instead of manipulating bfd structure members directly.
14051 (add_section_size_callback): New function, bfd sections callback
14052 used by generic_load.
14053 (load_sections_callback): New function, bfd sections callback
14054 used by generic_load.
14055
08cf96df
EZ
140562002-01-15 Elena Zannoni <[email protected]>
14057
abf22e64 14058 [Based on work by Jim Blandy]
08cf96df
EZ
14059 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
14060 (builtin_type_vec128): Export.
14061 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
14062 types.
14063 (builtin_type_vec128): New builtin type for 128 bit vector
14064 registers.
14065 (build_gdbtypes): Initialize builtin_type_v16qi and
14066 builtin_type_v8hi. Create the vec128 register builtin type
14067 structure.
14068 (build_builtin_type_vec128): New function.
abf22e64 14069 (_initialize_gdbtypes): Register builtin_type_v16qi and
08cf96df
EZ
14070 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
14071 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
14072 AltiVec register to new builtin type.
14073
d7242108
DJ
140742001-01-15 Daniel Jacobowitz <[email protected]>
14075
14076 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
14077 to make_cv_type.
14078
4ee3352d
AC
140792002-01-14 Andrew Cagney <[email protected]>
14080
14081 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
14082 CLEAN_UP_REGISTER_VALUE.
14083 * regcache.c (supply_register): Update only call.
14084
f015b2e7
AC
140852002-01-14 Andrew Cagney <[email protected]>
14086
14087 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14088 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14089 a29k-*-vxworks* targets as obsolete.
14090
356ae49d
MS
140912002-01-14 Michael Snyder <[email protected]>
14092
14093 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
14094 until we can resolve portability issues.
14095 * gregset.h: Remove references to fpxregs.
14096 * gcore.c (gcore_command): Initialize note_sec to NULL.
14097
ade8f45e
AC
140982002-01-13 Andrew Cagney <[email protected]>
14099
14100 * signals.c (target_signal_to_name): Rewrite. Only use
14101 signals[].name when in bounds and non-NULL.
abf22e64 14102
89c49e7a
AC
141032002-01-13 Andrew Cagney <[email protected]>
14104
14105 From Petr Ledvina <[email protected]>:
14106 * signals.c (target_signal_to_name): Verify that SIG is within the
14107 bounds of the signals array.
14108
4daa9f9f
AC
141092002-01-13 Andrew Cagney <[email protected]>
14110
14111 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
14112
ba4bbdcb
KS
141132002-01-13 Keith Seitz <[email protected]>
14114
14115 * stack.c (print_frame_info_base): Print the frame's pc
14116 only if when print_frame_info_listing_hook is not defined.
14117
575bbeb6
KS
141182002-01-13 Keith Seitz <[email protected]>
14119
14120 * varobj.c (varobj_set_value): Make sure that there were no
14121 errors evaluating the object before attempting to set its
14122 value.
14123 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
14124 so this offset adjustment is no longer necessary.
14125 (create_child): Don't set the error flag if the child is
14126 a CPLUS_FAKE_CHILD.
14127 (value_of_child): If value_fetch_lazy fails, return NULL
14128 so that callers will be notified that an error occurred.
14129 (c_value_of_variable): Delay check of variable's validity
14130 until later. We actually want all structs and unions to have
14131 the value "{...}".
14132 Do not return "???" for variables which could not be evaluated.
14133 This error condition must be returned to the caller so that it
14134 can get the error condition from gdb.
14135 (cplus_name_of_child): Adjust index for vptr before figuring
14136 out the name of the child.
14137 (cplus_value_of_child): If a child's (real) parent is not valid,
14138 don't even bother trying to give a value for it. Just return
14139 an error. Change all instances in this function.
14140 (cplus_type_of_child): If our parent is one of the "fake"
14141 parents, we need to get at the type of the real parent, and
14142 derive the child's true type using this information.
14143
b76898ab
AC
141442002-01-13 Andrew Cagney <[email protected]>
14145
14146 From 2002-01-09 John Marshall <[email protected]>:
14147 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
14148 sources.redhat.com, and tweak some related URLs which had
14149 suffered from linkrot.
14150
b6649e88
AC
141512002-01-13 Andrew Cagney <[email protected]>
14152
14153 From Jeff law:
14154 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
14155 structures passed in registers.
14156
82cc5033
EZ
141572002-01-13 Eli Zaretskii <[email protected]>
14158
14159 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
14160 white space which prevented compilation. Reported by DSK
14161 <[email protected]>.
14162
ba5f2f8a
MS
141632002-01-11 Michael Snyder <[email protected]>
14164
fbd35540
MS
14165 * symfile.c (build_section_addr_info_from_section_tab):
14166 Use bfd access method instead of manipulating bfd directly.
14167 (syms_from_objfile): Ditto.
14168 (simple_overlay_update_1): Ditto.
14169 (simple_overlay_update): Ditto.
14170 (generic_load): Ditto.
14171 (overlay_unmapped_address): FIXME comment, bfd access methods.
14172 (sections_overlap): FIXME comment, bfd access methods.
14173 (pc_in_mapped_range): FIXME comment, bfd access methods.
14174 (pc_in_unmapped_range): FIXME comment, bfd access methods.
14175 (section_is_mapped): FIXME comment, bfd access methods.
14176 (section_is_overlay): FIXME comment, bfd access methods.
14177
ba5f2f8a
MS
14178 * symfile.c (generic_load): Whitespace and long line cleanups.
14179 Remove duplicate variable, change several local variables to
14180 more appropriate data types.
14181 (print_transfer_performance): Use %lu instead of %ld for ulongs.
14182
17df2af6
AC
141832002-01-12 Andrew Cagney <[email protected]>
14184
14185 From Peter Schauer:
14186 * language.c (longest_local_hex_string_custom): Use phex_nz to
14187 convert NUM to a hex string.
14188
ec920329
EZ
141892002-01-12 Elena Zannoni <[email protected]>
14190
14191 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
14192 the function.
538a76d6 14193 Update Copyright year.
ec920329 14194
3abd2e01
AC
141952002-01-12 Andrew Cagney <[email protected]>
14196
14197 * language.c (longest_raw_hex_string): Delete unused function.
14198
b21b22e0
PS
141992002-01-11 Petr Sorfa <[email protected]>
14200
14201 * MAINTAINERS (write-after-approval): Add myself.
14202 * dwarf2read.c (read_tag_string_type): Handling of
14203 DW_AT_byte_size.
14204 (read_tag_string_type): FORTRAN fix to prevent propagation of
14205 first string size.
14206 (set_cu_language): Handling of DW_LANG_Fortran95
14207
747fe712
RE
142082002-01-11 Richard Earnshaw <[email protected]>
14209
14210 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
14211 GETPID(inferior_ptid).
14212 (store_inferior_registers): Likewise.
14213
f1bea926
JM
142142002-01-10 Jason Merrill <[email protected]>
14215
14216 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
14217 Fix DW_OP_minus.
14218
ae940673
AC
142192002-01-10 Andrew Cagney <[email protected]>
14220
14221 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
14222 and bfd/elf32-sh-nbsd.c.
14223
00546b04
MS
142242002-01-10 Michael Snyder <[email protected]>
14225
352ed7b4
MS
14226 * NEWS: Mention --pid and corefile/proc-id behavior change.
14227
c18be923
MS
14228 * Makefile.in: Add rules for gcore.o and linux-proc.o.
14229 * gcore.c: Include cli/cli-decode.h instead of command.h.
14230
00546b04
MS
14231 * main.c (captured_main): Add new command line option "--pid".
14232 If the second command line argument (following the symbol-file)
14233 begins with a digit, try to attach to it before trying to open
14234 it as a corefile.
14235 (print_gdb_help): Document the "--pid" argument.
14236
db60ec62
EZ
142372002-01-10 Eli Zaretskii <[email protected]>
14238
14239 * completer.c (command_completer): New function.
14240
14241 * completer.h <command_completer>: Add prototype.
14242
14243 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
14244 completer for the "help" command.
14245
39c22d1a
JM
142462002-01-09 Jason Merrill <[email protected]>
14247
14248 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
14249
c564377f
MS
142502002-01-09 Michael Snyder <[email protected]>
14251
975aec09
MS
14252 * i386-linux-nat.c (fill_fpxregset): Make global.
14253 (store_fpxregset): Ditto.
14254
db4a10fa
MS
14255 * gregset.h (gdb_fpxregset_t): Define.
14256 (supply_fpxregset): Prototype.
14257 (fill_fpxregset): Prototype.
14258
c564377f
MS
14259 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
14260
c3d45d70
RE
142612002-01-09 Richard Earnshaw <[email protected]>
14262
14263 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
14264 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
14265 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
14266
fcc87af1
AC
142672002-01-09 Andrew Cagney <[email protected]>
14268
14269 * MAINTAINERS: Update target maintainer rules so that any
14270 Maintainer can approve a tested patch for a maintenance-only
14271 target.
14272
dd96c05b
RE
142732002-01-09 Richard Earnshaw <[email protected]>
14274
d4297db9 14275 * MAINTAINERS (write-after-approval): Add myself.
dd96c05b 14276
d4297db9 14277 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
dd96c05b
RE
14278 IN_SIGTRAMP.
14279
145fdc6e
MS
142802002-01-08 Michael Snyder <[email protected]>
14281
14282 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
14283 real name of the executable, rather than the /proc name.
14284
be4d1333
MS
142852002-01-03 Michael Snyder <[email protected]>
14286
14287 Implement a "generate-core-file" command in gdb, save target state.
14288 * gcore.c: New file. Implement new command 'generate-core-file'.
14289 Save a corefile image of the current state of the inferior.
14290 * linux-proc.c: Add linux-specific code for saving corefiles.
14291 * target.h (struct target_ops): Add new target vectors for saving
14292 corefiles; to_find_memory_regions and to_make_corefile_notes.
14293 (target_find_memory_regions): New macro.
14294 (target_make_corefile_notes): New macro.
14295 * target.c (update_current_target): Inherit new target methods.
14296 (dummy_find_memory_regions): New place-holder method.
14297 (dummy_make_corefile_notes): New place-holder method.
14298 (init_dummy_target): Initialize new dummy target vectors.
14299 * exec.c (exec_set_find_memory_regions): New function.
14300 Allow the exec_ops vector for memory regions to be taken over.
14301 (exec_make_note_section): New function, target vector method.
14302 * defs.h (exec_set_find_memory_regions): Export prototype.
14303 * procfs.c (proc_find_memory_regions): New function, corefile method.
14304 (procfs_make_note_section): New function, corefile method.
14305 (init_procfs_ops): Set new target vector pointers.
14306 (find_memory_regions_callback): New function.
14307 (procfs_do_thread_registers): New function.
14308 (procfs_corefile_thread_callback): New function.
14309 * sol-thread.c (sol_find_memory_regions): New function.
14310 (sol_make_note_section): New function.
14311 (init_sol_thread_ops): Initialize new target vectors.
14312 * inftarg.c (inftarg_set_find_memory_regions): New function.
14313 Allow to_find_memory_regions vector to be taken over.
14314 (inftarg_set_make_corefile_notes): New function.
14315 Allow to_make_corefile_notes vector to be taken over.
14316 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
14317 interface layer if not target_has_execution (may be a corefile).
14318 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
14319 * config/sparc/sun4sol2.mh: Ditto.
14320 * config/alpha/alpha-linux.mh: Ditto.
14321 * config/arm/linux.mh: Ditto.
14322 * config/i386/x86-64linux.mh: Ditto.
14323 * config/ia64/linux.mh: Ditto.
14324 * config/m68k/linux.mh: Ditto.
14325 * config/mips/linux.mh: Ditto.
14326 * config/powerpc/linux.mh: Ditto.
14327 * config/sparc/linux.mh: Ditto.
14328
c6b92abd
MS
143292002-01-07 Michael Snyder <[email protected]>
14330
14331 * arm-linux-nat.c: Remove references to regcache.c internal data
14332 (registers[] and register_valid[]).
14333
4b09dc8c
MS
143342002-01-07 Michael Snyder <[email protected]>
14335
abf22e64
AJ
14336 * linux-proc.c: New file. Implement child_pid_to_exec_file,
14337 so that attaching to a pid will automatically read the process's
4b09dc8c
MS
14338 symbol file and shlibs.
14339 * Makefile.in: Add rule for linux-proc.o.
14340 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
14341 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
14342 * config/arm/linux.mh: Ditto.
14343 * config/i386/linux.mh: Ditto.
14344 * config/i386/x86-64linux.mh: Ditto.
14345 * config/ia64/linux.mh: Ditto.
14346 * config/m68k/linux.mh: Ditto.
14347 * config/mips/linux.mh: Ditto.
14348 * config/powerpc/linux.mh: Ditto.
14349 * config/sparc/linux.mh: Ditto.
14350
c25b74ac
PM
143512002-01-06 Pierre Muller <[email protected]>
14352
14353 * win32-nat.c: Add i386-tdep.h dependency.
14354
94cd915f
MS
143552002-01-07 Michael Snyder <[email protected]>
14356
c7cccb76
MS
14357 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
14358 instead of bfd_get_arch_size. Don't bail out just because
14359 there's no exec_bfd.
abf22e64 14360
34c0bd93
MS
14361 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
14362 * p-valprint.c (pascal_object_print_value): Ditto.
14363 * somread.c (som_symtab_read): Ditto.
14364 * symfile.c (simple_free_overlay_region_table): Ditto.
14365 * valops.c (value_assign): Ditto.
14366
21c1c920
MS
14367 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
14368 use tilde_expand and strerror for opening save-tracepoints file.
14369
5bbd998e
MS
14370 * thread-db.c (thread_db_new_objfile): Indendation fix.
14371
94cd915f
MS
14372 * infptrace.c (GDB_MAX_ALLOCA): New define.
14373 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
abf22e64 14374 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
94cd915f
MS
14375 can be overridden with whatever value is appropriate to the host).
14376 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
14377 alloca to allocate potentially large buffer.
14378 * rs6000-nat.c (child_xfer_memory): Ditto.
14379 * symm-nat.c (child_xfer_memory): Ditto.
14380 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
14381
494e8a93
JSC
143822002-01-07 Jackie Smith Cashion <[email protected]>
14383
14384 From Nick Clifton <[email protected]>
14385 * d10v-tdep.c: Set STACK_START to 0x200bffe.
14386
d0e1d48e
MS
143872002-01-07 Michael Snyder <[email protected]>
14388
abf22e64 14389 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
d0e1d48e
MS
14390 Don't use exec_bfd if it's NULL.
14391
290b2c7a
MK
143922002-01-06 Mark Kettenis <[email protected]>
14393
abf22e64 14394 * valops.c (value_arg_coerce): Fix formatting.
290b2c7a 14395
aef21287
AC
143962002-01-06 Andrew Cagney <[email protected]>
14397
14398 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
14399 * gnu-nat.c: Ditto.
14400
30efa627
AC
144012002-01-06 Andrew Cagney <[email protected]>
14402
14403 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
14404 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
14405 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
14406 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
14407 z8k-coff have not been multi-arched. Update z8k-coff build
14408 status.
14409
9b4ff276
AC
144102002-01-06 Andrew Cagney <[email protected]>
14411
14412 * MAINTAINERS: Mark a29k target as obsolete.
14413 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
14414 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
14415 comments.
14416 * NEWS: Note that a29k targets are obsolete.
14417 * a29k-tdep.c: Mark as obsolete.
14418 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
14419 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
14420 a29k-*-vxworks* targets as obsolete.
14421 * remote-adapt.c: Obsolete.
14422 * remote-eb.c: Obsolete.
14423 * remote-mm.c: Obsolete.
14424 * remote-udi.c: Obsolete.
14425 * config/a29k/a29k-udi.mt: Obsolete.
14426 * config/a29k/a29k.mt: Obsolete.
14427 * config/a29k/tm-a29k.h: Obsolete.
14428 * config/a29k/tm-vx29k.h: Obsolete.
14429 * config/a29k/vx29k.mt: Obsolete.
14430
a9011d31
AC
144312002-01-05 Andrew Cagney <[email protected]>
14432
14433 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
14434 with BFD_ENDIAN_BIG.
14435
9299404e
AC
144362002-01-05 Andrew Cagney <[email protected]>
14437
14438 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
14439 * configure, config.in: Re-generate.
14440 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
14441 * defs.h: Do not include <endian.h>.
14442
7e89e357
JT
144432002-01-05 Jason Thorpe <[email protected]>
14444
14445 * acconfig.h (HAVE_PT_GETXMMREGS): New.
14446 * config.in: Regenerate.
14447 * configure.in: Update copyright years.
14448 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
14449 * configure: Regenerate.
14450 * i386bsd-nat.c: Update copyright years.
14451 (fill_gregset): Use regcache_collect.
14452 (fetch_inferior_registers): Only fetch integer registers
14453 if requested to do so. Add support for XMM registers
14454 using PT_GETXMMREGS.
14455 (store_inferior_registers): Only store integer registers
14456 if requested to do so. Add support for XMM registers
14457 using PT_SETXMMREGS.
14458 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
14459 (store_inferior_registers): Remove.
14460 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
14461 (fetch_elfcore_registers): New function.
14462 (i386nbsd_elfcore_fns): New.
14463 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
14464 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
14465 i386bsd-nat.o.
14466 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
14467 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
14468 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
14469 * config/i386/tm-nbsd.h: Update copyright years.
14470 (HAVE_SSE_REGS): Define.
14471 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
14472 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
14473 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
14474 (SIGCONTEXT_PC_OFFSET): Remove.
14475 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
14476
a752853e
AC
144772002-01-05 Andrew Cagney <[email protected]>
14478
14479 * configure.tgt: Remove powerpc-*-macos* target.
14480 * config/m68k/xm-mpw.h: Delete file.
14481 * config/xm-mpw.h: Delete file.
14482 * ser-mac.c: Delete file.
14483 * mpw-make.sed: Delete file.
14484 * mpw-config.in: Delete file.
14485 * mac-xdep.c: Delete file.
14486 * mac-gdb.r: Delete file.
14487 * mac-defs.h: Delete file.
14488 * mac-nat.c: Delete file.
14489 * config/powerpc/macos.mh: Delete file.
14490 * config/powerpc/macos.mt: Delete file.
14491 * config/powerpc/nm-macos.h: Delete file.
14492 * config/powerpc/tm-macos.h: Delete file.
14493 * source.c (openp, open_source_file): Remove obsolete code.
14494 * top.c (gdb_readline): Ditto.
14495 * utils.c (query): Ditto.
14496 * event-top.c (display_gdb_prompt): Ditto.
14497 * Makefile.in (ser-mac.o): Delete obsolete target.
14498 * NEWS: Update.
14499
d7449b42
AC
145002002-01-04 Andrew Cagney <[email protected]>
14501
14502 * defs.h (BIG_ENDIAN): Delete macro definition.
14503 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
14504 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
14505 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
14506 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
14507 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
14508 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
14509 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
14510 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
14511 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
14512 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
14513 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
14514 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
14515 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14516 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
14517 * gdbarch.c: Re-generate.
14518
356374e8
DJ
145192002-01-04 Daniel Jacobowitz <[email protected]>
14520
14521 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
14522 for core files.
14523
a2b8f8f8
JT
145242002-01-04 Jason Thorpe <[email protected]>
14525
14526 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
14527
12466af9
AC
145282002-01-04 Andrew Cagney <[email protected]>
14529
14530 * value.h (value_ptr): Delete typedef.
14531
3549ab40
JT
145322002-01-04 Jason Thorpe <[email protected]>
14533
14534 * i386nbsd-nat.c: Update copyright years.
14535 Include i386-tdep.h.
14536
fedbd091
EZ
145372002-01-04 Elena Zannoni <[email protected]>
14538
14539 * stabsread.c: Update copyright years.
14540
14541 From Debashis Mahata <[email protected]>:
14542 (read_struct_fields): Deal with Sun C compiler erroneous stab
14543 output for structs and unions.
fec8b34f 14544 Fix PR gdb/269.
fedbd091 14545
eb43544b
DJ
145462002-01-04 Daniel Jacobowitz <[email protected]>
14547
14548 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
14549 prototype.
14550
1514d34e
DJ
145512002-01-04 Daniel Jacobowitz <[email protected]>
14552
14553 * cp-abi.c: Fix whitespace.
14554 (baseclass_offset): New wrapper function.
14555 * cp-abi.h (baseclass_offset): Add prototype.
14556 (struct cp_abi_ops): Add baseclass_offset pointer.
14557
14558 * valops.c (vb_match): Move to...
14559 * gnu-v2-abi.c (vb_match): here.
14560 * valops.c (baseclass_offset): Move to...
14561 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
14562
14563 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
14564
14565 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
14566 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
14567 * hpacc-abi.c (init_hpacc_ops): Likewise.
14568
7f8c9282
DJ
145692002-01-04 Daniel Jacobowitz <[email protected]>
14570
14571 * valops.c (find_overload_match): Accept obj as a
14572 reference parameter. Update it before returning.
14573 * value.h (find_overload_match): Update prototype.
14574 * eval.c (evaluate_subexp_standard): Pass object to
14575 find_overload_match by reference.
14576
f23631e4
AC
145772002-01-03 Andrew Cagney <[email protected]>
14578
14579 * valarith.c: Replace value_ptr with struct value pointer. Remove
14580 register attribute from value declarations.
14581 * valops.c: Ditto.
14582 * value.h: Ditto.
14583 * scm-lang.c (scm_lookup_name): Ditto.
14584
79e10fab 145852002-01-03 Michael Snyder <[email protected]>
abf22e64 14586
79e10fab
AC
14587 Abstract the functionality of iterating over mapped memory
14588 regions into a general purpose iterator function.
abf22e64 14589 * procfs.c (iterate_over_mappings): New function, general purpose
79e10fab
AC
14590 iterator for memory sections.
14591 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
14592 (solib_mappings_callback): New function, callback for above.
14593 (info_proc_mappings): Reimpliment using iterate_over_mappings.
14594 (info_mappings_callback): New function, callback for above.
14595
14596 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
14597
c5ad026a
MK
145982002-01-01 Mark Kettenis <[email protected]>
14599
d2a7c97a
MK
14600 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
14601 * i386-tdep.c: Include "elf-bfd.h".
14602 (process_note_abi_tag_sections): New function.
14603 (i386_gdbarch_init): Add code to recognize various OS/ABI
14604 combinations.
14605
c5ad026a
MK
14606 * maint.c (_initialize_maint_cmds): Add missing \ in
14607 string-literal.
14608
a1a5b71e 14609For older changes see ChangeLog-2001
c906108c
SS
14610\f
14611Local Variables:
14612mode: change-log
14613left-margin: 8
14614fill-column: 74
14615version-control: never
14616End:
This page took 2.421714 seconds and 4 git commands to generate.