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