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