2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2010-09-16 Phil Muldoon <pmuldoon@redhat.com>
2
3 PR mi/11407
4 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
5 read_var_value and common_val_print and print a warning.
6
7 2010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8
9 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
10 keep the list in alphabetical order. Use longer e-mail address.
11
12 2010-09-15 Tom Tromey <tromey@redhat.com>
13
14 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
15
16 2010-09-15 Tom Tromey <tromey@redhat.com>
17
18 * charset.c (iconv_open): New define.
19 (iconv): Likewise.
20 (iconv_close): Likewise.
21 (phony_iconv_open): Add "phony_" prefix.
22 (phony_iconv_close): Likewise.
23 (phony_iconv): Likewise.
24 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
25 Change how INTERMEDIATE_ENCODING is defined.
26
27 2010-09-15 Doug Evans <dje@google.com>
28
29 * dwarf2read.c (struct die_info): Fix comment.
30
31 2010-09-15 Alan Modra <amodra@gmail.com>
32
33 PR 4606
34 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
35 than setting SEC_NEVER_LOAD on sections that need not be copied.
36
37 2010-09-14 Tom Tromey <tromey@redhat.com>
38
39 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
40 (start_psymtab_common, allocate_psymtab, discard_psymtab):
41 Declare.
42 * symfile.h (extend_psymbol_list): Remove.
43 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
44 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
45 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
46
47 2010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
48
49 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
50 Update the comment.
51
52 2010-09-14 Tom Tromey <tromey@redhat.com>
53
54 PR symtab/8399:
55 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
56 for unrecognized frame base expression.
57
58 2010-09-14 Tom Tromey <tromey@redhat.com>
59
60 PR exp/11803:
61 * value.c (value_static_field): Use value_of_variable.
62
63 2010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
64
65 * m32r-rom.c: Replace winsock.h with winsock2.h header.
66 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
67
68 2010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
69
70 PR symtab/11992:
71 * c-exp.y (classify_name): Check is_a_member_of_this before returning
72 UNKNOWN_CPP_NAME.
73
74 2010-09-13 Joel Brobecker <brobecker@adacore.com>
75
76 * NEWS: Add x86-lynxos to the list of platforms supported by
77 gdbserver.
78
79 2010-09-13 Joel Brobecker <brobecker@adacore.com>
80
81 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
82
83 2010-09-13 Tom Tromey <tromey@redhat.com>
84
85 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
86
87 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
88
89 * i386-tdep.c (i386_ymm_type): Set type name to
90 builtin_type_vec256i.
91
92 2010-09-12 Michael Snyder <msnyder@vmware.com>
93
94 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
95
96 2010-09-12 H.J. Lu <hongjiu.lu@intel.com>
97
98 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
99
100 2010-09-11 H.J. Lu <hongjiu.lu@intel.com>
101
102 * amd64-tdep.c (amd64_register_name): Removed.
103 (amd64_init_abi): Don't call set_gdbarch_register_name.
104
105 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
106
107 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
108
109 2010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
110 Paul Bolle <pebolle@tiscali.nl>
111
112 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
113 * cli-logging.c (struct saved_output_files) <targerr>: New.
114 (set_logging_redirect, pop_output_files, handle_redirections):
115 Redirect also gdb_stdtargerr.
116 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
117 declarations.
118 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
119 also gdb_stdtargerr.
120 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
121 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
122 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
123 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
124 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
125 New functions.
126
127 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
128
129 * hppa-tdep.c (unwind_command): Use host_address_to_string function
130 to display a host address.
131 * monitor.c (monitor_read_memory): Likewise.
132 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
133
134 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
135
136 * coffread.c (struct coff_symbol): Change c_value type from `long' to
137 `CORE_ADDRESS' as it might contain target addresses.
138
139 2010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
140
141 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
142 before cast to pointer to avoid warning.
143
144 2010-09-09 Kevin Buettner <kevinb@redhat.com>
145
146 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
147 type to be signed.
148
149 2010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
150
151 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
152 anonymous class partial DIEs.
153
154 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
155
156 * dwarf2read.c (dwarf2_compute_name): Check that the first
157 argument is a pointer.
158
159 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
160
161 * dwarf2read.c (read_func_scope, read_structure_type)
162 (read_common_block): Check for a NULL return from new_symbol.
163
164 2010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
165
166 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
167
168 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
169
170 * dwarf2read.c (read_structure_type): Move processing of
171 fields and member functions from here...
172 (process_structure_scope): ... to here.
173
174 2010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
175
176 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
177 the domain type.
178 (gnuv3_make_method_ptr): Likewise.
179
180 2010-09-08 Tom Tromey <tromey@redhat.com>
181
182 * breakpoint.c (create_breakpoint): Add missing _().
183
184 2010-09-08 Doug Evans <dje@google.com>
185
186 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
187
188 2010-09-08 Tom Tromey <tromey@redhat.com>
189
190 Revert:
191 2010-09-01 Tom Tromey <tromey@redhat.com>
192 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
193 symtab.h: Revert earlier change.
194
195 2010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
196
197 * psymtab.c (add_psymbol_to_bcache): Initialize
198 obj_section.
199 memset psymbol.ginfo.value to 0.
200
201 2010-09-06 Pedro Alves <pedro@codesourcery.com>
202
203 * infrun.c (resume): Extend comment on ignoring single-step
204 requests on vfork parents waiting for a vfork-done.
205
206 2010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
207 Pedro Alves <pedro@codesourcery.com>
208
209 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
210 is NULL.
211 * fork-child.c (startup_inferior) <resume_signal>: Use enum
212 target_signal type.
213 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
214 calling strsignal. Use enum target_signal type for saved_signo.
215 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
216 (linux_nat_wait_1): Use enum target_signal type for signo. Use
217 target_signal_to_host before calling strsignal.
218 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
219 TARGET_SIGNAL_0.
220
221 2010-09-06 Pedro Alves <pedro@codesourcery.com>
222 Jan Kratochvil <jan.kratochvil@redhat.com>
223
224 * common/signals.c (ANY): Remove.
225 (SET): No longer use ANY.
226
227 2010-09-06 Yao Qi <yao@codesourcery.com>
228
229 * infrunc(resume): When inferior is waiting_for_vfork_done,
230 clear step and don't use displaced stepping.
231
232 2010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
233
234 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
235 value specially.
236
237 2010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
238
239 Code cleanup - split print_stop_reason.
240 * infrun.c (enum inferior_stop_reason): Remove.
241 (print_stop_reason): Remove by splitting into ...
242 (print_exited_reason, print_signal_exited_reason)
243 (print_no_history_reason, print_signal_received_reason)
244 (print_end_stepping_range_reason): ... these new functions. Update
245 the preceding comment.
246 (handle_inferior_event): Change the calls to print_exited_reason,
247 print_signal_exited_reason, print_no_history_reason,
248 print_signal_received_reason, print_end_stepping_range_reason.
249 (handle_step_into_function, handle_step_into_function_backward):
250 Change the calls to print_end_stepping_range_reason.
251
252 2010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
253
254 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
255 * cli-out.c: Include vec.h.
256 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
257 variable stream, initialize it, use it.
258 (cli_redirect): New function comment. Replace the stream and
259 original_stream fields by the new streams field. Remove the
260 original_stream != NULL conditional, assert error on NULL instead.
261 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
262 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
263 original_stream fields by the new streams field.
264 (cli_out_set_stream): Replace the stream field by the new streams
265 field.
266 * cli-out.h: Include vec.h.
267 (ui_filep): New typedef, call DEF_VEC_P for it.
268 (struct cli_ui_out_data): Replace the stream and original_stream
269 fields by the new streams field.
270 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
271 NULL first. Extend the comment.
272 (handle_redirections): Call ui_out_redirect with output.
273 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
274 calls outside of the TRY_CATCH block.
275
276 2010-09-03 Joel Brobecker <brobecker@adacore.com>
277
278 GDB 7.2 released.
279
280 2010-09-02 Joel Brobecker <brobecker@adacore.com>
281
282 Back out the following change:
283 | 2010-06-29 Hui Zhu <teawater@gmail.com>
284 | * record.c (set_record_pic_cmdlist,
285 | show_record_pic_cmdlist): New variables.
286 | (set_record_pic_command,
287 | show_record_pic_command): New functions.
288 | (record_pic_function, record_pic_line, record_pic_enum,
289 | set_record_pic_type, record_pic_hide_nofunction,
290 | record_pic_hide_nosource, record_pic_hide_same): New variables.
291 | (record_pic_fputs): New function.
292 | (function_list, node_list, edge_list): New struct.
293 | (function_list, node_list, edge_list): New variables.
294 | (record_pic_cleanups, record_pic_node,
295 | record_pic_edge, cmd_record_pic): New functions.
296 | (_initialize_record): Add new commands for record pic.
297
298 2010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
299
300 * config.in, configure: Regenerated.
301 * configure.ac: Check for waitpid.
302 * ser-pipe.c (pipe_close): Wait for the program to exit.
303
304 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
305
306 * cli/cli-logging.c: Include gdb_assert.h.
307 (set_logging_overwrite): New function.
308 (logging_redirect): New comment.
309 (logging_no_redirect_file, set_logging_redirect)
310 (pop_output_files) <logging_no_redirect_file>: New.
311 (handle_redirections) <!logging_redirect>: New variable
312 no_redirect_file. Remove file autoclose for tee_file_new. No longer
313 discard cleanup for the close of former OUTPUT. Set
314 LOGGING_NO_REDIRECT_FILE.
315 (handle_redirections) <logging_redirect>: gdb_assert
316 LOGGING_NO_REDIRECT_FILE.
317 (show_logging_command) <logging_redirect handling>: Adjust messages
318 for SAVED_FILENAME not NULL.
319 (_initialize_cli_logging): Install set_logging_overwrite and
320 set_logging_redirect.
321
322 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
323
324 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
325
326 2010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
327
328 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
329 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
330 add $(GDB_WARN_CFLAGS_NO_FORMAT).
331 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
332
333 2010-09-02 Yao Qi <yao@codesourcery.com>
334
335 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
336 number from a WIFSIGNALED status.
337
338 2010-09-01 Tom Tromey <tromey@redhat.com>
339
340 * symtab.h (lookup_type_symbol): Declare.
341 * symtab.c (lookup_symbol_in_language_full): Rename from
342 lookup_symbol_in_language. Add 'for_type' argument.
343 (lookup_symbol_in_language): New function.
344 (lookup_type_symbol): Likewise.
345 (lookup_symbol_aux): Add 'for_type' argument.
346 (match_symbol_aux): New function.
347 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
348 (match_transparent_type): New function.
349 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
350 * symfile.h (struct quick_symbol_functions)
351 <pre_expand_symtabs_matching>: Remove.
352 <expand_one_symtab_matching>: New field.
353 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
354 (pre_expand_symtabs_matching_psymtabs): Remove.
355 (psym_functions): Update.
356 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
357 * dwarf2read.c (dw2_lookup_symbol): Update comment.
358 (dw2_pre_expand_symtabs_matching): Remove.
359 (dw2_expand_one_symtab_matching): New function.
360 (dwarf2_gdb_index_functions): Update.
361
362 2010-09-01 Joel Brobecker <brobecker@adacore.com>
363
364 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
365
366 2010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
367
368 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
369 as a feature reported by -list-target-features.
370
371 2010-09-01 Joel Brobecker <brobecker@adacore.com>
372
373 * features/Makefile (WHICH): Add rs6000/powerpc-32.
374 (powerpc-32.o, powerpc-32.c): New rules.
375 (clean): Also remove powerpc-32.c.
376 * regformats/rs6000/powerpc-32.dat: Generate.
377
378 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
379
380 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
381 psymbol_bcache_init.
382 * psymtab.h (psymbol_bcache_init): New function prototype.
383 (psymbol_bcache_free): New function prototype.
384 (psymbol_bcache_get_bcache): New function prototype.
385 * psymtab.c (psymbol_bcache_init): New function.
386 (psymbol_bcache_free): New function.
387 (psymbol_bcache_full): New function.
388 (psymbol_bcache_get_bcache): New function.
389 (add_psymbol_to_bcache): use psymbol_bcache_full.
390 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
391 psymbol_bcache.
392 * symmisc.c (print_symbol_bcache_statistics): Updated.
393 (print_objfile_statistics): Updated.
394 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
395 psymbol_cache.
396 (free_objfile): Use psymbol_bcache_free.
397
398 2010-08-31 Tom Tromey <tromey@redhat.com>
399
400 PR c++/11961:
401 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
402 Don't set TYPE_NAME on the type.
403
404 2010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
405
406 * infrun.c (set_exec_direction_func): Error out if target does not
407 support reverse execution.
408
409 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
410
411 Make linux_get_siginfo_type `type *' unique.
412 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
413 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
414 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
415 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
416 (_initialize_linux_tdep): New.
417
418 2010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
419
420 Code cleanup.
421 * defs.h (find_memory_region_ftype): New typedef.
422 (exec_set_find_memory_regions): Use it.
423 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
424 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
425 * gcore.c (objfile_find_memory_regions): Likewise.
426 * gnu-nat.c (gnu_find_memory_regions): Likewise.
427 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
428 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
429 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
430 find_memory_region_ftype.
431 (insert_dbx_link_bpt_in_region): Likewise.
432 (iterate_over_mappings): Likewise. Drop the comment part about the
433 function prototype.
434 (find_memory_regions_callback): Use find_memory_region_ftype.
435 (proc_find_memory_regions): Likewise.
436 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
437 find_memory_region_ftype.
438 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
439 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
440
441 2010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
442
443 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
444 'static partial_symbol psymbol'.
445 (psymbol_hash): New function.
446 (psymbol_compare): New function.
447 * bcache.c (hash_continue): New.
448 (hash): Use hash_continue.
449 * bcache.c: Add hash_function and compare_function
450 pointers to bcache struct.
451 (bcache_full): Use bcache->hash_function, and
452 bcache->compare_function.
453 (bcache_compare): New function.
454 (bcache_xmalloc): Take hash_function and
455 compare_function arguments and initialize the
456 bcach's pointers.
457 Updated comment.
458 * objfiles.c (allocate_objfile): Updated.
459 * symfile.c (reread_symbols): Updated.
460 * python/py-type.c (typy_richcompare): Updated.
461
462 2010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
463 Tom Tromey <tromey@redhat.com>
464
465 PR python/11792:
466 * python/py-value.c (valpy_get_dynamic_type): New function.
467 (value_object_getset): Add "dynamic_type".
468 (valpy_get_type): Fail on error.
469
470 2010-08-30 Yao Qi <yao@codesourcery.com>
471
472 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
473 (arm_linux_syscall_next_pc): New.
474 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
475 (arm_linux_init_abi): Initialize syscall_next_pc.
476 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
477 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
478 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
479 Declare arm_frame_is_thumb.
480
481 2010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
482
483 Code cleanup.
484 * breakpoint.c (bpstat_alloc): Remove unused prototype.
485 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
486 code.
487 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
488 calls of bpstat_alloc. Remove explicit bs chain termination.
489
490 2010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
491
492 Code cleanup.
493 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
494 (my_waitpid): Likewise.
495
496 2010-08-27 Doug Evans <dje@google.com>
497
498 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
499 as appropriate.
500
501 2010-08-27 Tom Tromey <tromey@redhat.com>
502
503 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
504 TYPE_FIELD_IGNORE_BITS.
505
506 2010-08-27 Doug Evans <dje@google.com>
507
508 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
509 the order they're defined in. munmap .debug_types buffer.
510
511 2010-08-26 Doug Evans <dje@google.com>
512
513 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
514 (dw2_forget_cached_source_info): Rename local cu to per_cu.
515 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
516 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
517 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
518 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
519 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
520 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
521 (write_psymtabs_to_index): Ditto.
522
523 2010-08-26 Pedro Alves <pedro@codesourcery.com>
524
525 * NEWS: Mention libthread_db debugging with core files.
526
527 2010-08-26 Doug Evans <dje@google.com>
528
529 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
530 forward decl. Pass pst->dirname to dwarf_decode_lines.
531 (psymtab_include_file_name): New function.
532 (dwarf_decode_lines): Call it. Update comments.
533
534 2010-08-25 Pedro Alves <pedro@codesourcery.com>
535
536 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
537 compilation unit being different from target die's.
538
539 2010-08-24 Doug Evans <dje@google.com>
540
541 PR symtab/11942
542 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
543 debug_types_type_hash.
544 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
545 All uses updated.
546 (lookup_die_type): Renamed from tag_type_to_tag. First look in
547 appropriate type_hash table. All callers updated.
548 (allocate_signatured_type_table): Renamed from
549 allocate_signatured_type_hash_table. All callers updated.
550 (create_signatured_type_table_from_index): Renamed from
551 create_signatured_type_hash_from_index. All callers updated.
552 (read_die_type): Add comment. Move actual reading to ...
553 (read_die_type_1): ... here. New function.
554 (follow_die_ref_or_sig): Tweak comment.
555 (set_die_type): Rewrite to use appropriate choice of
556 debug_info_type_hash or debug_types_type_hash.
557 (get_die_type_at_offset): New function.
558 (get_die_type): Call it.
559
560 2010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
561
562 * python/py-type.c (typy_richcompare): Initialize worklist.
563
564 2010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
565 Kazu Hirata <kazu@codesourcery.com>
566 Jonathan Larmour <jifl@eCosCentric.com>
567
568 * arm-tdep.c: Include features/arm-with-m.c.
569 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
570 call this function.
571 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
572 Check is_m after force-mode.
573 (arm_gdbarch_init): Check the binary before the target description.
574 Add check for M profile attribute. If we have an M-profile device,
575 but no target register description, use arm-with-m. Recognize the
576 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
577 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
578 * arm-tdep.h (XPSR_T): Define.
579 (struct gdbarch_tdep): Add is_m member.
580 * features/arm-m-profile.xml, features/arm-with-m.c,
581 features/arm-with-m.xml: New files.
582
583 2010-08-23 Doug Evans <dje@google.com>
584
585 * dwarf2read.c (read_structure_type): Add comment.
586 (read_enumeration_type): Add comment.
587 (process_enumeration_scope): Move definition of some locals
588 closer to their use.
589 (read_namespace_type): Add comment.
590 (set_die_type): Fix typo in comment.
591
592 2010-08-23 Tom Tromey <tromey@redhat.com>
593
594 PR python/11145:
595 * python/py-value.c: Include expression.h.
596 (valpy_do_cast): New function.
597 (valpy_cast): Use it.
598 (valpy_dynamic_cast): New function.
599 (valpy_reinterpret_cast): Likewise.
600 (value_object_methods): Add dynamic_cast, reinterpret_cast.
601
602 2010-08-23 Tom Tromey <tromey@redhat.com>
603
604 PR python/11391:
605 * python/py-value.c (valpy_nonzero): Don't throw error for other
606 Value types.
607
608 2010-08-23 Tom Tromey <tromey@redhat.com>
609
610 PR python/10676:
611 * python/py-type.c: Include bcache.h, vec.h.
612 (struct type_equality_entry): New.
613 (compare_strings): New function.
614 (check_types_equal): Likewise.
615 (check_types_worklist): Likewise.
616 (typy_richcompare): Likewise.
617 (type_object_type): Set tp_richcompare field.
618
619 2010-08-23 Tom Tromey <tromey@redhat.com>
620
621 PR python/10953:
622 * python/py-type.c (typy_fields): Call check_typedef.
623 (typy_template_argument): Add TRY_CATCH.
624
625 2010-08-23 Tom Tromey <tromey@redhat.com>
626
627 PR python/11915:
628 * python/py-type.c (typy_array): New function.
629 (type_object_methods): Add "array".
630
631 2010-08-20 Pedro Alves <pedro@codesourcery.com>
632
633 * python/python.c: Include "serial.h".
634 (gdbpy_event_fds): Change type to `struct serial *' a array from
635 int array.
636 (gdbpy_run_events): Change parameters. Use serial_readchar in
637 place of read.
638 (gdbpy_post_event): Use serial_write in place of write.
639 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
640 serial_async in place of add_file_handler.
641
642 2010-08-20 Pedro Alves <pedro@codesourcery.com>
643
644 * serial.h (gdb_pipe, serial_pipe): Declare.
645 * serial.c (serial_interface_lookup): Take a const char pointer.
646 (serial_fdopen): Rename to ...
647 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
648 Call the OPS' fdopen function if there is one.
649 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
650 (serial_pipe): New.
651 (struct serial_ops) <fdopen>: New field.
652
653 * ser-mingw.c (free_pipe_state):
654 (free_pipe_state): Close output on non-pex pipes.
655 (pipe_windows_fdopen): New.
656 (gdb_pipe): New.
657 (_initialize_ser_windows): Register pipe_windows_fdopen.
658 * ser-go32.c (gdb_pipe): New.
659 * ser-pipe.c (pipe_close): Close file descriptor even if there's
660 no state pointer.
661 (pipe_ops): Delete.
662 (gdb_pipe): New.
663
664 2010-08-20 Keith Seitz <keiths@redhat.com>
665
666 PR symtab/11465:
667 * dwarf2read.c (struct delayed_method_info): New struct.
668 (struct dwarf2_cu): Add vector method_list.
669 (scan_partial_symbols): Count methods for union, class, structure,
670 and interface types.
671 (add_to_method_list): New function.
672 (free_delayed_list): New function.
673 (compute_delayed_physnames): New function.
674 (process_full_comp_unit): Make a cleanup for the CU's delayed
675 physname list, compute the delayed physnames, and free the
676 the list.
677 (dwarf2_add_member_fn): For C++ and Java, delay the computation
678 of the physname until after the CU is read.
679
680 * dwarf2read.c (read_structure_type): Check if the current
681 DIE's type was already completed after dwarf2_full_name
682 was called.
683
684 2010-08-19 Stan Shebs <stan@codesourcery.com>
685
686 * NEWS: Mention some additional changes.
687
688 2010-08-19 Tom Tromey <tromey@redhat.com>
689
690 * Makefile.in (install-python): Add DESTDIR.
691
692 2010-08-19 Doug Evans <dje@google.com>
693
694 PR exp/11926
695 * parser-defs.h (parse_float, parse_c_float): Declare.
696 * parse.c (parse_float, parse_c_float): New function.
697 * c-exp.y (parse_number): Call parse_c_float.
698 * objc-exp.y (parse_number): Ditto.
699 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
700 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
701
702 2010-08-19 Joel Brobecker <brobecker@adacore.com>
703
704 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
705 the arguments in the correct order.
706 * symtab.c (maybe_add_partial_symtab_filename): Declare
707 the arguments in the correct order.
708
709 2010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
710
711 * varobj.c (varobj_create): Replace variable old_fi with old_id,
712 initialize it by null_frame_id, wrap its usage by get_frame_id,
713 frame_id_p and frame_find_by_id.
714
715 2010-08-18 Tom Tromey <tromey@redhat.com>
716
717 PR python/11900:
718 * configure: Rebuild.
719 * configure.ac: Add install-python to CONFIG_INSTALL.
720 * Makefile.in (install-python): New.
721
722 2010-08-18 Doug Evans <dje@google.com>
723
724 * gdb_assert.h (gdb_assert_not_reached): New macro.
725 (gdb_assert_fail): Fix typo in comment.
726 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
727 gdb_assert (0).
728 * darwin-nat.c (darwin_check_new_threads): Ditto.
729 * dwarf2read.c (dwarf2_get_section_info): Ditto.
730 (munmap_section_buffer): Ditto.
731 * m32c-tdep.c (make_types): Ditto.
732 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
733 * macroexp.c (get_character_constant): Ditto.
734 (get_string_literal): Ditto.
735 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
736 (mep_pseudo_cr_index, mep_register_type): Ditto.
737 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
738 (mep_get_insn, mep_analyze_prologue): Ditto.
739 * objfiles.c (qsort_cmp): Ditto.
740 * prologue-value.c (pv_is_identical): Ditto.
741 * record.c (record_get_loc): Ditto.
742 * value.c (value_static_field): Ditto.
743 * xtensa-tdep.c (call0_track_op): Ditto.
744
745 2010-08-18 Tom Tromey <tromey@redhat.com>
746
747 PR symtab/11919:
748 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
749 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
750 name-copying lower. Document exception behavior.
751 * completer.c (expression_completer): Catch exceptions from
752 parse_field_expression.
753
754 2010-08-18 Pedro Alves <pedro@codesourcery.com>
755
756 PR corefile/8210
757
758 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
759 workaround on core files.
760 (try_thread_db_load_1): Don't try enabling thread event reporting
761 on core files.
762 (thread_db_load): Allow thread_db on core files.
763 (attach_thread): Don't check thread signals on core files, nor try
764 really attaching to the thread, nor enabling thread event event
765 reporting.
766 (thread_db_detach): Don't try disabing thread event reporting or
767 removing thread event breakpoints when debugging a core file.
768 (find_new_threads_callback): Don't try enabling thread event
769 reporting on core files.
770 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
771 debugging a core file.
772 (thread_db_find_new_threads): Don't update thread
773 cores (processors) when debugging a core (dump).
774
775 2010-08-18 Pedro Alves <pedro@codesourcery.com>
776
777 PR corefile/8210
778
779 * corelow.c (add_to_thread_list): Don't use
780 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
781 (get_core_register_section): Don't use
782 gdbarch_core_reg_section_encodes_pid.
783
784 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
785 * gdbarch.h, gdbarch.c: Regenerate.
786 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
787 gdbarch_core_reg_section_encodes_pid.
788 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
789 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
790 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
791
792 2010-08-18 Yao Qi <yao@codesourcery.com>
793
794 * MAINTAINERS : Add myself under Write After Approval.
795
796 2010-08-17 Tom Tromey <tromey@redhat.com>
797
798 * NEWS: Mention template parameter support.
799
800 2010-08-17 Pedro Alves <pedro@codesourcery.com>
801
802 PR breakpoints/11371
803
804 * breakpoint.c (decref_bp_location): Assert the reference count is
805 sane.
806
807 2010-08-17 Pedro Alves <pedro@codesourcery.com>
808
809 PR breakpoints/11371
810
811 * breakpoint.c (breakpoint_init_inferior): Decrement the
812 location's reference count instead of deleting right away.
813 (bpstat_free): Decrement the location's reference count. Make
814 static.
815 (bpstat_copy): Increment the location's reference count.
816 (bpstat_find_breakpoint): Adjust.
817 (bpstat_num): Adjust.
818 (print_it_typical): Adjust. Use the breakpoint pointer in the
819 bpstat instead of the location's owner.
820 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
821 Adjust to record the location's owner in the bpstat.
822 (watchpoint_check): Use the breakpoint pointer in the bpstat
823 instead of the location's owner.
824 (bpstat_check_breakpoint_conditions): Don't handle
825 bp_watchpoint_scope here. Use the breakpoint pointer in the
826 bpstat instead of the location's owner.
827 (bpstat_stop_status): Defer inferior function calls to after
828 building the bpstat list. Handle bp_watchpoint_scope here. Use
829 the breakpoint pointer in the bpstat instead of the location's
830 owner.
831 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
832 the location's owner.
833 (free_bp_location): Don't walk bpstats clearing locations.
834 (incref_bp_location): New.
835 (decref_bp_location): New.
836 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
837 instead of the location's owner.
838 (update_global_location_list): Clear the location's owner, and
839 decrement the location's reference count instead of deleting it
840 right away.
841 (breakpoint_retire_moribund): Decrement the location's reference
842 count instead of deleting it right away.
843 (bpstat_remove_bp_location): Delete.
844 (bpstat_remove_breakpoint): New.
845 (bpstat_remove_bp_location_callback): Delete.
846 (bpstat_remove_breakpoint_callback): New.
847 (delete_breakpoint): Iterate over all threads' stop_bpstat's
848 clearing references to the breakpoint that is being deleted.
849
850 * breakpoint.h (struct bp_location) <refc>: New field.
851 <owner>: Update comments.
852 (bpstat_free): Delete declaration.
853 (struct bpstats): Change the type of the breakpoint_at field to
854 struct breakpoint point, from struct bp_location pointer. Add new
855 field bp_location_at.
856
857 2010-08-16 Tom Tromey <tromey@redhat.com>
858
859 * NEWS: Fix typo.
860
861 2010-08-16 Tom Tromey <tromey@redhat.com>
862
863 * NEWS: Mention watch -location.
864
865 2010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
866
867 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
868 EXP_STRING_REPARSE to EXP_STRING.
869 (watch_command_1): Set also EXP_STRING_REPARSE.
870 (delete_breakpoint): Free also EXP_STRING_REPARSE.
871 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
872 Update comment for exp_string.
873
874 2010-08-16 Tom Tromey <tromey@redhat.com>
875
876 * value.c (release_value): Clear 'next' pointer.
877 * breakpoint.c (watch_command_1): Add 'just_location' argument.
878 (watch_command_wrapper): Update.
879 (watch_maybe_just_location): New function.
880 (watch_command): Update.
881 (rwatch_command_wrapper): Update.
882 (rwatch_command): Update.
883 (awatch_command_wrapper): Update.
884 (awatch_command): Update.
885 (check_for_argument): New function.
886 (_initialize_breakpoint): Update help text.
887
888 2010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
889
890 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
891 typedef'ed function types correctly.
892
893 2010-08-13 Tom Tromey <tromey@redhat.com>
894
895 * python/python-internal.h (gdbpy_get_hook_function): Don't
896 declare.
897
898 2010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
899
900 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
901 static.
902
903 2010-08-13 Ken Werner <ken.werner@de.ibm.com>
904
905 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
906 the format strings to be compatible with Python 2.4.
907
908 2010-08-13 Vladimir Prus <vladimir@codesourcery.com>
909
910 Easier and more stubborn MI memory read commands.
911
912 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
913 and data-write-memory-bytes.
914 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
915 (mi_cmd_data_write_memory_bytes): New.
916 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
917 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
918 New.
919 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
920 * target.c (target_read_until_error): Remove.
921 (read_whatever_is_readable, free_memory_read_result_vector)
922 (read_memory_robust): New.
923 * target.h (target_read_until_error): Remove.
924 (struct memory_read_result, free_memory_read_result_vector)
925 (read_memory_robust): New.
926
927 2010-08-13 Hui Zhu <teawater@gmail.com>
928
929 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
930 (read_comp_unit): Initialize back_to.
931
932 2010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
933 Pedro Alves <pedro@codesourcery.com>
934
935 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
936 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
937 (struct partial_die_info) <has_template_arguments>: New field.
938 <num_attrs>: Change type to unsigned char.
939 <building_fullname>: New field.
940 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
941 allocate a CU if we don't have one already. Add a cleanup for the
942 CU.
943 (partial_die_full_name): Handle template arguments not in
944 DW_AT_name.
945 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
946 (load_full_comp_unit): Only allocate a CU if we don't have one
947 already.
948 (do_ui_file_peek_last): New.
949 (dwarf2_compute_name): Handle template parameters not in
950 DW_AT_name.
951 (read_comp_unit): Read and free abbrevs if not read yet.
952 (load_partial_dies): Handle template arguments not in DW_AT_name.
953 (find_partial_die): If we have a CU, but no a partial dies yet,
954 also read in the CU.
955 (dwarf2_const_value_attr): New, abstracted out from
956 dwarf2_const_value.
957 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
958 dwarf2_const_value_attr.
959 (determine_prefix): Detect and break loops created by RCVT's debug
960 info.
961 (maybe_queue_comp_unit): Bail out early if reading partial
962 symbols.
963 (follow_die_offset): Load full CU if we have no dies.
964 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
965 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
966
967 2010-08-11 Tom Tromey <tromey@redhat.com>
968 Phil Muldoon <pmuldoon@redhat.com>
969
970 * python/python.c (gdbpy_run_events): New function.
971 (gdbpy_post_event): Likewise.
972 (gdbpy_initialize_events): Likewise.
973 (_initialize_python): Call gdbpy_initialize_events.
974
975 2010-08-11 Ken Werner <ken.werner@de.ibm.com>
976
977 * gdb/valarith.c (vector_binop): New function.
978 (scalar_binop): Likewise.
979 (value_binop): Call scalar_binop or vector_binop depending on the types.
980 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
981 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
982 to pointers.
983 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
984
985 2010-08-11 Brad Roberts <braddr@puremagic.com>
986
987 * d-lang.c (extract_identifiers): Handle multiple digits.
988
989 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
990
991 Code cleanup.
992 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
993 Rename to dummy_frame_unwind.
994 (dummy_frame_unwind): Remove.
995 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
996 * frame-unwind.c (frame_unwind_init): Use address of
997 dummy_frame_unwind and inline_frame_unwind.
998 * frame.c (create_sentinel_frame): Use address of
999 sentinel_frame_unwind.
1000 * inline-frame.c (inline_frame_unwinder): Rename to
1001 inline_frame_unwind.
1002 (inline_frame_unwind): Remove.
1003 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
1004 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
1005 sentinel_frame_unwind.
1006 (sentinel_frame_unwind): Remove.
1007 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
1008 struct.
1009
1010 2010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1011
1012 Code cleanup.
1013 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
1014 and returned value. New comment from frame-unwind.h.
1015 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
1016 Extend the comment.
1017 * frame.c (get_frame_id, frame_unwind_register_value)
1018 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
1019 (get_frame_type, frame_unwind_arch): Do not use the return value of
1020 frame_unwind_find_by_frame.
1021
1022 2010-08-11 Phil Muldoon <pmuldoon@redhat.com>
1023 Thiago Jung Bauermann <bauerman@br.ibm.com>
1024 Tom Tromey <tromey@redhat.com>
1025
1026 * python/python.c (gdbpy_solib_address): New function.
1027 (gdbpy_decode_line): Likewise.
1028
1029 2010-08-10 Tom Tromey <tromey@redhat.com>
1030
1031 Revert gdb-add-index addition:
1032 * Makefile.in (install-only): Don't install gdb-add-index.
1033 * gdb-add-index.sh: Remove.
1034
1035 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1036
1037 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
1038 `target_has_execution' check with `to_has_memory' check.
1039 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
1040 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
1041 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
1042
1043 2010-08-09 Kevin Buettner <kevinb@redhat.com>
1044
1045 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
1046 (resume_siggnal, resume_step): Move these static globals...
1047 (struct sim_inferior_data): ...into this new struct.
1048 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
1049 New static globals.
1050 (gdb_callback, callbacks_initialized): Move these globals to
1051 a point earlier in the file.
1052 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
1053 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
1054 (gdbsim_close_inferior, gdbsim_resume_inferior)
1055 (gdbsim_stop_inferior): New functions.
1056 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
1057 New constants.
1058 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
1059 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
1060 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
1061 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
1062 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
1063 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
1064 new local variable `sim_data' in each of these functions. Use
1065 `sim_data' to reference former globals `program_loaded',
1066 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
1067 `resume_step'.
1068 (gdbsim_open): Remove local variable `argv'. Put results of call
1069 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
1070 make a cleanup for it. Free it though when a sim instance cannot
1071 be obtained.
1072 (gdbsim_close): Free sim_argv and null it out as appropriate.
1073 Close sim instances in all inferiors.
1074 (gdbsim_cntrl_c): Stop all inferiors.
1075 (gdbsim_wait):
1076 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
1077
1078 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1079
1080 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
1081 function after symbol construction is complete.
1082 Do the same for template symbol addition to template_symbols list.
1083
1084 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1085
1086 * symtab.c (symbol_get_demangled_name): Remove assertion and
1087 return NULL when language_specific.cplus_specific is not initialized.
1088 * stabsread.c (define_symbol): Set the name before calling
1089 cp_scan_for_anonymous_namespaces.
1090
1091 2010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
1092
1093 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
1094 SYMBOL_SET_LANGUAGE.
1095 (symbol_init_language_specific): Renamed to symbol_set_language.
1096 * symtab.c (symbol_init_language_specific): Removed redundant check
1097 for language_cplus.
1098 Renamed to symbol_set_language.
1099 * stabsread.c (define_symbol): Updated.
1100 (read_enum_type): Updated
1101 * psymtab.c (add_psymbol_to_bcache): Updated.
1102 * minsyms.c (install_minimal_symbols): Updated.
1103 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
1104 SYMBOL_LANGUAGE to set the language.
1105 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
1106 * mdebugread.c (new_symbol): Ditto.
1107 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
1108 * dwarf2read.c (new_symbol_full): Ditto.
1109 * jv-lang.c (add_class_symbol): Ditto.
1110
1111 2010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1112
1113 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
1114 (make_cleanup_restore_page_info)
1115 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
1116 * gdbcmd.h (execute_command_to_string): New declaration.
1117 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
1118 (make_cleanup_restore_ui_file): Move to utils.c
1119 (execute_gdb_command) <to_string>: Move ...
1120 * top.c (execute_command_to_string): ... here. Call
1121 set_batch_flag_and_make_cleanup_restore_page_info.
1122 * utils.c (make_cleanup_restore_integer): New source file blank line.
1123 (make_cleanup_restore_uinteger): New.
1124 (struct restore_ui_file_closure, do_restore_ui_file)
1125 (make_cleanup_restore_ui_file): Move here from python/python.c.
1126 (init_page_info) <batch_flag>
1127 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
1128 (set_batch_flag_and_make_cleanup_restore_page_info): New.
1129
1130 2010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
1131
1132 * thread.c (add_thread_silent): Use null_ptid instead of
1133 minus_one_ptid while getting rid of stale inferior_ptid.
1134
1135 2010-08-06 Corinna Vinschen <vinschen@redhat.com>
1136
1137 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
1138 Throughout, call read_encoded_value with ptr_size rather than addr_size.
1139 (decode_frame_entry_1): Remove redundant setting of
1140 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
1141 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
1142 on examined frame section. Add comment to explain why.
1143 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
1144 comment to explain usage.
1145 * gdbarch.c: Regenerate.
1146 * gdbarch.h: Regenerate.
1147
1148 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
1149
1150 2010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1151
1152 Code cleanup.
1153 * varobj.c (varobj_create): Move variables fi, old_fi and block to
1154 a more inner block.
1155
1156 2010-08-05 Pedro Alves <pedro@codesourcery.com>
1157
1158 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
1159 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1160 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
1161 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
1162 linux-tdep.o to gdb_target_obs.
1163
1164 2010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
1165
1166 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
1167 argument.
1168
1169 2010-08-05 Hui Zhu <teawater@gmail.com>
1170
1171 * mips-linux-tdep.c(regset.h): New include.
1172 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
1173 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
1174 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
1175 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
1176 mips_linux_regset_from_core_section): New functions.
1177 (fetch_core_registers, regset_core_fns): Deleted.
1178 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
1179 Deleted regset_core_fns.
1180 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
1181 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
1182 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
1183 and fpregset64.
1184
1185 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1186
1187 * s390-tdep.c: Include linux-tdep.h.
1188 (s390_gdbarch_init): Call linux_init_abi.
1189
1190 2010-08-04 Pedro Alves <pedro@codesourcery.com>
1191
1192 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
1193 instead of printing "Thread" here.
1194 * linux-tdep.c: Include inferior.h.
1195 (linux_core_pid_to_str): New.
1196 (linux_init_abi): New.
1197 * linux-tdep.h (linux_init_abi): Declare.
1198 * alpha-linux-tdep.c: Include linux-tdep.h.
1199 (alpha_linux_init_abi): Call linux_init_abi.
1200 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
1201 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
1202 * frv-linux-tdep.c: Include linux-tdep.h
1203 (frv_linux_init_abi): Call linux_init_abi.
1204 * hppa-linux-tdep.c: Include linux-tdep.h
1205 (hppa_linux_init_abi): Call linux_init_abi.
1206 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
1207 * ia64-linux-tdep.c: Include linux-tdep.h.
1208 (ia64_linux_init_abi): Call linux_init_abi.
1209 * m32r-linux-tdep.c: Include linux-tdep.h.
1210 (m32r_linux_init_abi): Call linux_init_abi.
1211 * m68klinux-tdep.c: Include linux-tdep.h.
1212 (m68k_linux_init_abi): Call linux_init_abi.
1213 * microblaze-linux-tdep.c: Include linux-tdep.h.
1214 (microblaze_linux_init_abi): Call linux_init_abi.
1215 * mips-linux-tdep.c: Include linux-tdep.h.
1216 (mips_linux_init_abi): Call linux_init_abi.
1217 * mn10300-linux-tdep.c: Include linux-tdep.h.
1218 (am33_linux_init_osabi): Call linux_init_abi. Rename the
1219 'gdbinfo' parameter to 'info'.
1220 * ppc-linux-tdep.c: Include linux-tdep.h.
1221 (ppc_linux_init_abi): Call linux_init_abi.
1222 * sh-linux-tdep.c: Include linux-tdep.h.
1223 (sh_linux_init_abi): Call linux_init_abi.
1224 * sparc-linux-tdep.c: Include linux-tdep.h.
1225 (sparc32_linux_init_abi): Call linux_init_abi.
1226 * sparc64-linux-tdep.c: Include linux-tdep.h.
1227 (sparc64_linux_init_abi): Call linux_init_abi.
1228 * xtensa-linux-tdep.c: Include linux-tdep.h.
1229 (xtensa_linux_init_abi): Call linux_init_abi.
1230 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
1231 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
1232 callback.
1233
1234 2010-08-03 Doug Evans <dje@google.com>
1235
1236 * breakpoint.c (bpdisp_text): Constify bpdisps.
1237 * solib-svr4.c (solib_break_names): Constify.
1238 (bkpt_names, main_name_list): Constify.
1239 (match_main): Constify soname arg.
1240 (bfd_lookup_symbol): Remove unnecessary forward decl.
1241 Constify symname arg.
1242 (enable_break): Constify bkpt_namep.
1243 * symtab.c (search_symbols): Constify types, types2, types3, types4.
1244 (symtab_symbol_info): Constify classnames.
1245
1246 2010-08-03 Phil Muldoon <pmuldoon@redhat.com>
1247
1248 * NEWS: Document Python value inferior function calls.
1249
1250 2010-08-02 Doug Evans <dje@google.com>
1251
1252 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
1253
1254 2010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1255
1256 * linux-thread-db.c (libthread_db_debug): New variable.
1257 (thread_db_find_new_threads_silently): Control verbosity with it.
1258 (try_thread_db_load_1, try_thread_db_load): Likewise.
1259 (find_new_threads_once): Likewise.
1260 (_initialize_thread_db): Set/show it.
1261
1262 2010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1263
1264 * common/signals.c (signals): Move the content to signals.def.
1265 Include it. Remove the INDENT comments.
1266
1267 2010-07-30 Tom Tromey <tromey@redhat.com>
1268
1269 * Makefile.in (install-only): Install gdb-add-index.
1270 * gdb-add-index.sh: New file.
1271
1272 2010-07-31 Renquan Cheng <crq@gcc.gnu.org>
1273
1274 * MAINTAINERS: Add myself for write after approval privileges.
1275
1276 2010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1277
1278 * symfile.c (addr_section_name): New function.
1279 (addrs_section_compar): Use it.
1280 (addr_info_make_relative): Use it. Move variable sect_name into a more
1281 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
1282
1283 2010-07-30 Tom Tromey <tromey@redhat.com>
1284
1285 * configure: Rebuild.
1286 * configure.ac: Add missing case for Python 2.7.
1287
1288 2010-07-29 DJ Delorie <dj@redhat.com>
1289
1290 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
1291 conditions.
1292
1293 2010-07-29 Pedro Alves <pedro@codesourcery.com>
1294
1295 * PROBLEMS: Remove mention of all problems.
1296
1297 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1298
1299 PR build/11848
1300 * configure.ac: Check for wresize.
1301 * configure, config.in: Regenerate.
1302 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
1303 with HAVE_WRESIZE.
1304
1305 2010-07-28 Tom Tromey <tromey@redhat.com>
1306
1307 PR python/11060:
1308 * python/py-type.c (typy_legacy_template_argument): New function,
1309 extracted from typy_template_argument.
1310 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
1311 value when needed.
1312
1313 2010-07-28 Oleg Nesterov <oleg@redhat.com>
1314
1315 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
1316
1317 2010-07-27 Tom Tromey <tromey@redhat.com>
1318
1319 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
1320
1321 2010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
1322
1323 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
1324 handling DW_AT_object_pointer, and workaround GCC PR 43053.
1325
1326 2010-07-28 Tom Tromey <tromey@redhat.com>
1327
1328 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
1329
1330 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1331
1332 * remote.c (remote_download_tracepoint): Add missing gettext markup.
1333 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
1334
1335 2010-07-28 Joel Brobecker <brobecker@adacore.com>
1336
1337 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
1338 down, just before the block that parse the breakpoint addr_string.
1339
1340 2010-07-28 Tom Tromey <tromey@redhat.com>
1341
1342 PR c++/9946:
1343 * symfile.c (reread_symbols): Clear template_symbols.
1344 * symtab.h (struct symbol) <is_cplus_template_function>: New
1345 field.
1346 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
1347 (struct template_symbol): New.
1348 * symtab.c (lookup_symbol_aux_local): Use
1349 cp_lookup_symbol_imports_or_template.
1350 * objfiles.h (struct objfile) <template_symbols>: New field.
1351 * objfiles.c (relocate_one_symbol): New function.
1352 (objfile_relocate1): Use it. Relocate isolated symbols.
1353 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
1354 template_arguments>: New fields.
1355 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
1356 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
1357 (TYPE_TEMPLATE_ARGUMENT): Likewise.
1358 (lookup_typename): Update.
1359 * gdbtypes.c (lookup_typename): Constify "block" argument.
1360 * dwarf2read.c: Include vec.h.
1361 (symbolp): New typedef.
1362 (read_func_scope): Read template arguments. Allocate a
1363 template_symbol when needed.
1364 (read_structure_type): Read template arguments.
1365 (new_symbol_full): New function, from new_symbol. Handle
1366 DW_TAG_template_type_param and DW_TAG_template_value_param.
1367 (new_symbol): Rewrite as wrapper.
1368 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
1369 * cp-namespace.c: Include language.h.
1370 (search_symbol_list): New function.
1371 (cp_lookup_symbol_imports_or_template): Likewise.
1372
1373 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1374
1375 * tui/tui-win.c (make_visible_with_new_height): Resize and move
1376 the command window to the new size and position.
1377
1378 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1379
1380 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
1381 coordinates.
1382
1383 2010-07-28 Balazs Kezes <rlblaster@gmail.com>
1384
1385 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
1386 after a detecting a resize.
1387 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
1388 call.
1389
1390 2010-07-28 Pedro Alves <pedro@codesourcery.com>
1391
1392 * configure.ac: Check for resize_term.
1393 * configure, config.in: Regenerate.
1394
1395 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1396
1397 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
1398
1399 2010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
1400
1401 * dwarf2read.c (read_string): Rename to ...
1402 (read_direct_string): ... this.
1403 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
1404 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
1405
1406 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1407
1408 * linux-nat.c (linux_nat_lp_status_is_event): New function.
1409 (count_events_callback, select_event_lwp_callback)
1410 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
1411
1412 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1413
1414 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
1415 (_initialize_ia64_linux_nat): Install it.
1416 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
1417 (linux_nat_set_status_is_event): New.
1418 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
1419 cancel_breakpoints_callback, linux_nat_filter_event)
1420 (linux_nat_wait_1): Use linux_nat_status_is_event.
1421 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
1422
1423 2010-07-27 Tom Tromey <tromey@redhat.com>
1424
1425 * NEWS: Mention labels, .gdb_index.
1426
1427 2010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
1428
1429 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
1430 "start,+length" form of arguments.
1431 * NEWS: Add "Changed commands" (disassemble) section for "Changes
1432 since GDB 7.1"; and merge two separated paragraphs of disassemble
1433 description in "Changes in GDB 7.0".
1434
1435 2010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1436
1437 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
1438 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
1439 (fputs_maybe_filtered): Do not do filtering also on
1440 ! INPUT_FROM_TERMINAL_P.
1441
1442 2010-07-27 Joel Brobecker <brobecker@adacore.com>
1443
1444 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
1445 in warning message.
1446
1447 2010-07-27 Phil Muldoon <pmuldoon@redhat.com>
1448
1449 * python/py-value.c (valpy_call): New Function.
1450
1451 2010-07-27 Ken Werner <ken.werner@de.ibm.com>
1452
1453 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
1454 types_list_elements variables.
1455
1456 2010-07-26 Tom Tromey <tromey@redhat.com>
1457
1458 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
1459 TLS with DW_OP_const4u or DW_OP_const8u.
1460
1461 2010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
1462
1463 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
1464 VSX registers contents.
1465
1466 2010-07-26 Jerome Guitton <guitton@adacore.com>
1467
1468 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
1469 its adress is null. Add comment to explain why.
1470 (new_symbol): Ditto.
1471
1472 2010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1473
1474 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
1475 the host signal first.
1476
1477 2010-07-23 Tom Tromey <tromey@redhat.com>
1478
1479 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
1480 type_comp_units>: New fields.
1481 (dw2_get_cu): New function.
1482 (create_cus_from_index): Remove unused argument.
1483 (create_signatured_type_hash_from_index): New function.
1484 (create_addrmap_from_index): Update.
1485 (dwarf2_read_index): Handle version 2.
1486 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
1487 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
1488 (dw2_print_stats, dw2_expand_all_symtabs)
1489 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
1490 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
1491 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
1492 (allocate_signatured_type_hash_table): New function.
1493 (add_signatured_type_cu_to_list): Likewise.
1494 (create_debug_types_hash_table): Use them. Set type_comp_units.
1495 (read_signatured_type): Ensure section data is available.
1496 (add_address_entry): Don't record empty ranges.
1497 (struct signatured_type_index_data): New.
1498 (write_one_signatured_type): New function.
1499 (write_psymtabs_to_index): Write type CUs.
1500 (save_gdb_index_command): Update comment.
1501 (process_type_comp_unit): Move inititalization of
1502 from_debug_types...
1503 (create_debug_types_hash_table): ... here.
1504
1505 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1506
1507 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
1508 cleanup and generating of gdb script to it.
1509 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
1510 and terminal size. Convert $tmpfile to a series of -ex-es.
1511
1512 2010-07-23 Keith Seitz <keiths@redhat.com>
1513
1514 * symtab.c (basic_lookup_transparent_type): Call pre-expand
1515 hook for STATIC_BLOCK types, too.
1516
1517 2010-07-23 Keith Seitz <keiths@redhat.com>
1518
1519 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
1520 and vector definition.
1521
1522 2010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1523
1524 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
1525
1526 2010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1527
1528 * dwarf2read.c: Include completer.h.
1529 (save_gdb_index_command): Use matching usage command name.
1530 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
1531 Set filename_completer for it.
1532
1533 2010-07-22 Tom Tromey <tromey@redhat.com>
1534
1535 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
1536 type signature's per-CU data.
1537
1538 2010-07-22 Pedro Alves <pedro@codesourcery.com>
1539
1540 * NEWS: Mention target reported shared libraries support by
1541 default.
1542
1543 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1544
1545 PR symtab/11827
1546
1547 Revert:
1548 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1549 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1550 and DW_TAG_volatile_type.
1551 (new_symbol): Likewise.
1552
1553 2010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
1554
1555 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
1556 function symbols before overload resolution.
1557
1558 2010-07-21 Pedro Alves <pedro@codesourcery.com>
1559
1560 * breakpoint.c (bptype_string): New, abstracted out from
1561 print_one_breakpoint_location.
1562 (print_one_breakpoint_location): Adjust.
1563 (breakpoint_1): Adjust the type column width dynamically.
1564
1565 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1566
1567 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1568 a gdb_assert call, new comment.
1569
1570 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1571
1572 * linux-nat.c (linux_handle_extended_wait): Handle case when
1573 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
1574
1575 2010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1576
1577 Code cleanup.
1578 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
1579 linux_nat_wait_1. Use always LP->STATUS afterwards.
1580
1581 2010-07-20 Hui Zhu <teawater@gmail.com>
1582
1583 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
1584 (inf_ptrace_attach): Ditto.
1585
1586 2010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1587
1588 Make core files the process_stratum.
1589 * corefile.c (core_target): New variable.
1590 (core_file_command): Remove variable t, use core_target.
1591 * corelow.c (core_ops): Make it static.
1592 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
1593 * defs.h (make_cleanup_unpush_target): New prototype.
1594 * gdbarch.h: Regenerate.
1595 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
1596 * gdbcore.h (core_target): New declaration.
1597 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
1598 variables ops_already_pushed and back_to. Use push_target,
1599 make_cleanup_unpush_target and discard_cleanups calls.
1600 * record.c (record_open): Replace core_stratum by a core_bfd check.
1601 * target.c (target_is_pushed): New function.
1602 (find_core_target): Remove.
1603 * target.h (enum strata) <core_stratum>: Remove.
1604 (target_is_pushed): New declaration.
1605 (find_core_target): Remove declaration.
1606 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
1607 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
1608
1609 2010-07-19 Hui Zhu <teawater@gmail.com>
1610
1611 * breakpoint.c (single_step_breakpoints_inserted): New
1612 function.
1613 * breakpoint.h (single_step_breakpoints_inserted): Extern.
1614 * infrun.c (maybe_software_singlestep): Add check code.
1615 * record.c (record_resume): Add code for software single step.
1616 (record_wait): Ditto.
1617
1618 2010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1619
1620 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
1621 a more inner block. Remove its unused declaration initializer.
1622
1623 2010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
1624
1625 * NEWS: Mention support for the new ptrace interface and hardware
1626 accelerated watchpoint conditions on powerpc-linux.
1627
1628 2010-07-16 Ozkan Sezer <sezeroz@gmail.com>
1629
1630 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
1631 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
1632 and host_address_to_string() and %s for pointers.
1633 (debug_to_remove_breakpoint): Likewise.
1634 (debug_to_region_ok_for_hw_watchpoint): Likewise.
1635 (debug_to_can_accel_watchpoint_condition): Likewise.
1636 (debug_to_stopped_data_address): Likewise.
1637 (debug_to_watchpoint_addr_within_range): Likewise.
1638 (debug_to_insert_hw_breakpoint): Likewise.
1639 (debug_to_remove_hw_breakpoint): Likewise.
1640 (debug_to_insert_watchpoint): Likewise.
1641 (debug_to_remove_watchpoint): Likewise.
1642
1643 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1644
1645 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
1646 argument.
1647 (cplus_specific): New struct.
1648 * symtab.c (symbol_set_demangled_name): Updated.
1649 Use cplus_specific for cplus symbols.
1650 (symbol_get_demangled_name): Retrive the name from the cplus_specific
1651 struct for cplus symbols.
1652 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
1653 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
1654 * symtab.c (symbol_init_cplus_specific): New function.
1655
1656 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1657
1658 * symtab.h (symbol_set_demangled_name): New function.
1659 (symbol_get_demangled_name): New function.
1660 * symtab.c (symbol_set_demangled_name): New function.
1661 (symbol_get_demangled_name): New function.
1662 (symbol_init_language_specific): Use demangled_name setter and getter.
1663 (symbol_set_names): Ditto.
1664 (symbol_natural_name): Ditto.
1665 (symbol_demangled_name): Ditto.
1666 * dwarf2read.c (new_symbol): Ditto.
1667
1668 2010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1669
1670 * symtab.h: Renamed cplus_specific to mangled_lang.
1671 * symtab.c (symbol_init_language_specific): Updated.
1672 (symbol_set_names): Updated.
1673 (symbol_natural_name): Updated.
1674 (symbol_demangled_name): Updated.
1675 * ada-lang.c (ada_decode_symbol): Updated.
1676 * dwarf2read.c (new_symbol): Updated.
1677
1678 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1679
1680 * valops.c (value_assign): Do not call to value_coerce_to_target.
1681 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
1682
1683 2010-07-14 Ken Werner <ken.werner@de.ibm.com>
1684
1685 * MAINTAINERS: Add myself for write after approval privileges.
1686
1687 2010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
1688
1689 * c-valprint.c (c_val_print): Add embedded_offset to address in
1690 call to val_print_array_elements.
1691
1692 2010-07-13 Tom Tromey <tromey@redhat.com>
1693
1694 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
1695
1696 2010-07-13 Tom Tromey <tromey@redhat.com>
1697
1698 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
1699 objfile.
1700
1701 2010-07-13 Tom Tromey <tromey@redhat.com>
1702
1703 * symfile.c (set_initial_language): Update.
1704 (deduce_language_from_filename): Argument type now const.
1705 * symtab.h (find_main_filename): Update.
1706 (deduce_language_from_filename): Update.
1707 * symtab.c (find_main_filename): Make result const.
1708 * dwarf2read.c (dw2_find_symbol_file): Change return type.
1709 * psymtab.c (find_symbol_file_from_partial): Change return type.
1710 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1711 Make result const.
1712
1713 2010-07-13 Tom Tromey <tromey@redhat.com>
1714
1715 * breakpoint.c (save_cmdlist): No longer static.
1716 * gdbcmd.h (save_cmdlist): Declare.
1717 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
1718 OBJF_READNOW on objfile if readnow_symbol_files.
1719 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
1720 (elf_sym_fns_gdb_index): New global.
1721 * dwarf2read.c: Include exceptions.h.
1722 (offset_type): New.
1723 (struct mapped_index): New.
1724 (dwarf2_per_cu_data_ptr): New typedef.
1725 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
1726 New fields.
1727 (GDB_INDEX_SECTION): New define.
1728 (struct dwarf2_per_cu_quick_data): New.
1729 (struct dwarf2_per_cu_data) <objfile>: New field.
1730 <psymtab>: Removed.
1731 <v>: New field.
1732 (byte_swap): New function.
1733 (MAYBE_SWAP): New macro.
1734 (INDEX_SUFFIX): New macro.
1735 (dw2_do_instantiate_symtab): New function.
1736 (dw2_instantiate_symtab): Likewise.
1737 (create_cus_from_index): Likewise.
1738 (create_addrmap_from_index): Likewise.
1739 (mapped_index_string_hash): Likewise.
1740 (find_slot_in_mapped_hash): Likewise.
1741 (dwarf2_read_index): Likewise.
1742 (dw2_setup): Likewise.
1743 (dw2_require_line_header): Likewise.
1744 (dw2_require_full_path): Likewise.
1745 (dw2_find_last_source_symtab): Likewise.
1746 (dw2_forget_cached_source_info): Likewise.
1747 (dw2_lookup_symtab): Likewise.
1748 (dw2_lookup_symbol): Likewise.
1749 (dw2_do_expand_symtabs_matching): Likewise.
1750 (dw2_pre_expand_symtabs_matching): Likewise.
1751 (dw2_print_stats): Likewise.
1752 (dw2_dump): Likewise.
1753 (dw2_relocate): Likewise.
1754 (dw2_expand_symtabs_for_function): Likewise.
1755 (dw2_expand_all_symtabs): Likewise.
1756 (dw2_expand_symtabs_with_filename): Likewise.
1757 (dw2_find_symbol_file): Likewise.
1758 (dw2_map_ada_symtabs): Likewise.
1759 (dw2_expand_symtabs_matching): Likewise.
1760 (dw2_find_pc_sect_symtab): Likewise.
1761 (dw2_map_symbol_names): Likewise.
1762 (dw2_map_symbol_filenames): Likewise.
1763 (dw2_has_symbols): Likewise.
1764 (dwarf2_gdb_index_functions): New global.
1765 (dwarf2_initialize_objfile): New function.
1766 (process_psymtab_comp_unit): Update.
1767 (add_partial_subprogram): Likewise.
1768 (dwarf2_psymtab_to_symtab): Likewise.
1769 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
1770 (process_full_comp_unit): Update.
1771 (find_file_and_directory): New function.
1772 (read_file_scope): Use find_file_and_directory.
1773 (dwarf2_per_cu_objfile): Update.
1774 (dwarf2_per_cu_addr_size): Update.
1775 (dwarf2_per_cu_offset_size): Update.
1776 (dwarf2_free_objfile): Free the index, if needed.
1777 (dwarf2_per_objfile_free): Unmap the index, if needed.
1778 (struct strtab_entry): New.
1779 (hash_strtab_entry): New function.
1780 (eq_strtab_entry): Likewise.
1781 (create_strtab): Likewise.
1782 (add_string): Likewise.
1783 (struct symtab_index_entry): New.
1784 (struct mapped_symtab): New.
1785 (hash_symtab_entry): New function.
1786 (eq_symtab_entry): Likewise.
1787 (delete_symtab_entry): Likewise.
1788 (create_index_table): Likewise.
1789 (create_mapped_symtab): Likewise.
1790 (cleanup_mapped_symtab): Likewise.
1791 (find_slot): Likewise.
1792 (hash_expand): Likewise.
1793 (add_index_entry): Likewise.
1794 (add_indices_to_cpool): Likewise.
1795 (write_hash_table): Likewise.
1796 (add_address_entry): Likewise.
1797 (write_psymbols): Likewise.
1798 (write_obstack): Likewise.
1799 (unlink_if_set): Likewise.
1800 (write_psymtabs_to_index): Likewise.
1801 (save_gdb_index_command): Likewise.
1802 (_initialize_dwarf2_read): Install "save gdb-index"
1803 command.
1804 (create_all_comp_units): Initialize 'objfile' field of CU.
1805 (dwarf2_locate_sections): Check for .gdb_index.
1806 * psymtab.h (dwarf2_gdb_index_functions): Declare.
1807 * symfile.h (dwarf2_initialize_objfile): Declare.
1808
1809 2010-07-13 Tom Tromey <tromey@redhat.com>
1810
1811 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
1812 (basic_lookup_transparent_type): Likewise.
1813 * symfile.h (struct quick_symbol_functions)
1814 <pre_expand_symtabs_matching>: New field.
1815 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
1816 (psym_functions): Update.
1817
1818 2010-07-13 Tom Tromey <tromey@redhat.com>
1819
1820 PR breakpoints/8357:
1821 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
1822 * linespec.c (decode_line_1): Update comment. Call decode_label.
1823 (decode_label): New function.
1824 (symbol_found): Handle LOC_LABEL.
1825 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
1826 domain. Call add_symbol_to_list.
1827
1828 2010-07-13 Tom Tromey <tromey@redhat.com>
1829
1830 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
1831 * dwarf2loc.c (find_location_expression): Use
1832 dwarf2_per_cu_text_offset.
1833 (dwarf2_evaluate_loc_desc): Likewise.
1834 (dwarf2_loc_desc_needs_frame): Likewise.
1835 (compile_dwarf_to_ax): Likewise.
1836 (loclist_describe_location): Likewise.
1837 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
1838 (dwarf2_per_cu_objfile): Update comment.
1839
1840 2010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1841
1842 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
1843 * p-lang.c (pascal_printstr): Likewise.
1844
1845 2010-07-09 Tom Tromey <tromey@redhat.com>
1846
1847 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
1848 'hint' if it is NULL.
1849
1850 2010-07-09 Hui Zhu <teawater@gmail.com>
1851
1852 * source.c (print_source_lines_base): Add check for noprint.
1853
1854 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1855
1856 * python/python-config.py: Resync with Python 2.7 version of this
1857 script.
1858
1859 2010-07-08 Joel Brobecker <brobecker@adacore.com>
1860
1861 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
1862
1863 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1864
1865 * NEWS: Create a new section for the next release branch.
1866 Rename the section of the current branch, now that it has
1867 been cut.
1868
1869 2010-07-07 Joel Brobecker <brobecker@adacore.com>
1870
1871 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
1872 * version.in: Bump version to 7.2.50.20100707-cvs.
1873
1874 2010-07-07 Tom Tromey <tromey@redhat.com>
1875
1876 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
1877 LOC_COMPUTED symbol.
1878 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
1879 (dwarf2_loc_desc_needs_frame): Likewise.
1880 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
1881 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
1882 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
1883 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
1884 'offset' argument.
1885 (struct dwarf2_frame_cache) <text_offset>: New field.
1886 (dwarf2_frame_cache): Set new field.
1887 (dwarf2_frame_prev_register): Update.
1888 (dwarf2_frame_sniffer): Update.
1889 (dwarf2_frame_base_sniffer): Update.
1890 (dwarf2_frame_find_fde): Add 'out_offset' argument.
1891
1892 2010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1893 Thiago Jung Bauermann <bauerman@br.ibm.com>
1894
1895 Support for hw accelerated condition watchpoints in booke powerpc.
1896
1897 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
1898 and move to eval.c. Change callers.
1899 (insert_bp_location): Pass watchpoint condition in
1900 target_insert_watchpoint.
1901 (remove_breakpoint_1) Pass watchpoint condition in
1902 target_remove_watchpoint.
1903 (watchpoint_locations_match): Call
1904 target_can_accel_watchpoint_condition.
1905 * eval.c: Include wrapper.h.
1906 (fetch_subexp_value): Moved from breakpoint.c.
1907 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
1908 Formatting fix.
1909 (can_use_watchpoint_cond_accel): New function.
1910 (calculate_dvc): Likewise.
1911 (num_memory_accesses): Likewise.
1912 (check_condition): Likewise.
1913 (ppc_linux_can_accel_watchpoint_condition): Likewise
1914 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
1915 check_condition and calculate_dvc.
1916 (ppc_linux_remove_watchpoint): Likewise.
1917 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
1918 ppc_linux_can_accel_watchpoint_condition
1919 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
1920 condition.
1921 (debug_to_remove_watchpoint): Likewise.
1922 (debug_to_can_accel_watchpoint_condition): New function.
1923 (update_current_target): Set to_can_accel_watchpoint_condition.
1924 (setup_target_debug): Set to_can_accel_watchpoint_condition.
1925 * target.h: Add opaque declaration for struct expression.
1926 (struct target_ops) <to_insert_watchpoint>,
1927 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
1928 <to_can_accel_watchpoint_condition>: New member.
1929 condition. Update all callers and implementations.
1930 (target_can_accel_watchpoint_condition): New macro.
1931 * value.c (free_value_chain): New function.
1932 * value.h (fetch_subexp_value): New prototype.
1933 (free_value_chain): Likewise.
1934
1935 2010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
1936
1937 * linux-nat.c (linux_nat_do_thread_registers): Use section size
1938 from gdbarch_core_regset_sections also for .reg if present.
1939
1940 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
1941 section size for .reg.
1942 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1943 (ppc_linux_vmx_regset_sections): Likewise.
1944 (ppc_linux_fp_regset_sections): Likewise.
1945 (ppc64_linux_vsx_regset_sections): New variable.
1946 (ppc64_linux_vmx_regset_sections): Likewise.
1947 (ppc64_linux_fp_regset_sections): Likewise.
1948 (ppc_linux_init_abi): Install core_regset_section lists appropriate
1949 for current word size.
1950
1951 2010-07-06 Joel Brobecker <brobecker@adacore.com>
1952
1953 * server.c (myresume): Make static.
1954
1955 2010-07-06 Tom Tromey <tromey@redhat.com>
1956
1957 * configure, config.in: Rebuild.
1958 * configure.ac (HAVE_LIBPYTHON2_7): New define.
1959 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
1960
1961 2010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1962
1963 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
1964 "clear".
1965
1966 2010-07-06 Ken Werner <ken.werner@de.ibm.com>
1967
1968 * gdbtypes.h (floatformats_ieee_half): Add declaration.
1969 * gdbtypes.c (floatformats_ieee_half): New variable.
1970 * doublest.c (floatformat_from_length): Set format to
1971 gdbarch_half_format if length matches.
1972 * gdbarch.sh (half_bit): New architecture method.
1973 (half_format): Likewise.
1974 * gdbarch.h: Regenerate.
1975 * gdbarch.c: Likewise.
1976
1977 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1978 Joel Brobecker <brobecker@adacore.com>
1979
1980 Fix re-run of PIE executable, PR shlibs/11776.
1981 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
1982 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
1983
1984 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1985 Joel Brobecker <brobecker@adacore.com>
1986
1987 * auxv.c (memory_xfer_auxv): Update attach comment.
1988 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
1989 svr4_relocate_main_executable.
1990 (svr4_solib_create_inferior_hook): Make the call to
1991 svr4_relocate_main_executable unconditional.
1992
1993 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1994 Joel Brobecker <brobecker@adacore.com>
1995
1996 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
1997
1998 2010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1999 Joel Brobecker <brobecker@adacore.com>
2000
2001 Fix attaching to PIEs prelinked on the disk after the process was
2002 started.
2003 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
2004 Verify it against bfd_get_arch_size. Try to match arbitrary
2005 displacement for the phdrs comparison.
2006
2007 2010-07-02 Tom Tromey <tromey@redhat.com>
2008
2009 PR exp/11780:
2010 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
2011 value as optimized-out.
2012
2013 2010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
2014 Thiago Jung Bauermann <bauerman@br.ibm.com>
2015
2016 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
2017 represent?" question in comment. Change comment to a proper sentence.
2018
2019 2010-07-02 Ken Werner <ken.werner@de.ibm.com>
2020
2021 * c-valprint.c (c_val_print): Fix printing of character vectors.
2022
2023 2010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2024
2025 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
2026 create_breakpoint prototype.
2027
2028 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2029
2030 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
2031 usefulness suggestion of multiple breakpoints at same location.
2032
2033 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2034
2035 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
2036
2037 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2038
2039 * dwarf2loc.c (locexpr_tracepoint_var_ref)
2040 (loclist_tracepoint_var_ref): Handle optimized out values.
2041
2042 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2043
2044 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
2045 unnecessary space in string.
2046 * filesystem.c (_initialize_filesystem): Ditto.
2047 * frame.c (_initialize_frame): Ditto.
2048 * infcmd.c (step_once): Ditto.
2049 * infrun.c (_initialize_infrun): Ditto.
2050 * linux-nat.c (linux_child_follow_fork): Ditto.
2051 * maint.c (maintenance_deprecate): Ditto.
2052 * memattr.c (_initialize_mem): Ditto.
2053 * mips-tdep.c (_initialize_mips_tdep): Ditto.
2054 * monitor.c (monitor_open): Ditto.
2055 * procfs.c (procfs_xfer_memory): Ditto.
2056 * reverse.c (bookmarks_info): Ditto.
2057 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
2058 * stack.c (_initialize_stack): Ditto.
2059 * tracepoint.c (_initialize_tracepoint): Ditto.
2060 * xtensa-tdep.c (xtensa_supply_gregset,
2061 xtensa_regset_from_core_section): Ditto.
2062
2063 2010-07-01 Tom Tromey <tromey@redhat.com>
2064
2065 * value.h (struct lval_funcs) <check_any_valid>: Rename from
2066 check_all_valid.
2067 * value.c (value_entirely_optimized_out): Invert result. Update
2068 for new function name.
2069
2070 2010-07-01 Pedro Alves <pedro@codesourcery.com>
2071
2072 Static tracepoints support.
2073
2074 * NEWS: Mention new support for static tracepoints.
2075 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
2076 qXfer:statictrace:read.
2077 (New features in the GDB remote stub, GDBserver): Mention static
2078 tracepoints support using an UST based backend.
2079 (New commands): Mention "info static-tracepoint-markers" and
2080 "strace".
2081 * breakpoint.c (is_marker_spec): New.
2082 (is_tracepoint): Handle static tracepoints.
2083 (validate_commands_for_breakpoint): Static tracepoints can't do
2084 while-stepping.
2085 (static_tracepoints_here): New.
2086 (bpstat_what): Handle static tracepoints.
2087 (print_one_breakpoint_location, allocate_bp_location, mention):
2088 Ditto.
2089 (create_breakpoint_sal): Ditto.
2090 (decode_static_tracepoint_spec): New.
2091 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
2092 `type_wanted'. Adjust. Handle static tracepoint marker
2093 locations.
2094 (break_command_1): Adjust.
2095 (update_static_tracepoint): New.
2096 (update_breakpoint_locations): Handle static tracepoints.
2097 (breakpoint_re_set_one): Handle static tracepoint marker
2098 locations.
2099 (disable_command, enable_command): Handle static tracepoints.
2100 (trace_command, ftrace_command): Adjust.
2101 (strace_command): New.
2102 (create_tracepoint_from_upload): Adjust.
2103 (save_breakpoints): Handle static tracepoints.
2104 (_initialize_breakpoint): Install the "strace" command.
2105 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
2106 (struct breakpoint): New fields static_trace_marker_id and
2107 static_trace_marker_id_idx.
2108 (breakpoints_here_p): Declare.
2109 (create_breakpoint): Adjust.
2110 (static_tracepoints_here): Declare.
2111 * remote.c (struct remote_state) <static_tracepoints>: New field.
2112 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
2113 (remote_static_tracepoint_marker_at): New.
2114 (remote_static_tracepoint_markers_by_strid): New.
2115 (remote_static_tracepoint_feature): New.
2116 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
2117 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
2118 (remote_supports_static_tracepoints): New.
2119 (remote_download_tracepoint): Download static tracepoints.
2120 (init_remote_ops): Install remote_static_tracepoint_marker_at and
2121 remote_static_tracepoint_markers_by_strid.
2122 (_initialize_remote): Install set|show remote static-tracepoints,
2123 and set|show remote read-sdata-object commands.
2124 * target.c (update_current_target): Inherit and default
2125 to_static_tracepoint_marker_at, and
2126 to_static_tracepoint_markers_by_strid.
2127 * target.h (static_tracepoint_marker): Forward declare.
2128 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
2129 (static_tracepoint_marker_p): New typedef.
2130 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
2131 (struct target_ops): New fields to_static_tracepoint_marker_at and
2132 to_static_tracepoint_markers_by_strid.
2133 (target_static_tracepoint_marker_at)
2134 (target_static_tracepoint_markers_by_strid): New.
2135 * tracepoint.c: Include source.h.
2136 (validate_actionline): Handle $_sdata.
2137 (struct collection_list): New field strace_data.
2138 (add_static_trace_data): New.
2139 (clear_collection_list): Clear strace_data.
2140 (stringify_collection_list): Account for a possible static trace
2141 data collection.
2142 (encode_actions_1): Encode an $_sdata collection.
2143 (parse_tracepoint_definition): Handle static tracepoints.
2144 (parse_static_tracepoint_marker_definition): New.
2145 (release_static_tracepoint_marker): New.
2146 (print_one_static_tracepoint_marker): New.
2147 (info_static_tracepoint_markers_command): New.
2148 (sdata_make_value): New.
2149 (_initialize_tracepoint): Create the $_sdata convenience variable.
2150 Add the "info static-tracepoint-markers" command.
2151 Mention $_sdata in the "collect" command's help output.
2152 * tracepoint.h (struct static_tracepoint_marker): New.
2153 (parse_static_tracepoint_marker_definition)
2154 (release_static_tracepoint_marker): Declare.
2155 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2156 * python/py-breakpoint.c (bppy_new): Adjust.
2157
2158 2010-06-30 Joel Brobecker <brobecker@adacore.com>
2159
2160 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
2161 including Python.h.
2162
2163 2010-06-29 Doug Evans <dje@google.com>
2164
2165 PR gdb/11702
2166 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
2167 DW_AT_external is present.
2168
2169 PR gdb/11702
2170 * NEWS: Add entry.
2171 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
2172 create a symbol for the field and record the value.
2173 (new_symbol): Handle DW_TAG_member.
2174 * gdbtypes.c (field_is_static): Remove FIXME.
2175 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
2176 only ignore LOC_CONST symbols that are enums.
2177
2178 * dwarf2read.c: Remove trailing whitespace.
2179
2180 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
2181 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
2182 (struct main_type, field loc): Delete dwarf_block.
2183 (FIELD_DWARF_BLOCK): Delete.
2184 (SET_FIELD_DWARF_BLOCK): Delete.
2185 (TYPE_FIELD_DWARF_BLOCK): Delete.
2186 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
2187 Update.
2188
2189 2010-06-29 Hui Zhu <teawater@gmail.com>
2190
2191 * record.c (set_record_pic_cmdlist,
2192 show_record_pic_cmdlist): New variables.
2193 (set_record_pic_command,
2194 show_record_pic_command): New functions.
2195 (record_pic_function, record_pic_line, record_pic_enum,
2196 set_record_pic_type, record_pic_hide_nofunction,
2197 record_pic_hide_nosource, record_pic_hide_same): New variables.
2198 (record_pic_fputs): New function.
2199 (function_list, node_list, edge_list): New struct.
2200 (function_list, node_list, edge_list): New variables.
2201 (record_pic_cleanups, record_pic_node,
2202 record_pic_edge, cmd_record_pic): New functions.
2203 (_initialize_record): Add new commands for record pic.
2204
2205 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2206
2207 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
2208 ALLOCATE_CPLUS_STRUCT_TYPE.
2209
2210 2010-06-28 Phil Muldoon <pmuldoon@redhat.com>
2211 Tom Tromey <tromey@redhat.com>
2212 Thiago Jung Bauermann <bauerman@br.ibm.com>
2213
2214 * value.c (pack_unsigned_long): New function.
2215 (value_from_ulongest): New function.
2216 * value.h (value_from_ulongest): Declare.
2217 * python/python.c (_initialize_python): Call
2218 gdbpy_initialize_thread and gdbpy_initialize_inferior.
2219 * python/python-internal.h: Define thread_object.
2220 (gdbpy_inferiors, gdbpy_selected_thread)
2221 (frame_info_to_frame_object, create_thread_object)
2222 (find_thread_object, find_inferior_object)
2223 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
2224 (gdbpy_is_value_object, get_addr_from_python): Declare.
2225 * python/py-value.c (builtin_type_upylong): Define.
2226 (convert_value_from_python): Add logic for ulongest.
2227 (gdbpy_is_value_object): New function.
2228 * python/py-utils.c (get_addr_from_python): New function.
2229 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
2230 (gdbpy_selected_frame): Use PyObject over frame_info.
2231 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
2232 py-infthread.
2233 (SUBDIR_PYTHON_SRCS): Likewise.
2234 (py-inferior.o): New Rule.
2235 (py-infthread.o): New Rule.
2236 * python/py-inferior.c: New File.
2237 * python/py-infthread.c: New File.
2238
2239 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2240
2241 * c-typeprint.c (c_type_print_base): For no fields check include also
2242 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
2243 * dwarf2read.c (struct typedef_field_list)
2244 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
2245 (dwarf2_add_typedef): New.
2246 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
2247 Copy also FI.TYPEDEF_FIELD_LIST.
2248 * gdbtypes.h (struct typedef_field)
2249 (struct cplus_struct_type) <typedef_field, typedef_field_count>
2250 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
2251 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
2252
2253 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2254
2255 * cp-namespace.c (cp_lookup_nested_type): New variable
2256 concatenated_name. Turn the current return condition into a reverse
2257 one. Call also lookup_static_symbol_aux on the constructed qualified
2258 name.
2259 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
2260 other files into a called ...
2261 (lookup_static_symbol_aux): ... new function here.
2262 * symtab.h (lookup_static_symbol_aux): New prototype.
2263 * valops.c (value_maybe_namespace_elt): Call also
2264 lookup_static_symbol_aux if we failed otherwise.
2265
2266 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2267
2268 Fix PR c++/11703 and PR gdb/1448.
2269 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
2270 FIRST_ITER check.
2271
2272 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2273
2274 Fix modification of cplus_struct_default.
2275 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
2276 Call ALLOCATE_CPLUS_STRUCT_TYPE.
2277 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
2278
2279 2010-06-28 Joel Brobecker <brobecker@adacore.com>
2280
2281 * NEWS: Add entry announcing the python directory.
2282
2283 2010-06-28 Tom Tromey <tromey@redhat.com>
2284
2285 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
2286
2287 2010-06-28 Doug Evans <dje@google.com>
2288
2289 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
2290 All callers updated.
2291
2292 2010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2293
2294 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
2295 obstack_begin after each obstack_free.
2296
2297 2010-06-27 Doug Evans <dje@google.com>
2298
2299 * value.c (value_static_field): Use `switch' instead of `if'.
2300 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
2301
2302 * valops.c (search_struct_field): Fix typo in error message.
2303
2304 2010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
2305
2306 * dwarf2expr.c (execute_stack_op): Place preprocessor
2307 directives at the start of the source line.
2308
2309 2010-06-25 Paul Hilfinger <hilfinger@adacore.com>
2310
2311 * defs.h (make_command_stats_cleanup): Declare.
2312 (set_display_time): Declare.
2313 (set_display_space): Declare.
2314 * event-top.c (command_handler): Use make_command_stats_cleanup.
2315 * main.c (display_time, display_space): Move definitions to utils.c.
2316 (captured_main): Use make_command_stats_cleanup to get start-up
2317 statistics.
2318 Use set_display_time and set_display_space for processing OPT_STATISTICS
2319 case.
2320 * maint.c (maintenance_time_display): Use set_display_time.
2321 (maintenance_space_display): Use set_display_space.
2322 * top.c (execute_command): Remove obsolete 'maint time' code.
2323 (command_loop): Use make_command_stats_cleanup.
2324 * utils.c (struct cmd_stats): Structure for storing initial time
2325 and space usage.
2326 (display_time, display_space): Move definitions here from utils.c.
2327 (set_display_time): New function.
2328 (set_display_space): New function.
2329 (make_command_stats_cleanup): New function.
2330 (report_command_stats): New auxiliary function for
2331 make_command_stats_cleanup.
2332
2333 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2334
2335 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
2336 hosts where CORE_ADDR is long long.
2337
2338 2010-06-25 Tom Tromey <tromey@redhat.com>
2339
2340 PR python/10808:
2341 * python/python.c (execute_gdb_command): Add keywords. Accept
2342 "to_string" argument.
2343 (struct restore_ui_file_closure): New.
2344 (restore_ui_file): New function.
2345 (make_cleanup_restore_ui_file): Likewise.
2346 (GdbMethods) <execute>: Update.
2347
2348 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2349
2350 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
2351 during inferior call stack frame setup.
2352
2353 2010-06-25 Ken Werner <ken.werner@de.ibm.com>
2354
2355 * solib-spu.c: Include "exception.h".
2356 (ocl_program_data_key): New variable.
2357 (append_ocl_sos): New function.
2358 (ocl_enable_break): Likewise.
2359 (spu_current_sos): Call append_ocl_sos.
2360 (spu_solib_loaded): Call ocl_enable_break.
2361 (_initialize_spu_solib): Register ocl_program_data_key.
2362
2363 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2364
2365 * cp-support.c (reset_directive_searched): New function.
2366 (make_symbol_overload_list_using): Prevent recursive calls.
2367
2368 2010-06-25 Phil Muldoon <pmuldoon@redhat.com>
2369
2370 * printcmd.c (print_variable_and_value): Print error message on
2371 caught exception.
2372
2373 2010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
2374
2375 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
2376 of stack values.
2377 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
2378 "value" member.
2379 (dwarf_expr_push): Change input type to ULONGEST.
2380 (dwarf_expr_fetch): Change return type to ULONGEST.
2381 (dwarf_expr_fetch_address): Add prototype.
2382 (dwarf2_read_address): Remove prototype.
2383 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
2384 Truncate stack values to ctx->addr_size bytes.
2385 (dwarf_expr_fetch): Change return value to ULONGEST.
2386 (dwarf_expr_fetch_address): New function.
2387 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
2388 when appropriate. Update for struct dwarf_expr_piece changes.
2389 (dwarf2_read_address): Remove.
2390 (unsigned_address_type): Remove.
2391 (signed_address_type): Remove.
2392 (execute_stack_op): Use dwarf_expr_fetch_address instead of
2393 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
2394 values. Perform operations on ULONGEST instead of on GDB values,
2395 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
2396 values and DW_OP_deref results as unsigned integers.
2397 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
2398 changes.
2399 (write_pieced_value): Likewise.
2400 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
2401 dwarf_expr_fetch when appropriate.
2402 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
2403 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
2404 instead of dwarf_expr_fetch when appropriate.
2405
2406 2010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
2407
2408 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
2409
2410 2010-06-24 Joel Brobecker <brobecker@adacore.com>
2411
2412 * python/python.c (_initialize_python): Add new "constant"
2413 PYTHONDIR in gdb module. Insert this path at the head of
2414 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
2415 exec its __init__.py script if it exists in that directory.
2416
2417 2010-06-24 Kevin Buettner <kevinb@redhat.com>
2418
2419 * rx-tdep.c (RX_ACC_REGNUM): Define.
2420 (RX_NUM_REGS): Redefine to 26.
2421 (rx_register_name): Add register "acc". Change order of several
2422 registers. Change name of "vct" register to "fintv" to match RX
2423 documentation.
2424 (rx_register_type): Add case for RX_ACC_REGNUM.
2425
2426 2010-06-24 Tom Tromey <tromey@redhat.com>
2427
2428 * psymtab.c (lookup_partial_symbol): Mark definition as static.
2429
2430 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2431 Tom Tromey <tromey@redhat.com>
2432
2433 Fix GDB startup on readonly filesystem.
2434 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
2435
2436 2010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2437 Pedro Alves <pedro@codesourcery.com>
2438
2439 Fix PR 9436.
2440 * breakpoint.c (handle_jit_event): New function.
2441 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
2442 jit, err, table and bs_class. New variables shlib_event, jit_event,
2443 this_action and bptype. Change bs_class assignments to this_action
2444 assignments. new unhandled bptype internal error. Move here
2445 shlib_event and jit_event handling from handle_inferior_event.
2446 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
2447 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
2448 BPSTAT_WHAT_CHECK_JIT.
2449 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
2450 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
2451 (handle_inferior_event): Reinitialize frame and gdbarch after
2452 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
2453 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
2454 gdbarch when frame gets reinitialized.
2455
2456 2010-06-24 Hui Zhu <teawater@gmail.com>
2457
2458 * printcmd.c (ui_printf): New function.
2459 (printf_command): Call ui_printf.
2460 (_initialize_printcmd): New command "eval".
2461
2462 2010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
2463
2464 * infrun.c (handle_inferior_event): Handle presence of single-step
2465 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
2466 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
2467 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
2468 * breakpoint.c (detach_single_step_breakpoints): New function.
2469 (detach_breakpoints): Call it.
2470 (cancel_single_step_breakpoints): New function.
2471 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
2472
2473 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
2474 (spu_gdbarch_init): Install it.
2475
2476 2010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2477
2478 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
2479 * configure: Regenerate.
2480
2481 2010-06-22 Hui Zhu <teawater@gmail.com>
2482
2483 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
2484 (i386_process_record): Ditto.
2485 * record.c (record_memory_query): New variable.
2486 (_initialize_record): New command "set record memory-query".
2487 * record.h (record_memory_query): New extern.
2488
2489 2010-06-21 Doug Evans <dje@google.com>
2490
2491 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
2492 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
2493 (i386_syscall_p): Change type of lengthp to int.
2494 (i386_displaced_step_fixup): Handle kernels that run one past a
2495 syscall insn.
2496 * i386-linux-tdep.c (i386_linux_init_abi): Use
2497 i386_displaced_step_copy_insn instead of
2498 simple_displaced_step_copy_insn.
2499
2500 2010-06-21 Tom Tromey <tromey@redhat.com>
2501
2502 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
2503 (dwarf_type_encoding_name): Likewise.
2504
2505 2010-06-21 Tom Tromey <tromey@redhat.com>
2506
2507 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
2508 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
2509 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
2510 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
2511 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
2512 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
2513 * dwarf2read.c (tag_type_to_type): Create a new error type on
2514 failure.
2515 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
2516 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
2517
2518 2010-06-21 Michael Snyder <msnyder@vmware.com>
2519
2520 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
2521 not add_abbrev_prefix_cmd, for "enable breakpoints".
2522
2523 2010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
2524
2525 * dwarf2loc.c (find_location_expression): Add relocation offset
2526 to base-address-selection entry base addresses. Read addresses
2527 (and offsets) as signed/unsigned integers, depending on the
2528 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
2529 (loclist_describe_location): Likewise.
2530 (disassemble_dwarf_expression): Read DW_OP_addr operand as
2531 unsigned integer. Do not call dwarf2_read_address.
2532 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
2533
2534 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2535
2536 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
2537 value instead of hard-coded SPU_LS_SIZE.
2538 (spu_software_single_step): Likewise.
2539 * spu-tdep.h (SPU_LS_SIZE): Remove.
2540
2541 2010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2542
2543 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
2544 limit on local store memory accesses.
2545 * spu-linux-nat.c (spu_xfer_partial): Likewise.
2546 * spu-tdep.c (spu_lslr): Remove.
2547 (spu_pointer_to_address): Do not truncate addresses.
2548 (spu_integer_to_address): Likewise.
2549 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
2550 * spu-tdep.h: Add comments.
2551 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
2552 (SPU_OVERLAY_LMA): Define.
2553
2554 2010-06-18 Stan Shebs <stan@codesourcery.com>
2555
2556 * osdata.c (get_osdata): Warn separately if target does not report
2557 type list.
2558 (info_osdata_command): Allow empty type, report error if target
2559 does not return available types of OS data.
2560 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
2561 types if no annex supplied.
2562
2563 * thread.c (thread_id_make_value): Make a value representing the
2564 current thread.
2565 (_initialize_thread): Create $_thread.
2566
2567 2010-06-17 Joel Brobecker <brobecker@adacore.com>
2568
2569 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
2570 last local variable declaration. No real code change.
2571
2572 2010-06-17 Tom Tromey <tromey@redhat.com>
2573
2574 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
2575 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
2576 temporary obstack.
2577
2578 2010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
2579 Jan Kratochvil <jan.kratochvil@redhat.com>
2580
2581 * breakpoint.c: Include parser-defs.h.
2582 (watchpoint_exp_is_const): New function.
2583 (watch_command_1): Call watchpoint_exp_is_const to check
2584 if the expression is constant.
2585
2586 2010-06-15 Andreas Schwab <schwab@linux-m68k.org>
2587
2588 * configure.ac: Check for RDYNAMIC also for cross builds.
2589 * configure: Regenerate.
2590
2591 2010-06-15 Pedro Alves <pedro@codesourcery.com>
2592
2593 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2594 (SFILES): Remove solib-null.c, add solib-target.c.
2595 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
2596 (ALLDEPFILES): Remove solib-target.c.
2597 * solib-target.c (_initialize_solib_target): Set
2598 current_target_so_ops to solib_target_so_ops if not already set.
2599 * solib-null.c: Delete.
2600
2601 2010-06-14 Pedro Alves <pedro@codesourcery.com>
2602
2603 * NEWS: Mention GDBserver's JIT compilation of tracepoint
2604 bytecode.
2605
2606 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2607
2608 * cp-valprint.c (cp_print_static_field): Members of
2609 dont_print_stat_array_obstack are of type "struct type *".
2610 (_initialize_cp_valprint): Likewise.
2611
2612 2010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2613
2614 * frame.c (frame_register_unwind): Do not access contents
2615 of "optimized out" unwound register value.
2616
2617 2010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2618
2619 * ada-lang.h (ada_print_type): Make varstring const.
2620 * ada-typeprint.c (print_func_type): Make name const.
2621 (ada_print_type): Make varstring const.
2622 * c-lang.h (c_print_type): Make varstring const.
2623 * c-typeprint.c (c_print_type): Likewise.
2624 * f-lang.h (f_print_type): Likewise.
2625 * f-typeprint.c (f_print_type): Likewise.
2626 * jv-lang.h (java_print_type): Likewise.
2627 * jv-typeprint.c (java_print_type): Likewise.
2628 * language.c (unk_lang_print_type): Likewise.
2629 * language.h (struct language_defn) <la_print_type>: Likewise.
2630 * m2-lang.h (m2_print_type): Likewise.
2631 * m2-typeprint.c (m2_print_type): Likewise.
2632 * p-lang.h (pascal_print_type): Likewise.
2633 * p-typeprint.c (pascal_print_type): Likewise.
2634
2635 2010-06-11 Stan Shebs <stan@codesourcery.com>
2636
2637 Add per-operation permission flags.
2638
2639 * target.h (struct target_ops): New method to_set_permissions.
2640 (target_set_permissions): New macro.
2641 (target_insert_breakpoint): Change macro to function.
2642 (target_remove_breakpoint): Ditto.
2643 (target_stop): Ditto.
2644 (may_write_registers): Declare.
2645 (may_write_memory): Declare.
2646 (may_insert_breakpoints): Declare.
2647 (may_insert_tracepoints): Declare.
2648 (may_insert_fast_tracepoints): Declare.
2649 (may_stop): Declare.
2650 * target.c (may_write_registers, may_write_registers_1): New globals.
2651 (may_write_memory, may_write_memory_1): New globals.
2652 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
2653 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
2654 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
2655 globals.
2656 (may_stop, may_stop_1): New global.
2657 (target_xfer_partial): Test for write permission.
2658 (target_store_registers): Ditto.
2659 (target_insert_breakpoint): New function.
2660 (target_remove_breakpoint): New function.
2661 (target_stop): New function.
2662 (_initialize_targets): Add new set/show variables.
2663 (set_write_memory_permission): New function.
2664 (update_target_permissions): New function.
2665 (set_target_permissions): New function.
2666 (update_current_target): Default to_set_permissions.
2667 (_initialize_targets): Use new globals and setter function.
2668 * tracepoint.c (start_tracing): Test for permission.
2669 * inferior.h (update_observer_mode): Declare.
2670 * infrun.c (non_stop_1): Define earlier.
2671 (observer_mode, observer_mode_1): New globals.
2672 (set_observer_mode, show_observer_mode): New functions.
2673 (update_observer_mode): New function.
2674 (_initialize_infrun): Define "set observer" command.
2675 * remote.c (PACKET_QAllow): New optional packet.
2676 (remote_protocol_features): Add QAllow.
2677 (remote_set_permissions): New function.
2678 (remote_start_remote): Call it.
2679 (init_remote_ops): Add it to target vector.
2680 (_initialize_remote): Add config command for QAllow.
2681
2682 2010-06-11 Tom Tromey <tromey@redhat.com>
2683
2684 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
2685 DW_AT_vtable_elem_location even when GCC extension is seen.
2686
2687 2010-06-11 Tom Tromey <tromey@redhat.com>
2688
2689 PR gdb/9977, PR exp/11636:
2690 * value.h (value_offset): Update.
2691 (struct lval_funcs) <check_validity>: New field.
2692 <copy_closure>: Make argument const.
2693 (value_computed_closure): Update.
2694 (value_contents_for_printing): Declare.
2695 (value_bits_valid): Likewise.
2696 (val_print): Likewise.
2697 (set_value_component_location): Update.
2698 (value_entirely_optimized_out): Declare.
2699 * value.c (value_offset): Argument now const.
2700 (require_not_optimized_out): New function.
2701 (value_contents_for_printing): New function.
2702 (value_contents_all): Call require_not_optimized_out.
2703 (value_contents): Likewise.
2704 (value_bits_valid): New function.
2705 (value_computed_closure): Argument now const.
2706 (set_value_component_location): Make 'whole' argument const.
2707 (value_entirely_optimized_out): New function.
2708 (value_bitsize): Argument now 'const'.
2709 (value_bitpos): Likewise.
2710 (value_type): Likewise.
2711 * valprint.h (val_print_array_elements): Update.
2712 * valprint.c (val_print): Add 'val' argument. Use
2713 valprint_check_validity.
2714 (valprint_check_validity): New function.
2715 (value_check_printable): Use value_entirely_optimized_out.
2716 (common_val_print): Update.
2717 (value_print): Likewise.
2718 (val_print_array_elements): Add 'val' argument.
2719 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
2720 value_bits_valid. Reinit frame cache for lval_computed.
2721 * sh64-tdep.c (sh64_do_register): Update.
2722 * scm-valprint.c (scm_val_print): Add 'val' argument.
2723 * scm-lang.h (scm_val_print): Update.
2724 * python/python.h (apply_val_pretty_printer): Update.
2725 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
2726 argument. Call set_value_component_location.
2727 * printcmd.c (print_scalar_formatted): Update.
2728 * p-valprint.c (pascal_val_print): Add 'val' argument.
2729 (pascal_object_print_value_fields): Likewise.
2730 (pascal_object_print_value): Likewise.
2731 (pascal_object_print_static_field): Update.
2732 * p-lang.h (pascal_val_print): Update.
2733 (pascal_object_print_value_fields): Update.
2734 * mt-tdep.c (mt_registers_info): Update.
2735 * mi/mi-main.c (get_register): Update.
2736 (mi_cmd_data_evaluate_expression): Use common_val_print.
2737 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
2738 (m2_print_unbounded_array): Likewise.
2739 (m2_val_print): Likewise.
2740 * m2-lang.h (m2_val_print): Update.
2741 * language.h (struct language_defn) <la_val_print>: Add 'val'
2742 argument.
2743 (LA_VAL_PRINT): Likewise.
2744 * language.c (unk_lang_val_print): Add 'val' argument.
2745 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
2746 (java_val_print): Likewise.
2747 * jv-lang.h (java_val_print): Add 'val' argument.
2748 * infcmd.c (default_print_registers_info): Update.
2749 * f-valprint.c (f77_print_array_1): Add 'val' argument.
2750 (f77_print_array): Likewise.
2751 (f_val_print): Likewise.
2752 * f-lang.h (f_val_print): Add 'val' argument.
2753 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
2754 value_bitpos.
2755 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
2756 set_value_optimized_out.
2757 (write_pieced_value): Use value_bitsize and value_bitpos.
2758 <default>: Don't exit loop.
2759 (check_pieced_value_validity): New function.
2760 (pieced_value_funcs): Reference check_pieced_value_validity,
2761 check_pieced_value_invalid.
2762 (copy_pieced_value_closure): Update.
2763 (check_pieced_value_bits): New function.
2764 (check_pieced_value_invalid): New function.
2765 * d-valprint.c (dynamic_array_type): Add 'val' argument.
2766 (d_val_print): Likewise.
2767 * d-lang.h (d_val_print): Update.
2768 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
2769 (cp_print_value_fields_rtti): Likewise.
2770 (cp_print_value): Likewise.
2771 (cp_print_static_field): Update.
2772 * c-valprint.c (c_val_print): Add 'val' argument.
2773 (c_value_print): Update.
2774 * c-lang.h (c_val_print): Update.
2775 (cp_print_value_fields): Likewise.
2776 (cp_print_value_fields_rtti): Likewise.
2777 * ada-valprint.c (struct ada_val_print_args): Remove.
2778 (val_print_packed_array_elements): Add 'val' argument.
2779 (ada_val_print): Likewise. Rewrite.
2780 (ada_val_print_stub): Remove.
2781 (ada_val_print_array): Add 'val' argument.
2782 (ada_val_print_1): Likewise.
2783 (print_variant_part): Likewise.
2784 (ada_value_print): Update.
2785 (print_record): Add 'val' argument.
2786 (print_field_values): Likewise.
2787 * ada-lang.h (ada_val_print): Update.
2788
2789 2010-06-11 Tom Tromey <tromey@redhat.com>
2790
2791 * vec.h (VEC_cleanup): New macro.
2792 (DEF_VEC_ALLOC_FUNC_I): Update.
2793 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2794 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2795 * dwarf2loc.c (struct axs_var_loc): Remove.
2796 (unimplemented): New function.
2797 (translate_register): Likewise.
2798 (access_memory): Likewise.
2799 (compile_dwarf_to_ax): Likewise.
2800 (dwarf2_tracepoint_var_loc): Remove.
2801 (dwarf2_tracepoint_var_access): Likewise.
2802 (dwarf2_tracepoint_var_ref): Likewise.
2803 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
2804 (loclist_tracepoint_var_ref): Likewise.
2805 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
2806 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
2807 require_composition. No longer static.
2808 (execute_stack_op): Update.
2809 * ax-gdb.h (trace_kludge): Declare.
2810
2811 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2812
2813 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
2814 (should_be_inserted): Return zero also on NULL OWNER.
2815 (breakpoint_program_space_exit): New OWNER comment.
2816 (insert_breakpoint_locations): Extend comment for OWNER.
2817 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
2818 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
2819 New OWNER comment.
2820 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
2821 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
2822 (bpstat_check_location): New assert on OWNER.
2823 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
2824 and B initializations to the code block. New assert on them.
2825 (print_one_breakpoint_location): New OWNER comment.
2826 (watchpoint_locations_match): Assert on OWNER.
2827 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
2828 initializations to the code block. New assert on OWNER.
2829 (set_breakpoint_location_function): New assert on OWNER.
2830 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
2831 (bp_location_compare, update_global_location_list)
2832 (update_global_location_list): New OWNER comment.
2833
2834 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2835
2836 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
2837
2838 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2839
2840 * config/nm-linux.h (struct target_ops): Remove forward declaration.
2841 (lin_thread_get_thread_signals): Remove prototype.
2842 (GET_THREAD_SIGNALS): Remove.
2843 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
2844 * linux-thread-db.c (check_thread_signals): Directly call
2845 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
2846
2847 2010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2848
2849 * gregset.h (GDB_FPXREGSET_T): Remove.
2850 (gdb_fpxregset_t): Likewise.
2851 (supply_fpxregset): Remove prototype.
2852 (fill_fpxregset): Likewise.
2853 * i386-linux-nat.c (supply_fpxregset): Remove.
2854 (fill_fpxregset): Likewise.
2855 (fetch_fpxregs): Inline supply_fpxregset call.
2856 (store_fpxregs): Inline fill_fpxregset call.
2857
2858 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
2859 * config/i386/nm-linux.h: Remove file.
2860
2861 2010-06-09 Michael Snyder <msnyder@vmware.com>
2862
2863 * target.c (update_current_target): Fix spelling error in comment.
2864 (target_mourn_inferior): Fix spelling error in error message.
2865
2866 2010-06-08 Paul Hilfinger <hilfingr@adacore.com>
2867
2868 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
2869 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
2870
2871 2010-06-08 Michael Snyder <msnyder@vmware.com>
2872
2873 * remote.c (remote_close): Set inferior_ptid to null_ptid.
2874
2875 2010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2876
2877 * configure.ac <"${have_libpython}" != no>: New workaround of
2878 python#4434.
2879 * configure: Regenerate.
2880
2881 2010-06-08 Hui Zhu <teawater@gmail.com>
2882
2883 * record.c (record_wait): Move signal out of replay code.
2884
2885 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2886
2887 Fix PR 10640.
2888 * dwarf2-frame.c (no_dwarf_call): New function.
2889 (execute_stack_op): Set CTX->DWARF_CALL.
2890 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
2891 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
2892 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
2893 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
2894 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
2895 (needs_frame_dwarf_call): New function.
2896 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
2897 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
2898 Update the comment. Move variables die, offset and error call to ...
2899 (follow_die_ref): ... a new function.
2900 (dwarf2_fetch_die_location_block): New function.
2901 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
2902
2903 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2904
2905 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
2906 (dwarf_expr_tls_address): Use per_cu instead of objfile.
2907 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
2908 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
2909 this change.
2910 (struct needs_frame_baton): New field per_cu.
2911 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
2912 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
2913
2914 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2915
2916 * cp-support.c (make_symbol_overload_list_namespace): Only search
2917 static and global blocks.
2918 (make_symbol_overload_list_block): New function.
2919 (make_symbol_overload_list): Separate namespace search from block
2920 search.
2921 (make_symbol_overload_list_qualified): Use
2922 make_symbol_overload_list_block.
2923
2924 2010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2925
2926 * value.h: Created oload_search_type enum.
2927 (find_overload_match): Use oload_search_type enum.
2928 * valops.c (find_overload_match): Support combined member and
2929 non-member search.
2930 * eval.c (evaluate_subexp_standard): Calls to
2931 find_overload_match now use oload_search_type enum.
2932 (oload_method_static): Verify index is a proper value.
2933 * valarith.c (value_user_defined_cpp_op): Search for and handle
2934 both member and non-member operators.
2935 (value_user_defined_cpp_op): New function.
2936 (value_user_defined_op): New function.
2937 (value_x_unop): Use value_user_defined_op.
2938 (value_x_binop): Ditto.
2939 * cp-support.c (make_symbol_overload_list_using): Added block
2940 iteration.
2941 Add check for namespace aliases and imported declarations.
2942
2943 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2944
2945 * breakpoint.h (owner): Extend the comment.
2946
2947 2010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2948
2949 Clear stale specific bp_location from former whole breakpoint.
2950 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
2951 code ...
2952 (free_bp_location): ... here. Rename there the called function to
2953 bpstat_remove_bp_location_callback.
2954 (bpstat_remove_breakpoint_callback): Rename to ...
2955 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
2956 to struct bp_location. Change the called function to
2957 bpstat_remove_bp_location. Create new declaration for the function.
2958 (bpstat_remove_breakpoint): Rename to ...
2959 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
2960 code for the new parameter type.
2961
2962 2010-06-07 Nathan Sidwell <nathan@codesourcery.com>
2963
2964 * README: Make version-agnostic.
2965
2966 2010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2967
2968 Fix duplicate types for single DIE.
2969 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
2970 set_die_type.
2971 (read_array_type): Remove type initialization. Recheck get_die_type
2972 after initial die_type. Move set_die_type before set_descriptive_type.
2973 (read_set_type): New variable domain_type. Recheck get_die_type after
2974 initial die_type. Move attr initialization later.
2975 (read_tag_pointer_type, read_tag_reference_type): New variable
2976 target_type. Recheck get_die_type after initial die_type.
2977 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
2978 die_type and die_containing_type.
2979 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
2980 Recheck get_die_type after initial die_type.
2981 (read_subrange_type): Recheck get_die_type after initial die_type.
2982 Move set_die_type before set_descriptive_type.
2983 (set_die_type): Extend the function comment. Call complaint if DIE has
2984 some type already set.
2985
2986 2010-06-05 Vladimir Prus <vladimir@codesourcery.com>
2987
2988 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
2989 for current naming of thread groups (iN, not N).
2990
2991 2010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
2992
2993 * ada-lang.c (ada_operator_length): Constify `struct expression'.
2994 * parse.c (operator_length): Likewise.
2995 (operator_length_standard): Likewise.
2996 * parser-defs.h (operator_length): Likewise.
2997 (operator_length_standard): Likewise.
2998 (struct exp_descriptor <operator_length>): Likewise.
2999
3000 2010-06-04 Doug Evans <dje@google.com>
3001
3002 Add support for enabling/disabling individual pretty-printers.
3003 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
3004 * python/python-internal.h (gdbpy_enabled_cst): Declare.
3005 * python/python.c (gdbpy_enabled_cst): Define.
3006 (_initialize_python): Initialize gdbpy_enabled_cst.
3007 * NEWS: Add entry.
3008
3009 2010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3010
3011 * breakpoint.c (update_global_location_list): Fix comment typo.
3012
3013 2010-06-04 Hui Zhu <teawater@gmail.com>
3014
3015 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
3016
3017 2010-06-03 Doug Evans <dje@google.com>
3018
3019 * configure.ac: Don't fail if python is unusable when
3020 configured with --with-python=auto.
3021 * configure: Regenerate.
3022
3023 2010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
3024
3025 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
3026
3027 2010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
3028
3029 * valprint.h (get_array_bounds): Change low and high parameter types
3030 to LONGEST *.
3031 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
3032 compute bounds.
3033 (val_print_array_elements): Adapt to change above.
3034 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
3035 * p-valprint.c (pascal_val_print): Likewise.
3036
3037 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3038
3039 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
3040 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
3041 .F08.
3042
3043 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3044
3045 Support DW_TAG_module as separate namespaces.
3046 * dwarf2read.c (typename_concat): New parameter physname.
3047 (read_module_type): New function and declaration.
3048 (scan_partial_symbols): Scan also DW_TAG_module children.
3049 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
3050 to typename_concat backward compatible physname value 0.
3051 (partial_die_full_name, read_namespace_type): Pass to typename_concat
3052 backward compatible physname value 0.
3053 (add_partial_module, read_module): Remove FIXME comment.
3054 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
3055 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
3056 DIEs under DW_TAG_module.
3057 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
3058 DW_AT_MIPS_linkage_name first, extend it for language_fortran
3059 && physname and return there instead of just setting NAME. Extend
3060 the main block for language_fortran. Pass physname parameter to the
3061 typename_concat call.
3062 (read_import_statement, read_func_scope, get_scope_pc_bounds)
3063 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
3064 (new_symbol): Fill in cplus_specific.demangled_name if it is still
3065 missing from SYMBOL_SET_NAMES in the language_fortran case.
3066 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
3067 variables.
3068 (read_type_die) <DW_TAG_module>: New.
3069 (MAX_SEP_LEN): Increase to 7.
3070 (typename_concat): New parameter physname. New variable lead. Support
3071 also language_fortran.
3072 * f-exp.y (yylex): Consider : also as a symbol name character class.
3073 * f-lang.c: Include cp-support.h.
3074 (f_word_break_characters, f_make_symbol_completion_list): New functions.
3075 (f_language_defn): Use cp_lookup_symbol_nonlocal,
3076 f_word_break_characters and f_make_symbol_completion_list.
3077 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
3078 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
3079 * symtab.c (symbol_init_language_specific): Support language_fortran.
3080 (symbol_find_demangled_name): New comment on language_fortran.
3081 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
3082 for language_fortran.
3083 (lookup_symbol_aux_local): Check imports also for language_fortran.
3084 (default_make_symbol_completion_list): Rename to ...
3085 (default_make_symbol_completion_list_break_on): ... this name. New
3086 parameter break_on, use it.
3087 (default_make_symbol_completion_list): New stub.
3088 * symtab.h (default_make_symbol_completion_list_break_on): New
3089 prototype.
3090
3091 2010-06-02 Joel Brobecker <brobecker@adacore.com>
3092
3093 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
3094 to error.
3095
3096 2010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3097
3098 * dwarf2read.c (typename_concat): Add const to the variable sep.
3099
3100 2010-06-02 Tom Tromey <tromey@redhat.com>
3101
3102 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
3103 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
3104 type is const. Add 'def' argument. Add missing operators, remove
3105 unhandled ones.
3106 (decode_locdesc): Update.
3107 (dwarf2_always_disassemble): New global.
3108 (show_dwarf2_always_disassemble): New function.
3109 (_initialize_dwarf2_read): Add always-disassemble.
3110 (dwarf2_per_cu_offset_size): New function.
3111 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
3112 (piece_end_p): New function.
3113 (locexpr_describe_location_piece): Replace 'size' argument with
3114 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
3115 some constants. Remove errors.
3116 (disassemble_dwarf_expression): New function.
3117 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
3118 Add 'offset_size' argument.
3119 (loclist_describe_location): Change output formatting.
3120 * dwarf2expr.h (dwarf_stack_op_name): Declare.
3121
3122 2010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
3123
3124 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
3125 anonymous type case.
3126
3127 2010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
3128
3129 * dwarf2read.c (read_subrange_type): Handle missing base type
3130 according to Dwarf-2 specifications.
3131
3132 2010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
3133
3134 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
3135 BINOP_EXCL.
3136 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
3137 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
3138 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
3139 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
3140 UNOP_CHMAX, UNOP_CHMIN.
3141 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
3142 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
3143 UNOP_CHMIN>: Remove opcodes.
3144
3145 2010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
3146
3147 * dwarf2read.c (read_func_scope): Do not complain for
3148 external function if bounds are not found.
3149
3150 2010-06-01 Pedro Alves <pedro@codesourcery.com>
3151
3152 * NEWS: Mention gdbserver fast tracepoints support.
3153
3154 2010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
3155
3156 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
3157 New macros.
3158 (windows_set_console_info): New function.
3159 (windows_create_inferior): Call windows_set_console_info
3160 if NEW_CONSOLE is true.
3161 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
3162 (_initialize_loadable): Initialize GetConsoleFontSize and
3163 GetCurrentConsoleFont.
3164
3165 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3166
3167 * Makefile.in (RDYNAMIC): New.
3168 (SFILES): Add proc-service.list.
3169 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
3170 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
3171 * config/arm/linux.mh: Likewise.
3172 * config/i386/linux.mh: Likewise.
3173 * config/i386/linux64.mh: Likewise.
3174 * config/ia64/linux.mh: Likewise.
3175 * config/m32r/linux.mh: Likewise.
3176 * config/m68k/linux.mh: Likewise.
3177 * config/mips/linux.mh: Likewise.
3178 * config/pa/linux.mh: Likewise.
3179 * config/powerpc/linux.mh: Likewise.
3180 * config/powerpc/ppc64-linux.mh: Likewise.
3181 * config/s390/s390.mh: Likewise.
3182 * config/sparc/linux.mh: Likewise.
3183 * config/sparc/linux64.mh: Likewise.
3184 * config/xtensa/linux.mh: Likewise.
3185 * configure.ac: New RDYNAMIC on native host and GCC.
3186 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
3187 * configure: Regenerate.
3188 * proc-service.list: New.
3189
3190 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3191
3192 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
3193 CONTENT.
3194
3195 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3196
3197 * linux-nat.c (linux_nat_wait_1): Do not call
3198 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
3199 TARGET_WAITKIND_SIGNALLED.
3200
3201 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3202
3203 * ada-lang.c (ada_inferior_data): New struct.
3204 (ada_inferior_data): New static global.
3205 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
3206 (ada_get_tsd_type): New functions.
3207 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
3208 to look the tsd type up.
3209 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
3210 event. Set ada_inferior_data.
3211
3212 2010-05-27 Pedro Alves <pedro@codesourcery.com>
3213
3214 * remote.c (unpack_varlen_hex): Remove forward declaration.
3215 (remote_console_output): Make static, and add forward declaration.
3216 * remote.h: Drop FIXME comment.
3217 (unpack_varlen_hex): Declare.
3218 (remote_console_output, remote_cisco_objfile_relocate)
3219 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
3220 Delete declarations.
3221 * tracepoint.c: Include "remote.h".
3222 (unpack_varlen_hex): Delete declaration.
3223
3224 2010-05-27 Tom Tromey <tromey@redhat.com>
3225
3226 * dwarf2loc.c (struct piece_closure) <refc>: New field.
3227 (allocate_piece_closure): Initialize refc.
3228 (copy_pieced_value_closure): Use refc.
3229 (free_pieced_value_closure): Likewise.
3230
3231 2010-05-27 Tom Tromey <tromey@redhat.com>
3232
3233 * arm-tdep.c (push_stack_item): 'contents' now const.
3234 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
3235 value_contents_writeable. Introduce new temporary.
3236
3237 2010-05-27 Tom Tromey <tromey@redhat.com>
3238
3239 * findcmd.c (parse_find_args): Use value_contents, not
3240 value_contents_raw.
3241
3242 2010-05-27 Tom Tromey <tromey@redhat.com>
3243
3244 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
3245 const. Use value_contents, not value_contents_writeable.
3246
3247 2010-05-27 Joel Brobecker <brobecker@adacore.com>
3248
3249 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
3250 by call to value_contents.
3251
3252 2010-05-27 Ozkan Sezer <sezeroz@gmail.com>
3253
3254 * MAINTAINERS: Add myself for write after approval privileges.
3255
3256 2010-05-26 Doug Evans <dje@google.com>
3257
3258 Allow python to find its files if moved from original location.
3259 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
3260 (GDB_AC_WITH_DIR): Call it.
3261 * configure.ac: Define WITH_PYTHON_PATH if we can find the
3262 python installation directory.
3263 * config.in: Regenerate.
3264 * configure: Regenerate.
3265 * defs.h (python_libdir): Declare.
3266 * main.c (python_libdir): Define.
3267 (captured_main): Initialize python_libdir.
3268 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
3269 call Py_SetProgramName to make sure python can find its libraries
3270 and modules.
3271
3272 * configure.ac: Try to use python's distutils to fetch compilation
3273 parameters.
3274 * configure: Regenerate.
3275 * python/python-config.py: New file.
3276
3277 2010-05-26 Ozkan Sezer <sezeroz@gmail.com>
3278
3279 * ser-tcp.c (net_open): Check error return from socket() call by its
3280 equality to -1 not by it being negative.
3281 (net_close): Likewise.
3282
3283 2010-05-26 Pedro Alves <pedro@codesourcery.com>
3284
3285 * NEWS: Mention the `qRelocInsn' feature.
3286 * gdbarch.sh (relocate_instruction): New.
3287 * amd64-tdep.c (rip_relative_offset): New.
3288 (append_insns): New.
3289 (amd64_relocate_instruction): New.
3290 (amd64_init_abi): Install it.
3291 * i386-tdep.c (append_insns): New.
3292 (i386_relocate_instruction): New.
3293 (i386_gdbarch_init): Install it.
3294 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
3295 * gdbarch.h, gdbarch.c: Regenerate.
3296
3297 2010-05-26 Tom Tromey <tromey@redhat.com>
3298
3299 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
3300 (struct dwarf2_loclist_baton) <data>: Likewise.
3301 * dwarf2loc.c (find_location_expression): Constify return type.
3302 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
3303 (dwarf2_loc_desc_needs_frame): Likewise.
3304 (loclist_read_variable): Constify.
3305 (loclist_describe_location): Likewise.
3306 (loclist_tracepoint_var_ref): Likewise.
3307
3308 2010-05-25 Tom Tromey <tromey@redhat.com>
3309
3310 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
3311 (dwarf_expr_frame_base_1): Likewise.
3312 (read_pieced_value): Update.
3313 (needs_frame_frame_base): Constify.
3314 (dwarf2_tracepoint_var_loc): Likewise.
3315 (dwarf2_tracepoint_var_access): Likewise.
3316 (locexpr_describe_location_piece): Likewise.
3317 (locexpr_describe_location_1): Likewise.
3318 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
3319 Constify.
3320 (data): Now const.
3321 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
3322 (dwarf_expr_eval, read_uleb128, read_sleb128)
3323 (dwarf2_read_address): Update.
3324 * dwarf2expr.c (dwarf_expr_eval): Constify.
3325 (read_uleb128): Likewise.
3326 (read_sleb128): Likewise.
3327 (dwarf2_read_address): Likewise.
3328 (require_composition): Likewise.
3329 (execute_stack_op): Likewise.
3330 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
3331 "const gdb_byte *".
3332 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
3333 Now const.
3334 (no_get_frame_base): Constify.
3335 (execute_stack_op): Likewise.
3336 (execute_cfa_program): Likewise.
3337 (read_encoded_value): Likewise.
3338
3339 2010-05-25 Doug Evans <dje@google.com>
3340
3341 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
3342
3343 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
3344 * event-loop.c: ... here.
3345 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
3346 `error' for clarity.
3347 (tui_getc): Pass correct value for `error' parameter to
3348 tui_readline_output.
3349
3350 Add python gdb.GdbError and gdb.string_to_argv.
3351 * NEWS: Document them.
3352 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
3353 the exception is gdb.GdbError. Print a second traceback if there's
3354 an error computing the error message.
3355 (gdbpy_string_to_argv): New function.
3356 * python/py-utils.c (gdbpy_obj_to_string): New function.
3357 (gdbpy_exception_to_string): New function.
3358 * python/python-internal.h (gdbpy_string_to_argv): Declare.
3359 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
3360 (gdbpy_gdberror_exc): Declare.
3361 * python/python.c (gdbpy_gdberror_exc): New global.
3362 (_initialize_python): Initialize gdbpy_gdberror_exc and create
3363 gdb.GdbError.
3364 (GdbMethods): Add string_to_argv.
3365
3366 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3367
3368 * windows-nat.c (display_selector): Call GetLastError to give better
3369 failure explanation.
3370
3371 2010-05-24 Pedro Alves <pedro@codesourcery.com>
3372
3373 * config.in: Regenerate.
3374
3375 2010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3376
3377 Code cleanup.
3378 * target.c (push_target): Return only void. Remove the return value
3379 comment.
3380 * target.h (push_target): Return only void.
3381
3382 2010-05-23 Pedro Alves <pedro@codesourcery.com>
3383
3384 Update gnulib from latest git.
3385 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3386
3387 * gnulib/memcmp.c: Removed.
3388 * gnulib/memchr.valgrind: New.
3389 * gnulib/stddef.in.h: New.
3390 * gnulib/Makefile.am: Updated.
3391 * gnulib/memchr.c: Updated.
3392 * gnulib/memmem.c: Updated.
3393 * gnulib/stdint.in.h: Updated.
3394 * gnulib/str-two-way.h: Updated.
3395 * gnulib/string.in.h: Updated.
3396 * gnulib/wchar.in.h: Updated.
3397
3398 * gnulib/extra/link-warning.h: Removed.
3399 * gnulib/extra/c++defs.h: New.
3400 * gnulib/extra/warn-on-use.h: New.
3401 * gnulib/extra/arg-nonnull.h: Updated.
3402
3403 * gnulib/m4/extensions.m4: Updated.
3404 * gnulib/m4/gnulib-cache.m4: Updated.
3405 * gnulib/m4/gnulib-common.m4: Updated.
3406 * gnulib/m4/gnulib-comp.m4: Updated.
3407 * gnulib/m4/gnulib-tool.m4: Updated.
3408 * gnulib/m4/include_next.m4: Updated.
3409 * gnulib/m4/longlong.m4: Updated.
3410 * gnulib/m4/memchr.m4: Updated.
3411 * gnulib/m4/memmem.m4: Updated.
3412 * gnulib/m4/stdint.m4: Updated.
3413 * gnulib/m4/string_h.m4: Updated.
3414 * gnulib/m4/memcmp.m4: Removed.
3415 * gnulib/m4/onceonly_2_57.m4: Removed.
3416 * gnulib/m4/00gnulib.m4: New.
3417 * gnulib/m4/mmap-anon.m4: New.
3418 * gnulib/m4/multiarch.m4: New.
3419 * gnulib/m4/onceonly.m4: New.
3420 * gnulib/m4/stddef_h.m4: New.
3421 * gnulib/m4/warn-on-use.m4: New.
3422 * gnulib/m4/wchar.m4: Removed.
3423 * gnulib/m4/wchar_h.m4: New.
3424 * gnulib/m4/wchar_t.m4: New.
3425 * gnulib/m4/wint_t.m4: New.
3426
3427 * aclocal.m4: Regenerate.
3428 * config.in: Likewise.
3429 * configure: Likewise.
3430 * gnulib/Makefile.in: Likewise.
3431
3432 2010-05-21 Tom Tromey <tromey@redhat.com>
3433
3434 * dwarf2loc.c (extract_bits_primitive): New function.
3435 (extract_bits): Likewise.
3436 (insert_bits): Likewise.
3437 (copy_bitwise): Likewise.
3438 (read_pieced_value): Do all operations in bits.
3439 (write_pieced_value): Likewise.
3440 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
3441 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
3442 Always use xrealloc to resize piece array.
3443 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
3444 <DW_OP_piece>: Update.
3445 <DW_OP_bit_piece>: New case.
3446
3447 2010-05-21 Tom Tromey <tromey@redhat.com>
3448
3449 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
3450 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
3451 * dwarf2expr.h (enum dwarf_value_location)
3452 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
3453 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
3454 (add_piece): Handle empty piece.
3455 (execute_stack_op) <DW_OP_piece>: Handle
3456 DWARF_VALUE_OPTIMIZED_OUT.
3457
3458 2010-05-21 Tom Tromey <tromey@redhat.com>
3459
3460 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
3461 evaluate_subexp, not evaluate_subexp_with_coercion.
3462
3463 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3464
3465 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3466 attribute.
3467
3468 2010-05-21 Tom Tromey <tromey@redhat.com>
3469
3470 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
3471 offset.
3472 (write_pieced_value): Likewise.
3473
3474 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3475
3476 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
3477 and DW_TAG_volatile_type.
3478 (new_symbol): Likewise.
3479
3480 2010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
3481
3482 * p-valprint.c (pascal_val_print): Call get_array_bounds
3483 to obtain the number of elements in an array.
3484
3485 2010-05-19 Doug Evans <dje@google.com>
3486
3487 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
3488
3489 * python.c (source_python_script): Add comment.
3490 (source_python_script_for_objfile): Remove unnecessary call to
3491 gdbpy_print_stack.
3492
3493 2010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3494 Sergio Durigan Junior <sergiodj@redhat.com>
3495
3496 Code cleanup.
3497 * parse.c (exp_iterate): Use operator_length wrapper function.
3498
3499 2010-05-18 Michael Snyder <msnyder@vmware.com>
3500
3501 * ada-lang.c: White space.
3502 * ada-typeprint.c: White space.
3503 * ada-valprint.c: White space.
3504 * addrmap.c: White space.
3505 * auxv.c: White space.
3506 * ax-gdb.c: White space.
3507
3508 2010-05-18 Hui Zhu <teawater@gmail.com>
3509
3510 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
3511 for oldfp.
3512 (inferior_call_waitpid): Move make_cleanup out of check.
3513 Check the return of waitpid.
3514 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
3515
3516 2010-05-17 Michael Snyder <msnyder@vmware.com>
3517
3518 * tui/tui.c: White space.
3519 * tui/tui-data.c: White space.
3520 * tui/tui-disasm.c: White space.
3521 * tui/tui-file.c: White space.
3522 * tui/tui-interp.c: White space.
3523 * tui/tui-main.c: White space.
3524 * tui/tui-out.c: White space.
3525 * tui/tui-regs.c: White space.
3526 * tui/tui-source.c: White space.
3527 * tui/tui-stack.c: White space.
3528 * tui/tui-win.c: White space.
3529 * tui/tui-winsource.c: White space.
3530
3531 * procfs.c: White space.
3532
3533 * python/py-auto-load.c: White space.
3534 * python/py-block.c: White space.
3535 * python/py-breakpoint.c: White space.
3536 * python/py-cmd.c: White space.
3537 * python/py-function.c: White space.
3538 * python/py-lazy-string.c: White space.
3539 * python/py-objfile.c: White space.
3540 * python/py-param.c: White space.
3541 * python/py-prettyprint.c: White space.
3542 * python/py-progspace.c: White space.
3543 * python/py-symtab.c: White space.
3544 * python/python.c: White space.
3545 * python/py-type.c: White space.
3546 * python/py-utils.c: White space.
3547 * python/py-value.c: White space.
3548
3549 * mi/mi-cmd-break.c: White space.
3550 * mi/mi-cmd-env.c: White space.
3551 * mi/mi-cmds.c: White space.
3552 * mi/mi-cmd-stack.c: White space.
3553 * mi/mi-cmd-var.c: White space.
3554 * mi/mi-console.c: White space.
3555 * mi/mi-getopt.c: White space.
3556 * mi/mi-interp.c: White space.
3557 * mi/mi-main.c: White space.
3558 * mi/mi-out.c: White space.
3559 * mi/mi-parse.c: White space.
3560
3561 * cli/cli-cmds.c: White space.
3562 * cli/cli-decode.c: White space.
3563 * cli/cli-dump.c: White space.
3564 * cli/cli-interp.c: White space.
3565 * cli/cli-logging.c: White space.
3566 * cli/cli-script.c: White space.
3567 * cli/cli-setshow.c: White space.
3568
3569 * valarith.c: White space.
3570 * valops.c: White space.
3571 * valprint.c: White space.
3572 * value.c: White space.
3573 * varobj.c: White space.
3574 * xcoffread.c: White space.
3575 * xml-support.c: White space.
3576 * xml-tdesc.c: White space.
3577
3578 2010-05-17 Andreas Schwab <schwab@redhat.com>
3579
3580 PR gdb/11092
3581 * c-lang.c (c_printstr): Compute real length of NUL terminated
3582 string at first.
3583
3584 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3585
3586 * parse.c (parse_exp_in_context): When block is not NULL, use
3587 its associated language to parse the expression instead of
3588 the current_language.
3589
3590 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3591
3592 * jv-lang.c (java_lookup_class): Remove commented out code.
3593 (type_from_class): Likewise.
3594 (java_op_print_tab): Remove commented-out elements.
3595
3596 2010-05-17 Joel Brobecker <brobecker@adacore.com>
3597
3598 * ada-lang.c (to_fixed_range_type): The the raw index type as
3599 argument instead of the raw type name. Remove orig_type parameter.
3600 Update calls throughout.
3601 (ada_fixup_array_indexes_type): New function.
3602 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
3603 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
3604 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
3605 Remove name parameter.
3606 (print_array_type): Add call to ada_fixup_array_indexes_type.
3607 Update calls to print_range_type.
3608 (ada_print_type): Update calls to print_range_type.
3609
3610 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3611
3612 * dwarf2read.c (read_set_type): Set type length if
3613 DW_AT_byte_size attribute is present.
3614
3615 2010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3616
3617 * p-valprint.c (pascal_val_print): Handle set type if range limits
3618 are undefined but size is known.
3619
3620 2010-05-17 Pedro Alves <pedro@codesourcery.com>
3621
3622 * procfs.c: Reformat.
3623
3624 2010-05-16 Michael Snyder <msnyder@vmware.com>
3625
3626 * target.c: White space.
3627 * target-descriptions.c: White space.
3628 * target-memory.c: White space.
3629 * thread.c: White space.
3630 * top.c: White space.
3631 * tracepoint.c: White space.
3632 * trad-frame.c: White space.
3633 * tramp-frame.c: White space.
3634 * ui-file.c: White space.
3635 * ui-out.c: White space.
3636 * user-regs.c: White space.
3637 * utils.c: White space.
3638
3639 * scm-exp.c: White space.
3640 * scm-lang.c: White space.
3641 * scm-valprint.c: White space.
3642 * sentinel-frame.c: White space.
3643 * ser-base.c: White space.
3644 * ser-go32.c: White space.
3645 * serial.c: White space.
3646 * ser-mingw.c: White space.
3647 * ser-pipe.c: White space.
3648 * ser-tcp.c: White space.
3649 * ser-unix.c: White space.
3650 * solib.c: White space.
3651 * solib-darwin.c: White space.
3652 * solib-frv.c: White space.
3653 * solib-irix.c: White space.
3654 * solib-osf.c: White space.
3655 * solib-pa64.c: White space.
3656 * solib-som.c: White space.
3657 * solib-spu.c: White space.
3658 * solib-svr4.c: White space.
3659 * solib-target.c: White space.
3660 * source.c: White space.
3661 * stabsread.c: White space.
3662 * stack.c: White space.
3663 * std-regs.c: White space.
3664 * symfile.c: White space.
3665 * symmisc.c: White space.
3666 * symtab.c: White space.
3667
3668 2010-05-16 Michael Snyder <msnyder@vmware.com>
3669
3670 * source.c (_initialize_source): Add "rev" as an abbreviation
3671 for the "reverse-search" command.
3672
3673 2010-05-16 Michael Snyder <msnyder@vmware.com>
3674
3675 * record.c: White space.
3676 * regcache.c: White space.
3677 * reggroups.c: White space.
3678 * remote-fileio.c: White space.
3679 * remote-m32r-sdi.c: White space.
3680 * remote-mips.c: White space.
3681 * remote-sim.c: White space.
3682 * remote.c: White space.
3683 (process_g_packet): Remove orphan braces.
3684
3685 2010-05-15 Michael Snyder <msnyder@vmware.com>
3686
3687 * parse.c: White space.
3688 * p-lang.c: White space.
3689 * posix-hdep.c: White space.
3690 * printcmd.c: White space.
3691 * progspace.c: White space.
3692 * prologue-value.c: White space.
3693 * psymtab.c: White space.
3694 * p-typeprint.c: White space.
3695 * p-valprint.c: White space.
3696
3697 * objc-lang.c: White space.
3698 * objfiles.c: White space.
3699 * observer.c: White space.
3700 * osabi.c: White space.
3701 * osdata.c: White space.
3702
3703 * m2-lang.c: White space.
3704 * m2-valprint.c: White space.
3705 * macrocmd.c: White space.
3706 * macroexp.c: White space.
3707 * macroscope.c: White space.
3708 * macrotab.c: White space.
3709 * main.c: White space.
3710 * maint.c: White space.
3711 * mdebugread.c: White space.
3712 * memattr.c: White space.
3713 * minsyms.c: White space.
3714 * monitor.c: White space.
3715
3716 2010-05-14 Michael Snyder <msnyder@vmware.com>
3717
3718 * jv-lang.c: White space.
3719 * jv-typeprint.c: White space.
3720 * jv-valprint.c: White space.
3721 * language.c: White space.
3722 * libunwind-frame.c: White space.
3723 * linespec.c: White space.
3724 * linux-nat.c: White space.
3725 * linux-record.c: White space.
3726 * linux-thread-db.c: White space.
3727
3728 * infcall.c: White space.
3729 * inf-child.c: White space.
3730 * infcmd.c: White space.
3731 * inferior.c: White space.
3732 * inf-loop.c: White space.
3733 * inflow.c: White space.
3734 * inline-frame.c: White space.
3735 * interps.c: White space.
3736
3737 * gcore.c: White space.
3738 * gdb.c: White space.
3739 * gdbtypes.c: White space.
3740 * gnu-nat.c: White space.
3741 * gnu-v2-abi.c: White space.
3742 * gnu-v3-abi.c: White space.
3743
3744 * findcmd.c: White space.
3745 * findvar.c: White space.
3746 * fork-child.c: White space.
3747 * frame-base.c: White space.
3748 * frame.c: White space.
3749 * frame-unwind.c: White space.
3750 * f-valprint.c: White space.
3751
3752 * elfread.c: White space.
3753 * environ.c: White space.
3754 * eval.c: White space.
3755 * event-loop.c: White space.
3756 * event-top.c: White space.
3757 * exceptions.c: White space.
3758 * exec.c: White space.
3759 * expprint.c: White space.
3760
3761 * dbxread.c: White space.
3762 * dcache.c: White space.
3763 * disasm.c: White space.
3764 * doublest.c: White space.
3765 * dsrec.c: White space.
3766 * dummy-frame.c: White space.
3767 * dwarf2expr.c: White space.
3768 * dwarf2-frame.c: White space.
3769 * dwarf2loc.c: White space.
3770 * dwarf2read.c: White space.
3771
3772 2010-05-14 Phil Muldoon <pmuldoon@redhat.com>
3773
3774 PR python/11482
3775
3776 * python/py-value.c (valpy_hash): New function.
3777 (value_object_type): Register valpy_hash.
3778
3779 2010-05-14 Hui Zhu <teawater@gmail.com>
3780 Michael Snyder <msnyder@vmware.com>
3781
3782 * linux-fork.c (gdbthread.h): New include.
3783 (fork_info): Add parent_ptid.
3784 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
3785 functions.
3786 (delete_checkpoint_command): Call inferior_call_waitpid.
3787 (checkpoint_command): Set parent_ptid.
3788
3789 2010-05-13 Michael Snyder <msnyder@vmware.com>
3790
3791 * dictionary.c: Re-indent to GNU coding standard.
3792
3793 * charset.c: White space.
3794 * c-lang.c: White space.
3795 * cli-out.c: White space.
3796 * coffread.c: White space.
3797 * complaints.c: White space.
3798 * completer.c: White space.
3799 * corefile.c: White space.
3800 * corelow.c: White space.
3801 * cp-abi.c: White space.
3802 * cp-namespace.c: White space.
3803 * cp-support.c: White space.
3804 * cp-valprint.c: White space.
3805 * c-typeprint.c: White space.
3806 * c-valprint.c: White space.
3807 * blockframe.c: White space.
3808 * breakpoint.c: White space.
3809 * buildsym.c: White space.
3810 * blockframe.c: White space.
3811 * bcache.c: White space.
3812 * gdbarch.sh: White space, add blank lines.
3813 * arch-utils.c: Ditto.
3814 * gdbarch.c: Regenerate.
3815 * frame.c: White space, add blank lines.
3816 * stack.c: White space, add blank lines.
3817 (initialize_stack): Remove long-dead code.
3818
3819 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3820
3821 Code cleanup.
3822 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
3823 (locexpr_read_variable, loclist_read_variable): Update the callers.
3824
3825 2010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3826
3827 Code cleanup.
3828 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
3829 Remove check of NULL returned by tag_type_to_type.
3830 (die_containing_type): Remove variable type. Remove type_die variable
3831 initialization. Remove check of NULL returned by tag_type_to_type.
3832
3833 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3834
3835 PR exp/11530.
3836 * gdbtypes.c (lookup_struct_elt_type): Also lookup
3837 names of unnamed structures or unions.
3838
3839 2010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3840
3841 * procfs.c (proc_watchpoint_address): New function.
3842 (procfs_stopped_by_watchpoint): Remove useless check after
3843 find_procinfo_or_die call.
3844 (procfs_stopped_data_address): New function.
3845 (procfs_use_watchpoints): Register new watchpoint related function.
3846
3847 2010-05-11 Tom Tromey <tromey@redhat.com>
3848
3849 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
3850
3851 2010-05-10 Michael Snyder <msnyder@vmware.com>
3852
3853 * utils.c: White space cleanup.
3854
3855 2010-05-10 Tom Tromey <tromey@redhat.com>
3856
3857 * eval.c (ptrmath_type_p): Add 'lang' argument.
3858 (evaluate_subexp_standard): Update.
3859 (evaluate_subexp_with_coercion): Update.
3860 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
3861
3862 2010-05-10 Michael Snyder <msnyder@vmware.com>
3863
3864 * utils.c (do_fclose_cleanup) Restore local variable.
3865
3866 2010-05-09 Doug Evans <dje@google.com>
3867
3868 * record.c (init_record_core_ops): Rename record_core to record-core.
3869
3870 2010-05-08 Joel Brobecker <brobecker@adacore.com>
3871
3872 Implement task switching on pa-hpux.
3873 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
3874 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
3875
3876 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3877
3878 * valops.c (find_overload_match): Add missing i18n markup.
3879
3880 2010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3881
3882 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
3883
3884 2010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3885
3886 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
3887 list for the obconcat call.
3888 * mdebugread.c (parse_symbol): Likewise.
3889 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
3890 Likewise.
3891 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
3892 New variable ap. Remove variables len and val.
3893 * symfile.h (obconcat): Likewise for the prototype.
3894
3895 2010-05-07 Michael Snyder <msnyder@vmware.com>
3896
3897 * python/python.c (execute_gdb_command): Remove unused variables.
3898 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
3899 * python/py-breakpoint.c (gdbpy_breakpoint_created):
3900 Remove unused variable.
3901 * python/py-cmd.c (cmdpy_function): Remove unused variable.
3902 (cmdpy_completer): Remove unused variable.
3903 * python/py-frame.c (frapy_find_sal): Remove unused variable.
3904 * python/py-function.c (fnpy_call): Remove unused variable.
3905 * python/py-objfile.c (objfile_to_objfile_object):
3906 Remove unused variable.
3907 * python/py-param.c (parmpy_init): Remove unused variable.
3908 * python/py-prettyprint.c (apply_varobj_pretty_printer):
3909 Remove unused variable.
3910 (gdbpy_default_visualizer): Remove unused variable.
3911 * python/py-progspace.c (pspace_to_pspace_object):
3912 Remove unused variable.
3913 * python/py-symtab.c (symtab_and_line_to_sal_object):
3914 Remove unused variable.
3915 * python/py-type.c (typy_template_argument):
3916 Remove unused variable.
3917 * python/py-value.c (valpy_string): Remove unused variable.
3918 (convert_value_from_python): Remove unused variables.
3919
3920 2010-05-07 Michael Snyder <msnyder@vmware.com>
3921
3922 * valops.c (value_cast_pointers): Restore unused variable 'type1',
3923 and use it to compute variable 't1'.
3924
3925 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3926
3927 * ada-lang.c (assign_aggregate): Remove unused variable.
3928
3929 2010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
3930
3931 PR C++/7943:
3932 * valops.c (find_overload_match): Handle fsym == NULL case.
3933 Add int no_adl argument.
3934 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
3935 when appropriate.
3936 Add int no_adl argument.
3937 (find_oload_champ_namespace): Add int no_adl argument.
3938 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
3939 expression.
3940 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
3941 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
3942 Evaluate arguments and use them to perform ADL lookup.
3943 Pass no_adl argument to find_overload_match.
3944 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
3945 * cp-support.h: Added prototype for
3946 make_symbol_overload_list_namespace.
3947 * cp-support.c (make_symbol_overload_list_namespace): New function.
3948 (make_symbol_overload_list_adl_namespace): New function.
3949 (make_symbol_overload_list_adl): New function.
3950 (make_symbol_overload_list_using): Moved code to add function to
3951 overload set to make_symbol_overload_list_namespace.
3952 * c-exp.y: create UNKNOWN_CPP_NAME token.
3953 Add parse rule for ADL functions.
3954 (classify_name): Recognize an UNKNOWN_CPP_NAME.
3955
3956 2010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3957
3958 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
3959 sentinel.
3960
3961 2010-05-07 Joel Brobecker <brobecker@adacore.com>
3962
3963 Implement task switching on solaris targets.
3964 * sol-thread.c (thread_db_find_thread_from_tid)
3965 (sol_get_ada_task_ptid): New functions.
3966 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
3967
3968 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3969
3970 * remote.c (remote_query_supported_append): Use reconcat.
3971 (remote_query_supported): Install a cleanup. Use reconcat.
3972
3973 2010-05-07 Pedro Alves <pedro@codesourcery.com>
3974
3975 * gdbarch.sh (qsupported): Delete.
3976 * gdbarch.h, gdbarch.c: Regenerate.
3977 * remote.c (remote_query_supported): Remove use of
3978 gdbarch_qsupported.
3979
3980 2010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3981
3982 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
3983 function.
3984
3985 2010-05-06 Michael Snyder <msnyder@vmware.com>
3986
3987 * xml-support.c (xinclude_start_include): Delete unused variable.
3988 (xml_process_xincludes): Delete unused variable.
3989 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
3990 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
3991 (tdesc_find_arch_register): Delete unused variable.
3992 (tdesc_use_registers): Delete unused variable.
3993 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
3994 * inferior.c (print_inferior): Delete unused variable.
3995 * record.c (record_open_1): Delete unused variable.
3996 (record_restore): Delete unused variable.
3997 (cmd_record_save): Delete unused variable.
3998 * gcore.c (derive_heap_segment): Delete unused variable.
3999 (objfile_find_memory_regions): Use unused variable.
4000 * jit.c (jit_inferior_init): Delete unused variable.
4001 * progspace.c (clone_program_space): Delete unused variable.
4002 (pspace_empty_p): Delete unused variable.
4003
4004 * frame-unwind.c (frame_unwind_find_by_frame):
4005 Delete unused variable.
4006 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
4007 * cp-support.c (mangled_name_to_comp): Delete unused variable.
4008 (method_name_from_physname): Delete unused variable.
4009 (cp_func_name): Delete unused variable.
4010 (cp_validate_operator): Delete unused variable.
4011 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
4012 Delete unused variable.
4013 * trad-frame.c (trad_frame_get_prev_register):
4014 Delete unused variable.
4015 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
4016
4017 * serial.c (serial_for_fd): Delete unused variable.
4018 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
4019 * top.c (execute_command): Delete unused variable.
4020 (init_main): Delete unused variable.
4021 * utils.c (do_fclose_cleanup): Delete unused variable.
4022 (do_all_inferior_continuations): Delete unused variable.
4023 (initialize_utils): Delete unused variable.
4024 (internal_problem_mode): Delete unused global.
4025 * frame.c (get_prev_frame): Delete unused global.
4026 (get_frame_locals_address): Delete unused global.
4027 (get_frame_args_address): Delete unused global.
4028
4029 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
4030 (pascal_type_print_varspec_prefix): Delete unused variable.
4031 * f-typeprint.c (f_type_print_base): Delete unused variable.
4032 (f_type_print_varspec_suffix): Delete unused variable.
4033 * m2-typeprint.c (m2_print_type): Delete unused variable.
4034 (m2_long_set): Delete unused variable.
4035 * ada-valprint.c (ada_val_print_1): Delete unused variable.
4036 * d-valprint.c (dynamic_array_type): Delete unused variable.
4037 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
4038 Delete unused variable.
4039 (f77_create_arrayprint_offset_tbl): Delete unused variable.
4040 * m2-valprint.c (m2_val_print): Delete unused variable.
4041
4042 * ui-out.c (ui_out_field_int): Delete unused variable.
4043 (ui_out_field_fmt_int): Delete unused variable.
4044 * varobj.c (varobj_list_children): Delete unused variable.
4045 (varobj_set_value): Delete unused variable.
4046 (install_new_value_visualizer): Delete unused variable.
4047 (varobj_set_visualizer): Delete unused variable.
4048 (varobj_update): Delete unused variable.
4049 (varobj_editable_p): Delete unused variable.
4050 (c_value_of_root): Delete unused variable.
4051 (cplus_describe_child): Delete unused variable.
4052
4053 * ada-lang.c (add_defn_to_vec): Delete unused variable.
4054 (decode_constrained_packed_array_type): Delete unused variable.
4055 (add_defn_to_vec): Delete unused variable.
4056 (symbol_completion_match): Delete unused variable.
4057 (value_tag_from_contents_and_address): Delete unused variable.
4058 (ada_evaluate_subexp): Delete unused variable.
4059 * c-lang.c (classify_type): Delete unused variable.
4060 * f-lang.c (f_printstr): Delete unused variable.
4061 * objc-lang.c (objc_printstr): Delete unused variable.
4062 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
4063 * jv-lang.c (type_from_class): ifdef unused variable.
4064 (java_class_name_from_physname): Delete unused variable.
4065 * m2-lang.c (m2_printstr): Delete unused variable.
4066
4067 * objfiles.c (objfile_relocate): Delete unused variable.
4068 * maint.c (_initialize_maint_cmds): Delete unused variable.
4069 * demangle.c (_initialize_demangler): Delete unused variable.
4070 * corefile.c (reopen_exec_file): Delete unused variable.
4071 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
4072 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
4073
4074 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
4075 * memattr.c (mem_delete): Delete unused variable.
4076 (invalidate_target_mem_regions): Delete unused variable.
4077 * mem-break.c (default_memory_insert_breakpoint):
4078 Delete unused variable.
4079 * target.c (target_get_osdata): Delete unused variable.
4080 * parse.c (length_of_subexp): Delete unused variable.
4081 (prefixify_subexp): Delete unused variable.
4082 (exp_iterate): Delete unused variable.
4083 * reverse.c (delete_bookmark_command): Delete unused variable.
4084
4085 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
4086 * macroexp.c (gather_arguments): Delete unused variable.
4087 (substitute_args): Delete unused variable.
4088 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
4089 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
4090 (_initialize_gdbarch): Delete unused variable.
4091 * gdbarch.c, gdbarch.h: Regenerate.
4092 * arch-utils.c (initialize_current_architecture):
4093 Delete unused variable.
4094 (_initialize_gdbarch_utils): Delete unused variable.
4095 * gdbtypes.c (make_cv_type): Delete unused variable.
4096 (make_type_with_address_space): Delete unused variable.
4097
4098 * linespec.c (decode_compound): Delete unused variable.
4099 * dictionary.c (iterator_next_hashed): Delete unused variable.
4100 * infcall.c (call_function_by_hand): Delete unused variable.
4101 * infcmd.c (step_1): Delete unused variable.
4102 (registers_info): Delete unused variable.
4103 (attach_command): Delete unused variable.
4104 * infrun.c (follow_exec): Delete unused variable.
4105 (handle_step_into_function_backwards): Delete unused variable.
4106 (_initialize_infrun): Delete unused variable.
4107 * stack.c (parse_frame_specification_1): Delete unused variable.
4108 (frame_info): Delete unused variable.
4109 (backtrace_command_1): Delete unused variable.
4110 (catch_info): Delete unused variable.
4111
4112 * eval.c (evaluate_subexp_standard): Delete unused variable.
4113 * valops.c (value_cast_pointers): Delete unused variable.
4114 (value_dynamic_cast): Delete unused variable.
4115 (value_array): Delete unused variable.
4116 (find_overload_match): Delete unused variable.
4117 * valarith.c (value_subscript): Delete unused variable.
4118 (value_binop): Delete unused variable.
4119 * valprint.c (_initialize_valprint): Delete unused variable.
4120 * printcmd.c (print_command_1): Delete unused variable.
4121 (address_info): Delete unused variable.
4122 (printf_command): Delete unused variable.
4123
4124 * auxv.c (target_auxv_search): Delete unused variable.
4125 * blockframe.c (get_frame_block): Delete unused variable.
4126 * regcache.c (regcache_cpy): Delete unused variable.
4127 (regcache_cpy_no_passthrough): Delete unused variable.
4128 * charset.c (wchar_iterate): Delete unused variable.
4129 (find_charset_names): Delete unused variable.
4130 (_initialize_charset): Delete unused variable.
4131 * disasm.c (do_mixed_source_and_assembly):
4132 Delete unused variable.
4133 * source.c (set_default_source_symtab_and_line):
4134 Delete unused variable.
4135 (set_substitute_path_command): Delete unused variable.
4136 * value.c (preserve_values): Delete unused variable.
4137 (value_from_double): Delete unused variable.
4138
4139 2010-05-05 Michael Snyder <msnyder@vmware.com>
4140
4141 * psymtab.c (lookup_partial_symbol): Delete unused variable.
4142 (find_last_source_symtab_from_partial): Delete unused variable.
4143 * symfile.c (place_section): Delete unused variable.
4144 (default_symfile_offsets): Delete unused variable.
4145 (get_debug_link_info): Delete unused variable.
4146 (find_separate_debug_file_by_debuglink): Delete unused variable.
4147 (add_symbol_file_command): Delete unused variable.
4148 (symfile_find_segment_sections): Delete unused variable.
4149 * symmisc.c (free_symtab): Delete unused variable.
4150 (dump_symtab_1): Delete unused variable.
4151 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
4152 (find_pc_sect_symtab): Delete unused variable.
4153 (skip_prologue_using_lineinfo): Delete unused variable.
4154 (sources_info): Delete unused variable.
4155 (completion_list_add_name): Delete unused variable.
4156 (expand_line_sal): Delete unused variable.
4157
4158 * breakpoint.c (validate_commands_for_breakpoint):
4159 Delete unused variables.
4160 (insert_catchpoint): Delete unused variable.
4161 (update_watchpoint): Delete unused variable.
4162 (insert_bp_location): Delete unused variable.
4163 (insert_breakpoint_locations): Delete unused variable.
4164 (remove_breakpoint_1): Delete unused variable.
4165 (software_breakpoint_inserted_here_p): Delete unused variable.
4166 (watchpoints_triggered): Delete unused variable.
4167 (bpstat_check_watchpoint): Delete unused variable.
4168 (bpstat_stop_status): Delete unused variable.
4169 (print_one_breakpoint_location): Delete unused variable.
4170 (allocate_bp_location): Delete unused variable.
4171 (create_breakpoint): Delete unused variable.
4172 (watch_command_1): Delete unused variable.
4173 (catch_exception_command_1): Delete unused variable.
4174 (catch_ada_exception_command): Delete unused variable.
4175 (delete_breakpoint): Delete unused variable.
4176 (breakpoint_re_set_one): Delete unused variable.
4177 (do_enable_breakpoint): Delete unused variable.
4178
4179 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4180
4181 * amd64-tdep.c: Include disasm.h.
4182 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
4183 (amd64_insn_length): Moved to disasm.c and renamed.
4184 (fixup_riprel): Adjust.
4185 * disasm.c (do_ui_file_delete): New.
4186 (gdb_insn_length): New.
4187 (gdb_buffered_insn_length_fprintf)
4188 (gdb_buffered_insn_length_init_dis)
4189 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
4190 renamed.
4191 * disasm.h (gdb_insn_length): Declare.
4192 (gdb_buffered_insn_length): Declare.
4193
4194 2010-05-06 Pedro Alves <pedro@codesourcery.com>
4195
4196 * remote.c (clear_threads_parsing_context): New.
4197 (remote_threads_info): Delete unused null_cleanup. Install a
4198 cleanup to clear the threads_parsing_context in case parsing
4199 throws.
4200
4201 2010-05-05 Michael Snyder <msnyder@vmware.com>
4202
4203 * c-exp.y (parse_string_or_char): Delete unused variable.
4204 (c_lex): Delete unused variable.
4205 * cp-name-parser.y (cpname_lex): Delete unused variable.
4206 * ada-exp.y (find_primitive_type): Delete unused variable.
4207 (write_var_or_type): Delete unused variable.
4208 * jv-exp.y (java_parse): Delete unused variable.
4209 (push_expression_name): Delete unused variable.
4210 * p-exp.y (pascal_lex): Delete unused variable.
4211
4212 2010-05-05 Pedro Alves <pedro@codesourcery.com>
4213
4214 * remote.c (remote_threads_info): Really revert previous previous
4215 change.
4216
4217 2010-05-05 Michael Snyder <msnyder@vmware.com>
4218
4219 * elfread.c (elf_symtab_read): Delete unused variable.
4220 (find_separate_debug_file_by_buildid): Delete unused variables.
4221 (elf_symfile_read): Delete unused variable.
4222
4223 * coffread.c (coff_symfile_read): Delete unused variables.
4224
4225 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
4226 (read_pe_exported_syms): Delete unused variable.
4227
4228 * stabsread.c (define_symbol): Delete unused variable.
4229
4230 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
4231 (process_psymtab_comp_unit): Delete unused variable.
4232 (dwarf2_build_psymtabs_hard): Delete unused variable.
4233 (load_partial_comp_unit): Delete unused variable.
4234 (create_all_comp_units): Delete unused variable.
4235 (scan_partial_symbols): Delete unused variable.
4236 (add_partial_symbol): Delete unused variable.
4237 (add_partial_namespace): Delete unused variable.
4238 (add_partial_enumeration): Delete unused variable.
4239 (load_full_comp_unit): Delete unused variable.
4240 (process_full_comp_unit): Delete unused variable.
4241 (read_file_scope): Delete unused variable.
4242 (read_type_unit_scope): Delete unused variable.
4243 (process_structure_scope): Delete unused variable.
4244 (process_enumeration_scope): Delete unused variable.
4245 (read_tag_ptr_to_member_type): Delete unused variable.
4246 (read_typedef): Delete unused variable.
4247 (read_partial_die): Delete unused variable.
4248 (decode_locdesc): Delete unused variable.
4249 (zeroed_partial_die): Delete unused global variable.
4250
4251 * tui/tui-interp.c (_initialize_tui_interp):
4252 Delete unused variable.
4253 * tui/tui-regs.c tui_display_registers_from):
4254 Delete unused variable.
4255 (tui_check_register_values): Delete unused variable.
4256 (tui_register_format): Delete unused variable.
4257 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
4258 * tui/tui-windata.c (tui_display_data_from_line):
4259 Delete unused variables.
4260 (tui_vertical_data_scroll): Delete unused variables.
4261
4262 2010-05-05 Michael Snyder <msnyder@vmware.com>
4263
4264 * remote.c (remote_threads_info): Revert questionable part of
4265 the previous change.
4266
4267 2010-05-05 Michael Snyder <msnyder@vmware.com>
4268
4269 * mi/mi-out.c (mi_table_begin): Delete unused variable.
4270 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
4271 (mi_cmd_var_list_children): Delete unused variable.
4272 (varobj_update_one): Delete unused variable.
4273 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
4274 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
4275 Delete unused variable.
4276 (mi_cmd_stack_list_variables): Delete unused variable.
4277 (list_args_or_locals): Delete unused variable.
4278 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
4279 Delete unused variables.
4280 (mi_cmd_file_list_exec_source_files): Delete unused variable.
4281 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
4282 Delete unused variable.
4283 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
4284 (mi_cmd_interpreter_exec): Delete unused variable.
4285 (mi_on_normal_stop): Delete unused variable.
4286 * mi/mi-main.c (run_one_inferior): Delete unused variable.
4287 (print_one_inferior): Delete unused variables.
4288 (mi_execute_command): Delete unused variable.
4289 (mi_cmd_execute): Delete unused variable.
4290 (timestamp): Delete unused variable.
4291
4292 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
4293 (restore_binary_file): Delete unused variable.
4294 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
4295 * cli/cli-script.c (define_command): Delete unused variables.
4296 (recurse_read_control_structure): Delete unused variable.
4297 (script_from_file): Delete unused variable.
4298 * cli/cli-cmds.c (complete_command): Delete unused variable.
4299 (disassemble_command): Delete unused variable.
4300
4301 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
4302 * tracepoint.c (delete_trace_variable_command):
4303 Delete unused variables.
4304 (encode_actions_1): Delete unused variables.
4305 (start_tracing): Delete unused variable.
4306 (trace_status_mi): Delete unused variable.
4307 (tfind_1): Delete unused variable.
4308 (trace_find_pc_command): Delete unused variable.
4309 (trace_find_line_command): Delete unused variables.
4310 (trace_find_range_command): Delete unused variables.
4311 (trace_find_outside_command): Delete unused variables.
4312 (parse_tracepoint_definition): Delete unused variables.
4313 (tfile_fetch_registers): Delete unused variable.
4314
4315 * dcache.c (dcache_init): Delete unused variable.
4316 (dcache_info): Delete unused variable.
4317
4318 * remote.c (remote_threads_info): Delete unused variable.
4319 (process_stop_reply) :Delete unused variable.
4320 (remote_get_trace_status): Delete unused variables.
4321
4322 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
4323 (thread_from_lwp): Delete unused variable.
4324 (enable_thread_event_reporting): Delete unused variable.
4325 (check_for_thread_db): Delete unused variables.
4326 (thread_db_find_new_threads_2): Delete unused variable.
4327
4328 * linux-fork.c (info_checkpoints_command): Delete unused variables.
4329 (checkpoint_command): Delete unused variable.
4330 (linux_fork_context): Delete unused variables.
4331
4332 * linux-nat.c (linux_parent_pid): Delete unused global variable.
4333 (linux_tracefork_child): Delete unused variable.
4334 (linux_child_follow_fork): Delete unused variable.
4335 (linux_nat_detach): Delete unused variable.
4336 (linux_handle_extended_wait): Delete unused variable.
4337 (linux_nat_has_pending_sigint): Delete unused variable.
4338 (linux_nat_find_memory_regions): Delete unused variable.
4339 (linux_nat_make_corefile_notes): Delete unused variables.
4340 (linux_nat_info_proc_cmd): Delete unused variable.
4341 (linux_proc_pending_signals): Delete unused variable.
4342 (linux_nat_stop_lwp): Delete unused variables.
4343 (_initialize_linux_nat): Delete unused variable.
4344
4345 * ser-pipe.c (pipe_ops): Delete unused global variable.
4346
4347 * linux-record.c (record_linux_system_call):
4348 Delete unused variables.
4349
4350 * corelow.c (core_xfer_partial): Delete unused variables.
4351
4352 * solib-svr4.c (find_program_interpreter): Delete unused variable.
4353 (svr4_solib_create_inferior_hook): Add ifdef around
4354 conditionally-used variable declarations.
4355
4356 * solib.c (solib_find): Delete unused variable.
4357 (free_so_symbols): Delete unused variable.
4358 (info_sharedlibrary_command): Delete unused variable.
4359 (reload_shared_libraries_1): Delete unused variable.
4360 (_initialize_solib): Delete unused variable.
4361
4362 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
4363 (i386_collect_xstateregset): Delete unused variable.
4364 * i387-tdep.c (i387_print_float_info): Delete unused variable.
4365
4366 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
4367 Delete unused variable 'type'.
4368
4369 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4370
4371 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
4372 ada-lang.c: Remove comment mentioning these macros.
4373 * m2-exp.y: Delete commented out code.
4374
4375 2010-05-05 Joel Brobecker <brobecker@adacore.com>
4376
4377 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
4378 for array types.
4379 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
4380
4381 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4382
4383 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
4384 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
4385 ATTRIBUTE_UNUSED.
4386 (cleanup_kernel_helper_return): Likewise.
4387 * arm-tdep.c (copy_unmodified): Likewise.
4388 (copy_preload): Likewise.
4389 (copy_copro_load_store): Likewise.
4390 (cleanup_branch): Likewise.
4391 (copy_b_bl_blx): Likewise.
4392 (copy_bx_blx_reg): Likewise.
4393 (copy_alu_imm): Likewise.
4394 (copy_alu_reg): Likewise.
4395 (copy_alu_shifted_reg): Likewise.
4396 (cleanup_load): Likewise.
4397 (cleanup_store): Likewise.
4398 (cleanup_block_load_pc): Likewise.
4399 (cleanup_svc): Likewise.
4400 (copy_undef): Likewise.
4401 (copy_unpred): Likewise.
4402 * remote.c (register_remote_support_xml): Likewise.
4403
4404 2010-05-05 Hui Zhu <teawater@gmail.com>
4405
4406 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
4407
4408 2010-05-04 Mark Kettenis <kettenis@gnu.org>
4409
4410 * remote.c (register_remote_support_xml)
4411 (remote_query_supported_append, remote_query_supported): Add cast
4412 to NULL used as sentinel.
4413 * tracepoint.c (tvariables_info_1): Likewise.
4414 * utils.c (add_internal_problem_command): Likewise.
4415
4416 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4417
4418 * dwarf2loc.c (read_pieced_value, write_pieced_value,
4419 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
4420 registers gracefully.
4421
4422 2010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4423
4424 * exec.c (print_section_info): Display entry point without arch
4425 specific parts.
4426
4427 2010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
4428
4429 PR exp/11349.
4430 * printcmd.c (x_command): Only dereference once implicitly for
4431 TYPE_CODE_REF.
4432
4433 2010-05-03 Doug Evans <dje@google.com>
4434
4435 * event-loop.c (gdb_timer): Delete unused global.
4436 (create_timer): Update.
4437
4438 2010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4439
4440 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
4441 CURRENT->DECLARATION case.
4442 * cp-support.h (struct using_direct): Provide extended comment.
4443
4444 2010-05-03 Mark Kettenis <kettenis@gnu.org>
4445
4446 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
4447 HPPABSD_SIZEOF_GREGS.
4448 (HPPAOBSD_SIZEOF_FPREGS): New define.
4449 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
4450 (hppaobsd_supply_fpregset): New function.
4451 (hppaobsd_gregset): Renamed from hppabsd_gregset.
4452 (hppaobsd_fpregset): New variable.
4453 (hppaobsd_regset_from_core_section): Handle floating-point registers.
4454 (_initialize_hppabsd_tdep): Remove spurious blank line.
4455
4456 2010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
4457
4458 PR pascal/11349.
4459 * p-valprint.c (pascal_value_print): Always dereference a value with
4460 type code TYPE_CODE_REF.
4461
4462 2010-05-03 Pedro Alves <pedro@codesourcery.com>
4463
4464 * remote.c (remote_notice_signals): New.
4465 (remote_start_remote): In non-stop mode, update the remote end on
4466 which signals it can silently pass.
4467 (init_remote_ops): Install remote_notice_signals.
4468
4469 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4470
4471 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
4472 * command.h (error_no_arg): ... here. Remove NORETURN, change
4473 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4474 * defs.h (NORETURN, ATTR_NORETURN): Remove.
4475 (perror_with_name, verror, error, error_stream, vfatal, fatal)
4476 (internal_verror, internal_error, nomem): Remove NORETURN, change
4477 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4478 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
4479 (throw_vfatal, throw_error): Remove NORETURN.
4480 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
4481 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
4482 (throw_error, deprecated_throw_reason): Remove NORETURN, change
4483 ATTR_NORETURN to ATTRIBUTE_NORETURN.
4484 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
4485 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
4486 NORETURN.
4487 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
4488 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
4489 ATTRIBUTE_NORETURN.
4490 * target.c (tcomplain): Likewise.
4491 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
4492 ATTRIBUTE_NORETURN.
4493 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
4494 (internal_error, perror_with_name, nomem): Remove NORETURN.
4495 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
4496 ATTRIBUTE_NORETURN.
4497
4498 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4499
4500 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4501 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
4502 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
4503 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4504 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
4505 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4506 * complaints.h (complaint, internal_complaint): Likewise.
4507 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
4508 (ATTR_FORMAT): Remove.
4509 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
4510 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
4511 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
4512 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
4513 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
4514 (internal_error, internal_vwarning, internal_warning, warning)
4515 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4516 * disasm.c (fprintf_disasm): Likewise.
4517 * exceptions.c (throw_it): Likewise.
4518 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
4519 (throw_error): Likewise.
4520 * language.h (type_error, range_error): Likewise.
4521 * linespec.c (cplusplus_error): Likewise.
4522 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
4523 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
4524 * monitor.c (monitor_debug): Likewise.
4525 * parser-defs.h (parser_fprintf): Likewise.
4526 * serial.h (serial_printf): Likewise.
4527 * tui/tui-hooks.c (tui_query_hook): Likewise.
4528 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
4529 (uo_message): Likewise.
4530 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
4531 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
4532 Likewise.
4533 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
4534
4535 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4536
4537 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
4538 (cli_table_header, cli_begin, cli_end, cli_field_int)
4539 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
4540 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
4541 Delete forward declarations.
4542 (cli_ui_out_impl): Move below the callbacks.
4543 (_initialize_cli_out): Delete.
4544
4545 2010-05-02 Pedro Alves <pedro@codesourcery.com>
4546
4547 * README: Use consistent `GDB' and `GDBserver' spellings.
4548
4549 2010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4550
4551 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
4552
4553 2010-05-01 Pedro Alves <pedro@codesourcery.com>
4554
4555 * infrun.c (prepare_for_detach): In non-stop, context switch to
4556 the thread that got the event before handling the event.
4557
4558 2010-04-30 Tom Tromey <tromey@redhat.com>
4559
4560 * symtab.c (symbol_set_names): Fix typo.
4561
4562 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4563
4564 * python/py-param.c (parm_constants): Avoid ARI warning
4565 by adding ARI comment.
4566 (parmpy_init): Likewise.
4567
4568 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4569
4570 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
4571 and created type for re-use.
4572
4573 2010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4574
4575 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
4576
4577 2010-04-29 Doug Evans <dje@google.com>
4578
4579 * ser-base.h (reschedule): Delete prototype.
4580 * ser-base.c (reschedule): Make static.
4581
4582 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4583
4584 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
4585 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
4586 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
4587 EABI.
4588 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
4589 use.
4590
4591 2010-04-29 Pedro Alves <pedro@codesourcery.com>
4592
4593 PR gdb/11557
4594
4595 * regcache.c (registers_changed): Rename to ...
4596 (registers_changed_ptid): ... this, and only delete register cache
4597 entries matching the ptid filter argument.
4598 (registers_changed): Reimplement on top of registers_changed_ptid.
4599 * regcache.h (registers_changed_ptid): Declare.
4600 * target.c (target_resume): Flush register caches.
4601
4602 2010-04-29 Phil Muldoon <pmuldoon@redhat.com>
4603 Tom Tromey <tromey@redhat.com>
4604 Thiago Jung Bauermann <bauerman@br.ibm.com>
4605
4606 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
4607 (SUBDIR_PYTHON_SRCS): Likewise.
4608 (py-parameter.o): New rule.
4609 * python/py-parameter.c: New file.
4610 * python/python-internal.h (gdbpy_initialize_parameter)
4611 (gdbpy_parameter, gdbpy_parameter_value)
4612 (gdbpy_parse_command_name): Declare.
4613 * python/py-cmd.c (parse_command_name): Rename to
4614 gdbpy_parse_command_name.
4615 (gdbpy_parse_command_name): Accept a starting list parameter and
4616 use over cmdlist.
4617 (cmdpy_init): Use gdbpy_parse_command_name.
4618 * python/python.c (parameter_to_python): Rename to
4619 gdbpy_parameter_to_python. Accept enum var_types and value.
4620 (gdbpy_parameter): Use gdbpy_parameter_value.
4621 (_initialize_python): Call gdbpy_initialize_parameters.
4622
4623 2010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4624
4625 * MAINTAINERS: Add myself for write after approval privileges.
4626
4627 2010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
4628
4629 D language support.
4630 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
4631 (COMMON_OBS): Add d-lang.o d-valprint.o.
4632 (HFILES_NO_SRCDIR): Add d-lang.h.
4633 * NEWS: Mention D language support.
4634 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
4635 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
4636 * d-lang.c: New file.
4637 * d-lang.h: New file.
4638 * d-valprint.c: New file.
4639 * defs.h (enum language): Add language_d.
4640 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
4641 * language.c (binop_result_type, integral_type, character_type)
4642 (string_type, boolean_type, structured_type): Add language_d.
4643 * symfile.c (init_filename_language_table): Add language_d.
4644 * symtab.c: Include d-lang.h.
4645 (symbol_init_language_specific, symbol_find_demangled_name)
4646 (symbol_natural_name, lookup_symbol_in_language)
4647 (symbol_demangled_name, symbol_matches_domain): Add language_d.
4648
4649 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4650
4651 * solib-svr4.c (solib_svr4_r_map): Expand function description.
4652
4653 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4654
4655 * symfile.c (init_filename_language_table): Register .dg files
4656 with language_ada.
4657
4658 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4659
4660 * gdbtypes.h (struct main_type): Expand comment about target_type
4661 field.
4662
4663 2010-04-27 Pedro Alves <pedro@codesourcery.com>
4664 Tristan Gingold <gingold@adacore.com>
4665
4666 * symfile.c (reread_symbols): Also search for file in libraries.
4667 Update comment.
4668
4669 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4670
4671 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
4672 in terms of configuration.
4673
4674 2010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4675
4676 * objfiles.c: Include solist.h.
4677 (free_all_objfiles): New variable so. Check stale solist objfiles.
4678 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
4679 and no_shared_libraries.
4680
4681 2010-04-27 Joel Brobecker <brobecker@adacore.com>
4682
4683 ARI warning fix.
4684 * python/py-auto-load.c (source_section_scripts): Remove trailing
4685 new-line in i18n string.
4686
4687 2010-04-26 Doug Evans <dje@google.com>
4688
4689 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
4690
4691 2010-04-26 Tom Tromey <tromey@redhat.com>
4692
4693 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
4694 command list.
4695
4696 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4697
4698 Removal of config/i386/nm-i386sol2.h native configuration file.
4699 * config/i386/nm-i386sol2.h: Remove file.
4700 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
4701 * config/i386/sol2-64.mh: Idem.
4702 * config/djgpp/fnchange.lst: Remove reference to that file.
4703 * Makefile.in (HFILES_NO_SRCDIR): Idem.
4704
4705 2010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4706
4707 PR breakpoints/11531.
4708 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
4709 macro definition and related comment.
4710 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
4711 (resume): Remove code and comment related to this macro.
4712
4713 2010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4714
4715 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
4716 Fix whitespace.
4717
4718 2010-04-24 Pedro Alves <pedro@codesourcery.com>
4719
4720 * defs.h: Adjust comment.
4721 * filesystem.h, filesystem.c: New files.
4722 * Makefile.in (SFILES): Add filesystem.c.
4723 (COMMON_OBS): Add filesystem.o.
4724 * solib.c (solib_find): Handle DOS-based filesystems. Handle
4725 different target and host path flavours.
4726 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4727 has_dos_based_file_system on the gdbarch.
4728 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
4729 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
4730 * i386-tdep.c (i386_go32_init_abi): Ditto.
4731 * gdbarch.sh (has_dos_based_file_system): New.
4732 * gdbarch.h, gdbarch.c: Regenerate.
4733 * NEWS: Mention improved support for remote targets with DOS-based
4734 filesystems. Mention new `set/show target-file-system-kind'
4735 commands.
4736
4737 2010-04-23 Stan Shebs <stan@codesourcery.com>
4738
4739 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
4740 comments.
4741 (struct agent_reqs): Remove.
4742 (ax_reg_mask): Declare.
4743 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
4744 (free_agent_expr): Free reg_mask.
4745 (ax_print): Add scope and register mask info.
4746 (ax_reqs): Remove agent_reqs argument, use agent expression
4747 fields, and move part of register mask computation to...
4748 (ax_reg_mask): New function.
4749 * ax-gdb.c (gen_trace_static_fields): Call it.
4750 (gen_traced_pop): Ditto.
4751 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
4752 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
4753 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
4754 (gen_eval_for_expr): Ditto, and require an rvalue.
4755 (agent_command): Call ax_reqs.
4756 (agent_eval_command): Ditto.
4757 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
4758 (validate_action_line): Ditto.
4759 (collect_symbol): Ditto.
4760 (encode_actions_1): Ditto.
4761
4762 2010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
4763 Paul Pluzhnikov <ppluzhnikov@google.com>
4764 Jan Kratochvil <jan.kratochvil@redhat.com>
4765
4766 Fix deadlock on looped list of loaded shared objects.
4767 * solib-svr4.c (LM_PREV): New function.
4768 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
4769 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
4770 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
4771 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
4772
4773 2010-04-23 Doug Evans <dje@google.com>
4774
4775 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
4776 python.
4777 * configure: Regenerate.
4778 * main.c: #include "python/python.h".
4779 (captured_main): Defer loading auto-loaded scripts until after
4780 local_gdbinit has been sourced.
4781 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
4782 (load_auto_scripts_for_objfile): New function.
4783 (auto_load_new_objfile): Call it.
4784 * python/python.h (gdbpy_global_auto_load): Declare.
4785 (load_auto_scripts_for_objfile): Declare.
4786
4787 Add support for auto-loading scripts from .debug_gdb_scripts section.
4788 * NEWS: Add entry for .debug_gdb_scripts.
4789 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
4790 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
4791 (py-auto-load.o): New rule.
4792 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
4793 * cli/cli-cmds.h (find_and_open_script): Update prototype.
4794 * python/py-auto-load.c: New file.
4795 * python/python-internal.h: #include <stdio.h>.
4796 (set_python_list, show_python_list): Declare.
4797 (gdbpy_initialize_auto_load): Declare.
4798 (source_python_script_for_objfile): Declare.
4799 * python/python.c: Remove #include of observer.h.
4800 (gdbpy_auto_load): Moved to py-auto-load.c.
4801 (GDBPY_AUTO_FILENAME): Ditto.
4802 (gdbpy_new_objfile): Delete.
4803 (source_python_script_for_objfile): New function.
4804 (set_python_list, show_python_list): Make externally visible.
4805 (_initialize_python): Move "auto-load" command to py-auto-load.c
4806 and observer_attach_new_objfile to py-auto-load.c.
4807
4808 2010-04-23 Jerome Guitton <guitton@adacore.com>
4809
4810 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
4811 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
4812 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
4813 New constants.
4814 (alpha_heuristic_analyze_probing_loop): New function.
4815 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
4816 and handle cases when a stack probe loop is generated.
4817 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
4818 (alpha_mdebug_max_frame_size_exceeded): New function.
4819 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
4820 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
4821 Return 0 when the maximum debuggable frame size has been exceeded.
4822
4823 2010-04-23 Joel Brobecker <brobecker@adacore.com>
4824
4825 Fix ARI warning.
4826 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
4827
4828 2010-04-20 Chris Moller <cmoller@redhat.com>
4829
4830 PR 10179
4831
4832 * symtab.c (rbreak_command): Added code to include a filename
4833 specification in the rbreak argument.
4834 * NEWS: Added a brief description of filename-qualified rbreak.
4835
4836 2010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4837
4838 Fix crashes on dangling display expressions.
4839 * ada-lang.c (ada_operator_check): New function.
4840 (ada_exp_descriptor): Fill-in the field operator_check.
4841 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
4842 * jv-lang.c (exp_descriptor_java): Likewise.
4843 * m2-lang.c (exp_descriptor_modula2): Likewise.
4844 * scm-lang.c (exp_descriptor_scm): Likewise.
4845 * parse.c (exp_descriptor_standard): Likewise.
4846 (operator_check_standard): New function.
4847 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
4848 * parser-defs.h (struct exp_descriptor): New field operator_check.
4849 (operator_check_standard, exp_uses_objfile): New declarations.
4850 * printcmd.c: Remove the inclusion of solib.h.
4851 (display_uses_solib_p): Remove the function.
4852 (clear_dangling_display_expressions): Call lookup_objfile_from_block
4853 and exp_uses_objfile instead of display_uses_solib_p.
4854 * solist.h (struct so_list) <objfile>: New comment.
4855 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
4856 * symtab.h (lookup_objfile_from_block): New declaration.
4857 (struct general_symbol_info) <obj_section>: Extend the comment.
4858
4859 2010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4860 Thiago Jung Bauermann <bauerman@br.ibm.com>
4861
4862 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
4863 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
4864 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
4865 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
4866 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
4867 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
4868 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
4869 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
4870 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
4871 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
4872 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
4873 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
4874 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
4875 Define, in case <ptrace.h> doesn't provide it.
4876 (booke_debug_info): New variable.
4877 (max_slots_number): Ditto.
4878 (hw_break_tuple): New struct.
4879 (thread_points): Ditto.
4880 (ppc_threads): New variable.
4881 (PPC_DEBUG_CURRENT_VERSION): New define.
4882 (have_ptrace_new_debug_booke): New function.
4883 (ppc_linux_check_watch_resources): Renamed to ...
4884 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
4885 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
4886 (booke_cmp_hw_point): New function.
4887 (booke_find_thread_points_by_tid): Ditto.
4888 (booke_insert_point): Ditto.
4889 (booke_remove_point): Ditto.
4890 (ppc_linux_insert_hw_breakpoint): Ditto.
4891 (ppc_linux_remove_hw_breakpoint): Ditto.
4892 (get_trigger_type): Ditto.
4893 (ppc_linux_insert_watchpoint): Handle BookE processors.
4894 (ppc_linux_remove_watchpoint): Ditto.
4895 (ppc_linux_new_thread): Ditto.
4896 (ppc_linux_thread_exit): New function..
4897 (ppc_linux_stopped_data_address): Handle BookE processors.
4898 (ppc_linux_watchpoint_addr_within_range): Ditto.
4899 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
4900 to_remove_hw_breakpoint fields of the target operations struct.
4901 Add observe for the thread_exit event.
4902
4903 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4904
4905 * i386-linux-nat.c (regmap): Removed.
4906 (fetch_register): Replace regmap with
4907 i386_linux_gregset_reg_offset.
4908 (store_register): Likewise.
4909 (supply_gregset): Likewise.
4910 (fill_gregset): Likewise.
4911
4912 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
4913 global.
4914
4915 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
4916
4917 2010-04-22 Chris Moller <cmoller@redhat.com>
4918
4919 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4920 method of popping recursion-detection stack with a method based on
4921 obstack_object_size(). (Similar to the PR9167 patch below, but for
4922 the static array obstack rather than the static member obstack.)
4923
4924 2010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4925
4926 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
4927 (_initialize_amd64_linux_nat): Replace
4928 amd64_linux_gregset64_reg_offset with
4929 amd64_linux_gregset_reg_offset.
4930
4931 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
4932 global.
4933
4934 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
4935
4936 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4937
4938 PR stabs/11479.
4939 * stabsread.c (set_length_in_type_chain): New function.
4940 (read_struct_type): Call set_length_in_type_chain function.
4941 (read_enum_type): Idem.
4942
4943 2010-04-21 Stan Shebs <stan@codesourcery.com>
4944 Nathan Sidwell <nathan@codesourcery.com>
4945
4946 * tracepoint.c (trace_save): Open in binary mode.
4947
4948 2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4949
4950 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
4951 fields.
4952 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
4953 builtin_char32 fields.
4954 * printcmd.c (decode_format): Set char size to '\0'
4955 for strings unless explicit size is given.
4956 (print_formatted): Correct calculation of NEXT_ADDRESS
4957 for 16 or 32 bit strings.
4958 (do_examine): Do not force byte size for strings.
4959 Use builtin_char16 and builtin_char32 types to display
4960 16 or 32 bit-wide strings.
4961 (x_command): Set LAST_SIZE to 'b' for string type.
4962
4963 2010-04-21 H.J. Lu <hongjiu.lu@intel.com>
4964
4965 PR corefiles/11523
4966 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4967 XCR0 first.
4968
4969 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
4970 there is no .reg-xstate section.
4971 (i386_linux_core_read_description): Check XCR0 first.
4972
4973 2010-04-21 Mike Frysinger <vapier@gentoo.org>
4974
4975 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
4976 for len <= 8.
4977
4978 2010-04-21 Chris Moller <cmoller@redhat.com>
4979
4980 PR 9167
4981 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
4982 method of popping recursion-detection stack with a method based on
4983 obstack_object_size().
4984
4985 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4986
4987 PR pascal/11492.
4988 * p-valprint.c (pascal_val_print): Fix default printing of integer
4989 arrays.
4990
4991 2010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4992
4993 Fix compilation warning on gcc-4.1.2.
4994 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
4995 local variable`pc' to zero.
4996
4997 2010-04-20 Joel Brobecker <brobecker@adacore.com>
4998
4999 Implement thread support with core files on alpha-tru64.
5000 * dec-thread.c (dec_thread_find_new_threads): New function,
5001 extracted from resync_thread_list.
5002 (resync_thread_list): Add OPS parameter. Replace extracted-out
5003 code by call to dec_thread_find_new_threads.
5004 (dec_thread_wait): Update call to resync_thread_list.
5005 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
5006
5007 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5008
5009 * ada-lang.c (value_pointer): New function.
5010 (make_array_descriptor): Call value_pointer to convert addresses to
5011 pointers.
5012
5013 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5014
5015 * rs6000-aix-tdep.c: #include exceptions.h.
5016 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
5017 while reading the memory at ADDR, then ADDR cannot be a function
5018 descriptor.
5019
5020 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5021
5022 * ada-typeprint.c (ada_print_typedef): New function.
5023 * ada-lang.h (ada_print_typedef): Add declaration.
5024 * ada-lang.c (ada_language_defn): set la_print_typdef field
5025 to ada_print_typedef.
5026
5027 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5028
5029 * procfs.c (procfs_address_to_host_pointer): Only define when used.
5030
5031 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5032
5033 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
5034 (iterate_over_mappings): Adjust function profile. Add declaration.
5035 (insert_dbx_link_bpt_in_region, info_mappings_callback):
5036 Adjust accordingly.
5037
5038 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5039
5040 * procfs.c (solib_mappings_callback): Move function up to avoid
5041 a compiler warning.
5042
5043 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5044
5045 * procfs.c (find_signalled_thread, find_stop_signal): Move
5046 these functions down to define them only when used.
5047
5048 2010-04-20 Joel Brobecker <brobecker@adacore.com>
5049
5050 * valprint.c (common_val_print): Fix the value before extracting
5051 its contents.
5052 * ada-lang.c (ada_to_fixed_value): Make this function extern.
5053 * ada-lang.h (ada_to_fixed_value): New function declaration.
5054 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
5055 to avoid code duplication and fix a bug in the handling of
5056 fixed types contents.
5057
5058 2010-04-20 Tom Tromey <tromey@redhat.com>
5059
5060 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
5061 (read_partial_die): Likewise.
5062 (dwarf_attr_name): Likewise.
5063
5064 2010-04-20 Chris Moller <cmoller@redhat.com>
5065
5066 PR 10867
5067
5068 * cp-valprint.c (global): Adding new static array recursion
5069 detection obstack.
5070 (cp_print_value_fields, cp_print_static_field): Added new static
5071 array recursion detection code.
5072
5073 2010-04-20 Mark Kettenis <kettenis@gnu.org>
5074
5075 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
5076 general-purpose register set should be 68 instead of 144.
5077 (i386_linux_sse_regset_sections): Likewise.
5078 (i386_linux_avx_regset_sections): Likewise.
5079
5080 2010-04-20 Stan Shebs <stan@codesourcery.com>
5081 Nathan Sidwell <nathan@codesourcery.com>
5082
5083 * dwarf2loc.c (struct axs_var_loc): New struct.
5084 (dwarf2_tracepoint_var_loc): New function.
5085 (dwarf2_tracepoint_var_access): New function.
5086 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
5087 with DW_OP_piece.
5088 (locexpr_describe_location_piece): New function.
5089 (locexpr_describe_location_1): New function.
5090 (locexpr_describe_location): Call it, update signature.
5091 (loclist_describe_location): Rewrite to loop over locations,
5092 update signature.
5093 * symtab.h (struct symbol_computed_ops): Add address to
5094 describe_location arguments, return void.
5095 * printcmd.c (address_info): Get context PC, pass to computed
5096 location description.
5097 * tracepoint.c (scope_info): Ditto.
5098 * ax-gdb.c (trace_kludge): Export.
5099
5100 2010-04-20 Tom Tromey <tromey@redhat.com>
5101
5102 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
5103 (struct dwarf2_cie) <segment_size>: New field.
5104 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
5105 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
5106 DW_FORM_exprloc.
5107 (read_attribute_value): Handle DW_FORM_flag_present,
5108 DW_FORM_sec_offset, DW_FORM_exprloc.
5109 (dump_die_shallow): Likewise.
5110 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
5111 (dwarf2_const_value): Handle DW_FORM_exprloc.
5112 (attr_form_is_block): Likewise.
5113 (struct line_header) <maximum_ops_per_instruction>: New field.
5114 (dwarf_decode_line_header): Set new field.
5115 (dwarf_decode_lines): Handle new field.
5116
5117 2010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5118
5119 * f-exp.y: Add new production to recognize the `logical*8' type.
5120 (LOGICAL_S8_KEYWORD): New token.
5121 * f-lang.c (enum f_primitive_types)
5122 <f_primitive_type_logical_s8>: New field.
5123 (f_language_arch_info): Handling `logical*8' type.
5124 (build_fortran_types): Building `logical*8' type.
5125 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
5126
5127 2010-04-19 Doug Evans <dje@google.com>
5128
5129 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
5130 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
5131 (pipe_close): Ditto.
5132
5133 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5134
5135 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
5136
5137 2010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
5138
5139 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
5140 type to void function.
5141
5142 2010-04-19 Stan Shebs <stan@codesourcery.com>
5143 Vladimir Prus <vladimir@codesourcery.com>
5144
5145 * tracepoint.c (tfind_1): Add missing newline, report exit from
5146 tfind mode as such.
5147 * target.c (update_current_target): Make default
5148 to_trace_find return -1.
5149
5150 2010-04-19 Mike Frysinger <vapier@gentoo.org>
5151
5152 * objc-lang.c (find_methods): Move symname check up.
5153
5154 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5155
5156 * ada-lang.c (print_recreate_exception)
5157 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
5158 not "catch unhandled".
5159
5160 2010-04-19 Pedro Alves <pedro@codesourcery.com>
5161
5162 PR breakpoints/8554.
5163
5164 Implement `save-breakpoints'.
5165
5166 * breakpoint.c (save_cmdlist): New.
5167 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
5168 to save_cmdlist.
5169 (print_recreate_catch_fork): New.
5170 (catch_fork_breakpoint_ops): Install it.
5171 (print_recreate_catch_vfork): New.
5172 (catch_vfork_breakpoint_ops): Install it.
5173 (print_recreate_catch_syscall): New.
5174 (catch_syscall_breakpoint_ops): Install it.
5175 (print_recreate_catch_exec): New.
5176 (catch_exec_breakpoint_ops): Install it.
5177 (print_recreate_exception_catchpoint): New.
5178 (gnu_v3_exception_catchpoint_ops): Install it.
5179 (save_breakpoints): New, based on tracepoint_save_command, but
5180 handle all breakpoint types.
5181 (save_breakpoints_command): New.
5182 (tracepoint_save_command): Rename to...
5183 (save_tracepoints_command): ... this, and reimplement using
5184 save_breakpoints.
5185 (save_command): New.
5186 (_initialize_breakpoints): Install the "save" command prefix.
5187 Install the "save breakpoints" command. Make "save-tracepoints" a
5188 deprecated alias for "save tracepoints".
5189 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
5190 * ada-lang.c (print_recreate_exception): New.
5191 (print_recreate_catch_exception): New.
5192 (catch_exception_breakpoint_ops): Install it.
5193 (print_recreate_catch_exception_unhandled): New.
5194 (catch_exception_unhandled_breakpoint_ops): Install it.
5195 (print_recreate_catch_assert): New.
5196 (catch_assert_breakpoint_ops): Install it.
5197
5198 * NEWS: Mention the new `save breakpoints' command. Mention the
5199 new `save tracepoints' alias and that `save-tracepoints' is now
5200 deprecated.
5201
5202 2010-04-18 Pedro Alves <pedro@codesourcery.com>
5203
5204 PR tui/9217
5205
5206 * tui/tui-out.c: Include cli-out.h.
5207 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5208 (tui_begin, tui_end, tui_field_int, tui_field_skip)
5209 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
5210 (tui_message, tui_wrap_hint, tui_flush): Delete forward
5211 declarations.
5212 (struct ui_out_data): Rename to...
5213 (struct tui_ui_out_data): ... this. Remove `stream' and
5214 `suppress_output' fields, and inherit cli_ui_out_data.
5215 (tui_out_data): New typedef.
5216 (tui_ui_out_impl): Don't initialize fields staticaly.
5217 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
5218 (tui_begin, tui_end): Delete.
5219 (tui_field_int): Adjust to delegate most work to the base type.
5220 (tui_field_skip): Delete.
5221 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
5222 delegate most work to the base type.
5223 (tui_spaces): Delete.
5224 (tui_text): Adjust to delegate most work to the base type.
5225 (tui_message): Delete.
5226 (tui_wrap_hint): Delete.
5227 (tui_flush): Delete.
5228 (out_field_fmt): Delete.
5229 (field_separator): Delete.
5230 (tui_out_new): Adjust to initialize the base type.
5231 (_initialize_tui_out): Initialize tui_ui_out_impl.
5232 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
5233 cli_ui_out_data.
5234 (cli_out_data): Adjust.
5235 (cli_ui_out_impl): Make extern.
5236 (cli_table_header, cli_field_int, cli_field_skip): Use
5237 uo_field_string instead of cli_field_string.
5238 (cli_redirect): Adjust to use cli_out_data.
5239 (cli_out_data_ctor): New.
5240 (cli_out_new): Use it.
5241 * cli-out.h (struct ui_file): Remove forward declaration.
5242 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
5243 (cli_ui_out_impl): Declare.
5244 (cli_out_data_ctor): Declare.
5245 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
5246 (uo_field_string): No longer static.
5247 (ui_out_data): Change return type to void pointer.
5248 (ui_out_new): Change `data' parameter type to void pointer.
5249 * ui-out.h (struct ui_out_data): Don't forward declare.
5250 (ui_out_data): Change return type to void pointer.
5251 (ui_out_new): Change `data' parameter type to void pointer.
5252 (uo_field_string): Declare.
5253
5254 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5255
5256 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
5257 instead of always false.
5258
5259 2010-04-17 H.J. Lu <hongjiu.lu@intel.com>
5260
5261 PR corefiles/11511
5262 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
5263 orig_rax.
5264
5265 2010-04-17 Pedro Alves <pedro@codesourcery.com>
5266
5267 * breakpoint.c (watchpoints_triggered): Use
5268 is_hardware_watchpoint.
5269 (watchpoints_triggered): Ditto.
5270 (bpstat_check_location): Use is_watchpoint and
5271 is_hardware_watchpoint.
5272 (bpstat_check_watchpoint): Use is_watchpoint and
5273 is_hardware_watchpoint.
5274 (bpstat_stop_status): Fix comment.
5275 (user_settable_breakpoint): Use is_watchpoint.
5276 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
5277 (disable_watchpoints_before_interactive_call_start): Use
5278 is_watchpoint.
5279 (enable_watchpoints_after_interactive_call_stop): Use
5280 is_watchpoint.
5281 (clear_command): Use is_watchpoint.
5282 (do_enable_breakpoint): Use is_watchpoint.
5283
5284 2010-04-16 Mike Frysinger <vapier@gentoo.org>
5285
5286 * solib-frv.c (enable_break1_done): Delete.
5287 (enable_break2): Do not check enable_break1_done. Move the
5288 enable_break2_done setting and call to
5289 remove_solib_event_breakpoints() to the end. Return without
5290 warning when the contents of _dl_debug_addr are 0.
5291 (enable_break): Do not set enable_break1_done.
5292 (frv_clear_solib): Likewise.
5293
5294 2010-04-16 Kevin Buettner <kevinb@redhat.com>
5295
5296 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
5297 instead of an error if no PLT entry is found. Return a
5298 potentially useful result.
5299 (m32c_m16c_pointer_to_address): Add code to search for function
5300 address when no .plt entry is found.
5301
5302 2010-04-16 Stan Shebs <stan@codesourcery.com>
5303
5304 * tracepoint.c (trace_variable_command): Run a cleanup.
5305
5306 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5307
5308 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
5309
5310 2010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
5311
5312 Support for Windows OS Thread Information Block.
5313 * NEWS: Document new feature.
5314 * remote.c (PACKET_qGetTIBAddr): New enum element.
5315 (remote_get_tib_address): New function.
5316 (init_remote_ops): Set to_get_tib_address field
5317 to remote_get_tib_address.
5318 (_initialize_remote): Add add_packet_config_cmd
5319 for PACKET_qGetTIBAddr.
5320 * target.c (update_current_target): Set default value for
5321 new to_get_tib_address field.
5322 * target.h (target_ops): New field to_get_tib_address.
5323 (target_get_tib_address): New macro.
5324 * windows-nat.c (thread_info): Add thread_local_base field.
5325 (windows_add_thread): Add tlb argument of type 'void *'.
5326 (fake_create_process): Adapt windows_add_thread call.
5327 (get_windows_debug_event): Idem.
5328 (windows_get_tib_address): New function.
5329 (init_windows_ops): Set to_get_tib_address field
5330 to remote_get_tib_address.
5331 (_initialize_windows_nat): Replace info_w32_cmdlist
5332 initialization by a call to init_w32_command_list.
5333 (info_w32_command, info_w32_cmdlist): Removed from here...
5334 to windows-tdep.c file.
5335 * windows-tdep.h (info_w32_cmdlist): Declare.
5336 (init_w32_command_list): New external function
5337 declaration.
5338 * windows-tdep.c: Add several headers.
5339 (info_w32_cmdlist): to here, made global.
5340 (thread_information_32): New struct.
5341 (thread_information_64): New struct.
5342 (TIB_NAME): New char array.
5343 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
5344 (maint_display_all_tib): New static variable.
5345 (windows_get_tlb_type): New function.
5346 (tlb_value_read, tlb_value_write): New functions.
5347 (tlb_value_funcs): New static struct.
5348 (tlb_make_value): New function.
5349 (display_one_tib): New function.
5350 (display_tib): New function.
5351 (show_maint_show_all_tib):New function.
5352 (info_w32_command): Moved from windows-nat.c.
5353 (init_w32_command_list): New function.
5354 (_initialize_windows_tdep): New function.
5355 New "maint set/show show-all-tib" command
5356 New "$_tlb" internal variable.
5357
5358 2010-04-16 Joel Brobecker <brobecker@adacore.com>
5359
5360 * tui/tui-regs.c (tui_display_register): Add comment about
5361 a couple of casts.
5362 * tui/tui-stack.c (tui_show_locator_content): Ditto.
5363
5364 2010-04-15 Stan Shebs <stan@codesourcery.com>
5365
5366 * frame.c: Include tracepoint.h.
5367 (get_current_frame): Allow a trace frame to be an alternate source
5368 of stack frame data.
5369 * tracepoint.c (tfind_1): Don't try to get current stack frame if
5370 it won't succeed.
5371
5372 2010-04-15 Pedro Alves <pedro@codesourcery.com>
5373
5374 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
5375 flags.
5376 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
5377
5378 2010-04-15 Doug Evans <dje@google.com>
5379
5380 * NEWS: Add entry for python program space support.
5381 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
5382 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
5383 (py-progspace.o): New rule.
5384 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
5385 function.
5386 (find_pretty_printer_from_progspace): New function.
5387 (find_pretty_printer_from_gdb): New function.
5388 (find_pretty_printer): Rewrite.
5389 * python/py-progspace.c: New file.
5390 * python/python-internal.h (program_space): Add forward decl.
5391 (pspace_to_pspace_object, pspy_get_printers): Declare.
5392 (gdbpy_initialize_pspace): Declare.
5393 * python/python.c: #include "progspace.h".
5394 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
5395 (_initialize_python): Call gdbpy_initialize_pspace.
5396 (GdbMethods): Add current_progspace, progspaces.
5397
5398 Add -s option to source command.
5399 * NEWS: Document new option.
5400 * cli/cli-cmds.c (find_and_open_script): Add function comment.
5401 Delete from_tty and cleanupp args. Split filep arg into file and
5402 full_pathp. New arg search_path.
5403 (source_script_from_stream): New function.
5404 (source_script_with_search): New function.
5405 (source_script): Rewrite.
5406 (source_command): Parse "-s" option.
5407 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
5408 * python/python.c (source_python_script): Make file arg a const char *.
5409 Don't call fclose, leave for caller.
5410 * python/python.h (source_python_script): Update.
5411
5412 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5413 Pedro Alves <pedro@codesourcery.com>
5414
5415 Avoid rereading shared libraries that haven't changed.
5416
5417 * solib.c (free_so_symbols): New function, from ...
5418 (free_so): ... here. Call it.
5419 (solib_read_symbols): Don't warn here if symbols have already been
5420 loaded.
5421 (solib_add): Warn here instead, if a pattern was specified.
5422 (reload_shared_libraries_1): New.
5423 (reload_shared_libraries): Rewrite to not fetch the library list.
5424
5425 2010-04-14 Doug Evans <dje@google.com>
5426
5427 * source.c (openp): Strip DOS drive letter if present before
5428 concatenating string to search path.
5429
5430 2010-04-14 Pedro Alves <pedro@codesourcery.com>
5431
5432 * objfiles.h (gdb_bfd_close_or_warn): Declare.
5433 * objfiles.c (gdb_bfd_close_or_warn): New.
5434 * corelow.c: Include objfiles.h
5435 (core_close): Use gdb_bfd_close_or_warn.
5436 * elfread.c (build_id_verify): Ditto.
5437 * exec.c (exec_close, exec_close_1): Ditto.
5438
5439 2010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
5440 Pedro Alves <pedro@codesourcery.com>
5441
5442 Group errors for many missing shared libraries.
5443
5444 * solist.h (struct so_list): Remove from_tty.
5445 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
5446 (solib_map_sections): Take so_list argument. Return 0 if we
5447 failed to open a BFD. Add target sections here.
5448 (symbol_add_stub): Delete.
5449 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
5450 not from_tty copied from the so_list. Don't warn a second time
5451 for a missing library.
5452 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
5453 add to the section table here. Print out a single warning for all
5454 missing libraries.
5455 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
5456 flags.
5457
5458 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5459
5460 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
5461 error/warning messages. Capitalize and use complete sentences.
5462 (blpy_block_syms_iternext): Likewise.
5463 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
5464 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
5465 (frame_info_to_frame_object, frapy_read_var)
5466 (gdbpy_frame_stop_reason_string): Likewise.
5467 * python/py-lazy-string.c (stpy_convert_to_value)
5468 (gdbpy_create_lazy_string_object): Likewise.
5469 * python/py-objfile.c (objfpy_set_printers): Likewise.
5470 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
5471 * python/python.c (parameter_to_python): Likewise.
5472 * python/py-type.c (typy_range, typy_target): Likewise.
5473 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
5474 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
5475
5476
5477 2010-04-14 Phil Muldoon <pmuldoon@redhat.com>
5478
5479 PR python/11381
5480
5481 * python/py-prettyprint.c (pretty_print_one_value): Test for
5482 Py_None.
5483 (print_string_repr): Test for Py_None. Set flags accordingly.
5484 Return value depending on return type.
5485 (print_children): Take a value indicating whether data was printed
5486 before this function was called. Alter output accordingly.
5487 (apply_val_pretty_printer): Capture return value from
5488 print_string_repr and pass to print_children.
5489
5490 2010-04-13 Mark Kettenis <kettenis@gnu.org>
5491
5492 PR corefiles/11481
5493 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
5494 register note sections.
5495 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
5496 New variables.
5497 (i386_linux_init_abi): Install list of supported register note
5498 sections that matches the target description.
5499
5500 2010-04-13 Pedro Alves <pedro@codesourcery.com>
5501
5502 * remote.c (remote_get_noisy_reply): Don't error out on empty
5503 replies.
5504 (remote_start_remote): Update and merge tracepoints and trace
5505 state variables as long as the target supports tracepoints.
5506 (remote_trace_init): Fix prototype.
5507 (remote_download_trace_state_variable): Validate reply.
5508 (remote_trace_set_readonly_regions): Fix prototype.
5509 (remote_trace_start): Fix prototype. Check for empty reply.
5510 (remote_get_trace_status): Small cleanup.
5511 (remote_trace_stop): Fix prototype. Check for empty reply.
5512 (remote_trace_find): Check for empty reply.
5513 (remote_save_trace_data): Validate reply.
5514 (remote_set_disconnected_tracing): Check for empty reply, and
5515 validate reply.
5516 (remote_set_circular_trace_buffer): Ditto.
5517
5518 2010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
5519
5520 Suppress unused value warning during compilation.
5521 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
5522 calls to void.
5523 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5524
5525 2010-04-12 Stan Shebs <stan@codesourcery.com>
5526
5527 * tracepoint.c (tfile_xfer_partial): Check read result.
5528
5529 2010-04-12 Mike Frysinger <vapier@gentoo.org>
5530
5531 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
5532 * remote-sim.c (gdbsim_files_info): Likewise.
5533
5534 2010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5535
5536 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
5537 * arm-linux-nat.c (arm_linux_vfp_register_count): New
5538 variable.
5539 (fetch_vfp_registers): New function to fetch VFP registers.
5540 (store_vfp_registers): New function to store VFP registers.
5541 (arm_linux_fetch_inferior_registers): Add support for VFP
5542 registers.
5543 (arm_linux_store_inferior_registers): Likewise.
5544 (arm_linux_read_description): Likewise.
5545 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
5546 until we need it.
5547
5548 2010-04-11 H.J. Lu <hongjiu.lu@intel.com>
5549
5550 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
5551 tdep.
5552 (amd64_collect_xstateregset): Likewise.
5553
5554 2010-04-09 Stan Shebs <stan@codesourcery.com>
5555
5556 * tracepoint.c (trace_status_mi): Report frames created.
5557
5558 * tracepoint.c (trace_dump_command): Include default-collect
5559 expressions.
5560
5561 2010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
5562
5563 * symtab.c (find_function_start_sal): Never return SAL pointing
5564 before function start address, even if line info is missing.
5565
5566 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5567
5568 * NEWS: Mention tracepoints support.
5569
5570 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5571
5572 * tracepoint.c (trace_status_mi): Report disconnected tracing and
5573 circular trace buffer statuses.
5574
5575 2010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5576
5577 * config/djgpp/fnchange.lst: Fix typo in translations for
5578 symbol-without-target_section.exp and symbol-without-target_section.c.
5579
5580 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5581
5582 * breakpoint.c (condition_command): Pass condition expression to
5583 set_breakpoint_condition stripped from breakpoint number.
5584
5585 2010-04-09 Phil Muldoon <pmuldoon@redhat.com>
5586 Thiago Jung Bauermann <bauerman@br.ibm.com>
5587 Tom Tromey <tromey@redhat.com>
5588
5589 * breakpoint.c (condition_command): Simplify. Move condition
5590 setting code to ...
5591 (set_breakpoint_condition): ... here. New function.
5592 * breakpoint.h (set_breakpoint_condition): Declare.
5593 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
5594 (SUBDIR_PYTHON_SRCS): Likewise.
5595 (py-breakpoint.o): New rule.
5596 * python/py-breakpoint.c: New file.
5597 * python/python-internal.h (gdbpy_breakpoints)
5598 (gdbpy_initialize_breakpoints): Declare.
5599 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
5600
5601 2010-04-09 Pedro Alves <pedro@codesourcery.com>
5602
5603 * regformats/regdat.sh: Include server.h. Don't include
5604 regcache.h.
5605
5606 2010-04-08 Stan Shebs <stan@codesourcery.com>
5607 Pedro Alves <pedro@codesourcery.com>
5608
5609 * tracepoint.h (struct trace_status): New fields disconnected_tracing
5610 and circular_buffer.
5611 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
5612 * tracepoint.c (trace_status_command): Display target's status for
5613 disconnected tracing and circular buffer.
5614 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
5615 query for non-disconnected-tracing case, remove the stop_tracing
5616 call.
5617 (tfile_open): Clear disconnected and circular buffer status.
5618 (trace_save): Save disconnected and circular buffer status.
5619 (parse_trace_status): Parse disconnected and circular buffer status,
5620 also recognize disconnected as a stop reason.
5621 * remote.c (remote_set_disconnected_tracing): Only set
5622 QTDisconnected if the remote end supports disconnected tracing.
5623 Warn otherwise, if trying to enable disconnected tracing.
5624 * infcmd.c (detach_command): Update disconnect_tracing call.
5625 * cli/cli-cmds.c (quit_command): Ditto.
5626
5627 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5628
5629 * i387-tdep.c (i387_collect_xsave): Replace abort with
5630 internal_error.
5631
5632 2010-04-08 Stan Shebs <stan@codesourcery.com>
5633
5634 * breakpoint.c (default_collect_info): New function.
5635 (breakpoints_info): Call it.
5636 (maintenance_info_breakpoints): Ditto.
5637 (tracepoints_info): Ditto.
5638
5639 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5640
5641 * i387-tdep.c (i387_collect_xsave): Re-indent.
5642
5643 2010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5644
5645 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
5646 if HAVE_PTRACE_GETFPXREGS is defined.
5647 (i386_linux_read_description): Set have_ptrace_getfpxregs and
5648 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
5649
5650 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
5651 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
5652 if .reg-xfp section doesn't exist.
5653 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
5654
5655 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
5656
5657 * i386-tdep.c: Include "features/i386/i386-mmx.c".
5658 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
5659 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
5660 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
5661 (i386_gdbarch_init): Update comments.
5662 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
5663
5664 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
5665
5666 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
5667
5668 * features/Makefile (i386/i386-mmx-expedite): New.
5669 (i386/i386-mmx-linux-expedite): Likewise.
5670 ($(outdir)/i386/i386-mmx.dat): Likewise.
5671 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
5672
5673 * features/i386/i386-mmx-linux.c: New.
5674 * features/i386/i386-mmx-linux.xml: Likewise.
5675 * features/i386/i386-mmx.c: Likewise.
5676 * features/i386/i386-mmx.xml: Likewise.
5677 * regformats/i386/i386-mmx-linux.dat: Likewise.
5678 * regformats/i386/i386-mmx.dat: Likewise.
5679
5680 * features/Makefile (WHICH): Add i386/i386-mmx and
5681 i386/i386-mmx-linux.
5682
5683 2010-04-08 Doug Evans <dje@google.com>
5684
5685 * source.c (openp): Skip $cdir in PATH.
5686
5687 2010-04-08 Phil Muldoon <pmuldoon@redhat.com>
5688
5689 PR python/11417
5690 * python/py-lazy-string.c (stpy_convert_to_value): Check for
5691 a NULL address.
5692 (gdbpy_create_lazy_string_object): Allow strings with a NULL
5693 address and a zero length.
5694
5695 2010-04-08 Hui Zhu <teawater@gmail.com>
5696
5697 * i386-tdep.c (i386_process_record): Add support for insn
5698 rdtsc.
5699
5700 2010-04-07 Doug Evans <dje@google.com>
5701
5702 * python/python.c (source_python_script): Use ensure_python_env
5703 to prepare environment for script.
5704
5705 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5706
5707 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
5708 <sys/uio.h> and "i386-xstate.h".
5709 (PTRACE_GETREGSET): New.
5710 (PTRACE_SETREGSET): Likewise.
5711 (have_ptrace_getregset): Likewise.
5712 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
5713 registers.
5714 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
5715 registers.
5716 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
5717 (amd64_linux_store_inferior_registers): Likewise.
5718 (amd64_linux_read_description): Check and enable AVX target
5719 descriptions.
5720
5721 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
5722 and "features/i386/amd64-avx-linux.c".
5723 (amd64_linux_regset_sections): New.
5724 (amd64_linux_core_read_description): Check and enable AVX
5725 target description.
5726 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
5727 set_gdbarch_core_regset_sections.
5728 (_initialize_amd64_linux_tdep): Call
5729 initialize_tdesc_amd64_avx_linux.
5730
5731 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
5732 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
5733 (tdesc_amd64_avx_linux): New.
5734 (amd64_linux_update_xstateregset): Likewise.
5735
5736 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
5737 (amd64_ymm_names): New.
5738 (amd64_ymmh_names): Likewise.
5739 (amd64_register_name): Likewise.
5740 (amd64_supply_xstateregset): Likewise.
5741 (amd64_collect_xstateregset): Likewise.
5742 (amd64_supply_xsave): Likewise.
5743 (amd64_collect_xsave): Likewise.
5744 (AMD64_NUM_REGS): Removed.
5745 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
5746 %xmmN if AVX is available.
5747 (amd64_pseudo_register_name): Support pseudo YMM registers.
5748 (amd64_regset_from_core_section): Support .reg-xstate section.
5749 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
5750 and ymm0h_regnum. Call set_gdbarch_register_name.
5751 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
5752
5753 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
5754 AMD64_YMM15H_REGNUM.
5755 (AMD64_NUM_REGS): New.
5756 (amd64_supply_xsave): Likewise.
5757 (amd64_collect_xsave): Likewise.
5758 (amd64_register_name): Removed.
5759 (amd64_register_type): Likewise.
5760
5761 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5762
5763 * i387-tdep.c: Include "i386-xstate.h".
5764 (XSAVE_XSTATE_BV_ADDR): New.
5765 (xsave_avxh_offset): Likewise.
5766 (XSAVE_AVXH_ADDR): Likewise.
5767 (i387_supply_xsave): Likewise.
5768 (i387_collect_xsave): Likewise.
5769
5770 * i387-tdep.h (I387_NUM_YMM_REGS): New.
5771 (I387_YMM0H_REGNUM): Likewise.
5772 (I387_YMMENDH_REGNUM): Likewise.
5773 (i387_supply_xsave): Likewise.
5774 (i387_collect_xsave): Likewise.
5775
5776 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5777
5778 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
5779 <sys/uio.h> and "i386-xstate.h".
5780 (PTRACE_GETREGSET): New.
5781 (PTRACE_SETREGSET): Likewise.
5782 (fetch_xstateregs): Likewise.
5783 (store_xstateregs): Likewise.
5784 (GETXSTATEREGS_SUPPLIES): Likewise.
5785 (regmap): Include 8 upper YMM registers.
5786 (i386_linux_fetch_inferior_registers): Support XSAVE extended
5787 state.
5788 (i386_linux_store_inferior_registers): Likewise.
5789 (i386_linux_read_description): Check and enable AVX target
5790 descriptions.
5791
5792 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
5793 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
5794 (i386_linux_regset_sections): Add ".reg-xstate".
5795 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
5796 (i386_linux_core_read_xcr0): New.
5797 (i386_linux_core_read_description): Check and enable AVX target
5798 description.
5799 (i386_linux_init_abi): Set xsave_xcr0_offset.
5800 (_initialize_i386_linux_tdep): Call
5801 initialize_tdesc_i386_avx_linux.
5802
5803 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
5804 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
5805 (i386_linux_core_read_xcr0): New.
5806 (tdesc_i386_avx_linux): Likewise.
5807 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
5808
5809 * i386-tdep.c: Include "i386-xstate.h" and
5810 "features/i386/i386-avx.c".
5811 (i386_ymm_names): New.
5812 (i386_ymmh_names): Likewise.
5813 (i386_ymmh_regnum_p): Likewise.
5814 (i386_ymm_regnum_p): Likewise.
5815 (i386_xmm_regnum_p): Likewise.
5816 (i386_register_name): Likewise.
5817 (i386_ymm_type): Likewise.
5818 (i386_supply_xstateregset): Likewise.
5819 (i386_collect_xstateregset): Likewise.
5820 (i386_sse_regnum_p): Removed.
5821 (i386_pseudo_register_name): Support pseudo YMM registers.
5822 (i386_pseudo_register_type): Likewise.
5823 (i386_pseudo_register_read): Likewise.
5824 (i386_pseudo_register_write): Likewise.
5825 (i386_dbx_reg_to_regnum): Return %ymmN register number for
5826 %xmmN if AVX is available.
5827 (i386_regset_from_core_section): Support .reg-xstate section.
5828 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
5829 (i386_process_record): Replace i386_sse_regnum_p with
5830 i386_xmm_regnum_p.
5831 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
5832 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
5833 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
5834 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
5835 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
5836 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
5837 Set ymm0_regnum.
5838 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
5839
5840 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
5841 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
5842 i386_ymm_type.
5843 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
5844 (I386_AVX_NUM_REGS): New.
5845 (i386_xmm_regnum_p): Likewise.
5846 (i386_ymm_regnum_p): Likewise.
5847 (i386_ymmh_regnum_p): Likewise.
5848
5849 * common/i386-xstate.h: New.
5850
5851 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5852
5853 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
5854
5855 * features/Makefile (WHICH): Add i386/i386-avx,
5856 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
5857 (i386/i386-avx-expedite): New.
5858 (i386/i386-avx-linux-expedite): Likewise.
5859 (i386/x86-64-avx-expedite):Likewise.
5860 (i386/x86-64-avx-linux-expedite): Likewise.
5861 ($(outdir)/i386/i386-avx.dat): New dependency.
5862 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
5863 ($(outdir)/i386/x86-avx-64.dat): Likewise.
5864 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
5865
5866 * features/i386/32bit-avx.xml: New.
5867 * features/i386/64bit-avx.xml: Likewise.
5868 * features/i386/i386-avx-linux.c: Likewise.
5869 * features/i386/i386-avx-linux.xml: Likewise.
5870 * features/i386/i386-avx.c: Likewise.
5871 * features/i386/i386-avx.xml: Likewise.
5872 * features/i386/x86-64-avx-linux.c: Likewise.
5873 * features/i386/x86-64-avx-linux.xml: Likewise.
5874 * features/i386/x86-64-avx.c: Likewise.
5875 * features/i386/x86-64-avx.xml: Likewise.
5876 * regformats/i386/i386-avx-linux.dat: Likewise.
5877 * regformats/i386/i386-avx.dat: Likewise.
5878 * regformats/i386/x86-64-avx-linux.dat: Likewise.
5879 * regformats/i386/x86-64-avx.dat: Likewise.
5880
5881 2010-04-07 Doug Evans <dje@google.com>
5882
5883 * top.c (source_file_name): Make const char *.
5884 * top.h (source_file_name): Update.
5885 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
5886 const char *.
5887 (script_from_file): Change `file' arg to const char *.
5888 * cli/cli-script.h (script_from_file): Update.
5889
5890 2010-04-06 Doug Evans <dje@google.com>
5891
5892 * cli/cli-cmds.c (source_command): Run cleanups.
5893
5894 2010-04-06 Stan Shebs <stan@codesourcery.com>
5895
5896 * defs.h (char_ptr): Move typedef here from...
5897 * ada-lang.c (char_ptr): Remove.
5898 * charset.c (char_ptr): Remove.
5899 * tracepoint.h (struct uploaded_string): Remove.
5900 (struct uploaded_tp): Use vectors for string arrays.
5901 * tracepoint.c (trace_save): Use vectors of actions.
5902 (parse_tracepoint_definition): Ditto.
5903 (get_uploaded_tp): Clear vectors.
5904 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
5905 (next_cmd): Change to an int.
5906 (read_next_cmd): Use vector of command strings.
5907
5908 2010-04-06 Doug Evans <dje@google.com>
5909
5910 * top.h (source_script, cd_command): Delete.
5911 * main.c: #include "cli/cli-cmds.h"
5912
5913 2010-04-06 Kevin Buettner <kevinb@redhat.com>
5914
5915 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
5916 type in bytes, not bits.
5917
5918 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5919
5920 * stabsread.c (define_symbol): Add support for char
5921 and string constants.
5922
5923 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5924
5925 Remove remaining "%ll" uses.
5926 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
5927 hex_string call.
5928 * rs6000-nat.c (rs6000_ptrace64): Idem.
5929 * solib-pa64.c (pa64_current_sos): Idem.
5930 * solib-spu.c (spu_current_sos): Idem.
5931 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
5932 plongest call.
5933 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
5934 phex (VAR, 8) call.
5935 * sh64-tdep.c (sh64_show_media_regs): Idem.
5936
5937 2010-04-05 Stan Shebs <stan@codesourcery.com>
5938
5939 * tracepoint.c: Include gdbcore.h.
5940 (tfile_xfer_partial): Return partial results, also try reading
5941 from executable.
5942 (tfile_has_all_memory): New function.
5943 (init_tfile_ops): Use it.
5944
5945 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
5946
5947 PR gdb/10736:
5948 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
5949 the changes in data-directory.
5950 (init_sysinfo): Reload the syscall XML file if the data-directory
5951 has changed.
5952
5953 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5954
5955 Code cleanup.
5956 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
5957
5958 2010-04-04 Stan Shebs <stan@codesourcery.com>
5959 Nathan Sidwell <nathan@codesourcery.com>
5960
5961 * breakpoint.c (breakpoint_1): Add filter argument, return number of
5962 breakpoints printed.
5963 (is_hardware_watchpoint): Make argument const.
5964 (is_watchpoint): Ditto.
5965 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
5966 use it everywhere.
5967 (breakpoints_info): Pass NULL to breakpoint_1.
5968 (maintenance_info_breakpoints): Ditto.
5969 (watchpoints_info): New function.
5970 (tracepoints_info): Use breakpoint_1 filter.
5971 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
5972 (_initialize_breakpoint): Make "info watchpoints" its own command.
5973 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
5974 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
5975
5976 2010-04-04 Stan Shebs <stan@codesourcery.com>
5977
5978 * tracepoint.c (tfile_fetch_registers): Add fallback case.
5979
5980 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5981
5982 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
5983 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
5984
5985 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5986
5987 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
5988 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
5989
5990 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5991
5992 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
5993 code form.
5994
5995 2010-04-02 Hui Zhu <teawater@gmail.com>
5996
5997 * i386-tdep.c (OT_DQUAD): New enum.
5998 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
5999 SSE3, SSSE3 and SSE4.
6000
6001 2010-04-02 Hui Zhu <teawater@gmail.com>
6002
6003 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
6004 "*addr = 0".
6005
6006 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6007
6008 * tracepoint.c (trace_dump_actions): New, factored out from
6009 trace_dump_command, and adjusted to recurse into while-stepping's
6010 action list.
6011 (trace_dump_command): Use it.
6012
6013 2010-04-02 Pedro Alves <pedro@codesourcery.com>
6014
6015 * breakpoint.h (struct counted_command_line): Moved definition to
6016 breakpoint.c, and forward declare.
6017 (breakpoint_commands): Declare.
6018 * breakpoint.c (struct counted_command_line): Moved here.
6019 (breakpoint_commands): New.
6020 * tracepoint.c (encode_actions): Use breakpoint_commands.
6021 * remote.c (remote_download_tracepoint): Ditto.
6022
6023 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6024
6025 * remote.c (remote_parse_stop_reply): Use hex_string instead
6026 of phex_nz for error.
6027
6028 2010-04-01 Stan Shebs <stan@codesourcery.com>
6029 Nathan Sidwell <nathan@codesourcery.com>
6030
6031 * tracepoint.h (enum actionline_type): Remove.
6032 (validate_actionline): Change return to void.
6033 * tracepoint.c (report_agent_reqs_errors): New function.
6034 (validate_actionline): Call it, change return to void, report errors
6035 more consistently.
6036 (collect_symbol): Call report_agent_reqs_errors.
6037 (encode_actions_1): Ditto.
6038 (encode_actions): Don't expect a result from validate_actionline.
6039
6040 2010-04-01 Stan Shebs <stan@codesourcery.com>
6041
6042 * tracepoint.c (trace_start_command): Confirm if trace is running.
6043 (trace_stop_command): Error if trace not running.
6044
6045 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
6046
6047 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
6048 (AMD64_NUM_LOWER_BYTE_REGS): New.
6049 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
6050 (amd64_pseudo_register_write): Likewise.
6051 (amd64_init_abi): Set num_byte_regs to 20.
6052
6053 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6054
6055 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
6056 (prev_breakpoint_count): New.
6057 (set_breakpoint_count): Adjust.
6058 (rbreak_start_breakpoint_count): New.
6059 (start_rbreak_breakpoints): Adjust.
6060 (end_rbreak_breakpoints): Adjust.
6061 (struct commands_info) <arg>: New field.
6062 (do_map_commands_command): Tweak output to include breakpoint spec
6063 range.
6064 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
6065 ARG was empty on entry. Set INFO's arg.
6066 (create_breakpoint): Adjust.
6067
6068 * NEWS: Clarify `commands' changes.
6069
6070 2010-04-01 Pedro Alves <pedro@codesourcery.com>
6071
6072 * tracepoint.c: Include stack.h.
6073 (struct add_local_symbols_data): New.
6074 (do_collect_symbol): New.
6075 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
6076 iterate_over_block_local_vars.
6077 * stack.c (print_block_frame_locals): Rewrite as ...
6078 (iterate_over_block_locals): ... this. Take a callback function
6079 pointer and generic data pointer, and call that instead of
6080 print_variable_and_value.
6081 (struct print_variable_and_value_data): New.
6082 (do_print_variable_and_value): New.
6083 (iterate_over_block_local_vars): New, abstracted out from
6084 print_frame_local_vars.
6085 (print_frame_local_vars): Rewrite using
6086 iterate_over_block_local_vars.
6087 (iterate_over_block_arg_vars): New, abstracted out from
6088 print_frame_arg_vars.
6089 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
6090 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
6091 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
6092
6093 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
6094
6095 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
6096 instructions. Use the PC+4 if the base of the TBB or TBH is the
6097 PC register.
6098
6099 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
6100
6101 Fix crash on reading wrong function declaration DWARF.
6102 * dwarf2read.c (read_subroutine_type): New variable void_type.
6103 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
6104 more close to their use.
6105
6106 2010-03-31 Stan Shebs <stan@codesourcery.com>
6107
6108 * breakpoint.c (tracepoint_save_command): Include variables,
6109 conditionals, tracepoint types, and default-collect.
6110 * tracepoint.c (save_trace_state_variables): New function.
6111 * tracepoint.h (save_trace_state_variables): Declare it.
6112
6113 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
6114
6115 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
6116
6117 2010-03-30 Keith Seitz <keiths@redhat.com>
6118
6119 * c-typeprint.c (c_type_print_args): Don't print "void"
6120 for java, regardless of whether it is TYPE_PROTOTYPED.
6121 Use the passed-in language instead of current_language.
6122 (c_type_print_varspec_suffix): Use current_language instead
6123 of assuming language_c.
6124 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
6125 any return type specifier from the physname.
6126
6127 2010-03-30 Pedro Alves <pedro@codesourcery.com>
6128
6129 * tui/tui-interp.c (tui_is_toplevel): New.
6130 (tui_init): Set it.
6131 (tui_allowed_p): New.
6132 * tui/tui.c (tui_enable): Check if the TUI is allowed before
6133 enabling it.
6134 * tui/tui.h (tui_allowed_p): Declare.
6135
6136 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
6137
6138 * serial.h: Include winsock2.h before windows.h.
6139
6140 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
6141
6142 * NEWS: Mention xmlRegisters= in qSupported packet.
6143
6144 * i386-tdep.c: Include "remote.h".
6145 (_initialize_i386_tdep): Call register_remote_support_xml.
6146
6147 * remote.c (remote_support_xml): New.
6148 (register_remote_support_xml): Likewise.
6149 (remote_query_supported_append): Likewise.
6150 (remote_query_supported): Support remote_support_xml.
6151
6152 * remote.h (register_remote_support_xml): New.
6153
6154 2010-03-29 Stan Shebs <stan@codesourcery.com>
6155
6156 * tracepoint.c (trace_find_line_command): Remove dead code.
6157
6158 * tracepoint.h (struct uploaded_string): New struct.
6159 (struct uploaded_tp): New fields for source strings.
6160 * breakpoint.c (this_utp, next_cmd): New globals.
6161 (read_uploaded_action): New function.
6162 (create_tracepoint_from_upload): Fill in more parts
6163 of a tracepoint.
6164 * tracepoint.c (encode_source_string): New function.
6165 (trace_save): Write out source strings, fix error checks.
6166 (parse_tracepoint_definition): Add source string parsing.
6167 * remote.c (PACKET_TracepointSource): New packet type.
6168 (remote_download_command_source): New function.
6169 (remote_download_tracepoint): Download source pieces also.
6170 (_initialize_remote): Add packet config command.
6171
6172 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
6173 expression handler.
6174
6175 * tracepoint.c (start_tracing): Check tracepoints before sending
6176 commands to target, don't start if all tracepoints disabled.
6177
6178 2010-03-28 Pedro Alves <pedro@codesourcery.com>
6179
6180 * cli/cli-script.c (process_next_line): Handle 'stepping'.
6181
6182 2010-03-26 Stan Shebs <stan@codesourcery.com>
6183
6184 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
6185
6186 2010-03-26 Tom Tromey <tromey@redhat.com>
6187
6188 * breakpoint.c (commands_command_1): Duplicate 'arg'.
6189
6190 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6191
6192 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
6193 (skip_prologue_sal): Remove local definition.
6194 (resolve_sal_pc): Remove now unnecessary code.
6195 * linespec.c (minsym_found): Call skip_prologue_sal.
6196 * symtab.c (find_function_start_pc): Remove.
6197 (find_function_start_sal): Extract prologue skipping into ...
6198 (skip_prologue_sal): ... this new function. Handle code both
6199 with and without debug info. Respect SAL's explicit_pc and
6200 explicit_line flags. Inline old find_function_start_pc.
6201 * symtab.h (find_function_start_pc): Remove.
6202 (skip_prologue_sal): Add prototype.
6203
6204 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6205
6206 * dwarf2read.c (read_func_scope): Also scan specification DIEs
6207 for DW_TAG_imported_module children.
6208
6209 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6210
6211 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
6212 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
6213 * completer.c (add_struct_fields): Fix inverted logic.
6214
6215 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
6216
6217 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
6218
6219 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6220
6221 * tracepoint.c (current_trace_status): Don't make sure error_desc
6222 is non-NULL here.
6223 (parse_trace_status): Release a previous error_desc string, and
6224 set it to NULL by default. If stop reason is tracepoint_error,
6225 make sure error_desc is not left NULL.
6226
6227 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6228
6229 * tracepoint.c (trace_save): Remove X from tracepoint error
6230 description.
6231
6232 2010-03-26 Pedro Alves <pedro@codesourcery.com>
6233
6234 * tracepoint.c (parse_trace_status): Don't allow plain strings in
6235 the terror description. Don't expect an X prefix.
6236
6237 2010-03-25 Stan Shebs <stan@codesourcery.com>
6238
6239 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
6240 (struct trace_status): New field error_desc.
6241 * tracepoint.c (stop_reason_names): Add terror.
6242 (current_trace_status): Ensure non-NULL error description.
6243 (trace_status_command): Add error report.
6244 (trace_status_mi): Ditto.
6245 (trace_save): Add special case for error description.
6246 (parse_trace_status): Add case for errors.
6247
6248 2010-03-25 Keith Seitz <keiths@redhat.com>
6249
6250 * dwarf2read.c (read_subroutine_type): If the compilation unit
6251 language is Java, mark any formal parameter named "this" as
6252 artificial (GCC/43521).
6253 (dwarf2_name): Add special handling for Java constructors.
6254
6255 2010-03-25 Tom Tromey <tromey@redhat.com>
6256
6257 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
6258 * infrun.c (handle_inferior_event): Change initialization of
6259 stop_stack_dummy.
6260 (handle_inferior_event): Change assignment to stop_stack_dummy.
6261 (normal_stop): Update use of stop_stack_dummy.
6262 (struct inferior_status) <stop_stack_dummy>: Change type.
6263 * inferior.h (stop_stack_dummy): Update.
6264 * infcmd.c (stop_stack_dummy): Change type.
6265 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
6266 function.
6267 (call_function_by_hand): Call set_std_terminate_breakpoint.
6268 Rewrite std::terminate handling.
6269 * breakpoint.h (enum bptype) <bp_std_terminate,
6270 bp_std_terminate_master>: New.
6271 (enum stop_stack_kind): New.
6272 (struct bpstat_what) <call_dummy>: Change type.
6273 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
6274 Declare.
6275 * breakpoint.c (create_std_terminate_master_breakpoint): New
6276 function.
6277 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
6278 Call create_std_terminate_master_breakpoint.
6279 (print_it_typical): Handle new breakpoint kinds.
6280 (bpstat_stop_status): Handle bp_std_terminate_master.
6281 (bpstat_what): Correctly set call_dummy field. Handle
6282 bp_std_terminate_master and bp_std_terminate.
6283 (print_one_breakpoint_location): Update.
6284 (allocate_bp_location): Update.
6285 (set_std_terminate_breakpoint): New function.
6286 (delete_std_terminate_breakpoint): Likewise.
6287 (create_thread_event_breakpoint): Update.
6288 (delete_command): Update.
6289 (breakpoint_re_set_one): Update.
6290 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
6291
6292 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6293
6294 * symfile.c (build_section_addr_info_from_bfd): New.
6295 (build_section_addr_info_from_objfile): Base it on
6296 build_section_addr_info_from_bfd.
6297 (addrs_section_compar, addrs_section_sort): New.
6298 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
6299 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
6300 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
6301
6302 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
6303
6304 * elfread.c (find_separate_debug_file_by_buildid):
6305 Remove unused local variable.
6306
6307 2010-03-24 Tom Tromey <tromey@redhat.com>
6308
6309 PR breakpoints/9352:
6310 * NEWS: Mention changes to `commands' and `rbreak'.
6311 * symtab.c (do_end_rbreak_breakpoints): New function.
6312 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
6313 end_rbreak_breakpoints.
6314 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
6315 (set_breakpoint_count): Likewise. Clear last_was_multi.
6316 (multi_start, multi_end, last_was_multi): New globals.
6317 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
6318 functions.
6319 (struct commands_info): New
6320 (do_map_commands_command): New function.
6321 (commands_command_1): New function.
6322 (commands_command): Use it.
6323 (commands_from_control_command): Likewise.
6324 (do_delete_breakpoint): New function.
6325 (delete_command): Use it.
6326 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
6327 (do_map_disable_breakpoint): New function.
6328 (disable_command): Use it.
6329 (do_map_enable_breakpoint): New function.
6330 (enable_command): Use it.
6331 (enable_once_breakpoint): Add argument.
6332 (enable_once_command): Update.
6333 (enable_delete_breakpoint): Add argument.
6334 (enable_delete_command): Update.
6335 (break_command_really): Set last_was_multi when needed.
6336 (check_tracepoint_command): Fix formatting.
6337 (validate_commands_for_breakpoint): New function.
6338 (breakpoint_set_commands): Use it.
6339 (tracepoint_save_command): Update.
6340 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
6341 Declare.
6342
6343 2010-03-24 Tom Tromey <tromey@redhat.com>
6344
6345 * breakpoint.h (struct counted_command_line): New struct.
6346 (struct breakpoint) <commands>: Change type.
6347 (struct bpstats) <commands>: Change type.
6348 <commands_left>: New field.
6349 * breakpoint.c (alloc_counted_command_line): New function.
6350 (incref_counted_command_line): Likewise.
6351 (decref_counted_command_line): Likewise.
6352 (do_cleanup_counted_command_line): Likewise.
6353 (make_cleanup_decref_counted_command_line): Likewise.
6354 (breakpoint_set_commands): Use decref_counted_command_line and
6355 alloc_counted_command_line.
6356 (commands_command): Don't error if breakpoint commands are
6357 executing.
6358 (commands_from_control_command): Likewise.
6359 (bpstat_free): Update.
6360 (bpstat_copy): Likewise.
6361 (bpstat_clear_actions): Likewise.
6362 (bpstat_do_actions_1): Likewise.
6363 (bpstat_stop_status): Likewise.
6364 (print_one_breakpoint_location): Likewise.
6365 (delete_breakpoint): Likewise.
6366 (bpstat_alloc): Initialize new field.
6367 (tracepoint_save_command): Update.
6368 * tracepoint.c (encode_actions): Update.
6369 (trace_dump_command): Update.
6370
6371 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6372
6373 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
6374 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
6375 (read_structure_type): For RealView, set TYPE_STUB on structures with
6376 no byte size and no children.
6377 (read_subroutine_type): Mark functions as prototyped by default.
6378 * symtab.c (producer_is_realview): New function.
6379 * symtab.h (expand_line_sal): Fix declaration formatting.
6380 (producer_is_realview): Declare.
6381
6382 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
6383
6384 * arm-tdep.c (skip_prologue_function): New function.
6385 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
6386 (thumb_analyze_prologue): Document return value. Recognize more
6387 Thumb instructions, skippable calls, and some Thumb-2 instructions.
6388 Add debug output.
6389 (arm_skip_prologue): Remove call dummy check. Check the prologue
6390 for non-GNU compilers.
6391 (arm_instruction_changes_pc): New function.
6392 (arm_analyze_prologue): New function, broken out from
6393 arm_scan_prologue. Recognize more ARM instructions and skippable
6394 calls. Update comments. Handle NULL cache. Return the address
6395 of the first unrecognized instruction. Do not skip past other
6396 instructions which change control flow. Add debug output.
6397 (arm_scan_prologue): Use arm_analyze_prologue.
6398 (ARM_PC_32): Delete.
6399 (shifted_reg_val): Simplify ARM_PC_32 check.
6400
6401 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6402
6403 * tracepoint.c (tvariables_info_1): Actually compute
6404 the number of rows in the result.
6405
6406 2010-03-24 Pedro Alves <pedro@codesourcery.com>
6407
6408 * remote.c (crc32): Constify `buf' parameter.
6409 (remote_verify_memory): New, abstracted out from...
6410 (compare_sections_command): ... this. Remove hardcoded target
6411 checks.
6412 (init_remote_ops): Install remote_verify_memory.
6413 * target.c (target_verify_memory): New.
6414 * target.h (struct target_ops) <to_verify_memory>: New field.
6415 (target_verify_memory): Declare.
6416
6417 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6418
6419 Implement -trace-save.
6420
6421 * mi-cmds.h (mi_cmds_trace_save): Declare.
6422 * mi-cmds.c (mi_cmds): Register -trace-save.
6423 * mi/mi-main.c (mi_cmd_trace_save): New.
6424 * remote.c (remote_save_trace_data): Take const parameter.
6425 * target.h (struct target_ops::to_save_trace_data): Take
6426 const parameter.
6427 * target.c (update_current_target): Adjust to the above.
6428 * tracepoint.c (trave_save): New, extracted from
6429 (trace_save_command): ...this.
6430 (tfile_trace_find): Remove message that is unnecessary now
6431 that 'tfind' reports found frame.
6432 * tracepoint.h (trace_save): Declare.
6433
6434 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6435
6436 Implement -trace-find.
6437
6438 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
6439 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
6440 * mi/mi-main.c (mi_cmd_trace_find): New.
6441 * target.h (struct target_ops): Document to_trace_find.
6442 * tracepoint.h (tfind_1): Declare.
6443 * tracepoint.c (finish_tfind_command): Rename to...
6444 (tfind_1): ...this.
6445 * remote.c (remote_trace_find): Return -1 if target say
6446 there's no frame. Improve error diagnostics.
6447
6448 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6449
6450 -trace-define-variable and -trace-list-variables.
6451
6452 * tracepoint.c (create_trace_state_variable): Make
6453 private copy of name, as opposed to assuming the
6454 pointer lives forever.
6455 (tvariables_info_1): New.
6456 (tvariables_info): Use the above.
6457 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
6458 Declare.
6459 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
6460 and -trace-list-variables.
6461 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
6462 (mi_cmd_trace_list_variables): New.
6463 * mi/mi-main.c (mi_cmd_trace_define_variable)
6464 (mi_cmd_trace_list_variables): New.
6465
6466 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6467
6468 Implement -break-passcount.
6469
6470 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
6471 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
6472 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
6473
6474 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6475
6476 -trace-start/-trace-end/-trace-status.
6477
6478 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
6479 and -trace-stop.
6480 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
6481 (mi_cmd_trace_stop): Declare.
6482 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
6483 (mi_cmd_trace_stop): New.
6484 * tracepoint.c (start_tracing): New, extracted from...
6485 (trace_start_command): ...this.
6486 (trace_status_mi): New.
6487 * tracepoint.h (struct trace_status): Document
6488 stopping_tracepoint.
6489 (start_tracing, stop_tracing, trace_status_mi): Declare.
6490
6491 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6492
6493 Implement creating tracepoints with -break-insert.
6494
6495 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
6496 to mean that tracepoint should be created.
6497
6498 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6499
6500 * breakpoint.c (check_no_tracepoint_commands): Use
6501 current spelling of 'teval'.
6502
6503 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
6504
6505 Unify actions and commands
6506
6507 * defs.h (read_command_lines, read_command_lines_1): New
6508 parameters validator and closure.
6509 * tracepoint.h (struct action_line): Remove.
6510 * breakpoint.h (struct breakpoint): Remove the 'actions'
6511 field.
6512 * defs.h (enum command_control_type): New value
6513 while_stepping_control.
6514 (struct command_line): Add comments.
6515 * breakpoint.c (breakoint_is_tracepoint): New.
6516 (breakpoint_set_commands): For tracepoints,
6517 verify the commands are permissible.
6518 (check_tracepoint_commands): New.
6519 (commands_command): Require that each new line is validated using
6520 check_tracepoint_command, if we set commands for a tracepoint.
6521 (create_tracepoint_from_upload): Likewise.
6522 (print_one_breakpoint_location): Remove the code to print
6523 actions specifically.
6524 (tracepoint_save_command): Relay to print_command_lines.
6525 * cli/cli-script.c (process_next_line): New parameters validator
6526 and closure. Handle 'while-stepping'. Call validator if not null.
6527 (read_command_lines, read_command_lines1): Likewise.
6528 (recurse_read_control_structure): New parameters validator and
6529 closure. Handle while_stepping_control.
6530 (print_command_lines): Handle while-stepping.
6531 (get_command_line, define_command, document_command): Adjust.
6532 * remote.c (remote_download_tracepoint): Adjust.
6533 * tracepoint.c (make_cleanup_free_actions, read_actions)
6534 (free_actions, do_free_actions_cleanup): Remove.
6535 (trace_actions_command): Use read_command_lines.
6536 (validate_actionline): Use error in one place.
6537 (encode_actions_1): New, extracted from...
6538 (encode_actions): ...this. Also use cleanups for exception
6539 safety.
6540 (trace_dump_command): Adjust.
6541 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
6542 it's tracepoint.
6543
6544 2010-03-23 Mike Frysinger <vapier@gentoo.org>
6545
6546 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
6547
6548 2010-03-22 Stan Shebs <stan@codesourcery.com>
6549
6550 * value.c (value_static_field): Be lazy about the field's value.
6551
6552 2010-03-22 Reid Kleckner <reid@kleckner.net>
6553
6554 PR gdb/11094
6555 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
6556 bp_jit_event.
6557 (disable_breakpoints_in_shlibs): Likewise.
6558
6559 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
6560
6561 * dwarf2read.c (partial_die_parent_scope): Work around buggy
6562 GCC 4.1 debug info generation (GCC PR c++/28460).
6563 (determine_prefix): Likewise.
6564
6565 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
6566
6567 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
6568 get_current_arch.
6569 * tui/tui-layout.c (extract_display_start_addr): Likewise.
6570
6571 2010-03-19 Stan Shebs <stan@codesourcery.com>
6572
6573 * ax-gdb.c (gen_fetch): Handle bool.
6574 (gen_usual_unary): Ditto.
6575 (gen_cast): Ditto.
6576 (gen_equal): New function.
6577 (gen_less): New function.
6578 (gen_expr_binop_rest): Call them, also return integer type from
6579 logical operations.
6580 (gen_expr): Ditto.
6581
6582 2010-03-19 Tom Tromey <tromey@redhat.com>
6583
6584 * jv-lang.c (jv_dynamics_objfile_data_key)
6585 (jv_type_objfile_data_key): New globals.
6586 (class_symtab): Move earlier.
6587 (jv_per_objfile_free): New function.
6588 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
6589 parameter.
6590 Remove ancient #if 1.
6591 (add_class_symbol): Remove redundant declaration.
6592 (java_lookup_class): Use alloc_type, not alloc_type_arch.
6593 (java_link_class_type): Mark as static. Update.
6594 (jv_clear_object_type): New function.
6595 (set_java_object_type): Likewise.
6596 (get_java_object_type): Use set_java_object_type.
6597 (is_object_type): Likewise.
6598 (_initialize_java_language): Register new objfile keys.
6599 (get_java_class_symtab): Add 'gdbarch' parameter.
6600 (add_class_symtab_symbol): Update.
6601 (type_from_class): Update.
6602
6603 2010-03-19 Stan Shebs <stan@codesourcery.com>
6604
6605 * ax-general.c (ax_const_l): Fix a sizing bug.
6606
6607 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6608
6609 GDB 7.1 released.
6610
6611 2010-03-18 Stan Shebs <stan@codesourcery.com>
6612 Pedro Alves <pedro@codesourcery.com>
6613
6614 * target.h (struct target_ops): New method
6615 to_set_circular_trace_buffer.
6616 (target_set_circular_trace_buffer): New macro.
6617 * target.c (update_current_target): Add
6618 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
6619 default behavior.
6620 * remote.c (remote_set_circular_trace_buffer): New function.
6621 (init_remote_ops): Add it to vector.
6622 * tracepoint.h (struct trace_status): New field traceframes_created,
6623 change buffer_size and buffer_free to int.
6624 * tracepoint.c (circular_trace_buffer): New global.
6625 (start_tracing): Send values of disconnected tracing and circular
6626 trace buffer settings.
6627 (set_circular_trace_buffer): New function.
6628 (parse_trace_state): Handle total space and frames created.
6629 (trace_status_command): Display total space and total frames
6630 created.
6631 (trace_save): Write out new status values.
6632 (parse_trace_status): Set traceframe_count, traceframes_created,
6633 buffer_free and buffer_size to -1 by default.
6634 (_initialize_tracepoint): New setshow for circular-trace-buffer.
6635 * NEWS: Mention the circular trace buffer option.
6636
6637 2010-03-18 Tom Tromey <tromey@redhat.com>
6638
6639 * infcmd.c (finish_command_continuation): Wrap print_return_value
6640 in TRY_CATCH.
6641
6642 2010-03-18 Joel Brobecker <brobecker@adacore.com>
6643
6644 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
6645 DIE has a name before creating the associated partial symbol.
6646 (read_func_scope): Emit a complaint if the subprogram does not
6647 have a name or when we can't extract the subprogram PC bounds.
6648
6649 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6650
6651 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
6652 instead of selected frame architecture.
6653
6654 2010-03-18 Pedro Alves <pedro@codesourcery.com>
6655
6656 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
6657 a valid selected thread, and that it is not running.
6658 (advance_command): Ditto.
6659 (finish_command): Ditto.
6660
6661 2010-03-17 Stan Shebs <stan@codesourcery.com>
6662
6663 * ax-gdb.c (require_rvalue): Disallow non-scalars.
6664
6665 * infcall.c: Include tracepoint.h.
6666 (call_function_by_hand): Disallow calls in tfind mode.
6667 * infcmd.c: Include tracepoint.h.
6668 (ensure_not_tfind_mode): New function.
6669 (continue_1): Call it.
6670 (step_1) Ditto.
6671 (jump_command): Ditto.
6672 (signal_command): Ditto.
6673 (advance_command): Ditto.
6674 (until_command): Ditto.
6675 (finish_command): Ditto.
6676 * tracepoint.h (disconnect_or_stop_tracing): Declare.
6677
6678 * ax-gdb.h (struct axs_value): New field optimized_out.
6679 (gen_trace_for_var): Add gdbarch argument.
6680 * ax-gdb.c (gen_trace_static_fields): New function.
6681 (gen_traced_pop): Call it, add gdbarch argument.
6682 (gen_trace_for_expr): Update call to it.
6683 (gen_trace_for_var): Ditto, and report optimized-out variables.
6684 (gen_struct_ref_recursive): Check for optimized-out value.
6685 (gen_struct_elt_for_reference): Ditto.
6686 (gen_static_field): Pass gdbarch instead of expression, assume
6687 optimization if field not found.
6688 (gen_var_ref): Set the optimized_out flag.
6689 (gen_expr): Error on optimized-out variable.
6690 * tracepoint.c (collect_symbol): Handle struct-valued vars as
6691 expressions, skip optimized-out variables with computed locations.
6692 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
6693 erroring out if location expression missing.
6694 (loclist_tracepoint_var_ref): Don't error out here.
6695
6696 2010-03-17 Tom Tromey <tromey@redhat.com>
6697
6698 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
6699 DWARF data is available.
6700
6701 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
6702
6703 * symfile.c (generic_load): Reset breakpoints after loading.
6704
6705 2010-03-17 Tom Tromey <tromey@redhat.com>
6706
6707 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
6708
6709 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6710
6711 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
6712 create_breakpoint call, adjust the parameters.
6713
6714 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6715 Chandru <chandru@in.ibm.com>
6716
6717 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
6718 * valarith.c (value_subscripted_rvalue): Suppress error if
6719 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
6720
6721 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
6722
6723 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
6724
6725 2010-03-16 Joel Brobecker <brobecker@adacore.com>
6726
6727 * ada-tasks.c (task_command_1): Check that the task ptid is valid
6728 before doing the associated thread switch.
6729
6730 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
6731
6732 * MAINTAINERS: Update my email address.
6733
6734 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
6735
6736 Simplify MI breakpoint setting.
6737
6738 * breakpoint.c (break_command_really): Make nonstatic and
6739 rename to...
6740 (create_breakpoint): ...this. Rename prior function by this name
6741 to...
6742 (create_breakpoint_sal): ...this.
6743 (create_breakpoints): Rename to...
6744 (create_breakpoints_sal): ...this.
6745 (set_breakpoint): Remove.
6746 * breakpoint.h: Adjust to above changes.
6747 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
6748
6749 2010-03-15 Stan Shebs <stan@codesourcery.com>
6750
6751 * ax-gdb.c: Include cp-support.h.
6752 (find_field): Remove.
6753 (gen_primitive_field): New function.
6754 (gen_struct_ref_recursive): New function.
6755 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
6756 of find_field.
6757 (gen_static_field): New function.
6758 (gen_struct_elt_for_reference): New.
6759 (gen_namespace_elt): New.
6760 (gen_maybe_namespace_elt): New.
6761 (gen_aggregate_elt_ref): New.
6762 (gen_expr): Add OP_SCOPE, display opcode name in error message.
6763
6764 2010-03-15 Tom Tromey <tromey@redhat.com>
6765
6766 * dwarf2read.c (die_needs_namespace): Also return 0 for
6767 DW_TAG_subprogram.
6768
6769 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
6770
6771 PR c++/7936:
6772 * cp-support.h: Added char *declaration element to using_direct
6773 data struct.
6774 (cp_add_using): Added char *declaration argument.
6775 (cp_add_using_directive): Ditto.
6776 (cp_lookup_symbol_imports): made extern.
6777 * cp-namespace.c: Updated with the above changes.
6778 * dwarf2read.c (read_import_statement): Ditto.
6779 (read_namespace): Ditto.
6780 (read_import_statement): Support import declarations.
6781 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
6782 declarations.
6783 Added support for 'declaration_only' search.
6784 (cp_lookup_symbol_namespace): Attempt to search for the name as
6785 is before consideration of imports.
6786 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
6787 search at every block level search.
6788 Now takes language argument.
6789 (lookup_symbol_aux): Updated.
6790
6791 2010-03-15 Tom Tromey <tromey@redhat.com>
6792
6793 * c-exp.y (name_not_typename): Add 'operator' clause.
6794
6795 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
6796
6797 * configure.ac: Exit if ${gdb_target_obs}" is not set.
6798 * configure: Regenerate.
6799
6800 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6801
6802 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
6803 and ".sdynbss". Update the comment.
6804
6805 2010-03-15 Jie Zhang <jie@codesourcery.com>
6806
6807 * MAINTAINERS: Update my email address.
6808
6809 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6810
6811 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
6812
6813 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6814
6815 * charset.c [USE_WIN32API]: Include <windows.h>.
6816 (_initialize_charset): Correct type of w32_host_default_charset.
6817
6818 2010-03-14 Pedro Alves <pedro@codesourcery.com>
6819
6820 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
6821
6822 2010-03-12 Tom Tromey <tromey@redhat.com>
6823
6824 PR c++/9708:
6825 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
6826 in a lexical block does not need a namespace.
6827 (new_symbol) <DW_TAG_variable>: Put extern variables on
6828 list_in_scope in all cases.
6829
6830 2010-03-12 Stan Shebs <stan@codesourcery.com>
6831
6832 * ax-gdb.c (gen_expr): Add shift expressions.
6833 (gen_expr_binop_rest): Ditto.
6834
6835 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
6836
6837 * buildsym.c (finish_block): Reset using_directives pointer
6838 after block initialization.
6839
6840 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
6841
6842 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
6843 * i386-tdep.c (i386_word_names): Likewise.
6844
6845 2010-03-12 Pedro Alves <pedro@codesourcery.com>
6846
6847 * target.c (memory_xfer_partial): Don't use the stack cache if
6848 inspecting trace frames.
6849 * tracepoint.c (finish_tfind_command): Invalidate the target
6850 dcache.
6851
6852 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6853
6854 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
6855 for the PIC displacement, print also the displacement value.
6856 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
6857
6858 2010-03-10 Kevin Buettner <kevinb@redhat.com>
6859
6860 * remote-mips.c (close_ports, mips_initialize_cleanups)
6861 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
6862 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
6863 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
6864 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
6865 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
6866 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
6867 comments describing each of these functions.
6868 (mips_enter_debug, mips_exit_debug, common_open)
6869 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
6870 blank line after the comment describing the function.
6871
6872 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6873
6874 * solib-svr4.c (svr4_exec_displacement): Return now success, new
6875 parameter displacementp. Update comment.
6876 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
6877 element exists. Return if svr4_exec_displacement was not successful.
6878 Update comment.
6879
6880 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6881 Daniel Jacobowitz <dan@codesourcery.com>
6882
6883 * solib-svr4.c (read_program_header): Support type == -1 to read
6884 all program headers.
6885 (read_program_headers_from_bfd): New function.
6886 (svr4_static_exec_displacement): Remove and move the comment ...
6887 (svr4_exec_displacement): ... here. Remove variable found. New
6888 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
6889 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
6890 targets using read_program_headers_from_bfd. Remove the call of
6891 svr4_static_exec_displacement.
6892
6893 2010-03-10 Tom Tromey <tromey@redhat.com>
6894
6895 * dwarf2read.c (struct pubnames_header): Remove.
6896 (_PUBNAMES_HEADER): Remove.
6897 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
6898 (struct aranges_header): Remove.
6899 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
6900 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
6901 (PUBNAMES_SECTION): Remove.
6902 (ARANGES_SECTION): Remove.
6903 (dwarf2_locate_sections): Don't handle pubnames or aranges.
6904 (dwarf2_build_psymtabs): Remove dead code.
6905 (dwarf2_build_psymtabs_easy): Remove.
6906
6907 2010-03-10 Tom Tromey <tromey@redhat.com>
6908
6909 * elfread.c (elf_symfile_read): Don't call
6910 dwarf2_build_frame_info.
6911 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
6912 (struct dwarf2_per_objfile) <objfile>: New field.
6913 (dwarf2_has_info): Now idempotent. Set objfile field.
6914 (dwarf2_read_section): Check and set readin field. Call
6915 posix_madvise.
6916 (dwarf2_build_psymtabs): Don't read all sections.
6917 (read_type_comp_unit_head): Read types section.
6918 (create_debug_types_hash_table): Likewise.
6919 (init_cu_die_reader): Add asserts.
6920 (process_type_comp_unit): Add assert.
6921 (dwarf2_build_psymtabs_hard): Read info section.
6922 (load_partial_comp_unit): Add assert.
6923 (create_all_comp_units): Read info section.
6924 (load_full_comp_unit): Likewise.
6925 (dwarf2_ranges_read): Read ranges section.
6926 (dwarf2_record_block_ranges): Add assert.
6927 (dwarf2_read_abbrevs): Read abbrev section.
6928 (read_indirect_string): Read str section.
6929 (dwarf_decode_line_header): Read line section.
6930 (read_signatured_type_at_offset): Read types section.
6931 (dwarf_decode_macros): Read macinfo section.
6932 (dwarf2_symbol_mark_computed): Read loc section.
6933 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
6934 dwarf2_build_frame_info.
6935 (dwarf2_build_frame_info): Unconditionally set
6936 dwarf2_frame_objfile_data on the objfile.
6937 * configure.ac: Check for posix_madvise.
6938 * config.in, configure: Rebuild.
6939
6940 2010-03-10 Tom Tromey <tromey@redhat.com>
6941
6942 * xcoffread.c (xcoff_start_psymtab): Update.
6943 (xcoff_end_psymtab): Update.
6944 * psymtab.c (allocate_psymtab): Remove dead code.
6945 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
6946 void*.
6947 * mdebugread.c (parse_partial_symbols): Update.
6948 (new_psymtab): Likewise.
6949 * dwarf2read.c (process_psymtab_comp_unit): Update.
6950 (psymtab_to_symtab_1): Update.
6951 * dbxread.c (start_psymtab): Update.
6952 (end_psymtab): Likewise.
6953
6954 2010-03-10 Tom Tromey <tromey@redhat.com>
6955
6956 * xcoffread.c: Include psymtab.h.
6957 (xcoff_sym_fns): Update.
6958 * symtab.h (struct partial_symbol): Remove.
6959 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
6960 (struct partial_symtab): Remove.
6961 (PSYMTAB_TO_SYMTAB): Remove.
6962 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
6963 (find_pc_sect_psymtab): Remove.
6964 (find_pc_sect_symtab_via_partial): Declare.
6965 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
6966 (find_main_psymtab): Remove.
6967 (find_main_filename): Declare.
6968 (fixup_psymbol_section): Remove.
6969 (fixup_section): Declare.
6970 * symtab.c: Include psymtab.h.
6971 (lookup_symtab): Use lookup_symtab method.
6972 (lookup_partial_symtab): Remove.
6973 (find_pc_sect_psymtab_closer): Remove.
6974 (find_pc_sect_psymtab): Remove.
6975 (find_pc_sect_symtab_via_partial): New function.
6976 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
6977 (fixup_section): No longer static.
6978 (fixup_psymbol_section): Remove.
6979 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
6980 (lookup_global_symbol_from_objfile): Likewise.
6981 (lookup_symbol_aux_psymtabs): Remove.
6982 (lookup_symbol_aux_quick): New function.
6983 (lookup_symbol_global): Use lookup_symbol_aux_quick.
6984 (lookup_partial_symbol): Remove.
6985 (basic_lookup_transparent_type_quick): New function.
6986 (basic_lookup_transparent_type): Use it.
6987 (find_main_psymtab): Remove.
6988 (find_main_filename): New function.
6989 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
6990 (find_line_symtab): Use expand_symtabs_with_filename method.
6991 (output_partial_symbol_filename): New function.
6992 (sources_info): Use map_partial_symbol_filenames.
6993 (struct search_symbols_data): New type.
6994 (search_symbols_file_matches): New function.
6995 (search_symbols_name_matches): Likewise.
6996 (search_symbols): Use expand_symtabs_matching method.
6997 (struct add_name_data): Rename from add_macro_name_data.
6998 (add_macro_name): Update.
6999 (add_partial_symbol_name): New function.
7000 (default_make_symbol_completion_list): Use
7001 map_partial_symbol_names.
7002 (struct add_partial_symbol_name): New type.
7003 (maybe_add_partial_symtab_filename): New function.
7004 (make_source_files_completion_list): Use
7005 map_partial_symbol_filenames.
7006 (expand_line_sal): Use expand_symtabs_with_filename method.
7007 * symmisc.c: Include psymtab.h.
7008 (print_objfile_statistics): Use print_stats method.
7009 (dump_objfile): Use dump method.
7010 (dump_psymtab, maintenance_print_psymbols)
7011 (maintenance_info_psymtabs, maintenance_check_symtabs)
7012 (extend_psymbol_list): Remove.
7013 * symfile.h (struct quick_symbol_functions): New struct.
7014 (struct sym_fns) <qf>: New field.
7015 (sort_pst_symbols): Remove.
7016 (increment_reading_symtab): Declare.
7017 * symfile.c: Include psymtab.h.
7018 (compare_psymbols, sort_pst_symbols): Remove.
7019 (psymtab_to_symtab): Remove.
7020 (increment_reading_symtab): New function.
7021 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
7022 method.
7023 (set_initial_language): Use find_main_filename.
7024 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
7025 (free_named_symtabs): Remove unused code.
7026 (start_psymtab_common, add_psymbol_to_bcache)
7027 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
7028 Remove.
7029 * stack.c: Include psymtab.h, symfile.h.
7030 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
7031 * source.h (psymtab_to_fullname): Don't declare.
7032 * source.c: Include psymtab.h.
7033 (select_source_symtab): Use find_last_source_symtab method.
7034 (forget_cached_source_info): Use forget_cached_source_info
7035 method.
7036 (find_and_open_source): No longer static.
7037 (psymtab_to_fullname): Remove.
7038 * somread.c: Include psymtab.h.
7039 (som_sym_fns): Update.
7040 * psympriv.h: New file.
7041 * psymtab.h: New file.
7042 * psymtab.c: New file.
7043 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
7044 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
7045 * objfiles.c: Include psymtab.h.
7046 (objfile_relocate1): Use relocate method.
7047 (objfile_has_partial_symbols): Use has_symbols method.
7048 * mipsread.c: Include psymtab.h.
7049 (ecoff_sym_fns): Update.
7050 * mi/mi-cmd-file.c: Include psymtab.h.
7051 (print_partial_file_name): New function.
7052 (mi_cmd_file_list_exec_source_files): Use
7053 map_partial_symbol_filenames.
7054 * mdebugread.c: Include psympriv.h.
7055 * machoread.c: Include psympriv.h.
7056 (macho_sym_fns): Update.
7057 * m2-exp.y (yylex): Use lookup_symtab.
7058 * elfread.c: Include psympriv.h.
7059 (elf_sym_fns): Update.
7060 * dwarf2read.c: Include psympriv.h.
7061 * dbxread.c: Include psympriv.h.
7062 (aout_sym_fns): Update.
7063 * cp-support.c: Include psymtab.h.
7064 (read_in_psymtabs): Remove.
7065 (make_symbol_overload_list_qualified): Use
7066 expand_symtabs_for_function method.
7067 * coffread.c: Include psympriv.h.
7068 (coff_sym_fns): Update.
7069 * blockframe.c: Include psymtab.h.
7070 (find_pc_partial_function): Use find_pc_sect_symtab method.
7071 * ada-lang.h (ada_update_initial_language): Update.
7072 * ada-lang.c: Include psymtab.h.
7073 (ada_update_initial_language): Remove 'main_pst' argument.
7074 (ada_lookup_partial_symbol): Remove.
7075 (struct ada_psym_data): New type.
7076 (ada_add_psyms): New function.
7077 (ada_add_non_local_symbols): Use map_ada_symtabs method.
7078 (struct add_partial_datum): New type.
7079 (ada_add_partial_symbol_completions): New function.
7080 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
7081 (ada_exception_support_info_sniffer): Update.
7082 * Makefile.in (SFILES): Add psymtab.c.
7083 (COMMON_OBS): Add psymtab.o.
7084 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
7085
7086 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7087
7088 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
7089
7090 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
7091
7092 PR C++/11236:
7093 * cp-namespace.c (cp_add_using): Deleted.
7094 (cp_add_using_directive): Use obstack allocations.
7095 Merged the function cp_add_using into this one.
7096 Added 'struct obstack *' argument.
7097 (cp_scan_for_anonymous_namespaces): Updated.
7098 * cp-support.h: Updated.
7099 * dwarf2read.c (read_import_statement): Updated.
7100 (read_namespace): Updated.
7101
7102 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
7103
7104 * windows-nat.c (cygwin_conv_path): Remove old macro.
7105
7106 2010-03-10 Pedro Alves <pedro@codesourcery.com>
7107
7108 * breakpoint.c (condition_command): Handle watchpoint conditions.
7109 (is_hardware_watchpoint): Add comment.
7110 (is_watchpoint): New.
7111 (update_watchpoint): Don't reparse the watchpoint's condition
7112 unless necessary.
7113 (WP_IGNORE): New.
7114 (watchpoint_check): Use it.
7115 (bpstat_check_watchpoint): Handle it.
7116 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
7117 conditions in a frame where it makes sense.
7118 (watch_command_1): Store the innermost block of the condition
7119 expression.
7120 (delete_breakpoint): Delete the watchpoint condition expression.
7121 * breakpoint.h (struct bp_location) <cond>: Update comment.
7122 (struct breakpoint): New field `cond_exp_valid_block'.
7123
7124 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7125
7126 Adjust handling of Ada DIEs after dwarf2_physname patch.
7127 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
7128
7129 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
7130 Pierre Muller <muller@ics.u-strasbg.fr>
7131
7132 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
7133 from/to posix/win32.
7134 (windows_make_so): Use non-Cygwin 1.7 specific function.
7135 (windows_create_inferior): Make sure that cygallargs points to
7136 original args in non Cygwin 1.7. case.
7137
7138 2010-03-09 Michael Snyder <msnyder@vmware.com>
7139
7140 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
7141 after target_read_memory to get host byte order.
7142 (i386_process_record): Ditto.
7143
7144 2010-03-09 Keith Seitz <keiths@redhat.com>
7145
7146 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
7147 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
7148 print out const or volatile qualifiers, too.
7149 (c_type_print_args): Add parameters show_artificial and language.
7150 Skip artificial parameters when requested.
7151 Use the appropriate language printer.
7152 (c_type_print_varspec): Tell c_type_print_args to skip artificial
7153 parameters and pass language_c.
7154 * dwarf2read.c (die_list): New file global.
7155 (struct partial_die_info): Update comments for name field.
7156 (pdi_needs_namespace): Renamed to ...
7157 (die_needs_namespace): ... this. Rewrite.
7158 (dwarf2_linkage_name): Remove.
7159 (add_partial_symbol): Do not predicate the call to
7160 partial_die_full_name based on pdi_needs_namespace.
7161 Remove call to cp_check_possible_namespace_symbols and associated
7162 outdated comments.
7163 (guess_structure_name): Do not inspect child subprogram DIEs.
7164 (dwarf2_fullname): Update comments.
7165 Use die_needs_namespace to assist in computing the name.
7166 (read_func_scope): Use dwarf2_name to get the DIE's name.
7167 Use dwarf2_physname to get the "linkage name" of the DIE.
7168 (dwarf2_add_member_field): Use dwarf2_physname instead of
7169 dwarf2_linkage_name.
7170 (read_structure_type): For structs and classes, set TYPE_NAME, too.
7171 (determine_class): Remove.
7172 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
7173 except Ada.
7174 (new_symbol): Unconditionally call dwarf2_name.
7175 Compute the "linkage name" using dwarf2_physname.
7176 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
7177 When determining to scan for anonymous C++ namespaces, ignore
7178 the linkage name.
7179 (dwarf2_physname): New function.
7180 (dwarf2_full_name): Move content to new function and call
7181 that.
7182 (dwarf2_compute_name): "New" function.
7183 (_initialize_dwarf2_read): Initialize die_list.
7184 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
7185 physname.
7186 (gnu_v3_print_method_ptr): Use the physname for virtual methods
7187 without a demangled name.
7188 Print out type information for non-virtual methods.
7189 * linespec.c (decode_line_1): Force ANY string using "::" (or
7190 "." for java) to use decode_compound, and clean up any stray quoting.
7191 If we found a file symtab, re-evaluate whether the remainder is_quoted.
7192 (decode_compound): Stop consuming at an open parenthesis.
7193 Keep template parameters.
7194 Keep any overload information.
7195 Keep keywords like "const".
7196 Remove paren_pointer.
7197 Move is_quoted check from set_flags to here.
7198 Remove #if 0 code from 2000. Ten years is long enough.
7199 (find_method): Before comparing symbol names, canonicalize the string
7200 from the user.
7201 If a specific overload is requested, find it. Otherwise throw an error.
7202 (find_method_overload_end): New function.
7203 (set_flags): Remove.
7204 (decode_compound): Assume that parentheses are matched.
7205 It's a lot easier.
7206 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
7207 to cplus_demangle.
7208 * linespec.c (decode_line_1): Keep important keywords like
7209 "const" and "volatile".
7210 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
7211 * typeprint.h (c_type_print_args): Add declaration.
7212 * ui-file.c (do_ui_file_obsavestring): New function.
7213 (ui_file_obsavestring): New function.
7214 * ui-file.h (ui_file_obsavestring): Add declaration.
7215 * valops.c (find_overload_match): Resolve the object to
7216 a non-pointer type.
7217 If the object is a data member, search the object for the member
7218 and return with staticp set.
7219 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
7220 Do not attempt to extract a function name from non-function types.
7221 If the extracted function name and the original name are the same,
7222 we don't have a C++ method.
7223
7224 From Jan Kratochvil <jan.kratochvil@redhat.com>:
7225 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
7226
7227 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
7228 and arguments from symbol lookups.
7229 * ax-gdb.c (gen_expr): Likewise.
7230 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
7231 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
7232 lookup_possible_namespace_symbol): Likewise.
7233 * cp-support.c (read_in_psymtabs): Likewise.
7234 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
7235 * language.h (la_lookup_symbol_nonlocal): Likewise.
7236 * scm-valprint.c (scm_inferior_print): Likewise.
7237 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
7238 * solib-svr.c (elf_lookup_lib): Likewise.
7239 * solib.c (show_auto_solib_add): Likewise.
7240 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
7241 * symmisc.c (maintenance_check_symtabs): Likewise.
7242 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
7243 lookup_symbol_aux_local, lookup_symbol_aux_block,
7244 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
7245 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
7246 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
7247 basic_lookup_transparent_type, find_main_psymtab,
7248 lookup_block_symbol): Likewise.
7249 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
7250 lookup_symbol_global, lookup_symbol_aux_block,
7251 lookup_symbol_partial_symbol, lookup_block_symbol,
7252 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
7253
7254 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
7255
7256 * python/python-internal.h: Include symtab.h.
7257
7258 2010-03-09 Joel Brobecker <brobecker@adacore.com>
7259 Pierre Muller <muller@ics.u-strasbg.fr>
7260
7261 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
7262 * p-valprint.c (pascal_val_print): Remove undeed block and fix
7263 indentation.
7264
7265 2010-03-08 Tom Tromey <tromey@redhat.com>
7266
7267 * breakpoint.c (breakpoint_1): Add "QUIT".
7268
7269 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
7270 Pedro Alves <pedro@codesourcery.com>
7271
7272 * solib.c (solib_find): Replace extension if
7273 solib_symbols_extension is set in the target gdbarch.
7274 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
7275 solib_symbols_extension to "sym".
7276 * gdbarch.sh (solib_symbols_extension): New variable.
7277 (pstring): New function.
7278 * gdbarch.h, gdbarch.c: Regenerate.
7279
7280 2010-03-08 Tom Tromey <tromey@redhat.com>
7281
7282 PR cli/9591:
7283 * NEWS: Update.
7284 * utils.c: Include main.h.
7285 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
7286 (defaulted_query): Use default answer if `batch_flag'.
7287 * main.h (batch_flag): Declare.
7288 * main.c (batch_flag): New global.
7289 (captured_main): Remove 'batch'. Update.
7290
7291 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7292
7293 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
7294 and Kevin Buettner:
7295
7296 * remote-mips.c (rockhopper_ops): New target_ops struct.
7297 (MON_ROCKHOPPER): New mips_monitor_type.
7298 (read_hex_value): New function.
7299 (mips_request): Send 8-byte values with a 'T' packet. Read the
7300 packet argument as a string and use read_hex_value to parse it.
7301 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
7302 (rockhopper_open): New function.
7303 (mips_wait): Read the PC, FP and SP fields as strings. Use
7304 read_hex_value to parse them and mips_set_register to commit them.
7305 (mips_set_register): New function.
7306 (mips_fetch_registers): Do not cast register value to "unsigned"
7307 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
7308 (mips_store_registers): Use a 'T' packet to set registers when
7309 using MON_ROCKHOPPER.
7310 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
7311 and expect the total to be printed before the entry address.
7312 (_initialize_remote_mips): Initialize and add rockhopper_ops.
7313
7314 2010-03-08 Kevin Buettner <kevinb@redhat.com>
7315
7316 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
7317 Change return value to int. Store value fetched in location
7318 addressed by `val'. Use function's return value as success
7319 or failure indicator. Adjust all callers.
7320
7321 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
7322
7323 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
7324
7325 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7326 Hui Zhu <teawater@gmail.com>
7327
7328 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
7329 tmp_to_stopped_data_address.
7330 (record_open): Reset tmp_to_stopped_by_watchpoint and
7331 tmp_to_stopped_data_address.
7332 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
7333 to_stopped_data_address.
7334
7335 2010-03-08 Hui Zhu <teawater@gmail.com>
7336
7337 * i386-tdep.c (i386_process_record): Initialize regnum.
7338
7339 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7340
7341 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
7342 Do not warn on ".gnu.liblist" and ".gnu.conflict".
7343
7344 2010-03-08 Joel Brobecker <brobecker@adacore.com>
7345
7346 Memory error when reading wrong core file.
7347 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
7348 errors while reading the inferior memory, and return zero if
7349 an exception was raised.
7350
7351 2010-03-07 Michael Snyder <msnyder@vmware.com>
7352
7353 * record.c (record_restore): Rename tmpu8 to rectype.
7354
7355 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
7356 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
7357
7358 (i386_record_push): Rename local tmpulongest to addr.
7359
7360 (i386_process_record): Rename local tmpulongest to addr.
7361
7362 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
7363 addr64.
7364
7365 Rename local variable tmpu8 to opcode8 and regnum.
7366
7367 2010-03-07 Joel Brobecker <brobecker@adacore.com>
7368
7369 * remote.c (remote_get_ada_task_ptid): New function.
7370 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
7371
7372 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
7373
7374 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
7375 block. Define helper macros to reduce ifdefs in code.
7376 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
7377 size. Call unadorned GetModuleFileNameEx rather than
7378 GetModuleFileNameEx*.
7379 (windows_make_so): Use __PMAX to denote maximum buffer size and
7380 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
7381 appropriate.
7382 (get_image_name): Use __PMAX to denote maximum buffer size.
7383 (handle_load_dll): Likewise.
7384 (windows_pid_to_exec_file): Likewise.
7385 (windows_create_inferior): Add many accommodations for older Cygwin and
7386 non-Cygwin.
7387 (bad_GetModuleFileNameExW): Control inclusion of this function based on
7388 __USEWIDE conditional.
7389 (bad_GetModuleFileNameExA): Likewise.
7390 (_initialize_loadable): Just use real function names without the dyn_
7391 part since they are defined earlier.
7392
7393 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
7394 Tom Tromey <tromey@redhat.com>
7395
7396 * utils.c (host_char_to_target): Add 'gdbarch' argument.
7397 (parse_escape): Likewise.
7398 * python/py-utils.c (unicode_to_target_string): Update.
7399 (unicode_to_target_python_string): Update.
7400 (target_string_to_unicode): Update.
7401 * printcmd.c (printf_command): Update.
7402 * p-exp.y (yylex): Update.
7403 * objc-exp.y (yylex): Update.
7404 * mi/mi-parse.c: Include charset.h.
7405 (mi_parse_escape): New function.
7406 (mi_parse_argv): Use it.
7407 * jv-exp.y (yylex): Update.
7408 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
7409 function.
7410 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
7411 * gdbarch.sh (auto_charset, auto_wide_charset): New.
7412 * gdbarch.c: Rebuild.
7413 * gdbarch.h: Rebuild.
7414 * defs.h (parse_escape): Update.
7415 * cli/cli-setshow.c: Include arch-utils.h.
7416 (do_setshow_command): Update.
7417 * cli/cli-cmds.c (echo_command): Update.
7418 * charset.h (target_charset, target_wide_charset): Update.
7419 * charset.c: Include arch-utils.h.
7420 (target_charset_name): Default to "auto".
7421 (target_wide_charset_name): Likewise.
7422 (show_target_charset_name): Handle "auto".
7423 (show_target_wide_charset_name): Likewise.
7424 (be_le_arch): New global.
7425 (set_be_le_names): Add 'gdbarch' argument.
7426 (validate): Likewise. Don't call set_be_le_names.
7427 (set_charset_sfunc, set_host_charset_sfunc)
7428 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
7429 Update.
7430 (target_charset): Add 'gdbarch' argument.
7431 (target_wide_charset): Likewise. Remove 'byte_order' argument.
7432 (auto_target_charset_name): New global.
7433 (default_auto_charset, default_auto_wide_charset): New functions.
7434 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
7435 for target charsets. Copy result of nl_langinfo. Use GetACP if
7436 USE_WIN32API.
7437 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
7438 remove 'byte_order' argument. Update.
7439 (classify_type): Likewise.
7440 (c_emit_char): Update.
7441 (c_printchar): Update.
7442 (c_printstr): Update.
7443 (c_get_string): Update.
7444 (evaluate_subexp_c): Update.
7445 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
7446 Declare.
7447 * python/python.c (gdbpy_target_charset): New function.
7448 (gdbpy_target_wide_charset): Likewise.
7449 (GdbMethods): Update.
7450 * NEWS: Update.
7451
7452 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7453
7454 * symfile.c (build_section_addr_info_from_objfile): Do not mask
7455 off high address bits.
7456
7457 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
7458
7459 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
7460 address as UnsignedLongLong, not LongLong.
7461
7462 2010-03-05 Kevin Buettner <kevinb@redhat.com>
7463 Pedro Alves <pedro@codesourcery.com>
7464
7465 * remote-mips.c (gdbthread.h): Include.
7466 (remote_mips_ptid): Declare.
7467 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
7468 (common_open): Set inferior_ptid, add it as an inferior, and
7469 as a thread too. Delete FIXME comment regarding start_remote().
7470 (mips_close): Invoke generic_mourn_inferior().
7471 (mips_kill): Make sure that target_mourn_inferior is invoked.
7472 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
7473 it's now invoked from mips_close().
7474 (mips_load): Don't null out inferior_ptid. Don't call
7475 clear_symtab_users().
7476 (mips_thread_alive, mips_pid_to_str): New functions.
7477 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
7478 to_thread_alive and to_pid_to_str operations.
7479
7480 2010-03-04 Tom Tromey <tromey@redhat.com>
7481
7482 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
7483 in DWARF 3 and later.
7484 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
7485
7486 2010-03-04 Keith Seitz <keiths@redhat.com>
7487
7488 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
7489 If the filename portion of the linespec was quoted, recheck the
7490 remainder for additional quoting.
7491 (locate_first_half): Skip over completer chars, too.
7492
7493 2010-03-04 Tom Tromey <tromey@redhat.com>
7494
7495 * printcmd.c (printf_command): Pass dummy argument to
7496 printf_filtered.
7497
7498 2010-03-04 Doug Evans <dje@google.com>
7499
7500 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
7501 unwound_fp.
7502
7503 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
7504
7505 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7506
7507 * breakpoint.c (update_watchpoint): Create a sentinel location if
7508 the software watchpoint isn't watching any memory.
7509 (breakpoint_address_bits): Skip dummy software watchpoint locations.
7510
7511 2010-03-04 Pedro Alves <pedro@codesourcery.com>
7512
7513 * utils.c (fputs_maybe_filtered): Check if there's already a top
7514 level interpreter before dereferencing it. If there isn't one,
7515 don't paginate either.
7516
7517 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7518
7519 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
7520 the state right when single stepping.
7521 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
7522 Get the next PC along with the instruction state.
7523 (thumb_get_next_pc): Remove.
7524 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
7525
7526 2010-03-04 Hui Zhu <teawater@gmail.com>
7527
7528 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
7529
7530 2010-03-03 Pedro Alves <pedro@codesourcery.com>
7531
7532 * utils.c (fputs_maybe_filtered): Always disable pagination if the
7533 top level interpreter is MI.
7534
7535 2010-03-03 Stan Shebs <stan@codesourcery.com>
7536
7537 * remote.c (remote_download_tracepoint): Iterate over locations.
7538 * tracepoint.c (validate_actionline): Ditto.
7539 (encode_actions): Add location argument.
7540 (trace_dump_command): Check all locations to see if stepping
7541 frame.
7542
7543 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
7544 Eli Zaretskii <eliz@gnu.org>
7545
7546 * NEWS: Add X86 general purpose registers section.
7547
7548 2010-03-03 Tom Tromey <tromey@redhat.com>
7549
7550 PR mi/11098:
7551 * varobj.c (install_new_value): Handle case where new print_value
7552 is NULL.
7553
7554 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
7555
7556 PR gdb/11345:
7557 * printcmd.c (printf_command): Print end of format string using
7558 printf_filtered.
7559
7560 2010-03-02 Tom Tromey <tromey@redhat.com>
7561
7562 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
7563 * defs.h (read_command_lines_1): Add missing 'void'.
7564 * cli/cli-script.c (recurse_read_control_structure): Add missing
7565 'void'.
7566 (read_next_line): Likewise.
7567 (read_command_lines_1): Likewise.
7568
7569 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7570
7571 * spu-tdep.c (spu_analyze_prologue): Track instruction to
7572 store backchain as part of prologue.
7573
7574 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
7575
7576 * progspace.c (update_address_spaces): Update inferior address spaces
7577 also.
7578
7579 2010-03-02 Doug Evans <dje@google.com>
7580
7581 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
7582 lowpc,highpc args to addrmap_set_empty.
7583
7584 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
7585
7586 * amd64-tdep.c (amd64_byte_names): New.
7587 (amd64_word_names): Likewise.
7588 (amd64_dword_names): Likewise.
7589 (amd64_pseudo_register_name): Likewise.
7590 (amd64_pseudo_register_read): Likewise.
7591 (amd64_pseudo_register_write): Likewise.
7592 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
7593 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
7594 set_gdbarch_pseudo_register_write and
7595 set_tdesc_pseudo_register_name. Don't call
7596 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
7597
7598 * i386-tdep.c (i386_num_mmx_regs): Removed.
7599 (i386_num_pseudo_regs): Likewise.
7600 (i386_byte_names): New.
7601 (i386_word_names): Likewise.
7602 (i386_byte_regnum_p): Likewise.
7603 (i386_word_regnum_p): Likewise.
7604 (i386_mmx_regnum_p): Updated.
7605 (i386_pseudo_register_name): Make it global. Handle byte and
7606 word pseudo-registers.
7607 (i386_pseudo_register_read): Likewise.
7608 (i386_pseudo_register_write): Likewise.
7609 (i386_pseudo_register_type): Handle byte, word and dword
7610 pseudo-registers
7611 (i386_register_reggroup_p): Don't include pseudo
7612 registers, except for MXX, in any register groups. Don't
7613 include pseudo byte, word, dword registers in general_reggroup.
7614 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
7615 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
7616 pseudo-registers after word pseudo-registers. Call
7617 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
7618
7619 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
7620 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
7621 eax_regnum.
7622 (i386_byte_regnum_p): New.
7623 (i386_word_regnum_p): Likewise.
7624 (i386_dword_regnum_p): Likewise.
7625 (i386_pseudo_register_name): Likewise.
7626 (i386_pseudo_register_read): Likewise.
7627 (i386_pseudo_register_write): Likewise.
7628
7629 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7630
7631 * target-descriptions.c (tdesc_type): Remove
7632 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7633 (tdesc_predefined_types): Likewise.
7634 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
7635 if flag name is empty.
7636 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
7637
7638 * features/i386/32bit-core.xml: Define i386_eflags.
7639 * features/i386/64bit-core.xml: Likewise.
7640
7641 * features/i386/32bit-sse.xml: Define i386_mxcsr.
7642 * features/i386/64bit-sse.xml: Likewise.
7643
7644 * features/i386/amd64-linux.c: Regenerated.
7645 * features/i386/amd64.c: Likewise.
7646 * features/i386/i386-linux.c: Likewise.
7647 * features/i386/i386.c: Likewise.
7648
7649 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
7650
7651 * gdbtypes.c (append_composite_type_field_raw): New.
7652 (append_composite_type_field_aligned): Use the new function.
7653 * gdbtypes.h (append_composite_type_field_raw): Declare.
7654 * target-descriptions.c (struct tdesc_type_field): Add start and end.
7655 (struct tdesc_type_flag): New type.
7656 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
7657 kind. Add size to u.u. Add u.f for flags.
7658 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
7659 (tdesc_free_type): Likewise.
7660 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
7661 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
7662 (tdesc_add_bitfield, tdesc_add_flag): New.
7663 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
7664 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
7665 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
7666 current_type. Add current_type_size and current_type_is_flags.
7667 (tdesc_start_union): Clear the new fields.
7668 (tdesc_start_struct, tdesc_start_flags): New.
7669 (tdesc_start_field): Handle struct fields, including bitfields.
7670 (field_attributes): Make type optional. Add start and end.
7671 (union_children): Rename to struct_union_children.
7672 (union_attributes): Rename to struct_union_attributes. Add optional
7673 size.
7674 (flags_attributes): New.
7675 (feature_children): Add struct and flags.
7676 * features/gdb-target.dtd: Add flags and struct to features.
7677 Make field type optional. Add field start and end.
7678
7679 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7680
7681 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
7682 (amd64_linux_read_description): Likewise.
7683 (_initialize_amd64_linux_nat): Set to_read_description to
7684 amd64_linux_read_description.
7685
7686 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
7687 (amd64_linux_register_name): Removed.
7688 (amd64_linux_register_type): Likewise.
7689 (amd64_linux_core_read_description): New.
7690 (amd64_linux_init_abi): Set target description to
7691 tdesc_amd64_linux if needed. Support orig_rax in target
7692 description. Don't call set_gdbarch_register_name nor
7693 set_gdbarch_register_type. Call
7694 set_gdbarch_core_read_description.
7695 (_initialize_amd64_linux_tdep): Call
7696 initialize_tdesc_amd64_linux.
7697
7698 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
7699
7700 * amd64-tdep.c: Include "features/i386/amd64.c".
7701 (amd64_register_names): Removed.
7702 (amd64_register_name): Likewise.
7703 (amd64_register_type): Likewise.
7704 (amd64_init_abi): Set num_core_regs and register_names. Set
7705 target description to tdesc_amd64 if needed. Don't call
7706 set_gdbarch_register_name nor set_gdbarch_register_type.
7707 (_initialize_amd64_tdep): New.
7708
7709 * i386-linux-nat.c (i386_linux_read_description): New.
7710 (_initialize_i386_linux_nat): Set to_read_description to
7711 i386_linux_read_description.
7712
7713 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
7714 (i386_linux_register_name): Removed.
7715 (i386_linux_core_read_description): New.
7716 (i386_linux_read_description): Likewise.
7717 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
7718 Set target description to tdesc_i386_linux if needed. Support
7719 orig_eax. Set register_reggroup_p. Call
7720 set_gdbarch_core_read_description.
7721 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
7722
7723 * i386-linux-tdep.h (tdesc_i386_linux): New.
7724
7725 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
7726 with I387_NUM_REGS.
7727
7728 * i386-tdep.c: Include "features/i386/i386.c".
7729 (i386_register_names): Make it const.
7730 (i386_mmx_names): Likewise.
7731 (i386_num_register_names): Removed.
7732 (i386_register_name): Likewise.
7733 (i386_eflags_type): Likewise.
7734 (i386_mxcsr_type): Likewise.
7735 (i386_sse_type): Likewise.
7736 (i386_register_type): Likewise.
7737 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
7738 (i386_pseudo_register_name): New.
7739 (i386_pseudo_register_type): Likewise.
7740 (i386_mmx_type): Make it static.
7741 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
7742 I387_NUM_REGS. Set num_core_regs and register_names. Don't
7743 call set_gdbarch_register_name nor set_gdbarch_register_type.
7744 Set register_reggroup_p. Set target description to tdesc_i386
7745 if needed. Call set_tdesc_pseudo_register_type,
7746 set_tdesc_pseudo_register_name and tdesc_use_registers.
7747 (_initialize_i386_tdep): Call initialize_tdesc_i386.
7748 initialize_tdesc_x86_64.
7749
7750 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
7751 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
7752 register_names, tdesc and register_reggroup_p.
7753 (I386_NUM_FREGS): Removed.
7754 (i386_eflags_type): Likewise.
7755 (i386_mxcsr_type): Likewise.
7756 (i386_mmx_type): Likewise.
7757 (i386_sse_type): Likewise.
7758 (i386_register_name): Likewise.
7759 (i386_regnum): Add I386_MXCSR_REGNUM.
7760 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
7761
7762 * i387-tdep.h (I387_NUM_REGS): New.
7763
7764 * regformats/i386/i386-linux.dat: Generated.
7765 * regformats/i386/i386.dat: Likewise.
7766 * regformats/i386/amd64-linux.dat: Likewise.
7767 * regformats/i386/amd64.dat: Likewise.
7768
7769 * regformats/reg-i386-linux.dat: Removed.
7770 * regformats/reg-i386.dat: Likewise.
7771 * regformats/reg-x86-64-linux.dat: Likewise.
7772 * regformats/reg-x86-64.dat: Likewise.
7773
7774 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
7775
7776 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
7777 cygwin_conv_path API rather than the deprecated
7778 cygwin_conv_to_full_posix_path.
7779 * windows-nat.c:
7780 (GetModuleFileNameExA): Undefine for Cygwin.
7781 (GetModuleFileNameExW): Define for Cygwin.
7782 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
7783 Call GetModuleFileNameExW and convert path to POSIX using
7784 cygwin_conv_path.
7785 (windows_make_so): Always define p. Drop unused variable m.
7786 Don't use Win32 functions to check file existance, rather use
7787 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
7788 Use canonicalize_file_name to get full path.
7789 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
7790 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
7791 use correct target buffer size in call to WideCharToMultiByte.
7792 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
7793 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
7794 (windows_create_inferior): Convert all paths and arguments to wchar_t
7795 and use CreateProcessW on Cygwin.
7796 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
7797 (bad_GetModuleFileNameExA): Undefine for Cygwin.
7798 (bad_GetModuleFileNameExW): Define for Cygwin.
7799 (_initialize_loadable): Load GetModuleFileNameExW into
7800 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
7801
7802 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
7803
7804 PR python/11036
7805 * python/py-frame.c (frapy_read_var): Add block argument and logic
7806 to cope with user provided blocks.
7807
7808 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7809
7810 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
7811 New comment.
7812
7813 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
7814
7815 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
7816 (COMMON_OBS): ... to here since it's used unconditionally.
7817 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
7818 (SFILES): To here.
7819
7820 2010-02-26 David Daney <ddaney@caviumnetworks.com>
7821
7822 * mips-linux-tdep.c: Update struct sigframe comments.
7823 (SIGFRAME_CODE_OFFSET): Delete macro.
7824 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
7825 this_frame's sp.
7826 (mips_linux_n32n64_sigframe_init): Same.
7827
7828 2010-02-26 Kevin Buettner <kevinb@redhat.com>
7829
7830 * remote-mips.c (mips_load): Don't use pseudo-register when
7831 invalidating regcache.
7832
7833 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7834
7835 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
7836
7837 2010-02-26 Pedro Alves <pedro@codesourcery.com>
7838
7839 * NEWS: Add "New targets" section, and mention ARM Symbian
7840 support.
7841
7842 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
7843
7844 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
7845 add ADDR_SIZE member.
7846 (allocate_piece_closure): Update.
7847 (copy_pieced_value_closure): Likewise.
7848 (dwarf2_evaluate_loc_desc): Likewise.
7849 (read_pieced_value): Use DWARF address size instead of
7850 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
7851
7852 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
7853 Tom Tromey <tromey@redhat.com>
7854
7855 * python/py-type.c (typy_lookup_typename): Add in block argument.
7856 If provided restrict lookup to specified blocks.
7857 (gdbpy_lookup_type): Likewise.
7858 (typy_lookup_type): Likewise.
7859
7860 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7861
7862 Symbian config
7863
7864 gdb/
7865 * arm-symbian-tdep.c: New.
7866 * configure.tgt (arm*-*-symbianelf*): New target.
7867 (*-*-symbianelf*): New OS.
7868 * osabi.c (gdb_osabi_names): Add Symbian.
7869 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
7870 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
7871 (ALLDEPFILES): Add arm-symbian-tdep.c.
7872
7873 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7874
7875 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
7876
7877 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7878
7879 * mi/mi-main.c (mi_cmd_execute): Fix typo.
7880
7881 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
7882 Tom Tromey <tromey@redhat.com>
7883 Thiago Jung Bauermann <bauerman@br.ibm.com>
7884
7885 * python/python.c (_initialize_python): Call
7886 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
7887 gdbpy_initialize_blocks.
7888 * python/python-internal.h: Declare struct symbol, block and
7889 symtab_and_line. Declare block_object_type and
7890 symbol_object_type
7891 (gdbpy_lookup_symbol gdbpy_block_for_pc)
7892 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
7893 (symbol_to_symbol_object, block_to_block_object)
7894 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
7895 (gdbpy_initialize_blocks ): Declare.
7896 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
7897 (frapy_select): Add methods.
7898 (frapy_read_var): Add symbol branch.
7899 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
7900 py-block.
7901 (SUBDIR_PYTHON_SRCS): Likewise.
7902 (py-symbol.o): New rule.
7903 (py-symtab.o): Likewise.
7904 (py-block.o): Likewise.
7905 * python/py-symbol.c: New file.
7906 * python/py-symtab.c: Likewise.
7907 * python/py-block.c: Likewise.
7908
7909 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7910
7911 PR gdb/11321
7912
7913 * inferior.h (prepare_for_detach): Declare.
7914 (struct inferior) <detaching>: New field.
7915 * infrun.c (prepare_for_detach): New.
7916 (handle_inferior_event) <random signal>: Don't stop if detaching.
7917 * target.c (target_detach): Call prepare_for_detach.
7918
7919 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7920
7921 Per-process displaced stepping queue.
7922
7923 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
7924 (displaced_step_gdbarch, displaced_step_closure,
7925 (displaced_step_original, displaced_step_copy): Move globals to
7926 this...
7927 (struct displaced_step_inferior_state): ... new structure.
7928 (displaced_step_inferior_states): New global.
7929 (get_displaced_stepping_state, add_displaced_stepping_state)
7930 (remove_displaced_stepping_state, infrun_inferior_exit): New
7931 functions.
7932 (displaced_step_clear): Add displaced_step_inferior_state
7933 parameter, and adjust to handle it.
7934 (displaced_step_clear_cleanup): Parameter is now a
7935 displaced_step_inferior_state. Adjust.
7936 (displaced_step_prepare): Adjust.
7937 (displaced_step_fixup, displaced_step_fixup)
7938 (infrun_thread_ptid_changed, resume): Adjust.
7939 (init_wait_for_inferior): Don't call displaced_step_clear.
7940 (infrun_thread_stop_requested): Rewrite.
7941 (_initialize_infrun): Install infrun_inferior_exit as
7942 inferior_exit observer.
7943
7944 2010-02-24 Pedro Alves <pedro@codesourcery.com>
7945
7946 * inferior.h (ptid_match): Declare.
7947 * infrun.c (ptid_match): New.
7948 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
7949 (handle_notification): Add debug output.
7950 * linux-nat.c (ptid_match): Delete.
7951
7952 2010-02-24 David S. Miller <davem@davemloft.net>
7953
7954 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
7955 * syscalls/sparc-linux.xml: New.
7956 * syscalls/sparc64-linux.xml: New.
7957 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
7958 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
7959 (sparc32_linux_get_syscall_number): New function.
7960 (sparc32_linux_init_abi): Set syscall XML file name and hook up
7961 syscall number fetcher.
7962 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
7963 (sparc64_linux_get_syscall_number): New function.
7964 (sparc64_linux_init_abi): Set syscall XML file name and hook up
7965 syscall number fetcher.
7966
7967 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7968
7969 Multiexec MI
7970
7971 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
7972 * inferior.c (add_inferior_silent): Notify inferior_added
7973 observer.
7974 (delete_inferior_1): Notify inferior_removed observer.
7975 (exit_inferior_1): Pass inferior, not pid, to observer.
7976 (inferior_appeared): Likewise.
7977 (add_inferior_with_spaces): New.
7978 (add_inferior_command): Use the above.
7979 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
7980 Declare.
7981
7982 * inflow.c (inflow_inferior_exit): Likewise.
7983 * jit.c (jit_inferior_exit_hook): Likewise.
7984
7985 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
7986 remove-inferior.
7987 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7988 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
7989 (report_initial_inferior): New.
7990 (mi_inferior_removed): Register the above. Make sure
7991 inferior_added observer is called on the first inferior.
7992 (mi_new_thread, mi_thread_exit): Thread group is now identified by
7993 inferior number, not pid.
7994 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
7995 affected.
7996 * mi/mi-main.c (current_context): New.
7997 (proceed_thread_callback): Use typed closure.
7998 Proceed everything if pid is 0. Most implementation split into
7999 (proceed_thread): ... this.
8000 (run_one_inferior): New.
8001 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
8002 Adjust for multiexec behaviour.
8003 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
8004 (mi_cmd_execute): Handle the 'thread-group' option here.
8005 Do some extra checks.
8006 * mi-parse.c (mi_parse): Handle the --all and --thread-group
8007 options.
8008 * mi-parse.h (struct mi_parse): New fields all and thread_group.
8009
8010 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
8011
8012 Make -exec-run a proper MI commands.
8013
8014 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
8015 * mi/mi-cmds.c (mi_cmds): Adjust.
8016 * mi/mi-main.c (mi_cmd_exec_run): New.
8017
8018 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8019 Stan Shebs <stan@codesourcery.com>
8020
8021 * tracepoint.h (set_traceframe_number)
8022 (cleanup_restore_current_traceframe): Declare.
8023 * tracepoint.c (set_traceframe_number): New.
8024 (struct current_traceframe_cleanup): New.
8025 (do_restore_current_traceframe_cleanup)
8026 (restore_current_traceframe_cleanup_dtor)
8027 (make_cleanup_restore_current_traceframe): New.
8028 * infrun.c: Include tracepoint.h.
8029 (fetch_inferior_event): Switch out and in of tfind mode.
8030
8031 2010-02-24 Pedro Alves <pedro@codesourcery.com>
8032
8033 * breakpoint.c (breakpoint_init_inferior): Also delete
8034 bp_shlib_event breakpoints.
8035 * solib-frv.c (enable_break): Remove call to
8036 remove_solib_event_breakpoints.
8037 * solib-svr4.c (enable_break): Ditto.
8038 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
8039 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
8040 * solib-som.c (som_solib_create_inferior_hook): Ditto.
8041 * solib-spu.c (spu_enable_break): Ditto.
8042
8043 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8044
8045 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
8046
8047 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
8048
8049 * varobj.c (varobj_update): Avoid non-constants in initializers.
8050
8051 2010-02-23 Tom Tromey <tromey@redhat.com>
8052
8053 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
8054 handle big-endian values.
8055 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
8056
8057 2010-02-22 Pedro Alves <pedro@codesourcery.com>
8058
8059 PR9605
8060
8061 gdb/
8062 * breakpoint.c (insert_bp_location): If inserting the read
8063 watchpoint failed, fallback to an access watchpoint.
8064 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
8065 if the value changed, if not watching the same memory for writes.
8066 (watchpoint_locations_match): Add comment.
8067 (update_global_location_list): Copy the location's watchpoint type.
8068 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
8069 handle read watchpoints here.
8070 (i386_insert_watchpoint): Read watchpoints aren't supported.
8071 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
8072 packets.
8073 * target.h (target_insert_watchpoint): Update description.
8074
8075 2010-02-19 Tom Tromey <tromey@redhat.com>
8076
8077 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
8078 * m2-typeprint.c (m2_print_type): Update.
8079 * gdbtypes.c (recursive_dump_type): Update.
8080 (copy_type_recursive): Update.
8081 * c-typeprint.c (c_type_print_varspec_prefix): Update.
8082 (c_type_print_base): Update.
8083 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
8084 Remove.
8085 (struct cplus_struct_type) <ntemplate_args>: Remove.
8086 <struct template_arg>: Remove.
8087 <is_dynamic>: Move earlier.
8088 (TYPE_TEMPLATE_ARGS): Remove.
8089 (TYPE_NTEMPLATE_ARGS): Remove.
8090 (TYPE_TEMPLATE_ARG): Remove.
8091
8092 2010-02-19 Tom Tromey <tromey@redhat.com>
8093
8094 PR c++/8693, PR c++/9496:
8095 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
8096 * c-exp.y (lex_one_token): Rename from yylex. Don't call
8097 write_dollar_variable. Don't try to classify NAME tokens.
8098 (token_and_value): New type.
8099 (token_fifo, popping, name_obstack): New globals.
8100 (classify_name): New function.
8101 (classify_inner_name): Likewise.
8102 (yylex): Likewise.
8103 (VARIABLE): Now has type sval.
8104 (exp : VARIABLE): Call write_dollar_variable.
8105 (qualified_name): Use TYPENAME, not typebase. Add production for
8106 multiple "::" instances.
8107 (variable): Use name_not_typename.
8108 (qualified_type): Remove.
8109 (typebase): Update.
8110
8111 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8112
8113 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
8114 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
8115 found by bfd_get_section_by_name.
8116 * symfile.h (struct section_addr_info) <sectindex>: New comment.
8117
8118 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8119
8120 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
8121 7.0 section" into "Changes in 7.1".
8122
8123 2010-02-19 Joel Brobecker <brobecker@adacore.com>
8124
8125 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
8126 * version.in: Bump version to 7.1.50.20100219-cvs.
8127
8128 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
8129
8130 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
8131 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
8132
8133 2010-02-17 Tom Tromey <tromey@redhat.com>
8134
8135 * NEWS: Add Python API Improvements section.
8136
8137 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
8138
8139 * NEWS: Correct typo.
8140
8141 2010-02-17 Tom Tromey <tromey@redhat.com>
8142
8143 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
8144
8145 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8146
8147 * symfile.c (build_section_addr_info_from_objfile): Include sections
8148 only if they are SEC_ALLOC or SEC_LOAD.
8149
8150 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
8151
8152 PR shlibs/11293
8153 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
8154 of ULONGEST for address size.
8155
8156 2010-02-17 Tom Tromey <tromey@redhat.com>
8157
8158 * NEWS: Add C++ improvements section.
8159
8160 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
8161
8162 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
8163 PyThreadState_Swap): Avoid "statement with no effect" warning.
8164
8165 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8166
8167 * solib-svr4.c (enable_break <target_auxv_search>): New variable
8168 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
8169
8170 2010-02-17 Tristan Gingold <gingold@adacore.com>
8171 Petr Hluzin <petr.hluzin@gmail.com>
8172
8173 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
8174 gdb_assert. Fix info->size for SIG prologue.
8175
8176 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8177
8178 * infcmd.c (show_inferior_tty_command): Check for NULL.
8179 Correct output message.
8180
8181 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8182
8183 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
8184 FUNCTION contains parentheses. Improve removal of a trailing
8185 single quote.
8186
8187 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8188
8189 * gcore.c (do_bfd_delete_cleanup): New function.
8190 (gcore_command): Use it. Discard the cleanup after success.
8191 (gcore_copy_callback): Delete dead code.
8192
8193 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
8194
8195 * symfile.c (addr_info_make_relative): Always use
8196 find_lowest_section.
8197
8198 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
8199
8200 * NEWS: Added entry for namespace fixes.
8201
8202 2010-02-15 Tom Tromey <tromey@redhat.com>
8203
8204 * dwarf2read.c (guess_structure_name): Allocate name on the
8205 objfile obstack.
8206
8207 2010-02-15 Tom Tromey <tromey@redhat.com>
8208
8209 * c-typeprint.c (c_type_print_base): Reverse order of test.
8210
8211 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8212
8213 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
8214 initialize it from ELF BFD. Extend the prelink condition by it.
8215
8216 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8217
8218 * defs.h (parse_pid_to_attach): New.
8219 * utils.c (parse_pid_to_attach): New.
8220 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
8221 * gnu-nat.c (gnu_attach): Likewise.
8222 * nto-procfs.c (procfs_attach): Likewise.
8223 * procfs.c (procfs_attach): Likewise.
8224 * windows-nat.c (windows_attach): Likewise.
8225 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
8226 * inf-ttrace.c (inf_ttrace_attach): Likewise.
8227 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
8228 check.
8229
8230 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
8231
8232 * MAINTAINERS: Add myself for write after approval privileges.
8233
8234 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8235
8236 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
8237 block.
8238
8239 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8240
8241 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
8242 only if INFO_VERBOSE.
8243
8244 2010-02-12 Tomas Holmberg <th@virtutech.com>
8245
8246 * mi/mi-main.c: Added the --reverse flag to the following MI
8247 commands: exec-continue, exec-finish, exec-next, exec-step,
8248 exec-next-instruction, exec-step-instruction. This is to
8249 support reverse execution over the MI interface to gdb.
8250
8251 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8252
8253 * tracepoint.c (_initialize_tracepoint): Specify that the address
8254 range of `tfind outsize' is exclusive, and that the address range
8255 of `tfind range' is inclusive, in the commands' help strings.
8256
8257 2010-02-12 Joel Brobecker <brobecker@adacore.com>
8258
8259 Spurious "dll not found" error messages on x64-windows.
8260 * windows-nat.c: Add include of complaints.h.
8261 (handle_unload_dll): Change dll-not-found error into a complaint.
8262
8263 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8264
8265 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
8266 bp_tracepoint and bp_fast_tracepoint, not
8267 bp_loc_software_breakpoint.
8268 (update_global_location_list): Tracepoints are never duplicates of
8269 anything.
8270
8271 2010-02-12 Pedro Alves <pedro@codesourcery.com>
8272
8273 * breakpoint.c (break_command_really): Change return type to int.
8274 Return false if no breakpoint was created, true otherwise.
8275 (trace_command): Don't set the tracepoint count if no tracepoint
8276 was created.
8277 (ftrace_command): Ditto.
8278 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
8279 created in the breakpoints table.
8280
8281 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8282 Ulrich Weigand <uweigand@de.ibm.com>
8283
8284 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
8285
8286 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8287
8288 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
8289 the offset value isn't of integral type.
8290
8291 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8292
8293 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
8294 New.
8295
8296 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8297
8298 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
8299 non-subscriptable types.
8300 * valarith.c (binop_types_user_defined_p): New, abstracted out
8301 from ...
8302 (binop_user_defined_p): ... this.
8303 * value.h (binop_types_user_defined_p): Declare.
8304
8305 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8306
8307 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
8308 Merge uploaded TSVs before merging uploaded tracepoints.
8309
8310 2010-02-11 Pedro Alves <pedro@codesourcery.com>
8311
8312 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
8313
8314 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
8315
8316 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
8317 whitespace character after a dot in comment.
8318 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
8319 Likewise.
8320 (list_args_or_locals): For the 'all' (that is
8321 -stack-list-variables) case, always output list of tuples.
8322 Output 'arg' field if variable is argument.
8323
8324 2010-02-10 Tom Tromey <tromey@redhat.com>
8325
8326 * parser-defs.h (parser_debug): Declare.
8327 * parse.c (_initialize_parse): Install "debug parser" set/show
8328 command.
8329 (parser_debug): New global.
8330 (show_parserdebug): New function.
8331 * c-exp.y (c_parse): Set yydebug.
8332
8333 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
8334
8335 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
8336 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8337 (tdesc_predefined_types): Add i387_ext, i386_eflags and
8338 i386_mxcsr.
8339 (tdesc_find_type): New.
8340 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
8341 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8342
8343 * target-descriptions.h (tdesc_find_type): New.
8344
8345 2010-02-10 Michael Snyder <msnyder@vmware.com>
8346
8347 * gdb-gdb.py: Comment fix.
8348
8349 2010-02-09 Tristan Gingold <gingold@adacore.com>
8350
8351 * machoread.c (macho_symfile_relocate): New function.
8352 (macho_sym_fns): Use macho_symfile_relocate instead of
8353 default_symfile_relocate.
8354 (macho_oso_data): New type.
8355 (current_oso): New variable.
8356 (macho_add_oso_symfile): Do not compute section_addr_info, but
8357 instead set vma of sections.
8358 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
8359 Set and clear current_oso.
8360
8361 2010-02-09 Joel Brobecker <brobecker@adacore.com>
8362
8363 Wrong type description for tagged type parameter.
8364 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
8365 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
8366 reference to a tagged type.
8367
8368 2010-02-09 Tristan Gingold <gingold@adacore.com>
8369
8370 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
8371 brothers of the parent.
8372
8373 2010-02-08 Tom Tromey <tromey@redhat.com>
8374
8375 PR c++/8017:
8376 * value.h: Update.
8377 * valops.c (search_struct_field): Make 'name' const.
8378 (search_struct_method): Likewise.
8379 (find_method_list): Make 'method' const.
8380 (value_struct_elt): Make 'name' and 'err' const.
8381 (value_find_oload_method_list): Make 'method' const.
8382 (find_overload_match): Make 'name' const.
8383 * eval.c (evaluate_subexp_standard): New locals function,
8384 function_name.
8385 <OP_FUNCALL>: Handle OP_SCOPE specially.
8386
8387 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
8388
8389 * infrun.c (handle_inferior_event): Do not look up regcache
8390 for exited processes.
8391
8392 2010-02-08 Chris Moller <moller@mollerware.com>
8393
8394 PR gdb/10728
8395 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8396 warn if found, and assume length = 1.
8397
8398 2010-02-08 Chris Moller <cmoller@redhat.com>
8399
8400 PR gdb/9067
8401 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
8402 (cp_print_static_field) Fix use of obstacks.
8403
8404 2010-02-08 Pedro Alves <pedro@codesourcery.com>
8405
8406 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
8407 resumed LWPs as resumed.
8408 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
8409 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
8410 of throwing an internal error. If an LWP of a process we're not
8411 waiting for reports a signal, don't force collecting a SIGSTOP,
8412 and if it was breakpoint hit in non-stop mode, cancel it. Don't
8413 go through all LWPs cancelling breakpoints in non-stop mode.
8414 (resume_stopped_resumed_lwps): New.
8415 (linux_nat_wait): Use it.
8416
8417 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
8418
8419 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
8420 i386/amd64 and i386/amd64-linux.
8421 (i386/i386-expedite): New.
8422 (i386/i386-linux-expedite): Likewise.
8423 (i386/amd64-expedite):Likewise.
8424 (i386/amd64-linux-expedite): Likewise.
8425 ($(outdir)/i386/i386-linux.dat): Likewise.
8426 ($(outdir)/i386/amd64.dat): Likewise.
8427 ($(outdir)/i386/amd64-linux.dat): Likewise.
8428
8429 * features/i386/32bit-core.xml: New.
8430 * features/i386/32bit-linux.xml: Likewise.
8431 * features/i386/32bit-sse.xml: Likewise.
8432 * features/i386/64bit-core.xml: Likewise.
8433 * features/i386/64bit-linux.xml: Likewise.
8434 * features/i386/64bit-sse.xml: Likewise.
8435 * features/i386/i386-linux.xml: Likewise.
8436 * features/i386/i386.xml: Likewise.
8437 * features/i386/amd64-linux.xml: Likewise.
8438 * features/i386/amd64.xml: Likewise.
8439 * features/i386/i386-linux.c: Likewise.
8440 * features/i386/i386.c: Likewise.
8441 * features/i386/amd64-linux.c: Likewise.
8442 * features/i386/amd64.c: Likewise.
8443
8444 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
8445
8446 PR c++/7935:
8447 * cp-support.h: Added char* alias element to using_direct data
8448 struct.
8449 (cp_add_using): Added char* alias argument.
8450 (cp_add_using_directive): Ditto.
8451 * cp-namespace.c: Updated with the above changes.
8452 (cp_lookup_symbol_imports): Check for aliases.
8453 * dwarf2read.c (read_import_statement): Figure out local alias
8454 for the import and pass it on to cp_add_using.
8455 (read_namespace): Pass alias argument to cp_add_using.
8456
8457 2010-02-05 Hui Zhu <teawater@gmail.com>
8458
8459 * defs.h (gdb_bfd_errmsg): New extern.
8460 * exec.c (exec_file_attach): Change bfd_errmsg to
8461 gdb_bfd_errmsg.
8462 * utils.c (AMBIGUOUS_MESS1): New macro.
8463 (AMBIGUOUS_MESS2): New macro.
8464 (gdb_bfd_errmsg): New function.
8465
8466 2010-02-04 Doug Evans <dje@google.com>
8467
8468 * solib-svr4.c (enable_break): Add comment.
8469
8470 2010-02-04 Anthony Green <green@moxielogic.com>
8471
8472 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
8473 gracefully.
8474
8475 2010-02-04 Tom Tromey <tromey@redhat.com>
8476
8477 * valops.c (search_struct_field): Account for
8478 value_embedded_offset. Fix check for virtual base past the end of
8479 the object. Use value_copy when making a slice of the value.
8480
8481 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8482
8483 PR tui/9622
8484 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
8485 only if gdb_stdout is a tty.
8486
8487 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
8488
8489 * target-descriptions.c: Include "osabi.h".
8490 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
8491 OSABI.
8492
8493 2010-02-04 Tristan Gingold <gingold@adacore.com>
8494
8495 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
8496 (macho_symtab_read): Adjust calls to macho_add_oso.
8497 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
8498 (macho_symfile_read): Adjust call to macho_oso_symfile.
8499 (macho_new_init): Move this function after declarations.
8500 (macho_symfile_init): Ditto.
8501 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
8502 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
8503
8504 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
8505
8506 Include MI command in remotelog.
8507
8508 * mi/mi-main.c (mi_execute_command): Call target_log_command.
8509
8510 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8511
8512 * remote.c (remote_state): Remove gdbarch.
8513 (init_remote_state): Don't set gdbarch.
8514 (remote_query_supported): Pass target_gdbarch instead of
8515 rs->gdbarch to gdbarch_qsupported.
8516
8517 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8518
8519 * gdbarch.sh: Add qsupported.
8520
8521 * gdbarch.c: Regenerated.
8522 * gdbarch.h: Likewise.
8523
8524 * remote.c (remote_state): Add gdbarch.
8525 (init_remote_state): Set gdbarch.
8526 (remote_query_supported): Support gdbarch_qsupported.
8527
8528 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
8529
8530 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
8531 __FreeBSD_kernel_version.
8532
8533 2010-02-03 Tristan Gingold <gingold@adacore.com>
8534
8535 * symfile.h (struct sym_fns): Add sym_relocate field.
8536 (default_symfile_relocate): New prototype.
8537 (symfile_relocate_debug_section): First argument is now an objfile.
8538 * symfile.c (default_symfile_relocate): Rename from
8539 symfile_relocate_debug_section, first argument is now an objfile.
8540 (symfile_relocate_debug_section): New function.
8541 * coffread.c (coff_sym_fns): Set sym_relocate field.
8542 * somread.c (som_sym_fns): Ditto.
8543 * mipsread.c (ecoff_sym_fns): Ditto.
8544 * machoread.c (macho_sym_fns): Ditto.
8545 * elfread.c (elf_sym_fns): Ditto.
8546 * dwarf2read.c (dwarf2_read_section): Ditto.
8547 * xcoffread.c (xcoff_sym_fns): Ditto.
8548 * dbxread.c (aout_sym_fns): Ditto.
8549 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
8550 (elfstab_build_psymtabs): Ditto.
8551
8552 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8553
8554 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
8555
8556 2010-02-02 Tom Tromey <tromey@redhat.com>
8557
8558 * valops.c (value_cast_structs): Try downcasting using the RTTI
8559 type.
8560
8561 2010-02-02 Tom Tromey <tromey@redhat.com>
8562
8563 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
8564 (gnuv2_baseclass_offset): Now static.
8565 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
8566 * gnu-v2-abi.h: Remove.
8567
8568 2010-02-02 Tom Tromey <tromey@redhat.com>
8569
8570 * m2-typeprint.c (m2_record_fields): Don't use
8571 TYPE_DECLARED_TYPE.
8572 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
8573 (struct main_type) <flag_declared_class>: New field.
8574 (struct cplus_struct_type) <declared_type>: Remove.
8575 <ntemplate_args>: Move earlier.
8576 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
8577 (DECLARED_TYPE_TEMPLATE): Remove.
8578 (TYPE_DECLARED_TYPE): Remove.
8579 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
8580 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
8581 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
8582 TYPE_DECLARED_TYPE.
8583
8584 2010-02-02 Tom Tromey <tromey@redhat.com>
8585
8586 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
8587 * valops.c (search_struct_field): Compute nbases after calling
8588 CHECK_TYPEDEF.
8589 (check_field): Call CHECK_TYPEDEF.
8590 * cp-valprint.c (cp_print_value): Pass correct address to
8591 baseclass_offset. Fix check for virtual base past the end of the
8592 object. Don't offset address passed to cp_print_value_fields or
8593 apply_val_pretty_printer.
8594 (cp_print_value_fields): Fix call to val_print.
8595 (cp_print_value_fields_rtti): New function.
8596 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
8597 * p-valprint.c (pascal_object_print_value_fields): Fix call to
8598 val_print.
8599 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
8600 offset to address.
8601 * language.h (struct language_defn) <la_val_print>: Document.
8602 * c-lang.h (cp_print_value_fields_rtti): Declare.
8603
8604 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8605
8606 PR libc/11214:
8607 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8608 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
8609 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8610
8611 2010-02-01 Michael Matz <matz@suse.de>
8612 Daniel Jacobowitz <dan@codesourcery.com>
8613
8614 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
8615 functions use a frame pointer.
8616
8617 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8618
8619 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
8620 by a conditional setting DYN_ADDR. Use DYN_ADDR.
8621 * config/djgpp/fnchange.lst: Add translations for
8622 symbol-without-target_section.exp and symbol-without-target_section.c.
8623
8624 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8625
8626 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
8627 (remote_breakpoint_for_pc): Correct invalid_p check.
8628 * gdbarch.c: Regenerated.
8629
8630 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8631
8632 * arm-tdep.c (arm_find_mapping_symbol): New function, from
8633 arm_pc_is_thumb.
8634 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
8635 (extend_buffer_earlier): New function.
8636 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
8637 (arm_adjust_breakpoint_address): New function.
8638 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
8639
8640 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8641
8642 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
8643 (arm_linux_thumb2_le_breakpoint): New constants.
8644 (arm_linux_init_abi): Set thumb2_breakpoint and
8645 thumb2_breakpoint_size.
8646 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
8647 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
8648 Implement support for single stepping through IT blocks if
8649 a 32-bit Thumb breakpoint instruction is available.
8650 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
8651 is available, use it when needed.
8652 (arm_remote_breakpoint_from_pc): New function.
8653 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
8654 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
8655 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
8656
8657 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8658
8659 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
8660 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
8661 * gdbarch.c, gdbarch.h: Regenerated.
8662 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
8663 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
8664 gdbarch_remote_breakpoint_from_pc.
8665
8666 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8667
8668 * infrun.c (prepare_to_proceed): Handle other signals which might
8669 match a breakpoint.
8670 (handle_inferior_event): Move the check for unusual breakpoint
8671 signals earlier.
8672
8673 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
8674
8675 amd64 - function returning record with field straddling 2 registers.
8676 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
8677 a record of length <= 16 in which a field straddles the two
8678 eightbytes.
8679
8680 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8681
8682 Implement return values on amd64-windows.
8683 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
8684 (amd64_windows_return_value): New function.
8685 (amd64_windows_init_abi): Call set_gdbarch_return_value with
8686 amd64_windows_return_value.
8687
8688 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8689
8690 amd64-windows: 32 bytes allocated on stack by caller for integer
8691 parameter registers.
8692 * i386-tdep.h (struct gdbarch_tdep): Add new field
8693 integer_param_regs_saved_in_caller_frame.
8694 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8695 tdep->integer_param_regs_saved_in_caller_frame to 1.
8696 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
8697 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
8698
8699 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8700
8701 amd64-windows: memory args passed by pointer during function calls.
8702 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
8703 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
8704 where tdep->memory_args_by_pointer is non-zero.
8705 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8706 tdep->memory_args_by_pointer to 1.
8707
8708 2010-01-29 Joel Brobecker <brobecker@adacore.com>
8709
8710 amd64-windows: Integer parameters in function calls.
8711 * i386-tdep.h (enum amd64_reg_class): New, moved here from
8712 amd64-tdep.c.
8713 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
8714 call_dummy_integer_regs, and classify.
8715 * amd64-tdep.h (amd64_classify): Add declaration.
8716 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
8717 (amd64_reg_class): Delete, moved to i386-tdep.h.
8718 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
8719 Replace call to amd64_classify by call to tdep->classify.
8720 (amd64_push_arguments): Get the list of registers to use for
8721 passing integer parameters from the gdbarch tdep structure,
8722 rather than using a hardcoded one. Replace calls to amd64_classify
8723 by calls to tdep->classify.
8724 (amd64_push_dummy_call): Get the register number used for
8725 the "hidden" argument from tdep->call_dummy_integer_regs.
8726 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
8727 and tdep->call_dummy_integer_regs. Set tdep->classify.
8728 * amd64-windows-tdep.c: Add include of gdbtypes.h.
8729 (amd64_windows_dummy_call_integer_regs): New static global.
8730 (amd64_windows_classify): New function.
8731 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
8732 tdep->call_dummy_integer_regs and tdep->classify.
8733
8734 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
8735
8736 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
8737 for the new regcache. All callers updated.
8738 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
8739 (get_thread_arch_regcache): Do not set aspace here.
8740 * regcache.h (regcache_xmalloc): Update declaration.
8741
8742 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
8743 regcache_xmalloc updated.
8744
8745 2010-01-28 Joel Brobecker <brobecker@adacore.com>
8746
8747 Another -Wunused-function error in procfs.c (sparc-solaris)
8748 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
8749 Only define if SYS_syssgi is defined.
8750 (remove_dbx_link_breakpoint): Delete declaration. Move up.
8751 (dbx_link_addr, insert_dbx_link_bpt_in_file)
8752 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
8753 is itself defined.
8754
8755 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
8756
8757 * windows-nat.c (windows_initialization_done): New variable.
8758 (get_windows_debug_event): Issue error when process dies before
8759 completely initializing.
8760 (do_initial_windows_stuff): Set flag to indicate when we are done with
8761 the initial steps of attaching to the child.
8762
8763 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8764
8765 * symtab.h (struct symbol <symtab>): New comment on NULL values.
8766
8767 2010-01-27 Doug Evans <dje@google.com>
8768
8769 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
8770
8771 * breakpoint.c (bpstat_stop_status): Delete useless code.
8772
8773 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8774
8775 * printcmd.c (display_uses_solib_p): Remove variable section. Access
8776 objfile via SYMBOL_SYMTAB.
8777
8778 2010-01-26 Tom Tromey <tromey@redhat.com>
8779
8780 PR exp/7643:
8781 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
8782 coerce_array on result.
8783
8784 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8785
8786 * cp-namespace.c (cp_lookup_symbol_namespace): Added
8787 search_parent argument.
8788 (cp_add_using): Initialize 'searched' field.
8789 (reset_directive_searched): New function.
8790 * cp-support.h: Add 'searched' field to using_direct struct.
8791 (cp_lookup_symbol_imports): Ditto.
8792 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
8793 Perform recursive search.
8794 Implement non parent search.
8795 * valops.c (value_maybe_namespace_elt): Updated.
8796
8797 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8798
8799 PR gdb/10929:
8800 * dwarf2read.c (read_lexical_block_scope): Create blocks for
8801 scopes which contain using directives even if they contain no
8802 declarations.
8803 * symtab.c (lookup_symbol_aux): Pass lowest level block to
8804 la_lookup_symbol_nonlocal.
8805 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
8806 cp_lookup_symbol_namespace.
8807 (cp_lookup_symbol_namespace): Perform an import lookup at every
8808 block level.
8809 (cp_lookup_symbol_imports): New function.
8810 (cp_lookup_symbol_in_namespace): New function.
8811
8812 2010-01-25 Tom Tromey <tromey@redhat.com>
8813
8814 PR gdb/11049:
8815 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
8816 result.
8817
8818 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8819
8820 * configure.ac: Only use host_os part when disabling TUI on osf.
8821 Use test to check variables, prefix strings with x.
8822 * configure: Regenerate.
8823
8824 * solib-osf.c (osf_current_sos): Initialize tail.
8825
8826 2010-01-25 gingold <gingold@adacore.com>
8827
8828 * windows-nat.c (windows_continue): Use %x to print thread id.
8829 (get_windows_debug_event): Ditto.
8830
8831 2010-01-22 Tom Tromey <tromey@redhat.com>
8832
8833 PR symtab/11199:
8834 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
8835 type and arguments. Use smash_to_methodptr_type.
8836 (read_structure_type): Call quirk_gcc_member_function_pointer
8837 later.
8838 * gdbtypes.h (smash_to_methodptr_type): Declare.
8839 * gdbtypes.c (smash_to_methodptr_type): New function.
8840 (lookup_methodptr_type): Use it.
8841
8842 2010-01-21 Tom Tromey <tromey@redhat.com>
8843
8844 PR symtab/11198:
8845 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
8846 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
8847 * glibc-tdep.c (find_minsym_and_objfile): Remove.
8848 (glibc_skip_solib_resolver): Use
8849 lookup_minimal_symbol_and_objfile.
8850
8851 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
8852
8853 * inflow.c (check_syscall): Guard by #if clause for GO32 and
8854 WIN32 targets.
8855
8856 2010-01-20 Tom Tromey <tromey@redhat.com>
8857
8858 PR backtrace/10770:
8859 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
8860 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
8861 * dwarf2expr.c (new_dwarf_expr_context): Allocate
8862 dwarf_stack_values, not CORE_ADDRs.
8863 (execute_stack_op): Change DW_OP_div and comparison operators to
8864 use signed operands.
8865
8866 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
8867
8868 Per-inferior args and tty and environment.
8869
8870 * infcmd.c (inferior_args): Rename to ...
8871 (inferior_args_scratch): ... this.
8872 (inferior_io_terminal): Rename to ...
8873 (inferior_io_terminal_scratch): ... this.
8874 (inferior_argc, inferior_argv): Remove.
8875 (set_inferior_io_terminal, get_inferior_io_terminal): Store
8876 inside current_inferior().
8877 (set_inferior_tty_command, show_inferior_tty_command): New.
8878 (get_inferior_args, set_inferior_args): Store inside
8879 current_inferior().
8880 (notice_args_set): Likewise and rename to...
8881 (set_args_command): ... this.
8882 (set_inferior_args_vector): Likewise.
8883 (notice_args_read): Rename to...
8884 (show_args_command): ...new.
8885 (tty_command): Remove.
8886 (run_command_1): Don't free old args, as they are freed by
8887 set_inferior_arg now.
8888 (run_no_args_command): Likewise.
8889 (inferior_environ): Remove.
8890 (run_command_1): Use environment of the current inferior.
8891 (environment_info, set_environment_command)
8892 (unset_environment_command, path_info, path_command): Likewise.
8893 (_initialize_infcmd): Adjust for function and variable renames.
8894 Do not init inferior_environ.
8895 * inferior.h (set_inferior_arg): Adjust prototype.
8896 (struct inferior): New fields args, argc, argv, terminal, environment.
8897 (inferior_environ): Remove declaration.
8898 * inferior.c (free_inferior): Free new fields.
8899 (add_inferior_silent): Initialize 'environment' field.
8900 * main.c (captured_main): Set arguments only after the initial
8901 inferior has been created. Set set_inferior_io_terminal,
8902 not tty_command.
8903 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
8904 inferior.
8905 (_initialize_mi_cmd_env): Adjust for disappearance of global
8906 inferior_environ.
8907 * solib.c (solib_find): Use environment of the current inferior.
8908
8909 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8910
8911 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
8912 HAVE_PYTHON.
8913 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
8914
8915 2010-01-20 Joel Brobecker <brobecker@adacore.com>
8916
8917 Get rid of ada-lang.c:function_name_from_pc.
8918 * ada-lang.c: Add "stack.h" #include.
8919 (function_name_from_pc): Delete.
8920 (is_known_support_routine): Replace call to function_name_from_pc
8921 by call to find_frame_funname.
8922 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8923
8924 2010-01-19 Tom Tromey <tromey@redhat.com>
8925
8926 PR c++/11026:
8927 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
8928 objfile obstack.
8929
8930 2010-01-19 Tom Tromey <tromey@redhat.com>
8931
8932 * top.c (stop_sig, float_handler, do_nothing): Remove.
8933
8934 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8935
8936 * breakpoint.c (watchpoint_check): Check the call
8937 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
8938 Extend the comment.
8939 * config/djgpp/fnchange.lst: Add translations for
8940 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
8941 watchpoint-cond-gone-stripped.c.
8942
8943 2010-01-19 Tom Tromey <tromey@redhat.com>
8944
8945 PR c++/8000:
8946 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
8947 into parent scope, and enumerator into grandparent scope.
8948
8949 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8950
8951 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
8952
8953 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8954
8955 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
8956 i[34567]86-*-solaris2.1[0-9]*.
8957 * configure.tgt: Likewise.
8958
8959 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8960
8961 * NEWS: Document the source command enhancement allowing it
8962 to load Python scripts. Document the "set/show script-extension"
8963 commands.
8964
8965 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8966
8967 Add -Wunused-function to compile flags.
8968 * configure.ac: Add -Wunused-function to build_warnings.
8969 * configure: Regenerate.
8970
8971 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8972
8973 "delete" ada-lex.c:input function, not used.
8974 * ada-lex.l: #define YY_NO_INPUT.
8975
8976 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8977
8978 Delete free_named_symtabs and associated cleanup.
8979 * symfile.h (free_named_symtabs): Delete declaration.
8980 * symfile.c: Remove some commented out code (clear_symtab_users_once).
8981 (cashier_psymtab): Comment function out.
8982 Delete declaration.
8983 (free_named_symtabs): Delete.
8984 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
8985 * dbxread.c (end_psymtab): Likewise.
8986 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
8987 * exec.c (exec_close_1): Ditto.
8988 * xcoffread.c (xcoff_end_psymtab): Likewise.
8989
8990 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8991
8992 * stack.c (print_block_frame_labels): Comment function out.
8993
8994 2010-01-19 Joel Brobecker <brobecker@adacore.com>
8995
8996 Delete unused or undefined functions.
8997 * breakpoint.c (ep_parse_optional_filename): Delete.
8998 * dcache.c (dcache_write_line): Remove declaration.
8999 * infrun.c (build_infrun): Remove declaration.
9000 * tracepoint.c (tracepoint_save_command): Remove declaration.
9001 * linux-nat.c (init_lwp_list): Delete. No longer used.
9002 * event-loop.c (check_async_signal_handlers): Delete declaration.
9003 * infrun.c (init_execution_control_state): Delete.
9004 (proceed): Update comment to avoid mentioning
9005 init_execution_control_state.
9006 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
9007 * ada-lang.c (ada_to_static_fixed_value): Delete.
9008 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
9009 * cp-namespace.c (cp_copy_usings): Delete.
9010 * xml-syscall.c (xml_number_of_syscalls): Delete.
9011 * progspace.c (find_program_space_by_num): Delete.
9012 * inflow.c (handle_sigio): Delete declaration.
9013 * hppa-tdep.c (hppa_alignof): Delete.
9014 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
9015 (mipsnbsd_core_osabi_sniffer): Delete.
9016
9017 2010-01-18 Tom Tromey <tromey@redhat.com>
9018
9019 PR c++/9680:
9020 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
9021 (CONST_CAST): New tokens.
9022 (exp): Add new productions.
9023 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
9024 reinterpret_cast.
9025 (is_cast_operator): New function.
9026 (yylex): Handle cast operators specially.
9027 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
9028 UNOP_REINTERPRET_CAST>: New cases.
9029 * expprint.c (print_subexp_standard): Likewise.
9030 (op_name_standard): Likewise.
9031 (dump_subexp_body_standard): Likewise.
9032 * parse.c (operator_length_standard): Likewise.
9033 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
9034 UNOP_REINTERPRET_CAST.
9035 * gdbtypes.c (class_types_same_p): New function.
9036 (is_ancestor): Use it.
9037 (is_public_ancestor): New function.
9038 (is_unique_ancestor_worker): Likewise.
9039 (is_unique_ancestor): Likewise.
9040 * gdbtypes.h (class_types_same_p, is_public_ancestor)
9041 (is_unique_ancestor): Declare.
9042 * valops.c (value_reinterpret_cast): New function.
9043 (dynamic_cast_check_1): Likewise.
9044 (dynamic_cast_check_2): Likewise.
9045 (value_dynamic_cast): Likewise.
9046 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
9047
9048 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9049
9050 Fix build failure when building without Python support.
9051 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
9052 is not defined.
9053
9054 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9055
9056 Use XVS field type instead of doing a parallel lookup.
9057 * ada-lang.c (ada_get_base_type): Follow the XVS field type
9058 if it is a reference type instead of doing a type lookup using
9059 the XVS field name.
9060
9061 2010-01-18 Joel Brobecker <brobecker@adacore.com>
9062
9063 Trust PAD types instead of using PAD___XVS.
9064 * ada-lang.c (trust_pad_over_xvs): New static variable.
9065 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
9066 parallel XVS type, follow the XVS type instead of the PAD type.
9067 (unwrap_value): Make sure that there is no parallel XVE type
9068 before returning the value as is.
9069 (set_ada_list, show_ada_list): New static variables.
9070 (set_ada_command, show_ada_command): New functions.
9071 (_initialize_ada_language): Add new "set/show ada" prefix commands.
9072 Add new "set/show ada trust-PAD-over-XVS" setting.
9073
9074 2010-01-18 Tom Tromey <tromey@redhat.com>
9075 Thiago Jung Bauermann <bauerman@br.ibm.com>
9076
9077 Allow "source" to load python scripts.
9078 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
9079 * python/python.c (source_python_script): New function.
9080 * python/python.h (source_python_script): Add declaration.
9081 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
9082 (script_ext_off, script_ext_soft, script_ext_strict)
9083 (script_ext_enums, script_ext_mode): New static constants.
9084 (show_script_ext_mode, find_and_open_script): New functions.
9085 (source_script): Enhance to handle Python scripts.
9086 (init_cli_cmds): Add set/show script-extension commands.
9087
9088 2010-01-16 Stan Shebs <stan@codesourcery.com>
9089
9090 * tracepoint.h (struct trace_status): Use unsigned long long
9091 instead of size_t.
9092 * tracepoint.c (trace_status_command): Fix printf directive.
9093 (trace_save_command): Check fwrite returns, fix printf directive.
9094 (trace_filename): New global.
9095 (tfile_open): Set it, check read returns.
9096 (tfile_close): Free trace_filename.
9097 (tfile_get_traceframe_address): Check read returns.
9098 (tfile_trace_find): Ditto.
9099 (tfile_fetch_registers): Ditto.
9100 (tfile_xfer_partial): Ditto.
9101 (tfile_get_trace_state_variable_value): Ditto.
9102
9103 2010-01-15 Stan Shebs <stan@codesourcery.com>
9104
9105 Add trace file support.
9106 * tracepoint.h (enum trace_stop_reason): New enum.
9107 (struct trace_status): New struct.
9108 (parse_trace_status): Declare.
9109 (struct uploaded_tp): Move here from remote.c,
9110 add fields for actions.
9111 (struct uploaded_tsv): New struct.
9112 * tracepoint.c (tfile_ops): New target vector.
9113 (trace_fd): New global.
9114 (tfile_open): New function.
9115 (tfile_close): New function.
9116 (tfile_files_info): New function.
9117 (tfile_get_trace_status): New function.
9118 (tfile_get_traceframe_address): New function.
9119 (tfile_trace_find): New function.
9120 (tfile_fetch_registers): New function.
9121 (tfile_xfer_partial): New function.
9122 (tfile_get_trace_state_variable_value): New function.
9123 (init_tfile_ops): New function.
9124 (_initialize_tracepoint): Call it, add tfile target.
9125 (trace_status): New global.
9126 (current_trace_status): New function.
9127 (trace_running_p): Remove, change all users to get from
9128 current_trace_status()->running.
9129 (get_trace_status): Remove.
9130 (trace_status_command): Call target_get_trace_status directly,
9131 report more detail including tracing stop reasons.
9132 (trace_find_command): Always allow tfind on a file.
9133 (trace_find_pc_command): Ditto.
9134 (trace_find_tracepoint_command): Ditto.
9135 (trace_find_line_command): Ditto.
9136 (trace_find_range_command): Ditto.
9137 (trace_find_outside_command): Ditto.
9138 (trace_frames_offset, cur_offset): Declare as off_t.
9139 (trace_regblock_size): Rename from reg_size, update users.
9140 (parse_trace_status): New function.
9141 (tfile_interp_line): New function.
9142 (disconnect_or_stop_tracing): Ensure current trace
9143 status before asking what to do.
9144 (stop_reason_names): New global.
9145 (trace_save_command): New command.
9146 (get_uploaded_tp): Move here from remote.c.
9147 (find_matching_tracepoint): Ditto.
9148 (merge_uploaded_tracepoints): New function.
9149 (parse_trace_status): Use stop_reason_names.
9150 (_initialize_tracepoint): Define tsave command.
9151 * target.h (target_ops): New fields to_save_trace_data,
9152 to_upload_tracepoints, to_upload_trace_state_variables,
9153 to_get_raw_trace_data, change to_get_trace_status
9154 to take a pointer to a status struct.
9155 (target_save_trace_data): New macro.
9156 (target_upload_tracepoints): New macro.
9157 (target_upload_trace_state_variables): New macro.
9158 (target_get_raw_trace_data): New macro.
9159 * target.c (update_current_target): Add new methods, change
9160 signature of to_get_trace_status.
9161 * remote.c (hex2bin): Make globally visible.
9162 (bin2hex): Ditto.
9163 (remote_download_trace_state_variable): Download name also.
9164 (remote_get_trace_status): Update parameter, use
9165 parse_trace_status.
9166 (remote_save_trace_data): New function.
9167 (remote_upload_tracepoints): New function.
9168 (remote_upload_trace_state_variables): New function.
9169 (remote_get_raw_trace_data): New function.
9170 (remote_start_remote): Use them.
9171 (_initialize_remote_ops): Add operations.
9172 * ax-gdb.c: Include breakpoint.h.
9173 * breakpoint.c (create_tracepoint_from_upload): Use
9174 break_command_really, return tracepoint, warn about unimplemented
9175 parts.
9176 * NEWS: Mention trace file addition.
9177
9178 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9179
9180 Fix compilation warning on gcc-3.4.
9181 * exec.c (print_section_info): Move the `displacement' variable
9182 initialization to its declaration.
9183
9184 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9185
9186 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
9187 comparison.
9188
9189 2010-01-15 Eric Botcazou <botcazou@adacore.com>
9190
9191 "info tasks" broken by typedefs in ATCB type definitions.
9192 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
9193 ada_check_typedef before retrieving the length of the type for
9194 regular fields.
9195
9196 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9197
9198 Do not use name-based lookup for unconstrained packed arrays.
9199 * ada-lang.c (find_parallel_type_by_descriptive_type):
9200 Limit the fallback to name-based lookups to the case where
9201 the type is a constrained packed array.
9202
9203 2010-01-15 Joel Brobecker <brobecker@adacore.com>
9204
9205 Enhance gdb-gdb.py to handle main_type.type_specific.
9206 * gdb-gdb.py: Print the type-specific part of struct main_type.
9207
9208 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9209
9210 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
9211 * configure: Regenerate.
9212 * config.in: Regenerate.
9213 * utils.c: Include sys/resource.h.
9214 (dump_core, can_dump_core): New.
9215 (internal_vproblem): Update the comment. Check can_dump_core while
9216 setting dump_core_p. Replace two abort calls by dump_core calls.
9217
9218 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9219 Eli Zaretskii <eliz@gnu.org>
9220
9221 * NEWS: Document the PIE support.
9222
9223 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9224
9225 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
9226 (check_is_pie_binary, _initialize_linux_tdep): Remove.
9227
9228 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9229
9230 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
9231 Replace exec_entry_point call by bfd_get_start_address.
9232
9233 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9234
9235 Support Valgrind attachments broken by the PIE support.
9236 * auxv.c: Include gdbcore.h.
9237 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
9238 parameters ops, object and annex. Remove their assertions.
9239 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
9240 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
9241 (memory_xfer_auxv): ... here.
9242 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
9243 memory_xfer_auxv.
9244 * procfs.c (procfs_xfer_partial): Likewise.
9245 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
9246 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
9247 (svr4_solib_create_inferior_hook): Conditionalize the
9248 svr4_relocate_main_executable call.
9249
9250 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9251
9252 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
9253 target_section. Find SECT in current_target_sections, gdb_assert it.
9254 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
9255 New variable abfd.
9256 * symtab.c (lookup_objfile_from_block): Return the binary file instead
9257 of separate debug info file.
9258
9259 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9260
9261 Support PIEs with no symfile_objfile.
9262 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
9263 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
9264
9265 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9266
9267 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
9268 code part to ...
9269 (svr4_static_exec_displacement): ... a new function.
9270 (svr4_exec_displacement): New function.
9271 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
9272 new_offsets using alloca now. Remove variable old_chain and changed.
9273 Call objfile_relocate unconditionally now.
9274
9275 2010-01-14 Doug Evans <dje@google.com>
9276
9277 * gdbtypes.c (arch_flags_type): Fix comment.
9278 * gdbtypes.h (arch_composite_type): Fix comment.
9279
9280 2009-01-14 Tristan Gingold <gingold@adacore.com>
9281
9282 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
9283 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
9284 to symbol_file_add_from_bfd. Add OSO as separate objfile.
9285 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
9286 macho_add_oso_symfile.
9287 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
9288
9289 2010-01-14 Joel Brobecker <brobecker@adacore.com>
9290
9291 Tru64: Dead threads are never deleted.
9292 * dec-thread.c (dec_thread_ptid_is_alive): New function.
9293 (dec_thread_count_gdb_threads): Fix counter increment.
9294 (dec_thread_add_gdb_thread): Fix *listp increment.
9295 (resync_thread_list): Fix bug in deletion of dead threads that
9296 caused all threads to be deleted, instead of just the dead ones.
9297
9298 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
9299
9300 PR python/10705
9301
9302 * python/python-internal.h: Add lazy_string_object_type
9303 definition.
9304 (create_lazy_string_object, gdbpy_initialize_lazy_string)
9305 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
9306 * python/py-value.c (valpy_lazy_string): New function.
9307 (convert_value_from_python): Add lazy string conversion.
9308 * python/py-prettyprint.c (pretty_print_one_value): Check if
9309 return is also a lazy string.
9310 (print_string_repr): Add lazy string printing branch.
9311 (print_children): Likewise.
9312 * python/py-lazy-string.c: New file. Implement lazy strings.
9313 * python/python.c (_initialize_python): Call
9314 gdbpy_initialize_lazy_string.
9315 * varobj.c (value_get_print_value): Add lazy string printing
9316 branch. Account for encoding.
9317 * c-lang.c (c_printstr): Account for new encoding argument. If
9318 encoding is NULL, find encoding suited for type, otherwise use
9319 user encoding.
9320 * language.h (language_defn): Add encoding argument.
9321 (LA_PRINT_STRING): Likewise.
9322 * language.c (unk_lang_printstr): Update to reflect new encoding
9323 argument to language_defn.
9324 * ada-lang.h (ada_printstr): Likewise.
9325 * c-lang.h (c_printstr): Likewise.
9326 * p-lang.h (pascal_printstr);
9327 * f-lang.c (f_printstr): Likewise.
9328 * m2-lang.c (m2_printstr): Likewise.
9329 * objc-lang.c (objc_printstr): Likewise.
9330 * p-lang.c (pascal_printstr): Likewise.
9331 * scm-lang.c (scm_printstr): Likewise.
9332 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
9333 encoding argument.
9334 * ada-valprint.c (ada_printstr): Likewise.
9335 * f-valprint.c (f_val_print): Likewise
9336 * m2-valprint.c (m2_val_print): Likewise.
9337 * p-valprint.c (pascal_val_print): Likewise.
9338 * expprint.c (print_subexp_standard): Likewise.
9339 * valprint.c (val_print_string): Likewise.
9340 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
9341 (SUBDIR_PYTHON_SRCS): Likewise.
9342 (py-lazy-string.o): New rule.
9343
9344 2010-01-13 Doug Evans <dje@google.com>
9345
9346 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
9347 uninitialized" warning from gcc on local `tree'.
9348
9349 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
9350
9351 Implement core awareness.
9352
9353 * bcache.c (compare_ints): Remove
9354 (print_percentage): Use compare_positive_ints.
9355 * defs.h (compare_positive_ints): Declare.
9356 * linux-nat.h (struct lin_lwp): New field core.
9357 (linux_nat_core_of_thread_1): Declare.
9358 * linux-nat.c (add_lwp): Init the 'core' field.
9359 (linux_nat_wait_1): Record the core.
9360 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
9361 (linux_nat_add_target): Register the above.
9362 * linux-thread-db.c (update_thread_core): New.
9363 (thread_db_find_new_threads): Update core information for
9364 every thread.
9365 * remote.c (struct private_thread_info): New.
9366 (free_private_thread_info, demand_private_info): New.
9367 (PACKET_qXfer_threads, use_osdata_threads): New.
9368 (struct thread_item, threads_parsing_context
9369 (start_thread, end_thread, thread_attributes)
9370 (thread_children, threads_children, threads_elements): New.
9371 (remote_threads_info): Try qXfer:threads before anything
9372 else.
9373 (remote_protocol_packets): Register qXfer:threads.
9374 (remote_open_1): Init use_osdata_threads.
9375 (struct stop_reply): New field 'core'.
9376 (remote_parse_stop_reply): Parse core number.
9377 (process_stop_reply): Record core number.
9378 (remote_xfer_partial): Handle qXfer:threads.
9379 (remote_core_of_thread): New.
9380 (init_remote_ops): Register remote_core_of_thread.
9381 (_initialize_remote): Register qXfer:read.
9382 * target.c (target_core_of_thread): New
9383 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
9384 (struct target_ops): New field to_core_of_threads.
9385 (target_core_of_thread): Declare.
9386 * gdbthread.h (struct thread_info): New field private_dtor.
9387 * thread.c (print_thread_info): Report the core.
9388 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
9389 * utils.c (compare_positive_ints): New.
9390 * features/threads.dtd: New.
9391 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
9392 * mi/mi-main.c (struct collect_cores_data, collect_cores)
9393 (do_nothing, free_vector_of_osdata_items)
9394 (splay_tree_int_comparator, free_splay_tree): New.
9395 (print_one_inferior_data): Implemented printing of selected
9396 inferiors. Collect and print cores.
9397 (output_cores): New.
9398 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
9399 thread groups together with --available.
9400
9401 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9402
9403 * configure: Regenerate (for _STRUCTURED_PROC).
9404
9405 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9406
9407 Delete dead function.
9408 * ada-lang.c (extract_string): Delete. No longer used.
9409
9410 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9411
9412 Fix -Wunused warning in dec-thread.c.
9413 * dec-thread.c (dec_thread_count_gdb_threads)
9414 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
9415
9416 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9417
9418 * ada-valprint.c (ada_print_floating): Remove trailing space.
9419
9420 2010-01-12 Joel Brobecker <brobecker@adacore.com>
9421
9422 Add support for DW_AT_GNAT_descriptive_type.
9423 * gdbtypes.h (enum type_specific_kind): New enum.
9424 (struct main_type) [type_specific_field]: New component.
9425 [type_specific]: Add new component "gnat_stuff".
9426 (struct gnat_aux_type): New type.
9427 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
9428 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
9429 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
9430 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
9431 (TYPE_SPECIFIC_FIELD): New macros.
9432 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
9433 type does not hold any cplus-specific data.
9434 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
9435 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
9436 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
9437 cplus-specific data.
9438 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
9439 Set new component TYPE_SPECIFIC_FIELD (type).
9440 (gnat_aux_default): New constant.
9441 (allocate_gnat_aux_type): New function.
9442 (init_type): Add initialization the type-specific stuff for
9443 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
9444 (print_gnat_stuff): New function.
9445 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
9446 specific data. Adjust code that prints the contents of the
9447 type-specific union using the TYPE_SPECIFIC_FIELD value.
9448 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
9449 the type cplus stuff for Ada types.
9450 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
9451 Error out if these routines are called with an Ada type.
9452 (read_structure_type, read_array_type, read_subrange_type):
9453 Add call to set_descriptive_type.
9454 (set_die_type): Initialize the gnat-specific data if necessary.
9455 (need_gnat_info, die_descriptive_type, set_descriptive_type):
9456 New functions.
9457 * ada-lang.c (decode_constrained_packed_array_type): Use
9458 decode_constrained_packed_array_type instead of doing a standard
9459 lookup to locate a parallel type.
9460 (find_parallel_type_by_descriptive_type): New function.
9461 (ada_find_parallel_type_with_name): New function.
9462 (ada_find_parallel_type): Reimplement using
9463 ada_find_parallel_type_with_name.
9464 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
9465 to check if type has a cplus stuff.
9466 * linespec.c (total_number_of_methods): Likewise.
9467 * mdebugread.c (new_type): Likewise.
9468
9469 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9470
9471 * NEWS: Document the 0b binary number prefix parsing.
9472
9473 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9474
9475 * objfiles.c (objfile_relocate1): Change the return type to int.
9476 Describe the new return value. Return non-zero if data changed.
9477 (objfile_relocate): New variable changed. Set it. Call
9478 breakpoint_re_set depending on CHANGED.
9479
9480 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9481
9482 Implement binary numbers parsing.
9483 * c-exp.y (parse_number): New case 'b' and 'B'.
9484
9485 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9486 Tristan Gingold <gingold@adacore.com>
9487
9488 * solib.c (info_sharedlibrary_command): Replace
9489 objfile_has_partial_symbols and objfile_has_full_symbols calls by
9490 objfile_has_symbols.
9491
9492 2010-01-10 Joel Brobecker <brobecker@adacore.com>
9493
9494 * NEWS: Document the improvements made to the mips-irix port.
9495
9496 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9497
9498 Fix the documentation of valprint.c:value_print.
9499 * valprint.c (value_print): Update the function description to
9500 mention that the syntax of the output follows the current_language,
9501 not necessarily C.
9502
9503 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9504
9505 Fix displacement of separate debug info files.
9506 * objfiles.c (objfile_relocate): Rename to ...
9507 (objfile_relocate1): ... here and make it static. Extend the comment.
9508 (objfile_relocate): New function.
9509 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
9510 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
9511 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
9512 allocated using alloca.
9513 * symfile.c (copy_section_addr_info): Remove.
9514 (build_section_addr_info_from_objfile): Make it global. New variables
9515 addr_bit and mask, use them.
9516 * symfile.h (build_section_addr_info_from_objfile): New prototype.
9517 (copy_section_addr_info): Remove.
9518
9519 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9520
9521 Signal unwinder for mips-irix N32.
9522 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
9523 tramp-frame.h.
9524 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
9525 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
9526 (SIGCONTEXT_LO_OFF): New macros.
9527 (mips_irix_n32_tramp_frame_init): New function.
9528 (mips_irix_n32_tramp_frame): New static constant.
9529 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
9530
9531 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9532
9533 Breakpoint in shared library does not work on mips-irix.
9534 * procfs.c: #include "observer.h".
9535 (procfs_inferior_created): New function, moving here the code
9536 which unsets the syssgi syscall-exit notifications.
9537 (procfs_create_inferior): Remove the code which unsets the syssgi
9538 syscall-exit notifications. It is too early to do this here.
9539 (_initialize_procfs): Attach the procfs_inferior_created observer.
9540
9541 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9542
9543 Wrong return convention for arrays (mips-irix).
9544 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
9545 128 bits or smaller are returned the same way as structs
9546 and unions of the the same size.
9547
9548 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9549
9550 Cannot set the PC on mips-irix.
9551 * irix5-nat.c (fill_gregset): Check regno against the raw PC
9552 register number, no the cooked one.
9553
9554 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9555
9556 Error while loading core file on mips-irix.
9557 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
9558 if debugging from a core file.
9559
9560 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9561
9562 GDB hangs when attaching to process on mips-irix.
9563 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
9564 attaching to a process.
9565
9566 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9567
9568 Use the correct breakpoint instruction on mips-irix.
9569 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
9570 containing the correct breakpoint instruction to use on mips-irix.
9571 Use it when the osabi is GDB_OSABI_IRIX.
9572
9573 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9574
9575 -Wunused warning in procfs.c (mips-irix only).
9576 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
9577 throughout instead of using praddset and prdelset respectively.
9578
9579 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9580
9581 GDB crash while stepping into function.
9582 * infrun.c (handle_inferior_event): Refetch the current frame
9583 after handling what.main_action, in case that pointer became
9584 dangling.
9585
9586 2010-01-09 Joel Brobecker <brobecker@adacore.com>
9587
9588 Fix build failure of solaris-hosted cross debuggers.
9589 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
9590
9591 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
9592
9593 Fix build failure on sparc-solaris.
9594 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
9595
9596 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9597
9598 Move some symfile code into subroutines.
9599 * symfile.h (relative_addr_info_to_section_offsets)
9600 (addr_info_make_relative): New prototypes.
9601 * symfile.c (default_symfile_offsets): Move a part to ...
9602 (relative_addr_info_to_section_offsets): ... this new function.
9603 (default_symfile_offsets): Call it.
9604 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
9605 this part to ...
9606 (addr_info_make_relative): ... this new function.
9607
9608 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9609
9610 Add from_tty to solib_create_inferior_hook.
9611 * infcmd.c (post_create_inferior): Move solib_add after
9612 solib_create_inferior_hook. Pass from_tty to
9613 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
9614 0 from_tty and comment why.
9615 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
9616 * linux-nat.c (linux_child_follow_fork): Likewise.
9617 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
9618 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
9619 from_tty.
9620 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
9621 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
9622 * solib-null.c (null_solib_create_inferior_hook): Likewise.
9623 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
9624 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
9625 * solib-som.c (som_solib_create_inferior_hook): Likewise.
9626 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
9627 Pass it to svr4_so_ops.solib_create_inferior_hook.
9628 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
9629 from_tty.
9630 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
9631 solib_add.
9632 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
9633 enable_break.
9634 * solib-target.c (solib_target_solib_create_inferior_hook): New
9635 parameter from_tty.
9636 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
9637 it to ops->solib_create_inferior_hook.
9638 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
9639 Move solib_add after solib_create_inferior_hook, call it now with
9640 from_tty as 0. New comment there.
9641 * solib.h (solib_create_inferior_hook): New parameter from_tty.
9642 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
9643 Likewise.
9644
9645 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
9646
9647 Fix multiexec race.
9648 * infrun.c (handle_inferior_event): Use get_thread_regcache
9649 with events ptid, not get_current_regcache.
9650
9651 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9652
9653 GDB crash with empty executable name (MinGW).
9654 * source.c (openp): Add assert that parameter string is not NULL.
9655 if parameter string is an empty string, then return with a failure
9656 immediately.
9657
9658 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9659
9660 Get rid of support for VAX Floats.
9661 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9662 (ada_vax_float_print_function): Delete.
9663 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9664 (ada_vax_float_print_function): Delete.
9665 * ada-typeprint.c (print_vax_floating_point_type): Delete.
9666 (ada_print_type): Remove support for VAX floats.
9667 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
9668
9669 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9670
9671 * stabsread.c (read_args): Handle zero arguments.
9672
9673 2009-01-08 Joel Brobecker <brobecker@adacore.com>
9674
9675 Cannot find in-tree libiconv.a after reconfigure.
9676 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
9677 that we can use, then cache the path to this archive.
9678 * configure: Regenerate.
9679
9680 2010-01-07 Stan Shebs <stan@codesourcery.com>
9681
9682 Make tracepoint operations go through target vector.
9683 * target.h (enum trace_find_type): New enum.
9684 (struct target_ops): New fields to_trace_init,
9685 to_download_tracepoint, to_download_trace_state_variable,
9686 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
9687 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
9688 to_set_disconnected_tracing.
9689 (target_trace_init): New macro.
9690 (target_download_tracepoint): New macro.
9691 (target_download_trace_state_variable): New macro.
9692 (target_trace_start): New macro.
9693 (target_trace_set_readonly_regions): New macro.
9694 (target_get_trace_status): New macro.
9695 (target_trace_stop): New macro.
9696 (target_trace_find): New macro.
9697 (target_get_trace_state_variable_value): New macro.
9698 (target_set_disconnected_tracing): New macro.
9699 * target.c (update_current_target): Inherit and set defaults for
9700 tracepoint operations.
9701 * tracepoint.c (default_collect): Make globally visible.
9702 (target_is_remote): Remove, along with all calls.
9703 (tvariables_info): Call target_get_trace_state_variable_value.
9704 (remote_set_transparent_ranges): Remove.
9705 (trace_start_command): Call target_trace_init,
9706 target_download_tracepoint, etc.
9707 (download_tracepoint): Remove.
9708 (trace_stop_command): Simplify.
9709 (stop_tracing): Call target_trace_stop.
9710 (get_trace_status): Call target_get_trace_status.
9711 (trace_status_command): Add case for targets that cannot trace.
9712 (finish_tfind_command): Change to take numerical arguments, call
9713 target_trace_find.
9714 (trace_find_command): Update call to finish_tfind_command.
9715 (trace_find_pc_command): Ditto.
9716 (trace_find_tracepoint_command): Ditto.
9717 (trace_find_line_command): Ditto.
9718 (trace_find_range_command): Ditto.
9719 (trace_find_outside_command): Ditto.
9720 (set_disconnected_tracing_value): Call
9721 target_set_disconnected_tracing.
9722 * remote.c: Add protocol encoding bits from tracepoint.c.
9723 (trace_error): Move from tracepoint.c.
9724 (remote_get_noisy_reply): Ditto.
9725 (free_actions_list_cleanup_wrapper): Ditto.
9726 (free_actions_list): Ditto.
9727 (remote_trace_init): New function.
9728 (remote_download_tracepoint): New function.
9729 (remote_download_trace_state_variable): New function.
9730 (remote_trace_set_readonly_regions): New function.
9731 (remote_trace_start): New function.
9732 (remote_get_trace_status): New function.
9733 (remote_trace_stop): New function.
9734 (remote_trace_find): New function.
9735 (remote_download_trace_state_variable): New function.
9736 (remote_set_disconnected_tracing): New function.
9737 (init_remote_ops): Add tracepoint operations.
9738
9739 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
9740
9741 2010-01-07 Tristan Gingold <gingold@adacore.com>
9742
9743 * symfile.c (build_section_addr_info_from_objfile): New function.
9744 (symbol_file_add_separate): Don't use offsets from objfile but
9745 built an addr info.
9746
9747 2010-01-06 Stan Shebs <stan@codesourcery.com>
9748
9749 Support disconnected tracing.
9750 * infcmd.c (detach_command): Ask whether to stop tracing.
9751 * cli/cli-cmds.c (quit_command): Ditto.
9752 * breakpoint.h (struct breakpoint): New field number_on_target.
9753 * breakpoint.c (create_tracepoint_from_upload): New function.
9754 (get_tracepoint_by_number_on_target): New function.
9755 * remote.c (struct remote): New field disconnected_tracing.
9756 (remote_disconnected_tracing_feature): New function.
9757 (remote_protocol_features): Add DisconnectedTracing.
9758 (struct uploaded_tp): New struct.
9759 (uploaded_tps): New global.
9760 (get_uploaded_tp): New function.
9761 (find_matching_tracepoint): New function.
9762 (remote_get_tracing_state): New function.
9763 (remote_start_remote): Call it.
9764 * tracepoint.c (disconnected_tracing): New global.
9765 (trace_start_command): Initialize number_on_target.
9766 (stop_tracing): New function, split out from...
9767 (trace_stop_command): Call stop_tracing.
9768 (get_trace_status): New function, split out from...
9769 (trace_status_command): Call get_trace_status, add info on
9770 disconnection behavior.
9771 (disconnect_or_stop_tracing): New function.
9772 (finish_tfind_command): Translate from number on target.
9773 (trace_find_tracepoint_command): Translate to number on target.
9774 (send_disconnected_tracing_value): New function.
9775 (set_disconnected_tracing): New function.
9776 (_initialize_tracepoint): Add disconnected-tracing variable.
9777 * NEWS: Mention disconnected tracing.
9778
9779 2010-01-06 Tristan Gingold <gingold@adacore.com>
9780
9781 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
9782 parameter to main_objfile. Iterate on all separate debug objfiles.
9783 * symfile.h (symbol_file_add_separate)
9784 (find_separate_debug_file_by_debuglink): Remove parameter names.
9785 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
9786 (reread_symbols): Use free_objfile_separate_debug.
9787 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
9788 Adjust comment.
9789 (objfile_separate_debug_iterate, add_separate_debug_objfile)
9790 (free_objfile_separate_debug): New prototypes.
9791 * objfiles.c (objfile_separate_debug_iterate): New function.
9792 (add_separate_debug_objfile, free_objfile_separate_debug): New
9793 functions.
9794 (free_objfile): Use free_objfile_separate_debug. Adjust for
9795 multiple separate debug objfile.
9796 (objfile_has_symbols): Adjust comment. Iterate on all separate
9797 debug objfiles.
9798 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
9799 debug objfile.
9800 (lookup_minimal_symbol_text): Ditto.
9801 (lookup_minimal_symbol_by_pc_name): Ditto.
9802 (lookup_minimal_symbol_solib_trampoline): Ditto.
9803 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
9804 debug objfiles.
9805
9806 2010-01-05 Stan Shebs <stan@codesourcery.com>
9807
9808 Add fast tracepoints.
9809 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
9810 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
9811 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
9812 * breakpoint.c (tracepoint_type): New function.
9813 (ALL_TRACEPOINTS): Use it.
9814 (should_be_inserted): Ditto.
9815 (bpstat_check_location): Ditto.
9816 (print_one_breakpoint_location): Ditto.
9817 (user_settable_breakpoint): Ditto.
9818 (set_breakpoint_location_function): Ditto.
9819 (disable_breakpoints_in_shlibs): Ditto.
9820 (delete_trace_command): Ditto.
9821 (print_it_typical): Add bp_fast_tracepoint case.
9822 (bpstat_what): Ditto.
9823 (print_one_breakpoint_location): Ditto.
9824 (allocate_bp_location): Ditto.
9825 (mention): Ditto.
9826 (breakpoint_re_set_one): Ditto.
9827 (disable_command): Ditto.
9828 (enable_command): Ditto.
9829 (check_fast_tracepoint_sals): New function.
9830 (break_command_really): Call it.
9831 (ftrace_command): New function.
9832 (_initialize_breakpoint): Add ftrace command.
9833 * gdbarch.sh (fast_tracepoint_valid_at): New.
9834 * gdbarch.h, gdbarch.c: Regenerate.
9835 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
9836 (i386_gdbarch_init): Use it.
9837 * remote.c (struct remote_state): New field fast_tracepoints.
9838 (PACKET_FastTracepoints): New packet config type.
9839 (remote_fast_tracepoint_feature): New function.
9840 (remote_protocol_features): Add FastTracepoints.
9841 (remote_supports_fast_tracepoints): New function.
9842 (_initialize_remote): Add FastTracepoints.
9843 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
9844 * NEWS: Mention fast tracepoints.
9845
9846 2010-01-06 Joel Brobecker <brobecker@adacore.com>
9847
9848 * gdb-gdb.py: New file.
9849
9850 2010-01-05 Michael Snyder <msnyder@vmware.com>
9851
9852 * infrun.c (handle_inferior_event): Fix typo in comment.
9853
9854 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9855
9856 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
9857
9858 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9859
9860 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
9861 and s390x-linux64.
9862 (s390-linux32-expedite): Define.
9863 (s390-linux64-expedite): Define.
9864 (s390x-linux64-expedite): Define.
9865 * features/s390-acr.xml: New file.
9866 * features/s390-fpr.xml: New file.
9867 * features/s390-core32.xml: New file.
9868 * features/s390-core64.xml: New file.
9869 * features/s390x-core64.xml: New file.
9870 * features/s390-linux32.xml: New file.
9871 * features/s390-linux64.xml: New file.
9872 * features/s390x-linux64.xml: New file.
9873 * features/s390-linux32.c: New generated file.
9874 * features/s390-linux64.c: New generated file.
9875 * features/s390x-linux64.c: New generated file.
9876
9877 * regformats/s390-linux32.dat: New generated file.
9878 * regformats/s390-linux64.dat: New generated file.
9879 * regformats/s390x-linux64.dat: New generated file.
9880 * regformats/reg-s390.dat: Remove.
9881 * regformats/reg-s390x.dat: Remove.
9882
9883 * s390-nat.c: Include "auxv.h" and <elf.h>.
9884 (HWCAP_S390_HIGH_GPRS): Define if undefined.
9885 (s390_target_wordsize): New function.
9886 (s390_auxv_parse): Likewise.
9887 (s390_get_hwcap): Likewise.
9888 (s390_read_description): Likewise.
9889 (_initialize_s390_nat): Install s390_auxv_parse and
9890 s390_read_description.
9891
9892 * s390-tdep.c: Include "features/s390-linux32.c",
9893 "features/s390-linux64.c", and "features/s390x-linux64.c".
9894 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
9895 (s390_register_call_saved): New function.
9896 (s390_register_name): Remove.
9897 (s390_register_type): Remove.
9898 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
9899 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
9900 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
9901 (s390_pseudo_register_name): New function.
9902 (s390_pseudo_register_type): New function.
9903 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
9904 Handle full GPR pesudos and varying pseudo register numbers.
9905 (s390_pseudo_register_write): Likewise
9906 (s390x_pseudo_register_read): Remove.
9907 (s390x_pseudo_register_write): Likewise.
9908 (s390_register_group): Remove.
9909 (s390_pseudo_register_group): New function.
9910 (s390_regmap_gregset): Add GPR upper halves.
9911 (s390x_regmap_gregset): Likewise.
9912 (s390_regmap_fpregset): Likewise.
9913 (s390_regmap_upper): New global variable.
9914 (s390_upper_regset): New global variable.
9915 (s390_upper_regset_sections): New global variable.
9916 (s390_regset_from_core_section): Handle GPR upper halves.
9917 (s390_core_read_description): New function.
9918 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
9919 register information. Handle varying pseudo register numbers.
9920 (s390_backchain_frame_unwind_cache): Likewise.
9921 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
9922 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
9923 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
9924 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
9925 Handle varying pseudo register numbers.
9926 (s390_unwind_pc): Handle varying pseudo register numbers.
9927 (s390_dwarf2_prev_register): New function.
9928 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
9929 register information. Handle varying pseudo register numbers.
9930 Install s390_dwarf2_prev_register to unwind full GPRs.
9931 (s390_gdbarch_init): Handle target descriptions. Assign varying
9932 pseudo register numbers. Install s390_adjust_frame_regnum.
9933 (_initialize_s390_tdep): Initialize target descriptions.
9934
9935 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
9936 (S390_NUM_REGS): Redefine to include upper half registers.
9937 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
9938 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
9939 (tdesc_s390_linux32): Add declaration.
9940 (tdesc_s390_linux64): Likewise.
9941 (tdesc_s390x_linux64): Likewise.
9942
9943 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9944
9945 * regset.h (struct core_regset_section): Add HUMAN_NAME.
9946 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
9947 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
9948 (ppc_linux_vmx_regset_sections): Likewise.
9949 (ppc_linux_fp_regset_sections): Likewise.
9950
9951 * corelow.c (get_core_register_section): Constify arguments.
9952 (get_core_registers): Use gdbarch_core_regset_sections instead
9953 of hard-coded platform-specific register section names.
9954
9955 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9956
9957 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
9958 a register, assume the least-significant part is used.
9959 (write_pieced_value): Likewise.
9960
9961 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9962
9963 * printcmd.c: Include "arch-utils.h".
9964 (do_one_display): Re-parse expression if current architecture changed.
9965
9966 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9967 Joel Brobecker <brobecker@adacore.com>
9968
9969 * gdbtypes.c (check_typedef): New comment on type length.
9970 * value.c (allocate_value_lazy): Remove the unused atype variable. New
9971 comment on type length.
9972 (value_primitive_field): Keep the original TYPE value, new comment.
9973
9974 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9975
9976 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
9977 p_start. Change != comparisons to > and < comparisons.
9978
9979 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9980
9981 * cli/cli-script.c (process_next_line): Check P2 overrun.
9982
9983 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9984
9985 Update the copyright hearder to add year 2010 for most GDB files.
9986
9987 2009-01-01 Joel Brobecker <brobecker@adacore.com>
9988
9989 Fix build failure in inf-ptrace.c.
9990 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
9991
9992 2010-01-01 Joel Brobecker <brobecker@adacore.com>
9993
9994 * top.c (print_gdb_version): Update copyright year.
9995
9996 2010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
9997
9998 Fix break *FUN'address thread NUM.
9999 * ada-lex.l (task): Expand rule to also match the thread keyword.
10000
10001 2010-01-01 Joel Brobecker <brobecker@adacore.com>
10002
10003 Fix break *FUN'address task NUM.
10004 * ada-lex.l (task): New rule.
10005 * ada-lang.c (valid_task_id): Make sure the Ada task list has
10006 been built before using it.
10007
10008 For older changes see ChangeLog-2009.
10009 \f
10010 Local Variables:
10011 mode: change-log
10012 left-margin: 8
10013 fill-column: 74
10014 version-control: never
10015 coding: utf-8
10016 End:
This page took 0.336961 seconds and 4 git commands to generate.