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