Update i386 and amd64 ports for unwinder changes.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
10458914
DJ
12008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
2
3 Update i386 and amd64 ports for unwinder changes.
4
5 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
6 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
7 (amd64_frame_unwind): Use default_frame_sniffer.
8 (amd64_frame_sniffer): Delete.
9 (amd64_sigtramp_frame_cache): Expect this_frame.
10 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
11 (amd64_sigtramp_frame_sniffer): Update signature.
12 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
13 (amd64_frame_base_address): Expect this_frame.
14 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
15 this_frame.
16 (amd64_init_abi): Use set_gdbarch_dummy_id and
17 frame_unwind_append_unwinder.
18 * i386-tdep.c (i386_frame_cache): Expect this_frame.
19 (i386_frame_this_id, i386_frame_prev_register): Update signature.
20 (i386_frame_unwind): Use default_frame_sniffer.
21 (i386_frame_sniffer): Delete.
22 (i386_sigtramp_frame_cache): Expect this_frame.
23 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
24 (i386_sigtramp_frame_sniffer): Update signature.
25 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
26 (i386_frame_base_address): Update signature.
27 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
28 (i386_push_dummy_call): Update comment.
29 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
30 Expect this_frame.
31 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
32 and frame_unwind_append_unwinder.
33 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
34 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
35 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
36 i386nbsd-tdep.c: Update for unwinder changes.
37
25492ce3
DJ
382008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
39
40 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
41 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
42 this_frame.
43 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
44 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
45 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
46 signature.
47 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
48 this_frame.
49 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
50 Update signature.
51 * tramp-frame.h (struct tramp_frame): Update signature of init.
52 * Makefile.in (trad-frame.o): Update.
53
4a4e5149
DJ
542008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
55
56 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
57 (execute_stack_op): Put this_frame in the baton.
58 (execute_cfa_program): Take this_frame.
59 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
60 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
61 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
62 (dwarf2_frame_this_id): Adjust to work on this_frame.
63 (dwarf2_signal_frame_this_id): Delete.
64 (dwarf2_frame_prev_register): Update signature. Use new frame
65 unwind methods.
66 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
67 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
68 dwarf2_frame_sniffer.
69 (dwarf2_append_unwinders): New.
70 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
71 this_frame.
72 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
73 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
74 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
75 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
76 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
77 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
78 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
79 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
80 (dwarf2_append_unwinders): Declare.
81 (dwarf2_frame_base_sniffer): Update declaration.
82 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
83 this_frame.
84
669fac23
DJ
852008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
86
87 Convert frame unwinders to use the current frame and
88 "struct value".
89
90 * frame.c (frame_debug): Make global.
91 (get_frame_id): Pass this frame to unwinder routines.
92 (frame_pc_unwind): Remove unused unwind->prev_pc support.
93 (do_frame_register_read): Do not discard the return value of
94 frame_register_read.
95 (frame_register_unwind): Remove debug messages. Use
96 frame_unwind_register_value.
97 (frame_unwind_register_value, get_frame_register_value): New
98 functions.
99 (create_new_frame, get_frame_base_address, get_frame_locals_address)
100 (get_frame_args_address, get_frame_type): Pass this frame to
101 unwinder routines.
102 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
103 functions.
104 * frame.h: Update comments.
105 (frame_debug, frame_unwind_register_value, get_frame_register_value)
106 (frame_prepare_for_sniffer): Declare.
107 * frame-unwind.h: Update comments and parameter names.
108 (default_frame_sniffer): Declare.
109 (frame_prev_register_ftype): Return a struct value *.
110 (struct frame_unwind): Remove prev_pc member.
111 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
112 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
113 (frame_unwind_got_register, frame_unwind_got_memory)
114 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
115 * frame-base.h: Update comments and parameter names.
116 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
117 if necessary. Add debugging output.
118 * sentinel-frame.c (sentinel_frame_prev_register)
119 (sentinel_frame_this_id): Update for new signature.
120 (sentinel_frame_prev_pc): Delete.
121 (sentinel_frame_unwinder): Remove prev_pc.
122 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
123 prev_pc.
124 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
125 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
126 (frame_unwind_append_sniffer): Delete.
127 (frame_unwind_append_unwinder): New function.
128 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
129 from unwinders. Use frame_prepare_for_sniffer.
130 (default_frame_sniffer, frame_unwind_got_optimized)
131 (frame_unwind_got_register, frame_unwind_got_memory)
132 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
133 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
134 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
135 signature.
136 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
137 * gdbarch.c, gdbarch.c: Regenerated.
138 * frame-base.c (default_frame_base_address)
139 (default_frame_locals_address, default_frame_args_address): Update
140 for new signature.
141 (frame_base_find_by_frame): Pass this frame to unwinder routines.
142 * infcall.c (call_function_by_hand): Update comments.
143 * Makefile.in (frame-unwind.o): Update dependencies.
144
9214ee5f
DJ
1452008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
146
147 * ada-lang.c (ada_value_primitive_packed_val): Only check
148 value_lazy for memory lvals.
149 * findvar.c (value_of_register_lazy): New function.
150 (locate_var_value): Only check value_lazy for memory lvals.
151 * valarith.c (value_subscripted_rvalue): Likewise.
152 * valops.c (value_fetch_lazy): Handle both memory and register
153 lvals.
154 (search_struct_field, value_slice): Only check value_lazy for memory
155 lvals.
156 * value.c (struct value): Update comment for lazy.
157 (value_primitive_field): Only check value_lazy for memory lvals.
158 * value.h (value_lazy): Update comment.
159 (value_of_register_lazy): Declare.
160
939643d7
DJ
1612008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
162
163 * corefile.c (reopen_exec_file): Close any open files.
164
1de34ab7
JB
1652008-04-29 Joel Brobecker <brobecker@adacore.com>
166
167 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
168 show_memory_breakpoints to 1 while reading the instruction bundle.
169
ea42b34a
JB
1702008-04-29 Joel Brobecker <brobecker@adacore.com>
171
172 * gdbarch.sh: Document the return_value method. Explain that
173 the FUNCTYPE parameter might be NULL.
174 * gdbarch.h: Regenerated.
175 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
176 type when calling using_struct_return, as this is unnecessary
177 on this target.
178
a0fe373c
JB
1792008-04-28 Joel Brobecker <brobecker@adacore.com>
180
181 * terminal.h (create_tty_session): Fix return type.
182
c6446539
VP
1832008-04-26 Vladimir Prus <vladimir@codesourcery.com>
184
185 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
186
2f069f6f
JB
1872008-04-26 Joel Brobecker <brobecker@adacore.com>
188
189 * breakpoint.c (condition_command, commands_from_control_command)
190 (break_command_really): Minor reformatting.
191
93b5768b
PA
1922008-04-25 Pedro Alves <pedro@codesourcery.com>
193
194 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
195
436675d3
PA
1962008-04-25 Pedro Alves <pedro@codesourcery.com>
197
198 * amd64-tdep.c (amd64_get_longjmp_target): New.
199 (amd64_init_abi): Register amd64_get_longjmp_target as
200 gdbarch_get_longjmp_target callback.
201 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
202
78b6a731
PA
2032008-04-25 Pedro Alves <pedro@codesourcery.com>
204
205 * breakpoint.h (enum bpstat_what_main_action): Delete
206 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
207
208 * breakpoint.c (clrs): Delete.
209 (bpstat_what): Update table.
210
211 * infrun.c (handle_inferior_event): Remove
212 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
213
9e22b03a
VP
2142008-04-24 Vladimir Prus <vladimir@codesourcery.com>
215
216 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
217 Adjust all prototypes using mi_cmd_args_ftype to use
218 mi_cmd_argv_ftype.
219 (struct mi_cmd): Remove the args_func field.
220 * mi/mi-cmds.c: Don't provide value for the args_func field.
221 * mi/mi-main.c (mi_execute_async_cli_command)
222 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
223 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
224 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
225 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
226 (mi_cmd_target_download): Adjust.
227 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
228 (mi_cmd_execute): Do not check for args_func.
229 (mi_execute_async_cli_command): Adjust.
230 * mi/mi-parse.c: Don't check for args_func.
231
721c02de 2322008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393
VP
233
234 * breakpoint.c (bpstat_check_location)
235 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
236 New, extracted from bpstat_stop_status.
237 (bpstat_stop_status): Use the above.
238
2392008-04-24 Vladimir Prus <vladimir@codesourcery.com>
240
721c02de
VP
241 * mi/mi-main.c (last_async_command): Rename to current_token.
242 (previous_async_command): Remove.
243 (mi_cmd_gdb_exit): Adjust.
244 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
245 (mi_cmd_target_select): Adjust.
246 (mi_cmd_execute): Don't set previous_async_command. Free token
247 here even in async mode.
248 (mi_execute_async_cli_command): Adjust.
249 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
250 token.
251 (mi_load_progress): Adjust.
252
f13468d9
VP
2532008-04-24 Vladimir Prus <vladimir@codesourcery.com>
254
255 * infcmd.c (step_1_continuation): Always disable longjmp
256 breakpoint if we're not going to do another step.
257
f107f563
VP
2582008-04-24 Vladimir Prus <vladimir@codesourcery.com>
259
260 exec_cleanup murder.
261 * breakpoint.c (until_break_command_continuation): Add
262 the 'error' parameter. Directly delete the breakoint as
263 opposed to running cleanups.
264 (until_break_command): Install continuation only
265 after starting the target. Don't use exec cleanups,
266 use ordinary cleanups. Discard cleanups is successfully
267 started the target in async mode.
268 (make_cleanup_delete_breakpoint): Remove.
269 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
270 declaration.
271 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
272 declarations.
273 (struct continations): Add the 'error' parameter to the
274 continuation_hook field.
275 (add_continuation, do_all_continuations)
276 (add_intermediate_continuation)
277 (do_all_intermediate_continuations): Add the 'error' parameter.
278 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
279 * inf-loop.c (inferior_event_handler): Instead of calling
280 discard_all_continuations, use do_all_continuations with 1 as
281 'error' parameter. Pass 0 as 'error' parameter in existing uses
282 of discard_all_continuations.
283 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
284 cleanups.
285 (step_once): Install continuation only after resuming the target.
286 (step_1_continuation): Disable longjmp breakpoint on error.
287 (finish_command_continuation): Add the error parameter. Delete
288 the finish breakpoint directly, do not use cleanups.
289 (finish_command): Do not use exec_cleanups. Always setup
290 continuation. For sync case, immediately run them.
291 (attach_command_continuation): Add the error parameter.
292 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
293 remove step_resume_breakpoint -- adjust delete it directly.
294 * interps.c (interp_set): Adjust call to do_all_continations.
295 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
296 do exec cleanups.
297 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
298 cleanups.
299 (mi_cmd_execute): Do not use exec_cleanup.
300 (mi_execute_async_cli_command): Simplify the string concatenation
301 logic. Do no use exec cleanup.
302 (mi_exec_async_cli_cmd_continuation): New parameter error.
303 Free last_async_command.
304 * top.c (command_line_handler_continuation): New parameter error.
305 * utils.c (exec_cleanup_chain, make_exec_cleanup)
306 (do_exec_cleanups): Remove.
307 (add_continuation, do_all_continations)
308 (add_intermediate_continuation)
309 (do_all_intermediate_continuations): New parameter error.
310
74960c60
VP
3112008-04-24 Vladimir Prus <vladimir@codesourcery.com>
312
313 * breakpoint.h (bp_location_p): New typedef.
314 Register a vector of bp_location_p.
315 * breakpoint.c (always_inserted_mode)
316 (show_always_inserted_mode): New.
317 (unlink_locations_from_global_list): Remove.
318 (update_global_location_list)
319 (update_global_location_list_nothrow): New.
320 (update_watchpoint): Don't free locations.
321 (should_insert_location): New.
322 (insert_bp_location): Use should_insert_location.
323 (insert_breakpoint_locations): Copied from
324 insert_breakpoints.
325 (insert_breakpoint): Use insert_breakpoint_locations.
326 (bpstat_stop_status): Call update_global_location_list
327 when disabling breakpoint.
328 (allocate_bp_location): Don't add to bp_location_chain.
329 (set_raw_breakpoint)
330 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
331 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
332 (enable_overlay_breakpoints, disable_overlay_breakpoints)
333 (set_longjmp_resume_breakpoint)
334 (enable_watchpoints_after_interactive_call_stop)
335 (disable_watchpoints_before_interactive_call_start)
336 (create_internal_breakpoint)
337 (create_fork_vfork_event_catchpoint)
338 (create_exec_event_catchpoint, set_momentary_breakpoint)
339 (create_breakpoints, break_command_1, watch_command_1)
340 (create_exception_catchpoint)
341 (handle_gnu_v3_exceptions)
342 (disable_breakpoint, breakpoint_re_set_one)
343 (create_thread_event_breakpoint, create_solib_event_breakpoint)
344 (create_ada_exception_breakpoint): : Don't call check_duplicates.
345 Call update_global_location_list.
346 (delete_breakpoint): Don't remove locations and don't
347 try to reinsert them. Call update_global_location_list.
348 (update_breakpoint_locations): Likewise.
349 (restore_always_inserted_mode): New.
350 (update_breakpoints_after_exec): Temporary disable
351 always inserted mode.
352 * Makefile.in: Update dependencies.
353
354 * infrun.c (proceed): Remove breakpoints while stepping
355 over breakpoint.
356 (handle_inferior_event): Don't remove or insert
357 breakpoints.
358 * linux-fork.c (checkpoint_command): Remove breakpoints
359 before fork and insert after.
360 (linux_fork_context): Remove breakpoints before switch
361 and insert after.
362 * target.c (target_disconnect, target_detach): Remove
363 breakpoints from target.
364
365
d24317b4
VP
3662008-04-24 Vladimir Prus <vladimir@codesourcery.com>
367
368 * breakpoint.c (print_one_breakpoint_location): In MI
369 mode, report the location string the breakpoint was
370 originally created with.
371
ee967b5f
MG
3722008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
373
374 * Makefile.in (xtensa-tdep.o): Update dependencies.
375 * configure.tgt (xtensa*): Update dependencies.
376 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
377 Local variable areg renamed to arreg.
378 (areg_number): New function.
379 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
380 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
381 replaced by arreg_number.
382 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
383 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
384 (xtensa_scan_prologue): New function.
385 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
386 when ENTRY instraction hasn't been executed yet. Get the frame pointer
387 value based on prologue analysis. Fix the bugs preventing WS and
388 AR4-AR7/A11 registers from getting right values for intermediate frames,
389 whose registers have been already spilled.
390 (xtensa_frame_prev_register): Fix WS register value. Use are_number
391 and arreg_number appropriately.
392 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
393 svr4_ilp32_fetch_link_map_offsets.
394
09d71d23
AS
3952008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
396
397 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
398 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
399
fdc59709
PB
4002008-04-23 Paolo Bonzini <bonzini@gnu.org>
401
402 * acinclude.m4: Add override.m4.
403 * configure: Regenerate.
404
0bcd0149
JK
4052008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
406
407 * ada-lang.c (get_selections): Variable PROMPT made non-const and
408 initialized with a trailing space now. Use PROMPT_ARG of
409 COMMAND_LINE_INPUT instead of printing it ourselves.
410
88d8a8e0
JB
4112008-04-22 Joel Brobecker <brobecker@adacore.com>
412
413 * NEWS: Document support for 64-bit core file.
414
c055b101
CV
4152008-04-22 Corinna Vinschen <vinschen@redhat.com>
416
417 * NEWS: Add information on calling convention and new SH CLI options.
418
419 * sh-tdep.c (sh_cc_gcc): New static string.
420 (sh_cc_renesas): Ditto.
421 (sh_cc_enum): New static string array.
422 (sh_active_calling_convention): New static string pointer denoting
423 active user chosen ABI.
424 (sh_is_renesas_calling_convention): New function to return function
425 specific ABI, or user choice if necessary.
426 (sh_use_struct_convention): Rename first argument and turn around its
427 meaning. Check for renesas ABI and return accordingly.
428 (sh_use_struct_convention_nofpu): New function.
429 (sh_next_flt_argreg): Get function type as third parameter. Check
430 for renesas ABI and choose floating registers accordingly.
431 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
432 struct return slot accordingly.
433 (sh_push_dummy_call_nofpu): Ditto.
434 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
435 Evaluate ABI and give to sh_use_struct_convention_nofpu.
436 (sh_return_value_fpu): Evaluate ABI and give to
437 sh_use_struct_convention.
438 (show_sh_command): New function.
439 (set_sh_command): Ditto.
440 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
441 CLI command.
442
443 * gdbarch.sh (return_value): Add func_type argument.
444 * gdbarch.c: Regenerate.
445 * gdbarch.h: Ditto.
446 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
447 val_type so as not to collide with value_type function. Call
448 using_struct_return with additional function type argument.
449 * infcall.c (call_function_by_hand): Call using_struct_return and
450 gdbarch_return_value with additional function type argument.
451 * infcmd.c (print_return_value): Take addition func_type argument.
452 Call gdbarch_return_value with additional function type argument.
453 (finish_command_continuation): Call print_return_value with additional
454 function type argument.
455 (finish_command): Ditto.
456 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
457 additional function type argument.
458 * stack.c (return_command): Call using_struct_return and
459 gdbarch_return_value with additional function type argument.
460 * value.c (using_struct_return): Take additional function type argument.
461 * value.h (using_struct_return): Accommodate declaration.
462 * alpha-tdep.c (alpha_return_value): Add func_type argument.
463 * amd64-tdep.c (amd64_return_value): Ditto.
464 * arm-tdep.c (arm_return_value): Ditto.
465 * avr-tdep.c (avr_return_value): Ditto.
466 * cris-tdep.c (cris_return_value): Ditto.
467 * frv-tdep.c (frv_return_value): Ditto.
468 * h8300-tdep.c (h8300_return_value): Ditto.
469 (h8300h_return_value): Ditto.
470 * hppa-tdep.c (hppa32_return_value): Ditto.
471 (hppa64_return_value): Ditto.
472 * i386-tdep.c (i386_return_value): Ditto.
473 * ia64-tdep.c (ia64_return_value): Ditto.
474 * iq2000-tdep.c (iq2000_return_value): Ditto.
475 * m32c-tdep.c (m32c_return_value): Ditto.
476 * m32r-tdep.c (m32r_return_value): Ditto.
477 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
478 * m68k-tdep.c (m68k_return_value): Ditto.
479 (m68k_svr4_return_value): Ditto.
480 * m88k-tdep.c (m88k_return_value): Ditto.
481 * mep-tdep.c (mep_return_value): Ditto.
482 * mips-tdep.c (mips_eabi_return_value): Ditto.
483 (mips_n32n64_return_value): Ditto.
484 (mips_o32_return_value): Ditto.
485 (mips_o64_return_value): Ditto.
486 * mn10300-tdep.c (mn10300_return_value): Ditto.
487 * mt-tdep.c (mt_return_value): Ditto.
488 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
489 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
490 (ppc_sysv_abi_broken_return_value): Ditto.
491 (ppc64_sysv_abi_return_value): Ditto.
492 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
493 (ppc_sysv_abi_broken_return_value): Ditto.
494 (ppc64_sysv_abi_return_value): Ditto.
495 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
496 * rs6000-tdep.c (rs6000_return_value): Ditto.
497 * s390-tdep.c (s390_return_value): Ditto.
498 * score-tdep.c (score_return_value): Ditto.
499 * sh-tdep.c (sh_return_value_nofpu): Ditto.
500 (sh_return_value_fpu): Ditto.
501 * sh64-tdep.c (sh64_return_value): Ditto.
502 * sparc-tdep.c (sparc32_return_value): Ditto.
503 * sparc64-tdep.c (sparc64_return_value): Ditto.
504 * spu-tdep.c (spu_return_value): Ditto.
505 * v850-tdep.c (v850_return_value): Ditto.
506 * vax-tdep.c (vax_return_value): Ditto.
507 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
508 * xtensa-tdep.c (xtensa_return_value): Ditto.
509
510 * gdbtypes.h (struct type): Add calling_convention member.
511 * dwarf2read.c (read_subroutine_type): Add calling convention read
512 from DW_AT_calling_convention attribute to function type.
513
9eec4d1e
MD
5142008-04-22 Markus Deuling <deuling@de.ibm.com>
515
516 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
517 multi_f77_subscript to support values from registers.
518 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
519 * value.h (value_subscripted_rvalue): Add prototype.
520
521 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
522 Fix output.
523 * f-valprint.c (f_val_print): Likewise.
524
ef72380d
CS
5252008-04-21 Craig Silverstein <csilvers@google.com>
526
527 * dwarf2read.c (zlib_decompress_section): Define abfd in the
528 !HAVE_ZLIB_H case.
529
ff8e85c3
PA
5302008-04-21 Pedro Alves <pedro@codesourcery.com>
531
532 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
533 section is not a code section.
534
31fffb02
CS
5352008-04-19 Craig Silverstein <csilvers@google.com>
536
537 * NEWS: Add information on compressed debug sections.
538
8e91f023
VP
5392008-04-19 Vladimir Prus <vladimir@codesourcery.com>
540
541 * mi/mi-cmd-var.c (varobj_update_one): Print new
542 value for variable objects that changed type.
543
603ba1de
VP
5442008-04-19 Vladimir Prus <vladimir@codesourcery.com>
545
546 * varobj.c (varobj_invalidate): Don't touch floating
547 varobjs.
548
7fc830e2
MK
5492008-04-19 Mark Kettenis <kettenis@gnu.org>
550
551 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
552 (multiple_symbols_cancel): Remove extra const.
553 * symtab.h: Likewise.
554
bcbf8b68
NR
5552008-04-19 Nick Roberts <nickrob@snap.net.nz>
556
557 * interps.c (top_level_interpreter): Rename static variable...
558 (top_level_interpreter_ptr): ...to this.
559 (top_level_interpreter): New function.
560
561 * interps.h: New extern for top_level_interpreter.
562
563 * linespec.c: Include interps.h and mi/mi-cmds.h.
564 (decode_line_2): When using MI, always set all breakpoints in menu.
565
566 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
567
31fffb02 5682008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
569
570 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
571 * config.in, configure: Regenerate.
572 * dwarf2read.c: Include zlib.h if present.
573 Modified *_SECTION macros.
574 (section_is_p): New.
575 (dwarf2_locate_sections): Use section_is_p instead of strcmp
576 (dwarf2_resize_section): New.
577 to determine whether a given section has a given name.
578 (zlib_decompress_section): New.
579 (dwarf2_read_section): Read the compressed section if present
580 in the binary.
581 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 582
a03b3a97
TJB
5832008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
584
585 * defs.h (exec_set_section_offsets): Remove prototype.
586 * exec.c (exec_set_section_offsets): Remove function.
587
9e386756
JB
5882008-04-18 Joel Brobecker <brobecker@adacore.com>
589
590 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
591 in the search for the matching symbol.
592
2ec93238
MK
5932008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
594
595 * breakpoint.c (update_watchpoint): Always reparse
596 condition.
597
e9bbd7c5
JB
5982008-04-17 Joel Brobecker <brobecker@adacore.com>
599
600 * breakpoint.c (print_one_breakpoint_location): Make sure to print
601 the breakpoint address only once.
602
475bbd17
JB
6032008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
604
605 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
606 rather than a hard-coded architecture, for xcoff executables.
607
86991504
DE
6082008-04-17 Doug Evans <dje@google.com>
609
4584e32e
DE
610 * buildsym.c (watch_main_source_file_lossage): New fn.
611 (end_symtab): Call it.
612
86991504
DE
613 * source.c (find_and_open_source): Add some comments clarifying
614 handling of FULLNAME argument. Make static. Remove pointless
615 xstrdup/xfree.
616
0a320680
PA
6172008-04-17 Pedro Alves <pedro@codesourcery.com>
618
619 * inf-loop.c (inferior_event_handler): Also run the intermediate
620 continuations in the INF_EXEC_COMPLETE case.
621
700b53b1
TT
6222008-04-16 Tom Tromey <tromey@redhat.com>
623
624 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
625 (set_cmd_async_ok, get_cmd_async_ok): Declare.
626 * cli/cli-decode.c (set_cmd_async_ok): New function.
627 (get_cmd_async_ok): New function.
628 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
629 "show" as async-ok.
630 * top.c (execute_command): Use get_cmd_async_ok.
631 * infcmd.c: Include cli/cli-decode.h.
632 (_initialize_infcmd): Mark "interrupt" as async-ok.
633 * Makefile.in (infcmd.o): Depend on cli_decode_h.
634
dacec2a8
DJ
6352008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
636
637 PR gdb/2445
638 * exec.c: Correct "arch-utils.h" include.
639
2cec12e5
AR
6402008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
641
642 PR gdb/2424
643 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
644 to allow printing to 'see' real reason of stop. This fixes PR 2424.
645 * breakpoint.c (bpdisp_texst): New function. The function takes over
646 the role of bpstats static array in print_one_breakpoint_location.
647 (print_it_typical): Print "Temporary breakpoint" instead
648 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
649 protocols, print disp field.
650 (print_one_breakpoint_location): Removed bpdisps static definition.
651 Call new bpstat_text function to get value for 'disp' field.
652 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
653
4d7b71aa
DJ
6542008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
655
656 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
657 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
658 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
659 * gnulib/Makefile.in: Regenerate.
660
aa11fd3f
DJ
6612008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
662
663 * Makefile.in (GNULIB_H): New. Trigger all-lib.
664 (defs_h): Use $(GNULIB_H).
665 (all-lib): Depend on gnulib/Makefile.
666 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
667 * config.in, gnulib/Makefile.in: Regenerated.
668
e28b3332
DJ
6692008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
670
671 * Makefile.in (LIBGNU, INCGNU): Define.
672 (INTERNAL_CFLAGS_BASE): Add INCGNU.
673 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
674 (CLEANDIRS): New.
675 ($(LIBGNU), all-lib): New rules.
676 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
677 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
678 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
679 * gnulib: New directory, from gnulib-tool.
680 * configure, aclocal.m4: Regenerated.
681
e3bc4218
DJ
6822008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
683
684 * linux-thread-db.c (have_threads_callback): Check thread->private.
685
fcacd99f
VP
6862008-04-13 Nick Roberts <nickrob@snap.net.nz>
687 Vladimir Prus <vladimir@codesourcery.com>
688
689 Fix @-varobjs.
690 * varobj.c (value_of_root): Update the expression for
691 floating varobjs.
692 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
693 report that.
694
de051565
MK
6952008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
696
697 * mi/mi-cmd-var.c: Include "mi-getopt.h".
698 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
699 (mi_cmd_var_set_format): Use new mi_parse_format.
700 (mi_cmd_var_evaluate_expression): Support for -f option to specify
701 format.
702 * Makefile.in (mi-cmd-var.o): Update dependencies.
703
704 * varobj.h (varobj_get_formatted_value): Declare.
705 * varobj.c (my_value_of_variable): Added format parameter.
706 (cplus_value_of_variable): Likewise.
707 (java_value_of_variable): Likewise.
708 (c_value_of_variable): Likewise. Evaluate expression based
709 on format parameter.
710 (struct language_specific): Add format parameter to function member
711 *value_of_variable.
712 (varobj_get_formatted_value): New.
713 (varobj_get_value): Added format parameter to method call.
714
56953f80
JB
7152008-04-08 Joel Brobecker <brobecker@adacore.com>
716
717 * stabsread.c (cleanup_undefined_types_noname): Manually set the
718 instance flags of the undefined type before calling replace_type.
719
e4e33b9e
VP
7202008-04-08 Vladimir Prus <vladimir@codesourcery.com>
721
722 * target.h (enum strata): Remove the download_stratum.
723
92b5c263
DE
7242008-04-07 Doug Evans <dje@google.com>
725
726 * buildsym.h (last_source_file): Add dwarf info to comment.
727 (last_source_start_addr): Ditto.
728
effa26a9
PA
7292008-04-07 Pedro Alves <pedro@codesourcery.com>
730
731 * alphanbsd-tdep.c: Include "target.h".
732 * mn10300-tdep.c: Include "target.h".
733 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
734
2b2d9e11
VP
7352008-04-06 Vladimir Prus <vladimir@codesourcery.com>
736
737 Fix breakpoint condition that use member variables.
738 * valops.c (check_field): Remove.
739 (check_field_in): Rename to check_field.
740 (value_of_this): Use la_name_of_this.
741 * value.h (check_field): Adjust prototype.
742
743 * language.h (la_value_of_this): Rename to la_name_of_this.
744 * language.c (unknown_language_defn): Specify "this" for
745 name_of_this.
746 (auto_language_defn): Likewise.
747 (local_language_defn): Likewise.
748 * ada-lang.c (ada_language_defn): Adjust comment.
749 * c-lang.c (c_language_defn): Adjust comment.
750 (cplus_language_defn): Specify "this" for name_of_this.
751 (asm_language_defn): Adjust comment.
752 (minimal_language_defn): Adjust comment.
753 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
754 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
755 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
756 * objc-lang.c (objc_language_defn): Specify "self" for
757 name_of_this.
758 * p-lang.c (pascal_language_defn): Specify "this" for
759 name_of_this.
760 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
761
762 * symtab.c (lookup_symbol_aux): Lookup "this" in the
763 proper scope, and check for field in type of "this", without
764 trying to create a value.
765
a13e061a
PA
7662008-04-04 Pedro Alves <pedro@codesourcery.com>
767
768 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
769 (mi_error_message): Delete declaration.
770 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
771 returning MI_CMD_ERROR.
772 * mi/mi-main.c (mi_error_message): Delete.
773 (mi_cmd_exec_interrupt):
774 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
775 (mi_cmd_thread_info): Call error instead of returning
776 MI_CMD_ERROR.
777 (mi_cmd_data_list_register_values): Call error instead of
778 returning MI_CMD_ERROR. Adapt to new get_register interface.
779 (get_register): Change return typo to void. Call error instead of
780 returning MI_CMD_ERROR.
781 (mi_cmd_data_write_register_values): Call error instead of
782 returning MI_CMD_ERROR.
783 (mi_cmd_list_features): Return MI_CMD_DONE.
784 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
785 (mi_execute_command): Always print exceptions with -error.
786
aad4b048
JB
7872008-04-04 Joel Brobecker <brobecker@adacore.com>
788
789 * NEWS: Mention new commands set/show multiple-symbols.
790
717d2f5a
JB
7912008-04-03 Joel Brobecker <brobecker@adacore.com>
792
793 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
794 (multiple_symbols_cancel): New constants.
795 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
796 (multiple_symbols_select_mode): New function.
797 (_initialize_symtab): Add new set/show multiple-symbols commands.
798 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
799 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
800 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
801 setting.
802 * linespec.c (decode_line_2): Likewise.
803
f73634e5
DE
8042008-04-03 Doug Evans <dje@sebabeach.org>
805
806 * symtab.h (enum free_code): Delete free_contents, unused.
807 * symmisc.c (free_symtab_block): Delete.
808 (free_symtab, case free_code): Delete.
809
6af87b03
AR
8102008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
811
812 * valops.c (value_cast_structs): New function. Cast related
813 STRUCT types up/down and return cast value. The body of this
814 function comes mostly from value_cast_pointers.
815 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
816 to value_cast_structs. Now value_cast_pointers needs only create
817 appropriate reference after using value_cast_structs for actual
818 casting.
819 (value_cast): Handle references.
820
61ad90e1
MK
8212008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
822
823 * MAINTAINERS: Added myself to section Write After Approval.
824
b7d038ae
DJ
8252008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
826
827 * ia64-tdep.c (examine_prologue): Correct array access.
828
8292008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
830
831 * cp-support.c (first_component_command): Return if no arguments.
832
df3ac606
CD
8332008-03-28 Carlos O'Donell <carlos@codesourcery.com>
834
835 * ser-mingw.c (ser_windows_open): Open requested name.
836
ca933485
AR
8372008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
838
839 * MAINTAINERS: Added myself.
840
5f667f2d
PA
8412008-03-28 Pedro Alves <pedro@codesourcery.com>
842
843 * target.c (find_default_run_target): Allow a NULL `do_mesg'
844 parameter. If it is NULL, don't call error.
845 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
846 `do_mesg' parameter to find_default_run_target. If no target was
847 found, return 0.
848
e741f4d4
DJ
8492008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
850
851 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
852 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
853 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
854 Delete.
855 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
856
f66d8205 8572008-03-27 Joel Brobecker <brobecker@adacore.com>
858
859 GDB 6.8 released.
860
221c031f
UW
8612008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
862
863 * features/Makefile (%.dat): Set xmltarget to the base filename
864 of the XML source, without subdirectory.
865 * regformats/rs6000/powerpc-32.dat: Regenerate.
866 * regformats/rs6000/powerpc-64.dat: Regenerate.
867 * regformats/rs6000/powerpc-e500.dat: Regenerate.
868
40c58d95
MD
8692008-03-27 Markus Deuling <deuling@de.ibm.com>
870
871 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
872 objfile arch.
873
bb1ec7d2
NR
8742008-03-27 Nick Roberts <nickrob@snap.net.nz>
875
876 * mi/mi-main.c (enum captured_mi_execute_command_actions):
877 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
878
5e2b427d
UW
8792008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
880
881 * objfiles.h (struct objfile): New GDBARCH member.
882 (get_objfile_arch): Add prototype.
883 * objfiles.c: Include "arch-utils.h".
884 (allocate_objfile): Look up gdbarch associated with bfd.
885 (get_objfile_arch): New function.
886 * Makefile (objfiles.o): Update dependencies.
887
888 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
889 by objfile arch.
890 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
891 by frame arch.
892 (locexpr_describe_location): Replace current_gdbarch by
893 objfile arch.
894 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
895 (dwarf2_add_field): Likewise.
896 (read_tag_pointer_type): Likewise.
897 (read_base_type): Likewise.
898 (new_symbol): Likewise.
899
900 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
901 (decode_base_type, decode_function_type): Likewise.
902 (coff_read_struct_type, coff_read_enum_type): Likewise.
903 (coff_symtab_read): Replace current_gdbarch by objfile arch.
904 (decode_base_type): Likewise.
905 (coff_read_enum_type): Likewise.
906 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
907 (coff_read_enum_type): Likewise.
908
909 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
910 (end_psymtab): Likewise.
911 (process_one_symbol): Likewise.
912
913 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
914 (parse_procedure): Likewise.
915 (parse_partial_symbols): Likewise.
916
917 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
918
919 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
920 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
921 built-in types.
922 (read_range_type): Replace current_gdbarch by objfile arch. Replace
923 static range_index_type by built-in type.
924 (read_one_struct_field): Replace current_gdbarch by objfile arch.
925 (read_enum_type): Likewise.
926
927 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
928 objfile arch.
929
5a413362
VP
9302008-03-26 Vladimir Prus <vladimir@codesourcery.com>
931
932 * varobj.h (varobj_floating_p): Declare.
933 * varobj.c (varobj_floating_p): New.
934 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
935 '@' as the name, update all floating varobjs.
936
a5defcdc
VP
9372008-03-26 Vladimir Prus <vladimir@codesourcery.com>
938
939 * varobj.c (struct varobj_root): Rename use_selected_frame to
940 floating, and clarify the meaning.
941 (varobj_create, varobj_update, new_root_variable): Adjust.
942 (value_of_root): Don't use type_changed as in variable,
943 adjust comment.
944 (c_value_of_root): Adjust.
5a413362 945
403fe197
PA
9462008-03-25 Pedro Alves <pedro@codesourcery.com>
947
948 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
949 gdb's thread list.
950 (linux_nat_wait): Add main lwp to gdb's thread list.
951 * linux-thread-db.c (find_new_threads_callback): Also attach to
952 already listed threads which thread_db didn't know about yet.
953
710151dd
PA
9542008-03-25 Pedro Alves <pedro@codesourcery.com>
955
956 * linux-nat.c (drain_queued_events): Fix comment typo.
957 (linux_nat_attach): In async mode, don't rely on storing a pending
958 status. Instead place the wait status on the pipe.
959 (linux_nat_resume): Remove unreacheable shortcut code in async
960 mode.
961 (stop_wait_callback): In async mode, don't store pending status.
962 Instead, cancel breakpoints or resend the signal appropriatelly.
963 (cancel_breakpoint): New, refactored from
964 cancel_breakpoints_callback.
965 (cancel_breakpoints_callback): Call cancel_breakpoint.
966 (pipe_to_local_event_queue): Remove special token processing.
967 (linux_nat_wait): Issue an internal error if a pending status is
968 found in async mode.
969
807bddf3
DJ
9702008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
971
972 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
973
c5b48eac
VP
9742008-03-24 Nick Roberts <nickrob@snap.net.nz>
975 Vladimir Prus <vladimir@codesourcery.com>
976
977 * varobj.c (struct varobj_root): New component thread_id.
978 (varobj_get_thread_id, check_scope): New functions.
979 (c_value_of_root): Use check_scope. Switch to the
980 proper thread if necessary.
981
982 * varobj.h (varobj_get_thread_id): New extern.
983
984 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
985
12f4afab
DJ
9862008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
987
988 PR gdb/544
989 * top.c: Revert 2008-03-21 changes.
990
6208b47d
VP
9912008-03-23 Vladimir Prus <vladimir@codesourcery.com>
992
993 * thread.c (make_cleanup_restore_current_thread): Make it
994 globally visible.
995 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
996 * varobj.c (varobj_update): Don't save/restore frame.
997 (c_value_of_root): Save/restore thread and frame here,
998 using make_cleanup_restore_current_thread.
999 * Makefile.in: Update dependecies.
1000
44a67aa7
VP
10012008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1002
1003 * varobj.c (struct varobj_root): Clarify
1004 comment on the frame field.
1005 (varobj_create): Don't set frame if we have no
1006 block.
1007
b562a0cb
DJ
10082008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1009
1010 PR gdb/544
1011 Suggested by Jan Kratochvil:
1012 * top.c (gdb_rl_operate_and_get_next_completion): Call
1013 rl_redisplay_function.
1014 (gdb_rl_redisplay): New.
1015 (init_main): Set rl_redisplay_function.
1016
ed1bd5f5
JB
10172008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
1018
1019 * aix-thread.c (pdc_read_regs): Fix compiler warning.
1020 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
1021 (store_regs_kernel_thread): Likewise.
1022
b84876c2
PA
10232008-03-21 Pedro Alves <pedro@codesourcery.com>
1024
1025 Linux native async support.
1026
1027 * target.h (struct target_ops): Delete to_async_mask_value and add
1028 to_async_mask.
1029 (target_is_async_p, target_async): Formatting.
1030 (target_async_mask_value): Delete.
1031 (target_async_mask): Delete function declaration, and add new
1032 target macro with the same name.
1033
1034 * target.c (update_current_target): Replace to_async_mask_value by
1035 to_async_mask. Default to_async_mask to return_one.
1036 (target_async_mask): Delete.
1037 (find_default_can_async_p, find_default_is_async_p): New.
1038 (init_dummy_target): register find_default_can_async_p and
1039 find_default_is_async_p on the dummy target.
1040
1041 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
1042 (debug_linux_nat_async): New global.
1043 (show_debug_linux_nat_async): New function.
1044 (linux_nat_async_enabled, linux_nat_async_mask_value)
1045 (linux_nat_event_pipe, linux_nat_num_queued_events)
1046 (linux_nat_async_events_enabled): New globals.
1047 (struct waitpid_result): New struct.
1048 (waitpid_queue): New global.
1049 (queued_waitpid, push_waitpid, drain_queued_events): New.
1050 (my_waitpid): Call queued_waitpid.
1051 (linux_child_follow_fork): Disable async events during the call.
1052 (blocked_mask): Delete.
1053 (sync_sigchld_action, async_sigchld_action): New globals.
1054 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
1055 async mode, block events during the call.
1056 (linux_nat_create_inferior): New.
1057 (linux_nat_attach): In sync mode, restore the mask states. In
1058 async mode, wake the event loop immediatelly.
1059 (detach_callback): Drain all queued events of the lwp we're
1060 detaching from.
1061 (linux_nat_detach): Block async mode, and drain events of the main
1062 process.
1063 (linux_nat_resume): If in async mode, mask async events during the
1064 call. If short circuiting, force event loop to wake up. If
1065 resuming, set target_executing, and register target events in the
1066 event loop.
1067 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
1068 (linux_nat_wait): In async mode, block events during the call.
1069 Only enable/disable passing SIGINT to the inferior in sync mode.
1070 Get events from local waitpid queue. If no interesting events was
1071 found, return to events loop. Reregister target events in the
1072 event loop on exit. In sync mode, no need to reblock SIGCHLD.
1073 (linux_nat_kill): Disable events on entry.
1074 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
1075 here. Detach async mode from the event loop if there are no more
1076 forks available, otherwise leave it on.
1077 (sigchld_handler): Assure this is called only in sync mode.
1078 (linux_async_permitted, linux_async_permitted_1): New globals.
1079 (set_maintenance_linux_async_permitted)
1080 (show_maintenance_linux_async_permitted): New functions.
1081 (linux_nat_is_async_p, linux_nat_can_async_p)
1082 (linux_nat_async_mask): New.
1083 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
1084 (get_pending_events, async_sigchld_handler): New.
1085 (linux_nat_async_events): New.
1086 (async_terminal_is_ours): New global.
1087 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
1088 (async_client_callback, async_client_context): New.
1089 (linux_nat_async_file_handler, linux_nat_async)
1090 (linux_nat_disable_async, linux_nat_enable_async): New.
1091 (linux_nat_add_target): Register linux_nat_create_inferior,
1092 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
1093 linux_nat_async_mask, linux_nat_terminal_inferior and
1094 linux_nat_terminal_ours.
1095 (_initialize_linux_nat): Remove local action variable, and update
1096 code that used it to use sync_sigchld_action. Add new
1097 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
1098 set/show command in the maintenance class. Add new "linux-async"
1099 maintenance set/show command. Block SIGCHLD by default. Setup
1100 async_sichld_action, and sync_sigchld_action. Install the default
1101 async mode.
1102 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
1103 the cancel signals.
1104
1105 * linux-thread-db.c (re_check_for_thread_db): New.
1106 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
1107 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
1108 (thread_db_async_mask): New.
1109 (init_thread_db_ops): Register thread_db_can_async_p,
1110 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
1111
1112 * remote.c (remote_async_mask_value): New.
1113 (remote_return_zero): New.
1114 (init_remote_ops): Register remote_return_zero as callbacks of
1115 to_can_async_p and to_is_async_p.
1116 (remote_can_async_p, remote_is_async_p, remote_async): Update to
1117 use remote_async_mask_value.
1118 (remote_async_mask): New.
1119 (init_remote_async_ops): Remove to_async_mask_value setting and
1120 register remote_async_mask as to_async_mask callback in
1121 remote_async_ops.
1122
1123 * Makefile.in (linux-nat.o): Update.
1124
17faa917
DJ
11252008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1126
1127 * gdbthread.h (add_thread_with_info): New.
1128 * linux-thread-db.c: Add some documentation.
1129 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
1130 (struct private_thread_info): Remove th_valid and ti_valid.
1131 Replace ti with tid.
1132 (thread_get_info_callback): Do not add TID to the new ptid. Do
1133 not cache th or ti.
1134 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
1135 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
1136 new PTID.
1137 (attach_thread): Handle an already-existing thread. Use
1138 add_thread_with_info. Cache the th and tid.
1139 (detach_thread): Verify that private was set. Remove verbose
1140 argument and printing. Update caller.
1141 (thread_db_detach): Do not adjust inferior_ptid.
1142 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
1143 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
1144 (thread_db_wait): Do not use lwp_from_thread.
1145 (thread_db_pid_to_str): Use the cached TID.
1146 (thread_db_extra_thread_info): Check that private is set.
1147 (same_ptid_callback): Delete.
1148 (thread_db_get_thread_local_address): Do not use it or check
1149 is_thread. Check that private is set. Assume that the thread
1150 handle is already cached.
1151 (init_thread_db_ops): Remove to_resume and to_kill.
1152 * thread.c (add_thread_with_info): New.
1153 (add_thread): Use it.
1154 * linux-nat.c (find_thread_from_lwp): Delete.
1155 (exit_lwp): Do not use it. Check print_thread_events. Print before
1156 deleting the thread.
1157 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
1158 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
1159 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
1160 printf_unfiltered for thread exits.
1161 * procfs.c (procfs_wait): Likewise.
1162
6214f497
DJ
11632008-03-21 Chris Demetriou <cgd@google.com>
1164
1165 * symtab.c (rbreak_command): Quote symbol name before passing
1166 it to break_command.
1167
63092375
DJ
11682008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1169
1170 * eval.c (evaluate_subexp_for_address): Clarify error message.
1171 Use value_must_coerce_to_target.
1172 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
1173 * valops.c (value_assign): Call value_coerce_to_target when
1174 assigning to anything but internalvars. Leave GDB-side arrays
1175 as arrays when assigning to internalvars.
1176 (value_must_coerce_to_target, value_coerce_to_target): New.
1177 (value_coerce_array, value_addr): Call value_coerce_to_target.
1178 (value_array): Create the array in GDB's memory instead of
1179 the inferior's.
1180 * value.h (value_must_coerce_to_target, value_coerce_to_target):
1181 Declare.
1182
b21991b0
DJ
11832008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1184
1185 * top.c (quit_confirm): Warn that we will kill the program.
1186
49a834f9
PA
11872008-03-19 Pedro Alves <pedro@codesourcery.com>
1188
1189 * inflow.c (terminal_ours_1): Guard access to
1190 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
1191
ae0d2f24
UW
11922008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
1193 Jim Blandy <jimb@codesourcery.com>
1194 Daniel Jacobowitz <drow@false.org>
1195
1196 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
1197 (dwarf2_read_address): Update prototype.
1198
1199 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
1200 (signed_address_type): Likewise.
1201 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
1202 (execute_stack_op): Update calls to unsigned_address_type,
1203 signed_address_type and dwarf2_read_address. Fix implementation
1204 of DW_OP_deref_size.
1205
1206 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
1207 (dwarf2_per_cu_addr_size): Likewise.
1208 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
1209 (struct dwarf2_loclist_baton): Likewise.
1210
1211 * dwarf2loc.c (find_location_expression): Update calls to
1212 dwarf2_read_address. Use dwarf2_per_cu_objfile and
1213 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
1214 (locexpr_describe_location): Likewise.
1215 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
1216 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
1217 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
1218 to dwarf2_per_cu_addr_size (per_cu).
1219 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
1220 (loclist_read_variable): Likewise.
1221 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
1222
1223 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
1224 instead of baton->objfile.
1225 (dwarf2_per_cu_obfile): New function.
1226 (dwarf2_per_cu_addr_size): Likewise.
1227
1228 * dwarf2-frame.c (struct comp_unit): Move higher.
1229 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
1230 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
1231 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
1232 parameter by using fde->eh_frame_p. Use read_encoded_value
1233 to implement DW_CFA_set_loc.
1234 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
1235 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
1236 execute_stack_op and execute_cfa_program.
1237 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
1238 (size_of_encoded_value): Remove.
1239 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
1240 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
1241 (add_cie): Set cie->unit backlink.
1242 (decode_frame_entry_1): Set cie->addr_size. Update calls to
1243 read_encoded_value.
1244 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
1245
1c8201d1
MD
12462008-03-17 Markus Deuling <deuling@de.ibm.com>
1247
1248 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
1249 gdbarch_bfd_arch_info.
1250
46bba1ef
JB
12512008-03-17 Joel Brobecker <brobecker@adacore.com>
1252
1253 * aix-thread.c (pdc_read_regs): Minor reformatting.
1254
0bcd3e20
VP
12552008-03-17 Vladimir Prus <vladimir@codesourcery.com>
1256
1257 * thread.c (print_thread_info): Don't insist
1258 on having current thread if there are no
1259 threads at all.
1260
9356cf8d
PA
12612008-03-17 Pedro Alves <pedro@codesourcery.com>
1262
1263 * infcmd.c (attach_command_post_wait)
1264 (attach_command_continuation): New.
1265 (attach_command): Support background async execution, and async
1266 execution in synchronous mode.
1267
5c3ce3f7
DJ
12682008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
1269
1270 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
1271 * symmisc.c (dump_symtab_1): Likewise.
1272 * wrapper.c (gdb_value_struct_elt): Likewise.
1273
fa2c6a57
PA
12742008-03-17 Pedro Alves <pedro@codesourcery.com>
1275
1276 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
1277
02f3fc28
PA
12782008-03-17 Pedro Alves <pedro@codesourcery.com>
1279
1280 * linux-nat.c (linux_nat_filter_event): New, refactored from
1281 linux_nat_wait.
1282 (linux_nat_wait): Call linux_nat_filter_event.
1283
2f77b315
UW
12842008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
1285
1286 * top.c (execute_command): Fix uninitialized variable error.
1287
f01be29b
NH
12882008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
1289
1290 * Makefile.in (amd64nbsd-nat.o): New dependency.
1291 * amd64nbsd-nat.c: Include "nbsd-nat.h".
1292 (_initialize_amd64nbsd_nat): Update target vector to use
1293 nbsd_pid_to_exec_file.
1294 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
1295
6cf32704
VP
12962008-03-15 Vladimir Prus <vladimir@codesourcery.com>
1297
1298 Remove ignoring leading exec events code.
1299 * fork-child.c (startup_inferior): Do not set
1300 inferior_ignoring_leading_exec_events.
1301 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
1302 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
1303 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
1304 (handle_inferior_event): Remove code for ignoring leading exec
1305 events.
1306 * target.c (update_current_target): Do not inherit, or default,
1307 to_reported_exec_events_per_exec_call.
1308 (debug_to_reported_exec_events_per_exec_call): Remove.
1309 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
1310 * target.h (target_reported_exec_events_per_exec_call): Remove.
1311 (struct target): Remove the to_reported_exec_events_per_exec_call
1312 field.
1313
8e8901c5
VP
13142008-03-15 Vladimir Prus <vladimir@codesourcery.com>
1315
1316 Implement -thread-info.
1317 * gdbthread.h (print_thread_info): Declare.
1318
1319 * thread.c (print_thread_info): New, extracted
1320 from info_threads_command and adjusted to
1321 work for CLI and MI.
1322 (info_threads_command): Use print_thread_info.
1323 * Makefile.in: Update dependencies.
1324
1325 * mi/mi-cmds.c (mi_cmds): Specify a handler
1326 for -thread-info.
1327 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
1328 * mi/mi-main.c (mi_cmd_thread_info): New.
1329 (mi_cmd_list_features): Include 'thread-info'.
1330
7d1e6fb8
KB
13312008-03-14 Kevin Buettner <kevinb@redhat.com>
1332
1333 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
1334 to decide whether to match instruction patterns using "sw" and "sd".
1335
89113898
PA
13362008-03-14 Pedro Alves <pedro@codesourcery.com>
1337
1338 * infcmd.c (jump_command): Postpone disabling stdin until after
1339 the possible query.
1340
64a0ac84
PA
13412008-03-14 Pedro Alves <pedro@codesourcery.com>
1342
1343 * inflow.c (gdb_getpgrp): New.
1344 (gdb_has_a_terminal): Use get_getpgrp.
1345 (terminal_ours_1): If attach_flag is set, don't refetch
1346 inferior_process_group.
1347
1fddbabb
PA
13482008-03-14 Pedro Alves <pedro@codesourcery.com>
1349
1350 * features/library-list.dtd: Allow "section" elements as children
1351 of "library". Add "section" element and describe its attributes.
1352
1353 * solib-target.c (struct lm_info): Add section_bases member.
1354 (library_list_start_segment): Error out if seen a section element.
1355 (library_list_start_section): New.
1356 (library_list_end_library): New.
1357 (solib_target_free_library_list): Free section_bases.
1358 (section_attributes): New.
1359 (library_children): Make "segment" optional. Add "section" child.
1360 (library_list_children): Register library_list_end_library.
1361 (solib_target_relocate_section_addresses): Handle section bases.
1362
1363 * NEWS: Mention new qXfer:libraries:read section offsets support.
1364
712af3be
VP
13652008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1366
1367 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
1368 (make_exec_error_cleanup): Remove declarations.
1369 * utils.c (exec_error_cleanup_chain): Remove.
1370 (do_exec_error_cleanups, discard_exec_error_cleanups)
1371 (make_exec_error_cleanup): Remove.
1372 * event-loop.c (start_event_loop): Adjust call to
1373 async_enable_stdin.
1374 * event-top.c (async_enable_stdin): Remove the paramater dummy.
1375 (async_disable_stdin): Don't register async_enable_stdin via
1376 cleanup.
1377 * inf-loop.c (inferior_event_handler): Don't
1378 call do_exec_error_cleanups. Call async_enable_stdin instead.
1379 * event-loop.c (start_event_loop): Adjust call to
1380 async_enable_stdin.
1381 * tui/tui-interp.c (tui_command_loop): Adjust call to
1382 async_enable_stdin.
1383
32c1e744
VP
13842008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1385
1386 Async mode fixes.
1387 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
1388 * breakpoint.c (bpstat_do_actions): In async mode,
1389 don't jump to top expecting stop_bpstat to be already
1390 updated.
1391 * event-loop.c (start_event_loop): Call async_enable_stdin
1392 on exception.
1393 * event-top.c (async_enable_stdin): Do nothing if sync_execution
1394 is not set.
1395 (command_handler): Do not setup continuation here.
1396 (command_line_handler_continuation): Move to...
1397 * top.c (command_line_handler_continuation): ... here.
1398 (execute_command): In async mode, register continuation.
1399 Don't check frame's language in running in async mode.
1400 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
1401 * inf-loop.c (complete_execution): Inline into...
1402 (inferior_event_handler): ... here. Clear target_executing before
1403 doing any cleanups. Don't try to show prompt if the target was
1404 resumed.
1405 * infcmd.c (signal_command): Add support for async mode.
1406 (finish_command): Only add continuation if the target was
1407 successfully resumed.
1408 * remote.c (init_async_opts): Register to_get_thread_local_address
1409 handler.
1410 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
1411 with sync_execution.
1412 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
1413 on exception.
1414
c04ea773
DJ
14152008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1416
1417 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
1418 * exec.c (exec_bfd_mtime): Define.
1419 (exec_close): Clear it.
1420 (exec_file_attach): Set it.
1421 * gdbcore.h (exec_bfd_mtime): Declare.
1422 * source.c (find_source_lines): Do not use bfd_get_mtime.
1423
952dc227
VP
14242008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1425
1426 * top.c (simplified_command_loop): Remove.
1427
4cf46804
VP
14282008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1429
1430 Remove unused remote.c hooks.
1431 * remote.c (deprecated_target_resume_hook)
1432 (deprecated_target_wait_loop_hook): Remove.
1433 (remote_resume): Do not call deprecated_target_resume_hook.
1434 (remote_wait): Do not call deprecated_target_wait_loop_hook.
1435 (remote_async_wait): Likewise.
1436
683f2885
VP
14372008-03-14 Vladimir Prus <vladimir@codesourcery.com>
1438
1439 Implement MI notification for new threads.
1440 * doc/observer.texi (new_thread): Document.
1441 * observer.sh: Forward declare struct thread_info.
1442 * thread.c (add_thread): Notify observer.
1443
1444 * interps.h (interp_init_ftype): New parameter
1445 top_level.
1446 (interp_set): Likewise.
1447 (top_level_interpreter_data): Declare.
1448 * interps.c (interp_set): New parameter top_level.
1449 Pass it to interpreter's init function. Remember
1450 top level interpreter.
1451 (interpreter_exec_cmd): Adjust.
1452 (top_level_interpreter_data): New.
1453 * main.c (captured_main): Pass 1 for top_level
1454 parameter of interp_set.
1455 * cli/cli-interp.c (cli_interpreter_init): New
1456 parameter top_level.
1457 * tui/tui-interp.c (tui_init): New parameter top_level.
1458
1459 * mi/mi-interp.c (mi_new_thread): New.
1460 (mi_interpreter_init): If top level, register
1461 observer for new threads.
1462
1463 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
1464
ff9b3928
PA
14652008-03-14 Pedro Alves <pedro@codesourcery.com>
1466
1467 * top.c (execute_command): Disable break and stop
1468 commands in async mode.
1469
b18392ef
PA
14702008-03-14 Pedro Alves <pedro@codesourcery.com>
1471
1472 revert:
1473 2008-03-14 Pedro Alves <pedro@codesourcery.com>
1474 * inf-loop.c (inferior_event_handler): Don't include remote.h.
1475 Call target_stop in the INF_QUIT_REQ case.
1476 * Makefile.in (inf-loop.o): Update.
1477
0aca9f07
PA
14782008-03-14 Pedro Alves <pedro@codesourcery.com>
1479
1480 * inf-loop.c (inferior_event_handler): Don't include remote.h.
1481 Call target_stop in the INF_QUIT_REQ case.
1482 * Makefile.in (inf-loop.o): Update.
1483
0b4e556c
PA
14842008-03-14 Pedro Alves <pedro@codesourcery.com>
1485
1486 * top.c (execute_command): Enable break, info and interrupt
1487 commands in async mode.
1488
8defab1a
DJ
14892008-03-13 Vladimir Prus <vladimir@codesourcery.com>
1490 Daniel Jacobowitz <dan@codesourcery.com>
1491
1492 * breakpoint.h (breakpoint_restore_shadows): New
1493 declaration.
1494 * breakpoint.c (breakpoint_restore_shadows): New.
1495 (read_memory_nobpt): Delete.
1496 * gdbcore.h (read_memory_nobpt): Delete declaration.
1497 * target.c (memory_xfer_partial): Call
1498 breakpoint_restore_shadows.
1499 (restore_show_memory_breakpoints)
1500 (make_show_memory_beakpoints_cleanup): New.
1501 (show_memory_breakpoints): New.
1502 * target.h (make_show_memory_beakpoints_cleanup): Declare.
1503 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
1504 Make sure we see memory breakpoints when checking if
1505 breakpoint is still there.
1506 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
1507 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
1508 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
1509 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
1510
fd532e2e
PA
15112008-03-12 Pedro Alves <pedro@codesourcery.com>
1512
1513 * thread.c (add_thread): Use printf_unfiltered to print.
1514
f749779f 15152008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
1516
1517 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
1518 that is true only on x86-solaris and x86_64-solaris.
1519 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
1520 with proc_get_LDT_entry.
1521
15222008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
1523
1524 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
1525 * config.in, configure: Regenerate.
1526 * fork-child.c (fork_inferior): Call create_tty_session.
1527 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
1528 (create_tty_session): New function.
1529 * terminal.h: Declare create_tty_session.
1530
4fbb74a6
AM
15312008-03-12 Alan Modra <amodra@bigpond.net.au>
1532
1533 PR 5900
1534 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
1535 * mipsread.c: Include elf/internal.h.
1536 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
1537 to internal range.
1538
20a6ec49
MD
15392008-03-11 Markus Deuling <deuling@de.ibm.com>
1540
1541 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
1542 to get at the current architecture and at the target specific vector.
1543 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
1544 remove define of I387_ST0_REGNUM.
1545
1546 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
1547
1548 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
1549 get at the current architecture
1550 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
1551 parameter.
1552
1553 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
1554 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
1555
1556 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
1557 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
1558 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
1559
1560 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
1561 at the target specific vector.
1562
1563 (i386_get_longjmp_target): Use get_frame_arch to get at the current
1564 architecture. Use gdbarch_tdep to get at the target specific vector.
1565
1566 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
1567 update caller. Use gdbarch_tdep to get at the target specific vector.
1568
1569 (i386_register_to_value: Use get_frame_arch to get at the current
1570 architecture.
1571
1572 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
1573 parameter.
1574
1575 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
1576 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
1577 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
1578 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
1579
1580 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
1581 undef's.
1582
1583 (i387_convert_register_p, i387_register_to_value,
1584 i387_value_to_register): Update call for i386_fp_regnum_p.
1585
1586 * i387-tdep.h: Remove comment.
1587 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
1588 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
1589 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
1590 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
1591 I387_MXCSR_REGNUM): Add target specific vector as parameter.
1592
ccd213ac
DJ
15932008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
1594
1595 * Makefile.in (fork-child.o): Update.
1596 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
1597 argument. Gather all gdbserver features together.
1598 * fork-child.c (exec_wrapper): New variable.
1599 (fork_inferior): Use it.
1600 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
1601 (unset_exec_wrapper_command, _initialize_fork_child): New.
1602
16032008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
1604
1605 * source.c (directory_command): Modify the determination of
1606 condition of terminal "from_tty".
1607
22566fbd
DJ
16082008-03-10 Matt Rice <ratmice@gmail.com>
1609
1610 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
1611
9971ac47
UW
16122008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
1613
1614 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
1615 of the data passing to strtoulst function.
1616 (info_spu_signal_command): Likewise.
1617
835670cf
VP
16182008-03-08 Vladimir Prus <vladimir@codesourcery.com>
1619
1620 * mi/mi-interp.c (mi_command_loop): Remove
1621 commented-out code.
1622
be86555c
JB
16232008-03-07 Joel Brobecker <brobecker@adacore.com>
1624
1625 * remote.c (extended_remote_attach_1): Make local variable pid an int
1626 instead of a pid_t.
1627
4d7b2d5b
JB
16282008-03-07 Joel Brobecker <brobecker@adacore.com>
1629
1630 * solib-svr4.c (svr4_same_1): New function, originally extracted
1631 from svr4_same and expanded to handle the sparc64 case.
1632 (svr4_same): Move up and reimplement using svr4_same_1.
1633 (enable_break): Use svr4_same_1 to do shared library name comparisons.
1634
61fed90e
RR
16352008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
1636
1637 * MAINTAINERS: Move self to Paper trail.
1638
b803fb0f
DJ
16392008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
1640
1641 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
1642 * event-loop.c (call_async_signal_handler): New.
1643 * event-loop.h (call_async_signal_handler)
1644 (gdb_call_async_signal_handler): Declare.
1645 (mark_async_signal_handler): Add comments.
1646 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
1647 * mingw-hdep.c (sigint_event, sigint_handler): New.
1648 (gdb_select): Use them. Wait for the readline signal handler
1649 to finish.
1650 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
1651 * posix-hdep.c (gdb_call_async_signal_handler): New function.
1652 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
1653 New.
1654 (remote_fileio_ctrl_c_signal_handler): Use
1655 gdb_call_async_signal_handler.
1656 (initialize_remote_fileio): Initialize sigint_fileio_token.
1657 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
1658 not initialize tokens here.
1659 (handle_remote_sigint_twice): Likewise. Reinstall
1660 handle_remote_sigint.
1661 (async_remote_interrupt_twice): Just call interrupt_query.
1662 (cleanup_sigint_signal_handler): Do not delete tokens.
1663 (remote_interrupt, remote_interrupt_twice): Use
1664 gdb_call_async_signal_handler.
1665 (interrupt_query): Reinstall the default signal handler.
1666 (_initialize_remote): Initialize tokens here.
1667
8f4d54ed
JB
16682008-03-04 Joel Brobecker <brobecker@adacore.com>
1669
1670 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
1671 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
1672 Change the type of the lr register to code_ptr.
1673 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1674 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1675 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1676 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1677 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1678 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1679 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
1680
95ece428
JW
16812008-03-03 James E. Wilson <wilson@tuliptree.org>
1682
1683 * MAINTAINERS: Update my email address.
1684
686a5eed
KS
16852008-03-03 Keith Seitz <keiths@redhat.com>
1686
1687 From Dave Murphy <davem@devkitpro.org>:
1688 * configure.ac: Set tcl configdir to win under mingw.
1689 * configure: Regenerate.
1690
fa4727a6
DJ
16912008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1692
1693 * breakpoint.c (fetch_watchpoint_value): New function.
1694 (update_watchpoint): Set and clear val_valid. Use
1695 fetch_watchpoint_value. Handle unreadable values on the
1696 value chain. Correct check for user-requested array watchpoints.
1697 (breakpoint_init_inferior): Clear val_valid.
1698 (watchpoint_value_print): New function.
1699 (print_it_typical): Use it. Do not free or clear old_val. Print
1700 watchpoints even if old_val == NULL.
1701 (watchpoint_check): Use fetch_watchpoint_value. Check for values
1702 becoming readable or unreadable.
1703 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
1704 (do_enable_watchpoint): Likewise.
1705 * breakpoint.h (struct breakpoint): Update comment for val. Add
1706 val_valid.
1707 * NEWS: Mention watchpoints on inaccessible memory.
1708
c03374d5
DJ
17092007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
1710
1711 * Makefile.in (i386-nat.o): Update.
1712 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
1713 i386_use_watchpoints.
1714 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
1715 i386_use_watchpoints.
1716 * i386-nat.c (i386_stopped_data_address): Take two arguments.
1717 (i386_stopped_by_watchpoint): Update call.
1718 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
1719 * config/i386/nm-i386.h: Conditionalize definitions on
1720 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
1721 (i386_use_watchpoints): Declare.
1722 (i386_stopped_data_address): Update.
1723 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
1724 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
1725
c24d7425 17262008-02-29 Joel Brobecker <brobecker@adacore.com>
1727
1728 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
1729 * version.in: Bump version to 6.8.50.20080229-cvs.
1730
a7dfd010
MD
17312008-02-28 Markus Deuling <deuling@de.ibm.com>
1732
1733 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
1734 properly.
1735
258c00cc
TT
17362008-02-28 Tom Tromey <tromey@redhat.com>
1737
1738 * infcmd.c (notice_args_read): Print result of get_inferior_args.
1739
8edfe269
DJ
17402008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1741
1742 * infcmd.c (kill_if_already_running): Make static. Use
1743 target_require_runnable.
1744 * target.c (target_require_runnable): New.
1745 * target.h (target_require_runnable): Declare.
1746
0d6ba1b1
DJ
17472008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
1748
1749 * frame.c (reinit_frame_cache): Only annotate if frames were
1750 previously valid.
1751
6fe305f7
UW
17522008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1753
1754 * regformats/reg-ppc.dat: Rename "ps" to "msr".
1755 * regformats/reg-ppc64.dat: Likewise.
1756
9b4b61c8
UW
17572008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
1758
1759 * features/Makefile (%.dat): Emit xmltarget statement.
1760
1761 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
1762 Generate code to set gdbserver_xmltarget in init_registers_${name}.
1763
1764 * regformats/arm-with-iwmmxt.dat: Regenerate.
1765 * regformats/mips64-linux.dat: Regenerate.
1766 * regformats/mips-linux.dat: Regenerate.
1767 * regformats/rs6000/powerpc-32.dat: Regenerate.
1768 * regformats/rs6000/powerpc-64.dat: Regenerate.
1769 * regformats/rs6000/powerpc-e500.dat: Regenerate.
1770
1771 * regformats/reg-arm.dat: Add xmlarch statement.
1772 * regformats/reg-i386.dat: Likewise.
1773 * regformats/reg-i386-linux.dat: Likewise.
1774 * regformats/reg-x86-64-linux.dat: Likewise.
1775 * regformats/reg-spu.dat: Likewise.
1776
20b4711e
DJ
17772008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1778
1779 * remote.c (remote_wait, remote_async_wait): Stop if we receive
1780 an error.
1781
1843f87b
DJ
17822008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
1783
1784 * utils.c (debug_timestamp): New.
1785 (vfprintf_unfiltered): Print timestamps if requested.
1786 (show_debug_timestamp): New.
1787 (initialize_utils): Register "set debug timestamp".
1788 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
1789
6a048695
JB
17902008-02-27 Joel Brobecker <brobecker@adacore.com>
1791
1792 * breakpoint.c (skip_prologue_sal): New function.
1793 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
1794 computed from a line number.
1795
0b998f49
JB
17962008-02-27 Joel Brobecker <brobecker@adacore.com>
1797
1798 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
1799 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
1800 Set PC register type to "code_ptr".
1801 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
1802 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
1803 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
1804 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
1805 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
1806 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
1807 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
1808 Regenerate.
1809
d05b4ac3
UW
18102008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
1811
1812 * regformats/regdat.sh: Rename init_registers function in
1813 generated file to init_registers_${name}.
1814
1815 * regformats/reg-crisv32.dat: Set "name" to crisv32.
1816 * regformats/reg-ppc64.dat: Set "name" to ppc64.
1817 * regformats/reg-s390x.dat: Set "name" to s390x.
1818
a5d9d57d
DJ
18192008-02-26 Greg Law <glaw@undo-software.com>
1820
1821 * regcache.c (registers_changed): Call reinit_frame_cache.
1822
e25c958c
DJ
18232008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1824
1825 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
1826 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
1827 and svr4_fetch_objfile_link_map.
1828 * Makefile.in (sh-linux-tdep.o): Update.
1829
5daa78cc
TJB
18302008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1831
1832 * amd64-tdep.c (amd64_classify): Add support for decimal float
1833 types.
1834 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
1835 use the struct return convention.
1836
54e52265
VP
18372008-02-26 Nick Roberts <nickrob@snap.net.nz>
1838
1839 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
1840 to old format. Discard breakpoint address if shared library is
1841 unloaded.
1842 (breakpoint_1): Adjust formatting of table header accordingly.
1843
d8f2712d
VP
18442008-02-25 Vladimir Prus <vladimir@codesourcery.com>
1845
1846 * remote.c (remote_get_threadlist): If the response
1847 is empty, don't try to parse it.
1848
05ce04a4
VP
18492008-02-23 Vladimir Prus <vladimir@codesourcery.com>
1850
1851 Unbreak 'target async'.
1852 * serial.c (serial_async): Set the
1853 handler function before enabling async
1854 mode.
1855
b36ec657
DJ
18562008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
1857
1858 * solib-svr4.c (enable_break): Convert r_brk to a code address.
1859
df7df359
PA
18602008-02-21 Pedro Alves <pedro@codesourcery.com>
1861
1862 * remote.c (extended_remote_attach_1): Set attach_flag.
1863 (extended_remote_create_inferior_1): Clear attach_flag.
1864
7cd25cfc
DJ
18652008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
1866
1867 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
1868 r_brk_offset.
1869 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
1870 * solib-svr4.c (solib_svr4_r_brk): New.
1871 (open_symbol_file_object, svr4_current_sos): Always check the
1872 debug base.
1873 (svr4_fetch_objfile_link_map): Do not set debug_base.
1874 (enable_break): Use r_brk if it is set.
1875 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
1876 (svr4_lp64_fetch_link_map_offsets): Likewise.
1877 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
1878
07ea644b
MD
18792008-02-20 Markus Deuling <deuling@de.ibm.com>
1880 Mark Kettenis <kettenis@gnu.org>
1881
1882 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
1883 trad_frame_saved_reg.
1884 (trad-frame.h): New include.
1885
1886 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
1887 instead of frame_obstack_zalloc.
1888 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
1889
1890 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
1891
40887e1a
MD
18922008-02-20 Markus Deuling <deuling@de.ibm.com>
1893
1894 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
1895 from disassemble_info instead of gdbarch_byte_order.
1896
1897 * mips-tdep.c (gdb_print_insn_mips): Likewise.
1898 * arm-tdep.c (gdb_print_insn_arm): Likewise.
1899
ae4b2284
MD
19002008-02-20 Markus Deuling <deuling@de.ibm.com>
1901
1902 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
1903 gdbarch as parameter.
1904
1905 * gdbarch.{c,h}: Regenerate.
1906
1907 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
1908 parameter.
1909 * mem-break.c (default_memory_insert_breakpoint)
1910 (default_memory_remove_breakpoint): Likewise.
1911 * target.h (default_memory_remove_breakpoint)
1912 (default_memory_insert_breakpoint): Likewise.
1913
1914 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
1915 parameter. Replace current_gdbarch by gdbarch.
1916 * m32r-tdep.c (m32r_memory_insert_breakpoint)
1917 (m32r_memory_remove_breakpoint): Likewise.
1918
d9bf65d5
DJ
19192008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
1920
1921 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
1922
b93b6ca7
JB
19232008-02-19 Joel Brobecker <brobecker@adacore.com>
1924
1925 * NEWS: Add entry describing Add support improvements.
1926
4ed226fe
MD
19272008-02-18 Markus Deuling <deuling@de.ibm.com>
1928
1929 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
1930 M68K_FP0_REGNUM.
1931
caaa79ad
MD
19322008-02-18 Markus Deuling <deuling@de.ibm.com>
1933
1934 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
1935 register_offset_hack anymore.
1936
1937 * regcache.{c,h} (register_offset_hack): Remove.
1938
e38c262f
MD
19392008-02-18 Markus Deuling <deuling@de.ibm.com>
1940
1941 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
1942
1943 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
1944 current_gdbarch by gdbarch.
1945 (hppa64_hpux_find_global_pointer): Likewise.
1946 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
1947 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
1948 find_global_pointer.
1949
1950 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
1951 parameter.
1952 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
1953
1954 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
1955 of gdbarch_num_regs.
1956
1957 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
1958 replace current_gdbarch by gdbarch.
1959 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
1960
206988c4
MD
19612008-02-18 Markus Deuling <deuling@de.ibm.com>
1962
1963 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
1964 and replace current_gdbarch by gdbarch.
1965
1966 (store_register): Update call for exec_one_dummy_insn.
1967 (fetch_register, store_register): Update call of regmap.
1968
1969 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
1970 parameter and replace current_gdbarch by gdbarch.
1971
1972 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
1973 the current architecture. Update call for getregs_supplies and
1974 getfpregs_supplies.
1975 (ppcnbsd_fetch_inferior_registers): Likewise.
1976
1977 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
1978 replace current_gdbarch by gdbarch.
1979 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
1980 get_regcache_arch to get at the current architecture. Update call for
1981 getfpregs_supplies.
1982
f642be6b
MD
19832008-02-18 Markus Deuling <deuling@de.ibm.com>
1984
1985 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
1986 variables.
1987
b1f2bf01
MD
19882008-02-15 Markus Deuling <deuling@de.ibm.com>
1989
1990 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
1991
ee163bf5
VP
19922008-02-14 Vladimir Prus <vladimir@codesourcery.com>
1993
1994 * NEWS: Mention pending breakpints in MI.
1995
f6fbcbf9
MD
19962008-02-14 Markus Deuling <deuling@de.ibm.com>
1997
1998 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
1999
36af4ef6
MD
20002008-02-13 Markus Deuling <deuling@de.ibm.com>
2001
2002 Add script to build and test GDB using enable-targets=all.
2003
2004 * gdb_buildall.sh: New file.
2005
94a0e877
MG
20062008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
2007
2008 * NEWS (New native configurations): Xtensa GNU/Linux.
2009 (New targets): Xtensa GNU/Linux.
2010 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
2011 xtensa-linux-tdep.o
2012 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
2013 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
2014 * configure.tgt (xtensa*-*-linux*): New entry.
2015 * xtensa-config.c (xtensa_tdep): New variable.
2016 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
2017 (rmap): Change format based on new macro XTREG.
2018 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
2019 * xtensa-linux-nat.c: New.
2020 * xtensa-linux-tdep.c: New.
2021 * xtensa-xtregs.c: New.
2022 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
2023 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
2024 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
2025 (xtensa_register_t): New field coprocessor.
2026 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
2027 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
2028 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
2029 Update to handle privileged registers.
2030 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
2031 (xtensa_push_dummy_call): Set windowstart register correctly.
2032 (call0_analyze_prologue): Initialize xtensa_default_isa.
2033 (xtensa_derive_tdep): New.
2034 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
2035 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
2036 Call xtensa_derive_tdep().
2037 * config/xtensa/linux.mh: New.
2038 * regformats/reg-xtensa.dat: New.
2039
b7ee1b0a 20402008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
2041
2042 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
2043 (filenames.h): New include.
2044 * Makefile.in (corelow.o): Add dependency for filenames.h.
2045
8da2a1df
DJ
20462008-02-08 Doug Evans <dje@google.com>
2047
2048 * source.c (find_and_open_source): Always rewrite absolute filenames.
2049
776592bf
DE
20502008-02-07 Doug Evans <dje@google.com>
2051
2052 * breakpoint.c: #include "hashtab.h".
2053 (ambiguous_names_p): New fn.
2054 (update_breakpoint_locations): When restoring bp enable status, don't
2055 compare function names if any functions have same name.
2056 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
2057
d6565258
JB
20582008-02-07 Joel Brobecker <brobecker@adacore.com>
2059
2060 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
2061 instead of just a VEC*. Update use of SV.
2062 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
2063
6d53d0af
JB
20642007-02-07 Joel Brobecker <brobecker@adacore.com>
2065
2066 * NEWS: Put all new commands since gdb-6.7 together.
2067
2ba95b9b
JB
20682007-02-07 Joel Brobecker <brobecker@adacore.com>
2069
2070 * ada-lang.c: #include "vec.h".
2071 (struct string_vector, new_string_vector, string_vector_append):
2072 Delete.
2073 (char_ptr): New typedef.
2074 (DEF_VEC_P (char_ptr)): New VEC type.
2075 (symbol_completion_add): Update profile to take the new VEC type
2076 instead of the old string_vector structure. Update code accordingly.
2077 (ada_make_symbol_completion_list): Use the new VEC type instead of
2078 the old string_vector structure, and update the code accordingly.
2079 * Makefile.in (ada-lang.o): Add dependency on vec.h.
2080
4ae0885a
PM
20812008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2082
2083 * p-exp.y: Set current_type in missing places.
2084 (leftdiv_is_integer): New static variable.
2085 Typecast right operand of BINOP_DIV to long_double if both operands
2086 are integers.
2087
06b1d59c
MR
20882008-02-06 Maciej W. Rozycki <macro@mips.com>
2089
2090 * remote-mips.c (set_breakpoint): Rename to...
2091 (mips_set_breakpoint): ... this.
2092 (clear_breakpoint): Rename to...
2093 (mips_clear_breakpoint): ... this.
2094 (common_breakpoint): Rename to...
2095 (mips_common_breakpoint): ... this.
2096 (check_lsi_error): Rename to...
2097 (mips_check_lsi_error): ... this.
2098
41d27058
JB
20992007-02-05 Joel Brobecker <brobecker@adacore.com>
2100
2101 * language.h (struct language_defn): Add new field
2102 la_make_symbol_completion_list.
2103 * symtab.c (default_make_symbol_completion_list): Renames
2104 make_symbol_completion_list.
2105 (make_symbol_completion_list): New function.
2106 * symtab.h (default_make_symbol_completion_list): Add declaration.
2107 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
2108 (auto_language, local_language): Likewise.
2109 * objc-lang.c (objc_language_defn): Likewise.
2110 * scm-lang.c (scm_language_defn): Likewise.
2111 * m2-lang.c (m2_language_defn): Likewise.
2112 * f-lang.c (f_language_defn): Likewise.
2113 * jv-lang.c (java_language_defn): Likewise.
2114 * p-lang.c (pascal_language_defn): Likewise.
2115 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
2116 (minimal_language_defn): Likewise.
2117 * ada-lang.c (struct string_vector): New structure.
2118 (new_string_vector, string_vector_append, ada_unqualified_name)
2119 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
2120 (ada_make_symbol_completion_list): New functions.
2121 (ada_language_defn): Set la_make_symbol_completion_list.
2122 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
2123 this function is static.
2124
ee3a2f01
KB
21252008-02-05 Kevin Buettner <kevinb@redhat.com>
2126
2127 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
2128 to account for call site optimizations.
2129
d844e34b
JB
21302008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
2131
2132 * tracepoint.c (read_actions): Handle end-of-text indicator
2133 in action list properly. (Committed by Jim Blandy)
2134
02e4669d
JB
21352008-02-05 Jim Blandy <jimb@red-bean.com>
2136
2137 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
2138 pseudoregister, not an internal error.
85ecb32b 2139 Reported by: Andrzej Zaborowski
02e4669d 2140
c39c8256
VP
21412008-02-04 Vladimir Prus <vladimir@codesourcery.com>
2142
2143 * varobj.c (c_value_of_variable): Use xstrdup.
2144
ae7d22a6
VP
21452008-02-04 Vladimir Prus <vladimir@codesourcery.com>
2146
2147 Update stored rendition of varobj value when format changes.
2148 * varobj.c (varobj_set_display_format): Recomputed
2149 print_value.
2150 (c_value_of_variable): Return print_value.
2151
81fe8080
DE
21522008-02-03 Doug Evans <dje@google.com>
2153
301f0ecf
DE
2154 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
2155 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
2156 * valops.c (value_one): New function.
2157 * value.h (value_one): Declare.
2158
2159 Fix argument promotion for binary arithmetic ops for C.
2160 * valarith.c (unop_result_type): New fn.
2161 (binop_result_type): New fn.
2162 (value_binop): Move result type computation to binop_result_type.
2163 (value_pos, value_neg, value_complement): Move result type
2164 computation to unop_result_type.
2165
81fe8080
DE
2166 PR 2384
2167 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2168 Return basetype, fieldno if found. All callers updated.
2169 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
2170 objfile.
2171 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2172 * symfile.h (fill_in_vptr_fieldno): Delete.
2173
41808ebe
DE
21742008-02-02 Doug Evans <dje@google.com>
2175
f8597ac3
DE
2176 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
2177
41808ebe
DE
2178 * typeprint.c (*): Whitespace cleanup.
2179
f964a756
MK
21802008-02-02 Mark Kettenis <kettenis@gnu.org>
2181 Luis Machado <luisgpm@br.ibm.com>
2182 Thiago Jung Bauermann <bauerman@br.ibm.com>
2183
2184 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
2185 don't fit into registerson the stack the way GCC does.
2186
b06ead72
JB
21872008-02-01 Joel Brobecker <brobecker@adacore.com>
2188
2189 * symtab.c (symbol_set_names): Do not add an entry in the demangling
2190 hash table for Ada symbols. Just store the linkage name as is,
2191 and leave the demangled_name as NULL.
2192
2cfa0c8d
JB
21932007-02-01 Joel Brobecker <brobecker@adacore.com>
2194
2195 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
2196 in the global scope.
2197 (new_symbol): Likewise.
2198
98deb0da
VP
21992008-02-01 Vladimir Prus <vladimir@codesourcery.com>
2200
2201 * breakpoint.c (break_command_1): Return void.
2202 (break_command_really): Return void. Rethrow
2203 exceptions instead of returning.
2204 (gdb_breakpoint): Remove the error_message parameter.
2205 Return void. Rename to set_breakpoint.
2206 * gdb.h (gdb_breakpoint): Rename and move to...
2207 * breakpoint.h (set_breakpoint): ...here.
2208 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
2209 event hooks even if exception is thrown. Adjust to
2210 gdb_breakpoint interface changes.
2211
2212
ce0451ad
TJB
22132008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2214
2215 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
2216 float in both first and second word in the doubleword, to support
2217 old and new ABIs.
2218
723a2275
VP
22192008-02-01 Vladimir Prus <vladimir@codesourcery.com>
2220
2221 Properly rethrow exception. This fixes errors
2222 about non-existent functions for -break-insert.
2223 * breakpoint.c (break_command_really): Use throw_exception
2224 for rethrowing. If rethrowing, don't print the exception.
2225
d64a946d
TJB
22262008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2227
2228 * NEWS: Mention Decimal Floating Point support.
2229
02b156f5
JB
22302008-01-31 Joel Brobecker <brobecker@adacore.com>
2231
2232 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
2233 value type to builtin_type_void_func_ptr.
2234
a16b8bcd
UW
22352008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
2236
2237 * s390-tdep.c (is_float_singleton, is_float_like,
2238 alignment_of, s390_return_value): Make checks for
2239 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
2240
f949c649
TJB
22412008-01-31 Luis Machado <luisgpm@br.ibm.com>
2242 Thiago Jung Bauermann <bauerman@br.ibm.com>
2243
2244 * infcmd.c (default_print_registers_info): Also print hex
2245 raw contents for TYPE_CODE_DECFLOAT registers.
2246 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
2247 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
2248 (rs6000_register_name): Add support for DFP pseudo-registers.
2249 (rs6000_pseudo_register_type): Likewise.
2250 rs6000_pseudo_register_reggroup_p): Likewise.
2251 (ppc_pseudo_register_read): New function.
2252 (ppc_pseudo_register_write): Likewise.
2253 (rs6000_pseudo_register_read): Likewise.
2254 (rs6000_pseudo_register_write): Likewise.
2255 (e500_pseudo_register_read): Move checks to
2256 rs6000_pseudo_register_read.
2257 (e500_pseudo_register_write): Move checks to
2258 rs6000_pseudo_register_write.
2259 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
2260 rs6000_pseudo_register_read and rs6000_pseudo_register_write
2261 in gdbarch if SPE or DFP is available. Adjust gdbarch's
2262 num_pseudo_regs to account for DFP pseudo regs.
2263
5a9e69ba
TJB
22642008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2265
2266 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
2267 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
2268 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
2269 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
2270 e500_pseudo_register_read, e500_pseudo_register_write): Use
2271 IS_SPE_PSEUDOREG macro.
2272 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
2273 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
2274 Remove initialization of tdep->ppc_ev31_regnum.
2275
4e885b20
JB
22762008-01-08 Paul Hilfinger <hilfinger@adacore.com>
2277
2278 * printcmd.c (print_formatted): Handle references as for unformatted
2279 prints.
2280
80f064a2
JB
22812008-01-30 Joel Brobecker <brobecker@adacore.com>
2282
2283 * eval.c (evaluate_subexp_standard): Add handling of user
2284 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
2285
9b3442ee
PM
22862008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
2287
2288 * eval.c (evaluate_subexp_standard): Support
2289 BINOP_INTDIV opcode.
2290
d118ef87
PH
22912008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
2292
2293 * valarith.c (value_binop): Add floating-point BINOP_MIN and
2294 BINOP_MAX cases.
2295 For BINOP_EXP, use length and signedness of left operand only for
2296 result, as for shifts.
2297 For integral operands to BINOP_EXP, use new integer_pow and
2298 uinteger_pow functions so as to get full range of results.
2299 (integer_pow): New function.
2300 (uinteger_pow): New function.
2301
d56d46f5
VP
23022008-01-30 Vladimir Prus <vladimir@codesourcery.com>
2303
2304 Use vector for varobj_list_children interface.
2305 * gdb/varobj.c (varobj_list_children): Return vector
2306 of varobjs.
2307 * gdb/varobj.h (varobj_list_children): Adjust
2308 prototype.
2309 (varobj_p): Declare. Declare vector thereof.
2310 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
2311 for varobj_list_children change.
2312 * Makefile.in (varobj_h): Update dependencies.
2313
1300a2f4
TJB
23142008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
2315
2316 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
2317 TYPE_CODE_DECFLOAT arguments.
2318 (ppc64_sysv_abi_push_dummy_call) Likewise.
2319 (get_decimal_float_return_value): New function.
2320 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
2321 values by calling get_decimal_float_return_value.
2322 (ppc64_sysv_abi_return_value): Likewise.
2323
95ef687d
NR
23242008-01-30 Nick Roberts <nickrob@snap.net.nz>
2325
2326 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
2327 for preprocessor macro information. Formatting changes.
2328
2d717e4f
DJ
23292008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2330
2331 * remote.c (struct remote_state): Add cached_wait_status.
2332 (remote_exec_file): New variable.
2333 (PACKET_vAttach, PACKET_vRun): New constants.
2334 (extended_remote_restart): Do not query for status.
2335 (struct start_remote_args): New.
2336 (remote_start_remote): Take it as a second argument. Check
2337 whether the target is running. Issue an error for non-running
2338 non-extended targets. Cache the wait status. Set inferior_ptid
2339 here.
2340 (remote_open_1): Prompt to disconnect non-running targets. Make
2341 sure the target is marked running. Do not set inferior_ptid here.
2342 Update call to remote_start_remote. Do not call remote_check_symbols
2343 if the target is not running.
2344 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
2345 argument. Handle a non-running target.
2346 (remote_detach): Use it.
2347 (extended_remote_detach): New.
2348 (remote_disconnect): Fix typo. Use remoute_mourn_1.
2349 (extended_remote_attach_1, extended_remote_attach)
2350 (extended_async_remote_attach): New.
2351 (remote_vcont_resume): Remove unused variable.
2352 (remote_wait, remote_async_wait): Use any cached wait status.
2353 (putpkt_binary, getpkt): Clear any cached wait status.
2354 (extended_remoute_mourn_1): New.
2355 (extended_remote_mourn): Use it.
2356 (extended_async_remote_mourn, extended_remote_run): New.
2357 (extended_remote_create_inferior_1): New.
2358 (extended_remote_create_inferior): Use it.
2359 (extended_remote_async_create_inferior): Likewise.
2360 (remote_xfer_partial): Skip for non-executing targets.
2361 (init_extended_remote_ops): Set to_detach and to_attach.
2362 (init_extended_async_remote_ops): Likewise. Use
2363 extended_async_remote_mourn.
2364 (_initialize_remote): Register vAttach, vRun, and
2365 set remote exec-file.
2366 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
2367
e85a822c
DJ
23682008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2369
2370 * Makefile.in (symfile.o): Update.
2371 * NEWS: Mention exec tracing support.
2372 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
2373 exec events.
2374 * infcmd.c (kill_if_already_running, detach_command)
2375 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
2376 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
2377 (follow_exec): Do not check may_follow_exec. Do not mourn and push
2378 targets. Apply the sysroot path to the loaded executable. Use
2379 no_shared_libraries.
2380 * linux-nat.c (linux_child_follow_fork): Print fork following
2381 messages if verbose.
2382 (kill_wait_callback): Kill again before waiting a second time.
2383 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
2384 no_shared_libraries.
2385
9db13498
JB
23862008-01-29 Joel Brobecker <brobecker@adacore.com>
2387
2388 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
2389
b4d5ed91
JB
23902008-01-29 Joel Brobecker <brobecker@adacore.com>
2391
2392 * nto-tdep.h: Remove #include "defs.h".
2393 * nto-tdep.c: Add #include "defs.h".
2394 * Makefile.in (nto_tdep_h): Update dependencies.
2395 (nto-tdep.o): Likewise.
2396
107313f7 23972008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
2398
2399 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
2400 and use it.
2401 (proceed, start_remote): Update call to wait_for_inferior.
2402 * inferior.h (wait_for_inferior): Update declaration.
2403 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
2404 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
2405 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
2406 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
2407
3f4178d6
DJ
24082008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
2409
2410 * varobj (adjust_value_for_child_access): Added checking for
2411 returned value from gdb_value_ind.
2412 (c_describe_child): Likewise.
2413 (cplus_describe_child): Fixed a typo.
2414
5eeba8d4
JB
24152008-01-29 Jim Blandy <jimb@red-bean.com>
2416
2417 * MAINTAINERS: Update my info.
2418
a5606eee
VP
24192008-01-29 Vladimir Prus <vladimir@codesourcery.com>
2420
2421 Use multiple locations for hardware watchpoints.
2422 This eliminates the need to traverse value chain, doing
2423 various checks, in three different places.
2424
2425 * breakpoint.h (struct bp_location): New fields
2426 lengths and watchpoint_type.
2427 (struct breakpoint): Remove the val_chain field.
2428 * breakpoint.c (is_hardware_watchpoint): New.
2429 (free_valchain): Remove.
2430 (update_watchpoint): New.
2431 (insert_bp_location): For hardware watchpoint, just
2432 directly insert it.
2433 (insert_breakpoints): Call update_watchpoint_locations
2434 on all watchpoints. If we have failed to insert
2435 any location of a hardware watchpoint, remove all inserted
2436 locations.
2437 (remove_breakpoint): For hardware watchpoints, directly
2438 remove location.
2439 (watchpoints_triggered): Iterate over locations.
2440 (bpstat_stop_status): Use only first location of
2441 a resource watchpoint.
2442 (delete_breakpoint): Don't call free_valchain.
2443 (print_one_breakpoint): Don't print all
2444 locations for watchpoints.
2445 (breakpoint_re_set_one): Use update_watchpoint for
2446 watchpoints.
2447
0b3de036
VP
24482008-01-29 Vladimir Prus <vladimir@codesourcery.com>
2449
2450 Don't reset watchpoint block on solib load.
2451
2452 * breakpoint.c (insert_bp_location): For watchpoints,
2453 recompute condition.
2454 (breakpoint_re_set_one): Instead of recomputing value
2455 and condition for watchpoints, just reset value and
2456 let insert_breakpoints/insert_bp_location recompute it.
2457 Don't do anything about disabled watchpoint.
2458
c3940723
PM
24592008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
2460
2461 * valarith.c (value_binop): Handle unsigned integer
2462 division by zero.
2463
83845630
KB
24642008-01-28 Kevin Buettner <kevinb@redhat.com>
2465
2466 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
2467 instruction pattern that appears frequently in position
2468 independent code. Fix bug in code which looks for "fmov" and
2469 backtracks if no "fmov" is found.
2470
9ce5d3bb
DE
24712008-01-28 Doug Evans <dje@google.com>
2472
2473 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
2474 Reformat comments to 80 columns.
2475 Move local var def closer to only use.
9ce5d3bb 2476
c78d192c
DJ
24772008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
2478
2479 * fork-child.c (SHELL_FILE): Remove #ifndef.
2480 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
2481
e11481da
PM
24822008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
2483
2484 * i386-tdep.c (i386_skip_noop): New function.
2485 (i386_analyze_prologue): Call i386_skip_noop function.
2486
244e85c8
MS
24872008-01-24 Michael Snyder <msnyder@specifix.com>
2488
2489 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
2490 * win32-nat.c (win32_xfer_partial): Ditto.
2491 * target.c (default_xfer_partial): Minor whitespace adjustment.
2492
dd6be234
PA
24932008-01-24 Pedro Alves <pedro@codesourcery.com>
2494
2495 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
2496 strip bit 1 even if pc doesn't point to thumb code.
2497
9fa2223d
DJ
24982008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
2499
2500 * remote.c (remote_wait): Handle SIGINT between packets.
2501 (remote_async_wait): Likewise.
2502
93815fbf
VP
25032008-01-23 Vladimir Prus <vladimir@codesourcery.com>
2504 Chris Demetriou <cgd@google.com>
2505
2506 * thread.c (add_thread_silent): Renamed
2507 from add_thread.
2508 (print_thread_events): New variable definition.
2509 (show_print_thread_events): New function.
2510 (_initialize_thread): Add "set print thread-events" and
2511 "show print thread-events" commands.
2512 (add_thread): Announce new thread.
2513 * gdbthread.h (add_thread_silent): Declare.
2514 (print_thread_events): New variable declaration.
2515 * inf-ttrace.c (inf_ttrace_wait): Don't
2516 inform about new thread, as add_thread is always
2517 called too, and will take care of that.
2518 * infrun.c (handle_inferior_event): Likewise.
2519 * procfs.c (procfs_wait): Likewise.
2520 * remote.c (remote_currthread): Likewise.
2521 * sol-thread.c (sol_thread_wait): Likewise.
2522 * win32-nat.c (get_win32_debug_event): Likewise.
2523 * linux-thread-db.c (attach_thread): Likewise.
2524 Remove the verbose parameter.
2525 (check_event): Make detach_thread be verbose
2526 only if print_thread_events is set.
2527 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
2528 about new thread. This is called only from
2529 linux-thread-db.c:attach_thread, which will take care.
2530 Remove the verbose parameter.
2531 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
2532
b4d7c9a6
NR
25332008-01-23 Nick Roberts <nickrob@snap.net.nz>
2534
2535 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
2536
60c46647
VP
25372008-01-22 Vladimir Prus <vladimir@codesourcery.com>
2538
2539 * breakpoint.c (break_command_really): New parameter
2540 ignore_count.
2541 (break_command_1): Pass 0 as
2542 ignore_count to break_command_really.
2543 (gdb_breakpoint): Pass ignore_count to
2544 break_command_really.
2545
e84605cd
KB
25462008-01-21 Kevin Buettner <kevinb@redhat.com>
2547
2548 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
2549 sigcontext struct via pointer.
2550 (struct sigframe comment): Update to show new field `psc'.
2551
9d9cd7ac
VP
25522008-01-21 Vladimir Prus <vladimir@codesourcery.com>
2553
2554 * infrun.c (handle_inferior_event): If
2555 we failed to remove breakpoints, error,
2556 don't try to increment PC by hand.
2557
af5ca30d
NH
25582008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
2559
2560 Add NetBSD/hppa target and host support.
2561
2562 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
2563 (hppabsd_gregset): Move to ...
2564 (hppabsd_regset_from_core_section): Rename
2565 hppaobsd_regset_from_core_section and move to ...
2566 (hppabsd_find_global_pointer): Update comment.
2567 (hppabsd_init_abi): Make global. Do not register
2568 hppabsd_regset_from_core_section.
2569 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
2570 move to ...
2571 (_initialize_hppabsd_tdep): Move to ...
2572 * hppaobsd-tdep.c: ... here. New file.
2573 * hppnbsd-tdep.c: New file.
2574 * hppnbsd-nat.c: New file.
2575 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
2576 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
2577 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
2578 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
2579 * configure.host (hppa*-*-netbsd*): New entry.
2580 * configure.tgt (hppa*-*-netbsd*): New entry.
2581 (hppa*-*-openbsd*): Update.
2582 * NEWS (New native configuration): Mention NetBSD/hppa.
2583 (New targets): Mention NetBSD/hppa.
2584
32c9a795
MD
25852008-01-18 Markus Deuling <deuling@de.ibm.com>
2586
2587 * gdbarch.sh (function_list): Add new property bits_big_endian to
2588 gdbarch structure.
2589 * gdbarch.{c,h}: Regenerate.
2590
2591 * value.c (struct value): Replace BITS_BIG_ENDIAN by
2592 gdbarch_bits_big_endian (comment).
2593 (unpack_field_as_long, modify_field): Likewise.
2594 * value.h: Likewise (comment).
2595 * valops.c (value_slice): Likewise.
2596 * valarith.c (value_subscript, value_bit_index): Likewise.
2597 * gdbtypes.h (field): Likewise (comment).
2598 * eval.c (evaluate_subexp_standard): Likewise.
2599 * dwarf2read.c (dwarf2_add_field): Likewise.
2600 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
2601 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
2602
2603 * defs.h (BITS_BIG_ENDIAN): Remove.
2604
1e5e79d0
MD
26052008-01-18 Markus Deuling <deuling@de.ibm.com>
2606
2607 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
2608 function calls.
2609 * m2-exp.y (yylex): Likewise.
2610 * objc-exp.y (yylex): Likewise.
2611
2612 * defs.h (DEPRECATED_STREQN): Remove.
2613
fabda5a7
L
26142008-01-17 H.J. Lu <hjl.tools@gmail.com>
2615
2616 * MAINTAINERS: Update my email address.
2617
92726479
JB
26182008-01-17 Jim Blandy <jimb@codesourcery.com>
2619
2620 * README: Mention gdbserver/README.
2621
ef80d18e
PM
26222008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
2623
2624 * valarith.c (value_binop): Handle BINOP_INTDIV
2625 for unsigned and signed integers.
2626
1de90795
UW
26272008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
2628
2629 * s390-tdep.c (s390_gdbarch_init): Set default long double
2630 type to 128-bit IEEE quad.
2631
c70bd6f3
JB
26322008-01-17 Joel Brobecker <brobecker@adacore.com>
2633
2634 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
2635
ba759613
MK
26362008-01-16 Mark Kettenis <kettenis@gnu.org>
2637
77d49ac6
MK
2638 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
2639
ba759613
MK
2640 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
2641 * value.c: All callers changed.
2642
7ecb6532
MD
26432008-01-16 Markus Deuling <deuling@de.ibm.com>
2644
2645 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
2646 DEPRECATED_STREQ by its expression.
2647 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
2648 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
2649 (scan_xcoff_symtab): Likewise.
2650 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
2651 * f-lang.c (find_common_for_function): Likewise.
2652 * objc-exp.y (parse_number): Likewise.
2653
2654 * defs.h (DEPRECATED_STREQ): Remove.
2655
d15cf01c
MD
26562008-01-16 Markus Deuling <deuling@de.ibm.com>
2657
2658 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
2659 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
2660 get_frame_arch to get at the current_architecture. Update AM33_MODE
2661 call.
2662 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
2663 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
2664 architecture.
2665 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
2666
f8028488
MD
26672008-01-16 Markus Deuling <deuling@de.ibm.com>
2668
2669 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
2670 parameter.
2671 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
2672
2673 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
2674 current_gdbarch by gdbarch. Update caller.
2675
2676 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
2677 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
2678 the current architecture. Update calls of
2679 amd64_native_gregset_supplies_p.
2680 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
2681 (amd64bsd_store_inferior_registers): Likewise.
2682
e101270f
MD
26832008-01-16 Markus Deuling <deuling@de.ibm.com>
2684
2685 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
2686 Replace current_gdbarch by gdbarch. Update caller.
2687
063e58ba
MD
26882008-01-16 Markus Deuling <deuling@de.ibm.com>
2689
2690 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
2691 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
2692 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
2693 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
2694 (stabsect_build_psymtabs): Fix indentation.
2695
662fb31b
MS
26962008-01-15 Michael Snyder <msnyder@specifix.com>
2697
2698 * corelow.c (core_xfer_partial): Comment, cut/paste error.
2699
c1766e7d
PM
27002008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
2701
2702 * win32-nat.c (win32_create_inferior): Restore code calling
2703 CloseHandle on ProcessInformation structure.
2704
5ed10e6e
NH
27052008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
2706
2707 * configure.ac: Check for void * as 3 argument of ptrace.
2708 * configure: regenerate.
2709
be8626e0
MD
27102008-01-11 Markus Deuling <deuling@de.ibm.com>
2711
2712 * alpha-tdep.c (alpha_heuristic_proc_start)
2713 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
2714 current_gdbarch by gdbarch.
2715
2716 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
2717 current architecture by frame_info. Update alpha_heuristic_proc_start
2718 call.
2719
2720 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
2721 get_frame_arch to get at the current architecture by frame_info. Update
2722 alpha_sigtramp_register_address call.
2723
2724 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
2725 current_gdbarch by gdbarch. Update caller.
2726 (convert_to_extended, convert_from_extended): Add endianess parameter
2727 for comparison. Update caller.
2728 (arm_extract_return_value, arm_store_return_value): Use
2729 get_regcache_arch to get at the current architecture.
2730
2731 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
2732 current_gdbarch by gdbarch. Update caller.
2733 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
2734 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
2735
2736 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
2737 gdbarch as parameter. Update caller.
2738 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
2739 current_gdbarch by gdbarch. Update caller.
2740
2741 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
2742 update caller. Replace current_gdbarch by gdbarch.
2743
2744 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
2745 the current architecture. Replace current_gdbarch by gdbarch.
2746 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
2747 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
2748 expression. Add gdbarch as parameter and replace current_gdbarch with
2749 it. Update caller.
2750 (M6811_TDEP): Remove.
2751 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
2752 architecture.
2753 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
2754 current_gdbarch by gdbarch. Update caller.
2755
2756 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
2757 update caller.
2758 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
2759 by gdbarch.
2760
2761 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
2762 caller. Relace current_gdbarch by gdbarch.
2763 (altivec_register_p, spe_register_p): Likewise.
2764 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
2765 parameter.
2766 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
2767 altivec_register_p and spe_register_p.
2768
2769 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
2770 caller. Replace current_gdbarch by gdbarch.
2771 (score_analyze_prologue): use get_frame_arch to get at the current
2772 architecture.
2773
2774 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
2775 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
2776 current_gdbarch by gdbarch. Update caller.
2777 (sparc_frame_cache): Use get_frame_arch to get at the current
2778 architecture.
2779 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
2780 sparc_analyze_prologue.
2781
2782 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
2783 parameter.
2784
ed49a04f
MD
27852008-01-11 Markus Deuling <deuling@de.ibm.com>
2786
2787 * exec.c: #include "arch-utils.h"
2788 (print_section_info): Use gdbarch_from_bfd to get at the
2789 current architecture. Replace current_gdbarch. Fix indention. Replace
2790 deprecated_print_address_numeric by paddress.
2791 * Makefile.in (exec.o) Add dependency to arch-utils.h.
2792
2793 * valprint.c (val_print_string): Replace
2794 deprecated_print_address_numeric.
2795 * tracepoint.c (trace_mention, scope_info): Likewise.
2796 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
2797 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
2798 (maintenance_check_symtabs): Likewise.
2799 * symfile.c (list_overlays_command): Likewise.
2800 * stack.c (frame_info, print_block_frame_labels): Likewise.
2801 * printcmd.c (print_address, print_address_demangle)
2802 (address_info): Likewise.
2803 * corefile.c (memory_error): Likewise.
2804 * infcmd.c (jump_command): Likewise.
2805 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
2806 (mention, delete_breakpoint): Likewise.
2807 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
2808 * dwarf2read.c (dump_die): Likewise.
2809 * ada-valprint.c (ada_val_print_1): Likewise.
2810 * f-valprint.c (f_val_print): Likewise.
2811 * linux-fork.c (info_forks_command): Likewise.
2812 * m32r-com.c (m32r_load_section, m32r_load)
2813 (m32r_upload_command): Likewise.
2814
2815 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
2816
6093d2eb
MD
28172008-01-11 Markus Deuling <deuling@de.ibm.com>
2818
2819 * gdbarch.sh (skip_prologue): Add gdbarch
2820 as parameter.
2821 * gdbarch.{c,h}: Regenerate.
2822
2823 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
2824 * amd64-tdep.c (amd64_skip_prologue): Likewise.
2825 * avr-tdep.c (avr_skip_prologue): Likewise.
2826 * cris-tdep.c (cris_skip_prologue): Likewise.
2827 * frv-tdep.c (frv_skip_prologue): Likewise.
2828 * h8300-tdep.c (h8300_skip_prologue): Likewise.
2829 * hppa-tdep.c (hppa_skip_prologue): Likewise.
2830 * i386-tdep.c (i386_skip_prologue): Likewise.
2831 * ia64-tdep.c (ia64_skip_prologue): Likewise.
2832 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
2833 * m32r-tdep.c (m32r_skip_prologue): Likewise.
2834 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
2835 * m68k-tdep.c (m68k_skip_prologue): Likewise.
2836 * m88k-tdep.c (m88k_skip_prologue): Likewise.
2837 * mep-tdep.c (mep_skip_prologue): Likewise.
2838 * mips-tdep.c (mips_skip_prologue): Likewise.
2839 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
2840 * mt-tdep.c (mt_skip_prologue): Likewise.
2841 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
2842 * score-tdep.c (score_skip_prologue): Likewise.
2843 * sh64-tdep.c (sh64_skip_prologue): Likewise.
2844 * sh-tdep.c (sh_skip_prologue): Likewise.
2845 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
2846 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
2847 * spu-tdep.c (spu_skip_prologue): Likewise.
2848 * v850-tdep.c (v850_skip_prologue): Likewise.
2849 * vax-tdep.c (vax_skip_prologue): Likewise.
2850 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
2851 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
2852
2853 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
2854 current_gdbarch by gdbarch.
2855 * m32c-tdep.c (m32c_skip_prologue): Likewise.
2856 * s390-tdep.c (s390_skip_prologue): Likewise.
2857
72f5cf0e
DE
28582008-01-10 Doug Evans <dje@google.com>
2859
2860 * defs.h (struct continuation_arg): Fix typo in comment.
2861 * target.c (target_translate_tls_address): Fix comment spelling error.
2862
689e4e2d
TJB
28632008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
2864
2865 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
2866 (DOUBLEST_SCAN_FORMAT): Likewise.
2867 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
2868 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
2869 * c-exp.y (parse_number): Likewise.
2870 * jv-exp.y (parse_number): Likewise.
2871 * objc-exp.y (parse_number): Likewise.
2872 * p-exp.y (parse_number): Likewise.
2873
ab0d6e0d
JB
28742008-01-09 Joel Brobecker <brobecker@adacore.com>
2875
2876 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
2877 (check_typedef): Likewise.
2878
0aea4bf3
LM
28792008-01-09 Luis Machado <luisgpm@br.ibm.com>
2880
2881 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
2882 seen_double_big_d, treat the new H, D, and DD modifiers as length
2883 modifiers.
2884
137033e9
JB
28852008-01-08 Joel Brobecker <brobecker@adacore.com>
2886
2887 * dwarf2read.c (read_enumeration_type): Add comment.
2888
dda297ec
TJB
28892008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
2890
2891 * config.in: Regenerate.
2892
a93c0eb6
JB
28932008-01-08 Joel Brobecker <brobecker@adacore.com>
2894
2895 * ada-lang.c (ada_convert_actual): Renames convert_actual.
2896 Make non-static.
2897 (ada_convert_actuals): Delete.
2898 * ada-lang.h (ada_convert_actual): Add declaration.
2899 (ada_convert_actuals): Remove declaration.
2900 * infcall.c: #include "ada-lang.h".
2901 (value_arg_coerce): Add new parameter sp. Update function
2902 documetnation. Add handling of Ada function call parameters.
2903 * Makefile.in (infcall.o): Update dependencies.
2904
a84a8a0d
JB
29052008-01-08 Paul Hilfinger <hilfinger@adacore.com>
2906
2907 * ada-lang.c (ensure_lval): Fix value lval kind.
2908 (convert_actual): Add handling for arguments passed by reference.
2909
d7f98cce
DE
29102008-01-08 Doug Evans <dje@google.com>
2911
2912 * dbxread.c (read_dbx_symtab): Fix indentation.
2913
4ef30785
TJB
29142008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
2915
2916 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
2917 (valarith.o): Depend on dfp.h.
2918 (valops.o): Likewise.
2919 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
2920 (set_decnumber_context): New function.
2921 (decimal_check_errors): Likewise.
2922 (decimal_from_number): Likewise.
2923 (decimal_to_number): Likewise.
2924 (decimal_from_string): Use set_decnumber_context and
2925 decimal_check_errors.
2926 (decimal_from_integral): New function.
2927 (decimal_from_floating): Likewise.
2928 (decimal_to_double): Likewise.
2929 (promote_decimal): Likewise.
2930 (decimal_binop): Likewise.
2931 (decimal_is_zero): Likewise.
2932 (decimal_compare): Likewise.
2933 (decimal_convert): Likewise.
2934 * dfp.h (decimal_from_integral): New prototype.
2935 (decimal_from_floating): Likewise.
2936 (decimal_to_double): Likewise.
2937 (decimal_binop): Likewise.
2938 (decimal_is_zero): Likewise.
2939 (decimal_compare): Likewise.
2940 (decimal_convert): Likewise.
2941 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
2942 call to value_from_decfloat.
2943 * valarith.c: Include dfp.h.
2944 (value_args_as_decimal): New function.
2945 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
2946 (value_logical_not): Likewise.
2947 (value_equal): Likewise.
2948 (value_less): Likewise.
2949 (value_pos): Likewise.
2950 (value_neg): Formatting fix.
2951 * valops.c: Include dfp.h.
2952 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
2953 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
2954 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
2955 (value_from_decfloat): Remove expect_type argument.
2956 * value.h (value_from_decfloat): Update prototype.
2957
a7c02bc8
VP
29582008-01-07 Vladimir Prus <vladimir@codesourcery.com>
2959
2960 Ignore change in name of dynamic linker during
2961 execution on Solaris. This also unbreaks pending breakpoints.
2962
2963 * solist.h (struct target_so_ops): New field same.
2964 * solib-svr4.c (svr4_same): New.
2965 (_initialize_svr4_solib): Register svr4_same.
2966 * solib.c (update_solib_list): Use ops->same, if available.
2967
610dd7f9
CF
29682008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
2969
2970 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
2971 when using MS-DOS paths.
2972
7a404eba
PA
29732008-01-05 Pedro Alves <pedro@codesourcery.com>
2974
2975 * NEWS: Mention --pid and --core command line behaviour changes.
2976
a4d9b460
PA
29772008-01-05 Pedro Alves <pedro@codesourcery.com>
2978
2979 * main.c (captured_main): Remove 'count' varible and the
2980 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
2981 --pid options were issued simultaneously. If an explicit pid
2982 option was passed, don't fallback to core file. Detect extra
2983 arguments better in the presence of explicit pid or core
2984 arguments.
2985
0c281816
JB
29862008-01-05 Joel Brobecker <brobecker@adacore.com>
2987
2988 * ada-lang.c (ada_which_variant_applies): Correctly compute
2989 the value of the discriminant when the variant record is packed.
2990
babe1480
JB
29912008-01-04 Joel Brobecker <brobecker@adacore.com>
2992
2993 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
2994 that are used to differentiate homonyms.
2995
727e3d2e
JB
29962008-01-04 Jerome Guitton <guitton@adacore.com>
2997
2998 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
2999 when the type is an anonymous pointer type.
3000 (ada_check_typedef): Avoid a seg fault when the type is null.
3001 * ada-typeprint.c (print_array_type): Add support for pointer
3002 to packed arrays.
3003
bb28a9dc
JB
30042008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
3005
3006 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
3007
6799def4
JB
30082008-01-04 Joel Brobecker <brobecker@adacore.com>
3009
3010 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
3011 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
3012
d3353bbd
JB
30132008-01-04 Joel Brobecker <brobecker@adacore.com>
3014
3015 * ada-exp.y (chop_separator): New function.
3016 (write_selectors): Rewrite to re-use chop_separator.
3017 (ada_nget_field_index, get_symbol_field_type): New functions.
3018 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
3019 expressions.
3020
82cf6c60
TJB
30212008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3022
3023 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
3024 of SYMBOL_VALUE when working with function symbols.
3025
b3dbf008
JB
30262008-01-03 Joel Brobecker <brobecker@adacore.com>
3027
3028 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
3029 expressions. These expressions do not need to be rewriten.
3030
02eb380e
JB
30312008-01-03 Joel Brobecker <brobecker@adacore.com>
3032
3033 * dwarf2read.c (read_enumeration_type): Flag type as stub if
3034 the given die is a declaration.
3035
abb68b3e
JB
30362008-01-03 Joel Brobecker <brobecker@adacore.com>
3037
3038 * ada-lang.c (ada_array_bound_from_type): Make non-static.
3039 Handle properly the case when the index type is an enumerated type.
3040 Do not return the subtype of the bounds type, just return the
3041 bounds type directly - this is not needed and is more consistent
3042 with what we do for arrays when no XA parallel type exists.
3043
f192137b
JB
30442008-01-03 Joel Brobecker <brobecker@adacore.com>
3045
3046 * ada-lang.c (static_unwrap_type): Add forward declaration.
3047 (template_to_static_fixed_type): Fields of dynamic types sometimes
3048 also need to be unwrapped. Take this into account.
3049 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
3050 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
3051 * ada-typeprint.c (ada_print_type): Get the typename from
3052 the original type, not the base type.
3053
1ed6ede0
JB
30542008-01-03 Jerome Guitton <guitton@adacore.com>
3055
3056 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
3057 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
3058 Update calls to ada_to_fixed_type.
3059 (ada_template_to_fixed_record_type_1): Ditto, but without looking
3060 for the tag.
3061 (ada_to_fixed_type): Add check_tag parameter; do not look for
3062 tag if null. When looking for a tag, use a fixed record type.
3063 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
3064 * ada-valprint.c (printable_val_type, ada_value_print): Update
3065 calls to ada_to_fixed_type.
3066
542a88d0
LM
30672008-01-03 Luis Machado <luisgpm@br.ibm.com>
3068
3069 * doublest.c (convert_floatformat_to_doublest): Call
3070 floatformat_to_doublest instead of floatformat_to_double and use
3071 DOUBLEST variables.
3072 (convert_doublest_to_floatformat): Call floatformat_from_doublest
3073 instead of floatformat_from_double and use DOUBLEST variables.
3074
dc2bbab2
NH
30752008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
3076
3077 * MAINTAINERS (Write After Approval): Add self.
3078
8b60591b
JB
30792008-01-03 Joel Brobecker <brobecker@adacore.com>
3080
3081 * symfile.c (set_initial_language): Make non-static.
3082 * symfile.h (set_initial_language): Add declaration.
3083 * language.c: #include "symfile.h".
3084 (set_language): Call set_initial_language if the frame language
3085 could not be determined.
3086
ceef53c1
JB
30872008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
3088
3089 * eval.c (evaluate_subexp_for_address): Provide frame address to
3090 locate_var_value only if it will be needed.
3091
ef29ce1a
JK
30922008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3093
3094 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
3095
0a07e705
JB
30962008-01-02 Joel Brobecker <brobecker@adacore.com>
3097
3098 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
3099 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
3100 This is needed to make sure that any other treatment applied
3101 to the resulting value does not fail for spurious reason,
3102 such as trying to take the address of this value.
3103
f58b38bf
JB
31042008-01-02 Joel Brobecker <brobecker@adacore.com>
3105
3106 * ada-lang.c (ada_value_equal): Dereference reference types when
3107 comparing arrays.
3108
9b254dd1
DJ
31092008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
3110
3111 Updated copyright notices for most files.
3112
33605d39
CF
31132008-01-01 Christopher Faylor <me+gdb@cgf.cx>
3114
3115 * win32-nat.c (psapi_module_handle): Remove static.
3116 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
3117 return first module found if base_address is zero. Don't initialize
3118 psapi function pointers here. Convert to cygwin paths when
3119 appropriate.
3120 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
3121 executable name. Use get_module_name when that fails or when
3122 !__CYGWIN__.
3123 (_initialize_psapi): New function. Initialize psapi stuff before it is
3124 needed or issue a warning if it is not found. Move psapi_module_handle
3125 here.
3126
29480c32
JB
31272008-01-01 Joel Brobecker <brobecker@adacore.com>
3128
3129 * ada-lang.c (ada_remove_trailing_digits): New function.
3130 (ada_remove_po_subprogram_suffix): New function.
3131 (ada_decode): Improve. Move the description of the algorithm
3132 directly inside the code, instead of in the function global
3133 description.
3134
969a1360
JB
31352008-01-01 Joel Brobecker <brobecker@adacore.com>
3136
3137 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
3138 and always print the dereferenced value.
3139
b7789565
JB
31402008-01-01 Joel Brobecker <brobecker@adacore.com>
3141
3142 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
3143 of the case where the first argument is a reference.
3144 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
3145
73fb9985
JB
31462008-01-01 Joel Brobecker <brobecker@adacore.com>
3147
3148 Implement support for Ada interface types.
3149
3150 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
3151 (ada_is_ignored_field): Ignore fields that are a dispatch table
3152 of a tagged type.
3153
636265b6
JB
31542008-01-01 Joel Brobecker <brobecker@adacore.com>
3155
3156 * top.c (print_gdb_version): Update copyright year.
3157
9d200a2e 31582008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 3159
9d200a2e
JB
3160 * ChangeLog-2007: New ChangeLog rotation.
3161 * ChangeLog: Reset for 2008.
3162 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
3163 ChangeLog-2007.
b7589f7d 3164
9d200a2e 3165For older changes see ChangeLog-2007.
c906108c
SS
3166\f
3167Local Variables:
3168mode: change-log
3169left-margin: 8
3170fill-column: 74
3171version-control: never
57da7796 3172coding: utf-8
c906108c 3173End:
This page took 1.259927 seconds and 4 git commands to generate.