2003-08-09 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3771659b
AC
12003-08-09 Andrew Cagney <cagney@redhat.com>
2
3 * MAINTAINERS (language support): List Adam Fedor as Objective C
4 maintainer.
5
b4263afa
JB
62003-08-08 J. Brobecker <brobecker@gnat.com>
7
8 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
9 are now multiarched.
10
d84defb1
JB
112003-08-08 J. Brobecker <brobecker@gnat.com>
12
13 * config/pa/tm-hppa64.h: Remove lots of macros that are no
14 longer necessary now that hppa64 is partially multiarch'ed.
15
f786f615
AC
162003-08-08 Andrew Cagney <cagney@redhat.com>
17
18 * interps.c (interp_set): Check for a NULL "old_interp".
19
c938e9b0
L
202003-08-08 H.J. Lu <hongjiu.lu@intel.com>
21
22 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
23 (install-only): Support DESTDIR.
24 (uninstall): Likewise.
25 (install-gdbtk): Likewise.
26
9a146a11
EZ
272003-08-08 Elena Zannoni <ezannoni@redhat.com>
28
29 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
30 contains something meaningful at all times.
31
32Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 33
62599e99 34 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 35
56296155
BC
36Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
37
62599e99 38 * MAINTAINERS (write after approval): Added self.
56296155 39
9710e734
AC
402003-08-07 Andrew Cagney <cagney@redhat.com>
41
42 * inferior.h (AT_SYMBOL): Define.
43 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
44 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
45 * mips-tdep.c (mips_call_dummy_address): Delete function.
46 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
47 set call_dummy_address.
48
98b3ab73
AC
492003-08-07 Andrew Cagney <cagney@redhat.com>
50
51 * language.c (op_error): Delete function.
52 (binop_type_check): Delete function.
53 * language.h (type_op_error, range_op_error): Delete macros.
54 (op_error): Delete declaration.
55
2fcf52f0
AC
562003-08-07 Andrew Cagney <cagney@redhat.com>
57
58 * interps.h (INTERP_MI2, INTERP_MI3): Define.
59
abd4220e 602003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 61
abd4220e 62 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 63 (x86_64_push_arguments): Skip the red zone.
abd4220e 64
9dd5f34f
AC
652003-08-05 Andrew Cagney <cagney@redhat.com>
66
67 * reggroups.c (reggroup_next): Check for the final entry.
68
e5e78edc
AC
692003-08-04 Andrew Cagney <cagney@redhat.com>
70
ab4e3d93
AC
71 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
72 * cli/cli-script.c (define_command): Call query directly, instead
73 of passing it a buffer.
74 * ocd.c (ocd_error): Pass error a constant format string.
75 * remote-mips.c (mips_error): Use fputs_filtered.
76
1062ca82
AC
77 * solib-svr4.c (_initialize_svr4_solib): Update
78 register_gdbarch_data call.
79 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
80
fcc1c85c
AC
81 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
82 (register_gdbarch_data): Delete "free" parameter. Update
83 comments.
84 * gdbarch.h, gdbarch.c: Re-generate.
85 * reggroups.c (_initialize_reggroup): Update.
86 * gnu-v3-abi.c (init_gnuv3_ops): Update.
87 * frame-base.c (_initialize_frame_base): Update.
88 * frame-unwind.c (_initialize_frame_unwind): Update.
89 * user-regs.c (_initialize_user_regs): Update.
90 * remote.c (_initialize_remote): Update.
91 * regcache.c (_initialize_regcache): Update.
92
116f06ea
AC
93 * regcache.c (xfree_regcache_descr): Delete function.
94 (_initialize_regcache): Update call to register_gdbarch_data.
95 (init_regcache_descr, init_legacy_regcache_descr): Use
96 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
97
e5e78edc
AC
98 * remote.c (free_remote_state): Delete function.
99 (_initialize_remote): Update register_gdbarch_data.
100 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
101 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
102
6c7d17ba
AC
1032003-08-04 Andrew Cagney <cagney@redhat.com>
104
105 * reggroups.c (struct reggroup_el): Define.
106 (struct reggroups): Delete field "nr_group". Replace array
107 "group" with a "first" to "last" linked list.
108 (reggroups_init): Update. Allocate using gdbarch's obstack.
109 (reggroups_free): Delete function.
110 (add_group): Update. Add "el" parameter.
111 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
112 (default_groups): Update.
113 (reggroup_next): Replace reggroups.
114 (reggroups_dump): Update.
115 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
116 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
117 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
118
89b7795b
DJ
1192003-08-04 Daniel Jacobowitz <drow@mvista.com>
120
121 * Makefile.in (tui-interp.o): Update dependencies.
122
306d9ac5
DC
1232003-08-04 David Carlton <carlton@kealia.com>
124
125 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
126 to internal_error call.
127 * source.c (forward_search_command): Add "%s" format argument.
128 (reverse_search_command): Ditto.
129 * top.c (quit_confirm): Ditto.
130 * cli/cli-setshow.c (do_setshow_command): Ditto.
131 * cp-valprint.c (cp_print_class_method): Replace
132 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
133 (cp_print_class_member): Ditto.
134 * event-top.c (command_line_handler): Ditto.
135 * linux-proc.c (linux_info_proc_cmd): Ditto.
136 * p-typeprint.c (pascal_type_print_base): Ditto.
137 * p-valprint.c (pascal_object_print_class_method): Ditto.
138 (pascal_object_print_class_member): Ditto.
139 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
140 * remote.c (remote_cisco_section_offsets): Ditto.
141 * top.c (command_line_input): Ditto.
142 * utils.c (vwarning,error_stream,quit): Ditto.
143 * valprint.c (print_floating,print_binary_chars)
144 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
145
57bfe177
AC
1462003-08-04 Andrew Cagney <cagney@redhat.com>
147
148 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
149
e546b999
AC
1502003-08-02 Andrew Cagney <cagney@redhat.com>
151
152 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
153 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
154 amd64fbsd-nat.c.
155
91092ee5
AC
1562003-08-02 Andrew Cagney <cagney@redhat.com>
157
158 * Makefile.in: Update all dependencies and definitions.
159
889f28e2
AF
1602003-08-02 Adam Fedor <fedor@gnu.org>
161
162 * linespec.c (is_objc_method_format): New function
163 (decode_line_1, locate_first_half): Use it.
164 Fixes PR objc/1298
165
880bc914
AC
1662003-08-01 Andrew Cagney <cagney@redhat.com>
167
168 * NEWS: Mention that m32r is multi-arch.
169 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
170 * configure.tgt: Recognize m32r-*-*.
171 * config/m32r/tm-m32r.h: Delete file.
172 * config/m32r/m32r.mt: New file.
173 * m32r-rom.c (m32r_upload_command): Use hostent only when
174 gethostname succeeds, in order to avoid a compilation
175 warning.
176 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
177 compiler warning.
178
19f59343
MS
1792003-08-01 Michael Snyder <msnyder@redhat.com>
180
181 * sh-tdep.c (sh_frame_align): New gdbarch method.
182 (sh_gdbarch_init): Set up frame_align method.
183
4e7d7511
MS
1842003-07-31 Michael Snyder <msnyder@redhat.com>
185
186 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
187 which is already covered by the new frames infrastructure.
188
63022984
AC
1892003-07-31 Andrew Cagney <cagney@redhat.com>
190
191 * user-regs.c (struct user_reg): Add "next" link.
192 (struct user_regs): Replace "user" with "first" and "last" links.
193 (append_user_reg): Add pre-allocated "reg" parameter.
194 (builtin_user_regs): Provide initial value for "last".
195 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
196 (user_regs_init): Allocate memory from the gdbarch obstack.
197 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
198 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
199 linked list.
200 (usernum_to_user_reg): New function.
201 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
202 (value_of_user_reg): Use usernum_to_user_reg.
203 (user_regs_free): Delete function.
204 (_initialize_user_regs): Update register_gdbarch_data call.
205
7cf6e574
DJ
2062003-07-31 Daniel Jacobowitz <drow@mvista.com>
207
208 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
209
c48a845b
MS
2102003-07-30 Michael Snyder <msnyder@redhat.com>
211
4e7d7511 212 * value.h (value_being_returned): Add a struct_addr argument.
c48a845b
MS
213 * infcall.c (call_function_by_hand): Pass struct_addr to
214 value_being_returned.
215 * infcmd.c (print_return_value): Pass zero as struct_addr.
216 * values.c (value_being_returned): If struct_addr is passed,
217 use it instead of trying to recover it from the inferior.
218
f0d8db19
KB
2192003-07-30 Kevin Buettner <kevinb@redhat.com>
220
221 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
222 the prologue analyzer won't need to attempt to extract the pc
223 value from the woefully incomplete dummy frame.
224 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
225 possible. Disable code which modifies the frame.
226
e5c113a1
AC
2272003-07-28 Andrew Cagney <cagney@redhat.com>
228
229 * annotate.c (annotate_breakpoints_headers): Restrict annotation
230 to level 2.
231 (annotate_breakpoints_table, annotate_record): Ditto.
232 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
233 (annotate_field_name_end, annotate_field_value): Ditto.
234 (annotate_field_end, annotate_frame_source_begin): Ditto.
235 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
236 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
237 (annotate_frame_begin, annotate_frame_function_name): Ditto.
238 (annotate_frame_address_end, annotate_frame_address): Ditto.
239 (annotate_frame_args, annotate_frame_end): Ditto.
240 (annotate_frame_where, annotate_arg_begin): Ditto.
241 (annotate_arg_name_end, annotate_arg_value): Ditto.
242 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
243 (annotate_function_call, annotate_signal_name): Ditto.
244 (annotate_signal_string, annotate_signal_name_end): Ditto.
245 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
246 (annotate_value_begin, annotate_value_history_value): Ditto.
247 (annotate_value_history_end, annotate_value_end): Ditto.
248 (annotate_display_begin, annotate_display_number_end): Ditto.
249 (annotate_display_format, annotate_display_expression): Ditto.
250 (annotate_display_expression_end, annotate_display_value): Ditto.
251 (annotate_display_end, annotate_array_section_begin): Ditto.
252 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
253 (annotate_elt, annotate_array_section_end): Ditto.
254
bb1db049
AC
2552003-07-28 Andrew Cagney <cagney@redhat.com>
256
257 * regcache.c (struct regcache_descr): Update comments on
258 nr_raw_registers.
259 (init_legacy_regcache_descr): Don't set nr_raw_registers or
260 sizeof_raw_register_valid_p.
261 (init_regcache_descr): Set nr_raw_registers and
262 sizeof_raw_register_valid_p before calling
263 init_legacy_regcache_descr.
264
20e6603c
AC
2652003-07-28 Andrew Cagney <cagney@redhat.com>
266
267 * mips-tdep.c (print_gp_register_row): Print the GPR's register
268 MOD NUM_REGS.
269
db742940
DJ
2702003-07-28 Daniel Jacobowitz <drow@mvista.com>
271
272 * thread.c (info_threads_command): Use get_selected_frame ().
273 Check that there is at least one non-sentinel frame.
274
ce7f4371
SC
2752003-07-27 Stephane Carrez <stcarrez@nerim.fr>
276
277 * m68hc11-tdep.c (struct frame_extra_info): Remove.
278 (m68hc11_pop_frame): Remove.
279 (m68hc11_frame_saved_pc): Remove.
280 (m68hc11_frame_chain): Remove.
281 (m68hc11_frame_init_saved_regs): Remove.
282 (m68hc11_init_extra_frame_info): Remove.
283 (m68hc11_store_struct_return): Remove.
284 (m68hc11_saved_pc_after_call): Remove.
285
1ea653ae
SC
2862003-07-27 Stephane Carrez <stcarrez@nerim.fr>
287
288 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
289 frame unwind information.
290 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
291 and adapted for frame unwinding.
292 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
293 (m68hc11_unwind_pc): New function.
294 (m68hc11_frame_unwind_cache): New function to analyze frames.
295 (m68hc11_frame_this_id): New function to create new frame struct.
296 (m68hc11_frame_prev_register): New function to unwind a register from
297 the frame.
298 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
299 (m68hc11_frame_p): New function for the above.
300 (m68hc11_frame_base_address): New function to return fp of frame.
301 (m68hc11_frame_args_address): Update for frame.
302 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
303 (m68hc11_unwind_sp): New function.
304 (m68hc11_unwind_dummy_id): New function.
305 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
306 calls.
307
c8a7f6ac
SC
3082003-07-27 Stephane Carrez <stcarrez@nerim.fr>
309
310 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
311 (m68hc11_guess_from_prologue): Advance the pc and frame size only
312 when we are beyond the current pc.
313
3dc990bf
SC
3142003-07-27 Stephane Carrez <stcarrez@nerim.fr>
315
316 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
317 from m68hc11_push_arguments.
318 (m68hc11_push_arguments): Remove.
319 (m68hc11_push_return_address): Remove.
320 (m68hc11_gdbarch_init): Install the above; remove above deprecated
321 handlers; remove deprecated_extra_stack_alignment_needed.
322
222e5d1d
AC
3232003-07-27 Andrew Cagney <cagney@redhat.com>
324
325 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
326 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
327 REAL_PC and not the pointer.
328 * hppa-hpux-tdep.c: Include frame.h
329
a7e9a47e
AC
3302003-07-27 Andrew Cagney <cagney@redhat.com>
331
332 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
333 GDB_MULTI_ACH_PARTIAL.
334
7e3dd49e
AC
3352003-07-27 Andrew Cagney <cagney@redhat.com>
336
337 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
338 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
339 operator at start and not end of line.
340 (decode_prologue): Ditto.
341 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
342 frame_unwind_register_unsigned instead of
343 frame_unwind_unsigned_register.
344 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
345 read_register.
346 (m32r_push_dummy_call): Use register_size instead of
347 REGISTER_RAW_SIZE.
348 (m32r_frame_sniffer): Replace m32r_frame_p.
349 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
350 * m32r-rom.c (report_transfer_performance): Delete extern
351 declaration.
352 (m32r_load, m32r_upload_command): Use print_transfer_performance
353 instead of report_transfer_performance.
354 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
355 / add_show_from_set.
356
0880807f
AC
3572003-07-26 Andrew Cagney <cagney@redhat.com>
358
359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
360 store_return_value and extract_struct_value_address.
361
64ae9269
DJ
3622003-07-26 Daniel Jacobowitz <drow@mvista.com>
363
364 PR c++/1267
365 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
366 NULL, default to the section containing PC.
367
e286caf2
SC
3682003-07-24 Stephane Carrez <stcarrez@nerim.fr>
369
370 * NEWS: Mention "regs" deprecated for m68hc11 too.
371
372 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
373 (m68hc11_print_register): New function to print out one register.
374 (m68hc11_print_registers_info): New function to print registers.
375 (show_regs): Deprecate and use the above.
376 (m68hc11_gdbarch_init): Install the print_registers_info.
377
705b278b
JJ
3782003-07-24 Jeff Johnston <jjohnstn@redhat.com>
379
380 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
381 that we have a SIGTRAP before returning non-zero.
382
63cd4198
EZ
3832003-07-23 Michal Ludvig <mludvig@suse.cz>
384 Elena Zannoni <ezannoni@redhat.com>
385
386 * linespec.c (decode_line_2): Avoid crash if
387 find_function_start_sal() returns empty record.
388
6926787d
AS
3892003-07-23 Andreas Schwab <schwab@suse.de>
390
391 * ia64-tdep.c (ia64_print_insn): New function.
392 (ia64_gdbarch_init): Set print_insn to it.
393 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
394 deprecated_tm_print_insn_info.
395
708cc1b6
MS
3962003-07-22 Michael Snyder <msnyder@redhat.com>
397
398 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
399 handle 8-bit returns (long long).
400 (h8300h_extract_return_value): Ditto.
401 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
402
aebd7893
AC
4032003-07-22 Andrew Cagney <cagney@redhat.com>
404
405 * gdbarch.c Include "gdb_obstack.h".
406 (struct gdbarch): Add an "obstack".
407 (alloc_gdbarch_data): Allocate the gdbarch data using
408 GDBARCH_OBSTACK_CALLOC.
409 (free_gdbarch_data): Delete function.
410 (gdbarch_obstack_zalloc): New function.
411 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
412 Assert that the architecture is not initialized.
413 (gdbarch_alloc): Allocate an obstack, allocate the architecture
414 vector from the obstack.
415 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
416 architecture obstack.
417 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
418 (set_gdbarch_data): Assert that the data is not initialized.
419 (struct gdbarch_data): Delete member "free".
420 (register_gdbarch_data): Do not initialize "free".
421 * gdbarch.h, gdbarch.c: Re-generate.
422
153721e6
AC
4232003-07-22 Andrew Cagney <cagney@redhat.com>
424
425 * configure.in (build_warnings): Add -Wformat-nonliteral.
426 * configure: Re-generate.
427
c193f044 4282003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
429
430 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 431
c3228f12
EZ
4322003-07-22 Elena Zannoni <ezannoni@redhat.com>
433
434 * findvar.c (read_var_value): Remove case for thread local storage
435 variables. It is now entirely handled by the dwarf2 location
436 expression code.
437 * printcmd.c (address_info): Ditto.
438 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
439 enumeration value.
440 (struct symbol): Remove objfile field, which was used by
441 LOC_THREAD_LOCAL_STATIC only.
442 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
443 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
444 usage of objfile pointer.
445 * dwarf2loc.c (locexpr_describe_location): Add case to handle
446 thread local variables.
447 Add include of objfiles.h.
448 * dwarf2expr.c (execute_stack_op): Add comments about thread local
449 storage variables.
450 * Makefile.in (dwarf2loc.o): Update dependencies.
451
aef9bcd2
AC
4522003-07-22 Andrew Cagney <cagney@redhat.com>
453
454 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
455 get_frame_base.
456 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
457 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
458 (struct value): Add opaque declaration.
459 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
460
d95a8903
AC
4612003-07-21 Andrew Cagney <cagney@redhat.com>
462
463 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
464 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
465
4db73d49
SC
4662003-07-20 Stephane Carrez <stcarrez@nerim.fr>
467
468 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
469 regcache_cooked_read_unsigned instead of read_register.
470 (m68hc11_saved_pc_after_call): Likewise.
471 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
472 instead of write_register.
473 (m68hc11_register_type): New function.
474 (m68hc11_register_virtual_type): Remove.
475 (m68hc11_store_return_value): Convert to use the regcache.
476 (m68hc11_extract_struct_value_address): Likewise.
477 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
478 m68hc11_register_type; undeprecate store_return_value and
479 extract_struct_value_address.
480
ef2b8fcd
SC
4812003-07-20 Stephane Carrez <stcarrez@nerim.fr>
482
483 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
484 and translate to use regcache.
485 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
486
625b0b97
AC
4872003-07-18 Andrew Cagney <cagney@redhat.com>
488
489 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
490 * gdbarch.h, gdbarch.c: Re-generate.
491 * i386-tdep.c (i386_gdbarch_init): Do not set
492 DWARF2_BUILD_FRAME_INFO.
493 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
494 unconditionally.
495 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
496 DWARF2_BUILD_FRAME_INFO.
497
22b0d388
AC
4982003-07-18 Andrew Cagney <cagney@redhat.com>
499
500 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
501 * disasm.c (gdb_disassemble_info): Initilize di.arch.
502
1ce5d6dd
AC
5032003-07-18 Andrew Cagney <cagney@redhat.com>
504
505 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
506 frame_unwind_address_in_block, instead of frame_pc_unwind.
507 (dwarf2_frame_cache): Ditto.
508
e6e5e94c
AC
5092003-07-18 Andrew Cagney <cagney@redhat.com>
510
511 * user-regs.h (struct gdbarch): Declare opaque.
512 * ui-out.h (struct ui_file): Declare opaque.
513 * dwarf2-frame.h (struct frame_info): Declare opaque.
514
5483d879
KW
5152003-07-18 Kris Warkentin <kewarken@qnx.com>
516
517 * nto-procfs.c: Clean ARI hits. Change #include <..> to
518 #include "...".
519 (procfs_meminfo): Change strerror to safe_strerror.
520 (procfs_can_run): Remove K&R badness.
521
278a7cf7
MS
5222003-07-17 Michael Snyder <msnyder@redhat.com>
523
524 * remote-sim.c: Comment typo fix.
525
606e3b82
AC
5262003-07-17 Andrew Cagney <cagney@redhat.com>
527
528 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
529 configure.
530 * sparc-tdep.c (sparc_intreg_size): Make non-static.
531 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
532 GDB_MULTI_ARCH_PARTIAL.
533
c43af07c
EZ
5342003-07-17 Elena Zannoni <ezannoni@redhat.com>
535
536 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
537 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
538 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
539
3b85b0f1
TR
5402003-07-16 Theodore A. Roth <troth@openavr.org>
541
542 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
543 found.
544 (avr_frame_unwind_cache): Don't unwind FP for main.
545 Update a comment.
546 Save the computed prev_sp.
547 (avr_saved_regs_unwinder): Remove function.
548 (avr_frame_prev_register): Use PC unwind logic from
549 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
550
336d1bba
AC
5512003-07-16 Andrew Cagney <cagney@redhat.com>
552
553 * frame-base.h (frame_base_p_ftype): Delete definition.
554 (frame_base_append_predicate): Delete declaration.
555 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
556 (frame_unwind_append_predicate): Delete declaration.
557 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
558 (append_predicate): Delete parameter "p".
559 (frame_unwind_append_predicate): Delete function.
560 (frame_unwind_append_sniffer): Update call to append_predicate.
561 (frame_unwind_free): Delete function.
562 (_initialize_frame_unwind): Pass NULL as "free" to
563 register_gdbarch_data.
564 (frame_unwind_init): Append the dummy_frame_sniffer.
565 (frame_unwind_find_by_frame): Simplify.
566 * frame-base.c (struct frame_base_table): Delete field "p".
567 (append_predicate): Delete parameter "p".
568 (frame_base_append_predicate): Delete function.
569 (frame_base_append_sniffer): Update call to append_predicate.
570 (frame_base_free): Delete function.
571 (frame_base_find_by_frame): Simplify.
572 (_initialize_frame_base): Pass NULL as "free" to
573 register_gdbarch_data.
574 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
575 (x86_64_sigtramp_frame_sniffer): Replace
576 "x86_64_sigtramp_frame_p".
577 (x86_64_init_abi): Set the frame unwind sniffers.
578 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
579 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
580 (m68k_gdbarch_init): Set the frame unwind sniffers.
581 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
582 "i386_sigtramp_frame_p".
583 (i386_frame_sniffer): Replace "i386_frame_p".
584 (i386_gdbarch_init): Set the frame unwind sniffers.
585 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
586 (avr_gdbarch_init): Set the frame unwind sniffers.
587 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
588 "alpha_sigtramp_frame_p"
589 (alpha_heuristic_frame_sniffer): Replace
590 "alpha_heuristic_frame_p".
591 (alpha_gdbarch_init): Set the frame unwind sniffers.
592 (alpha_dwarf2_init_abi): Ditto.
593 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
594 "alpha_debug_frame_p".
595 (alpha_mdebug_frame_base_sniffer): Replace
596 "alpha_mdebug_frame_base_p".
597 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
598 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
599 (d10v_gdbarch_init): Set the frame unwind sniffer.
600 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
601 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
602 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
603 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
604 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
605 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
606
48db5a3c
CV
6072003-07-16 Michael Snyder <msnyder@redhat.com>
608
609 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
610 should go thru sh_dsp_register_sim_regno, else the dsp regs
611 will not get the right values.
612
6132003-07-16 Corinna Vinschen <vinschen@redhat.com>
614
615 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
616 deprecated_store_floating by call to store_typed_floating.
617 (sh_sh4_register_convert_to_raw): Substitute call to
618 deprecated_extract_floating by call to extract_typed_floating.
619
6202003-07-16 Corinna Vinschen <vinschen@redhat.com>
621
622 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
623
6242003-07-16 Corinna Vinschen <vinschen@redhat.com>
625
626 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
627 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
628 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
629 as possible.
630 (do_pseudo_register): Remove.
631 (sh_push_dummy_code): New function.
632 (sh64_store_struct_return): Rename from sh_store_struct_return.
633 Only called for sh64 now.
634 (sh_extract_struct_value_address): Regcache'ify.
635 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
636 and accomodate new tasks.
637 (sh64_push_return_address): Rename from sh_push_return_address.
638 Only called for sh64 now.
639 (sh_default_extract_return_value): Rename from sh_extract_return_value.
640 Regcache'ify.
641 (sh3e_sh4_extract_return_value): Regcache'ify.
642 (sh_default_store_return_value): Ditto.
643 (sh3e_sh4_store_return_value): Ditto.
644 (sh_default_register_byte): Remove.
645 (sh_sh4_register_byte): Remove.
646 (sh_default_register_raw_size): Remove.
647 (sh_sh4_register_raw_size): Remove.
648 (sh_register_virtual_size): Remove.
649 (sh_sh3e_register_virtual_type): Remove.
650 (sh_sh3e_register_type): New function.
651 (sh_sh4_register_virtual_type): Remove.
652 (sh_sh4_register_type): New function.
653 (sh_default_register_virtual_type): Remove.
654 (sh_default_register_type): New function.
655 (do_fv_register_info): Add parameters to accomodate call from
656 sh_print_registers_info.
657 (do_dr_register_info): Ditto.
658 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
659 Add parameters to accomodate call from sh_print_registers_info.
660 (sh_do_fp_register): Ditto.
661 (sh64_do_pseudo_register): Call do_dr_register_info,
662 do_fv_register_info and sh_do_fp_register with default parameters.
663 (sh_do_register): Add parameters to accomodate call from
664 sh_print_registers_info.
665 (sh_print_register): Ditto.
666 (sh_print_registers_info): Rename from sh_do_registers_info.
667 Add parameters to be used as gdbarch_print_registers_info
668 implementation. Accomodate removed do_pseudo_register function
669 pointer.
670 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
671 function pointer. Call sh_print_register with default parameters.
672 (sh64_do_registers_info): Call sh_print_registers_info instead of
673 sh_do_registers_info.
674 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
675 detection of deprecated vs. non-deprecated functionality.
676 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
677 function pointer assignments by direct function calls.
678
e8a89fe2
AC
6792003-07-15 Andrew Cagney <cagney@redhat.com>
680
681 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
682 (frame_register_unwind, create_new_frame): Ditto.
683 (legacy_get_prev_frame, get_frame_type): Ditto.
684 (get_frame_base_address): Use frame_base_find_by_frame.
685 (get_frame_locals_address): Use frame_base_find_by_frame.
686 (get_frame_args_address): Use frame_base_find_by_frame.
687 * frame-base.h (frame_base_sniffer_ftype): Declare.
688 (frame_base_append_sniffer): Declare.
689 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
690 * frame-base.c (append_predicate): Add a "sniffer" parameter.
691 (frame_base_append_sniffer): New function.
692 (frame_base_append_predicate): Add a NULL sniffer.
693 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
694 (struct frame_base_table): Add "sniffer".
695 (frame_base_free): Free the "sniffer" table.
696 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
697 (frame_unwind_append_sniffer): Declare.
698 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
699 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
700 (struct frame_unwind_table): Add "sniffer", delete "middle".
701 (append_predicate): Add "sniffer" parameter, append the sniffer.
702 (frame_unwind_init): Update append_predicate call.
703 (frame_unwind_append_sniffer): New function.
704 (frame_unwind_append_predicate): Update append_predicate call.
705 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
706
0714963c
AC
7072003-07-15 Andrew Cagney <cagney@redhat.com>
708
709 * frame.c (get_prev_frame): Move disabled inside_entry_func to
710 before code inhibiting repeated unwind attempts. Add to
711 commentary on that test's problems.
712 * blockframe.c (inside_main_func): Look for "main" in the minimal
713 symbol table.
714 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
715 identical.
716
d9170e22
AC
7172003-07-15 Andrew Cagney <cagney@redhat.com>
718
719 * complaints.c (struct explanation): Define.
720 (struct complaints): Change type of "explanation" to "struct
721 explanation".
722 (symfile_explanations): Convert to a "struct explanation" table.
723 (vcomplaint): Update.
724
eba29c8c
ML
7252003-07-15 Michal Ludvig <mludvig@suse.cz>
726
727 * x86-64-linux-nat.c (regmap): Removed.
728 (supply_gregset, fill_gregset): Call
729 x86_64_linux_(fill,supply)_gregset functions.
730 * x86-64-linux-tdep.c (USER_*): New defines.
731 (user_to_gdb_regmap, x86_64_core_fns): New structure.
732 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
733 New functions.
734 (fetch_core_registers): Ditto.
735 (_initialize_x86_64_linux_tdep): Call add_core_fns().
736 * x86-64-linux-tdep.h: New file.
737 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
738 and core-regset.o.
739 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
740
68cc0bfb
MK
7412003-07-13 Mark Kettenis <kettenis@gnu.org>
742
88a115f7
MK
743 * x86-64-tdep.c (x86_64_store_return_value): Use
744 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 745
68cc0bfb
MK
746 * configure.host: Add x86_64-*-freebsd*.
747 * configure.tgt: Add x86_64-*-freebsd*.
748 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
749 * amd64fbsd-nat.c: New file.
750 * amd64fbsd-tdep.c: New file.
751 * config/i386/nm-fbsd64.h: New file.
752 * config/i386/fbsd64.mh: New file.
753 * config/i386/fbsd64.mt: New file.
754
138e7be5
MK
7552003-07-11 Mark Kettenis <kettenis@gnu.org>
756
757 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
758 `sc_regs_offset' and `sc_fpregs_offset'.
759 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
760 SIGFRAME_FPREGSAVE_OFF): Remove defines.
761 (alpha_sigtramp_register_address): Rewrite to use new members of
762 `struct gdbarch_tdep'.
763 (alpha_gdbarch_init): Initialize new members of struct
764 gdbarch_tdep'.
765 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
766 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
767 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
768 (alphafbsd_pc_in_sigtramp): Implement.
769 (alphafbsd_sigtramp_offset): New function.
770 (alphafbsd_sigcontext_addr): New function.
771 (alphafbsd_init_abi): Initialize signal trampoline related members
772 of `struct gdbarch_tdep'.
773 (_initialize_alphafbsd_tdep): Add prototype.
774
95303a68
TR
7752003-07-11 Theodore A. Roth <troth@openavr.org>
776
ba292e4c
TR
777 * Makefile.in (install-only): Quote sed expression when generating
778 transformed_name.
95303a68 779
6896c0c7
RH
7802003-07-11 Richard Henderson <rth@redhat.com>
781
782 * Makefile.in (dwarf2-frame.o): Add complaints_h.
783 * dwarf2-frame.c: Include complaints.h.
784 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
785 variable initialization; return NULL on error.
786 (decode_frame_entry): New.
787
8edd5d01
AC
7882003-07-11 Andrew Cagney <cagney@redhat.com>
789
c4a09524
AC
790 * frame.h (frame_address_in_block): Delete declaration.
791 * blockframe.c (frame_address_in_block): Delete function.
792 (get_frame_block): Use get_frame_address_in_block.
793 (block_innermost_frame): Ditto.
794 * stack.c (print_frame, backtrace_command_1): Ditto.
795
8edd5d01
AC
796 * frame.h (get_frame_address_in_block): Declare.
797 (frame_unwind_address_in_block): Declare.
798 * frame.c (frame_unwind_address_in_block): New function.
799 (get_frame_address_in_block): New function.
800
f7968451
AC
8012003-07-10 Andrew Cagney <cagney@redhat.com>
802
803 * gdbarch.sh: Simplify predicate methods. Remove need to provide
804 pre-default. Note: re-generate has no effect.
805
ae99b398
AC
8062003-07-10 Andrew Cagney <cagney@redhat.com>
807
808 * gdbarch.sh: When a variable, but not a function, compare against
809 0. Fix problem in previous patch.
810 * gdbarch.c: Re-generate.
811
956ac328
AC
8122003-07-10 Andrew Cagney <cagney@redhat.com>
813
814 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
815 functions against NULL, not 0.
816 * gdbarch.c: Re-generate.
817
287c3240
FF
8182003-07-10 Fred Fish <fnf@ninemoons.com>
819
820 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
821 null string instead of a null pointer.
822 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
823
32f63c4b
MS
8242003-07-09 Michael Snyder <msnyder@redhat.com>
825
826 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
827
402ecd56
MK
8282003-07-09 Mark Kettenis <kettenis@gnu.org>
829
830 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
831 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
832 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
833 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
834 * x86-64-tdep.c: ... from here.
835
c481dac7
AS
8362003-07-09 Andreas Schwab <schwab@suse.de>
837
838 * m68k-tdep.h (enum struct_return): Define.
839 (struct gdbarch_tdep): Add struct_return.
840 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
841 bytes are padded to the right, not to the left. Pass struct value
842 address in register %a1, not on stack.
843 (m68k_use_struct_convention): New function.
844 (m68k_gdbarch_init): Set use_struct_convention. Initialize
845 struct_return in tdep to pcc_struct_return.
846 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
847 reg_struct_return.
848
64176fa3
JB
8492003-07-09 Joel Brobecker <brobecker@gnat.com>
850
851 * somread.c (som_symfile_offsets): Fix compilation error.
852
96a4ee76
AC
8532003-07-09 Andrew Cagney <cagney@redhat.com>
854
855 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
856 Add comments about the checks.
857
1517c6d1
AC
8582003-07-08 Andrew Cagney <cagney@redhat.com>
859
860 * Makefile.in: Make dependency section headers consistent.
861 (config_h): Move to $BUILD headers section.
862 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
863 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
864 (ada-exp.tab.c): Move to YACC/LEX section.
865 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
866 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
867
dc5dd1eb
KW
8682003-07-08 Kris Warkentin <kewarken@qnx.com>
869
870 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
871 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
872 of strerror with safe_strerror, use ISO C function definitions,
873 and replace instances of sprintf with snprintf.
dc5dd1eb 874
612dde91
AC
8752003-07-07 Andrew Cagney <cagney@redhat.com>
876
877 * frame.c (get_prev_frame): Enable check for identical frames.
878 Update comments. Update error messages.
879
492c11d3
JB
8802003-07-07 Joel Brobecker <brobecker@gnat.com>
881
882 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
883
376a5a49
JB
8842003-07-07 Joel Brobecker <brobecker@gnat.com>
885
886 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
887 sort_symtab_syms, no longer necessary.
888
22b4a9ad
JB
8892003-07-07 Joel Brobecker <brobecker@gnat.com>
890
891 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
892
5bbcb741
JB
8932003-07-07 Joel Brobecker <brobecker@gnat.com>
894
895 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
896 (mips_register_byte): Likewise.
897
c139e7d9
DJ
8982003-07-07 Daniel Jacobowitz <drow@mvista.com>
899
900 * Makefile.in (sparc_tdep_h): New.
901 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
902 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
903 * sparc-linux-nat.c: Include "sparc-tdep.h".
904 * sparc-nat.c: Likewise.
905 * sparc-tdep.c: Likewise.
906 * sparc64nbsd-nat.c: Likewise.
907 * sparcnbsd-nat.c: Likewise.
908 * sparcnbsd-tdep.c: Likewise.
909 * sparc-tdep.h: New file.
910 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
911 and sparc_npc_regnum.
912
fd8f87c5
DJ
9132003-07-07 Daniel Jacobowitz <drow@mvista.com>
914
915 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
916 (mips_linux_cannot_store_register): List supported instead of
917 unsupported registers.
918
13adf674
DJ
9192003-07-07 Daniel Jacobowitz <drow@mvista.com>
920
921 * disasm.c (dump_insns): Separate instructions from addresses.
922
8de307e0
AS
9232003-07-07 Andreas Schwab <schwab@suse.de>
924
925 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
926 dependencies.
927 * m68k-tdep.c (NUM_FREGS): Delete.
928 (SIG_PC_FP_OFFSET): Delete.
929 (TARGET_M68K): Delete.
930 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
931 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
932 P_MOVEL_SP, P_MOVEML_SP): Define.
933 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
934 P_TRAP): Delete.
935 (m68k_register_raw_size): Delete.
936 (m68k_register_virtual_size): Delete.
937 (m68k_register_type): Renamed from m68k_register_virtual_type and
938 add gdbarch argument.
939 (m68k_store_struct_return): Delete.
940 (m68k_deprecated_extract_return_value): Delete.
941 (m68k_deprecated_extract_struct_value_address): Delete.
942 (m68k_frame_chain): Delete.
943 (m68k_frame_saved_pc): Delete.
944 (m68k_fix_call_dummy): Delete.
945 (m68k_push_dummy_frame): Delete.
946 (m68k_pop_frame): Delete.
947 (m68k_extract_return_value): New function.
948 (m68k_store_return_value): Rewrite using regcache.
949 (m68k_extract_struct_value_address): Rewrite using regcache.
950 (m68k_push_dummy_call): New function.
951 (struct m68k_frame_cache): Define.
952 (m68k_alloc_frame_cache): New function.
953 (m68k_analyze_frame_setup): New function.
954 (m68k_analyze_register_saves): New function.
955 (m68k_analyze_prologue): New function.
956 (m68k_skip_prologue): Rewrite using above functions.
957 (m68k_unwind_pc): New function.
958 (m68k_frame_cache): New function.
959 (m68k_frame_this_id): New function.
960 (m68k_frame_prev_register): New function.
961 (m68k_frame_unwind): New variable.
962 (m68k_frame_p): New function.
963 (m68k_sigtramp_frame_cache): New function.
964 (m68k_sigtramp_frame_this_id): New function.
965 (m68k_sigtramp_frame_prev_register): New function.
966 (m68k_sigtramp_frame_unwind): New variable.
967 (m68k_sigtramp_frame_p): New function.
968 (m68k_frame_base_address): New function.
969 (m68k_frame_base): New function.
970 (m68k_unwind_dummy_id): New function.
971 (fill_gregset): Use regcache_collect.
972 (fill_fpregset): Likewise.
973 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
974 defined.
975 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
976 deprecated_init_frame_pc, deprecated_store_struct_return,
977 deprecated_extract_return_value, deprecated_store_return_value,
978 deprecated_frame_chain, deprecated_frame_saved_pc,
979 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
980 deprecated_register_virtual_size,
981 deprecated_max_register_raw_size,
982 deprecated_max_register_virtual_size,
983 deprecated_register_virtual_type, deprecated_register_size,
984 deprecated_register_byte, deprecated_register_bytes,
985 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
986 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
987 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
988 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
989 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
990 deprecated_push_dummy_frame, deprecated_pop_frame,
991 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
992 only if SYSCALL_TRAP is defined. Set extract_return_value,
993 store_return_value, extract_struct_value_address, register_type,
994 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
995 predicates.
996 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
997 M68K_MAX_REGISTER_SIZE): Define.
998 (struct m68k_sigtramp_info): Define.
999 (struct gdbarch_tdep): Add get_sigtramp_info.
1000 * m68klinux-nat.c (fetch_register): Use register_size instead of
1001 REGISTER_RAW_SIZE. Don't put assignment in if.
1002 (store_register): Likewise.
1003 (fetch_inferior_registers): Likewise.
1004 (store_inferior_registers): Likewise.
1005 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
1006 (m68k_linux_frame_saved_pc): Delete.
1007 (m68k_linux_sigcontext_reg_offset,
1008 m68k_linux_ucontext_reg_offset): Define.
1009 (m68k_linux_get_sigtramp_info): New function.
1010 (m68k_linux_extract_return_value): Rewrite using regcache.
1011 (m68k_linux_store_return_value): Likewise.
1012 (m68k_linux_extract_struct_value_address): Likewise.
1013 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
1014 Don't set deprecated_frame_saved_pc,
1015 deprecated_extract_return_value, deprecated_store_return_value,
1016 deprecated_extract_struct_value_address. Set
1017 extract_return_value, store_return_value,
1018 extract_struct_value_address.
1019
eb8bc282
AC
10202003-07-07 Andrew Cagney <cagney@redhat.com>
1021
1022 * expprint.c: Include "user-regs.h" instead of "frame.h".
1023 (print_subexp): Use user_reg_map_regnum_to_name, instead of
1024 frame_map_regnum_to_name.
1025 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
1026 (frame_map_name_to_regnum): Simplify, call
1027 user_reg_map_name_to_regnum.
1028 (frame_map_regnum_to_name): Simplify, call
1029 user_reg_map_regnum_to_name.
1030 (frame_register_unwind): Update.
1031 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
1032 (_initialize_frame_reg): Call user_reg_add_builtin.
1033 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
1034 (value_of_register): Use value_of_user_reg.
1035 * eval.c (evaluate_subexp_standard): Update.
1036 * parse.c (write_dollar_variable): Update.
1037 * d10v-tdep.c (d10v_print_registers_info): Update.
1038 * infcmd.c (registers_info): Update.
1039 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
1040 (builtin_regs_h): Delete macro.
1041 (user_regs_h): Define.
1042 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
1043 (builtin-regs.o): Delete target.
1044 (user-regs.o): Specify dependencies.
1045 (expprint.o): Update dependencies.
1046 (findvar.o): Update dependencies.
1047 (frame.o): Update dependencies.
1048 (std-regs.o): Update dependencies.
1049
9f476a01
CF
10502003-07-06 Christopher Faylor <cgf@redhat.com>
1051
1052 * win32-nat.c (solib_symbols_add): Use one variable for all section
1053 address stuff. Pass variable rather than address of variable to
1054 safe_symbol_file_add.
1055
a731b831
AS
10562003-07-06 Andreas Schwab <schwab@suse.de>
1057
1058 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
1059
9f83329d
JB
10602003-07-04 Joel Brobecker <brobecker@gnat.com>
1061
1062 * rs6000-nat.c (vmap_symtab): Fix compilation error.
1063
27e28cc5
KW
10642003-07-04 Kris Warkentin <kewarken@qnx.com>
1065
1066 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
1067
10682003-07-04 Kris Warkentin <kewarken@qnx.com>
1069
1070 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
1071 * config/i386/nto.mh: New file.
1072 * config/i386/nm-nto.h: New file.
1073 * configure.host: Add i[3456]86-*-nto*.
1074
100f2e98
JB
10752003-07-03 Joel Brobecker <brobecker@gnat.com>
1076
1077 * remote-vx.c (vx_add_symbols): Fix compilation error.
1078
e23457df
AC
10792003-07-03 Andrew Cagney <cagney@redhat.com>
1080
1081 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
1082 * gdbarch.h, gdbarch.c: Re-generate.
1083 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
1084 (legacy_register_name): Declare.
1085 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
1086 (REGISTER_NAME): Define.
1087 * sparc-tdep.c (legacy_register_name): New function.
1088 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
1089 (REGISTER_NAME): Define.
1090 (hppa64_register_name): Declare.
1091 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
1092 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
1093 (hppa64_register_name): New function.
1094 (hppa_register_name): New function.
1095 * arch-utils.c (legacy_register_name): Delete.
1096 * arch-utils.h (legacy_register_name): Delete.
1097
38caaeec
DJ
10982003-07-03 Daniel Jacobowitz <drow@mvista.com>
1099
1100 * cli/cli-interp.c (cli_interpreter_resume): Update the
1101 cli_uiout's stream to gdb_stdout.
1102
dadd712e
AC
11032003-07-03 Andrew Cagney <cagney@redhat.com>
1104
1105 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
1106 predicate.
1107 * gdbarch.h, gdbarch.c: Re-generate.
1108 * regcache.c (init_regcache_descr): Use legacy code when either
1109 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
1110
c7f1390e
DJ
11112003-07-02 Daniel Jacobowitz <drow@mvista.com>
1112
1113 * NEWS: Move "set logging" entry into GDB 6.0 section.
1114
4bc8c588
JB
11152003-07-02 Jim Blandy <jimb@redhat.com>
1116
a9dd42f1
JB
1117 * s390-tdep.c (struct frame_extra_info): new member:
1118 'stack_bought_valid'.
1119 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
1120 initialize fextra_info->stack_bought.
1121 (s390_frameless_function_invocation): Don't trust the value of
1122 fextra_info_ptr->stack_bought unless
1123 fextra_info->stack_bought_valid is set.
1124
4bc8c588
JB
1125 New S390 prologue analyzer.
1126 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
1127 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
1128 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
1129 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
1130 compute_x_addr, s390_on_stack, s390_store,
1131 s390_get_signal_frame_info): New functions.
1132 (S390_NUM_SPILL_SLOTS): New macro.
1133 (s390_get_frame_info): Rewritten.
1134 (is_arg_reg): Deleted.
1135
1136 Break out the decoding of S/390 instructions into separate
1137 functions, to make it more legible, and easier to check
1138 against the spec.
1139 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
1140 is_rx, is_rxe): New functions.
1141 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
1142 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
1143 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
1144 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
1145 enums for opcode values. (Is this an improvement?)
1146
fd13a04a
AC
11472003-07-02 Andrew Cagney <cagney@redhat.com>
1148
1149 * i386-tdep.c: Revert change committed as part of trad-frame code
1150 below.
1151
3f8091c1
DJ
11522003-07-02 Daniel Jacobowitz <drow@mvista.com>
1153
1154 * breakpoint.c (insert_catchpoint): Make static.
1155
8dd5115e
AS
11562003-07-02 Andreas Schwab <schwab@suse.de>
1157
1158 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
1159 former ia64_push_arguments and ia64_push_return_address, and use
1160 regcache functions instead of read/write_register.
1161 (ia64_gdbarch_init): Set push_dummy_call instead of
1162 deprecated_push_arguments and deprecated_push_return_address.
1163
a2229c23
AJ
11642003-07-01 Andreas Jaeger <aj@suse.de>
1165
1166 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
1167 before the call.
1168 Set %rax only to number of SSE registers used.
1169
3b3850e8
AC
11702003-07-01 Andrew Cagney <cagney@redhat.com>
1171
1172 * trad-frame.h: Update comments, a -1 .addr is reserved.
1173 (trad_frame_value_p, trad_frame_addr_p): Declare.
1174 (trad_frame_reg_p): Declare.
1175 (trad_frame_set_value): Rename trad_frame_register_value.
1176 (trad_frame_set_unknown): Declare.
1177 * trad-frame.c (trad_frame_realreg_p): New function.
1178 (trad_frame_addr_p, trad_frame_value_p): New function.
1179 (trad_frame_set_unknown): New function.
1180 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
1181 (trad_frame_prev_register): Use trad_frame_realreg_p,
1182 trad_frame_addr_p and trad_frame_value_p.
1183 (trad_frame_set_value): Rename trad_frame_register_value.
1184 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
1185 and trad_frame_set_value.
a2229c23 1186
4d819d0e
JB
11872003-06-30 Jim Blandy <jimb@redhat.com>
1188
1189 Patch from IBM (authors unspecified, probably Ulrich Weigand and
1190 Gerhard Tonn) for argument passing on the S/390 and S/390x:
1191 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
1192 for 16 registers, and then 32 more bytes.
1193 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
1194 New macros.
1195 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
1196 Move up in the file, since it's now used by is_simple_arg.
1197 (is_simple_arg): Don't assume registers are four bytes long.
1198 Exclude all double arguments. Extended floats are not simple
1199 args.
1200 (is_power_of_two): New function.
1201 (pass_by_copy_ref): Call is_power_of_two, and check that the
1202 length fits in a register, rather than listing all the acceptable
1203 sizes. Extended floats are not passed by reference.
1204 (s390_push_arguments): Don't assume registers are four bytes long.
1205 Reserve an argument register to point to the buffer for structures
1206 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
1207 S390_STACK_FRAME_OVERHEAD.
1208
1ad828f1
AS
12092003-06-30 Andreas Schwab <schwab@suse.de>
1210
1211 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
1212 format error message.
1213
39b00981
JB
12142003-06-30 Joel Brobecker <brobecker@gnat.com>
1215
1216 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
1217
b2a7f303
DC
12182003-06-30 David Carlton <carlton@kealia.com>
1219
1220 Band-aid for PR c++/1245.
1221 * Makefile.in (cp-support.o): Depend on complaints_h.
1222 * cp-support.c: Include complaints.h. Add declaration for
1223 find_last_component.
1224 (cp_find_first_component): Separate code into
1225 cp_find_first_component_aux.
1226 (cp_find_first_component_aux): Call demangled_name_complaint.
1227 (demangled_name_complaint): New.
1228
a257b5bb
AC
12292003-06-30 Andrew Cagney <cagney@redhat.com>
1230
1231 * remote.c (remote_write_bytes): Explicitly compute and then use
1232 the payload size. Update comments to reflect. Fixes problem of
1233 GDB not sending small packets as found by Fred Fish.
1234
0a2cfde4
AC
12352003-06-30 Andrew Cagney <cagney@redhat.com>
1236
1237 * remote.c (remote_async_wait): Fix -Wformat problem.
1238
3fcb8548
AC
12392003-06-29 Andrew Cagney <cagney@redhat.com>
1240
1241 * remote.c (remote_wait): Call error, and not warning, when the
1242 packet is corrupt.
1243 (remote_async_wait): Ditto.
1244
9f9970a3
DJ
12452003-06-29 Daniel Jacobowitz <drow@mvista.com>
1246
1247 * sparc-tdep.c (sparc_y_regnum): Make external again.
1248
83a8ccca
DJ
12492003-06-29 Daniel Jacobowitz <drow@mvista.com>
1250
1251 * cli/cli-logging.c (pop_output_files): Add void to function
1252 definition.
1253
d2cf594a
AC
12542003-06-29 Andrew Cagney <cagney@redhat.com>
1255
1256 * frame.c (frame_register_unwind): Use unsigned char when dumping
1257 the buffer contents.
1258
0fac0b41
DJ
12592003-06-28 Daniel Jacobowitz <drow@mvista.com>
1260
1261 * cli/cli-logging.c: New file.
1262 * cli-out.c (struct ui_out_data): Add original_stream.
1263 (cli_redirect): New function.
1264 (cli_ui_out_impl): Add cli_redirect.
1265 (cli_out_new): Initialize original_stream.
1266 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
1267 (uo_redirect, ui_out_redirect): New.
1268 * ui-out.h (struct ui_out_impl): Add redirect member.
1269 (redirect_ftype): New.
1270 (ui_out_redirect): Add prototype.
1271 * Makefile.in: Add rules for cli-logging.c.
1272 * NEWS: Mention "set logging".
1273
88a07d7c
EZ
12742003-06-27 Elena Zannoni <ezannoni@redhat.com>
1275
1276 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
1277
4eb58876
AC
12782003-06-27 Andrew Cagney <cagney@redhat.com>
1279
1280 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
1281 (m68hc11_gdbarch_init): Do not set call_dummy_address.
1282 * avr-tdep.c (avr_call_dummy_address): Delete function.
1283 (avr_gdbarch_init): Do not set call_dummy_address.
1284
1549f619
EZ
12852003-06-27 Elena Zannoni <ezannoni@redhat.com>
1286
1287 * symfile.c (syms_from_objfile): Move variables to inner block.
1288 Move the checks for the non-mainline case a bit earlier to avoid
1289 doing some useless computations.
1290
3cb3398d
EZ
12912003-06-27 Elena Zannoni <ezannoni@redhat.com>
1292
1293 * dwarfread.c (decode_modified_type): Gag new compiler warning.
1294
3799ccc6
EZ
12952003-06-26 Elena Zannoni <ezannoni@redhat.com>
1296
1297 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
1298 sections.
1299
ce1f6491
MC
13002003-06-26 Michael Chastain <mec@shout.net>
1301
1302 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
1303 gdb/testsuite/gdb.c++/pr-1210.exp.
1304
d958dfd0
AC
13052003-06-26 Andrew Cagney <cagney@redhat.com>
1306
1307 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
1308 altivec_expression.h and altivec_registers.h.
1309
d31431ed
AC
13102003-06-26 Andrew Cagney <cagney@redhat.com>
1311
1312 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
1313 info->mach when MIPS16. Patch suggested by Fred Fish.
1314
714b1282
AC
13152003-06-26 Andrew Cagney <cagney@redhat.com>
1316
1317 * utils.c (internal_vproblem): Print the problem to a reason
1318 buffer and then pass to query. Make the msg variable more local.
1319
42efa47a
AC
13202003-06-26 Andrew Cagney <cagney@redhat.com>
1321
1322 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
1323 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
1324 * gdbarch.h, gdbarch.c: Re-generate.
1325 * frame-base.c (default_frame_args_address): Update. Use
1326 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
1327 not available.
1328 (default_frame_locals_address): Ditto for
1329 DEPRECATED_FRAME_LOCALS_ADDRESS.
1330 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
1331 (vax_frame_num_args): Update.
1332 (vax_gdbarch_init): Update.
1333 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1334 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1335 * mcore-tdep.c (mcore_gdbarch_init): Update.
1336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1337 * ia64-tdep.c (ia64_gdbarch_init): Update.
1338 * symtab.h (address_class): Update comments.
1339 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
1340 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1341 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1342 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1343 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1344 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
1345 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
1346 * alpha-mdebug-tdep.c: Update.
1347 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
1348
8ffd9b1b
AJ
13492003-06-26 Andreas Jaeger <aj@suse.de>
1350
1351 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
1352 of SSE registers so that varargs functions work. Rework handling
1353 of passing arguments on the stack.
1354 (x86_64_store_return_value): Return double and float values in SSE
1355 register.
1356
e8ac10a6
MC
13572003-06-24 Michael Chastain <mec@shout.net>
1358
1359 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
1360 the "constructor breakpoints ignored" bug.
1361
986af8e6
DC
13622003-06-25 David Carlton <carlton@kealia.com>
1363
1364 * MAINTAINERS: Update e-mail address.
1365
d64558a5
JB
13662003-06-24 Jim Blandy <jimb@redhat.com>
1367
e538d2d7
JB
1368 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
1369
02631ec0
JB
1370 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
1371 function.
1372 (ppc_linux_init_abi): Register it as the
1373 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
1374
e716d87a
JB
1375 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
1376 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
1377 method.
1378
d64558a5
JB
1379 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
1380 (ppc64_standard_linkage_target): Use it.
1381
449a5da4
AC
13822003-06-23 Andrew Cagney <cagney@redhat.com>
1383
1384 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
1385 for 0 "int0" and 4 "int32" sized registers.
1386 * gdbtypes.c (builtin_type_int0): Define.
1387 (build_gdbtypes): Initialize builtin_type_int0.
1388 * gdbtypes.h (builtin_type_int0): Declare.
1389
b2a02dda
SC
13902003-06-23 Stephane Carrez <stcarrez@nerim.fr>
1391
1392 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
1393 as characters are unsigned.
1394
fba3138e
DJ
13952003-06-22 Daniel Jacobowitz <drow@mvista.com>
1396
1397 PR gdb/1179
1398 * dwarfread.c (struct_type): Skip static fields without crashing.
1399
f6c8180b
AC
14002003-06-22 Andrew Cagney <cagney@redhat.com>
1401
1402 GDB 6.0 branch created.
f2c06f52
AC
1403 * README: Update.
1404 * PROBLEMS: Update. Empty.
1405 * NEWS: Update.
f6c8180b 1406
ae822768
DJ
14072003-06-22 Daniel Jacobowitz <drow@mvista.com>
1408
1409 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
1410 Suggested by Nick Hibma <n_hibma@webweaving.org>.
1411
261de166
AC
14122003-06-22 Andrew Cagney <cagney@redhat.com>
1413
1414 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
1415 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
1416 Velikov.
1417
30e94205
DJ
14182003-06-22 Daniel Jacobowitz <drow@mvista.com>
1419
1420 * cli/cli-cmds.c (shell_escape): Silence warnings from old
1421 compilers.
1422
9e14d721
DJ
14232003-06-21 Daniel Jacobowitz <drow@mvista.com>
1424
1425 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
1426 argument of val_print.
1427 * cp-valprint.c (cp_print_value): Don't add the offset parameter
1428 to the address argument of baseclass_offset or target_read_memory.
1429 Do add it to the argument of cp_print_value_fields.
1430
a4b8ebc8
AC
14312003-06-21 Andrew Cagney <cagney@redhat.com>
1432
1433 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
1434 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
1435 instead of 0..NUM_REGS.
1436 (mips_register_reggroup_p): New function.
1437 (mips_pseudo_register_write): New function.
1438 (mips_pseudo_register_read): New function.
1439 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
1440 based on the register's type.
1441 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
1442 cooked.
1443 (mips_get_saved_register): Simplify. Assert that REGNO is a
1444 pseudo / cooked.
1445 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
1446 (mips_register_type): Replace mips_register_virtual_type. Map
1447 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
1448 when available.
1449 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
1450 that the register is cooked / virtual.
1451 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
1452 Only get the extra info when needed.
1453 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
1454 (mips32_heuristic_proc_desc): Fetch the cooked register.
1455 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
1456 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
1457 (mips_print_register): Use gdbarch_register_type, instead of
1458 REGISTER_VIRTUAL_TYPE.
1459 (print_gp_register_row): Use gdbarch_register_type, instead of
1460 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
1461 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1462 Print the pseudo / cooked registers.
1463 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
1464 Print the pseudo / cooked registers.
1465 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
1466 REG_NUM is pseudo / cooked.
1467 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
1468 (mips_n32n64_xfer_return_value): Ditto.
1469 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
1470 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
1471 (mips_register_sim_regno): New function.
1472 (mips_gdbarch_init): Set deprecated_register_byte,
1473 register_group_p, pseudo_register_write, pseudo_register_read,
1474 register_sim_regno, and num_pseudo_regs. Set register_type,
1475 instead of register_virtual_type.
1476 * Makefile.in (mips-tdep.o): Update dependencies.
1477 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
1478 REGISTER_VIRTUAL_TYPE.
1479 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
1480 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
1481 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
1482 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
1483 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
1484
325ed089
DJ
14852003-06-21 Daniel Jacobowitz <drow@mvista.com>
1486
1487 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
1488 * cli/cli-cmds.c: Include "gdb_vfork.h".
1489 (shell_escape): Use vfork.
1490
f0e7d0e8
AC
14912003-06-21 Andrew Cagney <cagney@redhat.com>
1492
c57bb9fa
AC
1493 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
1494 32 bit floating-point register saves.
1495
6e51443a
AC
1496 * frame.h (deprecated_unwind_get_saved_register): Delete.
1497 * frame.c (deprecated_unwind_get_saved_register): Delete function.
1498 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
1499 and deprecated_get_next_frame_hack instead of
1500 deprecated_unwind_get_saved_register.
1501
ed183c7c
AC
1502 * mips-tdep.c (mips_dump_tdep): Do not print
1503 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
1504
f0e7d0e8
AC
1505 * frame.c (get_frame_register): New function.
1506 (frame_unwind_register_signed): New function.
1507 (get_frame_register_signed): New function.
1508 (frame_unwind_register_unsigned): New function.
1509 (get_frame_register_unsigned): New function.
1510 * frame.h: Add comments on naming schema.
1511 (get_frame_register, frame_unwind_register_signed): Declare.
1512 (get_frame_register_signed, get_frame_register_signed): Declare.
1513 (frame_unwind_register_unsigned): Declare.
1514 (get_frame_register_unsigned): Declare.
1515
2224d941
TR
15162003-06-20 Theodore A. Roth <troth@openavr.org>
1517
1518 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
1519
8619218d
TR
15202003-06-20 Theodore A. Roth <troth@openavr.org>
1521
1522 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
1523 (avr_read_sp): Ditto.
1524
0b1b50c0
DJ
15252003-06-20 Daniel Jacobowitz <drow@mvista.com>
1526
1527 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
1528 * config/arm/nm-linux.h: Likewise.
1529 * config/arm/tm-linux.h: Likewise.
1530 * config/ia64/nm-linux.h: Likewise.
1531 * config/ia64/tm-ia64.h: Likewise.
1532 * config/s390/tm-linux.h: Likewise.
1533 * config/s390/tm-s390.h: Likewise.
1534 * s390-nat.c: Likewise.
1535 * s390-tdep.c: Likewise.
1536
1537 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
1538 * config/ia64/linux.mt: Likewise.
1539 * config/m68k/linux.mh: Likewise.
1540 * config/mips/linux.mt: Likewise.
1541 * config/powerpc/linux.mh: Likewise.
1542 * config/sh/linux.mt: Likewise.
1543
c8c18e65
KW
15442003-06-19 Kris Warkentin <kewarken@qnx.com>
1545
1546 * solib.c (solib_open): Change tests for whether to search
1547 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
1548 comments.
1549
dcccef2e
TR
15502003-06-19 Theodore A. Roth <troth@openavr.org>
1551
1552 * avr-tdep.c (avr_frame_address): Delete function.
1553 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
1554 set_gdbarch_frame_args_address.
1555
5861a190
AC
15562003-06-19 Andrew Cagney <cagney@redhat.com>
1557
1558 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
1559 (REGISTER_CONVERT_FROM_TYPE): Delete.
1560 (mips_register_convert_to_type): Delete declaration.
1561 (mips_register_convert_from_type): Delete declaration.
1562 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
1563 kernel/.
1564
0274a8ce
MS
15652003-06-19 Michael Snyder <msnyder@redhat.com>
1566
1567 * linux-nat.h: New file.
1568 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 1569 * lin-lwp.c: Include linux-nat.h.
0274a8ce 1570 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 1571 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
1572 (linux_make_note_section): Iterate over lwps instead of threads.
1573 (linux_do_thread_registers): Use lwp instead of merged pid.
1574 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 1575 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
1576 Add dependency on linux_nat_h.
1577
adf5f719
TR
15782003-06-19 Theodore A. Roth <troth@openavr.org>
1579
1580 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
1581
6766a268
DJ
15822003-06-19 Daniel Jacobowitz <drow@mvista.com>
1583
1584 * varobj.c (get_type, get_target_type): Use check_typedef.
1585
1171114a
DJ
15862003-06-19 Daniel Jacobowitz <drow@mvista.com>
1587
1588 * breakpoint.c (insert_catchpoint): Call internal_error.
1589
adcf68a2
TR
15902003-06-19 Theodore A. Roth <troth@openavr.org>
1591
1592 * avr-tdep.c (avr_push_dummy_code): Delete function.
1593 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
1594
ea67f13b
DJ
15952003-06-19 Daniel Jacobowitz <drow@mvista.com>
1596
1597 * arch-utils.c (default_prepare_to_proceed): Remove.
1598 (generic_prepare_to_proceed): Remove.
1599 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
1600 (generic_prepare_to_proceed): Remove prototype.
1601 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
1602 * gdbarch.c: Regenerate.
1603 * gdbarch.h: Regenerate.
1604 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
1605 * hppah-nat.c (hppa_switched_threads): Remove.
1606 * infrun.c (prepare_to_proceed): New static function, copied from
1607 generic_prepare_to_proceed. Remove select_it argument.
1608 (proceed): Call prepare_to_proceed.
1609 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
1610 variables.
1611 (ptrace_wait): Don't set the removed variables.
1612 (hppa_switched_threads): Remove.
1613 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
1614 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
1615 (lin_lwp_prepare_to_proceed): Remove prototype.
1616 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
1617 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
1618
4add8633
TR
16192003-06-18 Theodore A. Roth <troth@openavr.org>
1620
1621 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
1622 trad-frame.h.
1623 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
1624 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
1625 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
1626 (AVR_PROLOGUE_*): Enumerate prologue types.
1627 (struct frame_extra_info): Remove.
1628 (struct avr_unwind_cache): Define.
1629 (avr_write_sp): Delete function.
1630 (avr_read_fp): Ditto.
1631 (avr_init_extra_frame_info): Ditto.
1632 (avr_pop_frame): Ditto.
1633 (avr_frame_saved_pc): Ditto.
1634 (avr_saved_pc_after_call): Ditto.
1635 (avr_push_return_address): Ditto.
1636 (avr_frame_chain): Ditto.
1637 (avr_store_struct_return): Ditto.
1638 (avr_push_arguments): Ditto.
1639 (avr_scan_prologue): Update comments. Changed to set up the info for
1640 cache unwinding. Now returns end of prologue PC.
1641 (avr_skip_prologue): Better handling of functions lacking a prologue
1642 by using avr_scan_prologue.
1643 (avr_scan_arg_moves): New function.
1644 (avr_saved_regs_unwinder): Ditto.
1645 (avr_frame_unwind_cache): Ditto.
1646 (avr_unwind_pc): Ditto.
1647 (avr_frame_this_id): Ditto.
1648 (avr_frame_prev_register): Ditto.
1649 (avr_frame_p): Ditto.
1650 (avr_frame_base_address ): Ditto.
1651 (avr_unwind_dummy_id): Ditto.
1652 (avr_push_dummy_code): Ditto.
1653 (push_stack_item): Ditto.
1654 (pop_stack_item): Ditto.
1655 (avr_push_dummy_call): Ditto.
1656 (struct stack_item): Define.
1657 (avr_frame_unwind): Declare structure.
1658 (avr_frame_base): Ditto.
1659 (avr_gdbarch_init): Remove calls to
1660 set_gdbarch_deprecated_init_frame_pc,
1661 set_gdbarch_deprecated_target_read_fp,
1662 set_gdbarch_deprecated_dummy_write_sp,
1663 set_gdbarch_deprecated_fp_regnum,
1664 set_gdbarch_deprecated_push_arguments,
1665 set_gdbarch_deprecated_push_return_address,
1666 set_gdbarch_deprecated_pop_frame,
1667 set_gdbarch_deprecated_store_struct_return,
1668 set_gdbarch_deprecated_frame_init_saved_regs,
1669 set_gdbarch_deprecated_init_extra_frame_info,
1670 set_gdbarch_deprecated_frame_chain,
1671 set_gdbarch_deprecated_frame_saved_pc,
1672 set_gdbarch_deprecated_saved_pc_after_call.
1673 Add calls to set_gdbarch_push_dummy_call,
1674 set_gdbarch_push_dummy_code,
1675 frame_unwind_append_predicate,
1676 frame_base_set_default,
1677 set_gdbarch_unwind_dummy_id,
1678 set_gdbarch_unwind_pc.
1679 Wrap a long line.
1680
7be04a68
MS
16812003-06-18 Corinna Vinschen <vinschen@redhat.com>
1682
1683 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
1684 registers for H8/300S.
1685 (h8300_print_registers_info): Ditto.
8ffd9b1b 1686 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 1687
ae087d01
DJ
16882003-06-18 Daniel Jacobowitz <drow@mvista.com>
1689
1690 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
1691 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
1692 (lin_lwp_wait): Likewise. Update comments.
1693 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
1694 (pull_pid_from_list, linux_record_stopped_pid): New.
1695
07d8f827
SC
16962003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1697
1698 * ada-lang.c (scan_discrim_bound): Name first argument.
1699 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
1700 declared by ALL_BLOCK_SYMBOLS.
1701
7cb47b14
SC
17022003-06-17 Stephane Carrez <stcarrez@nerim.fr>
1703
1704 * ada-tasks.c (find_function_in_inferior): Don't declare it.
1705 ("regcache.h"): Include it.
1706 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
1707
6ad8ae5c
DJ
17082003-06-17 Daniel Jacobowitz <drow@mvista.com>
1709
1710 * NEWS: Mention gdbserver detach change and "disconnect" command.
1711 * infcmd.c (disconnect_command): New function.
1712 (_initialize_infcmd): Add ``disconnect'' command.
1713 * remote.c (remote_async_detach): Delete.
1714 (remote_detach): Merge remote_async_detach.
1715 (remote_disconnect): New.
1716 (init_remote_ops): Set to_disconnect.
1717 (init_remote_cisco_ops): Likewise.
1718 (init_remote_async_ops): Likewise. Use remote_detach.
1719 * target.c (cleanup_target): Default to_disconnect.
1720 (update_current_target): Inherit to_disconnect.
1721 (target_disconnect, debug_to_disconnect): New functions.
1722 (setup_target_debug): Set to_disconnect.
1723 * target.h (struct target_ops): Add to_disconnect.
1724 (target_disconnect): Add prototype.
1725
687595f9
DJ
17262003-06-17 Daniel Jacobowitz <drow@mvista.com>
1727
1728 * breakpoint.c (insert_catchpoint): New function.
1729 (insert_breakpoints): Use catch_exceptions to call
1730 insert_catchpoint. Disable catchpoints if they fail to insert.
1731
29239a8f
DJ
17322003-06-17 Daniel Jacobowitz <drow@mvista.com>
1733
1734 * symfile.c (reread_symbols): Clear sym_private.
1735
2cdf3c63
AC
17362003-06-17 Andrew Cagney <cagney@redhat.com>
1737
1738 * trad-frame.h (struct frame_info): Add opaque declaration.
1739 * remote-fileio.h (struct cmd_list_element): Add opaque
1740 declaration.
1741 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
1742 comments.
1743
cf0e1e0d
DJ
17442003-06-17 Daniel Jacobowitz <drow@mvista.com>
1745
1746 * remote.c (remote_prepare_to_store): Replace call to
1747 deprecated_read_register_bytes with multiple regcache_raw_read
1748 calls.
1749
192cdb19
KW
17502003-06-17 Kris Warkentin <kewarken@qnx.com>
1751
1752 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
1753 (nto_find_and_open_solib): Likewise.
1754 (nto_init_solib_absolute_prefix): Likewise.
1755 (_initialize_nto_tdep): Fix indentation.
1756
89929b45
KW
17572003-06-17 Kris Warkentin <kewarken@qnx.com>
1758
1759 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
1760
46019f27
KW
17612003-06-17 Kris Warkentin <kewarken@qnx.com>
1762
1763 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
1764
1a38736e
JB
17652003-06-17 Jim Blandy <jimb@redhat.com>
1766
1767 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
1768
3605c34a
TR
17692003-06-16 Theodore A. Roth <troth@openavr.org>
1770
1771 * avr-tdep.c (avr_extract_return_value): New function.
1772 (avr_gdbarch_init): Set extract_return_value method.
1773
870b3035
AC
17742003-06-16 Andrew Cagney <cagney@redhat.com>
1775
1776 * frame.h (deprecated_get_next_frame_hack): Declare.
1777 * frame.c (legacy_saved_regs_prev_register): Only require
1778 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
1779 there are always saved regs.
1780 (deprecated_generic_get_saved_register): Do not require
1781 DEPRECATED_FRAME_INIT_SAVED_REGS.
1782 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
1783 use frame ID unwind instead.
1784 (deprecated_get_next_frame_hack): New function.
1785
63d47a7d
CV
17862003-06-16 Corinna Vinschen <vinschen@redhat.com>
1787
1788 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
1789 (h8300_push_dummy_call): ...this function. Some minor optimization.
1790 (h8300_push_return_address): Remove.
1791 (h8300_gdbarch_init): Remove calls to
1792 set_gdbarch_deprecated_dummy_write_sp,
1793 set_gdbarch_deprecated_push_arguments and
1794 set_gdbarch_deprecated_push_return_address.
1795 Add call to set_gdbarch_push_dummy_call.
1796
4bb1dc5e
CV
17972003-06-16 Corinna Vinschen <vinschen@redhat.com>
1798
1799 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
1800 (E_PSEUDO_EXR_REGNUM): Ditto.
1801 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 1802 registers into safe registers.
4bb1dc5e
CV
1803 (h8300_skip_prologue): Check for stm instruction to push registers
1804 used for register variables onto stack.
1805 (gdb_print_insn_h8300): Remove.
1806 (h8300_examine_prologue): Add a comment.
1807 (h8300_register_name): Take pseudo registers into account.
1808 (h8300s_register_name): Ditto.
1809 (h8300sx_register_name): Ditto.
1810 (h8300_print_register): Ditto.
1811 (h8300_print_registers_info): Define "nice" printing order.
1812 (h8300_saved_pc_after_call): Take pseudo registers into account.
1813 (h8300_register_type): Ditto. Return type used for remote connection
1814 when requesting real CCR or EXR register, return actual type when
1815 requesting pseudo CCR or EXR.
1816 (h8300_pseudo_register_read): New function.
1817 (h8300_pseudo_register_write): Ditto.
1818 (h8300_dbg_reg_to_regnum): Ditto.
1819 (h8300s_dbg_reg_to_regnum): Ditto.
1820 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
1821 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
1822 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
1823 set_gdbarch_print_insn architecture dependent.
1824 Call set_gdbarch_pseudo_register_read and
1825 set_gdbarch_pseudo_register_write.
1826 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
1827
a59fe496
AC
18282003-06-16 Andrew Cagney <cagney@redhat.com>
1829
1830 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
1831 * gdbarch.h, gdbarch.c: Re-generate.
1832 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1833 * s390-tdep.c (s390_gdbarch_init): Update.
1834 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1835 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1836 * mips-tdep.c (mips_gdbarch_init): Update.
1837 * mcore-tdep.c (mcore_gdbarch_init): Update.
1838 * cris-tdep.c (cris_gdbarch_init): Update.
1839 * infcall.c (call_function_by_hand): Update.
1840 * ia64-tdep.c (ia64_push_arguments): Update comment.
1841 * frame.c (legacy_get_prev_frame): Do not assume
1842 SAVE_DUMMY_FRAME_TOS_P.
1843 * dummy-frame.c (find_dummy_frame): Update comment.
1844
6f4e5a41
AC
18452003-06-16 Andrew Cagney <cagney@redhat.com>
1846
1847 * regcache.c (do_cooked_read): Do not use register_valid_p.
1848
72fab697
TR
18492003-06-15 Theodore A. Roth <troth@openavr.org>
1850
1851 * avr-tdep.c (avr_register_type): Remove a blank line.
1852 (avr_scan_prologue): Correct some comments.
1853
e3d8b004
TR
18542003-06-15 Theodore A. Roth <troth@openavr.org>
1855
1856 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
1857 prologue types.
8ffd9b1b 1858 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
1859 option.
1860 Add code to scan -mcall-prologues for mega devices.
1861
866b76ea
TR
18622003-06-15 Theodore A. Roth <troth@openavr.org>
1863
1864 * avr-tdep.c (avr_register_byte): Delete function.
1865 (avr_register_raw_size): Delete function.
1866 (avr_register_virtual_size): Delete function.
1867 (avr_register_virtual_type): Delete function.
1868 (avr_register_type): New function.
1869 (avr_address_to_pointer): Remove unused code.
1870 (avr_read_fp): Need to read FP as two separate bytes due to change to
1871 avr_register_type() usage.
1872 (avr_gdbarch_init): Don't set deprecated_register_size.
1873 Don't set deprecated_register_bytes.
1874 Don't set deprecated_register_byte.
1875 Don't set deprecated_register_raw_size.
1876 Don't set deprecated_max_register_raw_size.
1877 Don't set deprecated_register_virtual_size.
1878 Don't set deprecated_max_register_virtual_size.
1879 Don't set deprecated_register_virtual_type.
1880 Set register_type method.
1881
3993f6b1
DJ
18822003-06-15 Daniel Jacobowitz <drow@mvista.com>
1883
1884 * Makefile.in (linux-nat.o): Add rule.
1885 * linux-nat.c: New file.
1886 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
1887 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
1888 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
1889 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
1890 * config/arm/linux.mh (NATDEPFILES): Likewise.
1891 * config/i386/linux.mh (NATDEPFILES): Likewise.
1892 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
1893 * config/ia64/linux.mh (NATDEPFILES): Likewise.
1894 * config/m68k/linux.mh (NATDEPFILES): Likewise.
1895 * config/mips/linux.mh (NATDEPFILES): Likewise.
1896 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
1897 * config/s390/s390.mh (NATDEPFILES): Likewise.
1898 * config/sparc/linux.mh (NATDEPFILES): Likewise.
1899
786a90bb
MK
19002003-06-15 Mark Kettenis <kettenis@gnu.org>
1901
1902 * i387-tdep.c: Reorder includes, fix some whitespace issues and
1903 replace out-of-date comment.
1904
3bd3f01e
AC
19052003-06-15 Andrew Cagney <cagney@redhat.com>
1906
1907 * rdi-share/host.h (Fail): Change to a varargs function.
1908 * remote-rdi.c (Fail): Update.
8ffd9b1b 1909
de5b9bb9
MK
19102003-06-15 Mark Kettenis <kettenis@gnu.org>
1911
1912 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
1913 (i386_convert_register_p, i386_register_to_value,
1914 i386_register_from_value): Handle types longer than 8 bytes.
1915
d532c08f
MK
19162003-06-15 Mark Kettenis <kettenis@gnu.org>
1917
1918 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
1919 Move floating-point code to new function in i387-tdep.c.
1920 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
1921 New functions containing code moved here from i386-tdep.c.
1922 * i387-tdep.h: Add opaque declaration for `struct type'.
1923 (i387_register_to_value, i387_value_to_register): New prototypes.
1924 * x86-64-tdep.c (x86_64_convert_register_p): New function.
1925 (x86_64_init_abi): Set convert_register_p, register_to_value and
1926 value_to_register here.
8ffd9b1b 1927
42c466d7
AC
19282003-06-14 Andrew Cagney <cagney@redhat.com>
1929
1930 * mips-tdep.c (mips_register_to_value): Make static.
1931 (mips_value_to_register): Make static.
1932 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
1933 * ia64-tdep.c (ia64_register_raw_size): Make static.
1934 (ia64_register_virtual_size): Make static.
1935 (ia64_register_byte): Make static.
1936 * i387-tdep.c: Include "i387-tdep.h".
1937 (print_387_control_word): Delete function.
1938 (print_387_status_word): Delete function.
1939 (print_387_status_bits): Delete function.
1940 (print_387_control_bits): Delete function.
1941 * Makefile.in (i387-tdep.o): Update dependencies.
1942 * rdi-share/host.h (Fail): Declare.
1943 * remote-rdi.c (Fail): Update to match declaration.
1944
2a9cda49
AC
19452003-06-14 Andrew Cagney <cagney@redhat.com>
1946
1947 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
1948 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
1949 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
1950 * config/djgpp/fnchange.lst: Delete "remote-array.c".
1951 * README: Delete reference to remote-array.
1952 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
1953 (remote-array.o): Delete target.
1954 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
1955 * remote-array.c: Delete file.
1956
ff2e87ac
AC
19572003-06-14 Andrew Cagney <cagney@redhat.com>
1958 Mark Kettenis <kettenis@gnu.org>
1959
1960 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
1961 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
1962 parameter with "frame".
1963 * gdbarch.h, gdbarch.c: Re-generate.
1964 * frame.h (put_frame_register): Declare.
1965 * frame.c (put_frame_register): New function.
1966 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
1967 (legacy_register_to_value): Rewrite, use "frame" to get the
1968 register value.
1969 (legacy_value_to_register): Rewrite, use "frame" to find the
1970 register's location before storing.
1971 * arch-utils.h (legacy_convert_register_p): Update.
1972 (legacy_register_to_value, legacy_value_to_register): Update.
1973 * findvar.c (value_from_register): Rewrite, eliminate use of
1974 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
1975 "frame" to REGISTER_TO_VALUE.
1976 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
1977 lval_reg_frame_relative + lval_register branch of the switch. Do
1978 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
1979 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1980 I386_EDI_REGNUM): New defines.
1981 (i386_next_regnum, i386_convert_register_p,
1982 i386_register_to_value, i386_value_to_register): New functions.
1983 (i386_register_convertible, i386_register_convert_to_virtual,
1984 i386_convert_to_raw): Remove functions.
1985 (i386_gdbarch_init): Set convert_register_p, register_to_value and
1986 value_to_register instead of register_convertible,
1987 register_convert_to_virtual and register_convert_to_raw.
1988 * mips-tdep.c (mips_convert_register_p): New function.
1989 (mips_value_to_register): Replace mips_register_convert_from_type.
1990 (mips_register_to_value): Replace mips_register_convert_to_type.
1991 (mips_gdbarch_init): Set conver_register_p, value_to_register and
1992 register_to_value.
1993 * alpha-tdep.c (alpha_convert_register_p): Update.
1994 (alpha_value_to_register): Update, store the register.
1995 (alpha_register_to_value): Update, fetch the register.
1996
98be1e77
TR
19972003-06-14 Theodore A. Roth <troth@openavr.org>
1998
1999 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
2000 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
2001 Don't set deprecated_call_dummy_words.
2002 Remove commented out set_gdbarch_believe_pcc_promotion() call.
2003 Don't set remote_translate_xfer_address.
2004 (avr_io_reg_read_command): Remove commented out debug printf.
2005 Wrap a long line.
2006
57bc6122
TR
20072003-06-14 Theodore A. Roth <troth@openavr.org>
2008
2009 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
2010 causes gdb to seg fault.
2011
eb01fc62
DJ
20122003-06-14 Daniel Jacobowitz <drow@mvista.com>
2013
2014 * sparc-nat.c (fetch_inferior_registers): Correct
2015 a reference to "registers".
2016
3b3e6bee
DJ
20172003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
2018
2019 * Makefile.in (exc_request_U_h): Define
2020 (exc_request_S_h): Likewise.
2021 (msg_reply_S_h): Likewise.
2022 (msg_U_h): Likewise.
2023 (notify_S_h): Likewise.
2024 (process_reply_S_h): Likewise.
2025 (gnu-nat.o): Depend on gdb_obstack_h
2026 * gnu-nat.c: Include "gdb_obstack.h".
2027
b8de8283
AC
20282003-06-13 Andrew Cagney <cagney@redhat.com>
2029
2030 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
2031 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 2032
f3be58bc
AC
20332003-06-13 Andrew Cagney <cagney@redhat.com>
2034
2035 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
2036 when deprecated REGISTER macros can be deleted.
2037 * gdbarch.h, gdbarch.c: Re-generate.
2038
4c0122c8
JB
20392003-06-13 Jim Blandy <jimb@redhat.com>
2040
2041 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
2042 Linux entry point symbols for _dl_debug_state, too.
2043
3e210248
AC
20442003-06-13 Andrew Cagney <cagney@redhat.com>
2045
2046 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
2047 available, do not use the FP register, and always save the TOS.
2048 * dummy-frame.c (dummy_frame_this_id): Do not assert
2049 SAVE_DUMMY_FRAME_TOS.
2050 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
2051 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
2052 (i386_push_dummy_call): Add 8 to the returned SP.
2053 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
2054 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
2055 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
2056 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
2057 (x86_64_push_dummy_call): Return "sp + 16".
2058 (x86_64_init_abi): Do not set save_dummy_frame_tos.
2059 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2060 save_dummy_frame_tos.
2061
0b65af49
JB
20622003-06-13 Jim Blandy <jimb@redhat.com>
2063
2064 * frv-tdep.c (frv_use_struct_convention): Delete static
2065 declaration for function deleted in my change of 2003-06-12.
2066
4ea2465e
TR
20672003-06-13 Theodore A. Roth <troth@openavr.org>
2068
2069 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
2070 (avr_pointer_to_address): Shift code addrs left 1 bit.
2071 (avr_convert_from_func_ptr_addr): Delete function since operation is
2072 better handled by avr_address_to_pointer and avr_pointer_to_address.
2073 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
2074
1581182a
MK
20752003-06-13 Mark Kettenis <kettenis@gnu.org>
2076
2077 From Kelley Cook <kelleycook@wideopenwest.com>:
2078 * configure.host: Accept i[34567]86 variants.
2079 * configure.tgt: Likewise.
2080 * nlm/configure.in: Likewise.
2081 * nlm/configure: Regenerated.
2082
7aa1783e
RE
20832003-06-13 Richard Earnshaw <rearnsha@arm.com>
2084
2085 * arm-tdep.c (solib-svr4.h): Dont' include it.
2086 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
2087 * arm-linux-tdep.c: ... here. Make static.
2088 (arm_linux_init_abi): Register it.
2089 (solib-svr4.h): Include it.
2090 * Makefile.in: Update dependencies.
2091 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
2092 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
2093
0261a0d0
CV
20942003-06-13 Corinna Vinschen <vinschen@redhat.com>
2095
2096 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
2097 indicate registers used for return values.
2098 (struct frame_extra_info): Drop args_pointer and locals_pointer.
2099 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
2100 members.
2101 (h8300_init_extra_frame_info): Ditto.
2102 (h8300_frame_locals_address): Removed.
2103 (h8300_frame_args_address): Removed.
2104 (h8300_extract_return_value): Use new regcache structure. Only care
2105 for 16 bit CPUs.
2106 (h8300h_extract_return_value): Same function for 32 bit CPUs.
2107 (h8300_store_return_value): Use new regcache structure. Only care
2108 for 16 bit CPUs.
2109 (h8300h_store_return_value): Same function for 32 bit CPUs.
2110 (h8300_store_struct_return): Removed.
2111 (h8300_extract_struct_value_address): Use new regcache structure.
2112 (h8300h_extract_struct_value_address): Removed.
2113 (h8300_push_dummy_code): New function.
2114 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
2115 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
2116 set_gdbarch_store_return_value architecture dependent.
2117 Call set_gdbarch_push_dummy_code and
2118 set_gdbarch_extract_struct_value_address.
2119 Remove calls to set_gdbarch_frame_args_address,
2120 set_gdbarch_frame_locals_address,
2121 set_gdbarch_deprecated_store_struct_return,
2122 set_gdbarch_deprecated_extract_return_value,
2123 set_gdbarch_deprecated_extract_struct_value_address,
2124 set_gdbarch_deprecated_call_dummy_words and
2125 set_gdbarch_deprecated_sizeof_call_dummy_words.
2126
055c394a
CV
21272003-06-13 Corinna Vinschen <vinschen@redhat.com>
2128
2129 * h8300-tdep.c (h8300_register_byte): Remove.
2130 (h8300h_register_byte): Remove.
2131 (h8300_register_virtual_type): Remove. Substitute by...
2132 (h8300_register_type): New function.
2133 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
2134 (h8300h_extract_struct_value_address): Ditto.
2135 (h8300_gdbarch_init): Drop calls to
2136 set_gdbarch_deprecated_register_byte and
2137 set_gdbarch_deprecated_register_virtual_type.
2138 Add call to set_gdbarch_register_type.
2139
9c04cab7
AC
21402003-06-13 Andrew Cagney <cagney@redhat.com>
2141
2142 * gdbarch.sh: Update comments on registers.
2143 (deprecated_register_byte): Rename register_byte.
2144 (deprecated_register_raw_size): Rename register_raw_size.
2145 (deprecated_register_virtual_size): Rename register_virtual_size.
2146 (deprecated_register_virtual_type): Rename register_virtual_type.
2147 * gdbarch.h, gdbarch.c: Re-generate.
2148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2149 * vax-tdep.c (vax_gdbarch_init): Update.
2150 * v850-tdep.c (v850_gdbarch_init): Update.
2151 * sparc-tdep.c (sparc_gdbarch_init): Update.
2152 * sh-tdep.c (sh_gdbarch_init): Update.
2153 * s390-tdep.c (s390_gdbarch_init): Update.
2154 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2155 * ns32k-tdep.c: Update.
2156 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2157 * mips-tdep.c (mips_gdbarch_init): Update.
2158 * mcore-tdep.c (mcore_gdbarch_init): Update.
2159 * m68k-tdep.c (m68k_gdbarch_init): Update.
2160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2161 * ia64-tdep.c (ia64_gdbarch_init): Update.
2162 * hppa-tdep.c (hppa_gdbarch_init): Update.
2163 * h8300-tdep.c (h8300_gdbarch_init): Update.
2164 * frv-tdep.c (frv_gdbarch_init): Update.
2165 * cris-tdep.c (cris_gdbarch_init): Update.
2166 * avr-tdep.c (avr_gdbarch_init): Update.
2167 * alpha-tdep.c (alpha_gdbarch_init): Update.
2168 * arm-tdep.c (arm_gdbarch_init): Update.
2169
b060cbea
AC
21702003-06-13 Andrew Cagney <cagney@redhat.com>
2171
2172 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
2173 mips_o32_use_struct_convention with always_use_struct_convention.
2174
0fc9922a
DC
21752003-06-12 David Carlton <carlton@kealia.com>
2176
2177 * cp-namespace.c (cp_set_block_scope): Comment out
2178 processing_has_namespace_info branch.
2179
1fd35568
JB
21802003-06-12 Jim Blandy <jimb@redhat.com>
2181
f470a70a
JB
2182 Recognize and skip 64-bit PowerPC Linux linkage functions.
2183 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
2184 insn_pattern, insns_match_pattern, d_field, ds_field): New
2185 functions, macros, and types for working with PPC instructions.
2186 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
2187 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
2188 ppc64_skip_trampoline_code): New functions, variables, and macros
2189 for recognizing and skipping linkage functions.
2190 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
2191 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
2192
49ff75ad
JB
2193 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
2194 register offsets for both the 32- and 64-bit interfaces.
2195
bd918c83
JB
2196 Actually finish the job started by my change of 2003-05-29.
2197 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
2198 other #definition of this.
2199 (ppc_linux_skip_trampoline_code): Remove declaration.
2200 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
2201 static.
2202 (ppc_linux_init_abi): Register it as the skip_trampoline_code
2203 method for GDBARCH.
2204
2205 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
2206 'long' on ppc64-*-linux*.
2207
f8c59253
JB
2208 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
2209 isn't #defined, assume the register doesn't exist: act as if
2210 tdep->ppc_mq_regnum were -1.
2211
8fbb30b1
JB
2212 * configure.host, configure.tgt: Add entries for
2213 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
2214 powerpc/linux.mt.
2215 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
2216 New files.
2217
1fd35568
JB
2218 * arch-utils.c (always_use_struct_convention): New function.
2219 * arch-utils.h (always_use_struct_convention): New prototype.
2220 * alpha-tdep.c (alpha_use_struct_convention): Delete.
2221 (alpha_gdbarch_init): Register always_use_struct_convention,
2222 instead of alpha_use_struct_convention.
2223 * cris-tdep.c (cris_use_struct_convention): Delete.
2224 (cris_gdbarch_init): Register always_use_struct_convention,
2225 instead of cris_use_struct_convention.
2226 * frv-tdep.c (frv_use_struct_convention): Delete.
2227 (frv_gdbarch_init): Register always_use_struct_convention,
2228 instead of frv_use_struct_convention.
2229 * h8300-tdep.c (h8300_use_struct_convention): Delete.
2230 (h8300_gdbarch_init): Register always_use_struct_convention,
2231 instead of h8300_use_struct_convention.
e3305dd9 2232 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
2233 (mips_o32_gdbarch_init): Register always_use_struct_convention,
2234 instead of mips_o32_use_struct_convention.
2235
e14e6e9c
AC
22362003-06-12 Andrew Cagney <cagney@redhat.com>
2237
2238 * wince.c: Include "mips-tdep.h".
2239 * mips-tdep.h (mips_next_pc): Declare.
2240 * mcore-tdep.c: Make more local functions static.
2241 * Makefile.in (wince.o): Update dependencies.
2242
2335f48e
DC
22432003-06-12 David Carlton <carlton@kealia.com>
2244
2245 * symtab.c (lookup_symbol_aux_minsyms): Replace
2246 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
2247 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
2248 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
2249 SYMBOL_NATURAL_NAME.
2250
f70a7d61
AS
22512003-06-12 Andreas Schwab <schwab@suse.de>
2252
2253 * Makefile.in (tuiDisassem.o): Update dependencies.
2254
b6429628
DC
22552003-06-12 David Carlton <carlton@bactrian.org>
2256
2257 * symtab.h: Delete declaration of make_symbol_overload_list.
2258 Add declaration of lookup_partial_symbol.
2259 * symtab.c (remove_params): Move to cp-support.c.
2260 (overload_list_add_symbol, make_symbol_overload_list)
2261 (sym_return_val_size, sym_return_val_index): Ditto.
2262 (lookup_partial_symbol): Make extern.
2263 * cp-support.h: Add declaration of make_symbol_overload_list.
2264 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
2265 symtab.h, and block.h.
2266 (remove_params): Move here from symtab.c.
2267 (overload_list_add_symbol, make_symbol_overload_list)
2268 (sym_return_val_size, sym_return_val_index): Ditto.
2269 * valops.c: Include cp-support.h.
2270 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
2271 frame_h, and block_h.
2272 (valops.o): Depend on cp_support_h.
2273
084edea5
CV
22742003-06-12 Corinna Vinschen <vinschen@redhat.com>
2275
2276 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
2277 substitute by NUM_REGS throughout.
2278 (h8300_register_name): Only care for H8/300 and H8/300H registers.
2279 (h8300s_register_name): New function for H8S registers.
2280 (h8300sx_register_name): Ditto for H8SX registers.
2281 (h8300_print_register): Revise register printing, avoid depending
2282 on 32 bit long.
0261a0d0 2283 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
2284 (h8300h_register_byte): New function for any other architecture.
2285 (h8300_register_raw_size): Remove.
2286 (h8300_register_virtual_type): Revise to return actually useful
2287 type.
2288 (h8300_extract_struct_value_address): Only care for H8/300 registers.
2289 (h8300h_extract_struct_value_address): New function for any other
2290 architecture.
2291 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
2292 set_gdbarch_register_name, set_gdbarch_register_byte,
2293 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
2294 Remove calls to set_gdbarch_deprecated_register_size,
2295 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
2296 set_gdbarch_deprecated_max_register_raw_size,
2297 set_gdbarch_register_virtual_size and
2298 set_gdbarch_deprecated_max_register_virtual_size entirely.
2299 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
2300 set_gdbarch_long_double_bit.
2301
06194148
JJ
23022003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2303
8ffd9b1b
AJ
2304 * doublest.c (convert_doublest_to_floatformat): When dealing
2305 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
2306 processing a full 32 bits of mantissa.
2307
de4f826b
DC
23082003-06-11 David Carlton <carlton@bactrian.org>
2309
2310 * dictionary.h: New.
2311 * dictionary.c: New.
2312 * block.h: Add opaque declaration for struct dictionary.
2313 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
2314 'sym' members.
2315 (BLOCK_DICT): New macro.
2316 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
2317 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
2318 BLOCK_SHOULD_SORT.
2319 (ALL_BLOCK_SYMBOLS): Update definition.
2320 * Makefile.in (SFILES): Add dictionary.c.
2321 (dictionary_h): New.
2322 (COMMON_OBS): Add dictionary.o.
2323 (dictionary.o): New.
2324 (ada-lang.o): Depend on dictionary_h.
2325 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
2326 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
2327 (mi-cmd-stack.o): Ditto.
2328 (gdbtk-cmds.o): Update dependencies.
2329 (gdbtk-stack.o): Ditto.
2330 * ada-lang.c: Include dictionary.h.
2331 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
2332 (fill_in_ada_prototype, debug_print_block): Ditto.
2333 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
2334 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
2335 'is_sorted'.
2336 * mdebugread.c: Include dictionary.h.
2337 (struct parse_stack): Delete 'maxsyms' member.
2338 (parse_symbol): Update calls to new_block. Delete calls to
2339 shrink_block. Use dictionary methods.
2340 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
2341 Update calls to new_symtab. Don't maintain maxsyms data.
2342 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
2343 (add_symbol): Just call dict_add_symbol.
2344 (new_symtab): Delete 'maxsyms' argument.
2345 (new_symtab): Update calls to new_block.
2346 (new_block): Delete 'maxsyms' argument; add 'function' argument.
2347 (shrink_block): Delete function.
2348 (fixup_sigtramp): Update call to new_block. Add symbol via
2349 dict_add_symbol.
2350 * jv-lang.c: Include dictionary.h.
2351 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
2352 appropriately. Set class_symtab->free_func. Make sure the
2353 blockvector is big enough to hold two blocks.
2354 (add_class_symtab_symbol): Use dictionary methods.
2355 (free_class_block): New function.
2356 (type_from_class): Replace explicit iteration by
2357 ALL_BLOCK_SYMBOLS.
2358 * symtab.h (struct symtab): Replace 'free_ptr' method by
2359 'free_func'.
2360 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
2361 sort_symtab_syms.
2362 * dwarfread.c (psymtab_to_symtab_1): Delete call to
2363 sort_symtab_syms.
2364 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
2365 Include dictionary.h.
2366 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
2367 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
2368 sort_symtab_syms.
2369 * objfiles.c: Include dictionary.h.
2370 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
2371 * buildsym.c: Include dictionary.h.
2372 (finish_block): Use dictionary methods.
2373 (end_symtab): Set free_func to NULL, not free_ptr.
2374 * tracepoint.c: Include dictionary.h.
2375 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
2376 (scope_info): Ditto.
2377 * stack.c: Include dictionary.h.
2378 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
2379 (print_block_frame_labels, print_frame_arg_vars)
2380 (print_frame_args): Ditto.
2381 * symmisc.c (free_symtab_block): Use dictionary methods.
2382 (dump_symtab): Ditto.
2383 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
2384 Include dictionary.h.
2385 * symfile.h: Delete declarations of sort_block_syms,
2386 sort_symtab_syms.
2387 * symfile.c (sort_block_syms): Delete.
2388 (sort_symtab_syms): Delete.
2389 * symtab.c: Include dictionary.h.
2390 (lookup_block_symbol): Use dictionary iterators.
2391 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
2392 (search_symbols, make_symbol_completion_list): Ditto.
2393 (make_symbol_overload_list): Ditto.
2394 * valops.c (value_of_local): Use dict_empty.
2395 Include dictionary.h.
2396
a31f978c
JB
23972003-06-11 J. Brobecker <brobecker@gnat.com>
2398
2399 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
2400
526e70c0
DC
24012003-06-11 David Carlton <carlton@bactrian.org>
2402
2403 * block.h (BLOCK_SHOULD_SORT): Delete.
2404 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
2405 blocks.
2406 * ada-lang.c (ada_add_block_symbols): Ditto.
2407 * symfile.c (sort_block_syms): Delete.
2408 (sort_symtab_syms): Ditto.
2409 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
2410 declarations.
2411 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
2412 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
2413 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
2414 * dwarfread.c (psymtab_to_symtab_1): Ditto.
2415 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
2416 * mdebugread.c (psymtab_to_symtab_1): Ditto.
2417 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
2418
33c08150
JJ
24192003-06-11 Jeff Johnston <jjohnstn@redhat.com>
2420
8ffd9b1b 2421 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
2422 bits to 128.
2423
781a750d
AC
24242003-06-11 Andrew Cagney <cagney@redhat.com>
2425
2426 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
2427 REGISTER_CONVERTIBLE.
2428 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
2429 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
2430 * gdbarch.h, gdbarch.c: Re-generate.
2431 * arch-utils.h (deprecated_register_convertible_not): Rename
2432 generic_register_convertible_not.
2433 * arch-utils.c (deprecated_register_convertible_not): Rename
2434 generic_register_convertible.
2435 (legacy_convert_register_p, legacy_register_to_value): Update.
2436 * sh-tdep.c (sh64_push_arguments): Update.
2437 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
2438 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
2439 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
2440 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
2441 * arch-utils.c (legacy_value_to_register): Update.
2442 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2443 (rs6000_register_convert_to_raw): Make parameter "from" const.
2444 * mips-tdep.c (mips_gdbarch_init): Update.
2445 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
2446 * infcmd.c (default_print_registers_info): Update.
2447 * ia64-tdep.c (ia64_gdbarch_init): Update.
2448 (ia64_register_convert_to_raw): Make parameter "from" const.
2449 * i386-tdep.c (i386_gdbarch_init): Update.
2450 (i386_register_convert_to_raw): Update.
2451
cd90e54f
AC
24522003-06-11 Andrew Cagney <cagney@redhat.com>
2453
2454 * remote-fileio.c: Include "remote-fileio.h".
2455 * Makefile.in (remote-fileio.o): Update dependencies.
2456 (remote_fileio_h): Fix typo.
2457
a78f21af
AC
24582003-06-11 Andrew Cagney <cagney@redhat.com>
2459
2460 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
2461 (xstormy16_save_dummy_frame_tos): Make static.
2462 (_initialize_xstormy16_tdep): Add declaration.
2463 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
2464 * v850-tdep.c: Make local functions static.
2465 (_initialize_v850_tdep): Add declaration.
2466 * sparc-tdep.c: Make local functions static.
2467 (_initialize_sparc_tdep): Add declaration.
2468 * sh-tdep.c: Make local functions static.
2469 (_initialize_sh_tdep): Add declaration.
2470 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
2471 * s390-tdep.c: Make local functions static.
2472 (_initialize_s390_tdep): Add declaration.
2473 * dbxread.c (find_stab_function_addr): Make static.
2474 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
2475 * ocd.c (_initialize_remote_ocd): Add declaration.
2476 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
2477 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
2478 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
2479 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
2480 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
2481 * remote-array.c (_initialize_array): Add declaration.
2482 (_initialize_remote_monitors): Add declaration.
2483 * remote-mips.c: Make local functions static.
2484 (_initialize_remote_mips): Add declaration.
2485 * mcore-tdep.c: Make all local functions static.
2486 (_initialize_mcore_tdep): Add declaration.
2487 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
2488 * abug-rom.c (_initialize_abug_rom): Add declaration.
2489 * rom68k-rom.c (_initialize_rom68k): Add declaration.
2490 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
2491 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
2492 * remote-est.c (_initialize_est): Add declaration.
2493 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
2494 (m68hc11_call_dummy_address): Make static.
2495 * ia64-tdep.c: Make local functions static.
2496 (_initialize_ia64_tdep): Add declaration.
2497 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
2498 * monitor.c (monitor_wait_filter): Make static.
2499 (_initialize_remote_monitors): Add declaration.
2500 * remote-hms.c (_initialize_remote_hms): Add declaration.
2501 * remote-e7000.c (fetch_regs_from_dump): Make static.
2502 (expect_n): Make static.
2503 (_initialize_remote_e7000): Add declaration.
2504 * ser-e7kpc.c: Always include "defs.h".
2505 (_initialize_ser_e7000pc): Add declaration.
2506 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
2507 * cris-tdep.c: Make all but one function static.
2508 (_initialize_cris_tdep): Add declaration.
2509 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
2510 * solib.c (update_solib_list): Make static.
2511 (_initialize_solib): Add declaration.
2512 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
2513 (_initialize_avr_tdep): Add declaration.
2514 * remote-rdi.c (voiddummy): Make static.
2515 (_initialize_remote_rdi): Add declaration.
2516 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
2517 * remote-rdp.c (send_rdp): Make static.
2518 (_initialize_remote_rdp): Add declaration.
2519 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
2520
cbcdb1f5
CV
25212003-06-11 Corinna Vinschen <vinschen@redhat.com>
2522
2523 * remote-fileio.c: Make ari happy.
2524
a191ea8d
JB
25252003-06-10 J. Brobecker <brobecker@gnat.com>
2526
2527 * rs6000-nat.c (child_xfer_memory): Compute the right address when
2528 fetching the trailing bytes of the buffer we are about to write.
2529
0ef75e11
AC
25302003-06-10 Andrew Cagney <cagney@redhat.com>
2531
2532 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
2533 * Makefile.in (remote-fileio.o): Update dependencies.
2534 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
2535 include <setjmp.h>, or <sys/types.h> conditional on USG.
2536 (remote_fio_jmp_buf): Delete global variable.
2537
449092f6 25382003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 2539 Martin M. Hunt <hunt@redhat.com>
449092f6 2540
559fa028
AC
2541 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
2542 (SFILES): Add remote-fileio.c.
2543 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
2544 dependencies for building remote.o.
449092f6
CV
2545 * remote-fileio.c: New file implementing the remote File-I/O protocol.
2546 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 2547 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
2548 static storage class.
2549 (remote_wait, remote_async_wait): Call remote_fileio_request() on
2550 'F' packet.
2551 (_initialize_remote): Call initialize_remote_fileio().
2552 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
2553 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2554 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
2555 (captured_main): Initialize new ui_files.
2556 * ui-file.c: Add read and fgets input functions.
2557 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
2558 (null_file_read): New function.
2559 (ui_file_read): New function.
2560 (set_ui_file_read): New function.
2561 (stdio_file_read): New function.
2562 * ui-file.h: New type ui_file_read_ftype.
2563 (set_ui_file_read): Declare.
2564 (ui_file_read): Declare.
2565
248de703
AC
25662003-06-09 Andrew Cagney <cagney@redhat.com>
2567
2568 * frame.h (deprecated_unwind_get_saved_register): Rename
2569 generic_unwind_get_saved_register, update comments.
2570 * mips-tdep.c (mips_get_saved_register): Update.
2571 * frame.c (deprecated_unwind_get_saved_register): Update.
2572
0ed8aa57
AC
25732003-06-09 Andrew Cagney <cagney@redhat.com>
2574
2575 * vax-tdep.c (vax_frame_locals_address): Delete function.
2576 (vax_gdbarch_init): Do not set frame_locals_address.
2577 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
2578 (m68hc11_gdbarch_init): Do not set frame_locals_address.
2579 * s390-tdep.c (s390_frame_args_address): Delete function.
2580 (s390_gdbarch_init): Do not set frame_args_address or
2581 frame_locals_address.
2582 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
2583 (ns32k_gdbarch_init): Do not set frame_locals_address.
2584 * hppa-tdep.c (hppa_frame_args_address): Delete function.
2585 (hppa_frame_locals_address): Delete function.
2586 (hppa_gdbarch_init): Do not set frame_args_address, or
2587 frame_locals_address.
2588 * arm-tdep.c (arm_frame_args_address): Delete.
2589 (arm_frame_locals_address): Delete.
2590 (arm_gdbarch_init): Do not set frame_args_address, or
2591 frame_locals_address.
2592
983a287a
AC
25932003-06-09 Andrew Cagney <cagney@redhat.com>
2594
2595 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
2596 * gdbarch.h, gdbarch.c: Re-generate.
2597 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
2598 * arch-utils.c (frame_num_args_unknown): Delete function.
2599 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
2600 (frame_info): Use FRAME_NUM_ARGS_P.
2601 * arm-tdep.c (arm_frame_num_args): Delete function.
2602 (arm_gdbarch_init): Do not set frame_num_args.
2603 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
2604 * hppa-tdep.c (hppa_frame_num_args): Delete function.
2605 (hppa_gdbarch_init): Do not set frame_num_args.
2606 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
2607 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2608 frame_num_args to default frame_num_args_unknown.
2609 * v850-tdep.c (v850_gdbarch_init): Ditto.
2610 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2611 * sh-tdep.c (sh_gdbarch_init): Ditto.
2612 * s390-tdep.c (s390_gdbarch_init): Ditto.
2613 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2614 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2615 * mips-tdep.c (mips_gdbarch_init): Ditto.
2616 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2617 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2618 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2619 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2620 * i386-tdep.c (i386_gdbarch_init): Ditto.
2621 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2622 * frv-tdep.c (frv_gdbarch_init): Ditto.
2623 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2624 * cris-tdep.c (cris_gdbarch_init): Ditto.
2625 * avr-tdep.c (avr_gdbarch_init): Ditto.
2626 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2627
8d3b0994
AC
26282003-06-09 Andrew Cagney <cagney@redhat.com>
2629
2630 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
2631 (print_frame_args): Moved to "stack.c".
2632 * stack.c: Include "gdb_assert.h".
2633 (print_frame_nameless_args): Moved from "printcmd.c", made static.
2634 (print_frame_args): Moved from "printcmd.c".
2635 * frame.h (print_frame_args): Delete declaration.
2636 * Makefile.in (stack.o): Update dependencies.
2637
25e3a86b
AC
26382003-06-08 Andrew Cagney <cagney@redhat.com>
2639
2640 * frame.c (get_prev_frame): Remove reference to
2641 frame_args_address_correct in comments.
2642 * frame-base.c (default_frame_args_address): Delete code
2643 conditional on FRAME_ARGS_ADDRESS_CORRECT.
2644 * vax-tdep.c (vax_frame_args_address_correct): Delete.
2645 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
2646 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
2647 (vax_frame_args_address_correct): Delete declaration.
2648
a9e5fdc2
AC
26492003-06-08 Andrew Cagney <cagney@redhat.com>
2650
2651 * gdbarch.sh (UNWIND_SP): Add.
2652 * gdbarch.h, gdbarch.c: Re-generate.
2653 * frame.c (frame_sp_unwind): New function.
2654 (get_frame_sp): New function.
2655 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
2656 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
2657 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
2658 value.
2659 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
2660 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
2661
8983bd83
AC
26622003-06-08 Andrew Cagney <cagney@redhat.com>
2663
7fec2c59
AC
2664 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
2665 REMOTE_BREAKPOINT.
2666 * remote.c: Update.
2667 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
2668 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
2669 * config/m68k/tm-sun3.h: Update.
2670 * config/m68k/tm-m68klynx.h: Update.
2671 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
2672
8983bd83
AC
2673 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
2674 trad_frame". Update comments.
2675 * d10v-tdep.c (struct d10v_unwind_cache): Update.
2676 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
2677 (trad_frame_register_value, trad_frame_prev_register): Update.
2678
b9362cc7
AC
26792003-06-08 Andrew Cagney <cagney@redhat.com>
2680
2681 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
2682 from GCC's acinclude.m4.
2683 * configure.in: Check for getopt's delcaration.
8ffd9b1b 2684 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
2685 * main.c (error_init): Delete declaration.
2686 * defs.h (error_init): Declare.
2687 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
2688 (rs6000_convert_from_func_ptr_addr): Make static.
2689 (_initialize_rs6000_tdep): Add declaration.
2690 * cli/cli-cmds.c (dont_repeat): Delete declaration.
2691 (show_commands, set_verbose, show_history): Delete declaration.
2692 * top.h (set_verbose): Add declaration.
2693 (show_history, set_history, show_commands): Add declaration.
2694 (do_restore_instream_cleanup): Add declaration.
2695 * objc-lang.c (specialcmp): Make static.
2696 (print_object_command): Make static.
2697 (find_objc_msgsend): Make static.
2698 (find_objc_msgcall_submethod_helper): Make static.
2699 (find_objc_msgcall_submethod): Make static.
2700 (_initialize_objc_language): Add declaration.
2701 (find_implementation_from_class): Make static.
2702 (find_implementation): Make static.
2703 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
2704 * objc-lang.h (lookup_struct_typedef): Add declaration.
2705 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
2706 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
2707 (do_restore_user_call_depth): Make static.
2708 (do_restore_instream_cleanup): Delete declaration.
2709 (dont_repeat): Delete declaration.
2710 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
2711 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
2712 * reggroups.c (_initialize_reggroup): Add declaration.
2713 * cp-support.c (_initialize_cp_support): Add declaration.
2714 * cp-abi.c (_initialize_cp_abi): Add declaration.
2715 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
2716 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
2717 (_initialize_gnu_v3_abi): Add declaration.
2718 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
2719 (_initialize_gnu_v2_abi): Add declaration.
2720 * frame-base.c (_initialize_frame_base): Add declaration.
2721 * doublest.c (floatformat_from_length): Make static.
2722 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
2723 * frame.c (create_sentinel_frame): Make static.
2724 (_initialize_frame): Add declaration.
2725 * top.c (do_catch_errors): Make static.
2726 (gdb_rl_operate_and_get_next_completion): Make static.
2727 * typeprint.c: Include "typeprint.h".
2728 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
2729 (sentinel_frame_this_id): Make static.
2730 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
2731 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
2732 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
2733 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
2734 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
2735 * maint.c (maintenance_print_architecture): Make static.
2736 * signals/signals.c (_initialize_signals): Add declaration.
2737 * std-regs.c (_initialize_frame_reg): Add declaration.
2738 * jv-exp.y (push_variable): ISO C definition.
2739 (push_qualified_expression_name): Ditto.
2740 * memattr.c (_initialize_mem): Add declaration.
2741 * remote.c (remote_check_watch_resources): Make static.
2742 (remote_stopped_by_watchpoint): Make static.
2743 (remote_stopped_data_address): Make static.
2744 * d10v-tdep.c (nr_dmap_regs): Make static.
2745 (a0_regnum): Make static.
2746 (d10v_frame_unwind_cache): Make static.
2747 (d10v_frame_p): Make static.
2748 * osabi.c (show_osabi): Make static.
2749 (_initialize_gdb_osabi): Add extern declaration.
2750 * gdbtypes.c (make_qualified_type): Make static.
2751 (safe_parse_type): Make static.
2752 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
2753 * macrotab.c (macro_bcache_free): Make static.
2754 * interps.c (interp_set_quiet): Make static.
2755 (interpreter_exec_cmd): Make static.
2756 * stack.h (select_frame_command): New file.
2757 * stack.c: Include "stack.h".
2758 (select_frame_command_wrapper): Delete function.
2759 (select_frame_command): Make global.
2760 * infcall.c: Include "infcall.h".
2761 * linespec.c: Include "linespec.h".
2762 * symfile.c (sections_overlap): Make static.
2763 * cp-support.h (cp_initialize_namespace): ISO C declaration.
2764 * charset.c (_initialize_charset): Add missing prototype.
2765 * regcache.c (init_legacy_regcache_descr): Make static.
2766 (do_regcache_xfree): Make static.
2767 (regcache_xfer_part): Make static.
2768 (_initialize_regcache): Add missing prototype.
2769 * breakpoint.c (parse_breakpoint_sals): Make static.
2770 (breakpoint_sals_to_pc): Make static.
2771 * interps.h (clear_interpreter_hooks): ISO C declaration.
2772 * Makefile.in (stack_h): Define.
2773 (stack.o, typeprint.o, mi-main.o): Update dependencies.
2774 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
2775
a0f267c7
AC
27762003-06-08 Andrew Cagney <cagney@redhat.com>
2777
2778 * Makefile.in (d10v-tdep.o): Update dependencies.
2779 (SFILES): Add trad-frame.c.
2780 (trad_frame_h): Define.
2781 (COMMON_OBS): Add trad-frame.o.
2782 (trad-frame.o): Specify dependencies.
2783 * d10v-tdep.c: Include "trad-frame.h".
2784 (saved_regs_unwinder): Delete function.
2785 (d10v_frame_prev_register): Use trad_frame_prev_register.
2786 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
2787 trad_frame", delete "regs" and "prev_sp".
2788 (prologue_find_regs): Use trad-frame.
2789 * trad-frame.h, trad-frame.c: New files.
2790
4538b4f4
MK
27912003-06-08 Mark Kettenis <kettenis@gnu.org>
2792
2793 * dwarf2cfi.c, dwarf2cfi.h: Remove.
2794
a0273b2f
AF
27952003-06-07 Adam Fedor <fedor@gnu.org>
2796
2797 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
2798 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
2799 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
2800 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 2801 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
2802 Use it.
2803
3a6c3343
AC
28042003-06-07 Andrew Cagney <cagney@redhat.com>
2805
2806 * symfile.h: Re-indent, clean up comments.
2807
b46e02f6
AC
28082003-06-07 Andrew Cagney <cagney@redhat.com>
2809
2810 * inferior.h (deprecated_write_sp): Replace
2811 generic_target_write_sp.
2812 * regcache.c (deprecated_write_sp): Replace
2813 generic_target_write_sp.
2814 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2815 * vax-tdep.c (vax_gdbarch_init): Update.
2816 * v850-tdep.c (v850_gdbarch_init): Update.
2817 * sparc-tdep.c (sparc_gdbarch_init): Update.
2818 * sh-tdep.c (sh_gdbarch_init): Update.
2819 * s390-tdep.c (s390_gdbarch_init): Update.
2820 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2821 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2822 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2823 * mcore-tdep.c (mcore_gdbarch_init): Update.
2824 * m68k-tdep.c (m68k_gdbarch_init): Update.
2825 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2826 * ia64-tdep.c (ia64_gdbarch_init): Update.
2827 * h8300-tdep.c (h8300_gdbarch_init): Update.
2828 * frv-tdep.c (frv_gdbarch_init): Update.
2829 * cris-tdep.c (cris_gdbarch_init): Update.
2830 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2831
a42e117c
AC
28322003-06-07 Andrew Cagney <cagney@redhat.com>
2833
2834 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
2835 Assert that PC_REGNUM is valid.
2836 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
2837
bd1ce8ba
AC
28382003-06-07 Andrew Cagney <cagney@redhat.com>
2839
2840 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
2841 * gdbarch.h, gdbarch.c: Regenerate.
2842 * mn10300-tdep.c: Include "gdb_assert.h".
2843 (mn10300_read_fp): New function.
2844 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
2845 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
2846 * ia64-tdep.c: Include "gdb_assert.h".
2847 (ia64_read_fp): New function.
2848 (ia64_gdbarch_init): Set deprecated_target_read_fp to
2849 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
2850 * regcache.c (generic_target_read_sp): Delete function.
2851 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
2852 * inferior.h (generic_target_read_sp): Delete declaration.
2853 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
2854 generic_target_read_sp.
2855 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2856 * sparc-tdep.c (sparc_gdbarch_init): Ditto
2857 * sh-tdep.c (sh_gdbarch_init): Ditto.
2858 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2859 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
2860
ec5cbaec
AC
28612003-06-07 Andrew Cagney <cagney@redhat.com>
2862
2863 * gdbarch.sh: Comment each field of startup_gdbarch.
2864 * gdbarch.h, gdbarch.c: Re-generate.
2865
cde9ea48
AC
28662003-06-07 Andrew Cagney <cagney@redhat.com>
2867
2868 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
2869 * gdbarch.h, gdbarch.c: Re-generate.
2870 * regcache.c: Update comments on read_pc et.al.
2871 (generic_target_read_pc): Delete function.
2872 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
2873 * inferior.h (generic_target_read_pc): Delete declaration.
2874 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
2875 generic_target_read_pc.
2876 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2877 * sh-tdep.c (sh_gdbarch_init): Ditto.
2878 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2879 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 2880
9a90a780
AC
28812003-06-07 Andrew Cagney <cagney@redhat.com>
2882
2883 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
2884 "index" with "special_local_sect". Use strcmp instead of STREQ.
2885 Append period to coments.
2886
a39a16c4
MM
28872003-06-06 Mark Mitchell <mark@codesourcery.com>
2888
2889 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
2890 (elfstab_offset_sections): Likewise.
2891 * gdb-stabs.h (stab_section_info): Likewise.
2892 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
2893 * objfiles.c (objfile_relocate): Likewise.
2894 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
2895 * remote.c (get_offsets): Likewise.
2896 (remote_cisco_objfile_relocate): Likewise.
2897 * somread.c (som_symfile_offsets): Likewise.
2898 * symfile.c (alloc_section_addr_info): New function.
2899 (build_section_addr_info_from_section_tab): Use it.
2900 (free_section_addr_info): Adjust.
2901 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
2902 (syms_from_objfile): Allocate local_addr dynamically.
2903 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
2904 dynamically.
2905 (add_symbol_file_command): Allocate sect_opts dynamically.
2906 (reread_symbols): Avoid use of SECT_OFF_MAX.
2907 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
2908 (alloc_section_addr_info): Declare it.
2909 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
2910 * win32-nat.c (solib_symbols_add): Allocate section_addrs
2911 dynamically.
2912 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 2913
20c6c2f8
AC
29142003-06-06 Andrew Cagney <cagney@redhat.com>
2915
2916 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
2917 (d10v_frame_unwind_cache): Do not set "return_pc".
2918
884a26c8
MS
29192003-06-06 Michael Snyder <msnyder@redhat.com>
2920
2921 * h8300-tdep.c: Make tidy (long lines).
2922
088ce440
ML
29232003-06-06 Michal Ludvig <mludvig@suse.cz>
2924
8ffd9b1b 2925 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
2926 to regcache_collect().
2927
7d773d96
JB
29282003-06-05 J. Brobecker <brobecker@gnat.com>
2929
2930 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
2931 pc_in_sigtramp multiarch method.
2932 (hppa_hpux_som_init_abi): Use it.
2933 (hppa_hpux_elf_init_abi): Likewise.
2934 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
2935 macro has been multiarched.
2936 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
2937 macro here, as hppa64 isn't multiarched yet.
2938
1df6926e
AC
29392003-06-05 Andrew Cagney <cagney@redhat.com>
2940
2941 * Makefile.in (value_h): Add $(frame_h).
2942 * value.h: Include "frame.h".
2943 (struct value): Replace "frame_addr" with "frame_id".
2944 (VALUE_FRAME_ID): Replace VALUE_FRAME.
2945 * values.c (allocate_value): Use VALUE_FRAME_ID.
2946 (value_copy): Use VALUE_FRAME_ID.
2947 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
2948 * valops.c (value_assign): Update. Use frame_find_by_id.
2949
6b53acc6
ML
29502003-06-05 Michal Ludvig <mludvig@suse.cz>
2951
2952 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
2953 in each pass.
2954
4d9850d3
JJ
29552003-06-05 Jeff Johnston <jjohnstn@redhat.com>
2956
2957 * thread-db.c (check_event): For create/death event breakpoints,
2958 loop through all messages to ensure that we read the message
2959 corresponding to the breakpoint we are at.
2960
8efca6ba
MS
29612003-06-04 Michael Snyder <msnyder@redhat.com>
2962
2963 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
2964
0912c7f2
MK
29652003-06-04 Mark Kettenis <kettenis@gnu.org>
2966
2967 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
2968 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
2969 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
2970 when handling .eh_frame sections.
2971
4e370325
JB
29722003-06-04 J. Brobecker <brobecker@gnat.com>
2973
2974 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
2975 prepare_to_proceed procedure instead of the hppa-specific one.
2976 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
2977
b757528f 29782003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 2979
b757528f
JJ
2980 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
2981 * config.in: Regenerated.
2982 * configure.in: Add test for syscall function and check for
2983 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
2984 * configure: Regenerated.
2985 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
2986 <sys/syscall.h>.
2987 (kill_lwp): New function that uses tkill syscall or
2988 uses kill, depending on whether threading model is nptl or not.
2989 All callers of kill() changed to use kill_lwp().
2990 (lin_lwp_wait): Make special check when WIFEXITED occurs to
2991 see if all threads have already exited in the nptl model.
2992 (stop_and_resume_callback): New callback function used by the
2993 lin_lwp_wait thread exit handling code.
2994 (stop_wait_callback): Check for threads already having exited and
2995 delete such threads fromt the lwp list when discovered.
2996 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 2997
b757528f
JJ
2998 Roland McGrath <roland@redhat.com>
2999 * i386-linux-nat.c (ps_get_thread_area): New function needed by
3000 nptl libthread_db.
3001
087779b1
RH
30022003-06-03 Richard Henderson <rth@redhat.com>
3003
b21fd293
RH
3004 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
3005 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
3006 (alpha_sigtramp_frame_prev_register): Likewise.
3007 (alpha_heuristic_frame_prev_register): Likewise.
3008 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
3009
8ffd9b1b 3010 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
3011 alpha-specific register id names.
3012 (alpha_mdebug_frame_unwind_cache): Likewise.
3013 (alpha_mdebug_frame_prev_register): Likewise.
3014
baa490c4
RH
30152003-06-03 Richard Henderson <rth@redhat.com>
3016
3017 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
3018 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
3019 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
3020 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
3021 unwind routines.
3022 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
3023 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3024 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
3025
3026 * alpha-linux-tdep.c: Remove unnecessary includes.
3027 * Makefile.in (alpha-linux-tdep.o): Update.
3028
30292003-06-03 Richard Henderson <rth@redhat.com>
3030
3031 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
3032 (alphabsd_fill_fpreg): Likewise.
3033
f534e522
JB
30342003-06-03 J. Brobecker <brobecker@gnat.com>
3035
3036 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
3037 references to struct frame_info fields by calls to the equivalent
3038 accessors. Necessary now that frame_info is opaque.
3039
4035536b
JB
30402003-06-03 J. Brobecker <brobecker@gnat.com>
3041
3042 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
3043 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
3044 structure, field no longer exists.
3045
0bd79c5c
JB
30462003-06-03 J. Brobecker <brobecker@gnat.com>
3047
3048 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3049 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
3050
37bb6d9f
JB
30512003-06-03 J. Brobecker <brobecker@gnat.com>
3052
3053 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
3054 references to struct frame_info fields by calls to the equivalent
3055 accessors. Necessary now that frame_info is opaque.
3056
852ee05c
JB
30572003-06-03 J. Brobecker <brobecker@gnat.com>
3058
3059 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
3060 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
3061 structure, field no longer exists.
3062
7d58c67d
TR
30632003-06-03 Theodore A. Roth <troth@openavr.org>
3064
8ffd9b1b 3065 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
3066 accumulation of the size of all registers instead of blindly using
3067 DEPRECATED_REGISTER_BYTES.
3068
0a48e7e8
MS
30692003-06-03 Michael Snyder <msnyder@redhat.com>
3070
3071 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
3072 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
3073 for h8300sx.
3074
9798ab0d
JB
30752003-06-03 J. Brobecker <brobecker@gnat.com>
3076
3077 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
3078 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3079
00b037e2
AC
30802003-06-03 Andrew Cagney <cagney@redhat.com>
3081
3082 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
3083 (sparc_convert_to_raw): Delete function.
3084 (sparc_gdbarch_init): Do not set register_convert_to_raw or
3085 register_convert_to_virtual.
3086
043b2f77
JJ
30872003-06-03 Jeff Johnston <jjohnstn@redhat.com>
3088
3089 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
3090 layer if not dealing with a statically-linked threaded program.
3091
f43caff8
KW
30922003-06-03 Kris Warkentin <kewarken@qnx.com>
3093
3094 * solib.c (solib_open): Update comment to reflect actual search order.
3095
ae1e7417
AC
30962003-06-03 Andrew Cagney <cagney@redhat.com>
3097
3098 * frame.c (get_frame_memory_signed): New function.
3099 (get_frame_memory, get_frame_memory_unsigned): New function.
3100 (get_frame_arch): New function.
3101 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
3102 (get_frame_memory, get_frame_unsigned_memory): Declare.
3103 * d10v-tdep.c (d10v_frame_unwind_cache): Use
3104 get_frame_memory_unsigned and get_frame_arch.
3105 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
3106
cb123844
RG
31072003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
3108
3109 * MAINTAINERS (write after approval): Add myself.
3110
1bb792e9
JB
31112003-06-03 Jim Blandy <jimb@redhat.com>
3112
3113 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
3114 elements of gregset_t are 64 bits each, but access registers
3115 are still 32 bits, so they're packed two per gregset_t
3116 element. Unpack/pack them properly.
3117
aee8d8ba
DC
31182003-06-02 David Carlton <carlton@bactrian.org>
3119
3120 * linespec.c (find_methods): Break out code into
3121 add_matching_methods and add_constructors.
3122 (add_matching_methods): New.
3123 (add_constructors): Ditto.
3124
bf7488d2
AC
31252003-06-02 Andrew Cagney <cagney@redhat.com>
3126
bf7488d2
AC
3127 * sparc-tdep.c (sparc_print_registers): Delete call to
3128 REGISTER_CONVERTIBLE.
3129 (sparc_gdbarch_init): Do not set register_convertible.
3130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3131 * frv-tdep.c (frv_gdbarch_init): Ditto.
3132 * cris-tdep.c (cris_gdbarch_init): Ditto.
3133
adedef68
EZ
31342003-06-02 Elena Zannoni <ezannoni@redhat.com>
3135
8ffd9b1b 3136 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
3137 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
3138 (syms_from_objfile): Ditto.
3139
650fcc91
AS
31402003-06-03 Andreas Schwab <schwab@suse.de>
3141
3142 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
3143 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
3144
df4a182b
RH
31452003-06-02 Richard Henderson <rth@redhat.com>
3146
3147 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
3148 a member of all_reggroup.
3149
c483c494
RH
31502003-06-02 Richard Henderson <rth@redhat.com>
3151
3152 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
3153 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
3154 (alpha_lds, alpha_sts): New.
3155 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 3156 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
3157 restructure and fail for type sizes other than 4 or 8.
3158 (alpha_value_to_register): Similarly.
3159 (alpha_extract_return_value): Use alpha_sts.
3160 (alpha_store_return_value): Use alpha_lds.
3161 (alpha_gdbarch_init): Update hooks.
3162
b38b6be2
RH
31632003-06-02 Richard Henderson <rth@redhat.com>
3164
3165 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
3166 regnum identifiers.
3167 (alpha_sigtramp_register_address): Likewise.
3168
98a8e1e5
RH
31692003-06-02 Richard Henderson <rth@redhat.com>
3170
3171 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
3172 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
3173 * alpha-tdep.h: Declare them.
3174
3175 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
3176 Remove zerobuf. Don't error on UNIQUE.
3177 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
3178 (ALPHA_REGSET_UNIQUE): Provide default.
3179 (supply_gregset): Use alpha_supply_int_regs.
3180 (fill_gregset): Use alpha_fill_int_regs.
3181 (supply_fpregset): Use alpha_supply_fp_regs.
3182 (fill_fpregset): Use alpha_fill_fp_regs.
3183 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
3184 (alphabsd_supply_reg): Use alpha_supply_int_regs.
3185 (alphabsd_fill_reg): Use alpha_fill_int_regs.
3186 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
3187 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
3188 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
3189
67dfac52
RH
31902003-06-02 Richard Henderson <rth@redhat.com>
3191
f75d70cc
RH
3192 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
3193
67dfac52
RH
3194 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
3195 (alpha_store_return_value): Likewise.
3196
0cf566ec
DC
31972003-06-02 David Carlton <carlton@math.stanford.edu>
3198
3199 * block.c (contained_in): Add 'const' to arguments.
3200 (block_function): Ditto.
3201 * block.h: Update declarations for block_function and
3202 contained_in.
3203
cdef89d0
DC
32042003-06-02 David Carlton <carlton@math.stanford.edu>
3205
3206 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
3207 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
3208 * p-valprint.c (pascal_val_print): Ditto.
3209 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
3210
72667056
RH
32112003-06-02 Richard Henderson <rth@redhat.com>
3212
98a8e1e5
RH
3213 * alpha-tdep.c (alpha_push_dummy_call): Use
3214 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 3215
8ffd9b1b 3216 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
3217 sign-extension of 32-bit values.
3218 (alpha_store_return_value): Similarly.
0ede8eca 3219
98a8e1e5
RH
3220 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
3221 (alpha_extract_return_value): Likewise.
3222 (alpha_store_return_value): Likewise.
7b5e1cb3 3223
98a8e1e5
RH
3224 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
3225 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 3226
98a8e1e5
RH
3227 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
3228 (alpha_extract_struct_value_address): Likewise.
3229 (alpha_store_return_value): Likewise.
3230 (alpha_store_struct_return): Remove.
3231 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 3232
98a8e1e5
RH
3233 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
3234 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
3235 macros where appropriate.
3236 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
3237 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 3238
98a8e1e5
RH
3239 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
3240 for SP, GP; void_func_ptr for PC; non-language-specific types
3241 for all others.
3242 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 3243
6dd77b81
RH
32442003-06-02 Richard Henderson <rth@redhat.com>
3245
3246 * top.h (lim_at_start): Declare.
3247 * main.c (captured_main): Set it.
3248 * top.c (lim_at_start): Define.
3249 (command_loop): Use it instead of &environ.
3250 * event-top.c (command_handler): Likewise.
3251
f4dbdb54
JT
32522003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
3253
3254 * mipsnbsd-tdep.c: Update copyright years.
3255 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
3256
8f285956
RH
32572003-06-01 Richard Henderson <rth@redhat.com>
3258
98a8e1e5
RH
3259 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
3260 (alpha-linux-tdep.o): Update dependencies.
3261 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
3262 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 3263
615967cb
RH
32642003-06-01 Richard Henderson <rth@redhat.com>
3265
98a8e1e5
RH
3266 * alpha-tdep.c (alpha_register_reggroup_p): New.
3267 (alpha_gdbarch_init): Register it.
615967cb 3268
b59661bd
AC
32692003-06-02 Andrew Cagney <cagney@redhat.com>
3270
3271 * dwarfread.c: Eliminate "register"
3272 (decode_die_type): Eliminate assignment within "if".
3273 (struct_type, decode_array_element_type): Ditto.
3274 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
3275 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
3276 (decode_modified_type, completedieinfo): Ditto.
3277 * block.c: Eliminate "register".
3278 (blockvector_for_pc_sect): Eliminate assignment within "if".
3279 * cp-support.h (struct symbol): Opaque declaration.
3280 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
3281
5ef165c2
RH
32822003-06-01 Richard Henderson <rth@redhat.com>
3283
98a8e1e5
RH
3284 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
3285 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 3286
143985b7
AF
32872003-06-01 Adam Fedor <fedor@gnu.org>
3288
3289 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
3290 * gdbarch.[ch]: Regenerate.
3291 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
3292 (hppa_gdbarch_init): Set it in the gdbarch vector.
3293 * i386-tdep.c (i386_fetch_pointer_argument): New
3294 (i386_gdbarch_init): Set it into gdbarch.
3295 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
3296 (rs6000_gdbarch_init): Set it in gdbarch.
3297 * sparc-tdep.c (sparc_fetch_pointer_argument): New
3298 (sparc_gdbarch_init): Set it in gdbarch.
3299
ae0167b9
AC
33002003-06-01 Andrew Cagney <cagney@redhat.com>
3301
7c0b4a20
AC
3302 * defs.h (extract_address): Delete declaration.
3303 * findvar.c (extract_address): Delete function.
3304 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
3305 extract_address with the inline equivalent,
3306 extract_unsigned_integer.
3307 (xstormy16_extract_struct_value_address): Ditto.
3308 (xstormy16_pointer_to_address): Ditto.
3309 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
3310 * v850-tdep.c (v850_push_arguments): Ditto.
3311 (v850_extract_return_value): Ditto.
3312 (v850_extract_struct_value_address): Ditto.
3313 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
3314 (sparcnbsd_get_longjmp_target_64): Ditto.
3315 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
3316 (get_longjmp_target): Ditto.
3317 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
3318 (sh64_extract_struct_value_address): Ditto.
3319 (sh_push_arguments): Ditto.
3320 (sh64_push_arguments): Ditto.
3321 * remote-vxsparc.c (vx_read_register): Ditto.
3322 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
3323 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
3324 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
3325 * mipsv4-nat.c (get_longjmp_target): Ditto.
3326 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
3327 * mips-nat.c (get_longjmp_target): Ditto.
3328 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
3329 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
3330 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
3331 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
3332 * irix5-nat.c (get_longjmp_target): Ditto.
3333 * irix4-nat.c (get_longjmp_target): Ditto.
3334 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
3335 (ia64_push_arguments): Ditto.
3336 * hpux-thread.c (hpux_thread_store_registers): Ditto.
3337 * h8300-tdep.c (h8300_push_arguments): Ditto.
3338 (h8300_store_return_value): Ditto.
3339 (h8300_extract_struct_value_address): Ditto.
3340 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
3341 (frv_push_arguments): Ditto.
3342 * avr-tdep.c (avr_pointer_to_address): Ditto.
3343 (avr_push_arguments): Ditto.
3344 * arm-tdep.c (arm_push_dummy_call): Ditto.
3345 (arm_get_longjmp_target): Ditto.
3346 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
3347 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
3348 (alpha_get_longjmp_target): Ditto.
3349
ae0167b9
AC
3350 * solib-irix.c (extract_mips_address): Inline extract_address,
3351 replacing it with extract_signed_integer.
3352 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3353 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
3354 (first_link_map_member, open_symbol_file_object): Ditto.
3355 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
3356 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
3357 (LM_NEXT, LM_NAME): Ditto.
3358
44d88583
RH
33592003-06-01 Richard Henderson <rth@redhat.com>
3360
98a8e1e5
RH
3361 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
3362 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
3363 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
3364 (alpha_cannot_store_register): Likewise.
3365 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
3366 * alpha-nat.c (supply_gregset): Likewise.
3367 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 3368
310e9b6a
AC
33692003-06-01 Andrew Cagney <cagney@redhat.com>
3370
3371 * infcall.c (call_function_by_hand): Update comment on
3372 DEPRECATED_DUMMY_WRITE_SP.
3373
3374 * mips-tdep.c (mips_gdbarch_init): Do not set
3375 deprecated_dummy_write_sp.
3376 (mips_eabi_push_dummy_call): Set the SP register.
3377 (mips_o64_push_dummy_call): Set the SP register.
3378 (mips_o32_push_dummy_call): Set the SP register.
3379 (mips_n32n64_push_dummy_call): Set the SP register.
3380
5ab84872
RH
33812003-06-01 Richard Henderson <rth@redhat.com>
3382
98a8e1e5
RH
3383 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
3384 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
3385 (supply_gregset): Likewise.
3386 * alpha-tdep.c (alpha_store_return_value): Likewise.
3387 (alpha_get_longjmp_target): Likewise.
3388 (alpha_register_name): Constify array.
3389 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
3390 deprecated_register_size, deprecated_register_bytes,
3391 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
3392 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
3393 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 3394
09cc52fd
RH
33952003-06-01 Richard Henderson <rth@redhat.com>
3396
3397 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
3398 from arg_reg_buffer to regcache to avoid double conversion.
3399
c7f16359
MK
34002003-06-01 Mark Kettenis <kettenis@gnu.org>
3401
3402 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
3403 SP_REGNUM.
3404 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
3405 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
3406
7131cb6e
RH
34072003-06-01 Richard Henderson <rth@redhat.com>
3408
98a8e1e5
RH
3409 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
3410 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 3411
f3e0f90b
RH
34122003-06-01 Richard Henderson <rth@redhat.com>
3413
98a8e1e5
RH
3414 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
3415 not overlapping PC_REGNUM.
f3e0f90b 3416
c88e30c0
RH
34172003-06-01 Richard Henderson <rth@redhat.com>
3418
98a8e1e5
RH
3419 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
3420 alpha_push_arguments. Don't dump argument register data to
3421 the target stack. Fix float and 128-bit long double semantics.
3422 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
3423 (alpha_fix_call_dummy): Remove.
3424 (alpha_call_dummy_words): Remove.
3425 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 3426
f1a559ae
RH
34272003-06-01 Richard Henderson <rth@redhat.com>
3428
3429 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
3430
5e045346
AC
34312003-06-01 Andrew Cagney <cagney@redhat.com>
3432
95404a3e
AC
3433 * mips-tdep.c (is_mips16_addr): New function.
3434 (make_mips16_addr, unmake_mips16_addr): New functions.
3435 (pc_is_mips16, mips_fetch_instruction): Use.
3436 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
3437 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
3438 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
3439 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
3440 TARGET_MIPS.
3441 * config/mips/tm-mips.h: Update copyright.
3442 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
3443 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
3444 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
3445 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
3446 (TM_PRINT_INSN_MACH): Delete.
3447 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
3448
5e045346
AC
3449 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
3450 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
3451 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
3452 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
3453 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
3454 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
3455 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
3456 mips*-*-riscos* and mips*-*-sysv* onto mips.
3457 * config/mips/mips64.mt: New file.
3458 * config/mips/mips.mt: New file.
3459 * config/mips/littlemips.mt: Delete file.
3460 * config/mips/decstation.mt: Delete file.
3461 * config/mips/vr4300el.mt: Delete file.
3462 * config/mips/vr5000el.mt: Delete file.
3463 * config/mips/vr5000.mt: Delete file.
3464 * config/mips/vr4100.mt: Delete file.
3465 * config/mips/vr4xxxel.mt: Delete file.
3466 * config/mips/vr4300.mt: Delete file.
3467 * config/mips/vr4xxx.mt: Delete file.
3468 * config/mips/bigmips.mt: Delete file.
3469 * config/mips/bigmips64.mt: Delete file.
3470 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
3471 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
3472 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
3473 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
3474 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
3475 "tm-bigmips.h".
3476 * config/mips/tm-irix3.h: Ditto.
3477 * config/mips/tm-mipsv4.h: Ditto.
3478 * config/mips/tm-embed.h: Ditto.
3479 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
3480 "tm-bigmips64.h".
3481 * config/mips/tm-vr5000el.h: Delete file.
3482 * config/mips/tm-tx39l.h: Delete file.
3483 * config/mips/tm-vr4300el.h: Delete file.
3484 * config/mips/tm-vr4xxxel.h: Delete file.
3485 * config/mips/tm-vr4300.h: Delete file.
3486 * config/mips/tm-vr4100.h: Delete file.
3487 * config/mips/tm-vr4xxx.h: Delete file.
3488 * config/mips/tm-vr5000.h: Delete file.
3489 * config/mips/tm-embedl64.h: Delete file.
3490 * config/mips/tm-embedl.h: Delete file.
3491 * config/mips/tm-embed64.h: Delete file.
3492 * config/mips/tm-bigmips64.h: Delete file.
3493 * config/mips/tm-bigmips.h: Delete file.
3494
2473a4a9
MK
34952003-06-01 Mark Kettenis <kettenis@gnu.org>
3496
97a5b208
MK
3497 Fix gdb/1216.
3498 * shnbsd-nat.c: Include "sh-tdep.h".
3499
2473a4a9
MK
3500 From Richard Henderson <rth@redhat.com>:
3501 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
3502
e0f7ec59
AC
35032003-05-31 Andrew Cagney <cagney@redhat.com>
3504
3505 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
3506 forward declaration.
3507 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3508 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
3509 (mips_find_saved_regs): Use set_reg_offset.
3510 (mips_frame_init_saved_regs): Delete function.
3511 (mips_pop_frame): Call mips_find_saved_regs instead of
3512 DEPRECATED_FRAME_INIT_SAVED_REGS.
3513
68dcc709
AC
35142003-05-31 Andrew Cagney <cagney@redhat.com>
3515
3516 * mips-tdep.c (mips_gdbarch_init): Do not set
3517 deprecated_max_register_raw_size, register_virtual_size, and
3518 deprecated_max_register_virtual_size.
3519
cfc14b3a
MK
35202003-05-31 Mark Kettenis <kettenis@gnu.org>
3521
6405b0a6
MK
3522 * i386-tdep.c: Include "dwarf2-frame.h".
3523 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
3524 * Makefile.in (i386-tdep.o): Update dependencies.
3525
cfc14b3a
MK
3526 * dwarf2-frame.c, dwarf2-frame.h: New files.
3527 * Makefile.in (SFILES): Add dwarf2-frame.c.
3528 (dwarf2_frame_h): Define.
3529 (COMMON_OBS): Add dwarf2-frame.o.
3530 (dwarf2-frame.o): Add dependencies.
3531
6a2751d2
AJ
35322003-05-31 Andreas Jaeger <aj@suse.de>
3533
3534 * x86-64-linux-nat.c: Fix comment.
3535
1c3545ae
MK
35362003-05-31 Mark Kettenis <kettenis@gnu.org>
3537
10f93086
MK
3538 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
3539 function signature.
3540
1c3545ae
MK
3541 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
3542 have a sigcontext_addr handler.
3543 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
3544 sigcontext_addr handler.
3545
e11c53d2
AC
35462003-05-31 Andrew Cagney <cagney@redhat.com>
3547
3548 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
3549 (print_fp_register_row): Replace do_fp_register_row.
3550 (mips_print_fp_register): Add "file" and "frame" parameters.
3551 (mips_print_register): Add "file" and "frame" parameters.
3552 (mips_print_registers_info): Replace mips_do_registers_info.
3553 (mips_gdbarch_init): Set print_registers_info instead of
3554 deprecated_do_registers_info.
3555 (mips_read_fp_register_single): Add "frame" parameter.
3556 (mips_read_fp_register_double): Add "frame" parameter.
3557
a3386186
MK
35582003-05-31 Mark Kettenis <kettenis@gnu.org>
3559
70913449
MK
3560 * i386-tdep.c (i386_register_name): Check for MMX registers first.
3561 Fixes a bug where GDB would print the wrong register names for
3562 targets without SSE.
3563
2b5e0749
MK
3564 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
3565 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3566 registers.
3567
3568 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
3569 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
3570 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3571 TDEP->sc_sp_offset.
3572
a3386186
MK
3573 From Michal Ludvig <mludvig@suse.cz>:
3574 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
3575 and `sc_num_regs'.
3576 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3577 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3578 I386_ST0_REGNUM): Move here from...
3579 * i386-tdep.c: ... here.
3580 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
3581 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
3582 registers if possible.
3583 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
3584 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
3585 Remove variables.
3586 (i386bsd_sc_reg_offset): New variable.
3587 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
3588 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3589 TDEP->sc_sp_offset.
3590 (i386fbsd_sc_reg_offset): New variable.
3591 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
3592 TDEP->sc_num_regs.
3593 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
3594 variables.
3595 (i386fbsd4_sc_reg_offset): New variable.
3596 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
3597 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3598 TDEP->sc_sp_offset.
3599 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
3600 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
3601 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
3602 Remove variables.
3603 (i386nbsd_sc_reg_offset): New variable.
3604 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
3605 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3606 TDEP->sc_sp_offset.
3607 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
3608 Remove variables.
3609 (i386obsd_sc_reg_offset): New variable.
3610 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
3611 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
3612 TDEP->sc_sp_offset.
3613 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
3614 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
3615 for frame pointer offset in `struct sigcontext'.
3616
25ab4790
AC
36172003-05-31 Andrew Cagney <cagney@redhat.com>
3618
3619 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
3620 architecture methods call_dummy_words, sizeof_call_dummy_words,
3621 push_return_address, store_struct_return, and fix_call_dummy. Set
3622 push_dummy_call instead of deprecated_push_arguments.
3623 (mips_store_struct_return): Delete function.
3624 (mips_fix_call_dummy): Delete function.
3625 (mips_push_return_address): Delete function.
3626 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
3627 RA_REGNUM and T9_REGNUM.
3628 (mips_n32n64_push_dummy_call): Ditto for
3629 mips_n32n64_push_arguments.
3630 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
3631 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
3632
6a65450a
AC
36332003-05-31 Andrew Cagney <cagney@redhat.com>
3634
3635 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
3636 "dummy_addr" to "bp_addr".
3637 * infcall.c (call_function_by_hand): Pass "funaddr" to
3638 gdbarch_push_dummy_call.
3639 * gdbarch.h, gdbarch.c: Re-generate.
3640 * i386-tdep.c (i386_push_dummy_call): Update.
3641 * arm-tdep.c (arm_push_dummy_call): Update.
3642 * d10v-tdep.c (d10v_push_dummy_call): Update.
3643
c4f35dd8
MK
36442003-05-31 Mark Kettenis <kettenis@gnu.org>
3645
3646 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
3647 variable declarations.
3648 (x86_64_register_number, x86_64_register_name): Remove prototypes.
3649 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
3650 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
3651 x86_64_init_frame_pc, x86_64_init_frame_pc,
3652 x86_64_function_has_prologue): Remove prototypes.
3653 (X86_64_NUM_GREGS): New define.
3654 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
3655 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
3656 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
3657 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
3658 XMM1_REGNUM): Remove defines.
3659 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
3660 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
3661 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
3662 X86_64_XMM1_REGNUM): New defines.
3663 (struct x86_64_register_info): Renamed from `struct
3664 register_info'. Remove `size' member.
3665 (x86_64_register_info_table): Remove variable.
3666 (x86_64_register_info): New variable.
3667 (X86_64_NUM_REGS): New define.
3668 (X86_64_NUM_GREGS): Remove define.
3669 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
3670 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
3671 Remove variables.
3672 (x86_54_dwarf2_reg_to_regnum): Remove function.
3673 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
3674 (x86_64_dwarf_reg_to_regnum): New function.
3675 (x86_64_register_name): Rewrite.
3676 (x86_64_register_raw_size): Remove function.
3677 (x86_64_register_byte_table): Remove variable.
3678 (x86_64_register_byte): Remove function.
3679 (x86_64_register_virtual_type): Remove function.
3680 (x86_64_register_type): New function.
3681 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
3682 x86_64_register_convert_to_raw): Remove functions.
3683 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
3684 (x86_64_use_struct_convention): Make static. Adjust for renamed
3685 defines.
3686 (x86_64_frame_init_saved_regs): Remove function.
3687 (x86_64_push_arguments): Make static. Change to accept a regcache
3688 as argument.
3689 (x86_64_store_return_value, x86_64_extract_return_value): Make
3690 static. Rewrite based on i386 counterparts.
3691 (x86_64_push_dummy_call): New function.
3692 (X86_64_NUM_SAVED_REGS): New define.
3693 (x86_64_register_number): Remove function.
3694 (x86_64_store_struct_return): Remove function.
3695 (x86_64_frameless_function_invocation,
3696 x86_64_function_has_prologue): Remove functions.
3697 (PROLOG_BUFSIZE): Remove define.
3698 (struct x86_64_frame_cache): New structure.
3699 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
3700 x86_64_frame_cache, x86_64_frame_this_id,
3701 x86_64_frame_prev_register, x86_64_frame_p,
3702 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
3703 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
3704 functions.
3705 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
3706 variables.
3707 (x86_64_skip_prologue): Rewrite in terms of
3708 x86_64_analyze_prologue.
3709 (x86_64_frame_base_address): New function.
3710 (x86_64_frame_base): New variable.
3711 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
3712 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
3713 set deprecated_fp_regnum, deprecated_register_size,
3714 deprecated_register_bytes, register_raw_size, register_byte,
3715 register_virtual_type, register_convertiable,
3716 register_convert_to_virtual, convert_to_raw,
3717 deprecated_get_saved_register, deprecated_target_read_fp,
3718 deprecated_push_arguments, deprecated_push_return_address,
3719 deprecated_pop_frame, deprecated_store_struct_return,
3720 deprecated_frame_init_saved_regs, deprecated_frame_chain,
3721 frameless_function_invocation, deprecated_frame_saved_pc,
3722 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
3723 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
3724 deprecated_init_frame_pc and virtual_frame_pointer. Call
3725 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
3726 and x86_64_frame_p. Call frame_base_set_default to register
3727 x86_64_frame_base.
3728 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
3729 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
3730 (_initialize_x86_64_tdep): Remove function.
3731 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
3732 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
3733 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
3734 define.
3735 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
3736 (x86_64_linux_sigcontext_addr): Rewrite.
3737 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
3738 x86_64_linux_frame_saved_pc): Remove functions.
3739 (x86_64_linux_pc_in_sigtramp): Renamed from
3740 x86_64_linux_in_sigtramp. Try harder to recognize a signal
3741 trampoline.
3742 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
3743 Remove_functions.
3744 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
3745 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3746 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
3747 (x86_64_regmap): Rename to regmap.
3748 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
3749 x86_64_num_gregs.
3750 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
3751 x86_64_regmap.
3752 (x86_64_fxsave_offset): Remove function.
3753 (supply_fpregset): Simply call x86_64_supply_fxsave.
3754 (fill_fpregset): Simply call x86_64_fill_fxsave.
3755 (fetch_inferior_registers, store_inferior_registers): Avoid
3756 asignment in if-statement.
3757 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
3758 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
3759 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
3760 (fetch_core_registers): Remove function.
3761 (linux_elf_core_fns): Remove.
3762 (offsetoff): Don't define.
3763 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
3764 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
3765 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
3766 add core-regset.o.
3767 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
3768 protection against multiple includes instead of NM_X86_64_h. Add
3769 various comments. Include "config/nm-linux.h". Don't include
3770 <signal.h>.
3771 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
3772 GET_THREAD_SIGNALS): Remove defines.
3773 (x86_64_register_u_addr, kernel_u_size,
3774 lin_thread_get_thread_signals): Remove prototypes.
3775 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
3776 [HAVE_LINK_H]: Don't include "solib.h".
3777 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
3778 * config/i386/tm-x86-64linux.h: Fix comments.
3779 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
3780 x86-64-tdep.o): Update dependencies.
3781
c25083af
AC
37822003-05-30 Andrew Cagney <cagney@redhat.com>
3783
c8f55a7b
AC
3784 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
3785 Change parameter type to a "struct regcache *".
3786
c25083af
AC
3787 * gdbarch.sh: Regardless of the multi-arch level, always define
3788 the macro when not already defined.
3789 * gdbarch.h, gdbarch.c: Re-generate.
3790
fbe586ae
RH
37912003-05-30 Richard Henderson <rth@redhat.com>
3792
3793 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
3794 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
3795 (alpha_mdebug_frame_this_id): Likewise.
3796 (alpha_mdebug_frame_prev_register): Likewise.
3797 (alpha_mdebug_frame_base_address): Likewise.
3798 (alpha_mdebug_frame_locals_address): Likewise.
3799 (alpha_mdebug_frame_args_address): Likewise.
3800 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
3801 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
3802 (alpha_heuristic_frame_unwind_cache): Make static; add missing
3803 loop increment.
3804 (alpha_heuristic_frame_this_id): Make static.
3805 (alpha_heuristic_frame_prev_register): Likewise.
3806 (alpha_heuristic_frame_base_address): Likewise.
3807 * alpha-tdep.h: Update.
3808
acd5c798
MK
38092003-05-30 Mark Kettenis <kettenis@gnu.org>
3810
3811 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
3812 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
3813 defenitions.
3814 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
3815 * i386-tdep.c: Mark functions that are 64-bit safe as such.
3816 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
3817 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
3818 I386_ST0_REGNUM): New defines.
3819 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
3820 codestream_get): Remove define.
3821 (codestream_next_addr, condestream_addr, condestream_buf,
3822 codestream_off, codestream_cnt): Remove variables.
3823 (codestream_fill, codestream_seek, codestream_read): Remove
3824 functions.
3825 (i386_follow_jump): Rewrite to avoid usage of removed codestream
3826 functionality.
3827 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
3828 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
3829 i386_frame_saved_pc, i386_saved_pc_after_call,
3830 i386_frame_num_args, i386_frame_init_saved_regs,
3831 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
3832 i386_push_arguments): Remove functions.
3833 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
3834 functionality. Use i386_analyze_prologue instead of
3835 i386_get_frame_setup.
3836 (I386_NUM_SAVED_REGS): New define.
3837 (struct i386_frame_cache): New structure.
3838 (i386_alloc_frame_cache, i386_analyze_struct_return,
3839 i386_skip_probe, i386_analyze_frame_setup,
3840 i386_analyze_register_saves, i386_analyze_prologue,
3841 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
3842 i386_frame_prev_register, i386_sigtramp_frame_cache,
3843 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
3844 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
3845 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
3846 New functions.
3847 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
3848 New variables.
3849 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
3850 I386_EAX_REGNUM and I386_EDX_REGNUM.
3851 (i386_extract_return_value, i386_store_return_value): Use
3852 I386_ST0_REGNUM where appropriate.
3853 (i386_extract_struct_value_address): Rewrite to use extract_address.
3854 (i386_svr4_pc_in_sigtramp): Add comment.
3855 (i386_svr4_sigcontext_addr): Rewrite.
3856 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
3857 TDEP->sc_sp_offset.
3858 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
3859 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
3860 of new defines. Set push_dummy_call, don't set
3861 deprecated_push_arguments, deprecated_push_return_address,
3862 deprecated_pop_frame. Don't set parm_boundary. Don't set
3863 deprecated_frame_chain, deprecated_frame_saved_pc,
3864 deprecated_saved_pc_after_call. Set unwind_dummy_id,
3865 save_dummy_frame_tos, unwind_pc. Call
3866 frame_unwind_append_predicate and frame_base_set_default. Don't
3867 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
3868 Don't set frameless_function_invocation. Don't set
3869 deprecated_register_bytes, deprecated_register_size,
3870 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
3871 * i386-linux-tdep.c: Fix formatting in some comments.
3872 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
3873 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
3874 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
3875 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
3876 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
3877 redundant parentheses.
3878 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
3879 (i386_linux_sigcontext_addr): Use it. Rewrite.
3880 (find_minsym_and_objfile): Change name of second argument.
3881 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
3882 changed. Use frame_pc_unwind instead of
3883 DEPRECATED_SAVED_PC_AFTER_CALL.
3884 (i386_linux_init_abi): Don't set deprecated_register_bytes.
3885 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
3886 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
3887 unwinder.
3888 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
3889 "dummy-frame.h".
3890 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
3891 (_initialize_i386_cygwin_tdep): New prototype.
3892 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
3893 deprecated_frame_chain_valid.
3894 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
3895 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
3896 Rely on the SVR4 defaults.
3897 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
3898 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
3899
c89b70f1
AC
39002003-05-30 Andrew Cagney <cagney@redhat.com>
3901
3902 * infcall.c (call_function_by_hand): Always call
3903 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
3904
85b32d22
RH
39052003-05-30 Richard Henderson <rth@redhat.com>
3906
c89b70f1
AC
3907 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
3908 increment.
85b32d22 3909
bfe51b1e
JB
39102003-05-29 Jim Blandy <jimb@redhat.com>
3911
3912 Use gdbarch methods for solib stuff on PowerPC Linux.
3913 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
3914 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
3915 show through.
3916 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3917 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
3918 giving the same effect as the #definitions above.
3919
1abf022c
AF
39202003-05-29 Adam Fedor <fedor@gnu.org>
3921
3922 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
3923 (find_implementation_from_class): Replace it with the standard
3924 case i.e. do nothing.
3925
d2427a71
RH
39262003-05-29 Richard Henderson <rth@redhat.com>
3927
3928 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
3929 (alpha_linux_sigtramp_offset): Use it. Make static.
3930 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
3931 update for new frame model.
3932 * alpha-mdebug-tdep.c: New file.
3933 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
3934 (alpha_osf1_init_abi): Install it.
3935 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
3936 (linked_proc_desc_table): Remove.
3937 (alpha_frame_past_sigtramp_frame): Remove.
3938 (alpha_dynamic_sigtramp_offset): Remove.
3939 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
3940 (alpha_proc_desc_is_dyn_sigtramp): Remove.
3941 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
3942 (push_sigtramp_desc): Remove.
3943 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
3944 (alpha_cannot_store_register): Likewise.
3945 (alpha_sigcontext_addr): Remove.
3946 (alpha_find_saved_regs): Remove.
3947 (alpha_frame_init_saved_regs): Remove.
3948 (alpha_init_frame_pc_first): Remove.
3949 (read_next_frame_reg): Remove.
3950 (alpha_frame_saved_pc): Remove.
3951 (alpha_saved_pc_after_call): Remove.
3952 (temp_proc_desc, temp_saved_regs): Remove.
3953 (alpha_about_to_return): Remove.
3954 (cached_proc_desc): Remove.
3955 (alpha_frame_chain): Remove.
3956 (alpha_print_extra_frame_info): Remove.
3957 (alpha_init_extra_frame_info): Remove.
3958 (alpha_frame_locals_address): Remove.
3959 (alpha_frame_args_address): Remove.
3960 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
3961 (alpha_push_dummy_frame): Remove.
3962 (alpha_pop_frame): Remove.
3963 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
3964 (alpha_read_insn): New.
3965 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
3966 for different insn encodings.
3967 (alpha_in_lenient_prologue): Remove.
3968 (struct alpha_sigtramp_unwind_cache): New.
3969 (alpha_sigtramp_frame_unwind_cache): New.
3970 (alpha_sigtramp_register_address): New.
3971 (alpha_sigtramp_frame_this_id): New.
3972 (alpha_sigtramp_frame_prev_register): New.
3973 (alpha_sigtramp_frame_unwind): New.
3974 (alpha_sigtramp_frame_p): New.
3975 (struct alpha_heuristic_unwind_cache): New.
3976 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
3977 don't count nop insns that occur between functions.
3978 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
3979 heuristic_proc_desc, but without the mdebug wrapping.
3980 (alpha_heuristic_frame_this_id): New.
3981 (alpha_heuristic_frame_prev_register): New.
3982 (alpha_heuristic_frame_unwind): New.
3983 (alpha_heuristic_frame_p): New.
3984 (alpha_heuristic_frame_base_address): New.
3985 (alpha_heuristic_frame_base): New.
3986 (alpha_unwind_dummy_id): New.
3987 (alpha_unwind_pc): New.
3988 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
3989 frame related deprecated initializations; install replacements.
3990 (alpha_dump_tdep): Remove.
3991 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
3992 (alpha_read_insn, alpha_after_prologue,
3993 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
3994 alpha_heuristic_frame_prev_register,
3995 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
3996 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
3997 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
3998 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
3999
93ec1121
AC
40002003-05-29 Andrew Cagney <cagney@redhat.com>
4001
4002 * gdb_assert.h (gdb_assert_fail): Provide different definitions
4003 dependant on the availability of ASSERT_FUNCTION.
4004 (ASSERT_FUNCTION): Do not define when there is no function name.
4005
98f08d3d
KB
40062003-05-29 Kevin Buettner <kevinb@redhat.com>
4007
4008 From Jimi X <jimix@watson.ibm.com>:
4009 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
4010
0897f59b
JB
40112003-05-28 Jim Blandy <jimb@redhat.com>
4012
4013 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
4014 argument to ptrace to int; the system headers should give it the
4015 right type, and pointers don't fit in ints on powerpc64-*-*.
4016
14898363
L
40172003-05-28 H.J. Lu <hongjiu.lu@intel.com>
4018
4019 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
4020 DW_TAG_catch_block.
4021
a7a48797
EZ
40222003-05-26 Elena Zannoni <ezannoni@redhat.com>
4023
4024 * stabsread.c (dbx_lookup_type): Make static.
4025 (read_type): Ditto.
4026 (add_undefined_type): Ditto.
4027 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
4028 not export.
4029
f5479e9c
EZ
40302003-05-26 Elena Zannoni <ezannoni@redhat.com>
4031
4032 * hpread.c (hpread_has_name): Make static.
4033 (hpread_psymtab_to_symtab): Ditto.
4034 (file_exists): Ditto.
4035 (hpread_call_pxdb): Ditto.
4036 (hpread_pxdb_needed): Ditto.
4037 (hpread_quick_traverse): Ditto.
4038 (hpread_get_header): Ditto.
4039 (hpread_get_lntt): Ditto.
4040 (hpread_get_slt): Ditto.
4041 (class_of): Ditto.
4042
eb2e12d7
AS
40432003-05-25 Andreas Schwab <schwab@suse.de>
4044
78bf922a
AS
4045 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
4046 stack_align and deprecated_extra_stack_alignment_needed.
4047 (m68k_stack_align): Delete.
4048
eb2e12d7
AS
4049 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
4050 (m68k_register_virtual_size): Likewise.
4051 (altos_skip_prologue): Remove obsolete function.
4052 (isi_frame_num_args): Likewise.
4053 (news_frame_num_args): Likewise.
4054 (m68k_fix_call_dummy): Make static.
4055 (m68k_push_dummy_frame): Likewise.
4056 (m68k_pop_frame): Likewise.
4057 (m68k_skip_prologue): Likewise.
4058 (m68k_frame_init_saved_regs): Likewise.
4059 (m68k_saved_pc_after_call): Likewise.
4060 (m68k_get_longjmp_target): Make multi-arch.
4061 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
4062 structure. Register m68k_get_longjmp_target if enabled.
4063 * m68k-tdep.h (struct gdbarch_tdep): Define.
4064 * config/m68k/tm-m68k.h: Don't include "regcache.h".
4065
4066 * Makefile.in (config.status): Also depend on configure.tgt
4067 and configure.host.
4068 (m68klinux-tdep.o): Update dependencies.
4069 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
4070 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
4071 (M68K_LINUX_JB_PC): Define.
4072 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
4073 and take additional parameter.
4074 (m68k_linux_sigtramp_saved_pc): Update.
4075 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
4076 m68k_linux_pc_in_sigtramp, in_plt_section,
4077 find_solib_trampoline_target.
4078 * config/m68k/tm-linux.h: Don't include any tm headers.
4079 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
4080 (JB_ELEMENT_SIZE): Likewise.
4081 (JB_PC): Likewise.
4082 (GET_LONGJMP_TARGET): Likewise.
4083 (IN_SIGTRAMP): Likewise.
4084 (SVR4_SHARED_LIBS): Define this and include "solib.h".
4085
eb2c22dc
MK
40862003-05-25 Mark Kettenis <kettenis@gnu.org>
4087
4088 * sparc-tdep.c (sparc32_do_push_arguments): New function.
4089 (sparc32_push_arguments): Re-implement by calling
4090 sparc32_do_push_arguments.
4091
44b7b84e
MK
40922003-05-25 Mark Kettenis <kettenis@gnu.org>
4093
4094 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
4095 SPARC_O1_REGNUM): New defines.
4096 (sparc32_extract_return_value): Rewrite to operate on a regcache.
4097 (sparc32_store_return_value): New function.
4098 (sparc_extract_struct_value_address): Rewrite to operate on a
4099 regcache.
4100 (sparc_gdbarch_init): Don't set
4101 deprecated_extract_struct_value_address. Set
4102 extract_struct_value_address instead. Don't set
4103 deprecated_extract_return_value and deprecated_store_return_value
4104 for 32-bit targets. Set extract_return_value and
4105 store_return_value instead.
4106 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
4107 DEPRECTAED_EXTRACT_RETURN_VALUE,
4108 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
4109 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
4110 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
4111 (sparc_store_return_value): Remove prototype.
4112 (sparc32_store_return_value): New prototype.
4113 (sparc32_extract_return_value, sparc_extract_struct_value_address):
4114 Adjust prototypes.
4115
f6ad61e3
MK
41162003-05-24 Mark Kettenis <kettenis@gnu.org>
4117
4118 * sparcnbsd-tdep.c: Include "gdb_string.h".
4119
b276f1bb
AC
41202003-05-23 Andrew Cagney <cagney@redhat.com>
4121
4122 * p-valprint.c (pascal_val_print): Replace extract_address with
4123 the inline equivalent extract_unsigned_integer.
4124 * jv-valprint.c (java_value_print): Ditto.
4125 * ada-valprint.c (ada_val_print_1): Ditto.
4126 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
4127
e76c5fcc
TR
41282003-05-23 Theodore A. Roth <troth@openavr.org>
4129
4130 * blockframe.c (frameless_look_for_prologue): Remove unused
4131 after_prologue variable.
4132
2cdd89cb
MK
41332003-05-23 Mark Kettenis <kettenis@gnu.org>
4134
4135 * blockframe.c (get_pc_function_start): Rewrite to avoid
4136 asignments in if-statements.
4137
182d43bc
EZ
41382003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
4139
4140 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 4141 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
4142 files, don't relocate absolute symbols (and do use mst_abs).
4143
e8f3fcdd
AC
41442003-05-23 Andrew Cagney <cagney@redhat.com>
4145
4146 * objc-lang.c: Include "gdb_assert.h".
4147 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
4148 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
4149 (gdb_check, gdb_check_fatal): Delete functions.
4150 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
4151 gdb_assert.
4152 (parse_selector, parse_method, find_methods, find_imps): Ditto.
4153 * Makefile.in (objc-lang.o): Update dependencies.
4154
3c23e6fb
ILT
41552003-05-22 Ian Lance Taylor <ian@airs.com>
4156
4157 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
4158 with fprintf_filtered, not fprintf_unfiltered.
4159
af1342ab
AC
41602003-05-22 Andrew Cagney <cagney@redhat.com>
4161
4162 * stack.c (frame_info): Inline extract_address, replacing it with
4163 extract_unsigned_integer.
4164 * findvar.c (unsigned_pointer_to_address): Ditto.
4165 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
4166 * dwarf2expr.c (dwarf2_read_address): Ditto.
4167 * frame.c (frame_pc_unwind): Update comment.
4168 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
4169
47e242ec
JJ
41702003-05-22 Jeff Johnston <jjohnstn@redhat.com>
4171
4172 * infptrace.c (detach): Call print_sys_errmsg rather than
4173 perror_with_name to issue warning message when errno is non-zero
4174 after calling ptrace detach.
4175
e2ac8128
JB
41762003-05-21 J. Brobecker <brobecker@gnat.com>
4177
4178 * config/pa/tm-hppa.h: Delete some unused macros. Move some
4179 macro definitions from here...
4180 * hppa-tdep.c: ...to there.
4181
92b3541e
KB
41822003-05-20 Kevin Buettner <kevinb@redhat.com>
4183
4184 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
4185 register_ptrace_addr(). Fix all callers.
4186
55809acb
AS
41872003-05-21 Andreas Schwab <schwab@suse.de>
4188
4189 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
4190 dependencies.
4191 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
4192 end.
4193 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
4194 (_initialize_m68k_linux_tdep): New function.
4195 (m68k_linux_frame_saved_pc): Make static.
4196 (m68k_linux_extract_return_value): Likewise.
4197 (m68k_linux_store_return_value): Likewise.
4198 (m68k_linux_extract_struct_value_address): Likewise.
4199 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
4200 Remove.
4201 (DEPRECATED_STORE_RETURN_VALUE): Remove.
4202 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
4203 (DEPRECATED_FRAME_SAVED_PC): Remove.
4204
0fbc10f7
KW
42052003-05-20 Kris Warkentin <kewarken@qnx.com>
4206
4207 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
4208 regset numbering rather than our own.
4209
58da2eb2
DC
42102003-05-19 David Carlton <carlton@bactrian.org>
4211
4212 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
4213
1fcb5155
DC
42142003-05-19 David Carlton <carlton@bactrian.org>
4215
4216 Partial fix for PR c++/827.
4217 * cp-support.h: Include symtab.h.
4218 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
4219 * cp-namespace.c: Update contributors.
4220 (cp_lookup_symbol_nonlocal): New.
4221 (lookup_namespace_scope, cp_lookup_symbol_namespace)
4222 (lookup_symbol_file): Ditto.
4223 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
4224 * block.h: Declare block_scope, block_using, block_global_block.
4225 * block.c (block_scope): New.
4226 (block_using, block_global_block): Ditto.
4227 * Makefile.in (cp_support_h): Depend on symtab_h.
4228 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
4229
5f9a71c3
DC
42302003-05-19 David Carlton <carlton@bactrian.org>
4231
4232 * language.h (struct language_defn): Add 'la_value_of_this'
4233 and 'la_lookup_symbol_nonlocal' members.
4234 * symtab.h: Declare basic_lookup_symbol_nonlocal,
4235 lookup_symbol_static, lookup_symbol_global,
4236 lookup_symbol_aux_block.
4237 * symtab.c (lookup_symbol_aux): Call language hooks to determine
4238 if we should search fields of this and how to do static/global
4239 lookup.
4240 (lookup_symbol_aux_block): Make extern.
4241 (basic_lookup_symbol_nonlocal): New.
4242 (lookup_symbol_static, lookup_symbol_global): Ditto.
4243 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
4244 'la_lookup_symbol_nonlocal' members.
4245 * c-lang.c (c_language_defn, cplus_language_defn)
4246 (asm_language_defn, minimal_language_defn): Ditto.
4247 * jv-lang.c (java_language_defn): Ditto.
4248 * language.c (unknown_language_defn, auto_language_defn)
4249 (local_language_defn): Ditto.
4250 * m2-lang.c (m2_language_defn): Ditto.
4251 * objc-lang.c (objc_language_defn): Ditto.
4252 * scm-lang.c (scm_language_defn): Ditto.
4253 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
4254 * p-lang.c (pascal_language_defn): Ditto for both.
4255 * Makefile.in (f-lang.o): Depend on value_h.
4256 (p-lang.o): Ditto.
4257
89a9d1b1
DC
42582003-05-19 David Carlton <carlton@bactrian.org>
4259
4260 * block.h: Declare block_static_block.
4261 * block.c (block_static_block): New.
4262 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
4263 lookup_symbol_aux_local, calling block_static_block instead.
4264 (lookup_symbol_aux_local): Delete 'static_block' argument.
4265
eed3f8ab
DC
42662003-05-19 David Carlton <carlton@bactrian.org>
4267
4268 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
4269
a09d8bda
ML
42702003-05-19 Michal Ludvig <mludvig@suse.cz>
4271
4272 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
4273 register numbers mapping.
4274
69636828
AF
42752003-05-18 Adam Fedor <fedor@gnu.org>
4276
4277 * symtab.c (completion_list_objc_symbol): New function.
4278 (make_symbol_completion_list): Use it to add ObjC symbols
4279 when looking though the list.
4280 (language_search_unquoted_string): New function.
4281 (make_file_symbol_completion_list): Use it.
4282
55baeb84
AS
42832003-05-18 Andreas Schwab <schwab@suse.de>
4284
d0b45d99
AS
4285 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
4286 dependencies.
4287 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
4288 as m68k_linux_extract_return_value.
4289 (DEPRECATED_STORE_RETURN_VALUE): Define as
4290 m68k_linux_store_return_value.
4291 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
4292 m68k_linux_extract_struct_value_address.
4293 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
4294 get_next_frame, get_frame_base, get_frame_pc.
4295 (m68k_linux_frame_saved_pc): Use get_frame_base.
4296 (m68k_linux_extract_return_value): New function.
4297 (m68k_linux_store_return_value): New function.
4298 (m68k_linux_extract_struct_value_address): New function.
4299 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
4300
55baeb84
AS
4301 * c-exp.y (typebase): Remove duplicate occurence of
4302 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 4303 of lookup_signed_typename.
55baeb84 4304
b6b08ebf
MK
43052003-05-18 Mark Kettenis <kettenis@gnu.org>
4306
4307 * dwarf2loc.c (find_location_expression): Change type of second
4308 argument to `size_t *'.
4309 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
4310 for size variable.
4311
5ad1c190
DC
43122003-05-18 David Carlton <carlton@bactrian.org>
4313
4314 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
4315 'linkage_name'. Add comment.
4316 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
4317 'linkage_name'.
4318 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
4319 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
4320 (lookup_block_symbol): Ditto.
4321
b8b527c5
AC
43222003-05-16 Andrew Cagney <cagney@redhat.com>
4323
4324 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
4325 * gdbarch.h, gdbarch.c: Re-generate.
4326 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
4327 * TODO (REGISTER_BYTES): Delete reference.
4328 * alpha-tdep.c (alpha_gdbarch_init): Update.
4329 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4330 * x86-64-tdep.c (x86_64_init_abi): Update.
4331 * vax-tdep.c (vax_gdbarch_init): Update.
4332 * v850-tdep.c (v850_gdbarch_init): Update.
4333 * sparc-tdep.c (sparc_gdbarch_init): Update.
4334 * sh-tdep.c (sh_gdbarch_init): Update.
4335 * s390-tdep.c (s390_gdbarch_init): Update.
4336 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4337 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
4338 (ns32k_gdbarch_init_32382): Update.
4339 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4340 * mcore-tdep.c (mcore_gdbarch_init): Update.
4341 * m68k-tdep.c (m68k_gdbarch_init): Update.
4342 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4343 * ia64-tdep.c (ia64_gdbarch_init): Update.
4344 * i386-tdep.c (i386_gdbarch_init): Update.
4345 * i386-linux-tdep.c (i386_linux_init_abi): Update.
4346 * hppa-tdep.c (hppa_gdbarch_init): Update.
4347 * h8300-tdep.c (h8300_gdbarch_init): Update.
4348 * frv-tdep.c (frv_gdbarch_init): Update.
4349 * cris-tdep.c (cris_gdbarch_init): Update.
4350 * avr-tdep.c (avr_gdbarch_init): Update.
4351 * arm-tdep.c (arm_gdbarch_init): Update.
4352 * sparc-tdep.c (sparc_pop_frame): Update.
4353 * rs6000-tdep.c (rs6000_pop_frame): Update.
4354 * remote.c (init_remote_state): Update.
4355 (remote_prepare_to_store): Update.
4356 * remote-vx.c (vx_prepare_to_store): Update.
4357 * remote-sds.c (sds_fetch_registers): Update.
4358 (sds_prepare_to_store): Update.
4359 * remote-array.c: Update.
4360 * regcache.c (init_legacy_regcache_descr): Update.
4361 (init_regcache_descr): Update.
4362 * mips-tdep.c (mips_eabi_extract_return_value): Update.
4363 (mips_o64_extract_return_value): Update.
4364 * irix5-nat.c (fetch_core_registers): Update.
4365 * irix4-nat.c (fetch_core_registers): Update.
4366 * i386-tdep.h: Update.
4367 * hppa-tdep.c (pa_do_registers_info): Update.
4368 (pa_do_strcat_registers_info): Update.
4369 * cris-tdep.c (cris_register_bytes_ok): Update.
4370 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
4371 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
4372 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
4373 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
4374 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
4375 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
4376 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
4377 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
4378 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
4379 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
4380 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
4381 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
4382 (REGISTER_BYTES_OK): Update.
4383 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
4384 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
4385
ee2842e2
ILT
43862003-05-16 Ian Lance Taylor <ian@airs.com>
4387
4388 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
4389 (vax_print_insn, print_insn_arg): Remove static functions.
4390 (vax_gdbarch_init): Call set_gdbarch_print_insn with
4391 print_insn_vax from opcodes library.
4392 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
4393
973177d3
AC
43942003-05-15 Andrew Cagney <cagney@redhat.com>
4395
aaab4dba
AC
4396 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
4397 * target.h (memory_breakpoint_from_pc): Delete declaration.
4398 * mem-break.c (memory_breakpoint_from_pc): Delete function.
4399 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
4400 * monitor.c (monitor_insert_breakpoint): Use
4401 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
4402 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
4403 * gdbarch.h, gdbarch.c: Re-generate.
4404 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
4405 (sparc_gdbarch_init): Set breakpoint_from_pc to
4406 sparc_breakpoint_from_pc.
4407 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
4408 (BREAKPOINT_FROM_PC): Define.
4409 (sparc_breakpoint_from_pc): Declare.
4410 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
4411 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
4412 (BREAKPOINT_FROM_PC): Define.
4413 (BREAKPOINT): Delete macro.
4414 * target.h: Update comment.
4415 * s390-tdep.c (s390_gdbarch_init): Update comments.
4416 * remote.c: Update comments.
4417 * remote-mips.c: Update comments.
4418 * proc-api.c (write_with_trace): Do not check for a breakpoint.
4419 * mem-break.c: Update comment.
4420 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
4421 (ia64_memory_insert_breakpoint): Update.
4422 * config/sparc/tm-sparc.h: Update comment.
4423 * config/pa/tm-hppa64.h: Update comment.
4424 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4425 (rs6000_breakpoint_from_pc): Update.
4426 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
4427 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
4428 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
4429 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
4430 (mips_breakpoint_from_pc): Update.
4431 (mips_dump_tdep): Update.
4432
e06963ff
AC
4433 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
4434 * minsyms.c (lookup_minimal_symbol): Inline
4435 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
4436
973177d3
AC
4437 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
4438 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4439 * p-lang.c (pascal_printstr): Ditto.
4440 * objc-lang.c (objc_printstr): Ditto.
4441 * m2-lang.c (m2_printstr): Ditto.
4442 * jv-valprint.c (java_print_value_fields): Ditto.
4443 * f-lang.c (f_printstr): Ditto.
4444 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
4445 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
4446 for repeat_count_threshold.
4447 * Makefile.in (cp-valprint.o): Update dependencies.
4448
5ea2bd7f 44492003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 4450
5ea2bd7f
JJ
4451 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
4452 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
4453 they start with mov r2,r12. Support skipping over indirect stores
4454 of the input registers. Upon hitting a non-nop branch instruction
4455 or predicated instruction, bail out by setting lim_pc to the current
4456 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
4457 beyond our calculated value and we have trust_limit set,
4458 use the lim_pc value.
4459
cc8c88f3
AC
44602003-05-15 Andrew Cagney <cagney@redhat.com>
4461
4462 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
4463 generic_find_dummy_frame.
4464 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
4465 (deprecated_generic_find_dummy_frame): Update.
4466 (deprecated_read_register_dummy): Update.
4467 * frame.c (deprecated_generic_get_saved_register): Update.
4468
909cd28e
TR
44692003-05-15 Theodore A. Roth <troth@openavr.org>
4470
4471 * avr-tdep.c (avr_breakpoint_from_pc): New function.
4472 (avr_gdbarch_init): Set breakpoint_from_pc method.
4473
b923b08d
AC
44742003-05-15 Andrew Cagney <cagney@redhat.com>
4475
4476 * regcache.c (build_regcache): Set deprecated_register_valid
4477 directly.
4478 (deprecated_grub_regcache_for_register_valid): Delete function.
4479 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
4480 declaration.
4481
ae2f03ac 44822003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
4483
4484 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
4485 * symtab.c (lookup_symbol_aux): Delete calls to
4486 lookup_symbol_aux_minsyms.
4487 (lookup_symbol_aux_minsyms): Comment out function and
4488 prototype. Delete lookup by mangled name.
ae2f03ac 4489
18ec9831
KB
44902003-05-14 Kevin Buettner <kevinb@redhat.com>
4491
4492 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
4493 correctly indicate an empty stack and ``stack_allocated'' to the
4494 indicate the number of elements initially allocated.
4495 (dwarf_expr_grow_stack): Simplify method for computing new
4496 stack size. Don't loop infinitely if ``stack_len'' is zero.
4497 (execute_stack_op): Move ``ctx->in_reg'' initialization
4498 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
4499 be used in conjuction with DW_OP_piece. Revise error message
4500 accordingly.
4501
de18ac1f
TR
45022003-05-14 Theodore A. Roth <troth@openavr.org>
4503
4504 * MAINTAINERS: Update my email address.
4505 * avr-tdep.c: Ditto.
4506
176620f1
EZ
45072003-05-14 Elena Zannoni <ezannoni@redhat.com>
4508
4509 * symtab.h (enum domain_enum): Rename from namespace_enum.
4510 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
4511 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
4512 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
4513 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
4514 TYPES_NAMESPACE, METHODS_NAMESPACE.
4515 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
4516 (struct symbol, struct partial_symbol): Rename field
4517 'namespace_enum namespace' to 'domain_enum domain'.
4518 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
4519 Delete old define kludge for namespace.
4520
4521 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
4522 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
4523 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
4524 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
4525 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
4526 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
4527 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
4528 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
4529 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
4530 occurrences of the above.
4531
b7f31508
ILT
45322003-05-14 Ian Lance Taylor <ian@airs.com>
4533
4534 * Makefile.in (install-only): Use $(SHELL) when running
4535 mkinstalldirs.
4536
2fdbdd39
ILT
45372003-05-13 Ian Lance Taylor <ian@airs.com>
4538
a208d82c
ILT
4539 * MAINTAINERS (write after approval): Add myself.
4540
2fdbdd39
ILT
4541 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
4542 second and third arguments.
4543 * ser-tcp.c (_initialize_ser_tcp): Likewise.
4544 * ser-unix.c (_initialize_ser_hardwire): Likewise.
4545
fbd9dcd3
AC
45462003-05-13 Andrew Cagney <cagney@redhat.com>
4547
4548 * defs.h (store_address): Delete declaration.
4549 findvar.c (store_address): Delete function.
4550 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
4551 store_unsigned_integer.
4552 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
4553 * v850-tdep.c (v850_push_arguments): Ditto.
4554 * sparc-tdep.c (sparc_get_saved_register): Ditto.
4555 * sh-tdep.c (sh64_get_saved_register): Ditto.
4556 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
4557 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
4558 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
4559 (mips_get_saved_register): Ditto.
4560 * ia64-tdep.c (ia64_get_saved_register): Ditto.
4561 (find_func_descr, ia64_push_arguments): Ditto.
4562 * i386-tdep.c (i386_push_arguments): Ditto.
4563 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4564 * frv-tdep.c (frv_push_arguments): Ditto.
4565 * frame.c (legacy_saved_regs_prev_register): Ditto.
4566 (deprecated_generic_get_saved_register): Ditto.
4567 * findvar.c (unsigned_address_to_pointer): Ditto.
4568 * dwarf2read.c (dwarf2_const_value): Ditto.
4569 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
4570 * alpha-tdep.c (alpha_push_arguments): Ditto.
4571
6760f9e6
JB
45722003-05-12 J. Brobecker <brobecker@gnat.com>
4573
4574 * NEWS: Mention that the hppa-hpux port has been partially
4575 multiarched (32bit ABIT only, so far).
4576
30e221b4
AC
45772003-05-11 Andrew Cagney <cagney@redhat.com>
4578
4579 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
4580 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
4581 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
4582 sim/testsuite/sim/arm/misaligned2.ms, and
4583 sim/testsuite/sim/arm/misaligned3.ms.
4584 * disasm.h (struct ui_file): Add opaque struct declaration.
4585 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
4586 * frame.h (struct ui_file): Ditto.
4587
dea7f9ba
MK
45882003-05-11 Mark Kettenis <kettenis@gnu.org>
4589
4590 * value.h: Pretty print.
4591
01986c48
MK
45922003-05-10 Mark Kettenis <kettenis@gnu.org>
4593
4594 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
4595
123a958e
AC
45962003-05-08 Andrew Cagney <cagney@redhat.com>
4597
4598 * regcache.h (max_register_size): Delete declaration.
4599 * regcache.c (max_register_size): Delete function.
4600 (struct regcache_descr): Delete field "max_register_size".
4601 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
4602 registers fit in MAX_REGISTER_SIZE.
4603 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
4604 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
4605 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
4606 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
4607 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
4608 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
4609 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
4610 * dve3900-rom.c, hppa-tdep.c: Ditto.
4611
eb294659
DC
46122003-05-08 David Carlton <carlton@math.stanford.edu>
4613
4614 * valops.c (push_word): Fix typo.
4615
d9d9c31f
AC
46162003-05-08 Andrew Cagney <cagney@redhat.com>
4617
4618 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
4619 * gdbarch.h: Re-generate.
4620 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
4621 (legacy_max_register_raw_size): Delete declaration.
4622 * regcache.c (legacy_max_register_raw_size): Delete function.
4623 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
4624 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
4625 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
4626 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
4627 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
4628 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
4629 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
4630 * findvar.c, dwarf2cfi.c: Ditto.
4631
22540ece
AC
46322003-05-08 Andrew Cagney <cagney@redhat.com>
4633
4634 * mips-tdep.c (read_signed_register): New function, moved to here
4635 from "regcache.c".
4636 (read_signed_register_pid): Ditto.
4637 * regcache.c (read_signed_register_pid): Delete function, moved to
4638 "mips-tdep.c".
4639 (read_signed_register): Ditto.
4640 * regcache.h (read_signed_register): Delete declaration.
4641 (read_signed_register_pid): Delete declaration.
4642
0c92afe8
AC
46432003-05-08 Andrew Cagney <cagney@redhat.com>
4644
4645 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
4646 * gdbarch.h: Re-generate.
4647 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
4648 (legacy_max_register_virtual_size): Delete declaration.
4649 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
4650 * d10v-tdep.c (d10v_print_registers_info): Ditto.
4651 * tracepoint.c (memrange_sortmerge): Ditto.
4652 * sparc-tdep.c (sparc_print_registers): Ditto.
4653 * regcache.c (legacy_max_register_virtual_size): Delete function.
4654
6037b830
JB
46552002-05-08 J. Brobecker <brobecker@gnat.com>
4656
4657 * fork-child.c (escape_bang_in_quoted_argument): New function.
4658 (fork_inferior): Escape '!' characters in quoted arguments
4659 only when needed.
4660
5d62c8b1
JB
46612003-05-08 J. Brobecker <brobecker@gnat.com>
4662
4663 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
4664 the language of the CU is not currently supported by GDB.
4665
20a0e81d
JB
46662003-05-08 J. Brobecker <brobecker@gnat.com>
4667
4668 * defs.h (language): Add language_minimal enum value.
4669 * c-lang.c (minimal_language_defn): New language definition.
4670 (_initialize_c_language): Add the new minimal language to the list
4671 of languages known to GDB.
4672
710ee10a
KB
46732003-05-08 Kevin Buettner <kevinb@redhat.com>
4674
4675 * frame.c (get_frame_type): Don't attempt to lazily initialize
4676 frame's unwinder for legacy frames.
4677
1750fa04
AC
46782003-05-07 Andrew Cagney <cagney@redhat.com>
4679
4680 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
4681 and "regcache" parameters.
4682 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
4683
ddf9f258 46842003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
4685
4686 * dwarf2read.c (dwarf_decode_lines): Only use output of
4687 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
4688 the current address.
4689
87767c29
AC
46902003-05-07 Andrew Cagney <cagney@redhat.com>
4691
4692 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
4693 code.
4694
5e7b2f39
JB
46952003-05-07 Jim Blandy <jimb@redhat.com>
4696
4697 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
4698 'maint info symtabs' and 'maint info psymtabs'.
4699 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
4700 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
4701 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
4702 Declarations updated.
4703 * maint.c (maintenance_list_command): Delete.
4704 (_initialize_maint_cmds): Update calls to add_cmd.
4705 * gdbcmd.h (maintenancelistlist): Delete declaration.
4706 * cli/cli-cmds.c (maintenancelistlist): Delete.
4707 (init_cmd_lists): Don't initialize it.
4708 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
4709
f6684c31
AC
47102003-05-07 Andrew Cagney <cagney@redhat.com>
4711
4712 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
4713 "regcache".
4714 (d10v_print_registers_info): Update.
4715 (d10v_dmap_register, d10v_imap_register): Delete functions.
4716 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
4717 and "imap_register".
4718 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
4719 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
4720 * arch-utils.c (generic_remote_translate_xfer_address): Add
4721 "regcache" and "gdbarch" parameters.
4722 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
4723 parameter. Change class to multi-arch.
4724 * gdbarch.h, gdbarch.c: Re-generate.
4725 * remote.c (remote_xfer_memory): Use
4726 gdbarch_remote_translate_xfer_address.
8ffd9b1b 4727
e4846b08
JJ
47282003-05-07 Jeff Johnston <jjohnstn@redhat.com>
4729
4730 * infrun.c (prev_pc): Move declaration ahead of proceed().
4731 (proceed): Refresh prev_pc value before resuming.
4732 (stop_stepping): Remove code to refresh prev_pc.
4733
6b71b8ac
KW
47342003-05-06 Kris Warkentin <kewarken@qnx.com>
4735
4736 * nto-tdep.c: Removed stray comment.
4737
47979a4b
KW
47382003-05-06 Kris Warkentin <kewarken@qnx.com>
4739
4740 * i386-nto-tdep.c: Fix old K&R function definitions.
4741 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
4742 Also change add_show_from_set() call to add_setshow_cmd().
4743 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
4744
00905d52
AC
47452003-05-05 Andrew Cagney <cagney@redhat.com>
4746
4747 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
4748 (fprint_dummy_frames): New function.
4749 (maintenance_print_dummy_frames): New function.
4750 (_initialize_dummy_frame): Add command "maint print dummy-frames".
4751 * frame.c (fprint_frame_id): Make global.
4752 * frame.h (fprint_frame_id): Declare.
4753 * Makefile.in (dummy-frame.o): Update dependencies.
4754
b1e29e33
AC
47552003-05-05 Andrew Cagney <cagney@redhat.com>
4756
4757 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
4758 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
4759 SIZEOF_CALL_DUMMY_WORDS.
4760 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
4761 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
4762 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
4763 CALL_DUMMY_BREAKPOINT_OFFSET.
4764 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
4765 CALL_DUMMY_START_OFFSET.
4766 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
4767 * gdbarch.h, gdbarch.c: Re-generate.
4768 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
4769 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
4770 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
4771 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
4772 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
4773 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
4774 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
4775 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
4776 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
4777 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
4778 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
4779 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
4780 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
4781 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
4782 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
4783
47842003-05-05 Kris Warkentin <kewarken@qnx.com>
4785
4786 * configure.tgt: Add i[3456]86-*-nto*.
4787 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
4788 * nto-tdep.c: New file. Neutrino target support routines.
4789 * nto-tdep.h: New file. Neutrino target header.
4790 * config/tm-qnxnto.h: New file.
4791 * config/i386/i386nto.mt: New file.
4792 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 4793
0ce3d317
AC
47942003-05-04 Andrew Cagney <cagney@redhat.com>
4795
4796 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
4797 (load_infrun_state): Ditto.
4798 (struct thread_info): Drop "prev_func_name" field.
4799 * thread.c (load_infrun_state): Update.
4800 (save_infrun_state): Update.
4801 * infrun.c (prev_func_name): Delete variable.
4802 (init_wait_for_inferior): Do not clear prev_func_name.
4803 (stop_stepping, keep_going, context_switch): Do not swap
4804 prev_func_name.
4805 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
4806 instead of PC_IN_SIGTRAMP.
4807
46654a5b
AC
48082003-05-04 Andrew Cagney <cagney@redhat.com>
4809
4810 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4811 REGISTER_BYTE with register_offset_hack.
4812 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
4813 that REGISTER_BYTE is consistent with the regcache.
4814 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
4815 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 4816
14b08c1b
MK
48172003-05-04 Mark Kettenis <kettenis@gnu.org>
4818
04c8243f
MK
4819 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
4820 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
4821
14b08c1b
MK
4822 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
4823
c7a11e01
JB
48242003-05-03 J. Brobecker <brobecker@gnat.com>
4825
4826 From Thierry Schneider <tpschneider1@yahoo.com>
4827 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
4828 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
4829 (mi-cmd-symbol.o): Add rule.
4830
7043d8dc
AC
48312003-05-03 Andrew Cagney <cagney@redhat.com>
4832
4833 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
4834 comments noteing that it replaces the old FIX_CALL_DUMMY code.
4835 * gdbarch.h, gdbarch.c: Re-generate.
4836 * d10v-tdep.c (d10v_push_dummy_code): New function.
4837 (d10v_gdbarch_init): Set push_dummy_code.
4838 * infcall.c (legacy_push_dummy_code): New function.
4839 (generic_push_dummy_code): New function.
4840 (push_dummy_code): New function.
4841 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
4842 instead of dummy_addr, to push_dummy_call. Move call to
4843 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
4844 switch.
4845 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
4846
92bf2b80
AC
48472003-05-03 Andrew Cagney <cagney@redhat.com>
4848
4849 * disasm.h (print_insn): Declare.
4850 * disasm.c (init_gdb_disassemble_info): New function.
4851 (gdb_disassembly): Call init_gdb_disassemble_info.
4852 (gdb_print_insn): New function.
4853 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
4854 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
4855 * mcore-tdep.c: Include "disasm.h"
4856 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
4857 * d10v-tdep.c: Include "disasm.h".
4858 (display_trace): Call gdb_print_insn, instead of print_insn.
4859 (print_insn): Delete function.
4860 * printcmd.c: Include "disasm.h".
4861 (print_insn): Delete function.
4862 (print_formatted): Call gdb_print_insn, instead of print_insn.
4863 * Makefile.in (printcmd.o): Update dependencies.
4864 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 4865
27d94c49
AC
48662003-05-02 Andrew Cagney <cagney@redhat.com>
4867
82de1e5b
AC
4868 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
4869 PC_REGNUM, re-indent.
4870 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
4871 PC_REGNUM isn't set.
4872
27d94c49
AC
4873 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
4874 * gdbarch.h, gdbarch.c: Re-generate.
4875 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
4876 register_virtual_size, pc_regnum, or register_bytes.
4877 (D10V_PC_REGNUM): Rename _PC_REGNUM.
4878 (d10v_register_type): Use D10V_PC_REGNUM.
4879 (d10v_print_registers_info, d10v_read_pc): Ditto.
4880 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
4881 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
4882
a9c0dc7f
DC
48832003-05-02 David Carlton <carlton@bactrian.org>
4884
4885 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
4886 the name with mstrsave.
4887
e33d66ec
EZ
48882003-05-02 Elena Zannoni <ezannoni@redhat.com>
4889
4890 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
4891 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
4892 (host_charset_name, target_charset_name): New vars for use by
4893 set/show commands.
4894 (host_charset_enum, target_charset_enum): New enums for set/show
4895 commands.
4896 (set_charset_sfunc, set_host_charset_sfunc,
4897 set_target_charset_sfunc): New functions.
4898 (set_host_charset, set_target_charset): Make static.
4899 (list_charsets, set_host_charset_command,
4900 set_target_charset_command): Delete functions.
4901 (show_charset_command): Rewrite as....
4902 (show_charset): Hook this up with the set/show command mechanism.
4903 (_initialize_charset): Change names of charsets to match the
4904 set/show enums. Use host_charset_name and target_charset_name.
4905 Use set/show mechanism for charset, host-charset, target-charset
4906 commands. Do not make 'show host-charset' and 'show
4907 target-charset' be aliases of 'show charset'.
4908
4909 * charset.h (set_host_charset, set_target_charset): Don't export,
4910 they are not used outside the file.
4911
2b6fd0d8
AC
49122003-05-01 Andrew Cagney <cagney@redhat.com>
4913
4914 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
4915 (gdb_disassembly): Make "di" non static, always initialize and
4916 cleanup. Always use dis_asm_read_memory.
4917 (gdb_dis_asm_read_memory): Delete function.
4918
6ae2f580
AC
49192003-05-01 Andrew Cagney <cagney@redhat.com>
4920
4921 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
4922 (d10v_gdbarch_init): Set frame_align instead of stack_align.
4923
810ecf9f
AC
49242003-04-30 Andrew Cagney <cagney@redhat.com>
4925
4926 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
4927 "tm_print_insn_info".
4928 (TARGET_PRINT_INSN_INFO): Delete macro.
4929 (dis_asm_read_memory): Delete function declaration.
4930 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4931 (tm_print_insn_info): Delete variable definition.
4932 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
4933 * gdbarch.h, gdbarch.c: Re-generate.
4934 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
4935 "deprecated_tm_print_insn_info".
4936 * mcore-tdep.c (mcore_dump_insn): Ditto.
4937 * mips-tdep.c (mips_gdbarch_init): Ditto.
4938 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
4939 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
4940 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
4941 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
4942 instead of TARGET_PRINT_INSN_INFO, add comment.
4943 * s390-tdep.c (s390_get_frame_info): Instead of
4944 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
4945 (s390_check_function_end, s390_is_sigreturn): Ditto.
4946 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
4947 (dis_asm_memory_error, dis_asm_print_address): Ditto.
4948 * disasm.c: Include "gdbcore.h".
4949 (_initialize_disasm): New function, initialize
4950 "deprecated_tm_print_insn_info".
4951 (deprecated_tm_print_insn_info): New variable.
4952 (dis_asm_read_memory): Moved from "corefile.c", made static.
4953 (dis_asm_print_address, dis_asm_memory_error): Ditto.
4954 * Makefile.in (disasm.o): Update dependencies.
4955
07020390
AC
49562003-04-30 Andrew Cagney <cagney@redhat.com>
4957
4958 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
4959
a9fa03de
AF
49602003-04-29 Adam Fedor <fedor@gnu.org>
4961
4962 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
4963 * infcall.c (find_function_addr): Make non-static.
4964 * infcall.h (find_function_addr): Declare.
4965 * Makefile.in (eval.o): Update dependencies.
4966
1bae87b9
AF
49672003-04-28 Adam Fedor <fedor@gnu.org>
4968
4969 * symtab.c (symbol_find_demangled_name): Check for and demangle
4970 ObjC symbols.
4971 (symbol_init_demangled_name): Init for language_objc as well.
4972
0ba6dca9
AC
49732003-04-28 Andrew Cagney <cagney@redhat.com>
4974
4975 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
4976 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
4977 * gdbarch.h, gdbarch.c: Re-generate.
4978 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
4979 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
4980 * inferior.h (deprecated_read_fp): Rename read_fp.
4981 (generic_target_read_fp): Delete declaration.
4982 * regcache.c (generic_target_read_fp): Delete function.
4983 (deprecated_read_fp): Replace read_fp, use
4984 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
4985 * d10v-tdep.c (d10v_read_fp): Delete function.
4986 (d10v_gdbarch_init): Do not set deprecated_read_fp.
4987
4988 * sparc-tdep.c (sparc_gdbarch_init): Do not set
4989 deprecated_target_read_fp to generic_target_read_fp.
4990 * sh-tdep.c (sh_gdbarch_init): Ditto.
4991 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4992 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4993 * frv-tdep.c (frv_gdbarch_init): Ditto.
4994
4995 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
4996 deprecated_fp_regnum.
4997 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4998 * vax-tdep.c (vax_gdbarch_init): Ditto.
4999 * v850-tdep.c (v850_gdbarch_init): Ditto.
5000 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5001 * sh-tdep.c (sh_gdbarch_init): Ditto.
5002 * s390-tdep.c (s390_gdbarch_init): Ditto.
5003 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5004 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5005 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5006 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
5007 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5008 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5009 * i386-tdep.c (i386_gdbarch_init): Ditto.
5010 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5011 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5012 * frv-tdep.c (frv_gdbarch_init): Ditto.
5013 * cris-tdep.c (cris_gdbarch_init): Ditto.
5014 * avr-tdep.c (avr_gdbarch_init): Ditto.
5015 * arm-tdep.c (arm_gdbarch_init): Ditto.
5016 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
5017
5018 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
5019 * v850-tdep.c (v850_gdbarch_init): Ditto.
5020 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
5021 * sh-tdep.c (sh_gdbarch_init): Ditto.
5022 * s390-tdep.c (s390_gdbarch_init): Ditto.
5023 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5024 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5025 * mips-tdep.c (mips_gdbarch_init): Ditto.
5026 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5027 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5028 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
5029 * frv-tdep.c (frv_gdbarch_init): Ditto.
5030 * avr-tdep.c (avr_gdbarch_init): Ditto.
5031 * arm-tdep.c (arm_gdbarch_init): Ditto.
5032
5033 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
5034 DEPRECATED_FP_REGNUM.
5035 (vax_push_dummy_frame, vax_pop_frame): Ditto.
5036 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
5037 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5038 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
5039 (sparc32_register_virtual_type): Ditto.
5040 * sh-tdep.c (sh64_frame_chain): Ditto.
5041 (sh64_get_saved_register, sh64_pop_frame): Ditto.
5042 (sh_nofp_frame_init_saved_regs): Ditto.
5043 (sh64_nofp_frame_init_saved_regs): Ditto.
5044 (sh_fp_frame_init_saved_regs): Ditto.
5045 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5046 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5047 * procfs.c (procfs_fetch_registers): Ditto.
5048 (procfs_store_registers): Ditto.
5049 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
5050 (store_inferior_registers, fetch_core_registers): Ditto.
5051 (fetch_kcore_registers, clear_regs): Ditto.
5052 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
5053 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
5054 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
5055 * nlm/i386.c (do_status): Ditto.
5056 * mipsv4-nat.c (supply_gregset): Ditto.
5057 * mips-tdep.c: Ditto for comments.
5058 * mips-nat.c (fetch_inferior_registers): Ditto.
5059 (store_inferior_registers, fetch_core_registers): Ditto.
5060 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
5061 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
5062 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
5063 (i386_do_pop_frame, i386_register_type): Ditto.
5064 * hppa-tdep.c (hppa_frame_chain): Ditto.
5065 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
5066 (hppa_pop_frame, hppa_read_fp): Ditto.
5067 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
5068 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
5069 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
5070 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
5071 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
5072 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
5073 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
5074 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
5075 * blockframe.c: Ditto for comments.
5076 * arch-utils.h: Ditto for comments.
5077 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
5078 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
5079 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
5080 * alpha-tdep.h: Ditto for comments.
5081 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
5082 (alpha_cannot_store_register): Ditto.
5083 (alpha_push_dummy_frame): Ditto.
5084 * alpha-nat.c (supply_gregset): Ditto.
5085
5086 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
5087 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
5088 * config/sparc/tm-sparc.h: Update comment.
5089
5090 * hppa-tdep.c (hppa_init_extra_frame_info): Use
5091 deprecated_read_fp instead of TARGET_READ_FP.
5092 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
5093 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
5094 * sparc-tdep.c (sparc_init_extra_frame_info): Use
5095 deprecated_read_fp instead of read_fp.
5096 * s390-tdep.c (s390_push_arguments): Ditto.
5097 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5098 * frame.h: Ditto in comments.
5099 * frame.c (legacy_get_prev_frame): Ditto.
5100 * dummy-frame.c (dummy_frame_this_id): Ditto.
5101 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5102
d7a27068
AC
51032003-04-28 Andrew Cagney <cagney@redhat.com>
5104
5105 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
5106 * gdbarch.h, gdbarch.c: Re-generate.
5107 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
5108 * vax-tdep.c (_initialize_vax_tdep): Update.
5109 * v850-tdep.c (_initialize_v850_tdep): Update.
5110 * sparc-tdep.c (_initialize_sparc_tdep): Update.
5111 * s390-tdep.c (_initialize_s390_tdep): Update.
5112 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
5113 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
5114 * mips-tdep.c (_initialize_mips_tdep): Update.
5115 * mcore-tdep.c (_initialize_mcore_tdep): Update.
5116 * m68k-tdep.c (_initialize_m68k_tdep): Update.
5117 * ia64-tdep.c (_initialize_ia64_tdep): Update.
5118 * hppa-tdep.c (_initialize_hppa_tdep): Update.
5119 * h8300-tdep.c (_initialize_h8300_tdep): Update.
5120 * frv-tdep.c (_initialize_frv_tdep): Update.
5121 * cris-tdep.c (cris_delayed_get_disassembler): Update.
5122 (_initialize_cris_tdep): Update.
5123 * arch-utils.c (legacy_print_insn): Update.
5124 * alpha-tdep.c (_initialize_alpha_tdep): Update.
5125
d2630e69
AF
51262003-04-26 Adam Fedor <fedor@gnu.org>
5127
5128 * linespec.c (decode_objc): New function to decode ObjC calls
5129 (decode_line_1): Check for ObjC calls (using decode_objc)
5130 * Makefile (linespec.o): Update dependencies.
5131
3086aeae
DJ
51322003-04-26 Daniel Jacobowitz <drow@mvista.com>
5133
5134 * breakpoint.h (struct breakpoint_ops): New.
5135 (struct breakpoint): Add ops member.
5136
5137 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
5138 (mention): Use new breakpoint ops member.
5139 (set_raw_breakpoint): Initialize ops field to NULL.
5140 (print_exception_catchpoint, print_one_exception_catchpoint)
5141 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
5142 (gnu_v3_exception_catchpoint_ops): New.
5143 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
5144
1fbec6c3
AF
51452003-04-25 Adam Fedor <fedor@gnu.org>
5146
5147 * Makefile.in (COMMON_OBS): Add objc-lang.o
5148
0ef21242
AC
51492003-04-25 Andrew Cagney <cagney@redhat.com>
5150
5151 * d10v-tdep.c (print_insn): Delete function.
5152 (display_trace): Use TARGET_PRINT_INSN.
5153 (_initialize_d10v_tdep): Do not set tm_print_insn.
5154 (d10v_gdbarch_init): Set print_insn.
5155
f75493ed
AC
51562003-04-25 Andrew Cagney <cagney@redhat.com>
5157
5158 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
5159 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
5160 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
5161 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
5162 (nr_dmap_regs, a0_regnum): ... new functions.
5163 (d10v_print_registers_info): Use a0_regnum, use register_size.
5164 (d10v_register_byte): Delete function.
5165 (d10v_register_raw_size): Delete function.
5166 (d10v_register_type): Use a0_regnum.
5167 (d10v_print_registers_info): Use a0_regnum.
5168 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
5169 (d10v_gdbarch_init): Do not set register_byte or
5170 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
5171 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
5172 extract_address.
5173 (trace_command): Use XCALLOC.
5174 (print_insn): Delete reference to tm_print_insn.
5175 (saved_regs_unwinder): Use store_unsigned_integer instead of
5176 store_address.
5177 * frame.h (FRAME_OBSTACK_CALLOC): Define
5178
2202b100
DC
51792003-04-25 David Carlton <carlton@bactrian.org>
5180
5181 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
5182
4e45ca2e
AF
51832003-04-24 Adam Fedor <fedor@gnu.org>
5184
5185 * objc-lang.c: Include "valprint.h"
5186 * Makefile.in (objc-lang.o): Update dependencies.
5187
93de3e7f
AF
51882003-04-24 Adam Fedor <fedor@gnu.org>
5189
8ffd9b1b 5190 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
5191 architecture dependant compilation and mark as unimplemented
5192 (until they get put in the gdbarch vector).
5193
0f20eeea
DC
51942003-04-23 David Carlton <carlton@bactrian.org>
5195
5196 * cp-support.c (cp_find_first_component): Accept 'operator' in
5197 more locations.
5198
74cfe982
AC
51992003-04-23 Andrew Cagney <cagney@redhat.com>
5200
5201 * infcall.c (call_function_by_hand): Eliminate redundant
5202 indentation. Move "saved_async" and "old_cleanups" to where they
5203 are needed.
8ffd9b1b 5204
52557533
AC
52052003-04-23 Andrew Cagney <cagney@redhat.com>
5206
5207 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
5208 and "buffer". Move the "name" code to where it is needed.
5209
158775de
AC
52102003-04-23 Andrew Cagney <cagney@redhat.com>
5211
5212 * infcall.c (call_function_by_hand): Move variables "start_sp",
5213 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
5214 code to ON_STACK switch branch.
8ffd9b1b 5215
ebc7896c
AC
52162003-04-23 Andrew Cagney <cagney@redhat.com>
5217
5218 * infcall.c (call_function_by_hand): Make declaration of "i",
5219 "sal", "bpt" and "old_sp" more local to their use. Delete #if
5220 lint.
5221
d727590f
AC
52222003-04-23 Andrew Cagney <cagney@redhat.com>
5223
5224 * infcall.c (call_function_by_hand): Delete variable
5225 "n_method_args". Localize "param_type"'s declaration to the loop
5226 that it is used. Reinstate code assigning to said variable -
5227 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
5228 Rationalize code using "param_type".
5229
d585e13a
AC
52302003-04-22 Andrew Cagney <cagney@redhat.com>
5231
5232 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
5233 compute the breakpoint address. Only call FIX_CALL_DUMMY when
5234 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
5235 to DEPRECATED_PUSH_RETURN_ADDRESS.
5236
051caad9
KB
52372003-04-22 Kevin Buettner <kevinb@redhat.com>
5238
5239 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
5240 on the DWARF2 register number prior to fetching a register.
5241
77296879
JB
52422003-04-22 J. Brobecker <brobecker@gnat.com>
5243
5244 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
5245 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 5246 this macro was always set to 0.
77296879
JB
5247 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
5248 considering the fact that this macro was always set to 0.
5249 * hppa-tdep.h (hppa_store_return_value): Likewise.
5250 (hppa_extract_return_value): Likewise.
5251
4252f1df
JB
52522003-04-22 J. Brobecker <brobecker@gnat.com>
5253
5254 * config/pa/tm-hppa.h: Remove obsolete code, was used by
5255 the hppa-pro target only.
5256
14604c6b
JB
52572003-04-21 J. Brobecker <brobecker@gnat.com>
5258
5259 Ongoing multi-arch conversion effort for HP/UX:
5260 * config/pa/tm-hppa.h: Move all macro that are no longer
5261 defined now that GDB_MULTI_ARCH is now set to 1 from here...
5262 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
5263
77eb01d1
JB
52642003-04-21 J. Brobecker <brobecker@gnat.com>
5265
5266 * config/pa/tm-hppa.h: Obsolete a section that was only used
5267 for hppa-pro.
5268
61995b3b
JB
52692003-04-21 J. Brobecker <brobecker@gnat.com>
5270
5271 Ongoing multi-arch conversion for HP/UX.
5272 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
5273 if already defined (allows hppa64 to stay non-multiarched for now).
5274 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
5275
4aa79dcc
AC
52762003-04-21 Andrew Cagney <cagney@redhat.com>
5277
5278 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
5279
0f751ff2
AC
52802003-04-21 Andrew Cagney <cagney@redhat.com>
5281
5282 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
5283 "i386_num_mmx_regs".
5284
04714b91
AC
52852003-04-21 Andrew Cagney <cagney@redhat.com>
5286
5287 * infcall.c: New file.
5288 * infcall.h: New file.
5289 * valarith.c: Include "infcall.h".
5290 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
5291 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
5292 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
5293 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
5294 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
5295 (SFILES): Add "infcall.c"
5296 (COMMON_OBS): Add "infcall.o".
5297 (infcall.o): Specify dependencies.
5298 * value.h (call_function_by_hand): Delete declaration.
5299 * inferior.h (run_stack_dummy): Delete declaration.
5300 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
5301 (run_stack_dummy): Move to "infcall.c", merged into
5302 call_function_by_hand.
5303 * valops.c (call_function_by_hand): Moved to "infcall.c".
5304 (find_function_addr, value_arg_coerce): Ditto.
5305 (unwindonsignal_p, coerce_float_to_double): Ditto.
5306 (_initialize_valops): Move "set/show coerce-float-to-double", and
5307 "set/show unwindonsignal" commands to "infcall.c".
5308 * v850-tdep.c, target.h: Update comments.
5309 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
5310 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
5311 (sh64_init_extra_frame_info): Update comments.
5312 * mn10300-tdep.c: Update comments.
5313 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
5314 * config/sparc/tm-sparc.h: Update comments.
5315 * breakpoint.h: Update comments.
5316 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
5317 * arm-tdep.c: Update comment.
5318
f9d3c2a8
MK
53192003-04-19 Mark Kettenis <kettenis@gnu.org>
5320
c40e1eab
MK
5321 * i386-tdep.c (i386_num_register_names): New variable.
5322 (i386_num_mmx_regs): Renamed from mmx_num_regs.
5323 (MM0_REGNUM): Remove redundant parentheses in define.
5324 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
5325 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
5326 i386_mxcsr_regnum_p): Remove redundant parentheses.
5327 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 5328
94ea66b3
MK
5329 * i386-tdep.c (i386_extract_return_value,
5330 i386_store_return_value): Correct check for availability of
5331 floating-point registers.
5332
54299a1d
MK
5333 * i386-tdep.c (i386_frame_num_args): Remove function.
5334 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
5335
c86c27af
MK
5336 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
5337 mmx_regnum_to_fp_regnum. Adjust all callers.
5338
f9d3c2a8
MK
5339 * i386-tdep.c (i386_get_longjmp_target): Use
5340 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
5341 and TARGET_CHAR_BIT. Use extract_typed_address instead of
5342 extract_address.
5343
94ba74a9
MK
53442003-04-19 Mark Kettenis <kettenis@gnu.org>
5345
5346 * core-regset.c: Update comments to reflect reality. Re-order
5347 includes.
5348 (fetch_core_registers): Use switch instead of if. Remove
5349 redundant prototype.
5350
4074e13c
JB
53512003-04-18 Jim Blandy <jimb@redhat.com>
5352
5353 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 5354 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 5355
e3ab4aba
RH
53562003-04-17 Richard Henderson <rth@redhat.com>
5357
5358 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
5359
627bf7c1
EZ
53602003-04-17 Michael Snyder <msnyder@redhat.com>
5361 Karen Bennet <bennet@redhat.com>
5362
5363 Committed by Elena Zannoni <ezannoni@redhat.com>
5364 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 5365
514621a9
EZ
53662003-04-17 Elena Zannoni <ezannoni@redhat.com>
5367
5368 * values.c (value_being_returned): Don't fetch the return
fbe586ae 5369 value if the return type is void.
514621a9 5370
b4acd559
JJ
53712003-04-17 Jeff Johnston <jjohnstn@redhat.com>
5372
5373 * thread-db.c: Reindented.
8ffd9b1b 5374
530b167e 53752003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
5376
5377 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
5378 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
5379 as types.
5380
0a48e7e8
MS
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
8ffd9b1b 5404
ab9fe00e
KB
54052003-04-16 Kevin Buettner <kevinb@redhat.com>
5406
610a3745 5407 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
5408 the size of ``long double'' to 16, instead of 8.
5409
e64a344c
MK
54102003-04-16 Mark Kettenis <kettenis@gnu.org>
5411
5412 * i386-linux-nat.c: Add some whitespace to make things more
5413 readable.
5414 (fetch_register, store_register, fetch_inferior_registers,
5415 store_inferior_registers): Get rid of assignment in if-statement.
5416 (store_register): Fix typo in error message.
5417
25d41031
AC
54182003-04-16 Andrew Cagney <cagney@redhat.com>
5419
5420 * utils.c (xmmalloc): Always allocate something, matches
5421 libiberty/xmalloc's semantics.
5422 (xmrealloc, xmcalloc): Ditto.
5423
c50901fd
AC
54242003-04-16 Andrew Cagney <cagney@redhat.com>
5425
5426 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
5427 update comments.
5428 (get_frame_type): Initialize unwind and type when needed.
5429 (get_frame_id, frame_register_unwind): Ditto.
5430
f81824a9
AC
54312003-04-16 Andrew Cagney <cagney@redhat.com>
5432
5433 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
5434 obsolete.
5435 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
5436 * sparcl-stub.c: Obsolete file.
5437 * config/sparc/tm-sparclet.h: Obsolete file.
5438 * sparclet-stub.c: Obsolete file.
5439 * sparclet-rom.c: Obsolete file.
5440 * sparcl-tdep.c: Obsolete file.
5441 * config/sparc/tm-sparclite.h: Obsolete file.
5442 * config/sparc/sparclite.mt: Obsolete file.
5443 * config/sparc/sparclet.mt: Obsolete file.
5444 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
5445 sparc86x-*-* obsolete.
5446
9219021c
DC
54472003-04-15 David Carlton <carlton@math.stanford.edu>
5448
5449 * Makefile.in (SFILES): Add cp-namespace.c.
5450 (COMMON_OBS): Add cp-namespace.o.
5451 (block.o): Depend on gdb_obstack_h and cp_support_h.
5452 (buildsym.o): Depend on cp_support_h.
5453 (cp-namespace.o): New.
5454 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
5455 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
5456 (dwarf2read.o): Depend on cp_support_h.
5457 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
5458 * dwarf2read.c (process_die): Set processing_has_namespace_info,
5459 processing_current_namespace.
5460 (read_namespace): Update processing_current_namespace; check for
5461 anonymous namespaces.
5462 (dwarf2_name): New function.
5463 (dwarf2_extension): Ditto.
5464 * cp-support.h: Update copyright, contributors.
5465 Add inclusion guards.
5466 Add opaque declaration for structs obstack, block, symbol.
5467 (struct using_direct): New struct.
5468 Add declarations for cp_find_first_component,
5469 cp_entire_prefix_len, processing_has_namespace_info,
5470 processing_current_namespace, cp_is_anonymous,
5471 cp_add_using_directive, cp_initialize_namespace,
5472 cp_finalize_namespace, cp_set_block_scope,
5473 cp_scan_for_anonymous_namespaces.
5474 * cp-namespace.c: New file.
5475 * cp-support.c: Update copyright.
5476 Include ctype.h, gdb_assert.h, gdbcmd.h.
5477 New variable maint_cplus_cmd_list.
5478 (cp_find_first_component): New function.
5479 (cp_entire_prefix_len, maint_cplus_command)
5480 (first_component_command, _initialize_cp_support): Ditto.
5481 * buildsym.c: Include cp-support.h.
5482 New variable using_list.
5483 (add_symbol_to_list): Check for anonymous namespaces.
5484 (finish_block): Set block's scope.
5485 (start_symtab): Initialize C++ namespace support.
5486 (end_symtab): Finalize C++ namespace support.
5487 * block.h: Add opaque declarations for structs
5488 block_namespace_info, using_direct, and obstack.
5489 Add declarations for block_set_scope and block_set_using.
5490 (struct block): Add 'language_specific' member.
5491 (BLOCK_NAMESPACE): New macro.
5492 * block.c: Include gdb_obstack.h and cp-support.h.
5493 (struct block_namespace_info): New struct.
5494 (block_set_scope): New function.
5495 (block_set_using, block_initialize_namespace): Ditto.
5496
d5a921c9
KB
54972003-04-14 Kevin Buettner <kevinb@redhat.com>
5498
5499 * solib-svr4.c (svr4_have_link_map_offsets): New function.
5500 (locate_base): Return early if there aren't any link map offsets.
5501 (svr4_solib_create_inferior_hook): Warn if shared library support
5502 is unavailable.
5503
d2a52b27
DC
55042003-04-14 David Carlton <carlton@math.stanford.edu>
5505
5506 * symtab.c (symbol_set_names): Add prefix when storing Java names
5507 in hash table. Fix for PR java/1039.
5508
980cae7a
DC
55092003-04-14 David Carlton <carlton@math.stanford.edu>
5510
5511 * symtab.c (symbol_set_names): Rename 'name' arg to
5512 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
5513 * symtab.h: Change 'name' argument in declaration of
5514 symbol_set_names to 'linkage_name'.
5515 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
5516
e227b13c
AC
55172003-04-14 Andrew Cagney <cagney@redhat.com>
5518
5519 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
5520 return the fully sign-extended register value.
5521 (get_frame_pointer): Ditto.
5522 (mips_pop_frame): Initialize "proc_desc" after checking for a
5523 dummy frame.
5524
36712a20
AC
55252003-04-14 Andrew Cagney <cagney@redhat.com>
5526
5527 * mips-tdep.c (mips_push_dummy_frame): Delete function.
5528 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
5529 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
5530 (mips_push_register): Delete function.
5531 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
5532 PUSH_FP_REGNUM.
5533
44ea7b70
JB
55342003-04-14 Jim Blandy <jimb@redhat.com>
5535
5536 * symmisc.c: #include "gdb_regex.h".
5537 (maintenance_list_symtabs, maintenance_list_psymtabs): New
5538 functions.
5539 * maint.c (maintenance_list_command): New function.
5540 (_initialize_maint_cmds): Register the above as commands.
5541 * symtab.h (maintenance_list_symtabs,
5542 maintenance_list_psymtabs): New declarations.
5543 * cli/cli-cmds.c (maintenancelistlist): New variable.
5544 (init_cmd_lists): Initialize it.
5545 * cli/cli-cmds.h (maintenancelistlist): New declaration.
5546 * gdbcmd.h (maintenancelistlist): New declaration.
5547 * Makefile.in (symmisc.o): Update dependencies.
5548
2d0c7962
EZ
55492003-04-14 Elena Zannoni <ezannoni@redhat.com>
5550
5551 * s390-nat.c: Include asm/types.h for addr_t.
5552
1947a811
CV
55532003-04-14 Corinna Vinschen <vinschen@redhat.com>
5554
5555 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
5556 actually incoming type.
5557
adb616d7
AC
55582003-04-13 Andrew Cagney <cagney@redhat.com>
5559
5560 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
5561 get_next_frame and get_frame_saved_regs.
5562
9b5e151c
AC
55632003-04-13 Andrew Cagney <cagney@redhat.com>
5564
5565 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
5566 of gdbarch_num_regs.
5567
ef6e7e13
AC
55682003-04-13 Andrew Cagney <cagney@redhat.com>
5569
5570 * frame.h: Mention what replaced what in "struct frame_info".
5571 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
5572 deprecated_update_frame_base_hack and
5573 deprecated_update_frame_pc_hack.
5574 * hppa-tdep.c: Ditto.
5575
61fbb938
DJ
55762003-04-13 Daniel Jacobowitz <drow@mvista.com>
5577
5578 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
5579 to read_reg and update its comment. Remove regnum member.
5580 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
5581 Don't call read_reg when setting in_reg. Call read_reg to get
5582 the frame base if it's in a register. Return the register number
5583 on the stack instead of in the context. Remove extra arguments
5584 to read_reg.
5585 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
5586 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
5587 the register number on the expression stack.
5588 (needs_frame_read_reg): Remove extra arguments.
5589
0d53c4c4
DJ
55902003-04-13 Daniel Jacobowitz <drow@mvista.com>
5591
5592 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
5593 made non-static.
5594 (execute_stack_op): All callers updated.
5595 * dwarf2expr.h: Add prototype for dwarf2_read_address.
5596 * dwarf2loc.c (find_location_expression): New function.
5597 (dwarf_expr_frame_base): Call it.
5598 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
5599 (dwarf2_tracepoint_var_ref): New function, broken out from
5600 locexpr_tracepoint_var_ref.
5601 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
5602 Make static.
5603 (loclist_read_variable, loclist_read_needs_frame): New functions.
5604 (loclist_describe_location, loclist_tracepoint_var_ref): New
5605 functions.
5606 (dwarf2_loclist_funcs): New struct location_funcs.
5607 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
5608 (struct dwarf2_locexpr_baton): Add comments.
5609 (dwarf2_loclist_funcs): New extern.
5610 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
5611 base_address and base_known.
5612 (dwarf_loc_buffer): New variable.
5613 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
5614 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
5615 (dwarf2_has_info): Initialize dwarf_loc_offset.
5616 (dwarf2_build_psymtabs): Read in .debug_loc.
5617 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
5618 DWARF_LOC_SIZE.
5619 (psymtab_to_symtab_1): Likewise. Move base address calculation
5620 here, from...
5621 (dwarf2_get_pc_bounds): ... here. Use the base address from
5622 cu_header.
5623 (dwarf2_symbol_mark_computed): Handle location lists.
5624
6aca59a3
DJ
56252003-04-13 Daniel Jacobowitz <drow@mvista.com>
5626
5627 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
5628 if the linkage name demangled successfully.
5629
aca1fcd0
MK
56302003-04-13 Mark Kettenis <kettenis@gnu.org>
5631
97095916
MK
5632 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
5633 disassmbly_flavour): Removed.
5634
aca1fcd0
MK
5635 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
5636
562a961f
MK
56372003-04-13 Mark Kettenis <kettenis@gnu.org>
5638
5639 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
5640
bd013d54
AC
56412003-04-12 Andrew Cagney <cagney@redhat.com>
5642
5643 * frame.h (struct frame_info): Move definition from here ...
5644 * frame.c (struct frame_info): ... to here.
5645
167ef8b1
AC
56462003-04-12 Andrew Cagney <cagney@redhat.com>
5647
5648 * gdbthread.h (save_infrun_state): Delete parameter
5649 "prev_func_start".
5650 (struct thread_info): Delete field "prev_func_start".
5651 (load_infrun_state): Ditto.
5652 * thread.c (load_infrun_state, save_infrun_state): Update.
5653 * infrun.c (prev_func_start): Delete variable.
5654 (context_switch, init_wait_for_inferior): Update.
5655 (stop_stepping, keep_going): Update.
5656
da3331ec
AC
56572003-04-12 Andrew Cagney <cagney@redhat.com>
5658
5659 * gdbarch.sh: Add missing opaque declarations.
5660 * gdbarch.h: Regnerate.
5661 * symtab.h: Add missing opaque declarations.
5662 * value.h, target.h, symfile.h, stabsread.h: Ditto.
5663 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
5664 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
5665 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
5666 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
5667 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
5668 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
5669 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
5670 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
5671 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
5672 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
5673 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
5674 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
5675
18adea3f
AC
56762003-04-11 Andrew Cagney <cagney@redhat.com>
5677
5678 * frame.c (get_frame_id): Return this frame's "id".
5679 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
5680 function start.
5681 (legacy_saved_regs_this_id): Replace function body with
5682 internal-error.
5683 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
5684 FRAME_OBSTACK_ZALLOC.
5685 (create_new_frame): Mark the frame ID as valid.
5686
2252e863
AO
56872003-04-11 Alexandre Oliva <aoliva@redhat.com>
5688
5689 * Makefile.in (libbfd_h): Added missing setting.
5690 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
5691 according to the selected ABI.
5692
a8245ab8
JJ
56932003-04-11 Jeff Johnston <jjohnstn@redhat.com>
5694
5695 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
5696
6913c89a
AC
56972003-04-11 Andrew Cagney <cagney@redhat.com>
5698
5699 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
5700 SAVED_PC_AFTER_CALL.
5701 * gdbarch.h, gdbarch.c: Regenerate.
5702 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
5703 * x86-64-tdep.c (x86_64_init_abi): Update.
5704 * vax-tdep.c (vax_gdbarch_init): Update.
5705 * v850-tdep.c (v850_gdbarch_init): Update.
5706 * sparc-tdep.c (sparc_gdbarch_init): Update.
5707 * sh-tdep.c (sh_gdbarch_init): Update.
5708 * s390-tdep.c (s390_gdbarch_init): Update.
5709 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5710 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5711 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5712 * mips-tdep.c (mips_gdbarch_init): Update.
5713 * mcore-tdep.c (mcore_gdbarch_init): Update.
5714 * m68k-tdep.c (m68k_gdbarch_init): Update.
5715 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5716 * ia64-tdep.c (ia64_gdbarch_init): Update.
5717 (ia64_saved_pc_after_call): Update declaration.
5718 * i386ly-tdep.c (i386lynx_init_abi): Update.
5719 * i386-tdep.c (i386_gdbarch_init): Update.
5720 * hppa-tdep.c (hppa_gdbarch_init): Update.
5721 * h8300-tdep.c (h8300_gdbarch_init): Update.
5722 * frv-tdep.c (frv_gdbarch_init): Update.
5723 * cris-tdep.c (cris_gdbarch_init): Update.
5724 * avr-tdep.c (avr_gdbarch_init): Update.
5725 * arm-tdep.c (arm_gdbarch_init): Update.
5726 * alpha-tdep.c (alpha_gdbarch_init): Update.
5727 * ns32knbsd-nat.c (frame_num_args): Update.
5728 * ns32k-tdep.c (umax_frame_num_args): Update.
5729 * mips-tdep.c (mips_init_frame_pc_first): Update.
5730 * infrun.c (step_over_function): Update.
5731 * i386-linux-tdep.c (skip_hurd_resolver): Update.
5732 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
5733 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5734 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5735 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
5736 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
5737 * arm-linux-tdep.c (skip_hurd_resolver): Update.
5738 * arch-utils.c (init_frame_pc_default): Update.
5739 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
5740 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
5741 declaration.
8ffd9b1b 5742
38edeab8
AC
57432003-04-11 Andrew Cagney <cagney@redhat.com>
5744
5745 * i387-tdep.c: Update copyright.
5746 (i387_to_double): Delete function.
5747 (double_to_i387): Delete function.
5748
81f8a206
AC
57492003-04-10 Andrew Cagney <cagney@redhat.com>
5750
5751 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
5752 frame's function's address. Simplify.
5753 (d10v_frame_unwind_cache): Check that the frame's function is
5754 non-zero.
5755
6e691f7a
JB
57562003-04-10 Jim Blandy <jimb@redhat.com>
5757
5758 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
5759 call to set_gdbarch_deprecated_push_arguments.
5760
7f78e237
AC
57612003-04-10 Andrew Cagney <cagney@redhat.com>
5762
5763 * frame.c (fprint_frame_id): New function.
5764 (fprint_frame_type, fprint_frame): New function.
5765 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
5766 (create_sentinel_frame, get_frame_id): Ditto.
5767 (frame_id_p, frame_id_eq): Ditto.
5768 (frame_id_inner, create_new_frame): Ditto.
5769 (legacy_get_prev_frame, get_prev_frame): Ditto.
5770 (deprecated_update_frame_pc_hack): Ditto.
5771 (frame_register_unwind): Ditto.
5772 (deprecated_update_frame_base_hack): Ditto.
5773
f870b49b
CV
57742003-04-10 Corinna Vinschen <vinschen@redhat.com>
5775
5776 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
5777 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
5778 frame_chain function.
5779 * Makefile.in: Add dependencies due to above change.
5780
7c86889b
CV
57812003-04-10 Corinna Vinschen <vinschen@redhat.com>
5782
5783 * blockframe.c (legacy_frame_chain_valid): Move call to
5784 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
5785 inside_entry_file.
5786
d0a55772
AC
57872003-04-09 Andrew Cagney <cagney@redhat.com>
5788
5789 * frame.h (struct frame_id): Replace "pc" and "base" with
5790 "stack_addr" and "code_addr". Update comments.
5791 (frame_id_build): Update parameter names and comment.
5792 (struct frame_info): Replace "id_p" and "id" with "this_id".
5793 * dummy-frame.c (dummy_frame_this_id): Update.
5794 * breakpoint.c (print_one_breakpoint): Update.
5795 * frame.c (get_frame_id): Update.
5796 (get_frame_base, frame_id_build): Update.
5797 (create_sentinel_frame, legacy_get_prev_frame): Update.
5798 (deprecated_update_frame_base_hack): Update.
5799 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
5800 (frame_id_inner): Ditto.
5801
ac16bf07
AC
58022003-04-09 Andrew Cagney <cagney@redhat.com>
5803
5804 * defs.h (gdb_print_host_address): Make "addr" parameter a
5805 pointer constant.
5806 * utils.c (gdb_print_host_address): Update.
5807
366cfc9e
KB
58082003-04-09 Kevin Buettner <kevinb@redhat.com>
5809
5810 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
5811 register number for R0 is 0.
5812
cd983b5c
JB
58132003-04-09 J. Brobecker <brobecker@gnat.com>
5814
5815 * frame.h (struct gdbarch): Add opaque structure definition
5816 to avoid a compilation warning on LynxOS 4.0.
5817
d1340264
AC
58182003-04-09 Andrew Cagney <cagney@redhat.com>
5819
5820 * frame.h (struct frame_info): Delete field "pc". Replace
5821 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
5822 structure.
5823 * frame.c (frame_pc_unwind): Update.
5824 (create_sentinel_frame): Do not set "pc".
5825 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
5826 (get_frame_pc): Call frame_pc_unwind.
5827 (deprecated_update_frame_pc_hack): Update.
5828 (create_new_frame): Use "pc" not "->pc".
5829
90a6fffb
AC
58302003-04-09 Andrew Cagney <cagney@redhat.com>
5831
5832 * frame.c (get_frame_id): Eliminate code updating "frame".
5833 (legacy_get_prev_frame): Ditto.
5834 (get_frame_base): Return id.base directly.
5835 (deprecated_update_frame_base_hack): Update "id.base".
5836 * frame.h (struct frame_info): Delete field "frame".
5837
2fbce691
AC
58382003-04-09 Andrew Cagney <cagney@redhat.com>
5839
5840 * NEWS: Mention that the "Sequent family" is obsolete.
5841 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
5842 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5843 * configure.host: Obsolete i[3456]86-sequent-bsd*,
5844 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
5845 * config/i386/tm-ptx4.h: Obsolete file.
5846 * config/i386/tm-ptx.h: Obsolete file.
5847 * symm-tdep.c: Obsolete file.
5848 * config/i386/symmetry.mt: Obsolete file.
5849 * config/i386/tm-symmetry.h: Obsolete file.
5850 * symm-nat.c: Obsolete file.
5851 * config/i386/nm-symmetry.h: Obsolete file.
5852 * config/i386/xm-symmetry.h: Obsolete file.
5853 * config/i386/symmetry.mh: Obsolete file.
5854 * config/i386/nm-ptx4.h: Obsolete file.
5855 * config/i386/ptx4.mh: Obsolete file.
5856 * config/i386/ptx.mt: Obsolete file.
5857 * config/i386/ptx.mh: Obsolete file.
5858 * config/i386/xm-ptx4.h: Obsolete file.
5859 * config/i386/xm-ptx.h: Obsolete file.
5860
78c43945
AC
58612003-04-09 Andrew Cagney <cagney@redhat.com>
5862
5863 Obsolete mips*-*-mach3*.
5864 * NEWS: Mention that mips*-*-mach3* is obsolete.
5865 * m3-nat.c: Obsolete file.
5866 * config/nm-m3.h: Obsolete file.
5867 * config/mips/tm-mipsm3.h: Obsolete file.
5868 * config/mips/mipsm3.mt: Obsolete file.
5869 * config/mips/mipsm3.mh: Obsolete file.
5870 * config/mips/xm-mipsm3.h: Obsolete file.
5871 * mipsm3-nat.c: Obsolete file.
5872 * configure.host: Obsolete mips-dec-mach3*.
5873 * configure.tgt: Obsolete mips*-*-mach3*.
5874
f1908289
AC
58752003-04-09 Andrew Cagney <cagney@redhat.com>
5876
5877 * doublest.h: Update copyright.
5878 (deprecated_store_floating, deprecated_extract_floating): Rename
5879 store_floating and extract_floating. Update comments.
5880 * doublest.c: Update copyright.
5881 (extract_floating_by_length): Replace extract_floating.
5882 (store_floating_by_length): Replace store_floating.
5883 (deprecated_extract_floating): New function.
5884 (deprecated_store_floating): New function.
5885 (extract_typed_floating): Call extract_floating_by_length.
5886 (store_typed_floating): Call store_floating_by_length.
5887 * x86-64-tdep.c (x86_64_store_return_value): Update.
5888 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
5889 (sh64_extract_return_value): Update.
5890 (sh_sh4_register_convert_to_virtual): Update.
5891 (sh_sh64_register_convert_to_virtual): Update.
5892 (sh_sh4_register_convert_to_raw): Update.
5893 (sh_sh64_register_convert_to_raw): Update.
5894 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
5895 (rs6000_register_convert_to_raw): Update.
5896 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
5897 (ia64_register_convert_to_raw): Update.
5898 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
5899 (REGISTER_CONVERT_TO_VIRTUAL): Update.
5900 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
5901 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
5902 (alpha_register_convert_to_raw): Update.
5903
4443bd83
AC
59042003-04-08 Andrew Cagney <cagney@redhat.com>
5905
5906 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
5907 * gdbarch.h, gdbarch.c: Re-generate.
5908 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
5909 (d10v_gdbarch_init): Do not set saved_pc_after_call.
5910 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
5911 conditionally, use frame_pc_unwind as an alternative. Add
5912 comments.
5913 * arch-utils.c (init_frame_pc_default): Only call
5914 SAVED_PC_AFTER_CALL when available.
5915
c0236d92
EZ
59162003-04-08 Elena Zannoni <ezannoni@redhat.com>
5917
fbe586ae 5918 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5919 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
5920 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
5921 (start_remote): Ditto.
5922 (handle_inferior_event): Ditto.
5923 (save_inferior_status): Ditto.
5924 (restore_inferior_status): Ditto.
5925 * infcmd.c (attach_command): Ditto.
5926 * fork-child.c (startup_inferior): Ditto.
fbe586ae 5927 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
5928 * alpha-tdep.c (heuristic_proc_start): Ditto.
5929 * mips-tdep.c (heuristic_proc_start): Ditto.
5930 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
5931 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
5932 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
5933 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
5934 * remote-vx.c (vx_create_inferior): Ditto.
5935
59362003-04-08 Elena Zannoni <ezannoni@redhat.com>
5937
5938 * infrun.c (stop_soon_quietly): Make it an enum, to better
5939 override the default behavior of handle_inferior_event.
5940 (clear_proceed_status): Update uses of stop_soon_quietly to
5941 reflect that it is now an enum.
5942 (start_remote): Ditto.
5943 (handle_inferior_event): Change logic a bit if stop_soon_quietly
5944 is set to handle the new GNU/Linux kernel behavior for
5945 attach/sigstop. Update uses of stop_soon_quietly.
5946 * inferior.h (enum stop_kind): New enum.
5947 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
5948 Reset normal handle_inferior_event behavior, afterwards.
5949 * fork-child.c (startup_inferior): Update.
5950 * alpha-tdep.c (heuristic_proc_start): Update.
5951 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
5952 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
5953 * solib-osf.c (osf_solib_create_inferior_hook): Update.
5954 * solib-irix.c (irix_solib_create_inferior_hook): Update.
5955 * remote-vx.c (vx_create_inferior): Update.
5956 * mips-tdep.c (heuristic_proc_start): Update.
5957
1211bce3
EZ
59582003-04-07 Elena Zannoni <ezannoni@redhat.com>
5959
5960 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 5961 be freed more than once, causing wild memory corruptions.
1211bce3 5962 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 5963 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 5964 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 5965 with the "core" target.
1211bce3 5966
f0ef6b29
KB
59672003-04-07 Kevin Buettner <kevinb@redhat.com>
5968
5969 * mips-tdep.c (mips_print_fp_register): New function, created from
5970 do_fp_register_row(). Registers are now (also) printed as hex.
5971 Only one register is printed per row.
5972 (mips_print_register, do_fp_register_row): Print floating point
5973 registers with mips_print_fp_register().
5974
8cf71652
AC
59752003-04-06 Andrew Cagney <cagney@redhat.com>
5976
5e488a7b
AC
5977 * valprint.h (inspect_it): Add extern declaration.
5978 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
5979 (selectors_info, classes_info): Ditto.
5980 (find_objc_msgcall): Fix indentation.
5981 (objc_printstr): Delete extern declarations.
5982
8cf71652
AC
5983 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
5984
e6ba3bc9
AC
59852003-04-06 Andrew Cagney <cagney@redhat.com>
5986
5987 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
5988 Update comment.
5989 * frame.c (legacy_saved_regs_this_id): Update.
5990 (legacy_get_prev_frame): Update.
5991 * xstormy16-tdep.c: Update comment.
5992 * sparc-tdep.c (sparc_frame_chain): Update comment.
5993 * blockframe.c (legacy_frame_chain_valid): Update.
5994
55e1d7e7
AC
59952003-04-06 Andrew Cagney <cagney@redhat.com>
5996
996179ee
AC
5997 * valprint.c (val_print_type_code_int): Delete #ifdef
5998 PRINT_TYPELESS_INTEGER code.
5999
55e1d7e7
AC
6000 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
6001 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
6002 multi-arch definition.
6003 * gdbarch.h: Re-generate.
6004
43bd9a9e
AC
60052003-04-05 Andrew Cagney <cagney@redhat.com>
6006
6007 Eliminate FRAME_FIND_SAVED_REGS.
6008 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6009 Change FSR parameter to a pointer.
6010 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
6011 Assume FSR parameter is a pointer.
6012 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
6013 Make fsr a pointer.
6014 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
6015 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
6016 saved_regs a pointer.
6017 (hppa_frame_saved_pc): Ditto.
6018 (find_dummy_frame_regs): Make frame_saved_regs a pointer
6019 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
6020 pointer.
6021 (restore_pc_queue): Make fsr a pointer.
6022 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
6023 (hppa_frame_chain): Make saved_regs a pointer, call
6024 hppa_frame_init_saved_regs.
6025 * sparc-tdep.c: Include "gdb_assert.h".
6026 (sparc_frame_find_saved_regs): Replace internal_error with
6027 gdb_assert.
6028 * remote-vxsparc.c (vx_read_register): Delete reference to
6029 FRAME_FIND_SAVED_REGS.
6030 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
6031 * gdbarch.h: Regenerate.
6032 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
6033 (deprecated_get_frame_saved_regs): Delete declaration.
6034 (struct frame_saved_regs): Delete definition.
6035 * frame.c (deprecated_get_frame_saved_regs): Delete function.
6036 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
6037 (hppa_frame_find_saved_regs): Delete declaration.
6038 (FRAME_FIND_SAVED_REGS): Delete macro.
6039 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
6040 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
6041 FRAME_FIND_SAVED_REGS in comment.
6042
be41e9f4
AC
60432003-04-05 Andrew Cagney <cagney@redhat.com>
6044
6045 * frame.c (frame_func_unwind, get_frame_func): New functions.
6046 * frame.h (get_frame_func, frame_func_unwind): Declare.
6047 (struct frame_info): Add field "prev_func" for caching the
6048 previous frame's function address.
6049 * arm-tdep.c (arm_frameless_function_invocation): Combine
6050 get_pc_function_start and get_frame_pc into get_frame_func.
6051 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6052 (sh64_nofp_frame_init_saved_regs): Ditto.
6053 * s390-tdep.c (s390_function_start): Ditto.
6054 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
6055 (rs6000_frameless_function_invocation): Ditto.
6056 (rs6000_frame_saved_pc): Ditto.
6057 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
6058 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
6059 * i386-tdep.c (i386_frameless_signal_p): Ditto.
6060 (i386_frame_init_saved_regs): Ditto.
6061 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
6062 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
6063 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
6064 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
6065 * blockframe.c (frameless_look_for_prologue): Ditto.
6066
a01dd7cc
AC
60672003-04-05 Andrew Cagney <cagney@redhat.com>
6068
6069 * frame.c (legacy_get_prev_frame): Link prev to next at the
6070 function start. Update comments.
6071
5e5592e6
AC
60722003-04-05 Andrew Cagney <cagney@redhat.com>
6073
6074 * frame.c (get_frame_id): Update comment.
6075 (legacy_get_prev_frame): Update comment.
6076 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
6077 * gdbarch.h: Regenerate.
6078 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
6079 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
6080
6fba5002
AC
60812003-04-05 Andrew Cagney <cagney@redhat.com>
6082
6083 * stack.c (print_frame_info): Use get_frame_pc.
6084
7df05f2b
AC
60852003-04-04 Andrew Cagney <cagney@redhat.com>
6086
6087 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
6088 the frame's type from the unwinder.
6089 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
6090 (create_new_frame, legacy_get_prev_frame): When the unwinder's
6091 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
6092 (get_frame_base_address): Use get_frame_type.
6093 (get_frame_locals_address, get_frame_args_address): Ditto.
6094 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
6095 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
6096 (struct frame_info): Add comment explaining why the frame contains
6097 a "type" field.
6098 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
6099 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
6100 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
6101 NORMAL_FRAME.
6102 * frame-unwind.h: Include "frame.h".
6103 (struct frame_unwind): Add "type" field.
6104 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 6105
11889732
AC
61062003-04-04 Andrew Cagney <cagney@redhat.com>
6107
6108 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
6109 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
6110 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
6111 get_frame_base.
6112 (d10v_unwind_dummy_id): Use frame_id_build.
6113 * frame.c (find_frame_sal): Use get_frame_pc.
6114 (create_new_frame): Use deprecated_update_frame_pc_hack and
6115 deprecated_update_frame_base_hack.
6116 (create_sentinel_frame): Add comment about ->pc going away.
6117 (get_prev_frame): Add comment about ->pc going away.
6118 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
6119 frame_id_build, deprecated_update_frame_pc_hack and
6120 deprecated_update_frame_base_hack.
6121 (select_frame): Use get_frame_pc.
6122 (legacy_saved_regs_this_id): Use frame_id_build.
6123
50c46a0d
EZ
61242003-04-04 Elena Zannoni <ezannoni@redhat.com>
6125
fbe586ae
RH
6126 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
6127 signed integer case.
6128 (classify_argument): Handle enumerations and references.
50c46a0d 6129
50bbdbd9
AC
61302003-04-04 Andrew Cagney <cagney@redhat.com>
6131
6132 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
6133 ID to NULL.
6134
36018d2e
AF
61352003-04-01 Adam Fedor <fedor@gnu.org>
6136
6137 * gdb/objc-lang.c (selectors_info): Replace calls to
6138 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
6139 SYMBOL_NATURAL_NAME.
6140 (classes_info, find_methods): Likewise.
6141
35cec841
KB
61422003-04-03 Kevin Buettner <kevinb@redhat.com>
6143
6144 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
6145 ``mach'' to the value determined by bfd_default_set_arch_mach().
6146
43136899
BR
61472003-04-02 Bob Rossi <bob_rossi@cox.net>
6148
6149 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
6150 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
6151 (mi-cmd-file.o): Update dependencies.
6152
040b99fd
KB
61532003-04-01 Kevin Buettner <kevinb@redhat.com>
6154
6155 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
6156 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
6157
9a3d7dfd
AF
61582003-04-01 Adam Fedor <fedor@gnu.org>
6159
6160 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
6161 * language.h (struct language_defn): Add la_demangle.
6162 (language_demangle): Declare.
6163 * language.c (language_demangle): New function.
6164 (unk_lang_demangle): Likewise.
6165 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 6166 Add ukn_lang_demangle.
9a3d7dfd 6167 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 6168 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
6169 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
6170 (cplus_language_defn): Add cplus_demangle for la_demangle element.
6171 * jv-lang.c (java_demangle): New function
6172 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
6173 * objc-lang.c (objc_demangle): Add options argument
6174 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
6175 * maint.c (maintenance_demangle): Replace switch with
6176 call to language_demangle.
6177 * utils.c (fprintf_symbol_filtered): Likewise.
6178
5e074003
AC
61792003-04-01 Andrew Cagney <cagney@redhat.com>
6180
6181 * printcmd.c (print_frame_nameless_args): Delete #ifdef
6182 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
6183 PRINT_TYPELESS_INTEGER.
6184 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
6185 PUSH_RETURN_ADDRESS.
6186
270cb5d6
AC
61872003-04-01 Andrew Cagney <cagney@redhat.com>
6188
6189 * Makefile.in (d10v-tdep.o): Update dependencies.
6190 * d10v-tdep.c: Include "frame-base.h".
6191 (d10v_frame_unwind): Make constant.
6192 (d10v_frame_base_address): New function.
6193 (d10v_frame_base): New variable.
6194 (d10v_gdbarch_init): Set frame_base default.
6195 (struct d10v_unwind_cache): Add the field "prev_sp". Update
6196 comment for base.
6197 (d10v_frame_unwind_cache): Set and use "prev_sp".
6198 (d10v_frame_this_id): Use the previous frame's inner most stack
6199 address and this frame's func address for the frame ID. Use
6200 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 6201
6bfb3e36
AC
62022003-04-01 Andrew Cagney <cagney@redhat.com>
6203
6204 * frame.h (get_frame_locals_address, get_frame_args_address):
6205 Refer to the base address, instead of the address of the first
6206 local or parameter.
8ffd9b1b 6207
da62e633
AC
62082003-04-01 Andrew Cagney <cagney@redhat.com>
6209
6210 Add frame debug info addresses:
6211 * frame-base.c: New file.
6212 * frame-base.h: New file.
6213 * frame.h (struct frame_base): Add opaque declaration.
6214 (get_frame_base): Update comment.
6215 (get_frame_base_address): Declare.
6216 (get_frame_locals_address): Declare.
6217 (get_frame_args_address): Declare.
6218 (struct frame_info): Add "base" and "base_cache". Update
6219 comments on the unwinder.
6220 * frame.c: Include "frame-base.h".
6221 (get_frame_locals_address): New function.
6222 (get_frame_base_address): New function.
6223 (get_frame_args_address): New function.
6224 * findvar.c (read_var_value): Use get_frame_locals_address and
6225 get_frame_args_address.
6226 * stack.c (frame_info): Use get_frame_locals_address and
6227 get_frame_args_address.
6228 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
6229 moved to "frame-base.c".
6230 * printcmd.c (print_frame_nameless_args): Ditto.
6231 * symtab.h (address_class): Update comments.
6232 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
6233 get_frame_base_address.
6234 * dwarf2expr.c (execute_stack_op): Ditto.
6235 * Makefile.in (frame_base_h): Define.
6236 (frame.o): Update dependencies.
6237 (frame-base.o): Add dependencies.
6238 (SFILES): Add frame-base.c.
6239 (COMMON_OBS): Add frame-base.o.
6240
3d30e9c2
AC
62412003-04-01 Andrew Cagney <cagney@redhat.com>
6242
6243 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
6244 CALL_DUMMY_LENGTH): Ditto.
6245 * gdbarch.c: Re-generate.
6246 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
6247 (CALL_DUMMY_LENGTH): Delete macro.
6248 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
6249 * arm-tdep.c (arm_gdbarch_init): Ditto.
6250 * avr-tdep.c (avr_gdbarch_init): Ditto.
6251 * cris-tdep.c (cris_gdbarch_init): Ditto.
6252 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6253 * frv-tdep.c (frv_gdbarch_init): Ditto.
6254 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6255 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6256 * i386-tdep.c (i386_gdbarch_init): Ditto.
6257 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6259 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6260 * mips-tdep.c (mips_gdbarch_init): Ditto.
6261 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6262 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6263 * s390-tdep.c (s390_gdbarch_init): Ditto.
6264 * sh-tdep.c (sh_gdbarch_init): Ditto.
6265 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6266 * v850-tdep.c (v850_gdbarch_init): Ditto.
6267 * vax-tdep.c (vax_gdbarch_init): Ditto.
6268 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6269
ce0c7262
CV
62702003-04-01 Corinna Vinschen <vinschen@redhat.com>
6271
6272 * frame.c (get_prev_frame): Disable call to inside_entry_file().
6273
73dd234f
AC
62742003-04-01 Andrew Cagney <cagney@redhat.com>
6275
6276 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
6277 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6278 * gdbarch.h, gdbarch.c: Re-generate.
6279 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6280 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6281 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6282 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
6283 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
6284 * infcmd.c (run_stack_dummy): Simplify assuming
6285 CALL_DUMMY_BREAKPOINT_OFFSET_P.
6286 * infrun.c (handle_inferior_event): Ditto.
6287 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6288 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
6289 * arm-tdep.c (arm_gdbarch_init): Ditto.
6290 * avr-tdep.c (avr_gdbarch_init): Ditto.
6291 * cris-tdep.c (cris_gdbarch_init): Ditto.
6292 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6293 * frv-tdep.c (frv_gdbarch_init): Ditto.
6294 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6295 * i386-tdep.c (i386_gdbarch_init): Ditto.
6296 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6297 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6298 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6299 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6300 * mips-tdep.c (mips_gdbarch_init): Ditto.
6301 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6302 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6303 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6304 * s390-tdep.c (s390_gdbarch_init): Ditto.
6305 * sh-tdep.c (sh_gdbarch_init): Ditto.
6306 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6307 * v850-tdep.c (v850_gdbarch_init): Ditto.
6308 * vax-tdep.c (vax_gdbarch_init): Ditto.
6309 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6310
97606a13
DJ
63112003-04-01 Daniel Jacobowitz <drow@mvista.com>
6312
6313 * symfile.c (symfile_relocate_debug_section): Update call to
6314 bfd_simple_get_relocated_section_contents.
6315
e8ab51f7
AC
63162003-03-31 Andrew Cagney <cagney@redhat.com>
6317
6318 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
6319 * gdbarch.h, gdbarch.c: Regenerate.
6320 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6321 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
6322 available.
6323 * frame.h (generic_fix_call_dummy): Delete declaration.
6324 * dummy-frame.h: Update comment.
6325 * dummy-frame.c (generic_fix_call_dummy): Delete function.
6326 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6327 fix_call_dummy.
6328 * sh-tdep.c (sh_gdbarch_init): Ditto.
6329 * s390-tdep.c (s390_gdbarch_init): Ditto.
6330 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6331 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6332 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6333 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6334 * i386-tdep.c (i386_gdbarch_init): Ditto.
6335 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6336 * frv-tdep.c (frv_gdbarch_init): Ditto.
6337 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6338 * cris-tdep.c (cris_gdbarch_init): Ditto.
6339 * avr-tdep.c (avr_gdbarch_init): Ditto.
6340 * arm-tdep.c (arm_gdbarch_init): Ditto.
6341
018d1b48
JB
63422003-03-31 J. Brobecker <brobecker@gnat.com>
6343
6344 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
6345 (INIT_FRAME_AP): Likewise.
6346 (EXTRA_FRAME_INFO): Likewise.
6347
e9a2674e
AC
63482003-03-31 Andrew Cagney <cagney@redhat.com>
6349
6350 * gdbarch.sh: Include "symfile.h".
6351 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
6352 * gdbarch.h, gdbarch.c: Re-generate.
6353 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
6354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6355 call_dummy_address, the default is at entry_point_address.
6356 * v850-tdep.c (v850_gdbarch_init): Ditto.
6357 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
6358 * sh-tdep.c (sh_gdbarch_init): Ditto.
6359 * s390-tdep.c (s390_gdbarch_init): Ditto.
6360 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6361 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6362 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6363 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6364 * i386-tdep.c (i386_gdbarch_init): Ditto.
6365 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6366 * frv-tdep.c (frv_gdbarch_init): Ditto.
6367 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6368 * cris-tdep.c (cris_gdbarch_init): Ditto.
6369 * arm-tdep.c (arm_gdbarch_init): Ditto.
6370
e8a8712a
AC
63712003-03-31 Andrew Cagney <cagney@redhat.com>
6372
6373 * gdbarch.sh (CALL_DUMMY_P): Delete.
6374 * gdbarch.h, gdbarch.c: Re-generate.
6375 * inferior.h (CALL_DUMMY_P): Delete macro.
6376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6377 * vax-tdep.c (vax_gdbarch_init): Update.
6378 * v850-tdep.c (v850_gdbarch_init): Update.
6379 * sparc-tdep.c (sparc_gdbarch_init): Update.
6380 * sh-tdep.c (sh_gdbarch_init): Update.
6381 * s390-tdep.c (s390_gdbarch_init): Update.
6382 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6383 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6384 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6385 * mips-tdep.c (mips_gdbarch_init): Update.
6386 * mcore-tdep.c (mcore_gdbarch_init): Update.
6387 * m68k-tdep.c (m68k_gdbarch_init): Update.
6388 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6389 * ia64-tdep.c (ia64_gdbarch_init): Update.
6390 * i386-tdep.c (i386_gdbarch_init): Update.
6391 * h8300-tdep.c (h8300_gdbarch_init): Update.
6392 * frv-tdep.c (frv_gdbarch_init): Update.
6393 * d10v-tdep.c (d10v_gdbarch_init): Update.
6394 * cris-tdep.c (cris_gdbarch_init): Update.
6395 * breakpoint.c (deprecated_frame_in_dummy): Update.
6396 * avr-tdep.c (avr_gdbarch_init): Update.
6397 * alpha-tdep.c (alpha_gdbarch_init): Update.
6398 * arm-tdep.c (arm_gdbarch_init): Update.
6399 * dummy-frame.c (dummy_frame_this_id): Update comments.
6400 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
6401 * frame.c (legacy_get_prev_frame): Ditto.
6402 * valops.c (call_function_by_hand): Delete function.
6403 (hand_function_call): Rename to call_function_by_hand
6404
ed234cf8
AC
64052003-03-30 Andrew Cagney <cagney@redhat.com>
6406
6407 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 6408 * value.h (struct value): Update comment.
ed234cf8 6409
06c77151
AC
64102003-03-30 Andrew Cagney <cagney@redhat.com>
6411
6c2b5168
AC
6412 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
6413 D10V_FP_REGNUM.
6414 (d10v_gdbarch_init): Do not set fp_regnum.
6415
06c77151
AC
6416 * frame.c (get_frame_base): Force ID initialization.
6417 (get_prev_frame): Move computation of the frame ID from here ...
6418 (get_frame_id): ... to here.
6419 (legacy_get_prev_frame): Mark the frame ID as valid.
6420 * frame.h (struct frame_info): Add field "id_p".
6421
97a1a11c
MK
64222003-03-30 Mark Kettenis <kettenis@gnu.org>
6423
6424 * i386-tdep.c (i386_store_struct_return): Removed.
6425 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
6426
6c0e89ed
AC
64272003-03-30 Andrew Cagney <cagney@redhat.com>
6428
6429 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
6430 * gdbarch.h, gdbarch.c: Regenerate.
6431 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
6432 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
6433 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6434 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6435 * i386-tdep.c (i386_gdbarch_init): Ditto.
6436 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6437 * cris-tdep.c (cris_gdbarch_init): Ditto.
6438 * vax-tdep.c (vax_gdbarch_init): Ditto.
6439 * s390-tdep.c (s390_gdbarch_init): Ditto.
6440 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6441 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6442 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6443 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
6444 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
6445 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
6446 * sparc-tdep.c (sparc_gdbarch_init): Update.
6447 * sh-tdep.c (sh_gdbarch_init): Update.
6448 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6449 * mips-tdep.c (mips_gdbarch_init): Update.
6450 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6451 * ia64-tdep.c (ia64_gdbarch_init): Update.
6452 * frv-tdep.c (frv_gdbarch_init): Update.
6453 * avr-tdep.c (avr_gdbarch_init): Update.
6454 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
6455 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
6456 instead of when push_dummy_call is not available.
8ffd9b1b 6457
f7dd6af2
AC
64582003-03-30 Andrew Cagney <cagney@redhat.com>
6459
6460 * infttrace.c: Include "gdbthread.h".
6461 (parent_attach_all): Fix function signature.
6462 (call_ptrace): Update call.
6463 * Makefile.in (infttrace.o): Update dependencies.
6464
28f617b3
AC
64652003-03-30 Andrew Cagney <cagney@redhat.com>
6466
6467 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
6468 PUSH_RETURN_ADDRESS.
6469 * gdbarch.h, gdbarch.c: Regenerate.
6470 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6471 * x86-64-tdep.c (x86_64_init_abi): Update.
6472 * v850-tdep.c (v850_gdbarch_init): Update.
6473 * sparc-tdep.c (sparc_gdbarch_init): Update.
6474 * sh-tdep.c (sh_gdbarch_init): Update.
6475 * s390-tdep.c (s390_gdbarch_init): Update.
6476 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6477 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6478 * mips-tdep.c (mips_gdbarch_init): Update.
6479 * mcore-tdep.c (mcore_gdbarch_init): Update.
6480 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6481 * ia64-tdep.c (ia64_gdbarch_init): Update.
6482 * i386-tdep.c (i386_gdbarch_init): Update.
6483 * h8300-tdep.c (h8300_gdbarch_init): Update.
6484 * frv-tdep.c (frv_gdbarch_init): Update.
6485 * cris-tdep.c (cris_gdbarch_init): Update.
6486 * avr-tdep.c (avr_gdbarch_init): Update.
6487 * arm-tdep.c (arm_gdbarch_init): Update.
6488 * valops.c (hand_function_call): Update.
6489
4d628cd7
AC
64902003-03-29 Andrew Cagney <cagney@redhat.com>
6491
6492 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
6493 sizeof_call_dummy_words.
6494 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
6495 define.
6496 * gdbarch.h: Regenerate.
8ffd9b1b 6497
65e82032
AC
64982003-03-29 Andrew Cagney <cagney@redhat.com>
6499
6500 * infttrace.h: New file.
6501 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
6502 (hpread_get_textlow): Detect an uninitialized dn_bufp.
6503 (hpread_read_doc_function_type): Detect an initialized type1.
6504 (hpread_quick_traverse): Initialize mod_name_string.
6505 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
6506 (som_solib_get_solib_by_pc): Declare.
6507 (so_lib_thread_start_addr): Declare.
6508 (no_shared_libraries): Declare.
6509 * somread.c (init_import_symbols): Make static. Add forward
6510 declaration.
6511 * config/pa/nm-hppah.h: Include "infttrace.h" for
6512 parent_attach_all.
6513 (hppa_insert_hw_watchpoint): Declare.
6514 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
6515 * hppah-nat.c: Include "gdb_string.h".
6516 (parent_attach_all): Delete extern declaration, moved to
6517 "infttrace.h".
6518 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
6519 int.
6520 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
6521 * Makefile.in (infttrace_h): Define.
6522 (hpread.o): Update dependencies.
6523 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
6524 * hppa-hpux-tdep.c: Include "gdb_string.h".
6525 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
6526 * infrun.c (handle_inferior_event): Always initialize
6527 stepped_after_stopped_by_watchpoint. Add default and remove
6528 fallthrough in switch statement.
6529 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
6530 parameter to int.
6531 (hppa_remove_hw_watchpoint): Ditto.
6532
2c3bbe77
AC
65332003-03-29 Andrew Cagney <cagney@redhat.com>
6534
6535 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
6536 offset.
6537
2dd604e7
RE
65382003-03-29 Richard Earnshaw <rearnsha@arm.com>
6539
6540 * arm-tdep.c (arm_push_arguments): Delete.
6541 (struct stack_item): New type.
6542 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
6543 (arm_store_struct_return): Delte.
6544 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
6545 arm_push_arguments or arm_store_struct_return.
6546
e8933a55
AC
65472003-03-28 Andrew Cagney <cagney@redhat.com>
6548
6549 * Makefile.in (d10v-tdep.o): Update dependencies.
6550 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
6551 * d10v-tdep.c: Include "remote.h".
6552 (target_resume_hook): Delete extern declaration.
6553 (target_wait_loop_hook): Ditto.
6554 (tdisassemble_command): Eliminate assignment in "if" conditional.
6555 (d10v_ts2_register_sim_regno): Eliminate call to
6556 legacy_register_sim_regno.
6557 (d10v_ts3_register_sim_regno): Ditto.
6558
6949171e
JJ
65592003-03-28 Jeff Johnston <jjohnstn@redhat.com>
6560
6561 * thread.c: Reindented.
6562 * lin-lwp.c: Ditto.
6563 * linux-proc.c: Ditto.
6564
98c7071f
BR
65652003-03-28 Bob Rossi <bob_rossi@cox.net>
6566
fbe586ae 6567 * MAINTAINERS (write after approval): Add myself.
98c7071f 6568
5edc9ca6
TR
65692003-03-27 Theodore A. Roth <troth@openavr.org>
6570
6571 * objc-exp.y: Add missing semi-colons.
6572
378bfd1b
AC
65732003-03-27 Andrew Cagney <cagney@redhat.com>
6574
6575 * regcache.c (write_sp): Delete function and references.
6576 * inferior.h (write_sp): Delete declaration.
6577 * valops.c (hand_function_call): Replace write_sp with
6578 TARGET_WRITE_SP.
6579 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
6580 (sparc_pop_frame): Ditto.
8ffd9b1b 6581
56056df7
AC
65822003-03-27 Andrew Cagney <cagney@redhat.com>
6583
6584 * NEWS: Mention removal of support for hppa*-*-bsd* and
6585 hppa*-*-osf* natives, and hppa*-*-pro* target.
6586 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
6587 * config/pa/xm-pa.h: Obsolete file.
6588 * config/pa/xm-hppab.h: Obsolete file.
6589 * config/pa/nm-hppab.h: Obsolete file.
6590 * config/pa/tm-hppab.h: Obsolete file.
6591 * config/pa/tm-hppao.h: Obsolete file.
6592 * config/pa/nm-hppao.h: Obsolete file.
6593 * config/pa/tm-pro.h: Obsolete file.
6594 * config/pa/hppaosf.mt: Obsolete file.
6595 * config/pa/hppaosf.mh: Obsolete file.
6596 * config/pa/hppapro.mt: Obsolete file.
6597 * config/pa/hppabsd.mt: Obsolete file.
6598 * config/pa/hppabsd.mh: Obsolete file.
6599 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
6600 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
6601 hppa*-*-osf*.
6602
5873a88d
AC
66032003-03-27 Andrew Cagney <cagney@redhat.com>
6604
6605 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
6606 push_arguments. Don't set push_return_address or write_sp.
6607 (d10v_push_dummy_call): Replace d10v_push_arguments.
6608 (d10v_push_return_address, d10v_write_sp): Delete function,
6609 handled by push_dummy_call.
6610
b81774d8
AC
66112003-03-26 Andrew Cagney <cagney@redhat.com>
6612
6613 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
6614 (push_dummy_call): New pure multi-arch replacement with gdbarch,
6615 regcache and dummy_addr parameters.
6616 * gdbarch.h, gdbarch.c: Re-generate.
6617 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
6618 available; assume it will handle stack alignment and return
6619 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
6620 legacy_push_arguments.
6621 (legacy_push_arguments): Rename default_push_arguments.
6622 * value.h (legacy_push_arguments): Rename default_push_arguments.
6623 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
6624 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6625 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6626 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
6627 * config/i386/tm-symmetry.h: Update.
6628 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6629 * x86-64-tdep.c (x86_64_init_abi): Update.
6630 * v850-tdep.c (v850_gdbarch_init): Update.
6631 * sparc-tdep.c (sparc_gdbarch_init): Update.
6632 * sh-tdep.c (sh_gdbarch_init): Update.
6633 * s390-tdep.c (s390_gdbarch_init): Update.
6634 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6635 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6636 * mips-tdep.c (mips_gdbarch_init): Update.
6637 * mcore-tdep.c (mcore_gdbarch_init): Update.
6638 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6639 * ia64-tdep.c (ia64_gdbarch_init): Update.
6640 * i386-tdep.c (i386_gdbarch_init): Update.
6641 * hppa-tdep.c (hppa_gdbarch_init): Update.
6642 * h8300-tdep.c (h8300_gdbarch_init): Update.
6643 * frv-tdep.c (frv_gdbarch_init): Update.
6644 * d10v-tdep.c (d10v_gdbarch_init): Update.
6645 * cris-tdep.c (cris_gdbarch_init): Update.
6646 * avr-tdep.c (avr_gdbarch_init): Update.
6647 * arm-tdep.c (arm_gdbarch_init): Update.
6648 * arm-linux-tdep.c (arm_linux_init_abi): Update.
6649 * alpha-tdep.c (alpha_gdbarch_init): Update.
6650
f541410f
DJ
66512003-03-26 Daniel Jacobowitz <drow@mvista.com>
6652
6653 * signals/signals.c (do_target_signal_to_host): Correct realtime
6654 signal range test.
6655
69f567ae
DJ
66562003-03-26 Daniel Jacobowitz <drow@mvista.com>
6657
6658 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
6659 (struct sal_chain, map_catch_names): Remove.
6660 (catch_exception_command_1): Don't call
6661 handle_gnu_4_16_catch_command.
6662
d5d14a5a
DJ
66632003-03-26 Daniel Jacobowitz <drow@mvista.com>
6664
6665 From Mark Dettinger <dettinge@de.ibm.com>:
6666 * dwarf2cfi.c (read_2u): Increment pointer by two.
6667
bdd73e22
DJ
66682003-03-26 Daniel Jacobowitz <drow@mvista.com>
6669
6670 * signals/signals.c: Fix typos in last change.
6671
960cb555
DJ
66722003-03-26 Daniel Jacobowitz <drow@mvista.com>
6673
6674 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
6675 not already defined. Use __SIGRTMIN if available.
6676 (target_signal_from_host): Remove SIGRTMIN block.
6677 (do_target_signal_to_host): Remove SIGRTMIN block; check that
6678 the signal is within the realtime range.
6679
f636b87d
AF
66802003-03-25 Adam Fedor <fedor@gnu.org>
6681
6682 * Makefile.in (infrun.o): Add $(language_h)
6683 * infrun.c (handle_inferior_event): Use skip_language_trampoline
6684 for language specific trampolines.
6685 * language.h (struct language_defn): Add skip_trampoline.
6686 (skip_language_trampoline): Declare.
6687 * language.c (unk_lang_trampoline, skip_language_trampoline):
6688 New functions.
6689 (unknown_language_defn, auto_language_defn, local_language_defn):
6690 Add ukn_lang_trampoline.
6691 * ada-lang.c (ada_language_defn): Add NULL for language
6692 specific skip_trampoline.
6693 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
6694 scm-lang.c: Likewise.
6695 * objc-lang.c (objc_skip_trampoline): New function.
6696 (objc_language_defn): Add objc_skip_trampoline.
6697
28f617b3 66982003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
6699
6700 * frame.c (get_prev_frame): Delay validating a frame's ID -
6701 non-NULL, didn't go backwards - until an attempt to unwind it to
6702 the previous frame.
6703
f933a9c5
AC
67042003-03-25 Andrew Cagney <cagney@redhat.com>
6705
6706 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
6707 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
6708 * gdbarch.h, gdbarch.c: Re-generate.
6709 * config/sparc/tm-sparc.h
6710 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
6711 * sparc-tdep.c (sparc_gdbarch_init): Set
6712 deprecated_extra_stack_alignment_needed.
6713 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
6714 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
6715 extra_stack_alignment_needed.
6716 * v850-tdep.c (v850_gdbarch_init): Ditto.
6717 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
6718 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6719 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6720 * cris-tdep.c (cris_gdbarch_init): Ditto.
6721 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6722 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 6723
4183d812
AC
67242003-03-25 Andrew Cagney <cagney@redhat.com>
6725
6726 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
6727 STORE_STRUCT_RETURN.
6728 * gdbarch.h, gdbarch.c: Regenerate.
6729 * d10v-tdep.c (d10v_store_struct_return): Delete function.
6730 (d10v_push_arguments): Set the struct return register.
6731 (d10v_gdbarch_init): Update.
6732 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6733 * x86-64-tdep.c (x86_64_init_abi): Update.
6734 * vax-tdep.c (vax_gdbarch_init): Update.
6735 * v850-tdep.c (v850_gdbarch_init): Update.
6736 * sparc-tdep.c (sparc_gdbarch_init): Update.
6737 * sh-tdep.c (sh_gdbarch_init): Update.
6738 * s390-tdep.c (s390_gdbarch_init): Update.
6739 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6740 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6741 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6742 * mips-tdep.c (mips_gdbarch_init): Update.
6743 * mcore-tdep.c (mcore_gdbarch_init): Update.
6744 * m68k-tdep.c (m68k_gdbarch_init): Update.
6745 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6746 * ia64-tdep.c (ia64_gdbarch_init): Update.
6747 * i386-tdep.c (i386_gdbarch_init): Update.
6748 * hppa-tdep.c (hppa_gdbarch_init): Update.
6749 * h8300-tdep.c (h8300_gdbarch_init): Update.
6750 * frv-tdep.c (frv_gdbarch_init): Update.
6751 * cris-tdep.c (cris_gdbarch_init): Update.
6752 * avr-tdep.c (avr_gdbarch_init): Update.
6753 * arm-tdep.c (arm_gdbarch_init): Update.
6754 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 6755
1bf6d5cc
AC
67562003-03-25 Andrew Cagney <cagney@redhat.com>
6757
6758 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
6759 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
6760 CALL_DUMMY_STACK_ADJUST with a predicate variable.
6761 * gdbarch.h, gdbarch.c: Regenerate.
6762 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
6763 call_dummy_stack_adjust_p.
6764 * vax-tdep.c (vax_gdbarch_init): Ditto.
6765 * v850-tdep.c (v850_gdbarch_init): Ditto.
6766 * sh-tdep.c (sh_gdbarch_init): Ditto.
6767 * s390-tdep.c (s390_gdbarch_init): Ditto.
6768 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
6769 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
6770 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6771 * mips-tdep.c (mips_gdbarch_init): Ditto.
6772 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
6773 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
6774 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
6775 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
6776 * i386-tdep.c (i386_gdbarch_init): Ditto.
6777 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
6778 * frv-tdep.c (frv_gdbarch_init): Ditto.
6779 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6780 * cris-tdep.c (cris_gdbarch_init): Ditto.
6781 * avr-tdep.c (avr_gdbarch_init): Ditto.
6782 * arm-tdep.c (arm_gdbarch_init): Ditto.
6783 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
6784 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6785 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
6786 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
6787 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
6788 call_dummy_stack_adjust_p.
6789 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
6790 (CALL_DUMMY_STACK_ADJUST): Delete macro.
6791 * sparc-tdep.c (sparc32_push_arguments): Update.
6792 * valops.c (hand_function_call): Update.
6793
71c08af0
CV
67942003-03-25 Corinna Vinschen <vinschen@redhat.com>
6795
6796 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
6797 set_gdbarch_char_signed.
6798
30757f90
RE
67992003-03-25 Richard Earnshaw <rearnsha@arm.com>
6800
6801 PR cli/548
6802 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
6803
03d48a7d
RE
68042003-03-25 Richard Earnshaw <rearnsha@arm.com>
6805
6806 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
6807 (_initialize_arm_tdep): Don't set tm_print_insn.
6808
2cf6873c
AF
68092003-03-24 Adam Fedor <fedor@gnu.org>
6810
6811 * Makefile.in (YYOBJ): Add objc-exp.tab.o
6812 * objc-lang.h: Add multiple inclusion protection.
6813 (start_msglist, add_msglist, end_msglist): Additional declarations.
6814
17c0759e
RE
68152003-03-24 Richard Earnshaw <rearnsha@arm.com>
6816
6817 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
6818 value was renamed to ARM_FLOAT_SOFT_FPA.
6819
618ce49f
AC
68202003-03-23 Andrew Cagney <cagney@redhat.com>
6821
6822 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
6823 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
6824 * gdbarch.h, gdbarch.c: Regenerate.
6825 * valops.c (hand_function_call): Update.
6826 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6827 * frame.c (legacy_saved_regs_this_id): Update.
6828 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
6829 * dummy-frame.h: Update.
6830 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
6831 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
6832 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
6833 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
6834 * config/m68k/tm-sun3.h: Update.
6835 * blockframe.c (inside_main_func, frame_chain_valid): Update.
6836 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6837 * x86-64-tdep.c (x86_64_init_abi): Update.
6838 * vax-tdep.c (vax_gdbarch_init): Update.
6839 * v850-tdep.c (v850_gdbarch_init): Update.
6840 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
6841 * sh-tdep.c (sh_gdbarch_init): Update.
6842 * s390-tdep.c (s390_gdbarch_init): Update.
6843 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
6844 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
6845 (frame_get_saved_regs): Update.
6846 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
6847 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
6848 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6849 * mips-tdep.c (mips_gdbarch_init): Update.
6850 * mcore-tdep.c (mcore_gdbarch_init): Update.
6851 * m68k-tdep.c (m68k_gdbarch_init): Update.
6852 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6853 * ia64-tdep.c (ia64_gdbarch_init): Update.
6854 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
6855 * i386-interix-tdep.c (i386_interix_init_abi): Update.
6856 (i386_interix_back_one_frame): Update.
6857 * hppa-tdep.c (hppa_gdbarch_init): Update.
6858 (hppa_init_extra_frame_info): Update.
6859 * h8300-tdep.c (h8300_gdbarch_init): Update.
6860 * frv-tdep.c (frv_gdbarch_init): Update.
6861 * cris-tdep.c (cris_gdbarch_init): Update.
6862 * avr-tdep.c (avr_gdbarch_init): Update.
6863 * arm-tdep.c (arm_gdbarch_init): Update.
6864 * alpha-tdep.c (alpha_gdbarch_init): Update.
6865
fd50bc42
RE
68662003-03-22 Richard Earnshaw <rearnsha@arm.com>
6867
6868 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
6869 (arm_get_fp_model): Declare.
6870 * arm-tdep.c (fp_model_strings): New string array.
6871 (arm_fp_model, current_fp_model): New variables.
6872 (arm_get_fp_model): New function.
6873 (arm_set_fp): New function.
6874 (set_fp_model_sfunc): New function.
6875 (show_fp_model): New function.
6876 (_initialize_arm_tdep): Add new command to set/show the FPU.
6877 (arm_extract_return_value): Use arm_get_fp_model.
6878 (arm_store_return_value): Likewise.
6879 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
6880 to initialize the floating-point data types.
6881 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
6882 model is FPA.
6883
26304000
RE
68842003-03-22 Richard Earnshaw <rearnsha@arm.com>
6885
6886 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
6887 the current setting of each value.
6888 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 6889 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
6890 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
6891 commands and add new version as subcommands of "set/show arm".
6892
afd7eef0
RE
68932003-03-22 Richard Earnshaw <rearnsha@arm.com>
6894
6895 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
6896 (set_arm_command, show_arm_command): New functions.
6897 (_initialize_arm_tdep): Add them.
6898 (num_disassembly_options): Renamed from num_flavor_options.
6899 (valid_disassembly_styles): Renamed from valid_flavors.
6900 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 6901 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
6902 set_disassembly_flavor_sfunc.
6903 (set_disassembly_style): Renamed from set_disassembly_flavor.
6904 (arm_othernames): Updated.
6905 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
6906 command. Add "set/show arm disassembly" commands. Deprecate
6907 "othernames" command.
6908
299a7944
RE
69092003-03-22 Richard Earnshaw <rearnsha@arm.com>
6910
6911 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
6912 (arm-tdep.o): Depend on elf_arm_h.
6913
c1dac9e6
RE
69142003-03-22 Richard Earnshaw <rearnsha@arm.com>
6915
6916 * Makefile.in (coff_internal_h): Define.
6917 (arm-tdep.o): Update dependencies.
6918
2702d96c
RE
69192003-03-22 Richard Earnshaw <rearnsha@arm.com>
6920
6921 * arm-tdep.c (prologue_cache): Delete.
6922 (check_prologue_cache, save_prologue_cache): Delete.
6923 (arm_scan_prologue): Don't check or update the prologue_cache.
6924 (arm_gdb_arch_init): Don't initialize it.
6925 (_initialize_arm_tdep): Likewise.
6926
27d5d74b
SC
69272003-03-21 Stephane Carrez <stcarrez@nerim.fr>
6928
6929 * MAINTAINERS (tui): Maintainer of tui code.
6930
1762d96d
CV
69312003-03-21 Corinna Vinschen <vinschen@redhat.com>
6932
6933 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
6934 (i386-cygwin-tdep.o): Add dependencies.
6935 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
6936 * i386-cygwin-tdep.c: New file.
6937 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
6938 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
6939
4c2e2391
AC
69402003-03-20 Andrew Cagney <cagney@redhat.com>
6941
f20d38b7
AC
6942 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
6943 (handle_inferior_event): Remove code calling
6944 DYNAMIC_TRAMPOLINE_NEXTPC.
6945
0022b738
AC
6946 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
6947 already has a full path.
6948
864dbc90
AC
6949 * main.c (gdb_main): Return 1.
6950 (captured_main): Call error to report an invalid interpreter.
6951
4c2e2391
AC
6952 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
6953 * alpha-osf1-tdep.c: Include "gdb_string.h".
6954
5ef7553b
JB
69552003-03-19 J. Brobecker <brobecker@gnat.com>
6956
6957 Continuing work to convert the hppa targets to multiarch partial.
6958
6959 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
6960 method, now that hppa_push_dummy_frame has a conformant prototype.
6961 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
6962 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
6963 for the switch to multiarch partial.
6964
7bde8967
KB
69652003-03-19 Kevin Buettner <kevinb@redhat.com>
6966
6967 * mdebugread.c (parse_symbol): For stEnd, we're done counting
6968 when iss is issNull.
6969
b006a9e9
KB
69702003-03-18 Kevin Buettner <kevinb@redhat.com>
6971
6972 * mips-tdep.c (mips_register_name): Fix fencepost error involving
6973 NUM_REGS bounds check.
6974
5e2e9765
KB
69752003-03-18 Kevin Buettner <kevinb@redhat.com>
6976
6977 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
6978 * mips-tdep.c (gdb_assert.h): Include.
6979 (mips_generic_reg_names, mips_processor_reg_names): Make static.
6980 (mips_register_name): Handle integer registers explicitly. Add
6981 bounds checking.
6982 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
6983 (mips_lsi33k_reg_names): Don't list integer registers; they're
6984 handled by mips_register_name() now.
6985 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
6986 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
6987 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
6988 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
6989 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
6990
a2867626
AC
69912003-03-18 Andrew Cagney <cagney@redhat.com>
6992
6993 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
6994 a void pointer.
6995 * gdbtypes.h (print_scalar_formatted): Update declaration.
6996 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
6997
06600e06
JB
69982003-03-18 J. Brobecker <brobecker@gnat.com>
6999
7000 * infrun.c (observer.h): Add #include.
7001 (normal_stop): Add call to observer_notify_normal_stop.
7002 * Makefile.in (infrun.o): Add dependency on observer.h.
7003
7daf4f5b
JB
70042003-03-18 J. Brobecker <brobecker@gnat.com>
7005
7006 Continuing work to convert the hppa targets to multiarch partial.
7007 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
7008 parameter. Reformat comment.
7009 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
7010 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
7011 to match new profile.
7012
3371ccc0
JB
70132003-03-18 J. Brobecker <brobecker@gnat.com>
7014
7015 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
7016 appear to be working in any case.
7017
4fbe891e
JB
70182003-03-18 J. Brobecker <brobecker@gnat.com>
7019
7020 * observer.c (observer_test_first_observer): New static variable.
7021 (observer_test_second_observer): Likewise.
7022 (observer_test_third_observer): Likewise.
7023 (observer_test_first_notification_function): New static function.
7024 (observer_test_second_notification_function): Likewise.
7025 (observer_test_third_notification_function): Likewise.
7026
a7ff40e7
JB
70272003-03-17 J. Brobecker <brobecker@gnat.com>
7028
7029 * hppa-tdep.c (gdb_assert.h): Add missing #include.
7030 * somsolib.c (gdb_assert.h): Likewise.
7031 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
7032 (somsolib.o): Likewise.
7033
26ca4152
AC
70342003-03-17 Andrew Cagney <cagney@redhat.com>
7035
7036 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
7037 BFD. Simplify setting of di.endian.
7038
0a613259
AC
70392003-03-17 Andrew Cagney <cagney@redhat.com>
7040
7041 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
7042 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
7043
7044 From Elena Zannoni <ezannoni@redhat.com>
7045 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
7046 vector and floating-point parameters.
7047 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
7048 convention.
7049 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
7050
1132738f
FN
70512003-03-17 Fernando Nasser <fnasser@redhat.com>
7052
7053 * MAINTAINERS: Remove my name from several maintainership roles.
7054
6dc42492
AC
70552003-03-17 Andrew Cagney <cagney@redhat.com>
7056
7057 Fix frame off-by-one bug.
7058 * frame-unwind.h (frame_this_id_ftype): Replace
7059 frame_unwind_id_ftype.
7060 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
7061 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
7062 with "prev_register".
7063 * frame-unwind.c (frame_unwind_find_by_pc): Return
7064 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
7065 comment.
7066 * dummy-frame.c (cached_find_dummy_frame): Delete function.
7067 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
7068 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
7069 (dummy_frame_unwind): Update.
7070 * sentinel-frame.c (sentinel_frame_prev_register): Replace
7071 sentinel_frame_register_unwind.
7072 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
7073 (sentinel_frame_unwinder): Update.
7074 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7075 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
7076 * frame.c (create_sentinel_frame): Update. Initialize
7077 "prologue_cache" instead of "unwind_cache".
7078 (frame_register_unwind): Call this frame's prev_register with the
7079 next frame and this frame's prologue cache.
7080 (get_prev_frame): Simplify. Always call prev frame's this_id with
7081 this frame and prev frame's prologue cache. Document that this
7082 call is shifted one to the left when compared to the
7083 frame_register_unwind call.
7084 (legacy_saved_regs_prev_register): Replace
7085 frame_saved_regs_register_unwind.
7086 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
7087 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
7088 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
7089 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
7090 (d10v_frame_unwind): Update.
7091 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
7092 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
7093 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
7094 "saved_regs" with "this_saved_regs".
7095
efd710d6
AC
70962003-03-16 Andrew Cagney <cagney@redhat.com>
7097
7098 * frame.c (frame_pop): Don't call target_store_registers. Fix
7099 problem reported by Mark Kettenis.
7100
4e259f09
MK
71012003-03-16 Mark Kettenis <kettenis@gnu.org>
7102
7103 * i386-tdep.c (i386_register_type): Renamed from
7104 i386_register_virtual_type. Adjust function signature.
7105 (i386_gdbarch_init): Set register_type instead of
7106 deprecated_max_register_raw_size,
7107 deprecated_max_register_virtual_size and register_virtual_type.
7108
055bb976
AC
71092003-03-14 Andrew Cagney <cagney@redhat.com>
7110
7111 * frame.c (get_prev_frame): When a legacy frame, always call
7112 legacy_get_prev_frame. Simplify unwind code using assumption that
7113 the unwinder is new.
7114 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
7115 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
7116 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
7117
ac2adee5
AC
71182003-03-14 Andrew Cagney <cagney@redhat.com>
7119
7120 * frame.c (get_saved_register): Delete function.
7121 * frame.h (get_saved_register): Delete declaration.
7122 * xstormy16-tdep.c: Update comment.
7123 * regcache.h: Update comments.
7124 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
7125 get_saved_register and extract_address, use
7126 frame_read_unsigned_register.
7127 (sparc_frame_saved_pc): Ditto.
7128 (sparc_get_saved_register): Instead of get_saved_register, use
7129 frame_register.
7130 (sparc_pop_frame): Ditto.
7131 * findvar.c: Update comments.
7132 (value_of_register): Call frame_register instead of
7133 get_saved_register.
7134 (value_from_register): Ditto.
7135 * config/sparc/tm-sparc.h: Update comment.
7136 * breakpoint.c: Update comment.
7137
129c1cd6
AC
71382003-03-14 Andrew Cagney <cagney@redhat.com>
7139
7140 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
7141 GET_SAVED_REGISTER.
7142 * gdbarch.h, gdbarch.c: Re-generate.
7143 * frame.h: Update comments.
7144 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7145 * x86-64-tdep.c (x86_64_init_abi): Update.
7146 * sparc-tdep.c (sparc_gdbarch_init): Update.
7147 * sh-tdep.c (sh_gdbarch_init): Update.
7148 * mips-tdep.c (mips_gdbarch_init): Update.
7149 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7150 * cris-tdep.c (cris_gdbarch_init): Update.
7151 * ia64-tdep.c (ia64_gdbarch_init): Update.
7152 * frame.c (frame_register): Update.
7153 (get_saved_register): Update.
7154 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 7155
749b82f6
AC
71562003-03-13 Andrew Cagney <cagney@redhat.com>
7157
7158 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
7159 * gdbarch.h, gdbarch.c: Regenerate.
7160 * valops.c (hand_function_call): Update comment.
7161 * stack.c (return_command): Update comment.
7162 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
7163 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
7164 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7165 * x86-64-tdep.c (x86_64_init_abi): Update.
7166 * vax-tdep.c (vax_gdbarch_init): Update.
7167 * v850-tdep.c (v850_gdbarch_init): Update.
7168 * sparc-tdep.c (sparc_gdbarch_init): Update.
7169 * sh-tdep.c (sh_gdbarch_init): Update.
7170 * s390-tdep.c (s390_gdbarch_init): Update.
7171 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7172 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7173 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7174 * mips-tdep.c (mips_gdbarch_init): Update.
7175 * mcore-tdep.c (mcore_gdbarch_init): Update.
7176 * m68k-tdep.c (m68k_gdbarch_init): Update.
7177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7178 * ia64-tdep.c (ia64_gdbarch_init): Update.
7179 * i386-tdep.c (i386_gdbarch_init): Update.
7180 * hppa-tdep.c (hppa_gdbarch_init): Update.
7181 * h8300-tdep.c (h8300_gdbarch_init): Update.
7182 * frv-tdep.c (frv_gdbarch_init): Update.
7183 * cris-tdep.c (cris_gdbarch_init): Update.
7184 * avr-tdep.c (avr_gdbarch_init): Update.
7185 * arm-tdep.c (arm_gdbarch_init): Update.
7186 * alpha-tdep.c (alpha_gdbarch_init): Update.
7187
1594fa56
AC
71882003-03-13 Andrew Cagney <cagney@redhat.com>
7189
7190 * frame.c (legacy_frame_p): New function.
7191 (get_prev_frame): Use legacy_frame_p.
7192 * frame.h (legacy_frame_p): Declare.
7193
7717fda3
V
71942003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7195
fbe586ae 7196 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
7197 listing corrected.
7198
0c67cbe9
V
71992003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
7200
fbe586ae 7201 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 7202
03febf99
AC
72032003-03-12 Andrew Cagney <cagney@redhat.com>
7204
7205 * frame.c (get_prev_frame): Rename the frame parameter to
7206 "this_frame".
7207 (get_next_frame, legacy_get_prev_frame): Ditto.
7208
0a1e1ca1
AC
72092003-03-12 Andrew Cagney <cagney@redhat.com>
7210
7211 * frame.c (get_current_frame): Check target_has_registers before
7212 checking target_has_stack.
7213 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
7214 instead of deprecated_selected_frame.
7215 * findvar.c (value_of_register): Pass "frame", not
7216 deprecated_selected_frame, to value_of_builtin_reg.
7217
a66a9c23
AC
72182003-03-12 Andrew Cagney <cagney@redhat.com>
7219
7220 * regcache.c (regcache_cooked_write_signed): New function.
7221 (regcache_cooked_write_unsigned): New function.
7222 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
7223 (regcache_cooked_read_signed): Fix regnum in range assertion.
7224 * regcache.h (regcache_cooked_write_signed): Declare.
7225 (regcache_cooked_write_unsigned): Declare.
7226
8bedc050
AC
72272003-03-12 Andrew Cagney <cagney@redhat.com>
7228
7229 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7230 * gdbarch.h, gdbarch.c: Re-generate.
7231 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7232 * x86-64-tdep.h: Update.
7233 * x86-64-tdep.c (x86_64_init_abi): Update.
7234 * v850-tdep.c (v850_gdbarch_init): Update.
7235 * sparc-tdep.c (sparc_gdbarch_init): Update.
7236 * sh-tdep.c (sh_gdbarch_init): Update.
7237 * s390-tdep.c (s390_gdbarch_init): Update.
7238 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7239 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7240 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7241 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7242 * mips-tdep.c (mips_gdbarch_init): Update.
7243 * mcore-tdep.c (mcore_gdbarch_init): Update.
7244 * m68k-tdep.c (m68k_gdbarch_init): Update.
7245 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7246 * ia64-tdep.c (ia64_gdbarch_init): Update.
7247 * i386-tdep.c (i386_gdbarch_init): Update.
7248 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7249 * hppa-tdep.c (hppa_gdbarch_init): Update.
7250 * h8300-tdep.c (h8300_gdbarch_init): Update.
7251 * frv-tdep.c (frv_gdbarch_init): Update.
7252 * cris-tdep.c (cris_gdbarch_init): Update.
7253 * avr-tdep.c (avr_gdbarch_init): Update.
7254 * arm-tdep.c (arm_gdbarch_init): Update.
7255 * alpha-tdep.c (alpha_gdbarch_init): Update.
7256 * sh-tdep.c (sh_init_extra_frame_info): Update.
7257 (sh64_init_extra_frame_info): Update.
7258 * ns32knbsd-nat.c (frame_num_args): Update.
7259 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7260 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7261 (xstormy16_frame_chain_valid): Update.
7262 * vax-tdep.c (vax_saved_pc_after_call): Update.
7263 * v850-tdep.c (v850_frame_chain): Update.
7264 (v850_pop_frame): Update.
7265 (v850_init_extra_frame_info): Update.
7266 * sparc-tdep.c (setup_arbitrary_frame): Update.
7267 * ns32k-tdep.c (umax_frame_num_args): Update.
7268 * s390-tdep.c (s390_pop_frame_regular): Update.
7269 * mn10300-tdep.c (mn10300_frame_chain): Update.
7270 (mn10300_pop_frame_regular): Update.
7271 (mn10300_init_extra_frame_info): Update.
7272 * mips-tdep.c (mips_init_frame_pc_first): Update.
7273 (mips_frame_chain): Update.
7274 (mips_pop_frame): Update.
7275 * mcore-tdep.c (mcore_frame_chain): Update.
7276 (mcore_pop_frame): Update.
7277 (mcore_init_extra_frame_info): Update.
7278 * arch-utils.c (init_frame_pc_default): Update.
7279 * m68k-tdep.c (isi_frame_num_args): Update.
7280 (delta68_frame_num_args): Update.
7281 (news_frame_num_args): Update.
7282 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7283 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7284 (alpha_frame_chain): Update.
7285 (alpha_pop_frame): Update.
7286 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7287 (hppa_init_extra_frame_info): Update.
7288 (hppa_frame_chain): Update.
7289 (hppa_frame_chain_valid): Update.
7290 * cris-tdep.c (cris_init_extra_frame_info): Update.
7291 * avr-tdep.c (avr_init_extra_frame_info): Update.
7292 * arm-tdep.c (arm_frame_chain_valid): Update.
7293 (arm_init_extra_frame_info): Update.
7294 (arm_pop_frame): Update.
7295 * frame.c (frame_pc_unwind): Update.
7296 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7297 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7298 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7299 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7300 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7301 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7302
7a25a7c1
AC
73032003-03-12 Andrew Cagney <cagney@redhat.com>
7304
7305 Eliminate the need for POP_FRAME.
7306 * frame.c (do_frame_unwind_register): New function.
7307 (frame_pop): When no POP_FRAME, pop the frame using register
7308 unwind and a scratch regcache.
7309 (frame_saved_regs_pop): Delete function.
7310 (trad_frame_unwinder): Update.
7311 * d10v-tdep.c (d10v_frame_pop): Delete function.
7312 (d10v_frame_unwind): Update.
7313 * sentinel-frame.c (sentinel_frame_pop): Delete function.
7314 (sentinel_frame_unwinder): Update.
7315 * dummy-frame.c (dummy_frame_pop): Delete function.
7316 (dummy_frame_unwind): Update.
7317 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
7318 (struct frame_unwind): Update.
7319
2f38ef89
KB
73202003-03-11 Kevin Buettner <kevinb@redhat.com>
7321
7322 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
7323 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
7324 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
7325 Do range checks on register number obtained from debugging info.
7326 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
7327 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
7328 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
7329 mapping function.
7330 (do_fp_register_row): Fix typo which caused double type to be
7331 used when attempting to unpack a float.
7332
552f4abf
JB
73332003-03-11 J. Brobecker <brobecker@gnat.com>
7334
7335 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
7336
e0d2ae16
AC
73372003-03-11 Andrew Cagney <cagney@redhat.com>
7338
7339 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
7340 frame. Problem found by Corinna Vinschen.
7341
ddbfdd06
PM
73422003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
7343
7344 * doublest.c (floatformat_from_length): Accept also
7345 the real size of 'long double' type.
7346
088b2ddc 73472003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 7348
088b2ddc 7349 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
7350 * breakpoint.c (bpstat_copy): Copy the command lines as well
7351 as the old value, to match what is freed in bpstat_clear.
7352
f56f77c1
DC
73532003-03-10 David Carlton <carlton@math.stanford.edu>
7354
7355 * minsyms.c (add_minsym_to_hash_table): Replace
7356 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
7357 (compare_minimal_symbols, compact_minimal_symbols)
7358 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
7359 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
7360 of DEPRECATED_SYMBOL_MATCHES_NAME.
7361 (lookup_minimal_symbol_solib_trampoline): Ditto.
7362
5602984a
AC
73632003-03-10 Andrew Cagney <cagney@redhat.com>
7364
7365 * regcache.h (regcache_cooked_read_ftype): Define.
7366 (regcache_save, regcache_restore): Add a cooked_read parameter.
7367 * regcache.c (regcache_save, regcache_restore): Update.
7368 (do_cooked_read): New function.
7369 (regcache_cpy): Pass do_cooked_read to regcache_save and
7370 regcache_restore.
7371
8bedc050
AC
73722003-03-10 Andrew Cagney <cagney@redhat.com>
7373
7374 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
7375 * gdbarch.h, gdbarch.c: Re-generate.
7376 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7377 * x86-64-tdep.h: Update.
7378 * x86-64-tdep.c (x86_64_init_abi): Update.
7379 * v850-tdep.c (v850_gdbarch_init): Update.
7380 * sparc-tdep.c (sparc_gdbarch_init): Update.
7381 * sh-tdep.c (sh_gdbarch_init): Update.
7382 * s390-tdep.c (s390_gdbarch_init): Update.
7383 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7384 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7385 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7386 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7387 * mips-tdep.c (mips_gdbarch_init): Update.
7388 * mcore-tdep.c (mcore_gdbarch_init): Update.
7389 * m68k-tdep.c (m68k_gdbarch_init): Update.
7390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7391 * ia64-tdep.c (ia64_gdbarch_init): Update.
7392 * i386-tdep.c (i386_gdbarch_init): Update.
7393 * i386-interix-tdep.c (i386_interix_init_abi): Update.
7394 * hppa-tdep.c (hppa_gdbarch_init): Update.
7395 * h8300-tdep.c (h8300_gdbarch_init): Update.
7396 * frv-tdep.c (frv_gdbarch_init): Update.
7397 * cris-tdep.c (cris_gdbarch_init): Update.
7398 * avr-tdep.c (avr_gdbarch_init): Update.
7399 * arm-tdep.c (arm_gdbarch_init): Update.
7400 * alpha-tdep.c (alpha_gdbarch_init): Update.
7401 * sh-tdep.c (sh_init_extra_frame_info): Update.
7402 (sh64_init_extra_frame_info): Update.
7403 * ns32knbsd-nat.c (frame_num_args): Update.
7404 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
7405 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
7406 (xstormy16_frame_chain_valid): Update.
7407 * vax-tdep.c (vax_saved_pc_after_call): Update.
7408 * v850-tdep.c (v850_frame_chain): Update.
7409 (v850_pop_frame): Update.
7410 (v850_init_extra_frame_info): Update.
7411 * sparc-tdep.c (setup_arbitrary_frame): Update.
7412 * ns32k-tdep.c (umax_frame_num_args): Update.
7413 * s390-tdep.c (s390_pop_frame_regular): Update.
7414 * mn10300-tdep.c (mn10300_frame_chain): Update.
7415 (mn10300_pop_frame_regular): Update.
7416 (mn10300_init_extra_frame_info): Update.
7417 * mips-tdep.c (mips_init_frame_pc_first): Update.
7418 (mips_frame_chain): Update.
7419 (mips_pop_frame): Update.
7420 * mcore-tdep.c (mcore_frame_chain): Update.
7421 (mcore_pop_frame): Update.
7422 (mcore_init_extra_frame_info): Update.
7423 * arch-utils.c (init_frame_pc_default): Update.
7424 * m68k-tdep.c (isi_frame_num_args): Update.
7425 (delta68_frame_num_args): Update.
7426 (news_frame_num_args): Update.
7427 * ia64-tdep.c (ia64_pop_frame_regular): Update.
7428 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
7429 (alpha_frame_chain): Update.
7430 (alpha_pop_frame): Update.
7431 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
7432 (hppa_init_extra_frame_info): Update.
7433 (hppa_frame_chain): Update.
7434 (hppa_frame_chain_valid): Update.
7435 * cris-tdep.c (cris_init_extra_frame_info): Update.
7436 * avr-tdep.c (avr_init_extra_frame_info): Update.
7437 * arm-tdep.c (arm_frame_chain_valid): Update.
7438 (arm_init_extra_frame_info): Update.
7439 (arm_pop_frame): Update.
7440 * frame.c (frame_pc_unwind): Update.
7441 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
7442 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7443 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
7444 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
7445 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
7446 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 7447
12cc2063
AC
74482003-03-10 Andrew Cagney <cagney@redhat.com>
7449
7450 * gdbarch.sh (gdbarch_unwind_pc): New method.
7451 * gdbarch.h, gdbarch.c: Regenerate.
7452 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
7453 but use read_pc and FRAME_SAVED_PC as fall backs.
7454 (frame_saved_regs_pc_unwind): Delete function.
7455 (trad_frame_unwinder): Update.
7456 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
7457 (struct frame_unwind): Update.
7458 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
7459 (dummy_frame_unwind): Update.
7460 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
7461 (sentinel_frame_unwinder): Update.
7462 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
7463 (d10v_frame_unwind): Update.
7464 (d10v_unwind_pc): New function.
7465 (d10v_gdbarch_init): Set unwind_pc.
7466
ef840a37
AC
74672003-03-10 Andrew Cagney <cagney@redhat.com>
7468
a2ce2e56
AC
7469 * gdbarch.h: Re-generate.
7470
ef840a37
AC
7471 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
7472 PC.
7473 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
7474 the PC register.
7475
08f3424b
MK
74762003-03-08 Mark Kettenis <kettenis@gnu.org>
7477
7478 * gdbarch.sh (save_dummy_frame_tos): Add comment.
7479
1248ede2
AC
74802003-03-08 Andrew Cagney <cagney@redhat.com>
7481
7482 * cli-out.c: Update copyright.
7483 (cli_out_data): Define typedef. Use instead of ui_out_data.
7484
f49bacc8
AC
74852003-03-08 Andrew Cagney <cagney@redhat.com>
7486
7487 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
7488 the result.
7489
9b05f993
AC
74902003-03-07 Andrew Cagney <cagney@redhat.com>
7491
7492 * gdbarch.sh: Don't generate two macro definitions when an
7493 undefined macro taking no arguments.
7494 * gdbarch.h: Regenerate.
8ffd9b1b 7495
166f4c7b
ML
74962002-03-07 Michal Ludvig <mludvig@suse.cz>
7497
7498 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
7499 (x86_64_unwind_dummy_id): New functions.
7500 (x86_64_init_abi): Register these two new functions.
7501
6d686a84
ML
75022003-03-07 Michal Ludvig <mludvig@suse.cz>
7503
7504 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 7505 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
7506 separate function.
7507 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
7508
6314f104
AC
75092003-03-05 Andrew Cagney <cagney@redhat.com>
7510
7511 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
7512 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
7513 * frame.c (get_prev_frame): Restructure the frame ID unwind code
7514 to use unwind_dummy_id when a dummy frame.
7515 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
7516 predicate.
7517 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 7518
ceea5145
AC
75192003-03-05 Andrew Cagney <cagney@redhat.com>
7520
7521 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
7522 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
7523 Do not use d10v_read_sp or d10v_read_fp when obtaining register
7524 values.
7525
0d843116
AC
75262003-03-05 Andrew Cagney <cagney@redhat.com>
7527
7528 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
7529 (struct d10v_unwind_cache): Delete field "frameless". Replace
7530 "next_addr" with "sp_offset". Add "r11_offset".
7531 (d10v_frame_unwind_cache): Update.
7532 (prologue_find_regs): Update. When "mv r11, sp", save the
7533 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
7534 RN was saved in r11_offset.
7535
b2579786
AC
75362003-03-05 Andrew Cagney <cagney@redhat.com>
7537
7538 * frame.c (deprecated_update_frame_pc_hack): Also update the the
7539 cached PC value in the next frame.
7540
218e5956
AC
75412003-03-05 Andrew Cagney <cagney@redhat.com>
7542
7543 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
7544 "id_unwind_cache" with "id".
7545 (frame_id_unwind): Delete declaration.
7546 * frame.c (frame_id_unwind): Delete function.
7547 (get_prev_frame): Call the frame id unwind method directly. Store
7548 the returned next frame's ID value in NEXT_FRAME. Note that there
7549 is a problem with the wrong unwind ID being called with the wrong
7550 unwind cache.
7551
ed363b1b
DJ
75522003-03-05 Daniel Jacobowitz <drow@mvista.com>
7553
7554 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
7555
fe1f4a5e
DJ
75562003-03-05 James Ingham <jingham@apple.com>
7557 Daniel Jacobowitz <drow@mvista.com>
7558
7559 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
7560 (auto_cp_abi): New variable.
7561 (current_cp_abi, num_cp_abis): Make static.
7562 (CP_ABI_MAX): Define.
7563 (cp_abis): Turn into an array.
7564 (value_virtual_fn_field): Fix formatting.
7565 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
7566 takes a pointer.
7567 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
7568 (list_cp_abis, _initialize_cp_abi): New functions.
7569 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
7570 declarations for cp_abis, num_cp_abis, current_cp_abi, and
7571 switch_to_cp_abi. Update prototype for register_cp_abi.
7572 * Makefile.in (cp-abi.o): Update dependencies.
7573 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
7574 instead of switch_to_cp_abi.
7575 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
7576 register_cp_abi.
7577 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
7578 register_cp_abi.
7579 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
7580
e4adbba9
DJ
75812003-03-05 Daniel Jacobowitz <drow@mvista.com>
7582
7583 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
7584 * dwarf2loc.c: Include "regcache.h".
7585 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
7586 register_size.
7587 * Makefile.in (dwarf2loc.o): Update dependencies.
7588
91ccbfc1
TR
75892003-03-04 Theodore A. Roth <troth@openavr.org>
7590
7591 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
7592 number of io registers reported by remote target is not a multiple of
7593 step.
7594
3d4e8fd2
DC
75952003-03-04 David Carlton <carlton@math.stanford.edu>
7596
7597 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
7598 (lookup_symbol_aux_psymtabs): Update call to
7599 lookup_partial_symbol.
7600 (lookup_transparent_type, find_main_psymtab)
7601 (make_symbol_overload_list): Ditto.
7602
ed42d87b
KH
76032003-03-04 Kazu Hirata <kazu@cs.umass.edu>
7604
7605 * MAINTAINERS (Write after approval): Update my email address.
7606
a0ed5532
AC
76072003-03-03 Andrew Cagney <cagney@redhat.com>
7608
7609 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
7610 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
7611 predicate. Replace MAX_REGISTER_RAW_SIZE.
7612 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
7613 MAX_REGISTER_VIRTUAL_SIZE.
7614 * regcache.c (legacy_max_register_raw_size): New function.
7615 (legacy_max_register_virtual_size): New function.
7616 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
7617 (MAX_REGISTER_RAW_SIZE): Define.
7618 (legacy_max_register_raw_size): Declare.
7619 (legacy_max_register_virtual_size): Declare.
7620 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7621 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
7622 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7623 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7624 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
7625 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
7626 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7627 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7628 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
7629 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7630 * vax-tdep.c (vax_gdbarch_init): Update.
7631 * v850-tdep.c (v850_gdbarch_init): Update.
7632 * sparc-tdep.c (sparc_gdbarch_init): Update.
7633 * sh-tdep.c (sh_gdbarch_init): Update.
7634 * s390-tdep.c (s390_gdbarch_init): Update.
7635 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7636 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7637 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7638 * mips-tdep.c (mips_gdbarch_init): Update.
7639 * mcore-tdep.c (mcore_gdbarch_init): Update.
7640 * m68k-tdep.c (m68k_gdbarch_init): Update.
7641 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7642 * ia64-tdep.c (ia64_gdbarch_init): Update.
7643 * i386-tdep.c (i386_gdbarch_init): Update.
7644 * hppa-tdep.c (hppa_gdbarch_init): Update.
7645 * h8300-tdep.c (h8300_gdbarch_init): Update.
7646 * frv-tdep.c (frv_gdbarch_init): Update.
7647 * cris-tdep.c (cris_gdbarch_init): Update.
7648 * avr-tdep.c (avr_gdbarch_init): Update.
7649 * arm-tdep.c (arm_gdbarch_init): Update.
7650 * alpha-tdep.c (alpha_gdbarch_init): Update.
7651 * d10v-tdep.c (d10v_gdbarch_init): Do not set
7652 max_register_raw_size or max_register_virtual_size.
7653
8e437497
DC
76542003-03-03 David Carlton <carlton@math.stanford.edu>
7655
7656 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
7657 SYMBOL_MATCHES_NAME, add comment.
7658 (SYMBOL_MATCHES_NATURAL_NAME): New.
7659 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
7660 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
7661 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
7662 * symtab.c (lookup_partial_symbol): Use
7663 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
7664 unhelpful comment.
7665 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
7666 SYMBOL_MATCHES_NAME.
7667 Fix for PR c++/33.
7668
25120b0d
DC
76692003-03-03 David Carlton <carlton@math.stanford.edu>
7670
7671 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
7672 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
7673 by regexp matching against SYMBOL_NATURAL_NAME.
7674
78a11fb4
DC
76752003-03-03 David Carlton <carlton@math.stanford.edu>
7676
7677 * linespec.c (find_method): Extract code into collect_methods.
7678 (collect_methods): New.
7679
645dd519
MK
76802003-03-02 Mark Kettenis <kettenis@gnu.org>
7681
b4700d91
MK
7682 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
7683 get_frame_base.
7684
645dd519
MK
7685 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
7686 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7687
0aa7e1aa
SC
76882003-03-02 Stephane Carrez <stcarrez@nerim.fr>
7689
8ffd9b1b 7690 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
7691 and not regnum when summing the size of all registers up to regnum.
7692
f30ee0bc
AC
76932003-03-01 Andrew Cagney <cagney@redhat.com>
7694
7695 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
7696 FRAME_INIT_SAVED_REGS.
7697 * gdbarch.h, gdbarch.c: Regenerate.
7698 * stack.c (frame_info): Update.
7699 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
7700 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
7701 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
7702 * ns32k-tdep.c (ns32k_pop_frame): Update.
7703 * mips-tdep.c (mips_pop_frame): Update.
7704 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
7705 * ia64-tdep.c (ia64_frame_chain): Update.
7706 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
7707 (ia64_frameless_function_invocation): Update.
7708 (ia64_init_extra_frame_info): Update.
7709 (ia64_pop_frame_regular): Update.
7710 * frame.h (struct frame_info): Update comment.
7711 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
7712 * frame.c (frame_saved_regs_register_unwind): Update.
7713 (frame_saved_regs_register_unwind): Update.
7714 (deprecated_generic_get_saved_register): Update.
7715 * cris-tdep.c: Update comment.
7716 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
7717 Rename macro.
7718 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7719 * x86-64-tdep.c (x86_64_init_abi): Update.
7720 * vax-tdep.c (vax_gdbarch_init): Update.
7721 * v850-tdep.c (v850_gdbarch_init): Update.
7722 * sparc-tdep.c (sparc_gdbarch_init): Update.
7723 * sh-tdep.c (sh_gdbarch_init): Update.
7724 * s390-tdep.c (s390_gdbarch_init): Update.
7725 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7726 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
7727 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7728 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7729 * mips-tdep.c (mips_gdbarch_init): Update.
7730 * mcore-tdep.c (mcore_gdbarch_init): Update.
7731 * m68k-tdep.c (m68k_gdbarch_init): Update.
7732 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7733 * ia64-tdep.c (ia64_gdbarch_init): Update.
7734 * i386-tdep.c (i386_gdbarch_init): Update.
7735 * frv-tdep.c (frv_gdbarch_init): Update.
7736 * avr-tdep.c (avr_gdbarch_init): Update.
7737 * arm-tdep.c (arm_gdbarch_init): Update.
7738 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 7739
42fa7c0f
AC
77402003-03-01 Andrew Cagney <cagney@redhat.com>
7741
7742 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
7743 option enum and switch. When no windows, set the interpreter to
7744 INTERP_CONSOLE.
8ffd9b1b 7745
49c7e338
AC
77462003-03-01 Andrew Cagney <cagney@redhat.com>
7747
7748 * main.c (captured_main): Replace magic option characters with an
7749 enum.
7750
e9582e71
AC
77512003-03-01 Andrew Cagney <cagney@redhat.com>
7752
7753 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
7754 INIT_EXTRA_FRAME_INFO.
7755 * gdbarch.h, gdbarch.c: Regenerate.
7756 * arm-tdep.c: Update comments.
7757 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
7758 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
7759 * frame.h, avr-tdep.c: Ditto.
7760 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
7761 (create_new_frame, legacy_get_prev_frame): Ditto.
7762 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7763 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
7764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
7765 deprecated_init_extra_frame_info instead of init_extra_frame_info.
7766 * x86-64-tdep.c (x86_64_init_abi): Ditto.
7767 * v850-tdep.c (v850_gdbarch_init): Ditto.
7768 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7769 * sh-tdep.c (sh_gdbarch_init): Ditto.
7770 * s390-tdep.c (s390_gdbarch_init): Ditto.
7771 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
7772 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7773 * mips-tdep.c (mips_gdbarch_init): Ditto.
7774 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7775 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7776 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7777 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
7778 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
7779 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7780 * frv-tdep.c (frv_gdbarch_init): Ditto.
7781 * cris-tdep.c (cris_gdbarch_init): Ditto.
7782 * avr-tdep.c (avr_gdbarch_init): Ditto.
7783 * arm-tdep.c (arm_gdbarch_init): Ditto.
7784 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7785 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7786
35cac7cf
AC
77872003-03-01 Andrew Cagney <cagney@redhat.com>
7788
7789 * gdbarch.sh (register_type): New function with predicate.
7790 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
7791 * gdbarch.h, gdbarch.c: Re-generate.
7792 * arch-utils.c (generic_register_byte): Use generic_register_size.
7793 (generic_register_size): When available, use
7794 gdbarch_register_type.
7795 * regcache.c (init_regcache_descr): When available, initialize the
7796 register type array using gdbarch_register_type. If the
7797 architecture supplies gdbarch_register_type, do not use the legacy
7798 regcache layout.
7799 * d10v-tdep.c (d10v_register_type): Replace
7800 d10v_register_virtual_type.
7801 (d10v_gdbarch_init): Set register_type instead of
7802 register_virtual_type.
7803
7b83296f
AC
78042003-03-01 Andrew Cagney <cagney@redhat.com>
7805
7806 * Makefile.in (ax-gdb.o): Update dependencies.
7807 * ax-gdb.c: Include "regcache.h".
7808 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
7809 * findvar.c (value_of_register): Ditto.
7810 * infcmd.c (default_print_registers_info): Ditto.
7811
eadc1c87
MK
78122003-03-01 Mark Kettenis <kettenis@gnu.org>
7813
7814 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
7815 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
7816
14143612
MK
78172003-03-01 Mark Kettenis <kettenis@gnu.org>
7818
7819 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
7820 of STREQ.
7821
a55cc764
DJ
78222003-02-28 Daniel Jacobowitz <drow@mvista.com>
7823
7824 * Makefile.in (dwarf2loc.o): Update dependencies.
7825 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
7826 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
7827 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
7828 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
7829 (locexpr_tracepoint_var_ref): New function.
7830 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
7831
08a617da
AC
78322003-02-28 Andrew Cagney <cagney@redhat.com>
7833
7834 * regcache.c (register_size): New function.
7835 * regcache.h (register_size): Declare
7836 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
7837 max_register_size instead of MAX_REGISTER_RAW_SIZE.
7838
4224873a
DC
78392003-02-28 David Carlton <carlton@math.stanford.edu>
7840
7841 * linespec.c (decode_compound): Extract code into find_method.
7842 (find_method): New.
7843
ccdc5d7f
JB
78442003-02-28 J. Brobecker <brobecker@gnat.com>
7845
7846 * Makefile.in: Add rules to build and link in observer.o.
7847
974e8ced
JB
78482003-02-27 J. Brobecker <brobecker@gnat.com>
7849
7850 * observer.c: Minor comments edits.
7851
7a28f973
JB
78522003-02-27 J. Brobecker <brobecker@gnat.com>
7853
7854 * observer.h, observer.c: New file.
7855
27cddce2
AC
78562003-02-27 Andrew Cagney <cagney@redhat.com>
7857
7858 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
7859
b94a41a1
SC
78602003-02-27 Stephane Carrez <stcarrez@nerim.fr>
7861
7862 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
7863 (M6812_OP_STS_EXT): Likewise.
7864 (m6811_prologue): Use the above to recognize prologue.
7865 (m6812_prologue): Likewise.
7866
c8be8951
DC
78672003-02-27 David Carlton <carlton@math.stanford.edu>
7868
7869 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
7870 SYMBOL_PRINT_NAME.
7871 (compare_psymbols): Ditto.
7872 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
7873
d05bb1fc
MS
78742003-02-27 Michael Snyder <msnyder@redhat.com>
7875
4e845cd3
MS
7876 * f-lang.c (build_fortran_types): New function.
7877 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
7878 * doublest.c (extract_floating): Fix warning text.
7879
f3824013
AC
78802003-02-27 Andrew Cagney <cagney@redhat.com>
7881
7882 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
7883 predicate. Replaces PUSH_DUMMY_FRAME.
7884 * gdbarch.h, gdbarch.c: Regnerate.
7885 * valops.c (hand_function_call): Update. Call
7886 generic_push_dummy_frame directly.
7887 * vax-tdep.c (vax_gdbarch_init): Update.
7888 * sparc-tdep.c (sparc_gdbarch_init): Update.
7889 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7890 * m68k-tdep.c (m68k_gdbarch_init): Update.
7891 * hppa-tdep.c (hppa_gdbarch_init): Update.
7892 * alpha-tdep.c (alpha_gdbarch_init): Update.
7893 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7894 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
7895 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
7896 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
7897 push_dummy_frame to generic_push_dummy_frame.
7898 * v850-tdep.c (v850_gdbarch_init): Ditto.
7899 * sh-tdep.c (sh_gdbarch_init): Ditto.
7900 * s390-tdep.c (s390_gdbarch_init): Ditto.
7901 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7902 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7903 * mips-tdep.c (mips_gdbarch_init): Ditto.
7904 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7906 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7907 * i386-tdep.c (i386_gdbarch_init): Ditto.
7908 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7909 * frv-tdep.c (frv_gdbarch_init): Ditto.
7910 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7911 * cris-tdep.c (cris_gdbarch_init): Ditto.
7912 * avr-tdep.c (avr_gdbarch_init): Ditto.
7913 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 7914
ad188201
KB
79152003-02-26 Kevin Buettner <kevinb@redhat.com>
7916
7917 * mips-tdep.c (show_mips_abi): New function.
7918 (_initialize_mips_tdep): Use show_mips_abi() to implement the
7919 command ``show mips abi''.
7920
6b37567a 79212003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7922
6b37567a 7923 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 7924 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
7925 more sline entries have been seen for the function.
7926
d3e0a5bf
MC
79272003-02-26 Michael Chastain <mec@shout.net>
7928
7929 * configure: Regenerate with autoconf 000227.
7930
18972eea
MC
79312003-02-26 Michael Chastain <mec@shout.net>
7932
7933 Close PR build/660.
7934 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
7935 for old libc5/glibc.
7936 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
7937
0bbde931
KW
79382003-02-26 Kris Warkentin <kewarken@qnx.com>
7939
7940 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
7941 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
7942
27ca5dad
MC
79432003-02-26 Michael Chastain <mec@shout.net>
7944
7945 * configure.in: New variable HAVE_UINTPTR_T.
7946 * configure, config.in: Regenerated.
7947
6f88d630
DJ
79482003-02-26 Daniel Jacobowitz <drow@mvista.com>
7949
7950 Fix PR build/1097.
7951 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
7952
b14185ce
AC
79532003-02-25 Andrew Cagney <cagney@redhat.com>
7954
7955 * frame.c (get_prev_frame): Add comment on check for
7956 inside_entry_func. Only check for inside_entry_file when not a
7957 dummy and not a sentinel. Check that the new frame is not inner
7958 to the old frame.
7959
ac2bd0a9
AC
79602003-02-25 Andrew Cagney <cagney@redhat.com>
7961
7962 * frame.c (frame_debug): New variable.
7963 (_initialize_frame): Add "set/show debug frame" command.
7964 (get_prev_frame): When frame_debug, print reason why unwind
7965 failed.
7966
b18a0fd2
MC
79672003-02-25 Michael Chastain <mec@shout.net>
7968
7969 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
7970 to avoid uintptr_t definition problems.
7971
22abf04a
DC
79722003-02-25 David Carlton <carlton@math.stanford.edu>
7973
7974 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
7975 (SYMBOL_LINKAGE_NAME): Ditto.
7976 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
7977 SYMBOL_LINKAGE_NAME.
7978 (struct general_symbol_info): Expand comment.
7979 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
7980 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
7981 (SYMBOL_MATCHES_REGEXP): Ditto.
7982 * symtab.c (symbol_natural_name): New function.
7983 * objfiles.h: Replace all uses of SYMBOL_NAME by
7984 DEPRECATED_SYMBOL_NAME.
7985 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
7986 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
7987 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
7988 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
7989 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
7990 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
7991 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
7992 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
7993 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
7994 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
7995 * ada-exp.y: Ditto.
7996 * ada-exp.y: Update copyright.
7997 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
7998 * cp-valprint.c: Ditto.
7999
1a5848f6
JJ
80002003-02-25 Jeff Johnston <jjohnstn@redhat.com>
8001
8002 * infptrace.c (detach): Do not flag error if ptrace detach fails
8003 and errno is set to ESRCH.
8004
7343d46a
AC
80052003-02-24 Andrew Cagney <cagney@redhat.com>
8006
8007 * infptrace.c (udot_info): Change type of udot_off to long. Use
8008 paddr when printing udot_off's value.
8009
49fa1dc2
DC
80102003-02-24 David Carlton <carlton@math.stanford.edu>
8011
8012 * symtab.c (make_symbol_overload_list): Only read in partial
8013 symtabs containing a matching partial symbol.
8014
0fe19209
DC
80152003-02-24 David Carlton <carlton@math.stanford.edu>
8016
8017 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
8018 do the comparison, not strcmp.
8019 * symfile.c (compare_psymbols): Ditto.
8020 * defs.h: Declare strcmp_iw_ordered.
8021 * utils.c (strcmp_iw_ordered): New function.
8022
8e3ee7b5
JB
80232003-02-24 Jim Blandy <jimb@redhat.com>
8024
8025 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
8026 support, shared libs): Remove my name from here, to better reflect
8027 reality.
8028
7df1a324
KW
80292003-02-24 Kris Warkentin <kewarken@qnx.com>
8030
8031 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
8032 (target_ops): Add to_have_continuable_watchpoint.
8033 * target.c (update_current_target): Add INHERIT line for
8034 to_have_continuable_watchpoint.
8035 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
8036 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
8037 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
8038 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
8039
d1c76907
EZ
80402003-02-24 Elena Zannoni <ezannoni@redhat.com>
8041
8042 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
8043 maintainership.
8044
2610b0bf
KW
80452003-02-24 Kris Warkentin <kewarken@qnx.com>
8046
f46169db
KW
8047 * solib.c (solib_open): Call target defined search function after
8048 failing with solib-search-path.
8049 * solist.h (target_so_ops): Add find_and_open_solib function hook and
8050 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 8051
9a3c34fe
KW
80522003-02-24 Kris Warkentin <kewarken@qnx.com>
8053
f46169db 8054 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 8055
2417dd25
SC
80562003-02-23 Stephane Carrez <stcarrez@nerim.fr>
8057
8058 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
8059
b631436b
SC
80602003-02-22 Stephane Carrez <stcarrez@nerim.fr>
8061
8062 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
8063 (m68hc11_add_reggroups): New function.
8064 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
8065 (m68hc11_gdbarch_init): Install the reggroups.
8066 (_initialize_m68hc11_tdep): Initialize them.
8067
0aa8c1e4
JW
80682003-02-21 James E Wilson <wilson@tuliptree.org>
8069
8070 * MAINTAINERS: Update my email address.
8071
50ceaba5
DC
80722003-02-21 David Carlton <carlton@math.stanford.edu>
8073
8074 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
8075
4c2df51b
DJ
80762003-02-21 Daniel Jacobowitz <drow@mvista.com>
8077
8078 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
8079 * symtab.h: Add opaque declarations of struct axs_value and
8080 struct agent_expr.
8081 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
8082 (struct location_funcs): New type.
8083 (struct symbol): Add "loc" to aux_value.
8084 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
8085 * dwarf2read.c: Include "dwarf2expr.h".
8086 (dwarf2_symbol_mark_computed): New function.
8087 (read_func_scope): Use it.
8088 (var_decode_location): New function.
8089 (new_symbol): Use it.
8090 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
8091
8092 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
8093 (dwarf2expr_h, dwarf2loc_h): New variables.
8094 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
8095 (dwarf2expr.o, dwarf2loc.o): New rules.
8096 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
8097 * buildsym.c (finish_block): Handle LOC_COMPUTED and
8098 LOC_COMPUTED_ARG.
8099 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
8100 * m2-exp.y (yylex): Likewise.
8101 * printcmd.c (address_info, print_frame_args): Likewise.
8102 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
8103 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
8104 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
8105 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
8106 * symtab.c (lookup_block_symbol): Likewise.
8107
5784d15e
AF
81082003-02-20 Adam Fedor <fedor@gnu.org>
8109
8110 * symtab.h: Remove objc_specific struct
8111 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
8112 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
8113 Have language_objc use cplus_specific struct.
8114
d4cad8db
TT
81152003-02-20 Tom Tromey <tromey@redhat.com>
8116
8117 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
8118 TYPE_NAME, when printing a String value. PR java/1075.
8119
2f9a90b4
AF
81202003-02-20 Adam Fedor <fedor@gnu.org>
8121
d38074a8 8122 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 8123 * objc-lang.c (find_methods): Make static.
2f9a90b4 8124
6f17862b
CF
81252003-02-20 Christopher Faylor <cgf@redhat.com>
8126
8127 * win32-nat.c (get_image_name): Check return value from
8128 ReadProcessMemory.
8129 (child_xfer_memory): Ditto.
8130
715d1656
AO
81312003-02-20 Alexandre Oliva <aoliva@redhat.com>
8132
8133 * configure.in (TARGET_SYSTEM_ROOT): Set default to
8134 ${exec_prefix}/${target_alias}/sys-root. Match explicit
8135 '${exec_prefix}' (in addition to the expansion thereof) as
8136 relocatable.
8137 * configure: Rebuilt.
8138
b1262a02
DC
81392003-02-20 David Carlton <carlton@math.stanford.edu>
8140
8141 * symtab.c (search_symbols): Revert the search_symbols part of my
8142 2002-12-23 patch. Add comment.
8143
7134143f
DJ
81442002-02-20 Daniel Jacobowitz <drow@mvista.com>
8145
8146 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
8147 * dbxread.c (elfstab_build_psymtabs): Don't call
8148 install_minimal_symbols.
8149 (stabsect_build_psymtabs): Likewise.
8150 * elfread.c (elf_symfile_read): Call install_minimal_symbols
8151 earlier.
8152 * somread.c (som_symfile_read): Call install_minimal_symbols
8153 and do_cleanups earlier.
8154 * nlmread.c (nlm_symfile_read): Likewise.
8155 * mdebugread.c (elfmdebug_build_psymtabs): Call
8156 install_minimal_symbols and make appropriate cleanups.
8157
cf466558
KB
81582003-02-20 Kevin Buettner <kevinb@redhat.com>
8159
8160 * solib.c (reload_shared_libraries): New function.
8161 (_initialize_solib): Add callbacks for ``set solib-search-path''
8162 and ``set solib-absolute-prefix''.
8163
de5ad195
DC
81642003-02-20 David Carlton <carlton@math.stanford.edu>
8165
8166 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
8167 expand comment.
8168 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
8169 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
8170 * ada-typeprint.c (ada_typedef_print): Ditto.
8171 * ax-gdb.c (gen_var_ref): Ditto.
8172 * breakpoint.c (print_one_breakpoint): Ditto.
8173 * buildsym.c (finish_block): Ditto.
8174 * c-valprint.c (c_val_print): Ditto.
8175 * expprint.c (print_subexp): Ditto.
8176 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
8177 * infcmd.c (jump_command): Ditto.
8178 * linespec.c (decode_line_2, decode_compound): Ditto.
8179 * maint.c (maintenance_translate_address): Ditto.
8180 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
8181 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
8182 Ditto.
8ffd9b1b
AJ
8183 * p-valprint.c (pascal_val_print): Ditto.
8184 * stabsread.c (define_symbol): Ditto.
de5ad195 8185 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
8186 (print_frame_arg_vars, return_command): Ditto.
8187 * symfile.c (compare_symbols, compare_psymbols): Ditto.
8188 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
8189 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
8190 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
8191 (rbreak_command): Ditto.
8192 * tracepoint.c (tracepoints_info): Ditto.
8193 * typeprint.c (typedef_print): Ditto.
8194 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
8195 * cli/cli-cmds.c (edit_command, list_command): Ditto.
8196 * ada-typeprint.c: Update Copyright.
8197 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
8198 * tracepoint.c, cli/cli-cmds.c: Ditto.
8199
f796e4be
KB
82002003-02-20 Kevin Buettner <kevinb@redhat.com>
8201
8202 * frame.c (generic_unwind_get_saved_register): Make non-static.
8203 * frame.h (generic_unwind_get_saved_register): Declare.
8204 * mips-tdep.c (read_next_frame_reg): Fetch register from
8205 current regcache when frame is NULL.
8206 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
8207 that must be NULL.
8208 (mips_get_saved_register): Call generic_unwind_get_saved_register()
8209 instead of frame_register_unwind().
8210
836cc9f4
AC
82112003-02-20 Andrew Cagney <ac131313@redhat.com>
8212
8213 * remote-sim.c (gdbsim_insert_breakpoint)
8214 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
8215 code.
8216
501eef12
AC
82172003-02-20 Andrew Cagney <ac131313@redhat.com>
8218
8219 * remote.c (_initialize_remote): Add commands "set/show remote
8220 hardware-watchpoint-limit" and "set/show remote
8221 hardware-breakpoint-limit".
8222 (remote_hw_watchpoint_limit): Initialize to -1.
8223 (remote_hw_breakpoint_limit): Ditto.
8224 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
8225
1b6bc7e0
CF
82262003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
8227
8228 * coff-pe-read.c: New file - support reading of minimal symbols from a
8229 portable executable using the export table.
8230 * coff-pe-read.h: New file.
8231 * coffread.c: Include coff-pe-read.h.
8232 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
8233 debugging symbols found.
8234 * Makefile.in (SFILES): Add coff-pe-read.o.
8235 (coff_pe_read_h): Define.
8236 (COMMON_OBS): Add coff-pe-read.o.
8237 (coffread.o): Add coff_pe_read_h dependency.
8238 (coff-pe-read.o): New target.
8239
fe898f56
DC
82402003-02-19 David Carlton <carlton@math.stanford.edu>
8241
8242 * Makefile.in (SFILES): Add block.c.
8243 (block_h): New.
8244 (COMMON_OBS): Add block.o.
8245 (block.o): New.
8246 (x86-64-tdep.o): Add $(block_h).
8247 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
8248 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
8249 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
8250 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
8251 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
8252 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
8253 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
8254 * value.h: Add opaque declaration for struct block.
8255 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
8256 * ada-lang.h: Ditto.
8257 * x86-64-tdep.c: #include "block.h"
8258 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
8259 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
8260 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
8261 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
8262 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
8263 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
8264 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
8265 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
8266 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
8267 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
8268 * symtab.c (block_function): Ditto.
8269 (contained_in): Ditto.
8270 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
8271 block.h. Add opaque declaration for struct block.
8272 * symtab.h: Move block_function and contained_in declarations to
8273 block.h. Add opaque declarations for struct block, struct
8274 blockvector.
8275 (struct block): Move to block.h.
8276 (struct blockvector): Ditto.
8277 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
8278 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
8279 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
8280 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
8281 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
8282 Ditto.
8283 * block.c: New file.
8284 * block.h: New file.
8285
173345b5
TR
82862003-02-19 Theodore A. Roth <troth@openavr.org>
8287
8288 * avr-tdep.c (avr_extract_return_value): Remove function.
8289 (avr_store_return_value): Remove function.
8290 (avr_extract_struct_value_address): Remove function.
8291 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
8292
338ef23d
AC
82932003-02-19 Andrew Cagney <ac131313@redhat.com>
8294
8295 * rs6000-tdep.c: Include "gdb_assert.h".
8296 (registers_e500): Add "acc" and "spefscr".
8297 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
8298 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
8299 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
8300 really is "r0".
8301 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
8302
5412f5f3
KS
83032003-02-18 Keith Seitz <keiths@redhat.com>
8304
8305 * Makefile.in: Add gdbtk-interps.c.
8306
881324eb
KB
83072003-02-18 Kevin Buettner <kevinb@redhat.com>
8308
8309 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
8310 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
8311
6a2f5abf
AC
83122003-02-18 Andrew Cagney <cagney@redhat.com>
8313
8314 * symtab.h (struct objfile): Add opaque declaration.
8315
54c7009d
EZ
83162003-02-18 Elena Zannoni <ezannoni@redhat.com>
8317
8318 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
8319 * dbxread.c (process_one_symbol): Use last_function_start rather
8320 than function_start_offset to find the real beginning of the
8321 current function. The latter is just the text section offset on
8322 some systems, the former is always the real function start.
54c7009d 8323
7ee6d7eb
AC
83242003-02-17 Andrew Cagney <cagney@redhat.com>
8325
8326 * configure.in: Revert ${target} != ${host}.
8327
2846da9b
AC
83282003-02-17 Andrew Cagney <ac131313@redhat.com>
8329
8330 * configure.in (Makefile): Use the test ${target} != ${host},
8331 instead of the absence of the "nm.h" file, to determine of the
8332 configuration non-native.
8333 * configure: Regenerate.
8ffd9b1b 8334
3b27aeea
EZ
83352003-02-14 Elena Zannoni <ezannoni@redhat.com>
8336
fbe586ae 8337 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
8338
8339 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
8340 conditionalize tui_active test.
8341 (lookup_cmd_1): Ditto.
8342
b0b1c2c0
MK
83432003-02-14 Mark Kettenis <kettenis@gnu.org>
8344
8345 * configure.in: Add check for _etext.
8346 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
8347 available.
8348 * config.in, configure: regenerated.
8349
8f05cde5
DJ
83502003-02-14 Daniel Jacobowitz <drow@mvista.com>
8351
8352 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
8353
021e7609
AC
83542003-02-14 Andrew Cagney <ac131313@redhat.com>
8355
8356 * main.c (tui_version): Delete variable.
8357 (captured_main): When --tui, set interpreter_p to "tui" instead of
8358 enabling tui_version.
8359 * printcmd.c (display_command) [TUI]: Test tui_active instead of
8360 tui_version.
8361 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
8362 * cli/cli-cmds.c (disassemble_command): Ditto.
8363 * defs.h (tui_version): Delete declaration.
8364 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
8365 (tui-interp.o): Add rules.
8366 (SUBDIR_TUI_OBS): Add "tui-interp.o".
8367
e325dcec
CF
83682003-02-14 Christopher Faylor <cgf@redhat.com>
8369
36ffb041 8370 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
8371 just-loaded dll.
8372
c4f90d87
JM
83732003-02-12 Jason Molenda (jmolenda@apple.com)
8374
fbe586ae
RH
8375 * symmisc.c (print_objfile_statistics): Include information about
8376 the number of psymtabs and symtabs in each object file.
c4f90d87 8377
e46e5ccd
KS
83782003-02-13 Keith R Seitz <keiths@redhat.com>
8379
8380 * main.h (struct captured_main_args): Add interpreter_p.
8381 * main.c (captured_main): Initialize interpreter_p from context.
8382 * gdb.c (main): Set interpreter_p argument.
8383 * Makefile.in (gdb.o): Add dependency for interps.h.
8384
fe97fe9c
AC
83852003-02-12 Andrew Cagney <ac131313@redhat.com>
8386
8387 * event-top.c (cli_command_loop): Delete declaration.
8388 (_initialize_event_loop): Delete function setting event_loop_hook.
8389 * event-top.h (cli_command_loop): Declare. Update copyright.
8390 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
8391 * interps.c (current_interp_command_loop): When event_loop_p, call
8392 cli_command_loop.
8393
1cdac4ef
AC
83942003-02-12 Andrew Cagney <ac131313@redhat.com>
8395
8396 * interps.h (interp_command_loop_ftype): Change return type to
8397 void.
8398
48037ead
ML
83992003-02-12 Michal Ludvig <mludvig@suse.cz>
8400
8401 * x86-64-tdep.c (x86_64_extract_return_value)
8402 (x86_64_store_return_value): Use regcache instead of regbuf.
8403 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
8404 * x86-64-linux-nat.c (fill_gregset): Use regcache.
8405
033afc63
AC
84062003-02-11 Andrew Cagney <ac131313@redhat.com>
8407
8408 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
8409 * aclocal.m4: Regenerate.
8410 * configure: Regenerate.
8411
8412 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
8413 TCL_LD_SEARCH_FLAGS.
8414
40d02bca
ML
84152003-02-10 Michal Ludvig <mludvig@suse.cz>
8416
8417 * dwarf2cfi.c: Reindented.
8418
11308a41
AC
84192003-02-09 Andrew Cagney <ac131313@redhat.com>
8420
8421 * interps.c (clear_interpreter_hooks): Convert function definition
8422 to ISO C.
8423
e1c1c0f6
DC
84242003-02-07 David Carlton <carlton@math.stanford.edu>
8425
8426 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
8427
ab5d3da6
KB
84282003-02-07 Kevin Buettner <kevinb@redhat.com>
8429
8430 * gdbtypes.h (struct main_type): Move ``length'' field from here...
8431 (struct type): ...to here.
8432 (TYPE_LENGTH): Adjust to reflect different location of ``length''
8433 field.
8434 * gdbtypes.c (make_qualified_type): Set length on newly created type.
8435 (replace_type): Set length on all type variants for a given type.
8436
b8a92b82
AC
84372003-02-07 Andrew Cagney <ac131313@redhat.com>
8438
8439 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
8440 <sys/stat.h>.
8441 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 8442
5cb316ef
AC
84432003-02-06 Andrew Cagney <ac131313@redhat.com>
8444
2555fe1a
AC
8445 * Makefile.in (symm-nat.o): Update dependencies.
8446 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
8447 (lynx-nat.o, ia64-linux-nat.): Ditto.
8448 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
8449 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
8450 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
8451
44270758
AC
8452 * Makefile.in (inflow_h): Define.
8453 (procfs.o, inflow.o, procfs.o): Update dependencies.
8454 * inftarg.c (child_stop): Delete extern declaration of
8455 inferior_process_group. Include "inflow.h".
8456 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
8457 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
8458 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
8459 (our_process_group, inferior_process_group): Extern declarations.
8460
df8f7274
AC
8461 * procfs.c: Include "gdb_assert.h".
8462
5cb316ef
AC
8463 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8464 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
8465 * jv-typeprint.c (java_type_print_base): Ditto.
8466 * typeprint.c (typedef_print): Eliminate STREQ.
8467 * cli/cli-script.c (define_command, define_command): Ditto.
8468 * main.c (captured_main): Ditto.
8469 * values.c (lookup_internalvar): Ditto.
8470 * utils.c (safe_strerror, parse_escape): Eliminate assignment
8471 within `if' conditional.
8472 * linespec.c (decode_line_2): Ditto.
8473 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
8474 (bfd_openw_with_cleanup): Ditto.
8475
2a28ccea
MK
84762003-02-07 Mark Kettenis <kettenis@gnu.org>
8477
8478 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
8479 legacy_extract_return_value and store_return_value to
8480 legacy_return_value.
8481
786b8124
CF
84822003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
8483
8484 * win32-nat.c (get_relocated_section_addrs): New function. Find
8485 section load addresses for symbol handling in relocated DLLs.
8486 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
8487
b871e4ec
FF
84882003-02-05 Fred Fish <fnf@intrinsity.com>
8489
8490 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
8491 '=' and '!='.
8492 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
8493 with '&' and '=='.
8494 (angel_RDI_info): Ditto.
8495 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
8496 with '&' and '!='.
8497 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 8498
4389a95a 84992003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
8500 Keith Seitz <keiths@redhat.com>
8501 Elena Zannoni <ezannoni@redhat.com>
8502 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
8503
8504 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
8505 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
8506 (SUBDIR_MI_OBS): Add "mi-interp.o".
8507 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
8508 (SFILES): Add "interps.c".
8509 (COMMON_OBS): Add "interps.o".
8510 (interps_h, mi_main_h): Define.
8511 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
8512 (mi-main.o, main.o, event-top.o): Update dependencies.
8513 * cli/cli-interp.c: New file.
8514 * interps.h, interps.c: New files.
8515 * top.c: (gdb_init): Don't install the default interpreter, handed
8516 by captured_main.
8517 * main.c: Include "interps.h".
8518 (interpreter_p): Note that it should malloc'ed.
8519 (captured_command_loop): Call current_interp_command_loop.
8520 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
8521 xfree and xstrdup when updating interpreter_p. Install the
8522 default interpreter. Add hack to stop mi1's copyright notice
8523 being encoded.
8524 * event-top.h (gdb_setup_readline): Declare.
8525 (gdb_disable_readline): Declare.
8526 * event-top.c: Include "interps.h".
8527 (display_gdb_prompt): Call current_interp_display_prompt_p.
8528 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
8529 gdb_stdlog, and gdb_stdtarg.
8530 (_initialize_event_loop): Don't call gdb_setup_readline.
8531 * cli-out.c (cli_out_set_stream): New function.
8532 * cli-out.h (cli_out_set_stream): Declare.
8533
ff3b5810
MK
85342003-02-06 Mark Kettenis <kettenis@gnu.org>
8535
8536 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
8537 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
8538 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
8539 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
8540 config/i386/i386v42mp.mt: Removed.
8541
5b729aa5
MK
85422003-02-05 Mark Kettenis <kettenis@gnu.org>
8543
8544 * configure.tgt (*-*-solaris*): Set gdb_osabi to
8545 GDB_OSABI_SOLARIS.
8546
8cc15142
MC
85472003-02-05 Michael Chastain <mec@shout.net>
8548
8549 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
8550 2.12.1 and earlier versions.
8551
5aa5d4b9
AC
85522003-02-05 Andrew Cagney <ac131313@redhat.com>
8553
8554 Remove orphaned hosts, targets and files.
8555 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
8556 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
8557 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
8558 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
8559 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
8560 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
8561 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
8562 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
8563 * config/sparc/tm-sp64sim.h: Delete.
8564 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
8565 hosts.
8566 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
8567 mips*-dec-mach3* targets.
8568
b68767c1
MC
85692003-02-04 Michael Chastain <mec@shout.net>
8570
8571 * NEWS: Fix typo: sepcifying -> specifying.
8572
5ae7ca1d
MC
85732003-02-04 Michael Chastain <mec@shout.net>
8574
8575 * dwarfread.c: Add documentation on the state of dwarf-1,
8576 looking towards obsoletion.
8577
d08a4280
MC
85782003-02-03 Michael Chastain <mec@shout.net>
8579
8580 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
8581 gdb/testsuite/gdb.c++/pr-1023.exp.
8582
e9be73e4
AC
85832003-02-04 Andrew Cagney <ac131313@redhat.com>
8584
8585 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
8586 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
8587
8588 * utils.c (init_page_info): Delete reference to MPW in comments.
8589 * main.c (captured_main): Delete #ifdef MPW.
8590
05d57f6f
AC
85912003-02-04 Andrew Cagney <ac131313@redhat.com>
8592
8ffd9b1b 8593 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
8594 * monitor.c (monitor_expect): Obsolete reference to m32r.
8595 * configure.tgt: Mark m32r-*-elf* as obsolete.
8596 * MAINTAINERS: Mark m32k as obsolete.
8597 * m32r-rom.c: Obsolete file.
8598 * config/m32r/m32r.mt: Obsolete file.
8599 * config/m32r/tm-m32r.h: Obsolete file.
8600 * m32r-stub.c: Obsolete file.
8601 * m32r-tdep.c: Obsolete file.
8602
8b0e5691
AC
86032003-02-04 Andrew Cagney <ac131313@redhat.com>
8604
8605 * NEWS: Mention that the z8k-zilog-none is obsolete.
8606 * MAINTAINERS: Mark z8k as obsolete.
8607 * configure.tgt: Obsolete the z8k-*-coff* target.
8608 * config/z8k/z8k.mt: Obsolete file.
8609 * config/z8k/tm-z8k.h: Obsolete file.
8610 * z8k-tdep.c: Obsolete file.
8611
67f16606
AC
86122003-02-04 Andrew Cagney <ac131313@redhat.com>
8613
8614 * NEWS: Mention that the mn10200-elf is obsolete.
8615 * configure.tgt: Obsolete mn10200-*-* target.
8616 * breakpoint.c (update_breakpoints_after_exec): Update comment to
8617 mention that the mn10200 is obsolete.
8618 * breakpoint.h: Ditto.
8619 * MAINTAINERS: Mark the mn10200-elf as obsolete.
8620 * config/mn10200/mn10200.mt: Obsolete file.
8621 * config/mn10200/tm-mn10200.h: Obsolete file.
8622 * mn10200-tdep.c: Obsolete file.
8623
fd2299bd
AC
86242003-02-04 Andrew Cagney <ac131313@redhat.com>
8625
8626 * MAINTAINERS: Mark h8500 as obsolete.
8627 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
8628 * findvar.c (value_from_register): Ditto.
8629 * h8500-tdep.c: Mark file as obsolete.
8630 * config/h8500/h8500.mt: Ditto.
8631 * config/h8500/tm-h8500.h: Ditto.
8632 * NEWS: Mention that h8500 is obsolete.
8633
eb9a305d
DC
86342003-02-04 David Carlton <carlton@math.stanford.edu>
8635
8636 * objfiles.c (allocate_objfile): Always set name. Add comment at
8637 start of function.
8638 * jv-lang.c (get_dynamics_objfile): Add comment.
8639
406fc7fb
DC
86402003-02-04 David Carlton <carlton@math.stanford.edu>
8641
8642 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
8643 * printcmd.c (build_address_symbolic): Replace uses of
8644 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
8645 SYMBOL_NAME, and asm_demangle.
8646 Update copyright.
8647
93d91629
DC
86482003-02-04 David Carlton <carlton@math.stanford.edu>
8649
8650 * linespec.c (decode_compound): Extract code into
8651 lookup_prefix_sym.
8652 (lookup_prefix_sym): New function.
8653
1c5cb38e
DC
86542003-02-04 David Carlton <carlton@math.stanford.edu>
8655
8656 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
8657 FLOAT_COERCION_BADNESS.
8658 * gdbtypes.c (rank_one_type): Replace all uses of
8659 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
8660
0cf824c9
JB
86612003-02-04 Jim Blandy <jimb@redhat.com>
8662
8663 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
8664 section, let dwarf_macinfo_section point to it, not
8665 dwarf_loc_section.
8666
a2d356b0
DJ
86672003-02-04 Daniel Jacobowitz <drow@mvista.com>
8668
8669 Pointed out by Anton Blanchard <anton@samba.org>.
8670 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
8671 (ppc_linux_at_sigtramp_return_path): Use it.
8672
2de7ced7
DJ
86732003-02-04 Daniel Jacobowitz <drow@mvista.com>
8674
8675 * defs.h (streq): Add prototype.
8676 * utils.c (streq): New function.
8677
8678 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
8679 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
8680 * mdebugread.c (new_symbol): Likewise.
8681 * stabsread.c (define_symbol): Likewise.
8682 * coffread.c (process_coff_symbol): Likewise.
8683 * dwarfread.c (new_symbol): Likewise.
8684
8685 * minsyms.c (prim_record_minimal_symbol_and_info): Use
8686 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
8687 here.
8688 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
8689 SYMBOL_INIT_DEMANGLED_NAME.
8690 * objfiles.c: Include "hashtab.h".
8691 (allocate_objfile): Call htab_set_functions_ex for the
8692 demangled_names_hash.
8693 (free_objfile): Call htab_delete for the demangled_names_hash.
8694 * objfiles.h (struct htab): Add declaration.
8695 (struct objfile): Add demangled_names_hash.
8696 * symfile.c: Include "hashtab.h".
8697 (reread_symbols): Call htab_delete for the demangled_names_hash.
8698 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
8699 SYMBOL_NAME in the bcache.
8700 * symtab.c: Include "hashtab.h". Update comments.
8701 (create_demangled_names_hash, symbol_set_names): New functions.
8702 (symbol_find_demangled_name): New function, broken out from
8703 symbol_init_demangled_names.
8704 (symbol_init_demangled_names): Use it.
8705 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
8706 (SYMBOL_SET_NAMES): New macro.
8707 (symbol_set_names): Add prototype.
8708
15831452
JB
87092003-02-03 Jim Blandy <jimb@redhat.com>
8710
8711 Use a single, consistent representation for an empty minimal
8712 symbol table in an objfile.
8713 * objfiles.c (terminate_minimal_symbol_table): New function.
8714 (allocate_objfile): Call it.
8715 * objfiles.h (terminate_minimal_symbol_table): New declaration.
8716 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 8717 non-NULL.
15831452
JB
8718 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
8719 objfile has minimal symbols, compare minimal_symbol_count to zero,
8720 instead of comparing msymbols with NULL.
8721 * objfiles.c (have_minimal_symbols): Same.
8722 * solib-sunos.c (solib_add_common_symbols): Call
8723 terminate_minimal_symbol_table.
8724 * symfile.c (reread_symbols): Same.
8ffd9b1b 8725
ffc65945
KB
87262003-02-03 Kevin Buettner <kevinb@redhat.com>
8727
8728 * s390-tdep.c (s390_address_class_type_flags)
8729 (s390_address_class_type_flags_to_name)
8730 (s390_address_class_name_to_type_flags): New functions.
8731 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
8732 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
8733
f211c6d4
MS
87342003-02-03 Michael Snyder <msnyder@redhat.com>
8735
8736 * arm-tdep.c: Fix spell-o in comment.
8737
659b0389
ML
87382003-02-03 Michal Ludvig <mludvig@suse.cz>
8739
8740 * dwarf2cfi.c (pointer_encoding): Added new parameter.
8741 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 8742 error messages to contain BFD filename.
659b0389 8743
3b31d625
EZ
87442003-02-02 Elena Zannoni <ezannoni@redhat.com>
8745
997b089a 8746 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
8747 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
8748 (do_mixed_source_and_assembly): Use
8749 make_cleanup_ui_out_tuple_begin_end and
8750 make_cleanup_ui_out_tuple_begin_end.
8751 (do_mixed_source_and_assembly): Ditto.
8752 * thread.c (do_captured_list_thread_ids): Ditto.
8753 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
8754 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
8755 ui_out_tuple_end): Delete prototypes.
8756 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
8757 ui_out_list_end, ui_out_tuple_end): Delete.
8758
8759 From Kevin Buettner <kevinb@redhat.com>:
8760 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
8761 * ui-out.c (make_cleanup_ui_out_table_begin_end)
8762 (do_cleanup_table_end): New functions.
8763 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
8764 Use cleanups to invoke_ui_out_tuple_end().
8765 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
8766 * cli/cli-setshow.c (cmd_show_list): Use
8767 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 8768
5b181d62
AC
87692003-02-02 Andrew Cagney <ac131313@redhat.com>
8770
8771 * frame.c (frame_unwind_register): New function.
8772 (frame_unwind_unsigned_register): Use.
8773 (frame_unwind_signed_register): Use.
8774 (frame_read_register): New function.
8775 * frame.h (frame_unwind_register): Declare.
8776 (frame_read_register): Declare.
8777
8778 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
8779 and frame_unwind_register instead of read_memory, write_register
8780 and deprecated_write_register_bytes.
8781
5f601589
AC
87822003-02-02 Andrew Cagney <ac131313@redhat.com>
8783
8784 * frame.h: Note that namelen can be negative.
8785 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
8786 NAME's length.
8787
8788 * NEWS: Mention that the d10v's `regs' command is deprecated.
8789 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
8790 (d10v_print_registers_info): New function.
8791 (show_regs): Call d10v_print_registers_info.
8792 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
8793
6a3fe0a4
MK
87942003-02-02 Mark Kettenis <kettenis@gnu.org>
8795
8796 * stack.c (print_frame_info): Restore call to annotate_frame_begin
8797 lost in the previous patch.
8798
075559bc
AC
87992003-02-01 Andrew Cagney <ac131313@redhat.com>
8800
8801 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
8802 * stack.c (print_frame_info_base): Output complete FRAME tuple
8803 for synthesized frames.
075559bc 8804
6789195b
AC
88052003-02-02 Andrew Cagney <ac131313@redhat.com>
8806
8807 * mips-nat.c (zerobuf): Delete.
8808 (fetch_inferior_registers): Alloc local zerobuf.
8809 (fetch_core_registers): Alloc local zerobuf.
8810 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
8811 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
8812 * thread-db.c (thread_db_store_registers): Ditto.
8813 * sh-tdep.c (sh_do_register): Ditto.
8814 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
8815 * remote-sim.c (gdbsim_store_register): Ditto.
8816 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
8817 * remote-e7000.c (fetch_regs_from_dump): Ditto.
8818 * monitor.c (monitor_supply_register): Ditto.
8819 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
8820 * mips-nat.c (fetch_inferior_registers): Ditto.
8821 * m68klinux-nat.c (fetch_register): Ditto.
8822 * lynx-nat.c (fetch_inferior_registers): Ditto.
8823 (fetch_inferior_registers): Ditto.
8824 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
8825 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
8826 (hpux_thread_store_registers): Ditto.
8827 * hppah-nat.c (fetch_register): Ditto.
8828 * hppab-nat.c (fetch_register): Ditto.
8829 * hppa-tdep.c (pa_register_look_aside): Ditto.
8830 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
8831 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
8832
e669114a
AC
88332003-02-01 Andrew Cagney <ac131313@redhat.com>
8834
8835 * gdbarch.sh: Explictly specify all method levels. When a
8836 variable with an empty level, provide a non-multi-arch default.
8837 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
8838 * gdbarch.h: Re-generate.
8839 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
8840 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
8841
9a043c1d
AC
88422003-02-01 Andrew Cagney <ac131313@redhat.com>
8843
8844 * defs.h (host_pointer_to_address): Delete declaration.
8845 (address_to_host_pointer): Delete declaration.
8846 * utils.c (host_pointer_to_address): Delete function.
8847 (address_to_host_pointer): Delete function.
8848 * procfs.c (procfs_address_to_host_pointer): New function.
8849 * procfs.c (proc_set_watchpoint): Use.
8850 (procfs_can_use_hw_breakpoint): Update comments.
8851 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
8852 (som_solib_add): Use.
8853 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
8854 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 8855
7ca9f392
AC
88562003-02-01 Andrew Cagney <ac131313@redhat.com>
8857
94bbfd30
AC
8858 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
8859 strlen d_name.
8860
7ca9f392
AC
8861 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
8862 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
8863 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
8864 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
8865 (define_symbol): Update.
8866 * symfile.c (generic_load): Remove references to nindy.
8867 * symtab.c: Remove references to nindy.
8868
31a85ea2
AC
88692003-02-01 Andrew Cagney <ac131313@redhat.com>
8870
8871 * infcmd.c (print_float_info): Delete code conditional on
8872 FLOAT_INFO.
8873 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
8874 * config/m68k/nm-apollo68b.h: Ditto.
8875 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
8876 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
8877 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
8878
f6e85fc8
MK
88792003-02-01 Mark Kettenis <kettenis@gnu.org>
8880
6015b6a0
MK
8881 * config/i386/tm-i386os9k.h: Removed.
8882
f7a30bdf
MK
8883 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
8884 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
8885 they're identical to i[3456]86-*-sysv* now.
8886 * config/i386/i386v32.mh: Removed.
8887 * config/i386/xm-i386v32.h: Removed.
8888 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
8889
28d52111
MK
8890 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
8891
4d3f6bce
MK
8892 * config/i386/i386dgux.mh: Removed.
8893 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
8894
f6e85fc8
MK
8895 * configure.in: Fix typo.
8896 * configure: Regenerated.
8897
53955967
DC
88982003-01-31 David Carlton <carlton@math.stanford.edu>
8899
8900 * dwarf2read.c (dwarf2_locate_sections): Set
8901 dwarf_ranges_section.
8902
b1364885
AC
89032003-01-31 Andrew Cagney <ac131313@redhat.com>
8904
8dbb1c65
AC
8905 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
8906 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 8907
8731e58e
AC
8908 * utils.c: Re-indent.
8909
b1364885
AC
8910 * config/djgpp/fnchange.lst: Delete nindy files.
8911 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
8912 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
8913 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
8914 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
8915 * nindy-share/README, nindy-share/Onindy.c: Delete files.
8916 * nindy-tdep.c, nindy-share/Makefile: Delete files.
8917 * Makefile.in (init.c): Remove nindy references.
8918 (saber_gdb): Delete rule.
8919 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
8920 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
8921 and a68v-nat.c.
8922 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
8923 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
8924 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
8925 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
8926 nindy-share/stop.h.
8927 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
8928 * saber.suppress: Delete file.
8929
086df311
DJ
89302003-01-31 Daniel Jacobowitz <drow@mvista.com>
8931
8932 * dbxread.c (stabs_data): New static variable.
8933 (fill_symbuf): Support an in-memory buffer for stabs data.
8934 (stabs_seek): New function.
8935 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
8936 (read_ofile_symtab): Use stabs_seek.
8937 (elfstab_build_psymtabs): Take an asection* instead of
8938 an offset and size. Relocate the stabs data if necessary.
8939 Save the section* for dbx_psymtab_to_symtab.
8940 * dwarf2read.c: Add section variables for each debug section.
8941 (dwarf2_locate_sections): Fill them in.
8942 (dwarf2_read_section): Take an asection* argument.
8943 Relocate the section contents if necessary.
8944 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
8945 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
8946 it to dwarf2_read_section.
8947 (dwarf2_build_frame_info): Update callers.
8948 * elfread.c (elf_symfile_read): Update call to
8949 elfstab_build_psymtabs.
8950 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
8951 (DBX_STAB_SECTION): New macro.
8ffd9b1b 8952 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
8953 * symfile.c (symfile_dummy_outputs): New function.
8954 (symfile_relocate_debug_section): New function.
8955 * symfile.h (symfile_relocate_debug_section): Add prototype.
8956
87d1b352
RH
89572003-01-31 Richard Henderson <rth@redhat.com>
8958
8959 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
8960 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
8961 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
8962 * alpha-tdep.c (alpha_register_name): Add "unique".
8963 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
8964 (ALPHA_UNIQUE_REGNUM): New.
8965 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
8966
c48861fb
AC
89672003-01-31 Andrew Cagney <ac131313@redhat.com>
8968
8969 * README: Remove reference to Ericsson 1800 monitor.
8970 * Makefile.in (remote-es.o): Delete rule.
8971 (ALLDEPFILES): Delete remote-es.c.
8972 * remote-es.c: Delete file.
8973 * config/m68k/es1800.mt: Delete file.
8974 * config/djgpp/fnchange.lst: Update.
8975 * configure.tgt: Delete m68*-ericsson-* target.
8976
d764a824
AF
89772003-01-31 Adam Fedor <fedor@gnu.org>
8978
8979 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
8980 Remove duplicate/shadowing variable of same name.
8981
fe36c4f4
JB
89822003-01-30 Jim Blandy <jimb@redhat.com>
8983
8984 * symfile.c (find_separate_debug_file): Assert that the objfile's
8985 directory name we compute ends with a slash, and then assume that
8986 that's so everywhere we use it.
8987
cb741690
DJ
89882003-01-30 Daniel Jacobowitz <drow@mvista.com>
8989
8990 * valops.c (value_assign): Flush frame cache after stores to memory
8991 also.
8992
96ee5227
AC
89932003-01-30 Andrew Cagney <ac131313@redhat.com>
8994
8995 * Makefile.in (mon960-rom.o): Delete rule.
8996 * mon960-rom.c: Delete file.
8997
7f6104a9
AC
89982003-01-30 Andrew Cagney <ac131313@redhat.com>
8999
9000 * d10v-tdep.c: Include "frame-unwind.h".
9001 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
9002 list.
9003 (next_addr, uses_frame): Delete.
9004 (struct d10v_unwind_cache): Define.
9005 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
9006 Use info instead of next_addr and uses_frame globals.
9007 (d10v_frame_init_saved_regs): Delete function.
9008 (d10v_init_extra_frame_info): Delete function.
9009 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
9010 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
9011 init_frame_pc or frame_saved_pc.
9012 (d10v_pop_frame): Delete function.
9013 (do_d10v_pop_frame): Delete function.
9014 (d10v_frame_chain): Delete function.
9015 (d10v_frame_chain_valid): Delete function.
9016 (d10v_frame_pc_unwind): New function.
9017 (d10v_frame_id_unwind): New function.
9018 (saved_regs_unwinder): New function.
9019 (d10v_frame_register_unwind): New function.
9020 (d10v_frame_pop): New function.
9021 (d10v_frame_unwind): New variable.
9022 (d10v_frame_p): New function.
9023 (d10v_frame_saved_pc): Delete function.
9024 * Makefile.in (d10v-tdep.o): Update dependencies.
9025
cad2e848
JB
90262003-01-30 J. Brobecker <brobecker@gnat.com>
9027
9028 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
9029 causing some regressions due to a change in the default value
9030 for this macro.
9031
af34e669
DJ
90322003-01-29 Richard Henderson <rth@redhat.com>
9033 Elena Zannoni <ezannoni@redhat.com>
9034 Daniel Jacobowitz <drow@mvista.com>
9035
9036 Fix PR gdb/961.
8ffd9b1b 9037 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
9038 variables.
9039 (RANGES_SECTION): New.
9040 (dwarf_ranges_buffer): New variable.
9041 (struct comp_unit_head): Add member "die".
9042 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
9043 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
9044 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
9045 (dwarf2_locate_sections): Likewise.
9046 (dwarf2_build_psymtabs): Read .debug_ranges.
9047 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
9048 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
9049 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
9050 Look for DW_AT_ranges and return the bounding box.
9051
baa93fa6
CF
90522003-01-29 Brian Ford <ford@vss.fsi.com>
9053
9054 * win32-nat.c (cygwin_pid): Removed as unused.
9055 (child_attach): Try fall back to Cygwin pid.
9056
c63f977f
JB
90572003-01-29 Jim Blandy <jimb@redhat.com>
9058
9059 * objfiles.h (struct objfile): Doc fix.
9060
d62d1979
AC
90612003-01-29 Andrew Cagney <ac131313@redhat.com>
9062
9063 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
9064 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
9065 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
9066 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
9067 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
9068 (FRAME_SAVED_PC): Change to a function with predicate.
9069 * gdbarch.h, gdbarch.c: Re-generate.
9070
1ae18a04
AC
90712003-01-28 Andrew Cagney <ac131313@redhat.com>
9072
52287340
AC
9073 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
9074
1ae18a04
AC
9075 * complaints.c (complain): Delete function.
9076 * complaints.h (struct deprecated_complaint): Delete definition.
9077 (complain): Delete declaration.
9078
f2c16bd6
KB
90792003-01-28 Kevin Buettner <kevinb@redhat.com>
9080
9081 * mips-tdep.c (mips_init_extra_frame_info): Return early for
9082 dummy frames.
9083
a94dd1fd
AC
90842003-01-27 Andrew Cagney <ac131313@redhat.com>
9085
9086 * sentinel-frame.h, sentinel-frame.c: New files.
9087 * Makefile.in (frame.o): Update dependencies.
9088 (SFILES): Add sentinel-frame.c.
9089 (sentinel_frame_h): Define.
9090 (COMMON_OBS): Add sentinel-frame.o.
9091 (sentinel-frame.o): Specify dependencies.
9092 * frame.c: Include "sentinel-frame.h".
9093 (frame_register_unwind): Rewrite assuming that there is always a a
9094 ->next frame.
9095 (frame_register, generic_unwind_get_saved_register): Ditto.
9096 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
9097 (create_sentinel_frame, unwind_to_current_frame): New functions.
9098 (get_current_frame): Rewrite using create_sentinel_frame and
9099 unwind_to_current_frame. When possible, always create a frame.
9100 (create_new_frame): Set next to the sentinel frame.
9101 (get_next_frame): Rewrite. Don't go below the level 0 frame.
9102 (deprecated_update_frame_pc_hack): Update the next frame's PC and
9103 ID cache when necessary.
9104 (frame_saved_regs_id_unwind): Use frame_relative_level.
9105 (deprecated_generic_get_saved_register): Use frame_relative_level,
9106 get_frame_saved_regs, get_frame_pc, get_frame_base and
9107 get_next_frame.
9108 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
9109 frame_register.
9110
5378adc4
DJ
91112003-01-27 Daniel Jacobowitz <drow@mvista.com>
9112
9113 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
9114
51ee2ddc
DJ
91152003-01-27 Daniel Jacobowitz <drow@mvista.com>
9116
9117 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
9118 (maintenance_set_profile_cmd): Use error () instead of warning ().
9119
d9feb4e7
DJ
91202003-01-27 Daniel Jacobowitz <drow@mvista.com>
9121
9122 * configure.in: Check that -pg works if using --enable-profiling.
9123 Check for monstartup and _mcleanup regardless of --enable-profiling.
9124 * maint.c: Check for monstartup and _mcleanup before using them.
9125 * config.in: Regenerated.
9126 * configure: Regenerated.
9127
2d188dd3
NC
91282003-01-24 Nick Clifton <nickc@redhat.com>
9129
9130 * Add sh2e support:
9131
9132 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
9133
9134 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
9135 (sh2e_show_regs): New.
9136 (sh_gdbarch_init): Handle bfd_mach_sh2e.
9137 * config/sh/tm-sh.h: Added sh2e to comments.
9138
cb3c37b2
JB
91392003-01-23 Jim Blandy <jimb@redhat.com>
9140
9141 * symfile.c (syms_from_objfile): Don't print the "(no debugging
9142 symbols found)" message here; we haven't checked for a separate
9143 debug info file yet, so we don't know yet.
9144 (symbol_file_add_with_addrs_or_offsets): Print it here, after
9145 we've looked everywhere. Also, there's no need to print a special
9146 message when we're loading the separate debug info file: the one
9147 symbol_file_add prints is fine.
9148
5b5d99cf
JB
91492003-01-23 Alexander Larsson <alexl@redhat.com>
9150 Jim Blandy <jimb@redhat.com>
9151
9152 Add support for executables whose debug info has been separated
9153 out into a separate file, leaving only a link behind.
9154 * objfiles.h (struct objfile): New fields: separate_debug_objfile
9155 and separate_debug_objfile_backlink.
9156 (put_objfile_before): New declaration.
9157 * symfile.c: #include "filenames.h".
9158 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
9159 debug info in a separate file, read that, too. Save the addrs
9160 argument, so we can use it again to read the separated debug info;
9161 syms_from_objfile modifies the table we pass it.
9162 (reread_symbols): After re-reading an objfile, call
9163 reread_separate_symbols to refresh its separate debug info
9164 objfile, if it has one.
9165 (reread_separate_symbols, find_separate_debug_file,
9166 get_debug_link_info, separate_debug_file_exists): New functions.
9167 (debug_file_directory): New global var.
9168 (_initialize_symfile): Initialize debug_file_directory, and
9169 provide the new `set debug-file-directory' command to let the user
9170 change it.
9171 * objfiles.c (free_objfile): If this objfile has its debug info in
9172 a separate objfile, free that one too. If this is itself a
9173 separate debug info objfile, clear our parent's backlink.
9174 (put_objfile_before): New function.
9175 * utils.c (gnu_debuglink_crc32): New function.
9176 * defs.h (gnu_debuglink_crc32): New declaration.
9177 * Makefile.in (symfile.o): Note dependency on "filenames.h".
9178 * configure.in: Handle --with-separate-debug-dir config option.
9179 * acinclude.m4 (AC_DEFINE_DIR): New macro.
9180 * acconfig.h (DEBUGDIR): New macro.
9181 * configure, aclocal.m4, config.in: Regenerated.
9182
7e8580c1
JB
91832003-01-22 Jim Blandy <jimb@redhat.com>
9184
7904e09f
JB
9185 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
9186 like the old symbol_file_add, but taking new arguments: you can
9187 now pass in either a `struct section_addr_info' list to say where
9188 each section is loaded, or a `struct section_offsets' table. Pass
9189 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 9190 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
9191 with the appropriate quiescent values for the new arguments.
9192
7e8580c1
JB
9193 * symfile.c: #include "gdb_assert.h".
9194 (syms_from_objfile): Add the ability to pass in a section offset
9195 table directly, as an alternative to the section_addr_info table.
9196 Document arguments better.
9197 (symbol_file_add): Pass extra arguments to syms_from_objfile.
9198 * symfile.h (syms_from_objfile): Update declaration.
9199 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
9200 syms_from_objfile.
9201 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
9202
d28f9cdf
DJ
92032003-01-22 Daniel Jacobowitz <drow@mvista.com>
9204
9205 Original patch by Tom Tromey <tromey@cygnus.com> and
9206 Jason Molenda <jmolenda@apple.com>.
9207 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
9208 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
9209 * NEWS: Mention profiling.
9210 * configure.in (--enable-gdbtk): Fix typo.
9211 (--enable-profiling): New. Set PROFILE_CFLAGS.
9212 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
9213 Fill in function.
9214 (profiling_state): New variable.
9215 (mcleanup_wrapper): New function.
9216 (_initialize_maint): Remove NOTYET, fix call to
9217 add_setshow_boolean_cmd for "maint set profile".
9218 * configure: Regenerated.
9219
df21e465
MH
92202003-01-21 Martin M. Hunt <hunt@redhat.com>
9221
9222 * Makefile.in (install-gdbtk): Install PNG images too.
9223
73c1f219
AC
92242003-01-21 Andrew Cagney <ac131313@redhat.com>
9225
9226 * exec.c (text_start): Delete global variable.
9227 (exec_file_attach): Make text_start local to the function.
9228 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
9229 * valops.c (hand_function_call): Delete code that handles
9230 BEFORE_TEXT_END and AFTER_TEXT_END.
9231 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
9232 of CALL_DUMMY_LOCATION.
9233 * gdbarch.c: Regenerate.
9234 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
9235 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
9236 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
9237 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
9238 (text_end): Delete extern declaration.
9239
eb4f72c5
AC
92402003-01-21 Andrew Cagney <ac131313@redhat.com>
9241
9242 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
9243 * blockframe.c (backtrace_below_main): Move to "frame.c".
9244 (frame_chain_valid): Delete check for backtrace_below_main.
9245 (_initialize_blockframe): Delete initialization, move ``set
9246 backtrace-below-main'' command to "frame.c".
9247 (do_flush_frames_sfunc): Delete function.
9248 * frame.c: Include "command.h" and "gdbcmd.h".
9249 (frame_type_from_pc): New function.
9250 (create_new_frame): Use frame_type_from_pc.
9251 (legacy_get_prev_frame): New function.
9252 (get_prev_frame): Rewrite. When an old style frame, call
9253 legacy_get_prev_frame. Otherwize, unwind the PC first.
9254 (_initialize_frame): Add ``set backtrace-below-main'' command.
9255 * Makefile.in (frame.o): Update dependencies.
9256
778ce8cc
AC
92572003-01-19 Andrew Cagney <ac131313@redhat.com>
9258
9259 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
9260 DEPRECATED_REGISTERS_INFO.
9261
01c193c8
AC
92622003-01-19 Andrew Cagney <ac131313@redhat.com>
9263
9264 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
9265 Maintainers'. Update `Various Maintainers'.
9266
dedc2a2b
AC
92672003-01-19 Andrew Cagney <ac131313@redhat.com>
9268
9269 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
9270 * gdbarch.sh (POP_FRAME): Change to function with predicate.
9271 Suppress actual parameters when `-'.
9272 * gdbarch.h, gdbarch.c: Regenerate.
9273
b7261c70
AC
92742003-01-19 Andrew Cagney <ac131313@redhat.com>
9275
9276 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
9277 code handling dummy frames.
9278
dbe9fe58
AC
92792003-01-19 Andrew Cagney <ac131313@redhat.com>
9280
9281 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
9282 (struct frame_unwind): Add field pop.
9283 * frame.h (frame_pop): Declare.
9284 * frame.c (frame_saved_regs_pop): New function.
9285 (trad_frame_unwinder): Add frame_saved_regs_pop.
9286 (frame_pop): New function.
9287 * dummy-frame.c (dummy_frame_pop): New function.
9288 (discard_innermost_dummy): New function.
9289 (generic_pop_dummy_frame): Use discard_innermost_dummy.
9290 (dummy_frame_unwind): Add dummy_frame_pop.
9291 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
9292 * valops.c (hand_function_call): Ditto.
9293 * stack.c (return_command): Ditto.
9294
570b8f7c
AC
92952003-01-18 Andrew Cagney <ac131313@redhat.com>
9296
9297 * cris-tdep.c: Fix function declaration indentation.
9298 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
9299 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
9300 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
9301 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
9302 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
9303 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
9304
93052003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
9306
9307 * README (Unpacking and Installation -- quick overview):
9308 Warn against ".../gdb-5.3/gdb/configure".
9309
494cca16
AC
93102003-01-18 Andrew Cagney <ac131313@redhat.com>
9311
9312 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
9313 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9314 (struct frame_unwind): Declare opaque.
9315 (dummy_frame_p): Declare function.
9316 * dummy-frame.c (dummy_frame_id_unwind): Make static.
9317 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
9318 * dummy-frame.c: Include "frame-unwind.h".
9319 (dummy_frame_p): New function.
9320 (dummy_frame_unwind): New variable.
9321 * frame.c: Include "frame-unwind.h".
9322 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
9323 to use the new unwind field.
9324 (set_unwind_by_pc): Delete function.
9325 (create_new_frame, get_prev_frame): Set unwind field using
9326 frame_unwind_find_by_pc.
9327 (trad_frame_unwind, trad_frame_unwinder): New variables.
9328 * frame.h (trad_frame_unwind): Declare variable.
9329 (frame_id_unwind_ftype): Delete declaration.
9330 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
9331 (struct frame_unwind): Declare opaque.
9332 (struct frame_info): Replace the fields id_unwind, pc_unwind and
9333 register_unwind with a single unwind pointer.
9334 * frame-unwind.h, frame-unwind.c: New files.
9335 * Makefile.in (SFILES): Add frame-unwind.c.
9336 (frame_unwind_h): Define.
9337 (COMMON_OBS): Add frame-unwind.o.
9338 (frame-unwind.o): Specify dependencies.
9339 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 9340
4efb68b1
AC
93412003-01-18 Andrew Cagney <ac131313@redhat.com>
9342
9343 * ada-valprint.c: Eliminate PTR.
9344 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
9345 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
9346 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
9347 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
9348 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
9349 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
9350 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 9351
a84d24ee
AC
93522003-01-17 Andrew Cagney <ac131313@redhat.com>
9353
762f08a3
AC
9354 * main.c (captured_main): Don't use PTR.
9355 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
9356 * gdbtypes.c (lookup_primitive_typename): Ditto.
9357 (lookup_struct_elt_type): Ditto.
9358 * f-valprint.c (info_common_command): Ditto.
9359 (list_all_visible_commons): Ditto.
9360 * jv-typeprint.c (java_type_print_base): Ditto.
9361
a84d24ee
AC
9362 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
9363 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
9364 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
9365 i386-interix-nat.c and i386-interix-tdep.c. Rename
9366 m68klinux-nat.c and m68klinux-tdep.c. Rename
9367 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
9368 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
9369 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
9370 * main.c (captured_main): Use xfree, not free.
9371
c170fb60
AC
93722003-01-16 Andrew Cagney <ac131313@redhat.com>
9373
9374 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
9375 ID back using a parameter.
9376 * frame.c (frame_id_unwind): Update call.
9377 (frame_saved_regs_id_unwind): Update.
9378 * dummy-frame.c (dummy_frame_id_unwind): Update function.
9379 * dummy-frame.h (struct frame_id): Add opaque declaration.
9380 (dummy_frame_id_unwind): Update declaration.
9381
867f3898
AC
93822003-01-15 Andrew Cagney <ac131313@redhat.com>
9383
9384 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
9385
40622be8 93862003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 9387
40622be8 9388 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 9389
ae66c1fc
EZ
93902003-01-14 Elena Zannoni <ezannoni@redhat.com>
9391
997b089a 9392 Fix PR gdb/898
ae66c1fc
EZ
9393 * breakpoint.c (until_break_command): Add new argument. Use it to
9394 decide whether to stop only at the current frame or not.
9395 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 9396 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
9397 call.
9398 (advance_command): New function.
9399 (_initialize_infcmd): Update help string for 'until' command.
9400 Add new 'advance' command.
9401
a04257e6
DC
94022003-01-14 David Carlton <carlton@math.stanford.edu>
9403
9404 * linespec.c (decode_line_1): Normalize comments.
9405 (set_flags): Ditto.
9406 (locate_first_half): Ditto.
9407 (decode_compound): Ditto.
9408 (symtab_from_filename): Ditto.
9409 (decode_all_digits): Ditto.
9410 (decode_dollar): Ditto.
9411 (find_methods): Ditto.
9412 (find_toplevel_char): Ditto.
9413
1bac305b
AC
94142003-01-13 Andrew Cagney <ac131313@redhat.com>
9415
9416 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
9417 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
9418 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
9419 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
9420 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
9421 * language.c, language.h, m32r-tdep.c: Update copyright.
9422 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
9423 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
9424 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
9425 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
9426 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
9427 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
9428
25caa7a8
EZ
94292003-01-13 Elena Zannoni <ezannoni@redhat.com>
9430
9431 * stabsread.h (process_later, resolve_cfront_continuation):
9432 Obsolete.
9433 Update copyright years.
9434 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
9435 Update copyright year.
9436 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 9437 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
9438 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
9439 Update copyright year.
9440 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
9441 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
9442 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
9443 (parse_partial_symbols): Obsolete cfront support.
9444 * stabsread.c
9445 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
9446 macros.
9447 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
9448 read_cfront_baseclasses, read_cfront_member_functions,
9449 resolve_cfront_continuation,read_cfront_static_fields,
9450 copy_cfront_struct_fields): Obsolete functions.
9451 (define_symbol, read_one_struct_field): Obsolete cfront support.
9452 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
9453 Update Copyright year.
9454
7789c6f5
EZ
94552003-01-13 Elena Zannoni <ezannoni@redhat.com>
9456
9457 * stack.c (print_frame_info, print_stack_frame_base_stub,
9458 print_stack_frame_base, show_and_print_stack_frame_stub,
9459 show_and_print_stack_frame, print_only_stack_frame_stub,
9460 print_only_stack_frame): Delete functions.
9461 (print_stack_frame_stub): Call print_frame_info instead of
9462 print_frame_info_base.
9463 (print_frame_info_base): Rename to print_frame_info.
9464 (backtrace_command_1): Call print_frame_info, instead of
9465 print_frame_info_base.
9466 (current_frame_command): Call print_stack_frame, instead of
9467 print_only_stack_frame.
9468 (frame_command): Call print_stack_frame, instead of
9469 show_and_print_stack_frame.
9470 (up_command): Ditto.
9471 (down_command): Ditto.
9472 * frame.h (print_only_stack_frame): Delete prototype.
9473 * infrun.c (normal_stop): Call print_stack_frame, instead of
9474 show_and_print_stack_frame.
9475 * thread.c (info_threads_command): Call print_stack_frame, instead
9476 of print_only_stack_frame.
9477
3f5a3016
AC
94782003-01-13 Andrew Cagney <ac131313@redhat.com>
9479
d99ba314
AC
9480 * README (Graphical interface to GDB): Update URL. Point at
9481 gdb/links/.
9482
3f5a3016
AC
9483 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
9484 version match.
9485
083ae935
DJ
94862003-01-13 Daniel Jacobowitz <drow@mvista.com>
9487
9488 * symtab.c (find_pc_sect_line): Don't consider end-of-function
9489 lines.
9490
5365276c
DJ
94912003-01-13 Daniel Jacobowitz <drow@mvista.com>
9492
9493 * thread-db.c (attach_thread): Prototype.
9494 (struct private_thread_info): Remove lwpid. Add thread handle (th),
9495 thread information (ti), and valid flags (th_valid, ti_valid).
9496 (attach_thread): Move target_pid_to_str call to after the thread
9497 is added to GDB's list. Initialize the cache.
9498 (thread_get_info_callback, thread_db_map_id2thr)
9499 (thread_db_get_info): New functions.
9500 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
9501 (thread_db_store_registers, thread_db_thread_alive)
9502 (thread_db_get_thread_local_address): Use them.
9503 (thread_db_pid_to_str): Likewise. Return "Missing" instead
9504 of calling error() for threads in unknown state.
9505
9506 (clear_lwpid_callback): New function.
9507 (thread_db_resume): Use it to clear the cache.
9508
9fc30b6b
DJ
95092003-01-13 Daniel Jacobowitz <drow@mvista.com>
9510
9511 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
9512 (resume_callback): Remove dead code.
9513
8f871025
AC
95142003-01-13 Andrew Cagney <ac131313@redhat.com>
9515
9516 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
9517 predicate.
9518 * gdbarch.h, gdbarch.c: Regenerate.
9519 * stack.c (frame_info): Only initialize the saved registers when
9520 FRAME_INIT_SAVED_REGS_P.
9521 * frame.c (frame_saved_regs_register_unwind): Assert
9522 FRAME_INIT_SAVED_REGS_P.
9523 (deprecated_generic_get_saved_register): Ditto.
9524
3f565f1e
DJ
95252003-01-13 Daniel Jacobowitz <drow@mvista.com>
9526
9527 * source.c (openp): Squelch warning about "filename".
9528
072b1022
DJ
95292003-01-13 Daniel Jacobowitz <drow@mvista.com>
9530
9531 * source.c (openp): If the file does not exist don't necessarily
9532 search the path.
9533
973ccf8b
DJ
95342003-01-13 Daniel Jacobowitz <drow@mvista.com>
9535
9536 Fix PR gdb/872.
9537 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
9538 (integer_types_same_name_p): New function.
9539 (rank_one_type): Use it.
9540 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
9541
030292b7
DJ
95422003-01-13 Daniel Jacobowitz <drow@mvista.com>
9543
9544 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
9545 variables.
9546 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
9547 * configure.in: Add --with-sysroot.
9548 * configure: Regenerated.
9549 * main.c (gdb_sysroot): New variable.
9550 (captured_main): Initialize gdb_sysroot.
9551 * defs.h (gdb_sysroot): New extern declaration.
9552 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
9553
afb5d334
MC
95542003-01-12 Michael Chastain <mec@shout.net>
9555
9556 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
9557
751ceeb4
MC
95582003-01-12 Michael Chastain <mec@shout.net>
9559
9560 * top.c (print_gdb_version): Bump copyright year to 2003.
9561
94cd26f8
DC
95622003-01-12 David Carlton <carlton@bactrian.org>
9563
9564 * linespec.c (symtab_from_filename): Rename variable 's' to
9565 'file_symtab'.
9566
1ce79225
AC
95672003-01-12 Andrew Cagney <ac131313@redhat.com>
9568
9569 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
9570 dummy frame.
9571 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
9572
fa1fd571
AC
95732003-01-12 Andrew Cagney <ac131313@redhat.com>
9574
9575 * d10v-tdep.c: Include "gdb_assert.h".
9576 (d10v_store_return_value): Rewrite to match current interface.
9577 (d10v_extract_struct_value_address): Ditto.
9578 (d10v_extract_return_value): Ditto.
9579 (d10v_gdbarch_init): Set store_restore_value,
9580 extract_struct_value_address and extract_return_value.
9581
68b8d23e
JB
95822003-01-12 J. Brobecker <brobecker@gnat.com>
9583
9584 * hpread.c (set_namestring): New procedure replacing the
9585 SET_NAMESTRING macro.
9586 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
9587 by calls to set_namestring.
9588
95892003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
9590
9591 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
9592 a compilation warning.
9593 (hpread_process_one_debug_symbol): Likewise.
9594
88d262ca
DC
95952003-01-10 David Carlton <carlton@math.stanford.edu>
9596
9597 * linespec.c (decode_line_1): Rename variable 's' to
9598 'file_symtab'.
9599 (decode_all_digits): Rename argument 's' to 'file_symtab'.
9600 (decode_dollar): Ditto.
9601 (decode_variable): Ditto.
9602 (symbol_found): Ditto.
9603
86669319
MC
96042003-01-09 Michael Chastain <mec@shout.net>
9605
9606 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
9607
616a9dc4
CV
96082003-01-07 Corinna Vinschen <vinschen@redhat.com>
9609
9610 * win32-nat.c (set_process_privilege): New function.
9611 (child_attach): Call set_process_privilege() to enable the
9612 SE_DEBUG_NAME user privilege if available in process token.
9613
3269bcfa
JB
96142003-01-10 J. Brobecker <brobecker@gnat.com>
9615
9616 * hpread.c (hpread_process_one_debug_symbol): Fix a small
9617 compilation error in the previous revision.
9618
2b0ee454
DC
96192003-01-09 David Carlton <carlton@math.stanford.edu>
9620
9621 * linespec.c: Update copyright.
9622
b3ba1b44
DJ
96232003-01-09 Daniel Jacobowitz <drow@mvista.com>
9624
9625 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
9626 than inferior_ptid.
9627 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
9628
4ef3f3be
AC
96292003-01-09 Andrew Cagney <ac131313@redhat.com>
9630
479ab5a0
AC
9631 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
9632 Update comments.
9633 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
9634 (frame_saved_regs_zalloc): Update.
9635 (frame_saved_regs_register_unwind): Update.
9636 (create_new_frame): Update.
9637 (get_prev_frame): Update.
9638 (frame_extra_info_zalloc): Update.
9639 (deprecated_get_frame_saved_regs): Update.
9640 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
9641 * cris-tdep.c: Update comment.
9642
bde58177
AC
9643 * somsolib.h: Fix function indentation.
9644 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
9645 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
9646 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
9647 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
9648 * somsolib.c, inftarg.c: Remove assignment in if conditional.
9649
4ef3f3be
AC
9650 * infrun.c (follow_fork): Use ISO C definition.
9651 * expprint.c (print_subexp): Use xfree instead of free.
9652 * charset.c: Include "gdb_string.h" instead of <string.h>.
9653 (register_iconv_charsets): Use ISO C definition.
9654 (host_charset, target_charset): Ditto.
9655 * Makefile.in (charset.o): Update dependencies.
9656 (mi-cmd-env.o): Update dependencies.
9657
1c615f7a
AC
96582003-01-08 Andrew Cagney <cagney@redhat.com>
9659
9660 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
9661 get_frame_base.
9662
c9a1dc08
AC
96632003-01-08 Andrew Cagney <ac131313@redhat.com>
9664
9665 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9666 build directories. Save edited gdb output in Mbuild.log. If a
9667 build fails, remove any final GDB executable.
9668
dbad9d94
AC
96692003-01-08 Andrew Cagney <ac131313@redhat.com>
9670
9671 * gdb_mbuild.sh: Edit the output of `maint print architecture'
9672 replacing hex constants with function names and stripping leading
9673 file name directory prefixes.
9674
8d357cca
AC
96752003-01-08 Andrew Cagney <cagney@redhat.com>
9676
9677 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
9678 get_frame_base.
9679
bca02a8a
DC
96802003-01-08 David Carlton <carlton@math.stanford.edu>
9681
9682 * linespec.c (decode_line_1): Move code into decode_variable.
9683 (decode_variable): New function.
9684
7f8ab3a0
AC
96852003-01-08 Andrew Cagney <ac131313@redhat.com>
9686
9687 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9688
7b5849cc
AC
96892003-01-08 Andrew Cagney <cagney@redhat.com>
9690
9691 * cris-tdep.c (cris_frame_init_saved_regs): Use
9692 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9693 saved_regs buffer.
9694 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
9695 (sh64_nofp_frame_init_saved_regs): Ditto.
9696 (sh_fp_frame_init_saved_regs): Ditto.
9697 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
9698 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9699 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9700 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9701
72a5efb3
DJ
97022003-01-08 Daniel Jacobowitz <drow@mvista.com>
9703
9704 * minsyms.c (lookup_minimal_symbol): Update comment.
9705 (lookup_minimal_symbol_text): Update comment. Use the hash table.
9706 (lookup_minimal_symbol_solib_trampoline): Likewise.
9707
11c02a10
AC
97082003-01-08 Andrew Cagney <cagney@redhat.com>
9709
aab3ea25
AC
9710 * d10v-tdep.c (d10v_init_extra_frame_info): Use
9711 frame_relative_level.
9712
da50a4b7
AC
9713 * alpha-tdep.c: Use get_frame_extra_info.
9714 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9715 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
9716 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9717 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
9718
11c02a10
AC
9719 * alpha-tdep.c: Use get_next_frame.
9720 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9721 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
9722 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
9723 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
9724 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
9725 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
9726 * xstormy16-tdep.c: Ditto.
8ffd9b1b 9727
1e2330ba
AC
97282003-01-07 Andrew Cagney <cagney@redhat.com>
9729
9730 * alpha-tdep.c: Use get_frame_base.
9731 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
9732 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
9733 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
9734 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
9735 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
9736 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
9737 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
9738 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 9739
2d75187b
AC
97402003-01-07 Andrew Cagney <cagney@redhat.com>
9741
9742 * frame.c (deprecated_get_frame_context): New function.
9743 (deprecated_set_frame_context): New function.
9744 * frame.h (deprecated_get_frame_context): Declare.
9745 (deprecated_set_frame_context): Declare.
9746 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
9747 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 9748
483d36b2
AC
97492003-01-07 Andrew Cagney <cagney@redhat.com>
9750
9751 * frame.c (deprecated_set_frame_next_hack): New function.
9752 (deprecated_set_frame_prev_hack): New function.
9753 * frame.h (deprecated_set_frame_next_hack): Declare.
9754 (deprecated_set_frame_prev_hack): Declare.
9755 * mcore-tdep.c (analyze_dummy_frame): Use
9756 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
9757 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9758
14e91ac5
DC
97592003-01-07 David Carlton <carlton@math.stanford.edu>
9760
9761 * linespec.c (decode_line_1): Move code into decode_dollar.
9762 (decode_dollar): New function.
9763
b0c6b05c
AC
97642003-01-07 Andrew Cagney <cagney@redhat.com>
9765
9766 * arm-tdep.c (arm_init_extra_frame_info): Use
9767 deprecated_update_frame_base_hack.
9768 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
9769 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
9770 (fix_frame_pointer): Ditto.
9771 (mn10300_analyze_prologue): Ditto.
9772
a00a19e9
AC
97732003-01-07 Andrew Cagney <cagney@redhat.com>
9774
9775 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
9776 extra_info using frame_extra_info_zalloc.
9777 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9778 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
9779 (sh64_init_extra_frame_info): Ditto.
9780 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
9781 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
9782 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
9783 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
9784 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
9785 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
9786 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
9787 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
9788 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
9789 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
9790 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9791 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
9792
9793 * mn10300-tdep.c (analyze_dummy_frame): Use
9794 deprecated_set_frame_extra_info_hack.
9795 * mcore-tdep.c (analyze_dummy_frame): Ditto.
9796
1fb4c65b
JB
97972003-01-07 J. Brobecker <brobecker@gnat.com>
9798
9799 * mdebugread.c (parse_symbol): Skip stProc entries which storage
9800 class is not scText. These do not define "real" procedures.
9801 (parse_partial_symbols): Likewise.
9802
9fe7d6bf
MS
98032003-01-06 Michael Snyder <msnyder@redhat.com>
9804
9805 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
9806
f6c609c4
AC
98072003-01-06 Andrew Cagney <ac131313@redhat.com>
9808
9809 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
9810 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9811 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
9812 deprecated_frame_xmalloc_with_cleanup.
9813 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
9814 deprecated_frame_xmalloc.
9815 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
9816 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
9817
d995ff4b
AC
98182003-01-06 Andrew Cagney <cagney@redhat.com>
9819
84dc46cb
AC
9820 * x86-64-linux-tdep.c: Include "osabi.h".
9821 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
9822
d995ff4b
AC
9823 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
9824
66140c26
AC
98252003-01-06 Andrew Cagney <cagney@redhat.com>
9826
9827 * MAINTAINERS (Target Instruction Set Architectures): Update
9828 arm-elf. Can be built with -Werror, has been multiarched.
9829
9830 * value.h (unpack_long): Make buffer parameter constant.
9831 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
9832 * scm-lang.h (scm_parse): Ditto.
9833 * defs.h (extract_typed_address, extract_address): Ditto.
9834 (extract_long_unsigned_integer): Ditto.
9835 * inferior.h (unsigned_pointer_to_address): Ditto.
9836 (signed_pointer_to_address): Ditto.
9837 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
9838 * gdbarch.h, gdbarch.c: Regenerate.
9839 * findvar.c (extract_long_unsigned_integer): Update.
9840 (extract_address): Update.
9841 (extract_typed_address): Update.
9842 (unsigned_pointer_to_address): Update.
9843 * values.c (unpack_long): Update.
9844 (unpack_double): Update.
9845 (unpack_pointer): Update.
9846 (unpack_field_as_long): Update.
9847 * d10v-tdep.c (d10v_pointer_to_address): Update.
9848 * avr-tdep.c (avr_pointer_to_address): Update.
9849 * scm-lang.c (scm_unpack): Update.
9850 * findvar.c (signed_pointer_to_address): Update.
9851
b089b3da
ML
98522003-01-06 Michal Ludvig <mludvig@suse.cz>
9853
8ffd9b1b 9854 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
9855 since it is in i386-tdep.c.
9856
aff87235
JB
98572003-01-06 J. Brobecker <brobecker@gnat.com>
9858
9859 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
9860 failure introduced in the previous change.
9861
34f5e845
MC
98622003-01-05 Michael Chastain <mec@shout.net>
9863
9864 * README: Remove references to deleted remote-*.c files:
9865 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
9866 remote-nrom.c, remote-os9k.c, remote-udi.c.
9867
28bcfd30
MK
98682003-01-05 Mark Kettenis <kettenis@gnu.org>
9869
9870 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
9871 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
9872 i386_get_longjmp_target.
9873
15a5b3ee
AC
98742003-01-05 Andrew Cagney <ac131313@redhat.com>
9875
9876 * arm-tdep.c (prologue_cache): Change to a pointer.
9877 (_initialize_arm_tdep): Allocate prologue_cache.
9878 (check_prologue_cache): Update.
9879 (save_prologue_cache): Update.
9880 (arm_gdbarch_init): Update.
9881
c263362b
DJ
98822003-01-04 Daniel Jacobowitz <drow@mvista.com>
9883
9884 * stabsread.c (update_method_name_from_physname): Call complaint()
9885 instead of error.
9886
51603483
DJ
98872003-01-04 Daniel Jacobowitz <drow@mvista.com>
9888
9889 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
9890 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
9891 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
9892
9893 * blockframe.c: Include "gdbcmd.h" and "command.h".
9894 (backtrace_below_main): New variable.
9895 (file_frame_chain_valid, func_frame_chain_valid)
9896 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
9897 (generic_func_frame_chain_valid): Remove functions.
9898 (frame_chain_valid, do_flush_frames_sfunc): New functions.
9899 (_initialize_blockframe): New function.
9900 * Makefile.in (blockframe.o): Update dependencies.
9901 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
9902 comment. Call frame_chain_valid ().
9903 * frame.h: Remove old prototypes. Add prototype for
9904 frame_chain_valid and update comments to match.
9905 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
9906 Remove old comment.
9907 * gdbarch.h: Regenerated.
9908 * gdbarch.c: Regenerated.
9909
9910 * alpha-tdep.c (alpha_gdbarch_init): Don't call
9911 set_gdbarch_frame_chain_valid.
9912 * avr-tdep.c (avr_gdbarch_init): Likewise.
9913 * cris-tdep.c (cris_gdbarch_init): Likewise.
9914 * frv-tdep.c (frv_gdbarch_init): Likewise.
9915 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
9916 * i386-tdep.c (i386_svr4_init_abi): Likewise.
9917 (i386_nw_init_abi): Likewise.
9918 (i386_gdbarch_init): Likewise.
9919 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
9920 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
9921 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
9922 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
9923 * mips-tdep.c (mips_gdbarch_init): Likewise.
9924 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
9925 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
9926 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
9927 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
9928 * s390-tdep.c (s390_gdbarch_init): Likewise.
9929 * sh-tdep.c (sh_gdbarch_init): Likewise.
9930 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
9931 * v850-tdep.c (v850_gdbarch_init): Likewise.
9932 * vax-tdep.c (vax_gdbarch_init): Likewise.
9933 * x86-64-tdep.c (x86_64_init_abi): Likewise.
9934
9935 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
9936 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
9937 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
9938 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
9939 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
9940 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
9941 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
9942 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
9943
b00a8037
DJ
99442002-01-04 Daniel Jacobowitz <drow@mvista.com>
9945
9946 * Makefile.in (acconfig_h): Remove incorrect macro.
9947 (config_h): Define.
9948 (osabi.o): Update dependencies.
9949 * configure.tgt: Set gdb_osabi based on target triplet.
9950 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
9951 * configure: Regenerated.
9952 * config.in: Regenerated.
9953 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
9954 (GDB_OSABI_DEFAULT): Define if not already defined.
9955 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
9956 (set_osabi_string): New variables.
9957 (gdbarch_register_osabi): Add new OS ABI to
9958 gdb_osabi_available_names.
9959 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
9960 (set_osabi, show_osabi): New functions.
9961 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
9962
4be87837
DJ
99632003-01-04 Daniel Jacobowitz <drow@mvista.com>
9964
9965 * arch-utils.c (gdbarch_info_init): Set osabi to
9966 GDB_OSABI_UNINITIALIZED.
9967 * gdbarch.sh: Add osabi to struct gdbarch and to struct
9968 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
9969 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
9970 * gdbarch.c: Regenerated.
9971 * gdbarch.h: Regenerated.
9972 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
9973 there's no BFD.
9974 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
9975 * osabi.h (enum gdb_osabi): Move to defs.h.
9976 (gdbarch_init_osabi): Update prototype.
9977 * defs.h (enum gdb_osabi): Moved here.
9978 * Makefile.in: Update dependencies.
9979
9980 * alpha-tdep.h: Don't include "osabi.h".
9981 (struct gdbarch_tdep): Remove osabi member.
9982 * alpha-tdep.c: Include "osabi.h".
9983 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9984 iterate over arches. Update call to gdbarch_init_osabi.
9985 (alpha_dump_tdep): Don't dump osabi.
9986 * alpha-linux-tdep.c: Include "osabi.h".
9987 * alpha-osf1-tdep.c: Include "osabi.h".
9988 * alphafbsd-tdep.c: Include "osabi.h".
9989 * alphanbsd-tdep.c: Include "osabi.h".
9990
9991 * arm-tdep.h: Don't include "osabi.h".
9992 (struct gdbarch_tdep): Remove osabi member.
9993 * arm-tdep.c: Include "osabi.h".
9994 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
9995 iterate over arches. Update call to gdbarch_init_osabi.
9996 (arm_dump_tdep): Don't dump osabi.
9997 * arm-linux-tdep.c: Include "osabi.h".
9998 * armnbsd-tdep.c: Include "osabi.h".
9999
10000 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
10001 Update call to gdbarch_init_osabi.
10002
10003 * i386-tdep.h: Don't include "osabi.h".
10004 (struct gdbarch_tdep): Remove osabi member.
10005 * i386-tdep.c: Include "osabi.h".
10006 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10007 iterate over arches. Update call to gdbarch_init_osabi.
10008 (i386_dump_tdep): Don't dump osabi.
10009 * i386-linux-tdep.c: Include "osabi.h".
10010 * i386-sol2-tdep.c: Include "osabi.h".
10011 * i386bsd-tdep.c: Include "osabi.h".
10012 * i386gnu-tdep.c: Include "osabi.h".
10013 * i386ly-tdep.c: Include "osabi.h".
10014 * i386nbsd-tdep.c: Include "osabi.h".
10015 * i386obsd-tdep.c: Include "osabi.h".
10016
10017 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
10018 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10019 check osabi when iterating over arches. Update call to
10020 gdbarch_init_osabi.
10021 (mips_dump_tdep): Don't dump osabi.
10022
10023 * ns32k-tdep.h: Don't include "osabi.h".
10024 (struct gdbarch_tdep): Remove.
10025 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
10026 gdbarch_lookup_osabi. Don't iterate over arches. Don't
10027 allocate tdep. Update call to gdbarch_init_osabi.
10028 (ns32k_dump_tdep): Remove.
10029 (_initialize_ns32k_tdep): Update call to gdbarch_register.
10030 * ns32knbsd-tdep.c: Include "osabi.h".
10031
10032 * ppc-tdep.h: Don't include "osabi.h".
10033 (struct gdbarch_tdep): Remove osabi member.
10034 * rs6000-tdep.c: Include "osabi.h".
10035 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
10036 osabi when iterating over arches. Update call to
10037 gdbarch_init_osabi.
10038 (rs6000_dump_tdep): Don't dump osabi.
10039 * ppc-linux-tdep.c: Include "osabi.h".
10040 * ppcnbsd-tdep.c: Include "osabi.h".
10041
10042 * sh-tdep.h: Don't include "osabi.h".
10043 (struct gdbarch_tdep): Remove osabi member.
10044 * sh-tdep.c: Include "osabi.h".
10045 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10046 iterate over arches. Update call to gdbarch_init_osabi.
10047 (sh_dump_tdep): Don't dump osabi.
10048 * shnbsd-tdep.c: Include "osabi.h".
10049
10050 * sparc-tdep.c: Include "osabi.h".
10051 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10052 iterate over arches. Update call to gdbarch_init_osabi.
10053 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
10054 tdep structure.
10055
10056 * vax-tdep.h: Don't include "osabi.h".
10057 (struct gdbarch_tdep): Remove.
10058 * vax-tdep.c: Include "osabi.h".
10059 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
10060 iterate over arches. Don't allocate tdep. Update call
10061 to gdbarch_init_osabi.
10062 (vax_dump_tdep): Remove.
10063 (_initialize_vax_tdep): Update call to gdbarch_register.
10064
a881cf8e
DJ
100652003-01-04 Daniel Jacobowitz <drow@mvista.com>
10066
10067 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
10068 entirely.
10069 (breakpoint_re_set_one): Don't fetch the value for a disabled
10070 watchpoint.
10071
1e698235
DJ
100722003-01-04 Daniel Jacobowitz <drow@mvista.com>
10073
10074 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
10075 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
10076 (COERCE_FLOAT_TO_DOUBLE): Remove.
10077 * gdbarch.c: Regenerate.
10078 * gdbarch.h: Regenerate.
10079 * Makefile.in: Remove value_h from gdbarch_h.
10080 * valops.c (coerce_float_to_double): New variable.
10081 (default_coerce_float_to_double): Remove.
10082 (standard_coerce_float_to_double): Remove.
10083 (value_arg_coerce): Use coerce_float_to_double.
10084 (_initialize_valops): Add "set coerce-float-to-double".
10085 * value.h (default_coerce_float_to_double): Remove prototype.
10086 (standard_coerce_float_to_double): Remove prototype.
10087
10088 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
10089 prototyped.
10090 * mdebugread.c (parse_symbol): Likewise.
10091 * stabsread.c (define_symbol): Mark all functions as prototyped.
10092
10093 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
10094 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
10095 set_gdbarch_coerce_float_to_double.
10096 * arm-tdep.c (arm_gdbarch_init): Likewise.
10097 * frv-tdep.c (frv_gdbarch_init): Likewise.
10098 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
10099 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
10100 * mips-tdep.c (mips_gdbarch_init): Likewise.
10101 (mips_coerce_float_to_double): Remove.
10102 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
10103 (rs6000_coerce_float_to_double): Remove.
10104 * s390-tdep.c (s390_gdbarch_init): Likewise.
10105 * sh-tdep.c (sh_gdbarch_init): Likewise.
10106 (sh_coerce_float_to_double): Remove.
10107 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
10108 (sparc_coerce_float_to_double): Remove.
10109 * v850-tdep.c (v850_gdbarch_init): Likewise.
10110 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
10111 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10112 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
10113 (hppa_coerce_float_to_double): Remove prototype.
10114 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
10115
f436a26a
DJ
101162003-01-04 Daniel Jacobowitz <drow@mvista.com>
10117
10118 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
10119
248f8055
DJ
101202003-01-04 Daniel Jacobowitz <drow@mvista.com>
10121
10122 Suggested by Stewart Brown <sb24@avaya.com>:
10123 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
10124 in recursive calls. Handle TYPE_CODE_TYPEDEF.
10125 (c_type_print_varspec_suffix): Likewise.
10126
72cfdc76
MK
101272003-01-04 Mark Kettenis <kettenis@gnu.org>
10128
bfd260bb
MK
10129 * configure.in: Don't set and AC_SUBST SUBDIRS.
10130 * configure: Regenerated.
10131
72cfdc76
MK
10132 * configure.in: Remove code dealing with shared libraries.
10133 * Makefile.in: Remove HLDFLAGS and HLDENV.
10134 * configure: Regenerated.
10135
c8b8a898
AC
101362003-01-04 Andrew Cagney <ac131313@redhat.com>
10137
10138 * frame.c (deprecated_frame_xmalloc): New function.
10139 (deprecated_set_frame_saved_regs_hack): New function.
10140 (deprecated_set_frame_extra_info_hack): New function.
10141 * frame.h (deprecated_frame_xmalloc): Declare.
10142 (deprecated_set_frame_saved_regs_hack): Declare.
10143 (deprecated_set_frame_extra_info_hack): Declare.
10144
14abd0fb
MK
101452003-01-04 Mark Kettenis <kettenis@gnu.org>
10146
8ee53726
MK
10147 * configure.in: Move code that provides the --enable-gdbtk option
10148 right after the code that handles the --enable-tui option, and
10149 polish it somewhat.
10150 * configure: Regenerated.
10151
14abd0fb
MK
10152 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
10153 AC_CHECK_FUNCS and remove the old check for pread64.
10154 * acinclude.m4 (AC_GNU_SOURCE): New macro.
10155 * acconfig.h (_GNU_SOURCE): Add.
10156 (HAVE_PREAD64): Remove.
10157 * configure, aclocal.m4, config.in: Regenerated.
10158
b2fb4676
AC
101592003-01-03 Andrew Cagney <ac131313@redhat.com>
10160
10161 * alpha-tdep.c: Use get_frame_saved_regs.
10162 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10163 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
10164 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
10165 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
10166 * vax-tdep.c, xstormy16-tdep.c: Ditto.
10167
8dcde887
MK
101682003-01-03 Mark Kettenis <kettenis@gnu.org>
10169
10170 * configure.in: Remove all use of the SUBDIRS variable; add
10171 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
10172 code providing the --enable-multi-ice option, and move it right in
10173 front of the code that checks whether gdbserver is supported.
10174 Polish that too.
10175 * configure: Regenerated.
10176 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
10177 @SUBDIRS@.
10178
8ccd593b
AC
101792003-01-03 Andrew Cagney <cagney@redhat.com>
10180
10181 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
10182 * avr-tdep.c, cris-tdep.c: Ditto.
10183 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
10184 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 10185
91151a06
MK
101862003-01-03 Mark Kettenis <kettenis@gnu.org>
10187
10188 * configure.in: Remove --enable-netrom option.
10189 * configure: Regenerated.
10190
8fe84d01
MK
101912003-01-03 Mark Kettenis <kettenis@gnu.org>
10192
10193 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
10194 declaration for `struct re_pattern_buffer' instead.
10195 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
10196
f0394be6
JB
101972003-01-03 J. Brobecker <brobecker@gnat.com>
10198
10199 * mdebugread.c (parse_symbol): Count until the stEnd matching
10200 the structure name.
10201
27e9bf90
MK
102022003-01-02 Mark Kettenis <kettenis@gnu.org>
10203
93d331ba
MK
10204 * configure.in: Remove --with-cpu option.
10205 subscripts. Remove evil changequotes here.
10206 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
10207 * config.in, configure: Regenerated.
8ffd9b1b 10208
27e9bf90
MK
10209 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
10210 * configure.in: Cleanup section that sources GDB and BFD configure
10211 subscripts. Remove evil changequotes here.
10212 * config.in, configure: Regenerated.
10213
50abf9e5
AC
102142003-01-02 Andrew Cagney <ac131313@redhat.com>
10215
10216 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
10217 frame accessor methods.
10218 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
10219 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
10220 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
10221 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
10222 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
10223 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
10224 * z8k-tdep.c: Ditto.
8ffd9b1b 10225
287c1a40
MK
102262003-01-02 Mark Kettenis <kettenis@gnu.org>
10227
f5dbc56d
MK
10228 * configure.in: Remove UI_OUT configuration code.
10229 * ada-lang.c: Update assuming UI_OUT is always true.
10230 * Makefile.in (UIOUT_CFLAGS): Remove.
10231 * configure: Regenerated.
10232 * TODO: Remove blurb about elimination of -DUI_OUT.
10233
627af7ea
MK
10234 * configure.in: Move code that provides the --enable-gdbcli,
10235 --enable-gdbmi options right before the code that handles the
10236 --enable-tui option. Polish a bit.
10237 * configure: Regenerated.
10238
06825bd1
MK
10239 * configure.in: Rewrite check for GNU regex and the
10240 --without-included regex option, and move it into the "Checks for
10241 library functions" section. This makes us use the system regex
10242 again by default on systems with version 2 of the GNU C library.
10243 This was apparently broken.
10244 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
10245 * acconfig.h (USE_INCLUDED_REGEX): Remove.
10246 * config.in, configure: Regenerated.
10247
287c1a40
MK
10248 * configure.in: Move code that provides the --enable-tui option
10249 before the "Checks for libraries" section. Polish the code
10250 somewhat and set need_curses to yes if we build the TUI. Rewrite
10251 code that looks for a library providing termcap functionality to
10252 match more closely what's done in the Readline library, and move
10253 it into to the "Checks for libraries" section.
10254 * configure: Regenerated.
10255 * Makefile.in (TERMCAP): Remove variable.
10256 * config/i386/go32.mh (TERMCAP): Remove variable.
10257
684e56bf
AC
102582003-01-02 Andrew Cagney <ac131313@redhat.com>
10259
10260 * MAINTAINERS: Mention gdb_mbuild.sh.
10261 * gdb_mbuild.sh: Rewrite.
10262
e1ea1d75
MK
102632003-01-02 Mark Kettenis <kettenis@gnu.org>
10264
10265 * configure.in: Fix typo in last change.
10266 * config.in, configure: Regenerated.
10267
1b831c93
AC
102682003-01-02 Andrew Cagney <ac131313@redhat.com>
10269
10270 * valarith.c (value_binop): Delete obsolete code and comments.
10271 * configure.host: Ditto.
10272 * buildsym.h (make_blockvector): Ditto.
10273 * buildsym.c (make_blockvector): Ditto.
10274 * defs.h (enum language): Ditto.
10275 (chill_demangle): Ditto.
10276 * elfread.c (elf_symtab_read): Ditto.
10277 * dwarfread.c (CHILL_PRODUCER): Ditto.
10278 (set_cu_language): Ditto.
10279 (handle_producer): Ditto.
10280 * expprint.c (print_subexp): Ditto.
10281 * gdbtypes.c (chill_varying_type): Ditto.
10282 * gdbtypes.h (builtin_type_chill_bool): Ditto.
10283 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
10284 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
10285 (chill_varying_type): Ditto.
10286 * language.h (_LANG_chill): Ditto.
10287 * language.c (binop_result_type, integral_type): Ditto.
10288 (character_type, string_type, structured_type): Ditto.
10289 (lang_bool_type, binop_type_check): Ditto.
10290 * stabsread.h (os9k_stabs): Ditto.
10291 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
10292 (define_symbol, read_type, read_struct_fields): Ditto.
10293 (read_array_type, read_enum_type, read_huge_number): Ditto.
10294 (read_range_type, start_stabs): Ditto.
10295 * symfile.c (init_filename_language_table): Ditto.
10296 (add_psymbol_with_dem_name_to_list): Ditto.
10297 * symtab.c (symbol_init_language_specific): Ditto.
10298 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
10299 * symtab.h (struct general_symbol_info): Ditto.
10300 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
10301 * typeprint.c (typedef_print): Ditto.
10302 * utils.c (fprintf_symbol_filtered): Ditto.
10303 * valops.c (value_cast, search_struct_field, value_slice): Delete
10304 obsolete code.
10305 (varying_to_slice): Delete function.
10306 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
10307 (varying_to_slice): Delete declaration.
10308 * MAINTAINERS: Update.
10309
8bb2c122
MK
103102003-01-02 Mark Kettenis <kettenis@gnu.org>
10311
97bf5e38
MK
10312 * configure.in: Reorganize "Checks for library functions section"
10313 a bit. Remove check for `btowc' and `isascii' functions.
10314 * configure: Regenerated.
10315
5ee754fc
MK
10316 * acconfig.h (_MSE_INT_H): Remove.
10317 * configure.in: Create "Checks for header files" section, and move
10318 appropriate tests there. Don't check for objlist.h, wchar.h,
10319 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
10320 misdetection fix. Also add "Checks for types", "Checks for
10321 compiler characteristics" and "Checks for library functions"
10322 sections.
10323 * config.in, configure: Regenerated.
10324
8bb2c122
MK
10325 * configure.in: Create "Checks for programs" section, and move
10326 appropriate tests there.
10327
9a156167
MK
103282003-01-01 Mark Kettenis <kettenis@gnu.org>
10329
10330 * configure.in: Create "Checks for libraries" section, and move
10331 appropriate tests there. Cleanup check for wctype in libw. Use
10332 AC_SEARCH_LIBS to see whether we need libsocket.
10333 * configure: Regenerated.
10334
a80e2bcb 10335For older changes see ChangeLog-2002
c906108c
SS
10336\f
10337Local Variables:
10338mode: change-log
10339left-margin: 8
10340fill-column: 74
10341version-control: never
10342End:
This page took 1.204581 seconds and 4 git commands to generate.