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