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