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