]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
Fix compilation warning on gcc-4.1.2.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
2
3 Fix compilation warning on gcc-4.1.2.
4 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
5 local variable`pc' to zero.
6
7 2010-04-20 Joel Brobecker <brobecker@adacore.com>
8
9 Implement thread support with core files on alpha-tru64.
10 * dec-thread.c (dec_thread_find_new_threads): New function,
11 extracted from resync_thread_list.
12 (resync_thread_list): Add OPS parameter. Replace extracted-out
13 code by call to dec_thread_find_new_threads.
14 (dec_thread_wait): Update call to resync_thread_list.
15 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
16
17 2010-04-20 Joel Brobecker <brobecker@adacore.com>
18
19 * ada-lang.c (value_pointer): New function.
20 (make_array_descriptor): Call value_pointer to convert addresses to
21 pointers.
22
23 2010-04-20 Joel Brobecker <brobecker@adacore.com>
24
25 * rs6000-aix-tdep.c: #include exceptions.h.
26 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
27 while reading the memory at ADDR, then ADDR cannot be a function
28 descriptor.
29
30 2010-04-20 Joel Brobecker <brobecker@adacore.com>
31
32 * ada-typeprint.c (ada_print_typedef): New function.
33 * ada-lang.h (ada_print_typedef): Add declaration.
34 * ada-lang.c (ada_language_defn): set la_print_typdef field
35 to ada_print_typedef.
36
37 2010-04-20 Joel Brobecker <brobecker@adacore.com>
38
39 * procfs.c (procfs_address_to_host_pointer): Only define when used.
40
41 2010-04-20 Joel Brobecker <brobecker@adacore.com>
42
43 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
44 (iterate_over_mappings): Adjust function profile. Add declaration.
45 (insert_dbx_link_bpt_in_region, info_mappings_callback):
46 Adjust accordingly.
47
48 2010-04-20 Joel Brobecker <brobecker@adacore.com>
49
50 * procfs.c (solib_mappings_callback): Move function up to avoid
51 a compiler warning.
52
53 2010-04-20 Joel Brobecker <brobecker@adacore.com>
54
55 * procfs.c (find_signalled_thread, find_stop_signal): Move
56 these functions down to define them only when used.
57
58 2010-04-20 Joel Brobecker <brobecker@adacore.com>
59
60 * valprint.c (common_val_print): Fix the value before extracting
61 its contents.
62 * ada-lang.c (ada_to_fixed_value): Make this function extern.
63 * ada-lang.h (ada_to_fixed_value): New function declaration.
64 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
65 to avoid code duplication and fix a bug in the handling of
66 fixed types contents.
67
68 2010-04-20 Tom Tromey <tromey@redhat.com>
69
70 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
71 (read_partial_die): Likewise.
72 (dwarf_attr_name): Likewise.
73
74 2010-04-20 Chris Moller <cmoller@redhat.com>
75
76 PR 10867
77
78 * cp-valprint.c (global): Adding new static array recursion
79 detection obstack.
80 (cp_print_value_fields, cp_print_static_field): Added new static
81 array recursion detection code.
82
83 2010-04-20 Mark Kettenis <kettenis@gnu.org>
84
85 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
86 general-purpose register set should be 68 instead of 144.
87 (i386_linux_sse_regset_sections): Likewise.
88 (i386_linux_avx_regset_sections): Likewise.
89
90 2010-04-20 Stan Shebs <stan@codesourcery.com>
91 Nathan Sidwell <nathan@codesourcery.com>
92
93 * dwarf2loc.c (struct axs_var_loc): New struct.
94 (dwarf2_tracepoint_var_loc): New function.
95 (dwarf2_tracepoint_var_access): New function.
96 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
97 with DW_OP_piece.
98 (locexpr_describe_location_piece): New function.
99 (locexpr_describe_location_1): New function.
100 (locexpr_describe_location): Call it, update signature.
101 (loclist_describe_location): Rewrite to loop over locations,
102 update signature.
103 * symtab.h (struct symbol_computed_ops): Add address to
104 describe_location arguments, return void.
105 * printcmd.c (address_info): Get context PC, pass to computed
106 location description.
107 * tracepoint.c (scope_info): Ditto.
108 * ax-gdb.c (trace_kludge): Export.
109
110 2010-04-20 Tom Tromey <tromey@redhat.com>
111
112 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
113 (struct dwarf2_cie) <segment_size>: New field.
114 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
115 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
116 DW_FORM_exprloc.
117 (read_attribute_value): Handle DW_FORM_flag_present,
118 DW_FORM_sec_offset, DW_FORM_exprloc.
119 (dump_die_shallow): Likewise.
120 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
121 (dwarf2_const_value): Handle DW_FORM_exprloc.
122 (attr_form_is_block): Likewise.
123 (struct line_header) <maximum_ops_per_instruction>: New field.
124 (dwarf_decode_line_header): Set new field.
125 (dwarf_decode_lines): Handle new field.
126
127 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
128
129 * f-exp.y: Add new production to recognize the `logical*8' type.
130 (LOGICAL_S8_KEYWORD): New token.
131 * f-lang.c (enum f_primitive_types)
132 <f_primitive_type_logical_s8>: New field.
133 (f_language_arch_info): Handling `logical*8' type.
134 (build_fortran_types): Building `logical*8' type.
135 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
136
137 2010-04-19 Doug Evans <dje@google.com>
138
139 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
140 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
141 (pipe_close): Ditto.
142
143 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
144
145 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
146
147 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
148
149 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
150 type to void function.
151
152 2010-04-19 Stan Shebs <stan@codesourcery.com>
153 Vladimir Prus <vladimir@codesourcery.com>
154
155 * tracepoint.c (tfind_1): Add missing newline, report exit from
156 tfind mode as such.
157 * target.c (update_current_target): Make default
158 to_trace_find return -1.
159
160 2010-04-19 Mike Frysinger <vapier@gentoo.org>
161
162 * objc-lang.c (find_methods): Move symname check up.
163
164 2010-04-19 Pedro Alves <pedro@codesourcery.com>
165
166 * ada-lang.c (print_recreate_exception)
167 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
168 not "catch unhandled".
169
170 2010-04-19 Pedro Alves <pedro@codesourcery.com>
171
172 PR breakpoints/8554.
173
174 Implement `save-breakpoints'.
175
176 * breakpoint.c (save_cmdlist): New.
177 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
178 to save_cmdlist.
179 (print_recreate_catch_fork): New.
180 (catch_fork_breakpoint_ops): Install it.
181 (print_recreate_catch_vfork): New.
182 (catch_vfork_breakpoint_ops): Install it.
183 (print_recreate_catch_syscall): New.
184 (catch_syscall_breakpoint_ops): Install it.
185 (print_recreate_catch_exec): New.
186 (catch_exec_breakpoint_ops): Install it.
187 (print_recreate_exception_catchpoint): New.
188 (gnu_v3_exception_catchpoint_ops): Install it.
189 (save_breakpoints): New, based on tracepoint_save_command, but
190 handle all breakpoint types.
191 (save_breakpoints_command): New.
192 (tracepoint_save_command): Rename to...
193 (save_tracepoints_command): ... this, and reimplement using
194 save_breakpoints.
195 (save_command): New.
196 (_initialize_breakpoints): Install the "save" command prefix.
197 Install the "save breakpoints" command. Make "save-tracepoints" a
198 deprecated alias for "save tracepoints".
199 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
200 * ada-lang.c (print_recreate_exception): New.
201 (print_recreate_catch_exception): New.
202 (catch_exception_breakpoint_ops): Install it.
203 (print_recreate_catch_exception_unhandled): New.
204 (catch_exception_unhandled_breakpoint_ops): Install it.
205 (print_recreate_catch_assert): New.
206 (catch_assert_breakpoint_ops): Install it.
207
208 * NEWS: Mention the new `save breakpoints' command. Mention the
209 new `save tracepoints' alias and that `save-tracepoints' is now
210 deprecated.
211
212 2010-04-18 Pedro Alves <pedro@codesourcery.com>
213
214 PR tui/9217
215
216 * tui/tui-out.c: Include cli-out.h.
217 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
218 (tui_begin, tui_end, tui_field_int, tui_field_skip)
219 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
220 (tui_message, tui_wrap_hint, tui_flush): Delete forward
221 declarations.
222 (struct ui_out_data): Rename to...
223 (struct tui_ui_out_data): ... this. Remove `stream' and
224 `suppress_output' fields, and inherit cli_ui_out_data.
225 (tui_out_data): New typedef.
226 (tui_ui_out_impl): Don't initialize fields staticaly.
227 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
228 (tui_begin, tui_end): Delete.
229 (tui_field_int): Adjust to delegate most work to the base type.
230 (tui_field_skip): Delete.
231 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
232 delegate most work to the base type.
233 (tui_spaces): Delete.
234 (tui_text): Adjust to delegate most work to the base type.
235 (tui_message): Delete.
236 (tui_wrap_hint): Delete.
237 (tui_flush): Delete.
238 (out_field_fmt): Delete.
239 (field_separator): Delete.
240 (tui_out_new): Adjust to initialize the base type.
241 (_initialize_tui_out): Initialize tui_ui_out_impl.
242 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
243 cli_ui_out_data.
244 (cli_out_data): Adjust.
245 (cli_ui_out_impl): Make extern.
246 (cli_table_header, cli_field_int, cli_field_skip): Use
247 uo_field_string instead of cli_field_string.
248 (cli_redirect): Adjust to use cli_out_data.
249 (cli_out_data_ctor): New.
250 (cli_out_new): Use it.
251 * cli-out.h (struct ui_file): Remove forward declaration.
252 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
253 (cli_ui_out_impl): Declare.
254 (cli_out_data_ctor): Declare.
255 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
256 (uo_field_string): No longer static.
257 (ui_out_data): Change return type to void pointer.
258 (ui_out_new): Change `data' parameter type to void pointer.
259 * ui-out.h (struct ui_out_data): Don't forward declare.
260 (ui_out_data): Change return type to void pointer.
261 (ui_out_new): Change `data' parameter type to void pointer.
262 (uo_field_string): Declare.
263
264 2010-04-17 Pedro Alves <pedro@codesourcery.com>
265
266 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
267 instead of always false.
268
269 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
270
271 PR corefiles/11511
272 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
273 orig_rax.
274
275 2010-04-17 Pedro Alves <pedro@codesourcery.com>
276
277 * breakpoint.c (watchpoints_triggered): Use
278 is_hardware_watchpoint.
279 (watchpoints_triggered): Ditto.
280 (bpstat_check_location): Use is_watchpoint and
281 is_hardware_watchpoint.
282 (bpstat_check_watchpoint): Use is_watchpoint and
283 is_hardware_watchpoint.
284 (bpstat_stop_status): Fix comment.
285 (user_settable_breakpoint): Use is_watchpoint.
286 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
287 (disable_watchpoints_before_interactive_call_start): Use
288 is_watchpoint.
289 (enable_watchpoints_after_interactive_call_stop): Use
290 is_watchpoint.
291 (clear_command): Use is_watchpoint.
292 (do_enable_breakpoint): Use is_watchpoint.
293
294 2010-04-16 Mike Frysinger <vapier@gentoo.org>
295
296 * solib-frv.c (enable_break1_done): Delete.
297 (enable_break2): Do not check enable_break1_done. Move the
298 enable_break2_done setting and call to
299 remove_solib_event_breakpoints() to the end. Return without
300 warning when the contents of _dl_debug_addr are 0.
301 (enable_break): Do not set enable_break1_done.
302 (frv_clear_solib): Likewise.
303
304 2010-04-16 Kevin Buettner <kevinb@redhat.com>
305
306 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
307 instead of an error if no PLT entry is found. Return a
308 potentially useful result.
309 (m32c_m16c_pointer_to_address): Add code to search for function
310 address when no .plt entry is found.
311
312 2010-04-16 Stan Shebs <stan@codesourcery.com>
313
314 * tracepoint.c (trace_variable_command): Run a cleanup.
315
316 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
317
318 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
319
320 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
321
322 Support for Windows OS Thread Information Block.
323 * NEWS: Document new feature.
324 * remote.c (PACKET_qGetTIBAddr): New enum element.
325 (remote_get_tib_address): New function.
326 (init_remote_ops): Set to_get_tib_address field
327 to remote_get_tib_address.
328 (_initialize_remote): Add add_packet_config_cmd
329 for PACKET_qGetTIBAddr.
330 * target.c (update_current_target): Set default value for
331 new to_get_tib_address field.
332 * target.h (target_ops): New field to_get_tib_address.
333 (target_get_tib_address): New macro.
334 * windows-nat.c (thread_info): Add thread_local_base field.
335 (windows_add_thread): Add tlb argument of type 'void *'.
336 (fake_create_process): Adapt windows_add_thread call.
337 (get_windows_debug_event): Idem.
338 (windows_get_tib_address): New function.
339 (init_windows_ops): Set to_get_tib_address field
340 to remote_get_tib_address.
341 (_initialize_windows_nat): Replace info_w32_cmdlist
342 initialization by a call to init_w32_command_list.
343 (info_w32_command, info_w32_cmdlist): Removed from here...
344 to windows-tdep.c file.
345 * windows-tdep.h (info_w32_cmdlist): Declare.
346 (init_w32_command_list): New external function
347 declaration.
348 * windows-tdep.c: Add several headers.
349 (info_w32_cmdlist): to here, made global.
350 (thread_information_32): New struct.
351 (thread_information_64): New struct.
352 (TIB_NAME): New char array.
353 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
354 (maint_display_all_tib): New static variable.
355 (windows_get_tlb_type): New function.
356 (tlb_value_read, tlb_value_write): New functions.
357 (tlb_value_funcs): New static struct.
358 (tlb_make_value): New function.
359 (display_one_tib): New function.
360 (display_tib): New function.
361 (show_maint_show_all_tib):New function.
362 (info_w32_command): Moved from windows-nat.c.
363 (init_w32_command_list): New function.
364 (_initialize_windows_tdep): New function.
365 New "maint set/show show-all-tib" command
366 New "$_tlb" internal variable.
367
368 2010-04-16 Joel Brobecker <brobecker@adacore.com>
369
370 * tui/tui-regs.c (tui_display_register): Add comment about
371 a couple of casts.
372 * tui/tui-stack.c (tui_show_locator_content): Ditto.
373
374 2010-04-15 Stan Shebs <stan@codesourcery.com>
375
376 * frame.c: Include tracepoint.h.
377 (get_current_frame): Allow a trace frame to be an alternate source
378 of stack frame data.
379 * tracepoint.c (tfind_1): Don't try to get current stack frame if
380 it won't succeed.
381
382 2010-04-15 Pedro Alves <pedro@codesourcery.com>
383
384 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
385 flags.
386 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
387
388 2010-04-15 Doug Evans <dje@google.com>
389
390 * NEWS: Add entry for python program space support.
391 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
392 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
393 (py-progspace.o): New rule.
394 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
395 function.
396 (find_pretty_printer_from_progspace): New function.
397 (find_pretty_printer_from_gdb): New function.
398 (find_pretty_printer): Rewrite.
399 * python/py-progspace.c: New file.
400 * python/python-internal.h (program_space): Add forward decl.
401 (pspace_to_pspace_object, pspy_get_printers): Declare.
402 (gdbpy_initialize_pspace): Declare.
403 * python/python.c: #include "progspace.h".
404 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
405 (_initialize_python): Call gdbpy_initialize_pspace.
406 (GdbMethods): Add current_progspace, progspaces.
407
408 Add -s option to source command.
409 * NEWS: Document new option.
410 * cli/cli-cmds.c (find_and_open_script): Add function comment.
411 Delete from_tty and cleanupp args. Split filep arg into file and
412 full_pathp. New arg search_path.
413 (source_script_from_stream): New function.
414 (source_script_with_search): New function.
415 (source_script): Rewrite.
416 (source_command): Parse "-s" option.
417 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
418 * python/python.c (source_python_script): Make file arg a const char *.
419 Don't call fclose, leave for caller.
420 * python/python.h (source_python_script): Update.
421
422 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
423 Pedro Alves <pedro@codesourcery.com>
424
425 Avoid rereading shared libraries that haven't changed.
426
427 * solib.c (free_so_symbols): New function, from ...
428 (free_so): ... here. Call it.
429 (solib_read_symbols): Don't warn here if symbols have already been
430 loaded.
431 (solib_add): Warn here instead, if a pattern was specified.
432 (reload_shared_libraries_1): New.
433 (reload_shared_libraries): Rewrite to not fetch the library list.
434
435 2010-04-14 Doug Evans <dje@google.com>
436
437 * source.c (openp): Strip DOS drive letter if present before
438 concatenating string to search path.
439
440 2010-04-14 Pedro Alves <pedro@codesourcery.com>
441
442 * objfiles.h (gdb_bfd_close_or_warn): Declare.
443 * objfiles.c (gdb_bfd_close_or_warn): New.
444 * corelow.c: Include objfiles.h
445 (core_close): Use gdb_bfd_close_or_warn.
446 * elfread.c (build_id_verify): Ditto.
447 * exec.c (exec_close, exec_close_1): Ditto.
448
449 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
450 Pedro Alves <pedro@codesourcery.com>
451
452 Group errors for many missing shared libraries.
453
454 * solist.h (struct so_list): Remove from_tty.
455 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
456 (solib_map_sections): Take so_list argument. Return 0 if we
457 failed to open a BFD. Add target sections here.
458 (symbol_add_stub): Delete.
459 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
460 not from_tty copied from the so_list. Don't warn a second time
461 for a missing library.
462 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
463 add to the section table here. Print out a single warning for all
464 missing libraries.
465 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
466 flags.
467
468 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
469
470 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
471 error/warning messages. Capitalize and use complete sentences.
472 (blpy_block_syms_iternext): Likewise.
473 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
474 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
475 (frame_info_to_frame_object, frapy_read_var)
476 (gdbpy_frame_stop_reason_string): Likewise.
477 * python/py-lazy-string.c (stpy_convert_to_value)
478 (gdbpy_create_lazy_string_object): Likewise.
479 * python/py-objfile.c (objfpy_set_printers): Likewise.
480 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
481 * python/python.c (parameter_to_python): Likewise.
482 * python/py-type.c (typy_range, typy_target): Likewise.
483 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
484 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
485
486
487 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
488
489 PR python/11381
490
491 * python/py-prettyprint.c (pretty_print_one_value): Test for
492 Py_None.
493 (print_string_repr): Test for Py_None. Set flags accordingly.
494 Return value depending on return type.
495 (print_children): Take a value indicating whether data was printed
496 before this function was called. Alter output accordingly.
497 (apply_val_pretty_printer): Capture return value from
498 print_string_repr and pass to print_children.
499
500 2010-04-13 Mark Kettenis <kettenis@gnu.org>
501
502 PR corefiles/11481
503 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
504 register note sections.
505 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
506 New variables.
507 (i386_linux_init_abi): Install list of supported register note
508 sections that matches the target description.
509
510 2010-04-13 Pedro Alves <pedro@codesourcery.com>
511
512 * remote.c (remote_get_noisy_reply): Don't error out on empty
513 replies.
514 (remote_start_remote): Update and merge tracepoints and trace
515 state variables as long as the target supports tracepoints.
516 (remote_trace_init): Fix prototype.
517 (remote_download_trace_state_variable): Validate reply.
518 (remote_trace_set_readonly_regions): Fix prototype.
519 (remote_trace_start): Fix prototype. Check for empty reply.
520 (remote_get_trace_status): Small cleanup.
521 (remote_trace_stop): Fix prototype. Check for empty reply.
522 (remote_trace_find): Check for empty reply.
523 (remote_save_trace_data): Validate reply.
524 (remote_set_disconnected_tracing): Check for empty reply, and
525 validate reply.
526 (remote_set_circular_trace_buffer): Ditto.
527
528 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
529
530 Suppress unused value warning during compilation.
531 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
532 calls to void.
533 * tui/tui-stack.c (tui_show_locator_content): Likewise.
534
535 2010-04-12 Stan Shebs <stan@codesourcery.com>
536
537 * tracepoint.c (tfile_xfer_partial): Check read result.
538
539 2010-04-12 Mike Frysinger <vapier@gentoo.org>
540
541 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
542 * remote-sim.c (gdbsim_files_info): Likewise.
543
544 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
545
546 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
547 * arm-linux-nat.c (arm_linux_vfp_register_count): New
548 variable.
549 (fetch_vfp_registers): New function to fetch VFP registers.
550 (store_vfp_registers): New function to store VFP registers.
551 (arm_linux_fetch_inferior_registers): Add support for VFP
552 registers.
553 (arm_linux_store_inferior_registers): Likewise.
554 (arm_linux_read_description): Likewise.
555 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
556 until we need it.
557
558 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
559
560 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
561 tdep.
562 (amd64_collect_xstateregset): Likewise.
563
564 2010-04-09 Stan Shebs <stan@codesourcery.com>
565
566 * tracepoint.c (trace_status_mi): Report frames created.
567
568 * tracepoint.c (trace_dump_command): Include default-collect
569 expressions.
570
571 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
572
573 * symtab.c (find_function_start_sal): Never return SAL pointing
574 before function start address, even if line info is missing.
575
576 2010-04-09 Pedro Alves <pedro@codesourcery.com>
577
578 * NEWS: Mention tracepoints support.
579
580 2010-04-09 Pedro Alves <pedro@codesourcery.com>
581
582 * tracepoint.c (trace_status_mi): Report disconnected tracing and
583 circular trace buffer statuses.
584
585 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
586
587 * config/djgpp/fnchange.lst: Fix typo in translations for
588 symbol-without-target_section.exp and symbol-without-target_section.c.
589
590 2010-04-09 Pedro Alves <pedro@codesourcery.com>
591
592 * breakpoint.c (condition_command): Pass condition expression to
593 set_breakpoint_condition stripped from breakpoint number.
594
595 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
596 Thiago Jung Bauermann <bauerman@br.ibm.com>
597 Tom Tromey <tromey@redhat.com>
598
599 * breakpoint.c (condition_command): Simplify. Move condition
600 setting code to ...
601 (set_breakpoint_condition): ... here. New function.
602 * breakpoint.h (set_breakpoint_condition): Declare.
603 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
604 (SUBDIR_PYTHON_SRCS): Likewise.
605 (py-breakpoint.o): New rule.
606 * python/py-breakpoint.c: New file.
607 * python/python-internal.h (gdbpy_breakpoints)
608 (gdbpy_initialize_breakpoints): Declare.
609 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
610
611 2010-04-09 Pedro Alves <pedro@codesourcery.com>
612
613 * regformats/regdat.sh: Include server.h. Don't include
614 regcache.h.
615
616 2010-04-08 Stan Shebs <stan@codesourcery.com>
617 Pedro Alves <pedro@codesourcery.com>
618
619 * tracepoint.h (struct trace_status): New fields disconnected_tracing
620 and circular_buffer.
621 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
622 * tracepoint.c (trace_status_command): Display target's status for
623 disconnected tracing and circular buffer.
624 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
625 query for non-disconnected-tracing case, remove the stop_tracing
626 call.
627 (tfile_open): Clear disconnected and circular buffer status.
628 (trace_save): Save disconnected and circular buffer status.
629 (parse_trace_status): Parse disconnected and circular buffer status,
630 also recognize disconnected as a stop reason.
631 * remote.c (remote_set_disconnected_tracing): Only set
632 QTDisconnected if the remote end supports disconnected tracing.
633 Warn otherwise, if trying to enable disconnected tracing.
634 * infcmd.c (detach_command): Update disconnect_tracing call.
635 * cli/cli-cmds.c (quit_command): Ditto.
636
637 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
638
639 * i387-tdep.c (i387_collect_xsave): Replace abort with
640 internal_error.
641
642 2010-04-08 Stan Shebs <stan@codesourcery.com>
643
644 * breakpoint.c (default_collect_info): New function.
645 (breakpoints_info): Call it.
646 (maintenance_info_breakpoints): Ditto.
647 (tracepoints_info): Ditto.
648
649 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
650
651 * i387-tdep.c (i387_collect_xsave): Re-indent.
652
653 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
654
655 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
656 if HAVE_PTRACE_GETFPXREGS is defined.
657 (i386_linux_read_description): Set have_ptrace_getfpxregs and
658 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
659
660 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
661 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
662 if .reg-xfp section doesn't exist.
663 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
664
665 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
666
667 * i386-tdep.c: Include "features/i386/i386-mmx.c".
668 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
669 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
670 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
671 (i386_gdbarch_init): Update comments.
672 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
673
674 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
675
676 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
677
678 * features/Makefile (i386/i386-mmx-expedite): New.
679 (i386/i386-mmx-linux-expedite): Likewise.
680 ($(outdir)/i386/i386-mmx.dat): Likewise.
681 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
682
683 * features/i386/i386-mmx-linux.c: New.
684 * features/i386/i386-mmx-linux.xml: Likewise.
685 * features/i386/i386-mmx.c: Likewise.
686 * features/i386/i386-mmx.xml: Likewise.
687 * regformats/i386/i386-mmx-linux.dat: Likewise.
688 * regformats/i386/i386-mmx.dat: Likewise.
689
690 * features/Makefile (WHICH): Add i386/i386-mmx and
691 i386/i386-mmx-linux.
692
693 2010-04-08 Doug Evans <dje@google.com>
694
695 * source.c (openp): Skip $cdir in PATH.
696
697 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
698
699 PR python/11417
700 * python/py-lazy-string.c (stpy_convert_to_value): Check for
701 a NULL address.
702 (gdbpy_create_lazy_string_object): Allow strings with a NULL
703 address and a zero length.
704
705 2010-04-08 Hui Zhu <teawater@gmail.com>
706
707 * i386-tdep.c (i386_process_record): Add support for insn
708 rdtsc.
709
710 2010-04-07 Doug Evans <dje@google.com>
711
712 * python/python.c (source_python_script): Use ensure_python_env
713 to prepare environment for script.
714
715 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
716
717 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
718 <sys/uio.h> and "i386-xstate.h".
719 (PTRACE_GETREGSET): New.
720 (PTRACE_SETREGSET): Likewise.
721 (have_ptrace_getregset): Likewise.
722 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
723 registers.
724 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
725 registers.
726 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
727 (amd64_linux_store_inferior_registers): Likewise.
728 (amd64_linux_read_description): Check and enable AVX target
729 descriptions.
730
731 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
732 and "features/i386/amd64-avx-linux.c".
733 (amd64_linux_regset_sections): New.
734 (amd64_linux_core_read_description): Check and enable AVX
735 target description.
736 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
737 set_gdbarch_core_regset_sections.
738 (_initialize_amd64_linux_tdep): Call
739 initialize_tdesc_amd64_avx_linux.
740
741 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
742 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
743 (tdesc_amd64_avx_linux): New.
744 (amd64_linux_update_xstateregset): Likewise.
745
746 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
747 (amd64_ymm_names): New.
748 (amd64_ymmh_names): Likewise.
749 (amd64_register_name): Likewise.
750 (amd64_supply_xstateregset): Likewise.
751 (amd64_collect_xstateregset): Likewise.
752 (amd64_supply_xsave): Likewise.
753 (amd64_collect_xsave): Likewise.
754 (AMD64_NUM_REGS): Removed.
755 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
756 %xmmN if AVX is available.
757 (amd64_pseudo_register_name): Support pseudo YMM registers.
758 (amd64_regset_from_core_section): Support .reg-xstate section.
759 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
760 and ymm0h_regnum. Call set_gdbarch_register_name.
761 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
762
763 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
764 AMD64_YMM15H_REGNUM.
765 (AMD64_NUM_REGS): New.
766 (amd64_supply_xsave): Likewise.
767 (amd64_collect_xsave): Likewise.
768 (amd64_register_name): Removed.
769 (amd64_register_type): Likewise.
770
771 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
772
773 * i387-tdep.c: Include "i386-xstate.h".
774 (XSAVE_XSTATE_BV_ADDR): New.
775 (xsave_avxh_offset): Likewise.
776 (XSAVE_AVXH_ADDR): Likewise.
777 (i387_supply_xsave): Likewise.
778 (i387_collect_xsave): Likewise.
779
780 * i387-tdep.h (I387_NUM_YMM_REGS): New.
781 (I387_YMM0H_REGNUM): Likewise.
782 (I387_YMMENDH_REGNUM): Likewise.
783 (i387_supply_xsave): Likewise.
784 (i387_collect_xsave): Likewise.
785
786 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
787
788 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
789 <sys/uio.h> and "i386-xstate.h".
790 (PTRACE_GETREGSET): New.
791 (PTRACE_SETREGSET): Likewise.
792 (fetch_xstateregs): Likewise.
793 (store_xstateregs): Likewise.
794 (GETXSTATEREGS_SUPPLIES): Likewise.
795 (regmap): Include 8 upper YMM registers.
796 (i386_linux_fetch_inferior_registers): Support XSAVE extended
797 state.
798 (i386_linux_store_inferior_registers): Likewise.
799 (i386_linux_read_description): Check and enable AVX target
800 descriptions.
801
802 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
803 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
804 (i386_linux_regset_sections): Add ".reg-xstate".
805 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
806 (i386_linux_core_read_xcr0): New.
807 (i386_linux_core_read_description): Check and enable AVX target
808 description.
809 (i386_linux_init_abi): Set xsave_xcr0_offset.
810 (_initialize_i386_linux_tdep): Call
811 initialize_tdesc_i386_avx_linux.
812
813 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
814 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
815 (i386_linux_core_read_xcr0): New.
816 (tdesc_i386_avx_linux): Likewise.
817 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
818
819 * i386-tdep.c: Include "i386-xstate.h" and
820 "features/i386/i386-avx.c".
821 (i386_ymm_names): New.
822 (i386_ymmh_names): Likewise.
823 (i386_ymmh_regnum_p): Likewise.
824 (i386_ymm_regnum_p): Likewise.
825 (i386_xmm_regnum_p): Likewise.
826 (i386_register_name): Likewise.
827 (i386_ymm_type): Likewise.
828 (i386_supply_xstateregset): Likewise.
829 (i386_collect_xstateregset): Likewise.
830 (i386_sse_regnum_p): Removed.
831 (i386_pseudo_register_name): Support pseudo YMM registers.
832 (i386_pseudo_register_type): Likewise.
833 (i386_pseudo_register_read): Likewise.
834 (i386_pseudo_register_write): Likewise.
835 (i386_dbx_reg_to_regnum): Return %ymmN register number for
836 %xmmN if AVX is available.
837 (i386_regset_from_core_section): Support .reg-xstate section.
838 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
839 (i386_process_record): Replace i386_sse_regnum_p with
840 i386_xmm_regnum_p.
841 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
842 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
843 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
844 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
845 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
846 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
847 Set ymm0_regnum.
848 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
849
850 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
851 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
852 i386_ymm_type.
853 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
854 (I386_AVX_NUM_REGS): New.
855 (i386_xmm_regnum_p): Likewise.
856 (i386_ymm_regnum_p): Likewise.
857 (i386_ymmh_regnum_p): Likewise.
858
859 * common/i386-xstate.h: New.
860
861 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
862
863 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
864
865 * features/Makefile (WHICH): Add i386/i386-avx,
866 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
867 (i386/i386-avx-expedite): New.
868 (i386/i386-avx-linux-expedite): Likewise.
869 (i386/x86-64-avx-expedite):Likewise.
870 (i386/x86-64-avx-linux-expedite): Likewise.
871 ($(outdir)/i386/i386-avx.dat): New dependency.
872 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
873 ($(outdir)/i386/x86-avx-64.dat): Likewise.
874 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
875
876 * features/i386/32bit-avx.xml: New.
877 * features/i386/64bit-avx.xml: Likewise.
878 * features/i386/i386-avx-linux.c: Likewise.
879 * features/i386/i386-avx-linux.xml: Likewise.
880 * features/i386/i386-avx.c: Likewise.
881 * features/i386/i386-avx.xml: Likewise.
882 * features/i386/x86-64-avx-linux.c: Likewise.
883 * features/i386/x86-64-avx-linux.xml: Likewise.
884 * features/i386/x86-64-avx.c: Likewise.
885 * features/i386/x86-64-avx.xml: Likewise.
886 * regformats/i386/i386-avx-linux.dat: Likewise.
887 * regformats/i386/i386-avx.dat: Likewise.
888 * regformats/i386/x86-64-avx-linux.dat: Likewise.
889 * regformats/i386/x86-64-avx.dat: Likewise.
890
891 2010-04-07 Doug Evans <dje@google.com>
892
893 * top.c (source_file_name): Make const char *.
894 * top.h (source_file_name): Update.
895 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
896 const char *.
897 (script_from_file): Change `file' arg to const char *.
898 * cli/cli-script.h (script_from_file): Update.
899
900 2010-04-06 Doug Evans <dje@google.com>
901
902 * cli/cli-cmds.c (source_command): Run cleanups.
903
904 2010-04-06 Stan Shebs <stan@codesourcery.com>
905
906 * defs.h (char_ptr): Move typedef here from...
907 * ada-lang.c (char_ptr): Remove.
908 * charset.c (char_ptr): Remove.
909 * tracepoint.h (struct uploaded_string): Remove.
910 (struct uploaded_tp): Use vectors for string arrays.
911 * tracepoint.c (trace_save): Use vectors of actions.
912 (parse_tracepoint_definition): Ditto.
913 (get_uploaded_tp): Clear vectors.
914 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
915 (next_cmd): Change to an int.
916 (read_next_cmd): Use vector of command strings.
917
918 2010-04-06 Doug Evans <dje@google.com>
919
920 * top.h (source_script, cd_command): Delete.
921 * main.c: #include "cli/cli-cmds.h"
922
923 2010-04-06 Kevin Buettner <kevinb@redhat.com>
924
925 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
926 type in bytes, not bits.
927
928 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
929
930 * stabsread.c (define_symbol): Add support for char
931 and string constants.
932
933 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
934
935 Remove remaining "%ll" uses.
936 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
937 hex_string call.
938 * rs6000-nat.c (rs6000_ptrace64): Idem.
939 * solib-pa64.c (pa64_current_sos): Idem.
940 * solib-spu.c (spu_current_sos): Idem.
941 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
942 plongest call.
943 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
944 phex (VAR, 8) call.
945 * sh64-tdep.c (sh64_show_media_regs): Idem.
946
947 2010-04-05 Stan Shebs <stan@codesourcery.com>
948
949 * tracepoint.c: Include gdbcore.h.
950 (tfile_xfer_partial): Return partial results, also try reading
951 from executable.
952 (tfile_has_all_memory): New function.
953 (init_tfile_ops): Use it.
954
955 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
956
957 PR gdb/10736:
958 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
959 the changes in data-directory.
960 (init_sysinfo): Reload the syscall XML file if the data-directory
961 has changed.
962
963 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
964
965 Code cleanup.
966 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
967
968 2010-04-04 Stan Shebs <stan@codesourcery.com>
969 Nathan Sidwell <nathan@codesourcery.com>
970
971 * breakpoint.c (breakpoint_1): Add filter argument, return number of
972 breakpoints printed.
973 (is_hardware_watchpoint): Make argument const.
974 (is_watchpoint): Ditto.
975 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
976 use it everywhere.
977 (breakpoints_info): Pass NULL to breakpoint_1.
978 (maintenance_info_breakpoints): Ditto.
979 (watchpoints_info): New function.
980 (tracepoints_info): Use breakpoint_1 filter.
981 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
982 (_initialize_breakpoint): Make "info watchpoints" its own command.
983 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
984 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
985
986 2010-04-04 Stan Shebs <stan@codesourcery.com>
987
988 * tracepoint.c (tfile_fetch_registers): Add fallback case.
989
990 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
991
992 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
993 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
994
995 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
996
997 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
998 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
999
1000 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1001
1002 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
1003 code form.
1004
1005 2010-04-02 Hui Zhu <teawater@gmail.com>
1006
1007 * i386-tdep.c (OT_DQUAD): New enum.
1008 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
1009 SSE3, SSSE3 and SSE4.
1010
1011 2010-04-02 Hui Zhu <teawater@gmail.com>
1012
1013 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
1014 "*addr = 0".
1015
1016 2010-04-02 Pedro Alves <pedro@codesourcery.com>
1017
1018 * tracepoint.c (trace_dump_actions): New, factored out from
1019 trace_dump_command, and adjusted to recurse into while-stepping's
1020 action list.
1021 (trace_dump_command): Use it.
1022
1023 2010-04-02 Pedro Alves <pedro@codesourcery.com>
1024
1025 * breakpoint.h (struct counted_command_line): Moved definition to
1026 breakpoint.c, and forward declare.
1027 (breakpoint_commands): Declare.
1028 * breakpoint.c (struct counted_command_line): Moved here.
1029 (breakpoint_commands): New.
1030 * tracepoint.c (encode_actions): Use breakpoint_commands.
1031 * remote.c (remote_download_tracepoint): Ditto.
1032
1033 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
1034
1035 * remote.c (remote_parse_stop_reply): Use hex_string instead
1036 of phex_nz for error.
1037
1038 2010-04-01 Stan Shebs <stan@codesourcery.com>
1039 Nathan Sidwell <nathan@codesourcery.com>
1040
1041 * tracepoint.h (enum actionline_type): Remove.
1042 (validate_actionline): Change return to void.
1043 * tracepoint.c (report_agent_reqs_errors): New function.
1044 (validate_actionline): Call it, change return to void, report errors
1045 more consistently.
1046 (collect_symbol): Call report_agent_reqs_errors.
1047 (encode_actions_1): Ditto.
1048 (encode_actions): Don't expect a result from validate_actionline.
1049
1050 2010-04-01 Stan Shebs <stan@codesourcery.com>
1051
1052 * tracepoint.c (trace_start_command): Confirm if trace is running.
1053 (trace_stop_command): Error if trace not running.
1054
1055 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
1056
1057 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
1058 (AMD64_NUM_LOWER_BYTE_REGS): New.
1059 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
1060 (amd64_pseudo_register_write): Likewise.
1061 (amd64_init_abi): Set num_byte_regs to 20.
1062
1063 2010-04-01 Pedro Alves <pedro@codesourcery.com>
1064
1065 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
1066 (prev_breakpoint_count): New.
1067 (set_breakpoint_count): Adjust.
1068 (rbreak_start_breakpoint_count): New.
1069 (start_rbreak_breakpoints): Adjust.
1070 (end_rbreak_breakpoints): Adjust.
1071 (struct commands_info) <arg>: New field.
1072 (do_map_commands_command): Tweak output to include breakpoint spec
1073 range.
1074 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
1075 ARG was empty on entry. Set INFO's arg.
1076 (create_breakpoint): Adjust.
1077
1078 * NEWS: Clarify `commands' changes.
1079
1080 2010-04-01 Pedro Alves <pedro@codesourcery.com>
1081
1082 * tracepoint.c: Include stack.h.
1083 (struct add_local_symbols_data): New.
1084 (do_collect_symbol): New.
1085 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
1086 iterate_over_block_local_vars.
1087 * stack.c (print_block_frame_locals): Rewrite as ...
1088 (iterate_over_block_locals): ... this. Take a callback function
1089 pointer and generic data pointer, and call that instead of
1090 print_variable_and_value.
1091 (struct print_variable_and_value_data): New.
1092 (do_print_variable_and_value): New.
1093 (iterate_over_block_local_vars): New, abstracted out from
1094 print_frame_local_vars.
1095 (print_frame_local_vars): Rewrite using
1096 iterate_over_block_local_vars.
1097 (iterate_over_block_arg_vars): New, abstracted out from
1098 print_frame_arg_vars.
1099 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
1100 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
1101 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
1102
1103 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
1104
1105 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
1106 instructions. Use the PC+4 if the base of the TBB or TBH is the
1107 PC register.
1108
1109 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1110
1111 Fix crash on reading wrong function declaration DWARF.
1112 * dwarf2read.c (read_subroutine_type): New variable void_type.
1113 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
1114 more close to their use.
1115
1116 2010-03-31 Stan Shebs <stan@codesourcery.com>
1117
1118 * breakpoint.c (tracepoint_save_command): Include variables,
1119 conditionals, tracepoint types, and default-collect.
1120 * tracepoint.c (save_trace_state_variables): New function.
1121 * tracepoint.h (save_trace_state_variables): Declare it.
1122
1123 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
1124
1125 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
1126
1127 2010-03-30 Keith Seitz <keiths@redhat.com>
1128
1129 * c-typeprint.c (c_type_print_args): Don't print "void"
1130 for java, regardless of whether it is TYPE_PROTOTYPED.
1131 Use the passed-in language instead of current_language.
1132 (c_type_print_varspec_suffix): Use current_language instead
1133 of assuming language_c.
1134 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
1135 any return type specifier from the physname.
1136
1137 2010-03-30 Pedro Alves <pedro@codesourcery.com>
1138
1139 * tui/tui-interp.c (tui_is_toplevel): New.
1140 (tui_init): Set it.
1141 (tui_allowed_p): New.
1142 * tui/tui.c (tui_enable): Check if the TUI is allowed before
1143 enabling it.
1144 * tui/tui.h (tui_allowed_p): Declare.
1145
1146 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
1147
1148 * serial.h: Include winsock2.h before windows.h.
1149
1150 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
1151
1152 * NEWS: Mention xmlRegisters= in qSupported packet.
1153
1154 * i386-tdep.c: Include "remote.h".
1155 (_initialize_i386_tdep): Call register_remote_support_xml.
1156
1157 * remote.c (remote_support_xml): New.
1158 (register_remote_support_xml): Likewise.
1159 (remote_query_supported_append): Likewise.
1160 (remote_query_supported): Support remote_support_xml.
1161
1162 * remote.h (register_remote_support_xml): New.
1163
1164 2010-03-29 Stan Shebs <stan@codesourcery.com>
1165
1166 * tracepoint.c (trace_find_line_command): Remove dead code.
1167
1168 * tracepoint.h (struct uploaded_string): New struct.
1169 (struct uploaded_tp): New fields for source strings.
1170 * breakpoint.c (this_utp, next_cmd): New globals.
1171 (read_uploaded_action): New function.
1172 (create_tracepoint_from_upload): Fill in more parts
1173 of a tracepoint.
1174 * tracepoint.c (encode_source_string): New function.
1175 (trace_save): Write out source strings, fix error checks.
1176 (parse_tracepoint_definition): Add source string parsing.
1177 * remote.c (PACKET_TracepointSource): New packet type.
1178 (remote_download_command_source): New function.
1179 (remote_download_tracepoint): Download source pieces also.
1180 (_initialize_remote): Add packet config command.
1181
1182 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
1183 expression handler.
1184
1185 * tracepoint.c (start_tracing): Check tracepoints before sending
1186 commands to target, don't start if all tracepoints disabled.
1187
1188 2010-03-28 Pedro Alves <pedro@codesourcery.com>
1189
1190 * cli/cli-script.c (process_next_line): Handle 'stepping'.
1191
1192 2010-03-26 Stan Shebs <stan@codesourcery.com>
1193
1194 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
1195
1196 2010-03-26 Tom Tromey <tromey@redhat.com>
1197
1198 * breakpoint.c (commands_command_1): Duplicate 'arg'.
1199
1200 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1201
1202 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
1203 (skip_prologue_sal): Remove local definition.
1204 (resolve_sal_pc): Remove now unnecessary code.
1205 * linespec.c (minsym_found): Call skip_prologue_sal.
1206 * symtab.c (find_function_start_pc): Remove.
1207 (find_function_start_sal): Extract prologue skipping into ...
1208 (skip_prologue_sal): ... this new function. Handle code both
1209 with and without debug info. Respect SAL's explicit_pc and
1210 explicit_line flags. Inline old find_function_start_pc.
1211 * symtab.h (find_function_start_pc): Remove.
1212 (skip_prologue_sal): Add prototype.
1213
1214 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1215
1216 * dwarf2read.c (read_func_scope): Also scan specification DIEs
1217 for DW_TAG_imported_module children.
1218
1219 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1220
1221 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
1222 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
1223 * completer.c (add_struct_fields): Fix inverted logic.
1224
1225 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1226
1227 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
1228
1229 2010-03-26 Pedro Alves <pedro@codesourcery.com>
1230
1231 * tracepoint.c (current_trace_status): Don't make sure error_desc
1232 is non-NULL here.
1233 (parse_trace_status): Release a previous error_desc string, and
1234 set it to NULL by default. If stop reason is tracepoint_error,
1235 make sure error_desc is not left NULL.
1236
1237 2010-03-26 Pedro Alves <pedro@codesourcery.com>
1238
1239 * tracepoint.c (trace_save): Remove X from tracepoint error
1240 description.
1241
1242 2010-03-26 Pedro Alves <pedro@codesourcery.com>
1243
1244 * tracepoint.c (parse_trace_status): Don't allow plain strings in
1245 the terror description. Don't expect an X prefix.
1246
1247 2010-03-25 Stan Shebs <stan@codesourcery.com>
1248
1249 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
1250 (struct trace_status): New field error_desc.
1251 * tracepoint.c (stop_reason_names): Add terror.
1252 (current_trace_status): Ensure non-NULL error description.
1253 (trace_status_command): Add error report.
1254 (trace_status_mi): Ditto.
1255 (trace_save): Add special case for error description.
1256 (parse_trace_status): Add case for errors.
1257
1258 2010-03-25 Keith Seitz <keiths@redhat.com>
1259
1260 * dwarf2read.c (read_subroutine_type): If the compilation unit
1261 language is Java, mark any formal parameter named "this" as
1262 artificial (GCC/43521).
1263 (dwarf2_name): Add special handling for Java constructors.
1264
1265 2010-03-25 Tom Tromey <tromey@redhat.com>
1266
1267 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
1268 * infrun.c (handle_inferior_event): Change initialization of
1269 stop_stack_dummy.
1270 (handle_inferior_event): Change assignment to stop_stack_dummy.
1271 (normal_stop): Update use of stop_stack_dummy.
1272 (struct inferior_status) <stop_stack_dummy>: Change type.
1273 * inferior.h (stop_stack_dummy): Update.
1274 * infcmd.c (stop_stack_dummy): Change type.
1275 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
1276 function.
1277 (call_function_by_hand): Call set_std_terminate_breakpoint.
1278 Rewrite std::terminate handling.
1279 * breakpoint.h (enum bptype) <bp_std_terminate,
1280 bp_std_terminate_master>: New.
1281 (enum stop_stack_kind): New.
1282 (struct bpstat_what) <call_dummy>: Change type.
1283 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
1284 Declare.
1285 * breakpoint.c (create_std_terminate_master_breakpoint): New
1286 function.
1287 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
1288 Call create_std_terminate_master_breakpoint.
1289 (print_it_typical): Handle new breakpoint kinds.
1290 (bpstat_stop_status): Handle bp_std_terminate_master.
1291 (bpstat_what): Correctly set call_dummy field. Handle
1292 bp_std_terminate_master and bp_std_terminate.
1293 (print_one_breakpoint_location): Update.
1294 (allocate_bp_location): Update.
1295 (set_std_terminate_breakpoint): New function.
1296 (delete_std_terminate_breakpoint): Likewise.
1297 (create_thread_event_breakpoint): Update.
1298 (delete_command): Update.
1299 (breakpoint_re_set_one): Update.
1300 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
1301
1302 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1303
1304 * symfile.c (build_section_addr_info_from_bfd): New.
1305 (build_section_addr_info_from_objfile): Base it on
1306 build_section_addr_info_from_bfd.
1307 (addrs_section_compar, addrs_section_sort): New.
1308 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
1309 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
1310 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
1311
1312 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
1313
1314 * elfread.c (find_separate_debug_file_by_buildid):
1315 Remove unused local variable.
1316
1317 2010-03-24 Tom Tromey <tromey@redhat.com>
1318
1319 PR breakpoints/9352:
1320 * NEWS: Mention changes to `commands' and `rbreak'.
1321 * symtab.c (do_end_rbreak_breakpoints): New function.
1322 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
1323 end_rbreak_breakpoints.
1324 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
1325 (set_breakpoint_count): Likewise. Clear last_was_multi.
1326 (multi_start, multi_end, last_was_multi): New globals.
1327 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
1328 functions.
1329 (struct commands_info): New
1330 (do_map_commands_command): New function.
1331 (commands_command_1): New function.
1332 (commands_command): Use it.
1333 (commands_from_control_command): Likewise.
1334 (do_delete_breakpoint): New function.
1335 (delete_command): Use it.
1336 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
1337 (do_map_disable_breakpoint): New function.
1338 (disable_command): Use it.
1339 (do_map_enable_breakpoint): New function.
1340 (enable_command): Use it.
1341 (enable_once_breakpoint): Add argument.
1342 (enable_once_command): Update.
1343 (enable_delete_breakpoint): Add argument.
1344 (enable_delete_command): Update.
1345 (break_command_really): Set last_was_multi when needed.
1346 (check_tracepoint_command): Fix formatting.
1347 (validate_commands_for_breakpoint): New function.
1348 (breakpoint_set_commands): Use it.
1349 (tracepoint_save_command): Update.
1350 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
1351 Declare.
1352
1353 2010-03-24 Tom Tromey <tromey@redhat.com>
1354
1355 * breakpoint.h (struct counted_command_line): New struct.
1356 (struct breakpoint) <commands>: Change type.
1357 (struct bpstats) <commands>: Change type.
1358 <commands_left>: New field.
1359 * breakpoint.c (alloc_counted_command_line): New function.
1360 (incref_counted_command_line): Likewise.
1361 (decref_counted_command_line): Likewise.
1362 (do_cleanup_counted_command_line): Likewise.
1363 (make_cleanup_decref_counted_command_line): Likewise.
1364 (breakpoint_set_commands): Use decref_counted_command_line and
1365 alloc_counted_command_line.
1366 (commands_command): Don't error if breakpoint commands are
1367 executing.
1368 (commands_from_control_command): Likewise.
1369 (bpstat_free): Update.
1370 (bpstat_copy): Likewise.
1371 (bpstat_clear_actions): Likewise.
1372 (bpstat_do_actions_1): Likewise.
1373 (bpstat_stop_status): Likewise.
1374 (print_one_breakpoint_location): Likewise.
1375 (delete_breakpoint): Likewise.
1376 (bpstat_alloc): Initialize new field.
1377 (tracepoint_save_command): Update.
1378 * tracepoint.c (encode_actions): Update.
1379 (trace_dump_command): Update.
1380
1381 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1382
1383 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
1384 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
1385 (read_structure_type): For RealView, set TYPE_STUB on structures with
1386 no byte size and no children.
1387 (read_subroutine_type): Mark functions as prototyped by default.
1388 * symtab.c (producer_is_realview): New function.
1389 * symtab.h (expand_line_sal): Fix declaration formatting.
1390 (producer_is_realview): Declare.
1391
1392 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1393
1394 * arm-tdep.c (skip_prologue_function): New function.
1395 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
1396 (thumb_analyze_prologue): Document return value. Recognize more
1397 Thumb instructions, skippable calls, and some Thumb-2 instructions.
1398 Add debug output.
1399 (arm_skip_prologue): Remove call dummy check. Check the prologue
1400 for non-GNU compilers.
1401 (arm_instruction_changes_pc): New function.
1402 (arm_analyze_prologue): New function, broken out from
1403 arm_scan_prologue. Recognize more ARM instructions and skippable
1404 calls. Update comments. Handle NULL cache. Return the address
1405 of the first unrecognized instruction. Do not skip past other
1406 instructions which change control flow. Add debug output.
1407 (arm_scan_prologue): Use arm_analyze_prologue.
1408 (ARM_PC_32): Delete.
1409 (shifted_reg_val): Simplify ARM_PC_32 check.
1410
1411 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1412
1413 * tracepoint.c (tvariables_info_1): Actually compute
1414 the number of rows in the result.
1415
1416 2010-03-24 Pedro Alves <pedro@codesourcery.com>
1417
1418 * remote.c (crc32): Constify `buf' parameter.
1419 (remote_verify_memory): New, abstracted out from...
1420 (compare_sections_command): ... this. Remove hardcoded target
1421 checks.
1422 (init_remote_ops): Install remote_verify_memory.
1423 * target.c (target_verify_memory): New.
1424 * target.h (struct target_ops) <to_verify_memory>: New field.
1425 (target_verify_memory): Declare.
1426
1427 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1428
1429 Implement -trace-save.
1430
1431 * mi-cmds.h (mi_cmds_trace_save): Declare.
1432 * mi-cmds.c (mi_cmds): Register -trace-save.
1433 * mi/mi-main.c (mi_cmd_trace_save): New.
1434 * remote.c (remote_save_trace_data): Take const parameter.
1435 * target.h (struct target_ops::to_save_trace_data): Take
1436 const parameter.
1437 * target.c (update_current_target): Adjust to the above.
1438 * tracepoint.c (trave_save): New, extracted from
1439 (trace_save_command): ...this.
1440 (tfile_trace_find): Remove message that is unnecessary now
1441 that 'tfind' reports found frame.
1442 * tracepoint.h (trace_save): Declare.
1443
1444 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1445
1446 Implement -trace-find.
1447
1448 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
1449 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
1450 * mi/mi-main.c (mi_cmd_trace_find): New.
1451 * target.h (struct target_ops): Document to_trace_find.
1452 * tracepoint.h (tfind_1): Declare.
1453 * tracepoint.c (finish_tfind_command): Rename to...
1454 (tfind_1): ...this.
1455 * remote.c (remote_trace_find): Return -1 if target say
1456 there's no frame. Improve error diagnostics.
1457
1458 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1459
1460 -trace-define-variable and -trace-list-variables.
1461
1462 * tracepoint.c (create_trace_state_variable): Make
1463 private copy of name, as opposed to assuming the
1464 pointer lives forever.
1465 (tvariables_info_1): New.
1466 (tvariables_info): Use the above.
1467 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
1468 Declare.
1469 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
1470 and -trace-list-variables.
1471 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
1472 (mi_cmd_trace_list_variables): New.
1473 * mi/mi-main.c (mi_cmd_trace_define_variable)
1474 (mi_cmd_trace_list_variables): New.
1475
1476 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1477
1478 Implement -break-passcount.
1479
1480 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
1481 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
1482 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
1483
1484 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1485
1486 -trace-start/-trace-end/-trace-status.
1487
1488 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
1489 and -trace-stop.
1490 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
1491 (mi_cmd_trace_stop): Declare.
1492 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
1493 (mi_cmd_trace_stop): New.
1494 * tracepoint.c (start_tracing): New, extracted from...
1495 (trace_start_command): ...this.
1496 (trace_status_mi): New.
1497 * tracepoint.h (struct trace_status): Document
1498 stopping_tracepoint.
1499 (start_tracing, stop_tracing, trace_status_mi): Declare.
1500
1501 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1502
1503 Implement creating tracepoints with -break-insert.
1504
1505 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
1506 to mean that tracepoint should be created.
1507
1508 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1509
1510 * breakpoint.c (check_no_tracepoint_commands): Use
1511 current spelling of 'teval'.
1512
1513 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
1514
1515 Unify actions and commands
1516
1517 * defs.h (read_command_lines, read_command_lines_1): New
1518 parameters validator and closure.
1519 * tracepoint.h (struct action_line): Remove.
1520 * breakpoint.h (struct breakpoint): Remove the 'actions'
1521 field.
1522 * defs.h (enum command_control_type): New value
1523 while_stepping_control.
1524 (struct command_line): Add comments.
1525 * breakpoint.c (breakoint_is_tracepoint): New.
1526 (breakpoint_set_commands): For tracepoints,
1527 verify the commands are permissible.
1528 (check_tracepoint_commands): New.
1529 (commands_command): Require that each new line is validated using
1530 check_tracepoint_command, if we set commands for a tracepoint.
1531 (create_tracepoint_from_upload): Likewise.
1532 (print_one_breakpoint_location): Remove the code to print
1533 actions specifically.
1534 (tracepoint_save_command): Relay to print_command_lines.
1535 * cli/cli-script.c (process_next_line): New parameters validator
1536 and closure. Handle 'while-stepping'. Call validator if not null.
1537 (read_command_lines, read_command_lines1): Likewise.
1538 (recurse_read_control_structure): New parameters validator and
1539 closure. Handle while_stepping_control.
1540 (print_command_lines): Handle while-stepping.
1541 (get_command_line, define_command, document_command): Adjust.
1542 * remote.c (remote_download_tracepoint): Adjust.
1543 * tracepoint.c (make_cleanup_free_actions, read_actions)
1544 (free_actions, do_free_actions_cleanup): Remove.
1545 (trace_actions_command): Use read_command_lines.
1546 (validate_actionline): Use error in one place.
1547 (encode_actions_1): New, extracted from...
1548 (encode_actions): ...this. Also use cleanups for exception
1549 safety.
1550 (trace_dump_command): Adjust.
1551 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
1552 it's tracepoint.
1553
1554 2010-03-23 Mike Frysinger <vapier@gentoo.org>
1555
1556 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
1557
1558 2010-03-22 Stan Shebs <stan@codesourcery.com>
1559
1560 * value.c (value_static_field): Be lazy about the field's value.
1561
1562 2010-03-22 Reid Kleckner <reid@kleckner.net>
1563
1564 PR gdb/11094
1565 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
1566 bp_jit_event.
1567 (disable_breakpoints_in_shlibs): Likewise.
1568
1569 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
1570
1571 * dwarf2read.c (partial_die_parent_scope): Work around buggy
1572 GCC 4.1 debug info generation (GCC PR c++/28460).
1573 (determine_prefix): Likewise.
1574
1575 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
1576
1577 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
1578 get_current_arch.
1579 * tui/tui-layout.c (extract_display_start_addr): Likewise.
1580
1581 2010-03-19 Stan Shebs <stan@codesourcery.com>
1582
1583 * ax-gdb.c (gen_fetch): Handle bool.
1584 (gen_usual_unary): Ditto.
1585 (gen_cast): Ditto.
1586 (gen_equal): New function.
1587 (gen_less): New function.
1588 (gen_expr_binop_rest): Call them, also return integer type from
1589 logical operations.
1590 (gen_expr): Ditto.
1591
1592 2010-03-19 Tom Tromey <tromey@redhat.com>
1593
1594 * jv-lang.c (jv_dynamics_objfile_data_key)
1595 (jv_type_objfile_data_key): New globals.
1596 (class_symtab): Move earlier.
1597 (jv_per_objfile_free): New function.
1598 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
1599 parameter.
1600 Remove ancient #if 1.
1601 (add_class_symbol): Remove redundant declaration.
1602 (java_lookup_class): Use alloc_type, not alloc_type_arch.
1603 (java_link_class_type): Mark as static. Update.
1604 (jv_clear_object_type): New function.
1605 (set_java_object_type): Likewise.
1606 (get_java_object_type): Use set_java_object_type.
1607 (is_object_type): Likewise.
1608 (_initialize_java_language): Register new objfile keys.
1609 (get_java_class_symtab): Add 'gdbarch' parameter.
1610 (add_class_symtab_symbol): Update.
1611 (type_from_class): Update.
1612
1613 2010-03-19 Stan Shebs <stan@codesourcery.com>
1614
1615 * ax-general.c (ax_const_l): Fix a sizing bug.
1616
1617 2010-03-18 Joel Brobecker <brobecker@adacore.com>
1618
1619 GDB 7.1 released.
1620
1621 2010-03-18 Stan Shebs <stan@codesourcery.com>
1622 Pedro Alves <pedro@codesourcery.com>
1623
1624 * target.h (struct target_ops): New method
1625 to_set_circular_trace_buffer.
1626 (target_set_circular_trace_buffer): New macro.
1627 * target.c (update_current_target): Add
1628 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
1629 default behavior.
1630 * remote.c (remote_set_circular_trace_buffer): New function.
1631 (init_remote_ops): Add it to vector.
1632 * tracepoint.h (struct trace_status): New field traceframes_created,
1633 change buffer_size and buffer_free to int.
1634 * tracepoint.c (circular_trace_buffer): New global.
1635 (start_tracing): Send values of disconnected tracing and circular
1636 trace buffer settings.
1637 (set_circular_trace_buffer): New function.
1638 (parse_trace_state): Handle total space and frames created.
1639 (trace_status_command): Display total space and total frames
1640 created.
1641 (trace_save): Write out new status values.
1642 (parse_trace_status): Set traceframe_count, traceframes_created,
1643 buffer_free and buffer_size to -1 by default.
1644 (_initialize_tracepoint): New setshow for circular-trace-buffer.
1645 * NEWS: Mention the circular trace buffer option.
1646
1647 2010-03-18 Tom Tromey <tromey@redhat.com>
1648
1649 * infcmd.c (finish_command_continuation): Wrap print_return_value
1650 in TRY_CATCH.
1651
1652 2010-03-18 Joel Brobecker <brobecker@adacore.com>
1653
1654 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
1655 DIE has a name before creating the associated partial symbol.
1656 (read_func_scope): Emit a complaint if the subprogram does not
1657 have a name or when we can't extract the subprogram PC bounds.
1658
1659 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
1660
1661 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
1662 instead of selected frame architecture.
1663
1664 2010-03-18 Pedro Alves <pedro@codesourcery.com>
1665
1666 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
1667 a valid selected thread, and that it is not running.
1668 (advance_command): Ditto.
1669 (finish_command): Ditto.
1670
1671 2010-03-17 Stan Shebs <stan@codesourcery.com>
1672
1673 * ax-gdb.c (require_rvalue): Disallow non-scalars.
1674
1675 * infcall.c: Include tracepoint.h.
1676 (call_function_by_hand): Disallow calls in tfind mode.
1677 * infcmd.c: Include tracepoint.h.
1678 (ensure_not_tfind_mode): New function.
1679 (continue_1): Call it.
1680 (step_1) Ditto.
1681 (jump_command): Ditto.
1682 (signal_command): Ditto.
1683 (advance_command): Ditto.
1684 (until_command): Ditto.
1685 (finish_command): Ditto.
1686 * tracepoint.h (disconnect_or_stop_tracing): Declare.
1687
1688 * ax-gdb.h (struct axs_value): New field optimized_out.
1689 (gen_trace_for_var): Add gdbarch argument.
1690 * ax-gdb.c (gen_trace_static_fields): New function.
1691 (gen_traced_pop): Call it, add gdbarch argument.
1692 (gen_trace_for_expr): Update call to it.
1693 (gen_trace_for_var): Ditto, and report optimized-out variables.
1694 (gen_struct_ref_recursive): Check for optimized-out value.
1695 (gen_struct_elt_for_reference): Ditto.
1696 (gen_static_field): Pass gdbarch instead of expression, assume
1697 optimization if field not found.
1698 (gen_var_ref): Set the optimized_out flag.
1699 (gen_expr): Error on optimized-out variable.
1700 * tracepoint.c (collect_symbol): Handle struct-valued vars as
1701 expressions, skip optimized-out variables with computed locations.
1702 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
1703 erroring out if location expression missing.
1704 (loclist_tracepoint_var_ref): Don't error out here.
1705
1706 2010-03-17 Tom Tromey <tromey@redhat.com>
1707
1708 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
1709 DWARF data is available.
1710
1711 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
1712
1713 * symfile.c (generic_load): Reset breakpoints after loading.
1714
1715 2010-03-17 Tom Tromey <tromey@redhat.com>
1716
1717 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
1718
1719 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1720
1721 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
1722 create_breakpoint call, adjust the parameters.
1723
1724 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1725 Chandru <chandru@in.ibm.com>
1726
1727 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
1728 * valarith.c (value_subscripted_rvalue): Suppress error if
1729 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
1730
1731 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
1732
1733 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
1734
1735 2010-03-16 Joel Brobecker <brobecker@adacore.com>
1736
1737 * ada-tasks.c (task_command_1): Check that the task ptid is valid
1738 before doing the associated thread switch.
1739
1740 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
1741
1742 * MAINTAINERS: Update my email address.
1743
1744 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
1745
1746 Simplify MI breakpoint setting.
1747
1748 * breakpoint.c (break_command_really): Make nonstatic and
1749 rename to...
1750 (create_breakpoint): ...this. Rename prior function by this name
1751 to...
1752 (create_breakpoint_sal): ...this.
1753 (create_breakpoints): Rename to...
1754 (create_breakpoints_sal): ...this.
1755 (set_breakpoint): Remove.
1756 * breakpoint.h: Adjust to above changes.
1757 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
1758
1759 2010-03-15 Stan Shebs <stan@codesourcery.com>
1760
1761 * ax-gdb.c: Include cp-support.h.
1762 (find_field): Remove.
1763 (gen_primitive_field): New function.
1764 (gen_struct_ref_recursive): New function.
1765 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
1766 of find_field.
1767 (gen_static_field): New function.
1768 (gen_struct_elt_for_reference): New.
1769 (gen_namespace_elt): New.
1770 (gen_maybe_namespace_elt): New.
1771 (gen_aggregate_elt_ref): New.
1772 (gen_expr): Add OP_SCOPE, display opcode name in error message.
1773
1774 2010-03-15 Tom Tromey <tromey@redhat.com>
1775
1776 * dwarf2read.c (die_needs_namespace): Also return 0 for
1777 DW_TAG_subprogram.
1778
1779 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
1780
1781 PR c++/7936:
1782 * cp-support.h: Added char *declaration element to using_direct
1783 data struct.
1784 (cp_add_using): Added char *declaration argument.
1785 (cp_add_using_directive): Ditto.
1786 (cp_lookup_symbol_imports): made extern.
1787 * cp-namespace.c: Updated with the above changes.
1788 * dwarf2read.c (read_import_statement): Ditto.
1789 (read_namespace): Ditto.
1790 (read_import_statement): Support import declarations.
1791 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
1792 declarations.
1793 Added support for 'declaration_only' search.
1794 (cp_lookup_symbol_namespace): Attempt to search for the name as
1795 is before consideration of imports.
1796 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
1797 search at every block level search.
1798 Now takes language argument.
1799 (lookup_symbol_aux): Updated.
1800
1801 2010-03-15 Tom Tromey <tromey@redhat.com>
1802
1803 * c-exp.y (name_not_typename): Add 'operator' clause.
1804
1805 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
1806
1807 * configure.ac: Exit if ${gdb_target_obs}" is not set.
1808 * configure: Regenerate.
1809
1810 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1811
1812 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
1813 and ".sdynbss". Update the comment.
1814
1815 2010-03-15 Jie Zhang <jie@codesourcery.com>
1816
1817 * MAINTAINERS: Update my email address.
1818
1819 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1820
1821 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
1822
1823 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1824
1825 * charset.c [USE_WIN32API]: Include <windows.h>.
1826 (_initialize_charset): Correct type of w32_host_default_charset.
1827
1828 2010-03-14 Pedro Alves <pedro@codesourcery.com>
1829
1830 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
1831
1832 2010-03-12 Tom Tromey <tromey@redhat.com>
1833
1834 PR c++/9708:
1835 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
1836 in a lexical block does not need a namespace.
1837 (new_symbol) <DW_TAG_variable>: Put extern variables on
1838 list_in_scope in all cases.
1839
1840 2010-03-12 Stan Shebs <stan@codesourcery.com>
1841
1842 * ax-gdb.c (gen_expr): Add shift expressions.
1843 (gen_expr_binop_rest): Ditto.
1844
1845 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
1846
1847 * buildsym.c (finish_block): Reset using_directives pointer
1848 after block initialization.
1849
1850 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
1851
1852 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
1853 * i386-tdep.c (i386_word_names): Likewise.
1854
1855 2010-03-12 Pedro Alves <pedro@codesourcery.com>
1856
1857 * target.c (memory_xfer_partial): Don't use the stack cache if
1858 inspecting trace frames.
1859 * tracepoint.c (finish_tfind_command): Invalidate the target
1860 dcache.
1861
1862 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1863
1864 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
1865 for the PIC displacement, print also the displacement value.
1866 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
1867
1868 2010-03-10 Kevin Buettner <kevinb@redhat.com>
1869
1870 * remote-mips.c (close_ports, mips_initialize_cleanups)
1871 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
1872 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
1873 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
1874 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
1875 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
1876 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
1877 comments describing each of these functions.
1878 (mips_enter_debug, mips_exit_debug, common_open)
1879 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
1880 blank line after the comment describing the function.
1881
1882 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1883
1884 * solib-svr4.c (svr4_exec_displacement): Return now success, new
1885 parameter displacementp. Update comment.
1886 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
1887 element exists. Return if svr4_exec_displacement was not successful.
1888 Update comment.
1889
1890 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1891 Daniel Jacobowitz <dan@codesourcery.com>
1892
1893 * solib-svr4.c (read_program_header): Support type == -1 to read
1894 all program headers.
1895 (read_program_headers_from_bfd): New function.
1896 (svr4_static_exec_displacement): Remove and move the comment ...
1897 (svr4_exec_displacement): ... here. Remove variable found. New
1898 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
1899 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
1900 targets using read_program_headers_from_bfd. Remove the call of
1901 svr4_static_exec_displacement.
1902
1903 2010-03-10 Tom Tromey <tromey@redhat.com>
1904
1905 * dwarf2read.c (struct pubnames_header): Remove.
1906 (_PUBNAMES_HEADER): Remove.
1907 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
1908 (struct aranges_header): Remove.
1909 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
1910 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
1911 (PUBNAMES_SECTION): Remove.
1912 (ARANGES_SECTION): Remove.
1913 (dwarf2_locate_sections): Don't handle pubnames or aranges.
1914 (dwarf2_build_psymtabs): Remove dead code.
1915 (dwarf2_build_psymtabs_easy): Remove.
1916
1917 2010-03-10 Tom Tromey <tromey@redhat.com>
1918
1919 * elfread.c (elf_symfile_read): Don't call
1920 dwarf2_build_frame_info.
1921 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
1922 (struct dwarf2_per_objfile) <objfile>: New field.
1923 (dwarf2_has_info): Now idempotent. Set objfile field.
1924 (dwarf2_read_section): Check and set readin field. Call
1925 posix_madvise.
1926 (dwarf2_build_psymtabs): Don't read all sections.
1927 (read_type_comp_unit_head): Read types section.
1928 (create_debug_types_hash_table): Likewise.
1929 (init_cu_die_reader): Add asserts.
1930 (process_type_comp_unit): Add assert.
1931 (dwarf2_build_psymtabs_hard): Read info section.
1932 (load_partial_comp_unit): Add assert.
1933 (create_all_comp_units): Read info section.
1934 (load_full_comp_unit): Likewise.
1935 (dwarf2_ranges_read): Read ranges section.
1936 (dwarf2_record_block_ranges): Add assert.
1937 (dwarf2_read_abbrevs): Read abbrev section.
1938 (read_indirect_string): Read str section.
1939 (dwarf_decode_line_header): Read line section.
1940 (read_signatured_type_at_offset): Read types section.
1941 (dwarf_decode_macros): Read macinfo section.
1942 (dwarf2_symbol_mark_computed): Read loc section.
1943 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
1944 dwarf2_build_frame_info.
1945 (dwarf2_build_frame_info): Unconditionally set
1946 dwarf2_frame_objfile_data on the objfile.
1947 * configure.ac: Check for posix_madvise.
1948 * config.in, configure: Rebuild.
1949
1950 2010-03-10 Tom Tromey <tromey@redhat.com>
1951
1952 * xcoffread.c (xcoff_start_psymtab): Update.
1953 (xcoff_end_psymtab): Update.
1954 * psymtab.c (allocate_psymtab): Remove dead code.
1955 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
1956 void*.
1957 * mdebugread.c (parse_partial_symbols): Update.
1958 (new_psymtab): Likewise.
1959 * dwarf2read.c (process_psymtab_comp_unit): Update.
1960 (psymtab_to_symtab_1): Update.
1961 * dbxread.c (start_psymtab): Update.
1962 (end_psymtab): Likewise.
1963
1964 2010-03-10 Tom Tromey <tromey@redhat.com>
1965
1966 * xcoffread.c: Include psymtab.h.
1967 (xcoff_sym_fns): Update.
1968 * symtab.h (struct partial_symbol): Remove.
1969 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
1970 (struct partial_symtab): Remove.
1971 (PSYMTAB_TO_SYMTAB): Remove.
1972 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
1973 (find_pc_sect_psymtab): Remove.
1974 (find_pc_sect_symtab_via_partial): Declare.
1975 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
1976 (find_main_psymtab): Remove.
1977 (find_main_filename): Declare.
1978 (fixup_psymbol_section): Remove.
1979 (fixup_section): Declare.
1980 * symtab.c: Include psymtab.h.
1981 (lookup_symtab): Use lookup_symtab method.
1982 (lookup_partial_symtab): Remove.
1983 (find_pc_sect_psymtab_closer): Remove.
1984 (find_pc_sect_psymtab): Remove.
1985 (find_pc_sect_symtab_via_partial): New function.
1986 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
1987 (fixup_section): No longer static.
1988 (fixup_psymbol_section): Remove.
1989 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
1990 (lookup_global_symbol_from_objfile): Likewise.
1991 (lookup_symbol_aux_psymtabs): Remove.
1992 (lookup_symbol_aux_quick): New function.
1993 (lookup_symbol_global): Use lookup_symbol_aux_quick.
1994 (lookup_partial_symbol): Remove.
1995 (basic_lookup_transparent_type_quick): New function.
1996 (basic_lookup_transparent_type): Use it.
1997 (find_main_psymtab): Remove.
1998 (find_main_filename): New function.
1999 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
2000 (find_line_symtab): Use expand_symtabs_with_filename method.
2001 (output_partial_symbol_filename): New function.
2002 (sources_info): Use map_partial_symbol_filenames.
2003 (struct search_symbols_data): New type.
2004 (search_symbols_file_matches): New function.
2005 (search_symbols_name_matches): Likewise.
2006 (search_symbols): Use expand_symtabs_matching method.
2007 (struct add_name_data): Rename from add_macro_name_data.
2008 (add_macro_name): Update.
2009 (add_partial_symbol_name): New function.
2010 (default_make_symbol_completion_list): Use
2011 map_partial_symbol_names.
2012 (struct add_partial_symbol_name): New type.
2013 (maybe_add_partial_symtab_filename): New function.
2014 (make_source_files_completion_list): Use
2015 map_partial_symbol_filenames.
2016 (expand_line_sal): Use expand_symtabs_with_filename method.
2017 * symmisc.c: Include psymtab.h.
2018 (print_objfile_statistics): Use print_stats method.
2019 (dump_objfile): Use dump method.
2020 (dump_psymtab, maintenance_print_psymbols)
2021 (maintenance_info_psymtabs, maintenance_check_symtabs)
2022 (extend_psymbol_list): Remove.
2023 * symfile.h (struct quick_symbol_functions): New struct.
2024 (struct sym_fns) <qf>: New field.
2025 (sort_pst_symbols): Remove.
2026 (increment_reading_symtab): Declare.
2027 * symfile.c: Include psymtab.h.
2028 (compare_psymbols, sort_pst_symbols): Remove.
2029 (psymtab_to_symtab): Remove.
2030 (increment_reading_symtab): New function.
2031 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
2032 method.
2033 (set_initial_language): Use find_main_filename.
2034 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
2035 (free_named_symtabs): Remove unused code.
2036 (start_psymtab_common, add_psymbol_to_bcache)
2037 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
2038 Remove.
2039 * stack.c: Include psymtab.h, symfile.h.
2040 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
2041 * source.h (psymtab_to_fullname): Don't declare.
2042 * source.c: Include psymtab.h.
2043 (select_source_symtab): Use find_last_source_symtab method.
2044 (forget_cached_source_info): Use forget_cached_source_info
2045 method.
2046 (find_and_open_source): No longer static.
2047 (psymtab_to_fullname): Remove.
2048 * somread.c: Include psymtab.h.
2049 (som_sym_fns): Update.
2050 * psympriv.h: New file.
2051 * psymtab.h: New file.
2052 * psymtab.c: New file.
2053 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
2054 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
2055 * objfiles.c: Include psymtab.h.
2056 (objfile_relocate1): Use relocate method.
2057 (objfile_has_partial_symbols): Use has_symbols method.
2058 * mipsread.c: Include psymtab.h.
2059 (ecoff_sym_fns): Update.
2060 * mi/mi-cmd-file.c: Include psymtab.h.
2061 (print_partial_file_name): New function.
2062 (mi_cmd_file_list_exec_source_files): Use
2063 map_partial_symbol_filenames.
2064 * mdebugread.c: Include psympriv.h.
2065 * machoread.c: Include psympriv.h.
2066 (macho_sym_fns): Update.
2067 * m2-exp.y (yylex): Use lookup_symtab.
2068 * elfread.c: Include psympriv.h.
2069 (elf_sym_fns): Update.
2070 * dwarf2read.c: Include psympriv.h.
2071 * dbxread.c: Include psympriv.h.
2072 (aout_sym_fns): Update.
2073 * cp-support.c: Include psymtab.h.
2074 (read_in_psymtabs): Remove.
2075 (make_symbol_overload_list_qualified): Use
2076 expand_symtabs_for_function method.
2077 * coffread.c: Include psympriv.h.
2078 (coff_sym_fns): Update.
2079 * blockframe.c: Include psymtab.h.
2080 (find_pc_partial_function): Use find_pc_sect_symtab method.
2081 * ada-lang.h (ada_update_initial_language): Update.
2082 * ada-lang.c: Include psymtab.h.
2083 (ada_update_initial_language): Remove 'main_pst' argument.
2084 (ada_lookup_partial_symbol): Remove.
2085 (struct ada_psym_data): New type.
2086 (ada_add_psyms): New function.
2087 (ada_add_non_local_symbols): Use map_ada_symtabs method.
2088 (struct add_partial_datum): New type.
2089 (ada_add_partial_symbol_completions): New function.
2090 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
2091 (ada_exception_support_info_sniffer): Update.
2092 * Makefile.in (SFILES): Add psymtab.c.
2093 (COMMON_OBS): Add psymtab.o.
2094 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
2095
2096 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
2097
2098 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
2099
2100 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
2101
2102 PR C++/11236:
2103 * cp-namespace.c (cp_add_using): Deleted.
2104 (cp_add_using_directive): Use obstack allocations.
2105 Merged the function cp_add_using into this one.
2106 Added 'struct obstack *' argument.
2107 (cp_scan_for_anonymous_namespaces): Updated.
2108 * cp-support.h: Updated.
2109 * dwarf2read.c (read_import_statement): Updated.
2110 (read_namespace): Updated.
2111
2112 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
2113
2114 * windows-nat.c (cygwin_conv_path): Remove old macro.
2115
2116 2010-03-10 Pedro Alves <pedro@codesourcery.com>
2117
2118 * breakpoint.c (condition_command): Handle watchpoint conditions.
2119 (is_hardware_watchpoint): Add comment.
2120 (is_watchpoint): New.
2121 (update_watchpoint): Don't reparse the watchpoint's condition
2122 unless necessary.
2123 (WP_IGNORE): New.
2124 (watchpoint_check): Use it.
2125 (bpstat_check_watchpoint): Handle it.
2126 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
2127 conditions in a frame where it makes sense.
2128 (watch_command_1): Store the innermost block of the condition
2129 expression.
2130 (delete_breakpoint): Delete the watchpoint condition expression.
2131 * breakpoint.h (struct bp_location) <cond>: Update comment.
2132 (struct breakpoint): New field `cond_exp_valid_block'.
2133
2134 2010-03-09 Joel Brobecker <brobecker@adacore.com>
2135
2136 Adjust handling of Ada DIEs after dwarf2_physname patch.
2137 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
2138
2139 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
2140 Pierre Muller <muller@ics.u-strasbg.fr>
2141
2142 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
2143 from/to posix/win32.
2144 (windows_make_so): Use non-Cygwin 1.7 specific function.
2145 (windows_create_inferior): Make sure that cygallargs points to
2146 original args in non Cygwin 1.7. case.
2147
2148 2010-03-09 Michael Snyder <msnyder@vmware.com>
2149
2150 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
2151 after target_read_memory to get host byte order.
2152 (i386_process_record): Ditto.
2153
2154 2010-03-09 Keith Seitz <keiths@redhat.com>
2155
2156 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
2157 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
2158 print out const or volatile qualifiers, too.
2159 (c_type_print_args): Add parameters show_artificial and language.
2160 Skip artificial parameters when requested.
2161 Use the appropriate language printer.
2162 (c_type_print_varspec): Tell c_type_print_args to skip artificial
2163 parameters and pass language_c.
2164 * dwarf2read.c (die_list): New file global.
2165 (struct partial_die_info): Update comments for name field.
2166 (pdi_needs_namespace): Renamed to ...
2167 (die_needs_namespace): ... this. Rewrite.
2168 (dwarf2_linkage_name): Remove.
2169 (add_partial_symbol): Do not predicate the call to
2170 partial_die_full_name based on pdi_needs_namespace.
2171 Remove call to cp_check_possible_namespace_symbols and associated
2172 outdated comments.
2173 (guess_structure_name): Do not inspect child subprogram DIEs.
2174 (dwarf2_fullname): Update comments.
2175 Use die_needs_namespace to assist in computing the name.
2176 (read_func_scope): Use dwarf2_name to get the DIE's name.
2177 Use dwarf2_physname to get the "linkage name" of the DIE.
2178 (dwarf2_add_member_field): Use dwarf2_physname instead of
2179 dwarf2_linkage_name.
2180 (read_structure_type): For structs and classes, set TYPE_NAME, too.
2181 (determine_class): Remove.
2182 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
2183 except Ada.
2184 (new_symbol): Unconditionally call dwarf2_name.
2185 Compute the "linkage name" using dwarf2_physname.
2186 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
2187 When determining to scan for anonymous C++ namespaces, ignore
2188 the linkage name.
2189 (dwarf2_physname): New function.
2190 (dwarf2_full_name): Move content to new function and call
2191 that.
2192 (dwarf2_compute_name): "New" function.
2193 (_initialize_dwarf2_read): Initialize die_list.
2194 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
2195 physname.
2196 (gnu_v3_print_method_ptr): Use the physname for virtual methods
2197 without a demangled name.
2198 Print out type information for non-virtual methods.
2199 * linespec.c (decode_line_1): Force ANY string using "::" (or
2200 "." for java) to use decode_compound, and clean up any stray quoting.
2201 If we found a file symtab, re-evaluate whether the remainder is_quoted.
2202 (decode_compound): Stop consuming at an open parenthesis.
2203 Keep template parameters.
2204 Keep any overload information.
2205 Keep keywords like "const".
2206 Remove paren_pointer.
2207 Move is_quoted check from set_flags to here.
2208 Remove #if 0 code from 2000. Ten years is long enough.
2209 (find_method): Before comparing symbol names, canonicalize the string
2210 from the user.
2211 If a specific overload is requested, find it. Otherwise throw an error.
2212 (find_method_overload_end): New function.
2213 (set_flags): Remove.
2214 (decode_compound): Assume that parentheses are matched.
2215 It's a lot easier.
2216 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
2217 to cplus_demangle.
2218 * linespec.c (decode_line_1): Keep important keywords like
2219 "const" and "volatile".
2220 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
2221 * typeprint.h (c_type_print_args): Add declaration.
2222 * ui-file.c (do_ui_file_obsavestring): New function.
2223 (ui_file_obsavestring): New function.
2224 * ui-file.h (ui_file_obsavestring): Add declaration.
2225 * valops.c (find_overload_match): Resolve the object to
2226 a non-pointer type.
2227 If the object is a data member, search the object for the member
2228 and return with staticp set.
2229 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
2230 Do not attempt to extract a function name from non-function types.
2231 If the extracted function name and the original name are the same,
2232 we don't have a C++ method.
2233
2234 From Jan Kratochvil <jan.kratochvil@redhat.com>:
2235 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
2236
2237 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
2238 and arguments from symbol lookups.
2239 * ax-gdb.c (gen_expr): Likewise.
2240 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
2241 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
2242 lookup_possible_namespace_symbol): Likewise.
2243 * cp-support.c (read_in_psymtabs): Likewise.
2244 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
2245 * language.h (la_lookup_symbol_nonlocal): Likewise.
2246 * scm-valprint.c (scm_inferior_print): Likewise.
2247 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
2248 * solib-svr.c (elf_lookup_lib): Likewise.
2249 * solib.c (show_auto_solib_add): Likewise.
2250 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
2251 * symmisc.c (maintenance_check_symtabs): Likewise.
2252 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
2253 lookup_symbol_aux_local, lookup_symbol_aux_block,
2254 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
2255 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
2256 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
2257 basic_lookup_transparent_type, find_main_psymtab,
2258 lookup_block_symbol): Likewise.
2259 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
2260 lookup_symbol_global, lookup_symbol_aux_block,
2261 lookup_symbol_partial_symbol, lookup_block_symbol,
2262 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
2263
2264 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
2265
2266 * python/python-internal.h: Include symtab.h.
2267
2268 2010-03-09 Joel Brobecker <brobecker@adacore.com>
2269 Pierre Muller <muller@ics.u-strasbg.fr>
2270
2271 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
2272 * p-valprint.c (pascal_val_print): Remove undeed block and fix
2273 indentation.
2274
2275 2010-03-08 Tom Tromey <tromey@redhat.com>
2276
2277 * breakpoint.c (breakpoint_1): Add "QUIT".
2278
2279 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
2280 Pedro Alves <pedro@codesourcery.com>
2281
2282 * solib.c (solib_find): Replace extension if
2283 solib_symbols_extension is set in the target gdbarch.
2284 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
2285 solib_symbols_extension to "sym".
2286 * gdbarch.sh (solib_symbols_extension): New variable.
2287 (pstring): New function.
2288 * gdbarch.h, gdbarch.c: Regenerate.
2289
2290 2010-03-08 Tom Tromey <tromey@redhat.com>
2291
2292 PR cli/9591:
2293 * NEWS: Update.
2294 * utils.c: Include main.h.
2295 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
2296 (defaulted_query): Use default answer if `batch_flag'.
2297 * main.h (batch_flag): Declare.
2298 * main.c (batch_flag): New global.
2299 (captured_main): Remove 'batch'. Update.
2300
2301 2010-03-08 Kevin Buettner <kevinb@redhat.com>
2302
2303 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
2304 and Kevin Buettner:
2305
2306 * remote-mips.c (rockhopper_ops): New target_ops struct.
2307 (MON_ROCKHOPPER): New mips_monitor_type.
2308 (read_hex_value): New function.
2309 (mips_request): Send 8-byte values with a 'T' packet. Read the
2310 packet argument as a string and use read_hex_value to parse it.
2311 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
2312 (rockhopper_open): New function.
2313 (mips_wait): Read the PC, FP and SP fields as strings. Use
2314 read_hex_value to parse them and mips_set_register to commit them.
2315 (mips_set_register): New function.
2316 (mips_fetch_registers): Do not cast register value to "unsigned"
2317 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
2318 (mips_store_registers): Use a 'T' packet to set registers when
2319 using MON_ROCKHOPPER.
2320 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
2321 and expect the total to be printed before the entry address.
2322 (_initialize_remote_mips): Initialize and add rockhopper_ops.
2323
2324 2010-03-08 Kevin Buettner <kevinb@redhat.com>
2325
2326 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
2327 Change return value to int. Store value fetched in location
2328 addressed by `val'. Use function's return value as success
2329 or failure indicator. Adjust all callers.
2330
2331 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
2332
2333 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
2334
2335 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2336 Hui Zhu <teawater@gmail.com>
2337
2338 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
2339 tmp_to_stopped_data_address.
2340 (record_open): Reset tmp_to_stopped_by_watchpoint and
2341 tmp_to_stopped_data_address.
2342 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
2343 to_stopped_data_address.
2344
2345 2010-03-08 Hui Zhu <teawater@gmail.com>
2346
2347 * i386-tdep.c (i386_process_record): Initialize regnum.
2348
2349 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2350
2351 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
2352 Do not warn on ".gnu.liblist" and ".gnu.conflict".
2353
2354 2010-03-08 Joel Brobecker <brobecker@adacore.com>
2355
2356 Memory error when reading wrong core file.
2357 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
2358 errors while reading the inferior memory, and return zero if
2359 an exception was raised.
2360
2361 2010-03-07 Michael Snyder <msnyder@vmware.com>
2362
2363 * record.c (record_restore): Rename tmpu8 to rectype.
2364
2365 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
2366 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
2367
2368 (i386_record_push): Rename local tmpulongest to addr.
2369
2370 (i386_process_record): Rename local tmpulongest to addr.
2371
2372 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
2373 addr64.
2374
2375 Rename local variable tmpu8 to opcode8 and regnum.
2376
2377 2010-03-07 Joel Brobecker <brobecker@adacore.com>
2378
2379 * remote.c (remote_get_ada_task_ptid): New function.
2380 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
2381
2382 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
2383
2384 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
2385 block. Define helper macros to reduce ifdefs in code.
2386 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
2387 size. Call unadorned GetModuleFileNameEx rather than
2388 GetModuleFileNameEx*.
2389 (windows_make_so): Use __PMAX to denote maximum buffer size and
2390 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
2391 appropriate.
2392 (get_image_name): Use __PMAX to denote maximum buffer size.
2393 (handle_load_dll): Likewise.
2394 (windows_pid_to_exec_file): Likewise.
2395 (windows_create_inferior): Add many accommodations for older Cygwin and
2396 non-Cygwin.
2397 (bad_GetModuleFileNameExW): Control inclusion of this function based on
2398 __USEWIDE conditional.
2399 (bad_GetModuleFileNameExA): Likewise.
2400 (_initialize_loadable): Just use real function names without the dyn_
2401 part since they are defined earlier.
2402
2403 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
2404 Tom Tromey <tromey@redhat.com>
2405
2406 * utils.c (host_char_to_target): Add 'gdbarch' argument.
2407 (parse_escape): Likewise.
2408 * python/py-utils.c (unicode_to_target_string): Update.
2409 (unicode_to_target_python_string): Update.
2410 (target_string_to_unicode): Update.
2411 * printcmd.c (printf_command): Update.
2412 * p-exp.y (yylex): Update.
2413 * objc-exp.y (yylex): Update.
2414 * mi/mi-parse.c: Include charset.h.
2415 (mi_parse_escape): New function.
2416 (mi_parse_argv): Use it.
2417 * jv-exp.y (yylex): Update.
2418 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
2419 function.
2420 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
2421 * gdbarch.sh (auto_charset, auto_wide_charset): New.
2422 * gdbarch.c: Rebuild.
2423 * gdbarch.h: Rebuild.
2424 * defs.h (parse_escape): Update.
2425 * cli/cli-setshow.c: Include arch-utils.h.
2426 (do_setshow_command): Update.
2427 * cli/cli-cmds.c (echo_command): Update.
2428 * charset.h (target_charset, target_wide_charset): Update.
2429 * charset.c: Include arch-utils.h.
2430 (target_charset_name): Default to "auto".
2431 (target_wide_charset_name): Likewise.
2432 (show_target_charset_name): Handle "auto".
2433 (show_target_wide_charset_name): Likewise.
2434 (be_le_arch): New global.
2435 (set_be_le_names): Add 'gdbarch' argument.
2436 (validate): Likewise. Don't call set_be_le_names.
2437 (set_charset_sfunc, set_host_charset_sfunc)
2438 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
2439 Update.
2440 (target_charset): Add 'gdbarch' argument.
2441 (target_wide_charset): Likewise. Remove 'byte_order' argument.
2442 (auto_target_charset_name): New global.
2443 (default_auto_charset, default_auto_wide_charset): New functions.
2444 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
2445 for target charsets. Copy result of nl_langinfo. Use GetACP if
2446 USE_WIN32API.
2447 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
2448 remove 'byte_order' argument. Update.
2449 (classify_type): Likewise.
2450 (c_emit_char): Update.
2451 (c_printchar): Update.
2452 (c_printstr): Update.
2453 (c_get_string): Update.
2454 (evaluate_subexp_c): Update.
2455 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
2456 Declare.
2457 * python/python.c (gdbpy_target_charset): New function.
2458 (gdbpy_target_wide_charset): Likewise.
2459 (GdbMethods): Update.
2460 * NEWS: Update.
2461
2462 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
2463
2464 * symfile.c (build_section_addr_info_from_objfile): Do not mask
2465 off high address bits.
2466
2467 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
2468
2469 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
2470 address as UnsignedLongLong, not LongLong.
2471
2472 2010-03-05 Kevin Buettner <kevinb@redhat.com>
2473 Pedro Alves <pedro@codesourcery.com>
2474
2475 * remote-mips.c (gdbthread.h): Include.
2476 (remote_mips_ptid): Declare.
2477 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
2478 (common_open): Set inferior_ptid, add it as an inferior, and
2479 as a thread too. Delete FIXME comment regarding start_remote().
2480 (mips_close): Invoke generic_mourn_inferior().
2481 (mips_kill): Make sure that target_mourn_inferior is invoked.
2482 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
2483 it's now invoked from mips_close().
2484 (mips_load): Don't null out inferior_ptid. Don't call
2485 clear_symtab_users().
2486 (mips_thread_alive, mips_pid_to_str): New functions.
2487 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
2488 to_thread_alive and to_pid_to_str operations.
2489
2490 2010-03-04 Tom Tromey <tromey@redhat.com>
2491
2492 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
2493 in DWARF 3 and later.
2494 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
2495
2496 2010-03-04 Keith Seitz <keiths@redhat.com>
2497
2498 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
2499 If the filename portion of the linespec was quoted, recheck the
2500 remainder for additional quoting.
2501 (locate_first_half): Skip over completer chars, too.
2502
2503 2010-03-04 Tom Tromey <tromey@redhat.com>
2504
2505 * printcmd.c (printf_command): Pass dummy argument to
2506 printf_filtered.
2507
2508 2010-03-04 Doug Evans <dje@google.com>
2509
2510 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
2511 unwound_fp.
2512
2513 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
2514
2515 2010-03-04 Pedro Alves <pedro@codesourcery.com>
2516
2517 * breakpoint.c (update_watchpoint): Create a sentinel location if
2518 the software watchpoint isn't watching any memory.
2519 (breakpoint_address_bits): Skip dummy software watchpoint locations.
2520
2521 2010-03-04 Pedro Alves <pedro@codesourcery.com>
2522
2523 * utils.c (fputs_maybe_filtered): Check if there's already a top
2524 level interpreter before dereferencing it. If there isn't one,
2525 don't paginate either.
2526
2527 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2528
2529 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
2530 the state right when single stepping.
2531 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
2532 Get the next PC along with the instruction state.
2533 (thumb_get_next_pc): Remove.
2534 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
2535
2536 2010-03-04 Hui Zhu <teawater@gmail.com>
2537
2538 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
2539
2540 2010-03-03 Pedro Alves <pedro@codesourcery.com>
2541
2542 * utils.c (fputs_maybe_filtered): Always disable pagination if the
2543 top level interpreter is MI.
2544
2545 2010-03-03 Stan Shebs <stan@codesourcery.com>
2546
2547 * remote.c (remote_download_tracepoint): Iterate over locations.
2548 * tracepoint.c (validate_actionline): Ditto.
2549 (encode_actions): Add location argument.
2550 (trace_dump_command): Check all locations to see if stepping
2551 frame.
2552
2553 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
2554 Eli Zaretskii <eliz@gnu.org>
2555
2556 * NEWS: Add X86 general purpose registers section.
2557
2558 2010-03-03 Tom Tromey <tromey@redhat.com>
2559
2560 PR mi/11098:
2561 * varobj.c (install_new_value): Handle case where new print_value
2562 is NULL.
2563
2564 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
2565
2566 PR gdb/11345:
2567 * printcmd.c (printf_command): Print end of format string using
2568 printf_filtered.
2569
2570 2010-03-02 Tom Tromey <tromey@redhat.com>
2571
2572 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
2573 * defs.h (read_command_lines_1): Add missing 'void'.
2574 * cli/cli-script.c (recurse_read_control_structure): Add missing
2575 'void'.
2576 (read_next_line): Likewise.
2577 (read_command_lines_1): Likewise.
2578
2579 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
2580
2581 * spu-tdep.c (spu_analyze_prologue): Track instruction to
2582 store backchain as part of prologue.
2583
2584 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2585
2586 * progspace.c (update_address_spaces): Update inferior address spaces
2587 also.
2588
2589 2010-03-02 Doug Evans <dje@google.com>
2590
2591 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
2592 lowpc,highpc args to addrmap_set_empty.
2593
2594 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
2595
2596 * amd64-tdep.c (amd64_byte_names): New.
2597 (amd64_word_names): Likewise.
2598 (amd64_dword_names): Likewise.
2599 (amd64_pseudo_register_name): Likewise.
2600 (amd64_pseudo_register_read): Likewise.
2601 (amd64_pseudo_register_write): Likewise.
2602 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
2603 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
2604 set_gdbarch_pseudo_register_write and
2605 set_tdesc_pseudo_register_name. Don't call
2606 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
2607
2608 * i386-tdep.c (i386_num_mmx_regs): Removed.
2609 (i386_num_pseudo_regs): Likewise.
2610 (i386_byte_names): New.
2611 (i386_word_names): Likewise.
2612 (i386_byte_regnum_p): Likewise.
2613 (i386_word_regnum_p): Likewise.
2614 (i386_mmx_regnum_p): Updated.
2615 (i386_pseudo_register_name): Make it global. Handle byte and
2616 word pseudo-registers.
2617 (i386_pseudo_register_read): Likewise.
2618 (i386_pseudo_register_write): Likewise.
2619 (i386_pseudo_register_type): Handle byte, word and dword
2620 pseudo-registers
2621 (i386_register_reggroup_p): Don't include pseudo
2622 registers, except for MXX, in any register groups. Don't
2623 include pseudo byte, word, dword registers in general_reggroup.
2624 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
2625 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
2626 pseudo-registers after word pseudo-registers. Call
2627 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
2628
2629 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
2630 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
2631 eax_regnum.
2632 (i386_byte_regnum_p): New.
2633 (i386_word_regnum_p): Likewise.
2634 (i386_dword_regnum_p): Likewise.
2635 (i386_pseudo_register_name): Likewise.
2636 (i386_pseudo_register_read): Likewise.
2637 (i386_pseudo_register_write): Likewise.
2638
2639 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
2640
2641 * target-descriptions.c (tdesc_type): Remove
2642 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2643 (tdesc_predefined_types): Likewise.
2644 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
2645 if flag name is empty.
2646 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
2647
2648 * features/i386/32bit-core.xml: Define i386_eflags.
2649 * features/i386/64bit-core.xml: Likewise.
2650
2651 * features/i386/32bit-sse.xml: Define i386_mxcsr.
2652 * features/i386/64bit-sse.xml: Likewise.
2653
2654 * features/i386/amd64-linux.c: Regenerated.
2655 * features/i386/amd64.c: Likewise.
2656 * features/i386/i386-linux.c: Likewise.
2657 * features/i386/i386.c: Likewise.
2658
2659 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
2660
2661 * gdbtypes.c (append_composite_type_field_raw): New.
2662 (append_composite_type_field_aligned): Use the new function.
2663 * gdbtypes.h (append_composite_type_field_raw): Declare.
2664 * target-descriptions.c (struct tdesc_type_field): Add start and end.
2665 (struct tdesc_type_flag): New type.
2666 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
2667 kind. Add size to u.u. Add u.f for flags.
2668 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
2669 (tdesc_free_type): Likewise.
2670 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
2671 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
2672 (tdesc_add_bitfield, tdesc_add_flag): New.
2673 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
2674 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
2675 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
2676 current_type. Add current_type_size and current_type_is_flags.
2677 (tdesc_start_union): Clear the new fields.
2678 (tdesc_start_struct, tdesc_start_flags): New.
2679 (tdesc_start_field): Handle struct fields, including bitfields.
2680 (field_attributes): Make type optional. Add start and end.
2681 (union_children): Rename to struct_union_children.
2682 (union_attributes): Rename to struct_union_attributes. Add optional
2683 size.
2684 (flags_attributes): New.
2685 (feature_children): Add struct and flags.
2686 * features/gdb-target.dtd: Add flags and struct to features.
2687 Make field type optional. Add field start and end.
2688
2689 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
2690
2691 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
2692 (amd64_linux_read_description): Likewise.
2693 (_initialize_amd64_linux_nat): Set to_read_description to
2694 amd64_linux_read_description.
2695
2696 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
2697 (amd64_linux_register_name): Removed.
2698 (amd64_linux_register_type): Likewise.
2699 (amd64_linux_core_read_description): New.
2700 (amd64_linux_init_abi): Set target description to
2701 tdesc_amd64_linux if needed. Support orig_rax in target
2702 description. Don't call set_gdbarch_register_name nor
2703 set_gdbarch_register_type. Call
2704 set_gdbarch_core_read_description.
2705 (_initialize_amd64_linux_tdep): Call
2706 initialize_tdesc_amd64_linux.
2707
2708 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
2709
2710 * amd64-tdep.c: Include "features/i386/amd64.c".
2711 (amd64_register_names): Removed.
2712 (amd64_register_name): Likewise.
2713 (amd64_register_type): Likewise.
2714 (amd64_init_abi): Set num_core_regs and register_names. Set
2715 target description to tdesc_amd64 if needed. Don't call
2716 set_gdbarch_register_name nor set_gdbarch_register_type.
2717 (_initialize_amd64_tdep): New.
2718
2719 * i386-linux-nat.c (i386_linux_read_description): New.
2720 (_initialize_i386_linux_nat): Set to_read_description to
2721 i386_linux_read_description.
2722
2723 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
2724 (i386_linux_register_name): Removed.
2725 (i386_linux_core_read_description): New.
2726 (i386_linux_read_description): Likewise.
2727 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
2728 Set target description to tdesc_i386_linux if needed. Support
2729 orig_eax. Set register_reggroup_p. Call
2730 set_gdbarch_core_read_description.
2731 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
2732
2733 * i386-linux-tdep.h (tdesc_i386_linux): New.
2734
2735 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
2736 with I387_NUM_REGS.
2737
2738 * i386-tdep.c: Include "features/i386/i386.c".
2739 (i386_register_names): Make it const.
2740 (i386_mmx_names): Likewise.
2741 (i386_num_register_names): Removed.
2742 (i386_register_name): Likewise.
2743 (i386_eflags_type): Likewise.
2744 (i386_mxcsr_type): Likewise.
2745 (i386_sse_type): Likewise.
2746 (i386_register_type): Likewise.
2747 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
2748 (i386_pseudo_register_name): New.
2749 (i386_pseudo_register_type): Likewise.
2750 (i386_mmx_type): Make it static.
2751 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
2752 I387_NUM_REGS. Set num_core_regs and register_names. Don't
2753 call set_gdbarch_register_name nor set_gdbarch_register_type.
2754 Set register_reggroup_p. Set target description to tdesc_i386
2755 if needed. Call set_tdesc_pseudo_register_type,
2756 set_tdesc_pseudo_register_name and tdesc_use_registers.
2757 (_initialize_i386_tdep): Call initialize_tdesc_i386.
2758 initialize_tdesc_x86_64.
2759
2760 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
2761 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
2762 register_names, tdesc and register_reggroup_p.
2763 (I386_NUM_FREGS): Removed.
2764 (i386_eflags_type): Likewise.
2765 (i386_mxcsr_type): Likewise.
2766 (i386_mmx_type): Likewise.
2767 (i386_sse_type): Likewise.
2768 (i386_register_name): Likewise.
2769 (i386_regnum): Add I386_MXCSR_REGNUM.
2770 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
2771
2772 * i387-tdep.h (I387_NUM_REGS): New.
2773
2774 * regformats/i386/i386-linux.dat: Generated.
2775 * regformats/i386/i386.dat: Likewise.
2776 * regformats/i386/amd64-linux.dat: Likewise.
2777 * regformats/i386/amd64.dat: Likewise.
2778
2779 * regformats/reg-i386-linux.dat: Removed.
2780 * regformats/reg-i386.dat: Likewise.
2781 * regformats/reg-x86-64-linux.dat: Likewise.
2782 * regformats/reg-x86-64.dat: Likewise.
2783
2784 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
2785
2786 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
2787 cygwin_conv_path API rather than the deprecated
2788 cygwin_conv_to_full_posix_path.
2789 * windows-nat.c:
2790 (GetModuleFileNameExA): Undefine for Cygwin.
2791 (GetModuleFileNameExW): Define for Cygwin.
2792 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
2793 Call GetModuleFileNameExW and convert path to POSIX using
2794 cygwin_conv_path.
2795 (windows_make_so): Always define p. Drop unused variable m.
2796 Don't use Win32 functions to check file existance, rather use
2797 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
2798 Use canonicalize_file_name to get full path.
2799 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
2800 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
2801 use correct target buffer size in call to WideCharToMultiByte.
2802 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
2803 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
2804 (windows_create_inferior): Convert all paths and arguments to wchar_t
2805 and use CreateProcessW on Cygwin.
2806 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
2807 (bad_GetModuleFileNameExA): Undefine for Cygwin.
2808 (bad_GetModuleFileNameExW): Define for Cygwin.
2809 (_initialize_loadable): Load GetModuleFileNameExW into
2810 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
2811
2812 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
2813
2814 PR python/11036
2815 * python/py-frame.c (frapy_read_var): Add block argument and logic
2816 to cope with user provided blocks.
2817
2818 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2819
2820 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
2821 New comment.
2822
2823 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
2824
2825 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
2826 (COMMON_OBS): ... to here since it's used unconditionally.
2827 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
2828 (SFILES): To here.
2829
2830 2010-02-26 David Daney <ddaney@caviumnetworks.com>
2831
2832 * mips-linux-tdep.c: Update struct sigframe comments.
2833 (SIGFRAME_CODE_OFFSET): Delete macro.
2834 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
2835 this_frame's sp.
2836 (mips_linux_n32n64_sigframe_init): Same.
2837
2838 2010-02-26 Kevin Buettner <kevinb@redhat.com>
2839
2840 * remote-mips.c (mips_load): Don't use pseudo-register when
2841 invalidating regcache.
2842
2843 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2844
2845 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
2846
2847 2010-02-26 Pedro Alves <pedro@codesourcery.com>
2848
2849 * NEWS: Add "New targets" section, and mention ARM Symbian
2850 support.
2851
2852 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
2853
2854 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
2855 add ADDR_SIZE member.
2856 (allocate_piece_closure): Update.
2857 (copy_pieced_value_closure): Likewise.
2858 (dwarf2_evaluate_loc_desc): Likewise.
2859 (read_pieced_value): Use DWARF address size instead of
2860 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
2861
2862 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
2863 Tom Tromey <tromey@redhat.com>
2864
2865 * python/py-type.c (typy_lookup_typename): Add in block argument.
2866 If provided restrict lookup to specified blocks.
2867 (gdbpy_lookup_type): Likewise.
2868 (typy_lookup_type): Likewise.
2869
2870 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
2871
2872 Symbian config
2873
2874 gdb/
2875 * arm-symbian-tdep.c: New.
2876 * configure.tgt (arm*-*-symbianelf*): New target.
2877 (*-*-symbianelf*): New OS.
2878 * osabi.c (gdb_osabi_names): Add Symbian.
2879 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
2880 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
2881 (ALLDEPFILES): Add arm-symbian-tdep.c.
2882
2883 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
2884
2885 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
2886
2887 2010-02-24 Pedro Alves <pedro@codesourcery.com>
2888
2889 * mi/mi-main.c (mi_cmd_execute): Fix typo.
2890
2891 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
2892 Tom Tromey <tromey@redhat.com>
2893 Thiago Jung Bauermann <bauerman@br.ibm.com>
2894
2895 * python/python.c (_initialize_python): Call
2896 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
2897 gdbpy_initialize_blocks.
2898 * python/python-internal.h: Declare struct symbol, block and
2899 symtab_and_line. Declare block_object_type and
2900 symbol_object_type
2901 (gdbpy_lookup_symbol gdbpy_block_for_pc)
2902 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
2903 (symbol_to_symbol_object, block_to_block_object)
2904 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
2905 (gdbpy_initialize_blocks ): Declare.
2906 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
2907 (frapy_select): Add methods.
2908 (frapy_read_var): Add symbol branch.
2909 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
2910 py-block.
2911 (SUBDIR_PYTHON_SRCS): Likewise.
2912 (py-symbol.o): New rule.
2913 (py-symtab.o): Likewise.
2914 (py-block.o): Likewise.
2915 * python/py-symbol.c: New file.
2916 * python/py-symtab.c: Likewise.
2917 * python/py-block.c: Likewise.
2918
2919 2010-02-24 Pedro Alves <pedro@codesourcery.com>
2920
2921 PR gdb/11321
2922
2923 * inferior.h (prepare_for_detach): Declare.
2924 (struct inferior) <detaching>: New field.
2925 * infrun.c (prepare_for_detach): New.
2926 (handle_inferior_event) <random signal>: Don't stop if detaching.
2927 * target.c (target_detach): Call prepare_for_detach.
2928
2929 2010-02-24 Pedro Alves <pedro@codesourcery.com>
2930
2931 Per-process displaced stepping queue.
2932
2933 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
2934 (displaced_step_gdbarch, displaced_step_closure,
2935 (displaced_step_original, displaced_step_copy): Move globals to
2936 this...
2937 (struct displaced_step_inferior_state): ... new structure.
2938 (displaced_step_inferior_states): New global.
2939 (get_displaced_stepping_state, add_displaced_stepping_state)
2940 (remove_displaced_stepping_state, infrun_inferior_exit): New
2941 functions.
2942 (displaced_step_clear): Add displaced_step_inferior_state
2943 parameter, and adjust to handle it.
2944 (displaced_step_clear_cleanup): Parameter is now a
2945 displaced_step_inferior_state. Adjust.
2946 (displaced_step_prepare): Adjust.
2947 (displaced_step_fixup, displaced_step_fixup)
2948 (infrun_thread_ptid_changed, resume): Adjust.
2949 (init_wait_for_inferior): Don't call displaced_step_clear.
2950 (infrun_thread_stop_requested): Rewrite.
2951 (_initialize_infrun): Install infrun_inferior_exit as
2952 inferior_exit observer.
2953
2954 2010-02-24 Pedro Alves <pedro@codesourcery.com>
2955
2956 * inferior.h (ptid_match): Declare.
2957 * infrun.c (ptid_match): New.
2958 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
2959 (handle_notification): Add debug output.
2960 * linux-nat.c (ptid_match): Delete.
2961
2962 2010-02-24 David S. Miller <davem@davemloft.net>
2963
2964 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
2965 * syscalls/sparc-linux.xml: New.
2966 * syscalls/sparc64-linux.xml: New.
2967 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
2968 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
2969 (sparc32_linux_get_syscall_number): New function.
2970 (sparc32_linux_init_abi): Set syscall XML file name and hook up
2971 syscall number fetcher.
2972 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
2973 (sparc64_linux_get_syscall_number): New function.
2974 (sparc64_linux_init_abi): Set syscall XML file name and hook up
2975 syscall number fetcher.
2976
2977 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
2978
2979 Multiexec MI
2980
2981 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
2982 * inferior.c (add_inferior_silent): Notify inferior_added
2983 observer.
2984 (delete_inferior_1): Notify inferior_removed observer.
2985 (exit_inferior_1): Pass inferior, not pid, to observer.
2986 (inferior_appeared): Likewise.
2987 (add_inferior_with_spaces): New.
2988 (add_inferior_command): Use the above.
2989 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
2990 Declare.
2991
2992 * inflow.c (inflow_inferior_exit): Likewise.
2993 * jit.c (jit_inferior_exit_hook): Likewise.
2994
2995 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
2996 remove-inferior.
2997 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
2998 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
2999 (report_initial_inferior): New.
3000 (mi_inferior_removed): Register the above. Make sure
3001 inferior_added observer is called on the first inferior.
3002 (mi_new_thread, mi_thread_exit): Thread group is now identified by
3003 inferior number, not pid.
3004 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
3005 affected.
3006 * mi/mi-main.c (current_context): New.
3007 (proceed_thread_callback): Use typed closure.
3008 Proceed everything if pid is 0. Most implementation split into
3009 (proceed_thread): ... this.
3010 (run_one_inferior): New.
3011 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
3012 Adjust for multiexec behaviour.
3013 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
3014 (mi_cmd_execute): Handle the 'thread-group' option here.
3015 Do some extra checks.
3016 * mi-parse.c (mi_parse): Handle the --all and --thread-group
3017 options.
3018 * mi-parse.h (struct mi_parse): New fields all and thread_group.
3019
3020 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
3021
3022 Make -exec-run a proper MI commands.
3023
3024 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
3025 * mi/mi-cmds.c (mi_cmds): Adjust.
3026 * mi/mi-main.c (mi_cmd_exec_run): New.
3027
3028 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3029 Stan Shebs <stan@codesourcery.com>
3030
3031 * tracepoint.h (set_traceframe_number)
3032 (cleanup_restore_current_traceframe): Declare.
3033 * tracepoint.c (set_traceframe_number): New.
3034 (struct current_traceframe_cleanup): New.
3035 (do_restore_current_traceframe_cleanup)
3036 (restore_current_traceframe_cleanup_dtor)
3037 (make_cleanup_restore_current_traceframe): New.
3038 * infrun.c: Include tracepoint.h.
3039 (fetch_inferior_event): Switch out and in of tfind mode.
3040
3041 2010-02-24 Pedro Alves <pedro@codesourcery.com>
3042
3043 * breakpoint.c (breakpoint_init_inferior): Also delete
3044 bp_shlib_event breakpoints.
3045 * solib-frv.c (enable_break): Remove call to
3046 remove_solib_event_breakpoints.
3047 * solib-svr4.c (enable_break): Ditto.
3048 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
3049 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
3050 * solib-som.c (som_solib_create_inferior_hook): Ditto.
3051 * solib-spu.c (spu_enable_break): Ditto.
3052
3053 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
3054
3055 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
3056
3057 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
3058
3059 * varobj.c (varobj_update): Avoid non-constants in initializers.
3060
3061 2010-02-23 Tom Tromey <tromey@redhat.com>
3062
3063 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
3064 handle big-endian values.
3065 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
3066
3067 2010-02-22 Pedro Alves <pedro@codesourcery.com>
3068
3069 PR9605
3070
3071 gdb/
3072 * breakpoint.c (insert_bp_location): If inserting the read
3073 watchpoint failed, fallback to an access watchpoint.
3074 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
3075 if the value changed, if not watching the same memory for writes.
3076 (watchpoint_locations_match): Add comment.
3077 (update_global_location_list): Copy the location's watchpoint type.
3078 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
3079 handle read watchpoints here.
3080 (i386_insert_watchpoint): Read watchpoints aren't supported.
3081 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
3082 packets.
3083 * target.h (target_insert_watchpoint): Update description.
3084
3085 2010-02-19 Tom Tromey <tromey@redhat.com>
3086
3087 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
3088 * m2-typeprint.c (m2_print_type): Update.
3089 * gdbtypes.c (recursive_dump_type): Update.
3090 (copy_type_recursive): Update.
3091 * c-typeprint.c (c_type_print_varspec_prefix): Update.
3092 (c_type_print_base): Update.
3093 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
3094 Remove.
3095 (struct cplus_struct_type) <ntemplate_args>: Remove.
3096 <struct template_arg>: Remove.
3097 <is_dynamic>: Move earlier.
3098 (TYPE_TEMPLATE_ARGS): Remove.
3099 (TYPE_NTEMPLATE_ARGS): Remove.
3100 (TYPE_TEMPLATE_ARG): Remove.
3101
3102 2010-02-19 Tom Tromey <tromey@redhat.com>
3103
3104 PR c++/8693, PR c++/9496:
3105 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
3106 * c-exp.y (lex_one_token): Rename from yylex. Don't call
3107 write_dollar_variable. Don't try to classify NAME tokens.
3108 (token_and_value): New type.
3109 (token_fifo, popping, name_obstack): New globals.
3110 (classify_name): New function.
3111 (classify_inner_name): Likewise.
3112 (yylex): Likewise.
3113 (VARIABLE): Now has type sval.
3114 (exp : VARIABLE): Call write_dollar_variable.
3115 (qualified_name): Use TYPENAME, not typebase. Add production for
3116 multiple "::" instances.
3117 (variable): Use name_not_typename.
3118 (qualified_type): Remove.
3119 (typebase): Update.
3120
3121 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3122
3123 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
3124 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
3125 found by bfd_get_section_by_name.
3126 * symfile.h (struct section_addr_info) <sectindex>: New comment.
3127
3128 2010-02-19 Joel Brobecker <brobecker@adacore.com>
3129
3130 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
3131 7.0 section" into "Changes in 7.1".
3132
3133 2010-02-19 Joel Brobecker <brobecker@adacore.com>
3134
3135 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
3136 * version.in: Bump version to 7.1.50.20100219-cvs.
3137
3138 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
3139
3140 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
3141 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
3142
3143 2010-02-17 Tom Tromey <tromey@redhat.com>
3144
3145 * NEWS: Add Python API Improvements section.
3146
3147 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
3148
3149 * NEWS: Correct typo.
3150
3151 2010-02-17 Tom Tromey <tromey@redhat.com>
3152
3153 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
3154
3155 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3156
3157 * symfile.c (build_section_addr_info_from_objfile): Include sections
3158 only if they are SEC_ALLOC or SEC_LOAD.
3159
3160 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
3161
3162 PR shlibs/11293
3163 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
3164 of ULONGEST for address size.
3165
3166 2010-02-17 Tom Tromey <tromey@redhat.com>
3167
3168 * NEWS: Add C++ improvements section.
3169
3170 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
3171
3172 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
3173 PyThreadState_Swap): Avoid "statement with no effect" warning.
3174
3175 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3176
3177 * solib-svr4.c (enable_break <target_auxv_search>): New variable
3178 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
3179
3180 2010-02-17 Tristan Gingold <gingold@adacore.com>
3181 Petr Hluzín <petr.hluzin@gmail.com>
3182
3183 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
3184 gdb_assert. Fix info->size for SIG prologue.
3185
3186 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3187
3188 * infcmd.c (show_inferior_tty_command): Check for NULL.
3189 Correct output message.
3190
3191 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3192
3193 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
3194 FUNCTION contains parentheses. Improve removal of a trailing
3195 single quote.
3196
3197 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3198
3199 * gcore.c (do_bfd_delete_cleanup): New function.
3200 (gcore_command): Use it. Discard the cleanup after success.
3201 (gcore_copy_callback): Delete dead code.
3202
3203 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
3204
3205 * symfile.c (addr_info_make_relative): Always use
3206 find_lowest_section.
3207
3208 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
3209
3210 * NEWS: Added entry for namespace fixes.
3211
3212 2010-02-15 Tom Tromey <tromey@redhat.com>
3213
3214 * dwarf2read.c (guess_structure_name): Allocate name on the
3215 objfile obstack.
3216
3217 2010-02-15 Tom Tromey <tromey@redhat.com>
3218
3219 * c-typeprint.c (c_type_print_base): Reverse order of test.
3220
3221 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3222
3223 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
3224 initialize it from ELF BFD. Extend the prelink condition by it.
3225
3226 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3227
3228 * defs.h (parse_pid_to_attach): New.
3229 * utils.c (parse_pid_to_attach): New.
3230 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
3231 * gnu-nat.c (gnu_attach): Likewise.
3232 * nto-procfs.c (procfs_attach): Likewise.
3233 * procfs.c (procfs_attach): Likewise.
3234 * windows-nat.c (windows_attach): Likewise.
3235 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
3236 * inf-ttrace.c (inf_ttrace_attach): Likewise.
3237 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
3238 check.
3239
3240 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
3241
3242 * MAINTAINERS: Add myself for write after approval privileges.
3243
3244 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3245
3246 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
3247 block.
3248
3249 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3250
3251 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
3252 only if INFO_VERBOSE.
3253
3254 2010-02-12 Tomas Holmberg <th@virtutech.com>
3255
3256 * mi/mi-main.c: Added the --reverse flag to the following MI
3257 commands: exec-continue, exec-finish, exec-next, exec-step,
3258 exec-next-instruction, exec-step-instruction. This is to
3259 support reverse execution over the MI interface to gdb.
3260
3261 2010-02-12 Pedro Alves <pedro@codesourcery.com>
3262
3263 * tracepoint.c (_initialize_tracepoint): Specify that the address
3264 range of `tfind outsize' is exclusive, and that the address range
3265 of `tfind range' is inclusive, in the commands' help strings.
3266
3267 2010-02-12 Joel Brobecker <brobecker@adacore.com>
3268
3269 Spurious "dll not found" error messages on x64-windows.
3270 * windows-nat.c: Add include of complaints.h.
3271 (handle_unload_dll): Change dll-not-found error into a complaint.
3272
3273 2010-02-12 Pedro Alves <pedro@codesourcery.com>
3274
3275 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
3276 bp_tracepoint and bp_fast_tracepoint, not
3277 bp_loc_software_breakpoint.
3278 (update_global_location_list): Tracepoints are never duplicates of
3279 anything.
3280
3281 2010-02-12 Pedro Alves <pedro@codesourcery.com>
3282
3283 * breakpoint.c (break_command_really): Change return type to int.
3284 Return false if no breakpoint was created, true otherwise.
3285 (trace_command): Don't set the tracepoint count if no tracepoint
3286 was created.
3287 (ftrace_command): Ditto.
3288 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
3289 created in the breakpoints table.
3290
3291 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3292 Ulrich Weigand <uweigand@de.ibm.com>
3293
3294 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
3295
3296 2010-02-11 Pedro Alves <pedro@codesourcery.com>
3297
3298 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
3299 the offset value isn't of integral type.
3300
3301 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3302
3303 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
3304 New.
3305
3306 2010-02-11 Pedro Alves <pedro@codesourcery.com>
3307
3308 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
3309 non-subscriptable types.
3310 * valarith.c (binop_types_user_defined_p): New, abstracted out
3311 from ...
3312 (binop_user_defined_p): ... this.
3313 * value.h (binop_types_user_defined_p): Declare.
3314
3315 2010-02-11 Pedro Alves <pedro@codesourcery.com>
3316
3317 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
3318 Merge uploaded TSVs before merging uploaded tracepoints.
3319
3320 2010-02-11 Pedro Alves <pedro@codesourcery.com>
3321
3322 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
3323
3324 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
3325
3326 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
3327 whitespace character after a dot in comment.
3328 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
3329 Likewise.
3330 (list_args_or_locals): For the 'all' (that is
3331 -stack-list-variables) case, always output list of tuples.
3332 Output 'arg' field if variable is argument.
3333
3334 2010-02-10 Tom Tromey <tromey@redhat.com>
3335
3336 * parser-defs.h (parser_debug): Declare.
3337 * parse.c (_initialize_parse): Install "debug parser" set/show
3338 command.
3339 (parser_debug): New global.
3340 (show_parserdebug): New function.
3341 * c-exp.y (c_parse): Set yydebug.
3342
3343 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
3344
3345 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
3346 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
3347 (tdesc_predefined_types): Add i387_ext, i386_eflags and
3348 i386_mxcsr.
3349 (tdesc_find_type): New.
3350 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
3351 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
3352
3353 * target-descriptions.h (tdesc_find_type): New.
3354
3355 2010-02-10 Michael Snyder <msnyder@vmware.com>
3356
3357 * gdb-gdb.py: Comment fix.
3358
3359 2010-02-09 Tristan Gingold <gingold@adacore.com>
3360
3361 * machoread.c (macho_symfile_relocate): New function.
3362 (macho_sym_fns): Use macho_symfile_relocate instead of
3363 default_symfile_relocate.
3364 (macho_oso_data): New type.
3365 (current_oso): New variable.
3366 (macho_add_oso_symfile): Do not compute section_addr_info, but
3367 instead set vma of sections.
3368 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
3369 Set and clear current_oso.
3370
3371 2010-02-09 Joel Brobecker <brobecker@adacore.com>
3372
3373 Wrong type description for tagged type parameter.
3374 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
3375 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
3376 reference to a tagged type.
3377
3378 2010-02-09 Tristan Gingold <gingold@adacore.com>
3379
3380 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
3381 brothers of the parent.
3382
3383 2010-02-08 Tom Tromey <tromey@redhat.com>
3384
3385 PR c++/8017:
3386 * value.h: Update.
3387 * valops.c (search_struct_field): Make 'name' const.
3388 (search_struct_method): Likewise.
3389 (find_method_list): Make 'method' const.
3390 (value_struct_elt): Make 'name' and 'err' const.
3391 (value_find_oload_method_list): Make 'method' const.
3392 (find_overload_match): Make 'name' const.
3393 * eval.c (evaluate_subexp_standard): New locals function,
3394 function_name.
3395 <OP_FUNCALL>: Handle OP_SCOPE specially.
3396
3397 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3398
3399 * infrun.c (handle_inferior_event): Do not look up regcache
3400 for exited processes.
3401
3402 2010-02-08 Chris Moller <moller@mollerware.com>
3403
3404 PR gdb/10728
3405 * valarith.c (value_ptrdiff): Added a test for a zero type length,
3406 warn if found, and assume length = 1.
3407
3408 2010-02-08 Chris Moller <cmoller@redhat.com>
3409
3410 PR gdb/9067
3411 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
3412 cp_print_static_field) Fix use of obstacks.
3413
3414 2010-02-08 Pedro Alves <pedro@codesourcery.com>
3415
3416 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
3417 resumed LWPs as resumed.
3418 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
3419 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
3420 of throwing an internal error. If an LWP of a process we're not
3421 waiting for reports a signal, don't force collecting a SIGSTOP,
3422 and if it was breakpoint hit in non-stop mode, cancel it. Don't
3423 go through all LWPs cancelling breakpoints in non-stop mode.
3424 (resume_stopped_resumed_lwps): New.
3425 (linux_nat_wait): Use it.
3426
3427 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
3428
3429 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
3430 i386/amd64 and i386/amd64-linux.
3431 (i386/i386-expedite): New.
3432 (i386/i386-linux-expedite): Likewise.
3433 (i386/amd64-expedite):Likewise.
3434 (i386/amd64-linux-expedite): Likewise.
3435 ($(outdir)/i386/i386-linux.dat): Likewise.
3436 ($(outdir)/i386/amd64.dat): Likewise.
3437 ($(outdir)/i386/amd64-linux.dat): Likewise.
3438
3439 * features/i386/32bit-core.xml: New.
3440 * features/i386/32bit-linux.xml: Likewise.
3441 * features/i386/32bit-sse.xml: Likewise.
3442 * features/i386/64bit-core.xml: Likewise.
3443 * features/i386/64bit-linux.xml: Likewise.
3444 * features/i386/64bit-sse.xml: Likewise.
3445 * features/i386/i386-linux.xml: Likewise.
3446 * features/i386/i386.xml: Likewise.
3447 * features/i386/amd64-linux.xml: Likewise.
3448 * features/i386/amd64.xml: Likewise.
3449 * features/i386/i386-linux.c: Likewise.
3450 * features/i386/i386.c: Likewise.
3451 * features/i386/amd64-linux.c: Likewise.
3452 * features/i386/amd64.c: Likewise.
3453
3454 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
3455
3456 PR c++/7935:
3457 * cp-support.h: Added char* alias element to using_direct data
3458 struct.
3459 (cp_add_using): Added char* alias argument.
3460 (cp_add_using_directive): Ditto.
3461 * cp-namespace.c: Updated with the above changes.
3462 (cp_lookup_symbol_imports): Check for aliases.
3463 * dwarf2read.c (read_import_statement): Figure out local alias
3464 for the import and pass it on to cp_add_using.
3465 (read_namespace): Pass alias argument to cp_add_using.
3466
3467 2010-02-05 Hui Zhu <teawater@gmail.com>
3468
3469 * defs.h (gdb_bfd_errmsg): New extern.
3470 * exec.c (exec_file_attach): Change bfd_errmsg to
3471 gdb_bfd_errmsg.
3472 * utils.c (AMBIGUOUS_MESS1): New macro.
3473 (AMBIGUOUS_MESS2): New macro.
3474 (gdb_bfd_errmsg): New function.
3475
3476 2010-02-04 Doug Evans <dje@google.com>
3477
3478 * solib-svr4.c (enable_break): Add comment.
3479
3480 2010-02-04 Anthony Green <green@moxielogic.com>
3481
3482 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
3483 gracefully.
3484
3485 2010-02-04 Tom Tromey <tromey@redhat.com>
3486
3487 * valops.c (search_struct_field): Account for
3488 value_embedded_offset. Fix check for virtual base past the end of
3489 the object. Use value_copy when making a slice of the value.
3490
3491 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
3492
3493 PR tui/9622
3494 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
3495 only if gdb_stdout is a tty.
3496
3497 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
3498
3499 * target-descriptions.c: Include "osabi.h".
3500 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
3501 OSABI.
3502
3503 2010-02-04 Tristan Gingold <gingold@adacore.com>
3504
3505 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
3506 (macho_symtab_read): Adjust calls to macho_add_oso.
3507 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
3508 (macho_symfile_read): Adjust call to macho_oso_symfile.
3509 (macho_new_init): Move this function after declarations.
3510 (macho_symfile_init): Ditto.
3511 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
3512 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
3513
3514 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
3515
3516 Include MI command in remotelog.
3517
3518 * mi/mi-main.c (mi_execute_command): Call target_log_command.
3519
3520 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
3521
3522 * remote.c (remote_state): Remove gdbarch.
3523 (init_remote_state): Don't set gdbarch.
3524 (remote_query_supported): Pass target_gdbarch instead of
3525 rs->gdbarch to gdbarch_qsupported.
3526
3527 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
3528
3529 * gdbarch.sh: Add qsupported.
3530
3531 * gdbarch.c: Regenerated.
3532 * gdbarch.h: Likewise.
3533
3534 * remote.c (remote_state): Add gdbarch.
3535 (init_remote_state): Set gdbarch.
3536 (remote_query_supported): Support gdbarch_qsupported.
3537
3538 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
3539
3540 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
3541 __FreeBSD_kernel_version.
3542
3543 2010-02-03 Tristan Gingold <gingold@adacore.com>
3544
3545 * symfile.h (struct sym_fns): Add sym_relocate field.
3546 (default_symfile_relocate): New prototype.
3547 (symfile_relocate_debug_section): First argument is now an objfile.
3548 * symfile.c (default_symfile_relocate): Rename from
3549 symfile_relocate_debug_section, first argument is now an objfile.
3550 (symfile_relocate_debug_section): New function.
3551 * coffread.c (coff_sym_fns): Set sym_relocate field.
3552 * somread.c (som_sym_fns): Ditto.
3553 * mipsread.c (ecoff_sym_fns): Ditto.
3554 * machoread.c (macho_sym_fns): Ditto.
3555 * elfread.c (elf_sym_fns): Ditto.
3556 * dwarf2read.c (dwarf2_read_section): Ditto.
3557 * xcoffread.c (xcoff_sym_fns): Ditto.
3558 * dbxread.c (aout_sym_fns): Ditto.
3559 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
3560 (elfstab_build_psymtabs): Ditto.
3561
3562 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
3563
3564 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
3565
3566 2010-02-02 Tom Tromey <tromey@redhat.com>
3567
3568 * valops.c (value_cast_structs): Try downcasting using the RTTI
3569 type.
3570
3571 2010-02-02 Tom Tromey <tromey@redhat.com>
3572
3573 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
3574 (gnuv2_baseclass_offset): Now static.
3575 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
3576 * gnu-v2-abi.h: Remove.
3577
3578 2010-02-02 Tom Tromey <tromey@redhat.com>
3579
3580 * m2-typeprint.c (m2_record_fields): Don't use
3581 TYPE_DECLARED_TYPE.
3582 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
3583 (struct main_type) <flag_declared_class>: New field.
3584 (struct cplus_struct_type) <declared_type>: Remove.
3585 <ntemplate_args>: Move earlier.
3586 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
3587 (DECLARED_TYPE_TEMPLATE): Remove.
3588 (TYPE_DECLARED_TYPE): Remove.
3589 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
3590 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
3591 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
3592 TYPE_DECLARED_TYPE.
3593
3594 2010-02-02 Tom Tromey <tromey@redhat.com>
3595
3596 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
3597 * valops.c (search_struct_field): Compute nbases after calling
3598 CHECK_TYPEDEF.
3599 (check_field): Call CHECK_TYPEDEF.
3600 * cp-valprint.c (cp_print_value): Pass correct address to
3601 baseclass_offset. Fix check for virtual base past the end of the
3602 object. Don't offset address passed to cp_print_value_fields or
3603 apply_val_pretty_printer.
3604 (cp_print_value_fields): Fix call to val_print.
3605 (cp_print_value_fields_rtti): New function.
3606 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
3607 * p-valprint.c (pascal_object_print_value_fields): Fix call to
3608 val_print.
3609 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
3610 offset to address.
3611 * language.h (struct language_defn) <la_val_print>: Document.
3612 * c-lang.h (cp_print_value_fields_rtti): Declare.
3613
3614 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3615
3616 PR libc/11214:
3617 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
3618 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
3619 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
3620
3621 2010-02-01 Michael Matz <matz@suse.de>
3622 Daniel Jacobowitz <dan@codesourcery.com>
3623
3624 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
3625 functions use a frame pointer.
3626
3627 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3628
3629 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
3630 by a conditional setting DYN_ADDR. Use DYN_ADDR.
3631 * config/djgpp/fnchange.lst: Add translations for
3632 symbol-without-target_section.exp and symbol-without-target_section.c.
3633
3634 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3635
3636 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
3637 (remote_breakpoint_for_pc): Correct invalid_p check.
3638 * gdbarch.c: Regenerated.
3639
3640 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3641
3642 * arm-tdep.c (arm_find_mapping_symbol): New function, from
3643 arm_pc_is_thumb.
3644 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
3645 (extend_buffer_earlier): New function.
3646 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
3647 (arm_adjust_breakpoint_address): New function.
3648 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
3649
3650 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3651
3652 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
3653 (arm_linux_thumb2_le_breakpoint): New constants.
3654 (arm_linux_init_abi): Set thumb2_breakpoint and
3655 thumb2_breakpoint_size.
3656 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
3657 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
3658 Implement support for single stepping through IT blocks if
3659 a 32-bit Thumb breakpoint instruction is available.
3660 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
3661 is available, use it when needed.
3662 (arm_remote_breakpoint_from_pc): New function.
3663 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
3664 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
3665 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
3666
3667 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
3668
3669 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
3670 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
3671 * gdbarch.c, gdbarch.h: Regenerated.
3672 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
3673 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
3674 gdbarch_remote_breakpoint_from_pc.
3675
3676 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
3677
3678 * infrun.c (prepare_to_proceed): Handle other signals which might
3679 match a breakpoint.
3680 (handle_inferior_event): Move the check for unusual breakpoint
3681 signals earlier.
3682
3683 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
3684
3685 amd64 - function returning record with field straddling 2 registers.
3686 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
3687 a record of length <= 16 in which a field straddles the two
3688 eightbytes.
3689
3690 2010-01-29 Joel Brobecker <brobecker@adacore.com>
3691
3692 Implement return values on amd64-windows.
3693 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
3694 (amd64_windows_return_value): New function.
3695 (amd64_windows_init_abi): Call set_gdbarch_return_value with
3696 amd64_windows_return_value.
3697
3698 2010-01-29 Joel Brobecker <brobecker@adacore.com>
3699
3700 amd64-windows: 32 bytes allocated on stack by caller for integer
3701 parameter registers.
3702 * i386-tdep.h (struct gdbarch_tdep): Add new field
3703 integer_param_regs_saved_in_caller_frame.
3704 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3705 tdep->integer_param_regs_saved_in_caller_frame to 1.
3706 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
3707 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
3708
3709 2010-01-29 Joel Brobecker <brobecker@adacore.com>
3710
3711 amd64-windows: memory args passed by pointer during function calls.
3712 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
3713 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
3714 where tdep->memory_args_by_pointer is non-zero.
3715 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3716 tdep->memory_args_by_pointer to 1.
3717
3718 2010-01-29 Joel Brobecker <brobecker@adacore.com>
3719
3720 amd64-windows: Integer parameters in function calls.
3721 * i386-tdep.h (enum amd64_reg_class): New, moved here from
3722 amd64-tdep.c.
3723 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
3724 call_dummy_integer_regs, and classify.
3725 * amd64-tdep.h (amd64_classify): Add declaration.
3726 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
3727 (amd64_reg_class): Delete, moved to i386-tdep.h.
3728 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
3729 Replace call to amd64_classify by call to tdep->classify.
3730 (amd64_push_arguments): Get the list of registers to use for
3731 passing integer parameters from the gdbarch tdep structure,
3732 rather than using a hardcoded one. Replace calls to amd64_classify
3733 by calls to tdep->classify.
3734 (amd64_push_dummy_call): Get the register number used for
3735 the "hidden" argument from tdep->call_dummy_integer_regs.
3736 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
3737 and tdep->call_dummy_integer_regs. Set tdep->classify.
3738 * amd64-windows-tdep.c: Add include of gdbtypes.h.
3739 (amd64_windows_dummy_call_integer_regs): New static global.
3740 (amd64_windows_classify): New function.
3741 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
3742 tdep->call_dummy_integer_regs and tdep->classify.
3743
3744 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
3745
3746 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
3747 for the new regcache. All callers updated.
3748 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
3749 (get_thread_arch_regcache): Do not set aspace here.
3750 * regcache.h (regcache_xmalloc): Update declaration.
3751
3752 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
3753 regcache_xmalloc updated.
3754
3755 2010-01-28 Joel Brobecker <brobecker@adacore.com>
3756
3757 Another -Wunused-function error in procfs.c (sparc-solaris)
3758 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
3759 Only define if SYS_syssgi is defined.
3760 (remove_dbx_link_breakpoint): Delete declaration. Move up.
3761 (dbx_link_addr, insert_dbx_link_bpt_in_file)
3762 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
3763 is itself defined.
3764
3765 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
3766
3767 * windows-nat.c (windows_initialization_done): New variable.
3768 (get_windows_debug_event): Issue error when process dies before
3769 completely initializing.
3770 (do_initial_windows_stuff): Set flag to indicate when we are done with
3771 the initial steps of attaching to the child.
3772
3773 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3774
3775 * symtab.h (struct symbol <symtab>): New comment on NULL values.
3776
3777 2010-01-27 Doug Evans <dje@google.com>
3778
3779 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
3780
3781 * breakpoint.c (bpstat_stop_status): Delete useless code.
3782
3783 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3784
3785 * printcmd.c (display_uses_solib_p): Remove variable section. Access
3786 objfile via SYMBOL_SYMTAB.
3787
3788 2010-01-26 Tom Tromey <tromey@redhat.com>
3789
3790 PR exp/7643:
3791 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
3792 coerce_array on result.
3793
3794 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
3795
3796 * cp-namespace.c (cp_lookup_symbol_namespace): Added
3797 search_parent argument.
3798 (cp_add_using): Initialize 'searched' field.
3799 (reset_directive_searched): New function.
3800 * cp-support.h: Add 'searched' field to using_direct struct.
3801 (cp_lookup_symbol_imports): Ditto.
3802 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
3803 Perform recursive search.
3804 Implement non parent search.
3805 * valops.c (value_maybe_namespace_elt): Updated.
3806
3807 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
3808
3809 PR gdb/10929:
3810 * dwarf2read.c (read_lexical_block_scope): Create blocks for
3811 scopes which contain using directives even if they contain no
3812 declarations.
3813 * symtab.c (lookup_symbol_aux): Pass lowest level block to
3814 la_lookup_symbol_nonlocal.
3815 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
3816 cp_lookup_symbol_namespace.
3817 (cp_lookup_symbol_namespace): Perform an import lookup at every
3818 block level.
3819 (cp_lookup_symbol_imports): New function.
3820 (cp_lookup_symbol_in_namespace): New function.
3821
3822 2010-01-25 Tom Tromey <tromey@redhat.com>
3823
3824 PR gdb/11049:
3825 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
3826 result.
3827
3828 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3829
3830 * configure.ac: Only use host_os part when disabling TUI on osf.
3831 Use test to check variables, prefix strings with x.
3832 * configure: Regenerate.
3833
3834 * solib-osf.c (osf_current_sos): Initialize tail.
3835
3836 2010-01-25 gingold <gingold@adacore.com>
3837
3838 * windows-nat.c (windows_continue): Use %x to print thread id.
3839 (get_windows_debug_event): Ditto.
3840
3841 2010-01-22 Tom Tromey <tromey@redhat.com>
3842
3843 PR symtab/11199:
3844 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
3845 type and arguments. Use smash_to_methodptr_type.
3846 (read_structure_type): Call quirk_gcc_member_function_pointer
3847 later.
3848 * gdbtypes.h (smash_to_methodptr_type): Declare.
3849 * gdbtypes.c (smash_to_methodptr_type): New function.
3850 (lookup_methodptr_type): Use it.
3851
3852 2010-01-21 Tom Tromey <tromey@redhat.com>
3853
3854 PR symtab/11198:
3855 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
3856 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
3857 * glibc-tdep.c (find_minsym_and_objfile): Remove.
3858 (glibc_skip_solib_resolver): Use
3859 lookup_minimal_symbol_and_objfile.
3860
3861 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
3862
3863 * inflow.c (check_syscall): Guard by #if clause for GO32 and
3864 WIN32 targets.
3865
3866 2010-01-20 Tom Tromey <tromey@redhat.com>
3867
3868 PR backtrace/10770:
3869 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
3870 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
3871 * dwarf2expr.c (new_dwarf_expr_context): Allocate
3872 dwarf_stack_values, not CORE_ADDRs.
3873 (execute_stack_op): Change DW_OP_div and comparison operators to
3874 use signed operands.
3875
3876 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
3877
3878 Per-inferior args and tty and environment.
3879
3880 * infcmd.c (inferior_args): Rename to ...
3881 (inferior_args_scratch): ... this.
3882 (inferior_io_terminal): Rename to ...
3883 (inferior_io_terminal_scratch): ... this.
3884 (inferior_argc, inferior_argv): Remove.
3885 (set_inferior_io_terminal, get_inferior_io_terminal): Store
3886 inside current_inferior().
3887 (set_inferior_tty_command, show_inferior_tty_command): New.
3888 (get_inferior_args, set_inferior_args): Store inside
3889 current_inferior().
3890 (notice_args_set): Likewise and rename to...
3891 (set_args_command): ... this.
3892 (set_inferior_args_vector): Likewise.
3893 (notice_args_read): Rename to...
3894 (show_args_command): ...new.
3895 (tty_command): Remove.
3896 (run_command_1): Don't free old args, as they are freed by
3897 set_inferior_arg now.
3898 (run_no_args_command): Likewise.
3899 (inferior_environ): Remove.
3900 (run_command_1): Use environment of the current inferior.
3901 (environment_info, set_environment_command)
3902 (unset_environment_command, path_info, path_command): Likewise.
3903 (_initialize_infcmd): Adjust for function and variable renames.
3904 Do not init inferior_environ.
3905 * inferior.h (set_inferior_arg): Adjust prototype.
3906 (struct inferior): New fields args, argc, argv, terminal, environment.
3907 (inferior_environ): Remove declaration.
3908 * inferior.c (free_inferior): Free new fields.
3909 (add_inferior_silent): Initialize 'environment' field.
3910 * main.c (captured_main): Set arguments only after the initial
3911 inferior has been created. Set set_inferior_io_terminal,
3912 not tty_command.
3913 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
3914 inferior.
3915 (_initialize_mi_cmd_env): Adjust for disappearance of global
3916 inferior_environ.
3917 * solib.c (solib_find): Use environment of the current inferior.
3918
3919 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3920
3921 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
3922 HAVE_PYTHON.
3923 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
3924
3925 2010-01-20 Joel Brobecker <brobecker@adacore.com>
3926
3927 Get rid of ada-lang.c:function_name_from_pc.
3928 * ada-lang.c: Add "stack.h" #include.
3929 (function_name_from_pc): Delete.
3930 (is_known_support_routine): Replace call to function_name_from_pc
3931 by call to find_frame_funname.
3932 (ada_unhandled_exception_name_addr_from_raise): Likewise.
3933
3934 2010-01-19 Tom Tromey <tromey@redhat.com>
3935
3936 PR c++/11026:
3937 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
3938 objfile obstack.
3939
3940 2010-01-19 Tom Tromey <tromey@redhat.com>
3941
3942 * top.c (stop_sig, float_handler, do_nothing): Remove.
3943
3944 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3945
3946 * breakpoint.c (watchpoint_check): Check the call
3947 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
3948 Extend the comment.
3949 * config/djgpp/fnchange.lst: Add translations for
3950 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
3951 watchpoint-cond-gone-stripped.c.
3952
3953 2010-01-19 Tom Tromey <tromey@redhat.com>
3954
3955 PR c++/8000:
3956 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
3957 into parent scope, and enumerator into grandparent scope.
3958
3959 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3960
3961 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
3962
3963 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3964
3965 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
3966 i[34567]86-*-solaris2.1[0-9]*.
3967 * configure.tgt: Likewise.
3968
3969 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3970
3971 * NEWS: Document the source command enhancement allowing it
3972 to load Python scripts. Document the "set/show script-extension"
3973 commands.
3974
3975 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3976
3977 Add -Wunused-function to compile flags.
3978 * configure.ac: Add -Wunused-function to build_warnings.
3979 * configure: Regenerate.
3980
3981 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3982
3983 "delete" ada-lex.c:input function, not used.
3984 * ada-lex.l: #define YY_NO_INPUT.
3985
3986 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3987
3988 Delete free_named_symtabs and associated cleanup.
3989 * symfile.h (free_named_symtabs): Delete declaration.
3990 * symfile.c: Remove some commented out code (clear_symtab_users_once).
3991 (cashier_psymtab): Comment function out.
3992 Delete declaration.
3993 (free_named_symtabs): Delete.
3994 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
3995 * dbxread.c (end_psymtab): Likewise.
3996 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
3997 * exec.c (exec_close_1): Ditto.
3998 * xcoffread.c (xcoff_end_psymtab): Likewise.
3999
4000 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4001
4002 * stack.c (print_block_frame_labels): Comment function out.
4003
4004 2010-01-19 Joel Brobecker <brobecker@adacore.com>
4005
4006 Delete unused or undefined functions.
4007 * breakpoint.c (ep_parse_optional_filename): Delete.
4008 * dcache.c (dcache_write_line): Remove declaration.
4009 * infrun.c (build_infrun): Remove declaration.
4010 * tracepoint.c (tracepoint_save_command): Remove declaration.
4011 * linux-nat.c (init_lwp_list): Delete. No longer used.
4012 * event-loop.c (check_async_signal_handlers): Delete declaration.
4013 * infrun.c (init_execution_control_state): Delete.
4014 (proceed): Update comment to avoid mentioning
4015 init_execution_control_state.
4016 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
4017 * ada-lang.c (ada_to_static_fixed_value): Delete.
4018 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
4019 * cp-namespace.c (cp_copy_usings): Delete.
4020 * xml-syscall.c (xml_number_of_syscalls): Delete.
4021 * progspace.c (find_program_space_by_num): Delete.
4022 * inflow.c (handle_sigio): Delete declaration.
4023 * hppa-tdep.c (hppa_alignof): Delete.
4024 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
4025 (mipsnbsd_core_osabi_sniffer): Delete.
4026
4027 2010-01-18 Tom Tromey <tromey@redhat.com>
4028
4029 PR c++/9680:
4030 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
4031 (CONST_CAST): New tokens.
4032 (exp): Add new productions.
4033 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
4034 reinterpret_cast.
4035 (is_cast_operator): New function.
4036 (yylex): Handle cast operators specially.
4037 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
4038 UNOP_REINTERPRET_CAST>: New cases.
4039 * expprint.c (print_subexp_standard): Likewise.
4040 (op_name_standard): Likewise.
4041 (dump_subexp_body_standard): Likewise.
4042 * parse.c (operator_length_standard): Likewise.
4043 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
4044 UNOP_REINTERPRET_CAST.
4045 * gdbtypes.c (class_types_same_p): New function.
4046 (is_ancestor): Use it.
4047 (is_public_ancestor): New function.
4048 (is_unique_ancestor_worker): Likewise.
4049 (is_unique_ancestor): Likewise.
4050 * gdbtypes.h (class_types_same_p, is_public_ancestor)
4051 (is_unique_ancestor): Declare.
4052 * valops.c (value_reinterpret_cast): New function.
4053 (dynamic_cast_check_1): Likewise.
4054 (dynamic_cast_check_2): Likewise.
4055 (value_dynamic_cast): Likewise.
4056 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
4057
4058 2010-01-18 Joel Brobecker <brobecker@adacore.com>
4059
4060 Fix build failure when building without Python support.
4061 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
4062 is not defined.
4063
4064 2010-01-18 Joel Brobecker <brobecker@adacore.com>
4065
4066 Use XVS field type instead of doing a parallel lookup.
4067 * ada-lang.c (ada_get_base_type): Follow the XVS field type
4068 if it is a reference type instead of doing a type lookup using
4069 the XVS field name.
4070
4071 2010-01-18 Joel Brobecker <brobecker@adacore.com>
4072
4073 Trust PAD types instead of using PAD___XVS.
4074 * ada-lang.c (trust_pad_over_xvs): New static variable.
4075 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
4076 parallel XVS type, follow the XVS type instead of the PAD type.
4077 (unwrap_value): Make sure that there is no parallel XVE type
4078 before returning the value as is.
4079 (set_ada_list, show_ada_list): New static variables.
4080 (set_ada_command, show_ada_command): New functions.
4081 (_initialize_ada_language): Add new "set/show ada" prefix commands.
4082 Add new "set/show ada trust-PAD-over-XVS" setting.
4083
4084 2010-01-18 Tom Tromey <tromey@redhat.com>
4085 Thiago Jung Bauermann <bauerman@br.ibm.com>
4086
4087 Allow "source" to load python scripts.
4088 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
4089 * python/python.c (source_python_script): New function.
4090 * python/python.h (source_python_script): Add declaration.
4091 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
4092 (script_ext_off, script_ext_soft, script_ext_strict)
4093 (script_ext_enums, script_ext_mode): New static constants.
4094 (show_script_ext_mode, find_and_open_script): New functions.
4095 (source_script): Enhance to handle Python scripts.
4096 (init_cli_cmds): Add set/show script-extension commands.
4097
4098 2010-01-16 Stan Shebs <stan@codesourcery.com>
4099
4100 * tracepoint.h (struct trace_status): Use unsigned long long
4101 instead of size_t.
4102 * tracepoint.c (trace_status_command): Fix printf directive.
4103 (trace_save_command): Check fwrite returns, fix printf directive.
4104 (trace_filename): New global.
4105 (tfile_open): Set it, check read returns.
4106 (tfile_close): Free trace_filename.
4107 (tfile_get_traceframe_address): Check read returns.
4108 (tfile_trace_find): Ditto.
4109 (tfile_fetch_registers): Ditto.
4110 (tfile_xfer_partial): Ditto.
4111 (tfile_get_trace_state_variable_value): Ditto.
4112
4113 2010-01-15 Stan Shebs <stan@codesourcery.com>
4114
4115 Add trace file support.
4116 * tracepoint.h (enum trace_stop_reason): New enum.
4117 (struct trace_status): New struct.
4118 (parse_trace_status): Declare.
4119 (struct uploaded_tp): Move here from remote.c,
4120 add fields for actions.
4121 (struct uploaded_tsv): New struct.
4122 * tracepoint.c (tfile_ops): New target vector.
4123 (trace_fd): New global.
4124 (tfile_open): New function.
4125 (tfile_close): New function.
4126 (tfile_files_info): New function.
4127 (tfile_get_trace_status): New function.
4128 (tfile_get_traceframe_address): New function.
4129 (tfile_trace_find): New function.
4130 (tfile_fetch_registers): New function.
4131 (tfile_xfer_partial): New function.
4132 (tfile_get_trace_state_variable_value): New function.
4133 (init_tfile_ops): New function.
4134 (_initialize_tracepoint): Call it, add tfile target.
4135 (trace_status): New global.
4136 (current_trace_status): New function.
4137 (trace_running_p): Remove, change all users to get from
4138 current_trace_status()->running.
4139 (get_trace_status): Remove.
4140 (trace_status_command): Call target_get_trace_status directly,
4141 report more detail including tracing stop reasons.
4142 (trace_find_command): Always allow tfind on a file.
4143 (trace_find_pc_command): Ditto.
4144 (trace_find_tracepoint_command): Ditto.
4145 (trace_find_line_command): Ditto.
4146 (trace_find_range_command): Ditto.
4147 (trace_find_outside_command): Ditto.
4148 (trace_frames_offset, cur_offset): Declare as off_t.
4149 (trace_regblock_size): Rename from reg_size, update users.
4150 (parse_trace_status): New function.
4151 (tfile_interp_line): New function.
4152 (disconnect_or_stop_tracing): Ensure current trace
4153 status before asking what to do.
4154 (stop_reason_names): New global.
4155 (trace_save_command): New command.
4156 (get_uploaded_tp): Move here from remote.c.
4157 (find_matching_tracepoint): Ditto.
4158 (merge_uploaded_tracepoints): New function.
4159 (parse_trace_status): Use stop_reason_names.
4160 (_initialize_tracepoint): Define tsave command.
4161 * target.h (target_ops): New fields to_save_trace_data,
4162 to_upload_tracepoints, to_upload_trace_state_variables,
4163 to_get_raw_trace_data, change to_get_trace_status
4164 to take a pointer to a status struct.
4165 (target_save_trace_data): New macro.
4166 (target_upload_tracepoints): New macro.
4167 (target_upload_trace_state_variables): New macro.
4168 (target_get_raw_trace_data): New macro.
4169 * target.c (update_current_target): Add new methods, change
4170 signature of to_get_trace_status.
4171 * remote.c (hex2bin): Make globally visible.
4172 (bin2hex): Ditto.
4173 (remote_download_trace_state_variable): Download name also.
4174 (remote_get_trace_status): Update parameter, use
4175 parse_trace_status.
4176 (remote_save_trace_data): New function.
4177 (remote_upload_tracepoints): New function.
4178 (remote_upload_trace_state_variables): New function.
4179 (remote_get_raw_trace_data): New function.
4180 (remote_start_remote): Use them.
4181 (_initialize_remote_ops): Add operations.
4182 * ax-gdb.c: Include breakpoint.h.
4183 * breakpoint.c (create_tracepoint_from_upload): Use
4184 break_command_really, return tracepoint, warn about unimplemented
4185 parts.
4186 * NEWS: Mention trace file addition.
4187
4188 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4189
4190 Fix compilation warning on gcc-3.4.
4191 * exec.c (print_section_info): Move the `displacement' variable
4192 initialization to its declaration.
4193
4194 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4195
4196 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
4197 comparison.
4198
4199 2010-01-15 Eric Botcazou <botcazou@adacore.com>
4200
4201 "info tasks" broken by typedefs in ATCB type definitions.
4202 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
4203 ada_check_typedef before retrieving the length of the type for
4204 regular fields.
4205
4206 2010-01-15 Joel Brobecker <brobecker@adacore.com>
4207
4208 Do not use name-based lookup for unconstrained packed arrays.
4209 * ada-lang.c (find_parallel_type_by_descriptive_type):
4210 Limit the fallback to name-based lookups to the case where
4211 the type is a constrained packed array.
4212
4213 2010-01-15 Joel Brobecker <brobecker@adacore.com>
4214
4215 Enhance gdb-gdb.py to handle main_type.type_specific.
4216 * gdb-gdb.py: Print the type-specific part of struct main_type.
4217
4218 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4219
4220 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
4221 * configure: Regenerate.
4222 * config.in: Regenerate.
4223 * utils.c: Include sys/resource.h.
4224 (dump_core, can_dump_core): New.
4225 (internal_vproblem): Update the comment. Check can_dump_core while
4226 setting dump_core_p. Replace two abort calls by dump_core calls.
4227
4228 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4229 Eli Zaretskii <eliz@gnu.org>
4230
4231 * NEWS: Document the PIE support.
4232
4233 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4234
4235 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
4236 (check_is_pie_binary, _initialize_linux_tdep): Remove.
4237
4238 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4239
4240 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
4241 Replace exec_entry_point call by bfd_get_start_address.
4242
4243 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4244
4245 Support Valgrind attachments broken by the PIE support.
4246 * auxv.c: Include gdbcore.h.
4247 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
4248 parameters ops, object and annex. Remove their assertions.
4249 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
4250 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
4251 (memory_xfer_auxv): ... here.
4252 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
4253 memory_xfer_auxv.
4254 * procfs.c (procfs_xfer_partial): Likewise.
4255 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
4256 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
4257 (svr4_solib_create_inferior_hook): Conditionalize the
4258 svr4_relocate_main_executable call.
4259
4260 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4261
4262 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
4263 target_section. Find SECT in current_target_sections, gdb_assert it.
4264 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
4265 New variable abfd.
4266 * symtab.c (lookup_objfile_from_block): Return the binary file instead
4267 of separate debug info file.
4268
4269 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4270
4271 Support PIEs with no symfile_objfile.
4272 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
4273 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
4274
4275 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4276
4277 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
4278 code part to ...
4279 (svr4_static_exec_displacement): ... a new function.
4280 (svr4_exec_displacement): New function.
4281 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
4282 new_offsets using alloca now. Remove variable old_chain and changed.
4283 Call objfile_relocate unconditionally now.
4284
4285 2010-01-14 Doug Evans <dje@google.com>
4286
4287 * gdbtypes.c (arch_flags_type): Fix comment.
4288 * gdbtypes.h (arch_composite_type): Fix comment.
4289
4290 2009-01-14 Tristan Gingold <gingold@adacore.com>
4291
4292 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
4293 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
4294 to symbol_file_add_from_bfd. Add OSO as separate objfile.
4295 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
4296 macho_add_oso_symfile.
4297 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
4298
4299 2010-01-14 Joel Brobecker <brobecker@adacore.com>
4300
4301 Tru64: Dead threads are never deleted.
4302 * dec-thread.c (dec_thread_ptid_is_alive): New function.
4303 (dec_thread_count_gdb_threads): Fix counter increment.
4304 (dec_thread_add_gdb_thread): Fix *listp increment.
4305 (resync_thread_list): Fix bug in deletion of dead threads that
4306 caused all threads to be deleted, instead of just the dead ones.
4307
4308 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
4309
4310 PR python/10705
4311
4312 * python/python-internal.h: Add lazy_string_object_type
4313 definition.
4314 (create_lazy_string_object, gdbpy_initialize_lazy_string)
4315 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
4316 * python/py-value.c (valpy_lazy_string): New function.
4317 (convert_value_from_python): Add lazy string conversion.
4318 * python/py-prettyprint.c (pretty_print_one_value): Check if
4319 return is also a lazy string.
4320 (print_string_repr): Add lazy string printing branch.
4321 (print_children): Likewise.
4322 * python/py-lazy-string.c: New file. Implement lazy strings.
4323 * python/python.c (_initialize_python): Call
4324 gdbpy_initialize_lazy_string.
4325 * varobj.c (value_get_print_value): Add lazy string printing
4326 branch. Account for encoding.
4327 * c-lang.c (c_printstr): Account for new encoding argument. If
4328 encoding is NULL, find encoding suited for type, otherwise use
4329 user encoding.
4330 * language.h (language_defn): Add encoding argument.
4331 (LA_PRINT_STRING): Likewise.
4332 * language.c (unk_lang_printstr): Update to reflect new encoding
4333 argument to language_defn.
4334 * ada-lang.h (ada_printstr): Likewise.
4335 * c-lang.h (c_printstr): Likewise.
4336 * p-lang.h (pascal_printstr);
4337 * f-lang.c (f_printstr): Likewise.
4338 * m2-lang.c (m2_printstr): Likewise.
4339 * objc-lang.c (objc_printstr): Likewise.
4340 * p-lang.c (pascal_printstr): Likewise.
4341 * scm-lang.c (scm_printstr): Likewise.
4342 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
4343 encoding argument.
4344 * ada-valprint.c (ada_printstr): Likewise.
4345 * f-valprint.c (f_val_print): Likewise
4346 * m2-valprint.c (m2_val_print): Likewise.
4347 * p-valprint.c (pascal_val_print): Likewise.
4348 * expprint.c (print_subexp_standard): Likewise.
4349 * valprint.c (val_print_string): Likewise.
4350 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
4351 (SUBDIR_PYTHON_SRCS): Likewise.
4352 (py-lazy-string.o): New rule.
4353
4354 2010-01-13 Doug Evans <dje@google.com>
4355
4356 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
4357 uninitialized" warning from gcc on local `tree'.
4358
4359 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
4360
4361 Implement core awareness.
4362
4363 * bcache.c (compare_ints): Remove
4364 (print_percentage): Use compare_positive_ints.
4365 * defs.h (compare_positive_ints): Declare.
4366 * linux-nat.h (struct lin_lwp): New field core.
4367 (linux_nat_core_of_thread_1): Declare.
4368 * linux-nat.c (add_lwp): Init the 'core' field.
4369 (linux_nat_wait_1): Record the core.
4370 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
4371 (linux_nat_add_target): Register the above.
4372 * linux-thread-db.c (update_thread_core): New.
4373 (thread_db_find_new_threads): Update core information for
4374 every thread.
4375 * remote.c (struct private_thread_info): New.
4376 (free_private_thread_info, demand_private_info): New.
4377 (PACKET_qXfer_threads, use_osdata_threads): New.
4378 (struct thread_item, threads_parsing_context
4379 (start_thread, end_thread, thread_attributes)
4380 (thread_children, threads_children, threads_elements): New.
4381 (remote_threads_info): Try qXfer:threads before anything
4382 else.
4383 (remote_protocol_packets): Register qXfer:threads.
4384 (remote_open_1): Init use_osdata_threads.
4385 (struct stop_reply): New field 'core'.
4386 (remote_parse_stop_reply): Parse core number.
4387 (process_stop_reply): Record core number.
4388 (remote_xfer_partial): Handle qXfer:threads.
4389 (remote_core_of_thread): New.
4390 (init_remote_ops): Register remote_core_of_thread.
4391 (_initialize_remote): Register qXfer:read.
4392 * target.c (target_core_of_thread): New
4393 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
4394 (struct target_ops): New field to_core_of_threads.
4395 (target_core_of_thread): Declare.
4396 * gdbthread.h (struct thread_info): New field private_dtor.
4397 * thread.c (print_thread_info): Report the core.
4398 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
4399 * utils.c (compare_positive_ints): New.
4400 * features/threads.dtd: New.
4401 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
4402 * mi/mi-main.c (struct collect_cores_data, collect_cores)
4403 (do_nothing, free_vector_of_osdata_items)
4404 (splay_tree_int_comparator, free_splay_tree): New.
4405 (print_one_inferior_data): Implemented printing of selected
4406 inferiors. Collect and print cores.
4407 (output_cores): New.
4408 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
4409 thread groups together with --available.
4410
4411 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4412
4413 * configure: Regenerate (for _STRUCTURED_PROC).
4414
4415 2010-01-12 Joel Brobecker <brobecker@adacore.com>
4416
4417 Delete dead function.
4418 * ada-lang.c (extract_string): Delete. No longer used.
4419
4420 2010-01-12 Joel Brobecker <brobecker@adacore.com>
4421
4422 Fix -Wunused warning in dec-thread.c.
4423 * dec-thread.c (dec_thread_count_gdb_threads)
4424 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
4425
4426 2010-01-12 Joel Brobecker <brobecker@adacore.com>
4427
4428 * ada-valprint.c (ada_print_floating): Remove trailing space.
4429
4430 2010-01-12 Joel Brobecker <brobecker@adacore.com>
4431
4432 Add support for DW_AT_GNAT_descriptive_type.
4433 * gdbtypes.h (enum type_specific_kind): New enum.
4434 (struct main_type) [type_specific_field]: New component.
4435 [type_specific]: Add new component "gnat_stuff".
4436 (struct gnat_aux_type): New type.
4437 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
4438 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
4439 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
4440 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
4441 (TYPE_SPECIFIC_FIELD): New macros.
4442 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
4443 type does not hold any cplus-specific data.
4444 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
4445 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
4446 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
4447 cplus-specific data.
4448 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
4449 Set new component TYPE_SPECIFIC_FIELD (type).
4450 (gnat_aux_default): New constant.
4451 (allocate_gnat_aux_type): New function.
4452 (init_type): Add initialization the type-specific stuff for
4453 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
4454 (print_gnat_stuff): New function.
4455 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
4456 specific data. Adjust code that prints the contents of the
4457 type-specific union using the TYPE_SPECIFIC_FIELD value.
4458 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
4459 the type cplus stuff for Ada types.
4460 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
4461 Error out if these routines are called with an Ada type.
4462 (read_structure_type, read_array_type, read_subrange_type):
4463 Add call to set_descriptive_type.
4464 (set_die_type): Initialize the gnat-specific data if necessary.
4465 (need_gnat_info, die_descriptive_type, set_descriptive_type):
4466 New functions.
4467 * ada-lang.c (decode_constrained_packed_array_type): Use
4468 decode_constrained_packed_array_type instead of doing a standard
4469 lookup to locate a parallel type.
4470 (find_parallel_type_by_descriptive_type): New function.
4471 (ada_find_parallel_type_with_name): New function.
4472 (ada_find_parallel_type): Reimplement using
4473 ada_find_parallel_type_with_name.
4474 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
4475 to check if type has a cplus stuff.
4476 * linespec.c (total_number_of_methods): Likewise.
4477 * mdebugread.c (new_type): Likewise.
4478
4479 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4480
4481 * NEWS: Document the 0b binary number prefix parsing.
4482
4483 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4484
4485 * objfiles.c (objfile_relocate1): Change the return type to int.
4486 Describe the new return value. Return non-zero if data changed.
4487 (objfile_relocate): New variable changed. Set it. Call
4488 breakpoint_re_set depending on CHANGED.
4489
4490 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4491
4492 Implement binary numbers parsing.
4493 * c-exp.y (parse_number): New case 'b' and 'B'.
4494
4495 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4496 Tristan Gingold <gingold@adacore.com>
4497
4498 * solib.c (info_sharedlibrary_command): Replace
4499 objfile_has_partial_symbols and objfile_has_full_symbols calls by
4500 objfile_has_symbols.
4501
4502 2010-01-10 Joel Brobecker <brobecker@adacore.com>
4503
4504 * NEWS: Document the improvements made to the mips-irix port.
4505
4506 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4507
4508 Fix the documentation of valprint.c:value_print.
4509 * valprint.c (value_print): Update the function description to
4510 mention that the syntax of the output follows the current_language,
4511 not necessarily C.
4512
4513 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4514
4515 Fix displacement of separate debug info files.
4516 * objfiles.c (objfile_relocate): Rename to ...
4517 (objfile_relocate1): ... here and make it static. Extend the comment.
4518 (objfile_relocate): New function.
4519 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
4520 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
4521 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
4522 allocated using alloca.
4523 * symfile.c (copy_section_addr_info): Remove.
4524 (build_section_addr_info_from_objfile): Make it global. New variables
4525 addr_bit and mask, use them.
4526 * symfile.h (build_section_addr_info_from_objfile): New prototype.
4527 (copy_section_addr_info): Remove.
4528
4529 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4530
4531 Signal unwinder for mips-irix N32.
4532 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
4533 tramp-frame.h.
4534 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
4535 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
4536 (SIGCONTEXT_LO_OFF): New macros.
4537 (mips_irix_n32_tramp_frame_init): New function.
4538 (mips_irix_n32_tramp_frame): New static constant.
4539 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
4540
4541 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4542
4543 Breakpoint in shared library does not work on mips-irix.
4544 * procfs.c: #include "observer.h".
4545 (procfs_inferior_created): New function, moving here the code
4546 which unsets the syssgi syscall-exit notifications.
4547 (procfs_create_inferior): Remove the code which unsets the syssgi
4548 syscall-exit notifications. It is too early to do this here.
4549 (_initialize_procfs): Attach the procfs_inferior_created observer.
4550
4551 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4552
4553 Wrong return convention for arrays (mips-irix).
4554 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
4555 128 bits or smaller are returned the same way as structs
4556 and unions of the the same size.
4557
4558 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4559
4560 Cannot set the PC on mips-irix.
4561 * irix5-nat.c (fill_gregset): Check regno against the raw PC
4562 register number, no the cooked one.
4563
4564 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4565
4566 Error while loading core file on mips-irix.
4567 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
4568 if debugging from a core file.
4569
4570 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4571
4572 GDB hangs when attaching to process on mips-irix.
4573 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
4574 attaching to a process.
4575
4576 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4577
4578 Use the correct breakpoint instruction on mips-irix.
4579 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
4580 containing the correct breakpoint instruction to use on mips-irix.
4581 Use it when the osabi is GDB_OSABI_IRIX.
4582
4583 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4584
4585 -Wunused warning in procfs.c (mips-irix only).
4586 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
4587 throughout instead of using praddset and prdelset respectively.
4588
4589 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4590
4591 GDB crash while stepping into function.
4592 * infrun.c (handle_inferior_event): Refetch the current frame
4593 after handling what.main_action, in case that pointer became
4594 dangling.
4595
4596 2010-01-09 Joel Brobecker <brobecker@adacore.com>
4597
4598 Fix build failure of solaris-hosted cross debuggers.
4599 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
4600
4601 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4602
4603 Fix build failure on sparc-solaris.
4604 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
4605
4606 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4607
4608 Move some symfile code into subroutines.
4609 * symfile.h (relative_addr_info_to_section_offsets)
4610 (addr_info_make_relative): New prototypes.
4611 * symfile.c (default_symfile_offsets): Move a part to ...
4612 (relative_addr_info_to_section_offsets): ... this new function.
4613 (default_symfile_offsets): Call it.
4614 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
4615 this part to ...
4616 (addr_info_make_relative): ... this new function.
4617
4618 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4619
4620 Add from_tty to solib_create_inferior_hook.
4621 * infcmd.c (post_create_inferior): Move solib_add after
4622 solib_create_inferior_hook. Pass from_tty to
4623 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
4624 0 from_tty and comment why.
4625 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
4626 * linux-nat.c (linux_child_follow_fork): Likewise.
4627 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
4628 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
4629 from_tty.
4630 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
4631 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
4632 * solib-null.c (null_solib_create_inferior_hook): Likewise.
4633 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
4634 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
4635 * solib-som.c (som_solib_create_inferior_hook): Likewise.
4636 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
4637 Pass it to svr4_so_ops.solib_create_inferior_hook.
4638 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
4639 from_tty.
4640 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
4641 solib_add.
4642 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
4643 enable_break.
4644 * solib-target.c (solib_target_solib_create_inferior_hook): New
4645 parameter from_tty.
4646 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
4647 it to ops->solib_create_inferior_hook.
4648 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
4649 Move solib_add after solib_create_inferior_hook, call it now with
4650 from_tty as 0. New comment there.
4651 * solib.h (solib_create_inferior_hook): New parameter from_tty.
4652 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
4653 Likewise.
4654
4655 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
4656
4657 Fix multiexec race.
4658 * infrun.c (handle_inferior_event): Use get_thread_regcache
4659 with events ptid, not get_current_regcache.
4660
4661 2009-01-08 Joel Brobecker <brobecker@adacore.com>
4662
4663 GDB crash with empty executable name (MinGW).
4664 * source.c (openp): Add assert that parameter string is not NULL.
4665 if parameter string is an empty string, then return with a failure
4666 immediately.
4667
4668 2009-01-08 Joel Brobecker <brobecker@adacore.com>
4669
4670 Get rid of support for VAX Floats.
4671 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
4672 (ada_vax_float_print_function): Delete.
4673 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
4674 (ada_vax_float_print_function): Delete.
4675 * ada-typeprint.c (print_vax_floating_point_type): Delete.
4676 (ada_print_type): Remove support for VAX floats.
4677 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
4678
4679 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4680
4681 * stabsread.c (read_args): Handle zero arguments.
4682
4683 2009-01-08 Joel Brobecker <brobecker@adacore.com>
4684
4685 Cannot find in-tree libiconv.a after reconfigure.
4686 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
4687 that we can use, then cache the path to this archive.
4688 * configure: Regenerate.
4689
4690 2010-01-07 Stan Shebs <stan@codesourcery.com>
4691
4692 Make tracepoint operations go through target vector.
4693 * target.h (enum trace_find_type): New enum.
4694 (struct target_ops): New fields to_trace_init,
4695 to_download_tracepoint, to_download_trace_state_variable,
4696 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
4697 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
4698 to_set_disconnected_tracing.
4699 (target_trace_init): New macro.
4700 (target_download_tracepoint): New macro.
4701 (target_download_trace_state_variable): New macro.
4702 (target_trace_start): New macro.
4703 (target_trace_set_readonly_regions): New macro.
4704 (target_get_trace_status): New macro.
4705 (target_trace_stop): New macro.
4706 (target_trace_find): New macro.
4707 (target_get_trace_state_variable_value): New macro.
4708 (target_set_disconnected_tracing): New macro.
4709 * target.c (update_current_target): Inherit and set defaults for
4710 tracepoint operations.
4711 * tracepoint.c (default_collect): Make globally visible.
4712 (target_is_remote): Remove, along with all calls.
4713 (tvariables_info): Call target_get_trace_state_variable_value.
4714 (remote_set_transparent_ranges): Remove.
4715 (trace_start_command): Call target_trace_init,
4716 target_download_tracepoint, etc.
4717 (download_tracepoint): Remove.
4718 (trace_stop_command): Simplify.
4719 (stop_tracing): Call target_trace_stop.
4720 (get_trace_status): Call target_get_trace_status.
4721 (trace_status_command): Add case for targets that cannot trace.
4722 (finish_tfind_command): Change to take numerical arguments, call
4723 target_trace_find.
4724 (trace_find_command): Update call to finish_tfind_command.
4725 (trace_find_pc_command): Ditto.
4726 (trace_find_tracepoint_command): Ditto.
4727 (trace_find_line_command): Ditto.
4728 (trace_find_range_command): Ditto.
4729 (trace_find_outside_command): Ditto.
4730 (set_disconnected_tracing_value): Call
4731 target_set_disconnected_tracing.
4732 * remote.c: Add protocol encoding bits from tracepoint.c.
4733 (trace_error): Move from tracepoint.c.
4734 (remote_get_noisy_reply): Ditto.
4735 (free_actions_list_cleanup_wrapper): Ditto.
4736 (free_actions_list): Ditto.
4737 (remote_trace_init): New function.
4738 (remote_download_tracepoint): New function.
4739 (remote_download_trace_state_variable): New function.
4740 (remote_trace_set_readonly_regions): New function.
4741 (remote_trace_start): New function.
4742 (remote_get_trace_status): New function.
4743 (remote_trace_stop): New function.
4744 (remote_trace_find): New function.
4745 (remote_download_trace_state_variable): New function.
4746 (remote_set_disconnected_tracing): New function.
4747 (init_remote_ops): Add tracepoint operations.
4748
4749 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
4750
4751 2010-01-07 Tristan Gingold <gingold@adacore.com>
4752
4753 * symfile.c (build_section_addr_info_from_objfile): New function.
4754 (symbol_file_add_separate): Don't use offsets from objfile but
4755 built an addr info.
4756
4757 2010-01-06 Stan Shebs <stan@codesourcery.com>
4758
4759 Support disconnected tracing.
4760 * infcmd.c (detach_command): Ask whether to stop tracing.
4761 * cli/cli-cmds.c (quit_command): Ditto.
4762 * breakpoint.h (struct breakpoint): New field number_on_target.
4763 * breakpoint.c (create_tracepoint_from_upload): New function.
4764 (get_tracepoint_by_number_on_target): New function.
4765 * remote.c (struct remote): New field disconnected_tracing.
4766 (remote_disconnected_tracing_feature): New function.
4767 (remote_protocol_features): Add DisconnectedTracing.
4768 (struct uploaded_tp): New struct.
4769 (uploaded_tps): New global.
4770 (get_uploaded_tp): New function.
4771 (find_matching_tracepoint): New function.
4772 (remote_get_tracing_state): New function.
4773 (remote_start_remote): Call it.
4774 * tracepoint.c (disconnected_tracing): New global.
4775 (trace_start_command): Initialize number_on_target.
4776 (stop_tracing): New function, split out from...
4777 (trace_stop_command): Call stop_tracing.
4778 (get_trace_status): New function, split out from...
4779 (trace_status_command): Call get_trace_status, add info on
4780 disconnection behavior.
4781 (disconnect_or_stop_tracing): New function.
4782 (finish_tfind_command): Translate from number on target.
4783 (trace_find_tracepoint_command): Translate to number on target.
4784 (send_disconnected_tracing_value): New function.
4785 (set_disconnected_tracing): New function.
4786 (_initialize_tracepoint): Add disconnected-tracing variable.
4787 * NEWS: Mention disconnected tracing.
4788
4789 2010-01-06 Tristan Gingold <gingold@adacore.com>
4790
4791 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
4792 parameter to main_objfile. Iterate on all separate debug objfiles.
4793 * symfile.h (symbol_file_add_separate)
4794 (find_separate_debug_file_by_debuglink): Remove parameter names.
4795 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
4796 (reread_symbols): Use free_objfile_separate_debug.
4797 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
4798 Adjust comment.
4799 (objfile_separate_debug_iterate, add_separate_debug_objfile)
4800 (free_objfile_separate_debug): New prototypes.
4801 * objfiles.c (objfile_separate_debug_iterate): New function.
4802 (add_separate_debug_objfile, free_objfile_separate_debug): New
4803 functions.
4804 (free_objfile): Use free_objfile_separate_debug. Adjust for
4805 multiple separate debug objfile.
4806 (objfile_has_symbols): Adjust comment. Iterate on all separate
4807 debug objfiles.
4808 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
4809 debug objfile.
4810 (lookup_minimal_symbol_text): Ditto.
4811 (lookup_minimal_symbol_by_pc_name): Ditto.
4812 (lookup_minimal_symbol_solib_trampoline): Ditto.
4813 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
4814 debug objfiles.
4815
4816 2010-01-05 Stan Shebs <stan@codesourcery.com>
4817
4818 Add fast tracepoints.
4819 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
4820 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
4821 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
4822 * breakpoint.c (tracepoint_type): New function.
4823 (ALL_TRACEPOINTS): Use it.
4824 (should_be_inserted): Ditto.
4825 (bpstat_check_location): Ditto.
4826 (print_one_breakpoint_location): Ditto.
4827 (user_settable_breakpoint): Ditto.
4828 (set_breakpoint_location_function): Ditto.
4829 (disable_breakpoints_in_shlibs): Ditto.
4830 (delete_trace_command): Ditto.
4831 (print_it_typical): Add bp_fast_tracepoint case.
4832 (bpstat_what): Ditto.
4833 (print_one_breakpoint_location): Ditto.
4834 (allocate_bp_location): Ditto.
4835 (mention): Ditto.
4836 (breakpoint_re_set_one): Ditto.
4837 (disable_command): Ditto.
4838 (enable_command): Ditto.
4839 (check_fast_tracepoint_sals): New function.
4840 (break_command_really): Call it.
4841 (ftrace_command): New function.
4842 (_initialize_breakpoint): Add ftrace command.
4843 * gdbarch.sh (fast_tracepoint_valid_at): New.
4844 * gdbarch.h, gdbarch.c: Regenerate.
4845 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
4846 (i386_gdbarch_init): Use it.
4847 * remote.c (struct remote_state): New field fast_tracepoints.
4848 (PACKET_FastTracepoints): New packet config type.
4849 (remote_fast_tracepoint_feature): New function.
4850 (remote_protocol_features): Add FastTracepoints.
4851 (remote_supports_fast_tracepoints): New function.
4852 (_initialize_remote): Add FastTracepoints.
4853 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
4854 * NEWS: Mention fast tracepoints.
4855
4856 2010-01-06 Joel Brobecker <brobecker@adacore.com>
4857
4858 * gdb-gdb.py: New file.
4859
4860 2010-01-05 Michael Snyder <msnyder@vmware.com>
4861
4862 * infrun.c (handle_inferior_event): Fix typo in comment.
4863
4864 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4865
4866 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
4867
4868 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4869
4870 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
4871 and s390x-linux64.
4872 (s390-linux32-expedite): Define.
4873 (s390-linux64-expedite): Define.
4874 (s390x-linux64-expedite): Define.
4875 * features/s390-acr.xml: New file.
4876 * features/s390-fpr.xml: New file.
4877 * features/s390-core32.xml: New file.
4878 * features/s390-core64.xml: New file.
4879 * features/s390x-core64.xml: New file.
4880 * features/s390-linux32.xml: New file.
4881 * features/s390-linux64.xml: New file.
4882 * features/s390x-linux64.xml: New file.
4883 * features/s390-linux32.c: New generated file.
4884 * features/s390-linux64.c: New generated file.
4885 * features/s390x-linux64.c: New generated file.
4886
4887 * regformats/s390-linux32.dat: New generated file.
4888 * regformats/s390-linux64.dat: New generated file.
4889 * regformats/s390x-linux64.dat: New generated file.
4890 * regformats/reg-s390.dat: Remove.
4891 * regformats/reg-s390x.dat: Remove.
4892
4893 * s390-nat.c: Include "auxv.h" and <elf.h>.
4894 (HWCAP_S390_HIGH_GPRS): Define if undefined.
4895 (s390_target_wordsize): New function.
4896 (s390_auxv_parse): Likewise.
4897 (s390_get_hwcap): Likewise.
4898 (s390_read_description): Likewise.
4899 (_initialize_s390_nat): Install s390_auxv_parse and
4900 s390_read_description.
4901
4902 * s390-tdep.c: Include "features/s390-linux32.c",
4903 "features/s390-linux64.c", and "features/s390x-linux64.c".
4904 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
4905 (s390_register_call_saved): New function.
4906 (s390_register_name): Remove.
4907 (s390_register_type): Remove.
4908 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
4909 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
4910 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
4911 (s390_pseudo_register_name): New function.
4912 (s390_pseudo_register_type): New function.
4913 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
4914 Handle full GPR pesudos and varying pseudo register numbers.
4915 (s390_pseudo_register_write): Likewise
4916 (s390x_pseudo_register_read): Remove.
4917 (s390x_pseudo_register_write): Likewise.
4918 (s390_register_group): Remove.
4919 (s390_pseudo_register_group): New function.
4920 (s390_regmap_gregset): Add GPR upper halves.
4921 (s390x_regmap_gregset): Likewise.
4922 (s390_regmap_fpregset): Likewise.
4923 (s390_regmap_upper): New global variable.
4924 (s390_upper_regset): New global variable.
4925 (s390_upper_regset_sections): New global variable.
4926 (s390_regset_from_core_section): Handle GPR upper halves.
4927 (s390_core_read_description): New function.
4928 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
4929 register information. Handle varying pseudo register numbers.
4930 (s390_backchain_frame_unwind_cache): Likewise.
4931 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
4932 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
4933 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
4934 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
4935 Handle varying pseudo register numbers.
4936 (s390_unwind_pc): Handle varying pseudo register numbers.
4937 (s390_dwarf2_prev_register): New function.
4938 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
4939 register information. Handle varying pseudo register numbers.
4940 Install s390_dwarf2_prev_register to unwind full GPRs.
4941 (s390_gdbarch_init): Handle target descriptions. Assign varying
4942 pseudo register numbers. Install s390_adjust_frame_regnum.
4943 (_initialize_s390_tdep): Initialize target descriptions.
4944
4945 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
4946 (S390_NUM_REGS): Redefine to include upper half registers.
4947 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
4948 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
4949 (tdesc_s390_linux32): Add declaration.
4950 (tdesc_s390_linux64): Likewise.
4951 (tdesc_s390x_linux64): Likewise.
4952
4953 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4954
4955 * regset.h (struct core_regset_section): Add HUMAN_NAME.
4956 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
4957 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
4958 (ppc_linux_vmx_regset_sections): Likewise.
4959 (ppc_linux_fp_regset_sections): Likewise.
4960
4961 * corelow.c (get_core_register_section): Constify arguments.
4962 (get_core_registers): Use gdbarch_core_regset_sections instead
4963 of hard-coded platform-specific register section names.
4964
4965 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4966
4967 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
4968 a register, assume the least-significant part is used.
4969 (write_pieced_value): Likewise.
4970
4971 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4972
4973 * printcmd.c: Include "arch-utils.h".
4974 (do_one_display): Re-parse expression if current architecture changed.
4975
4976 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4977 Joel Brobecker <brobecker@adacore.com>
4978
4979 * gdbtypes.c (check_typedef): New comment on type length.
4980 * value.c (allocate_value_lazy): Remove the unused atype variable. New
4981 comment on type length.
4982 (value_primitive_field): Keep the original TYPE value, new comment.
4983
4984 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4985
4986 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
4987 p_start. Change != comparisons to > and < comparisons.
4988
4989 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4990
4991 * cli/cli-script.c (process_next_line): Check P2 overrun.
4992
4993 2009-01-01 Joel Brobecker <brobecker@adacore.com>
4994
4995 Update the copyright hearder to add year 2010 for most GDB files.
4996
4997 2009-01-01 Joel Brobecker <brobecker@adacore.com>
4998
4999 Fix build failure in inf-ptrace.c.
5000 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
5001
5002 2010-01-01 Joel Brobecker <brobecker@adacore.com>
5003
5004 * top.c (print_gdb_version): Update copyright year.
5005
5006 2010-01-01 Joel Brobecker <brobecker@adacore.com>
5007
5008 Fix break *FUN'address thread NUM.
5009 * ada-lex.l (task): Expand rule to also match the thread keyword.
5010
5011 2010-01-01 Joel Brobecker <brobecker@adacore.com>
5012
5013 Fix break *FUN'address task NUM.
5014 * ada-lex.l (task): New rule.
5015 * ada-lang.c (valid_task_id): Make sure the Ada task list has
5016 been built before using it.
5017
5018 For older changes see ChangeLog-2009.
5019 \f
5020 Local Variables:
5021 mode: change-log
5022 left-margin: 8
5023 fill-column: 74
5024 version-control: never
5025 coding: utf-8
5026 End: