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