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