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