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