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