Avoid overflow.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d8c09fb5
JK
12010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
4 create_breakpoint call, adjust the parameters.
5
bbb0eef6
JK
62010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7 Chandru <chandru@in.ibm.com>
8
9 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
10 * valarith.c (value_subscripted_rvalue): Suppress error if
11 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
12
46956e39
HZ
132010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
14
15 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
16
b8d088ac
JB
172010-03-16 Joel Brobecker <brobecker@adacore.com>
18
19 * ada-tasks.c (task_command_1): Check that the task ptid is valid
20 before doing the associated thread switch.
21
322be962
DJ
222010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
23
24 * MAINTAINERS: Update my email address.
25
8cdf0e15
VP
262010-03-16 Vladimir Prus <vladimir@codesourcery.com>
27
28 Simplify MI breakpoint setting.
29
30 * breakpoint.c (break_command_really): Make nonstatic and
31 rename to...
32 (create_breakpoint): ...this. Rename prior function by this name
33 to...
34 (create_breakpoint_sal): ...this.
35 (create_breakpoints): Rename to...
36 (create_breakpoints_sal): ...this.
37 (set_breakpoint): Remove.
38 * breakpoint.h: Adjust to above changes.
39 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
40
b6e7192f
SS
412010-03-15 Stan Shebs <stan@codesourcery.com>
42
43 * ax-gdb.c: Include cp-support.h.
44 (find_field): Remove.
45 (gen_primitive_field): New function.
46 (gen_struct_ref_recursive): New function.
47 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
48 of find_field.
49 (gen_static_field): New function.
50 (gen_struct_elt_for_reference): New.
51 (gen_namespace_elt): New.
52 (gen_maybe_namespace_elt): New.
53 (gen_aggregate_elt_ref): New.
54 (gen_expr): Add OP_SCOPE, display opcode name in error message.
55
1054b214
TT
562010-03-15 Tom Tromey <tromey@redhat.com>
57
58 * dwarf2read.c (die_needs_namespace): Also return 0 for
59 DW_TAG_subprogram.
60
13387711
SW
612010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
62
63 PR c++/7936:
64 * cp-support.h: Added char *declaration element to using_direct
65 data struct.
66 (cp_add_using): Added char *declaration argument.
67 (cp_add_using_directive): Ditto.
68 (cp_lookup_symbol_imports): made extern.
69 * cp-namespace.c: Updated with the above changes.
70 * dwarf2read.c (read_import_statement): Ditto.
71 (read_namespace): Ditto.
72 (read_import_statement): Support import declarations.
73 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
74 declarations.
75 Added support for 'declaration_only' search.
76 (cp_lookup_symbol_namespace): Attempt to search for the name as
77 is before consideration of imports.
78 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
79 search at every block level search.
80 Now takes language argument.
81 (lookup_symbol_aux): Updated.
82
6e31430b
TT
832010-03-15 Tom Tromey <tromey@redhat.com>
84
85 * c-exp.y (name_not_typename): Add 'operator' clause.
86
4dea3bb7 872010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
88
89 * configure.ac: Exit if ${gdb_target_obs}" is not set.
90 * configure: Regenerate.
91
4d9743af
JK
922010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
93
94 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
95 and ".sdynbss". Update the comment.
96
f75150fe
JZ
972010-03-15 Jie Zhang <jie@codesourcery.com>
98
99 * MAINTAINERS: Update my email address.
100
3c13bc11
DJ
1012010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
102
103 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
104
43484f03
DJ
1052010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
106
107 * charset.c [USE_WIN32API]: Include <windows.h>.
108 (_initialize_charset): Correct type of w32_host_default_charset.
109
5f25d77d
PA
1102010-03-14 Pedro Alves <pedro@codesourcery.com>
111
112 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
113
1c809c68
TT
1142010-03-12 Tom Tromey <tromey@redhat.com>
115
116 PR c++/9708:
117 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
118 in a lexical block does not need a namespace.
119 (new_symbol) <DW_TAG_variable>: Put extern variables on
120 list_in_scope in all cases.
121
948103cf
SS
1222010-03-12 Stan Shebs <stan@codesourcery.com>
123
124 * ax-gdb.c (gen_expr): Add shift expressions.
125 (gen_expr_binop_rest): Ditto.
126
00ae8fef
SW
1272010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
128
129 * buildsym.c (finish_block): Reset using_directives pointer
130 after block initialization.
131
9cad29ac
L
1322010-03-12 H.J. Lu <hongjiu.lu@intel.com>
133
134 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
135 * i386-tdep.c (i386_word_names): Likewise.
136
2f4d8875
PA
1372010-03-12 Pedro Alves <pedro@codesourcery.com>
138
139 * target.c (memory_xfer_partial): Don't use the stack cache if
140 inspecting trace frames.
141 * tracepoint.c (finish_tfind_command): Invalidate the target
142 dcache.
143
ccf26247
JK
1442010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
145
146 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
147 for the PIC displacement, print also the displacement value.
148 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
149
477c84a7
KB
1502010-03-10 Kevin Buettner <kevinb@redhat.com>
151
152 * remote-mips.c (close_ports, mips_initialize_cleanups)
153 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
154 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
155 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
156 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
157 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
158 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
159 comments describing each of these functions.
160 (mips_enter_debug, mips_exit_debug, common_open)
161 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
162 blank line after the comment describing the function.
163
01c30d6e
JK
1642010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
165
166 * solib-svr4.c (svr4_exec_displacement): Return now success, new
167 parameter displacementp. Update comment.
168 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
169 element exists. Return if svr4_exec_displacement was not successful.
170 Update comment.
171
09919ac2
JK
1722010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
173 Daniel Jacobowitz <dan@codesourcery.com>
174
175 * solib-svr4.c (read_program_header): Support type == -1 to read
176 all program headers.
177 (read_program_headers_from_bfd): New function.
178 (svr4_static_exec_displacement): Remove and move the comment ...
179 (svr4_exec_displacement): ... here. Remove variable found. New
180 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
181 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
182 targets using read_program_headers_from_bfd. Remove the call of
183 svr4_static_exec_displacement.
184
d146bf1e
TT
1852010-03-10 Tom Tromey <tromey@redhat.com>
186
187 * dwarf2read.c (struct pubnames_header): Remove.
188 (_PUBNAMES_HEADER): Remove.
189 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
190 (struct aranges_header): Remove.
191 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
192 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
193 (PUBNAMES_SECTION): Remove.
194 (ARANGES_SECTION): Remove.
195 (dwarf2_locate_sections): Don't handle pubnames or aranges.
196 (dwarf2_build_psymtabs): Remove dead code.
197 (dwarf2_build_psymtabs_easy): Remove.
198
be391dca
TT
1992010-03-10 Tom Tromey <tromey@redhat.com>
200
201 * elfread.c (elf_symfile_read): Don't call
202 dwarf2_build_frame_info.
203 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
204 (struct dwarf2_per_objfile) <objfile>: New field.
205 (dwarf2_has_info): Now idempotent. Set objfile field.
206 (dwarf2_read_section): Check and set readin field. Call
207 posix_madvise.
208 (dwarf2_build_psymtabs): Don't read all sections.
209 (read_type_comp_unit_head): Read types section.
210 (create_debug_types_hash_table): Likewise.
211 (init_cu_die_reader): Add asserts.
212 (process_type_comp_unit): Add assert.
213 (dwarf2_build_psymtabs_hard): Read info section.
214 (load_partial_comp_unit): Add assert.
215 (create_all_comp_units): Read info section.
216 (load_full_comp_unit): Likewise.
217 (dwarf2_ranges_read): Read ranges section.
218 (dwarf2_record_block_ranges): Add assert.
219 (dwarf2_read_abbrevs): Read abbrev section.
220 (read_indirect_string): Read str section.
221 (dwarf_decode_line_header): Read line section.
222 (read_signatured_type_at_offset): Read types section.
223 (dwarf_decode_macros): Read macinfo section.
224 (dwarf2_symbol_mark_computed): Read loc section.
225 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
226 dwarf2_build_frame_info.
227 (dwarf2_build_frame_info): Unconditionally set
228 dwarf2_frame_objfile_data on the objfile.
229 * configure.ac: Check for posix_madvise.
230 * config.in, configure: Rebuild.
231
ccefe4c4
TT
2322010-03-10 Tom Tromey <tromey@redhat.com>
233
e38df1d0
TT
234 * xcoffread.c (xcoff_start_psymtab): Update.
235 (xcoff_end_psymtab): Update.
236 * psymtab.c (allocate_psymtab): Remove dead code.
237 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
238 void*.
239 * mdebugread.c (parse_partial_symbols): Update.
240 (new_psymtab): Likewise.
241 * dwarf2read.c (process_psymtab_comp_unit): Update.
242 (psymtab_to_symtab_1): Update.
243 * dbxread.c (start_psymtab): Update.
244 (end_psymtab): Likewise.
245
be391dca 2462010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 247
ccefe4c4
TT
248 * xcoffread.c: Include psymtab.h.
249 (xcoff_sym_fns): Update.
250 * symtab.h (struct partial_symbol): Remove.
251 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
252 (struct partial_symtab): Remove.
253 (PSYMTAB_TO_SYMTAB): Remove.
254 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
255 (find_pc_sect_psymtab): Remove.
256 (find_pc_sect_symtab_via_partial): Declare.
257 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
258 (find_main_psymtab): Remove.
259 (find_main_filename): Declare.
260 (fixup_psymbol_section): Remove.
261 (fixup_section): Declare.
262 * symtab.c: Include psymtab.h.
263 (lookup_symtab): Use lookup_symtab method.
264 (lookup_partial_symtab): Remove.
265 (find_pc_sect_psymtab_closer): Remove.
266 (find_pc_sect_psymtab): Remove.
267 (find_pc_sect_symtab_via_partial): New function.
268 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
269 (fixup_section): No longer static.
270 (fixup_psymbol_section): Remove.
271 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
272 (lookup_global_symbol_from_objfile): Likewise.
273 (lookup_symbol_aux_psymtabs): Remove.
274 (lookup_symbol_aux_quick): New function.
275 (lookup_symbol_global): Use lookup_symbol_aux_quick.
276 (lookup_partial_symbol): Remove.
277 (basic_lookup_transparent_type_quick): New function.
278 (basic_lookup_transparent_type): Use it.
279 (find_main_psymtab): Remove.
280 (find_main_filename): New function.
281 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
282 (find_line_symtab): Use expand_symtabs_with_filename method.
283 (output_partial_symbol_filename): New function.
284 (sources_info): Use map_partial_symbol_filenames.
285 (struct search_symbols_data): New type.
286 (search_symbols_file_matches): New function.
287 (search_symbols_name_matches): Likewise.
288 (search_symbols): Use expand_symtabs_matching method.
289 (struct add_name_data): Rename from add_macro_name_data.
290 (add_macro_name): Update.
291 (add_partial_symbol_name): New function.
292 (default_make_symbol_completion_list): Use
293 map_partial_symbol_names.
294 (struct add_partial_symbol_name): New type.
295 (maybe_add_partial_symtab_filename): New function.
296 (make_source_files_completion_list): Use
297 map_partial_symbol_filenames.
298 (expand_line_sal): Use expand_symtabs_with_filename method.
299 * symmisc.c: Include psymtab.h.
300 (print_objfile_statistics): Use print_stats method.
301 (dump_objfile): Use dump method.
302 (dump_psymtab, maintenance_print_psymbols)
303 (maintenance_info_psymtabs, maintenance_check_symtabs)
304 (extend_psymbol_list): Remove.
305 * symfile.h (struct quick_symbol_functions): New struct.
306 (struct sym_fns) <qf>: New field.
307 (sort_pst_symbols): Remove.
308 (increment_reading_symtab): Declare.
309 * symfile.c: Include psymtab.h.
310 (compare_psymbols, sort_pst_symbols): Remove.
311 (psymtab_to_symtab): Remove.
312 (increment_reading_symtab): New function.
313 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
314 method.
315 (set_initial_language): Use find_main_filename.
316 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
317 (free_named_symtabs): Remove unused code.
318 (start_psymtab_common, add_psymbol_to_bcache)
319 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
320 Remove.
321 * stack.c: Include psymtab.h, symfile.h.
322 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
323 * source.h (psymtab_to_fullname): Don't declare.
324 * source.c: Include psymtab.h.
325 (select_source_symtab): Use find_last_source_symtab method.
326 (forget_cached_source_info): Use forget_cached_source_info
327 method.
328 (find_and_open_source): No longer static.
329 (psymtab_to_fullname): Remove.
330 * somread.c: Include psymtab.h.
331 (som_sym_fns): Update.
332 * psympriv.h: New file.
333 * psymtab.h: New file.
334 * psymtab.c: New file.
335 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
336 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
337 * objfiles.c: Include psymtab.h.
338 (objfile_relocate1): Use relocate method.
339 (objfile_has_partial_symbols): Use has_symbols method.
340 * mipsread.c: Include psymtab.h.
341 (ecoff_sym_fns): Update.
342 * mi/mi-cmd-file.c: Include psymtab.h.
343 (print_partial_file_name): New function.
344 (mi_cmd_file_list_exec_source_files): Use
345 map_partial_symbol_filenames.
346 * mdebugread.c: Include psympriv.h.
347 * machoread.c: Include psympriv.h.
348 (macho_sym_fns): Update.
349 * m2-exp.y (yylex): Use lookup_symtab.
350 * elfread.c: Include psympriv.h.
351 (elf_sym_fns): Update.
352 * dwarf2read.c: Include psympriv.h.
353 * dbxread.c: Include psympriv.h.
354 (aout_sym_fns): Update.
355 * cp-support.c: Include psymtab.h.
356 (read_in_psymtabs): Remove.
357 (make_symbol_overload_list_qualified): Use
358 expand_symtabs_for_function method.
359 * coffread.c: Include psympriv.h.
360 (coff_sym_fns): Update.
361 * blockframe.c: Include psymtab.h.
362 (find_pc_partial_function): Use find_pc_sect_symtab method.
363 * ada-lang.h (ada_update_initial_language): Update.
364 * ada-lang.c: Include psymtab.h.
365 (ada_update_initial_language): Remove 'main_pst' argument.
366 (ada_lookup_partial_symbol): Remove.
367 (struct ada_psym_data): New type.
368 (ada_add_psyms): New function.
369 (ada_add_non_local_symbols): Use map_ada_symtabs method.
370 (struct add_partial_datum): New type.
371 (ada_add_partial_symbol_completions): New function.
372 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
373 (ada_exception_support_info_sniffer): Update.
374 * Makefile.in (SFILES): Add psymtab.c.
375 (COMMON_OBS): Add psymtab.o.
376 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
377
7d8500b7
PM
3782010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
379
380 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
381
c0cc3a76
SW
3822010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
383
384 PR C++/11236:
385 * cp-namespace.c (cp_add_using): Deleted.
386 (cp_add_using_directive): Use obstack allocations.
387 Merged the function cp_add_using into this one.
388 Added 'struct obstack *' argument.
389 (cp_scan_for_anonymous_namespaces): Updated.
390 * cp-support.h: Updated.
391 * dwarf2read.c (read_import_statement): Updated.
392 (read_namespace): Updated.
393
452fa064
CF
3942010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
395
396 * windows-nat.c (cygwin_conv_path): Remove old macro.
397
60e1c644
PA
3982010-03-10 Pedro Alves <pedro@codesourcery.com>
399
400 * breakpoint.c (condition_command): Handle watchpoint conditions.
401 (is_hardware_watchpoint): Add comment.
402 (is_watchpoint): New.
403 (update_watchpoint): Don't reparse the watchpoint's condition
404 unless necessary.
405 (WP_IGNORE): New.
406 (watchpoint_check): Use it.
407 (bpstat_check_watchpoint): Handle it.
408 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
409 conditions in a frame where it makes sense.
410 (watch_command_1): Store the innermost block of the condition
411 expression.
412 (delete_breakpoint): Delete the watchpoint condition expression.
413 * breakpoint.h (struct bp_location) <cond>: Update comment.
414 (struct breakpoint): New field `cond_exp_valid_block'.
415
af6b7be1
JB
4162010-03-09 Joel Brobecker <brobecker@adacore.com>
417
418 Adjust handling of Ada DIEs after dwarf2_physname patch.
419 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
420
60c5c021
CF
4212010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
422 Pierre Muller <muller@ics.u-strasbg.fr>
423
424 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
425 from/to posix/win32.
426 (windows_make_so): Use non-Cygwin 1.7 specific function.
427 (windows_create_inferior): Make sure that cygallargs points to
428 original args in non Cygwin 1.7. case.
429
60a1502a
MS
4302010-03-09 Michael Snyder <msnyder@vmware.com>
431
432 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
433 after target_read_memory to get host byte order.
434 (i386_process_record): Ditto.
435
94af9270
KS
4362010-03-09 Keith Seitz <keiths@redhat.com>
437
438 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
439 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
440 print out const or volatile qualifiers, too.
441 (c_type_print_args): Add parameters show_artificial and language.
442 Skip artificial parameters when requested.
443 Use the appropriate language printer.
444 (c_type_print_varspec): Tell c_type_print_args to skip artificial
445 parameters and pass language_c.
446 * dwarf2read.c (die_list): New file global.
447 (struct partial_die_info): Update comments for name field.
448 (pdi_needs_namespace): Renamed to ...
449 (die_needs_namespace): ... this. Rewrite.
450 (dwarf2_linkage_name): Remove.
451 (add_partial_symbol): Do not predicate the call to
452 partial_die_full_name based on pdi_needs_namespace.
453 Remove call to cp_check_possible_namespace_symbols and associated
454 outdated comments.
455 (guess_structure_name): Do not inspect child subprogram DIEs.
456 (dwarf2_fullname): Update comments.
457 Use die_needs_namespace to assist in computing the name.
458 (read_func_scope): Use dwarf2_name to get the DIE's name.
459 Use dwarf2_physname to get the "linkage name" of the DIE.
460 (dwarf2_add_member_field): Use dwarf2_physname instead of
461 dwarf2_linkage_name.
462 (read_structure_type): For structs and classes, set TYPE_NAME, too.
463 (determine_class): Remove.
464 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
465 except Ada.
466 (new_symbol): Unconditionally call dwarf2_name.
467 Compute the "linkage name" using dwarf2_physname.
468 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
469 When determining to scan for anonymous C++ namespaces, ignore
470 the linkage name.
471 (dwarf2_physname): New function.
472 (dwarf2_full_name): Move content to new function and call
473 that.
474 (dwarf2_compute_name): "New" function.
475 (_initialize_dwarf2_read): Initialize die_list.
476 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
477 physname.
478 (gnu_v3_print_method_ptr): Use the physname for virtual methods
479 without a demangled name.
480 Print out type information for non-virtual methods.
481 * linespec.c (decode_line_1): Force ANY string using "::" (or
482 "." for java) to use decode_compound, and clean up any stray quoting.
483 If we found a file symtab, re-evaluate whether the remainder is_quoted.
484 (decode_compound): Stop consuming at an open parenthesis.
485 Keep template parameters.
486 Keep any overload information.
487 Keep keywords like "const".
488 Remove paren_pointer.
489 Move is_quoted check from set_flags to here.
490 Remove #if 0 code from 2000. Ten years is long enough.
491 (find_method): Before comparing symbol names, canonicalize the string
492 from the user.
493 If a specific overload is requested, find it. Otherwise throw an error.
494 (find_method_overload_end): New function.
495 (set_flags): Remove.
496 (decode_compound): Assume that parentheses are matched.
497 It's a lot easier.
498 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
499 to cplus_demangle.
500 * linespec.c (decode_line_1): Keep important keywords like
501 "const" and "volatile".
502 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
503 * typeprint.h (c_type_print_args): Add declaration.
504 * ui-file.c (do_ui_file_obsavestring): New function.
505 (ui_file_obsavestring): New function.
506 * ui-file.h (ui_file_obsavestring): Add declaration.
507 * valops.c (find_overload_match): Resolve the object to
508 a non-pointer type.
509 If the object is a data member, search the object for the member
510 and return with staticp set.
511 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
512 Do not attempt to extract a function name from non-function types.
513 If the extracted function name and the original name are the same,
514 we don't have a C++ method.
515
516 From Jan Kratochvil <jan.kratochvil@redhat.com>:
517 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
518
519 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
520 and arguments from symbol lookups.
521 * ax-gdb.c (gen_expr): Likewise.
522 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
523 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
524 lookup_possible_namespace_symbol): Likewise.
525 * cp-support.c (read_in_psymtabs): Likewise.
526 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
527 * language.h (la_lookup_symbol_nonlocal): Likewise.
528 * scm-valprint.c (scm_inferior_print): Likewise.
529 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
530 * solib-svr.c (elf_lookup_lib): Likewise.
531 * solib.c (show_auto_solib_add): Likewise.
532 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
533 * symmisc.c (maintenance_check_symtabs): Likewise.
534 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
535 lookup_symbol_aux_local, lookup_symbol_aux_block,
536 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
537 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
538 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
539 basic_lookup_transparent_type, find_main_psymtab,
540 lookup_block_symbol): Likewise.
541 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
542 lookup_symbol_global, lookup_symbol_aux_block,
543 lookup_symbol_partial_symbol, lookup_block_symbol,
544 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
545
9cb74f47
PM
5462010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
547
548 * python/python-internal.h: Include symtab.h.
549
af6b7be1
JB
5502010-03-09 Joel Brobecker <brobecker@adacore.com>
551 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
552
553 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
554 * p-valprint.c (pascal_val_print): Remove undeed block and fix
555 indentation.
556
bad56014
TT
5572010-03-08 Tom Tromey <tromey@redhat.com>
558
559 * breakpoint.c (breakpoint_1): Add "QUIT".
560
08105857
PA
5612010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
562 Pedro Alves <pedro@codesourcery.com>
563
564 * solib.c (solib_find): Replace extension if
565 solib_symbols_extension is set in the target gdbarch.
566 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
567 solib_symbols_extension to "sym".
568 * gdbarch.sh (solib_symbols_extension): New variable.
569 (pstring): New function.
570 * gdbarch.h, gdbarch.c: Regenerate.
571
7c953934
TT
5722010-03-08 Tom Tromey <tromey@redhat.com>
573
574 PR cli/9591:
575 * NEWS: Update.
576 * utils.c: Include main.h.
577 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
578 (defaulted_query): Use default answer if `batch_flag'.
579 * main.h (batch_flag): Declare.
580 * main.c (batch_flag): New global.
581 (captured_main): Remove 'batch'. Update.
582
bbd2783e
KB
5832010-03-08 Kevin Buettner <kevinb@redhat.com>
584
585 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
586 and Kevin Buettner:
587
588 * remote-mips.c (rockhopper_ops): New target_ops struct.
589 (MON_ROCKHOPPER): New mips_monitor_type.
590 (read_hex_value): New function.
591 (mips_request): Send 8-byte values with a 'T' packet. Read the
592 packet argument as a string and use read_hex_value to parse it.
593 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
594 (rockhopper_open): New function.
595 (mips_wait): Read the PC, FP and SP fields as strings. Use
596 read_hex_value to parse them and mips_set_register to commit them.
597 (mips_set_register): New function.
598 (mips_fetch_registers): Do not cast register value to "unsigned"
599 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
600 (mips_store_registers): Use a 'T' packet to set registers when
601 using MON_ROCKHOPPER.
602 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
603 and expect the total to be printed before the entry address.
604 (_initialize_remote_mips): Initialize and add rockhopper_ops.
605
566f3d17
KB
6062010-03-08 Kevin Buettner <kevinb@redhat.com>
607
608 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
609 Change return value to int. Store value fetched in location
610 addressed by `val'. Use function's return value as success
611 or failure indicator. Adjust all callers.
612
9c8ee2ab 6132010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
614
615 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
616
7155de5a
HZ
6172010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
618 Hui Zhu <teawater@gmail.com>
619
620 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
621 tmp_to_stopped_data_address.
622 (record_open): Reset tmp_to_stopped_by_watchpoint and
623 tmp_to_stopped_data_address.
624 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
625 to_stopped_data_address.
626
580879fc
HZ
6272010-03-08 Hui Zhu <teawater@gmail.com>
628
629 * i386-tdep.c (i386_process_record): Initialize regnum.
630
b0fcb67f
JK
6312010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
632
633 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
634 Do not warn on ".gnu.liblist" and ".gnu.conflict".
635
08597104
JB
6362010-03-08 Joel Brobecker <brobecker@adacore.com>
637
638 Memory error when reading wrong core file.
639 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
640 errors while reading the inferior memory, and return zero if
641 an exception was raised.
642
425b824a
MS
6432010-03-07 Michael Snyder <msnyder@vmware.com>
644
ec6dbf37
MS
645 * record.c (record_restore): Rename tmpu8 to rectype.
646
648d0c8b
MS
647 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
648 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
649
650 (i386_record_push): Rename local tmpulongest to addr.
651
652 (i386_process_record): Rename local tmpulongest to addr.
653
654 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
655 addr64.
955db0c0
MS
656
657 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 658
10760264
JB
6592010-03-07 Joel Brobecker <brobecker@adacore.com>
660
661 * remote.c (remote_get_ada_task_ptid): New function.
662 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
663
b3c613f2
CF
6642010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
665
666 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
667 block. Define helper macros to reduce ifdefs in code.
668 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
669 size. Call unadorned GetModuleFileNameEx rather than
670 GetModuleFileNameEx*.
671 (windows_make_so): Use __PMAX to denote maximum buffer size and
672 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
673 appropriate.
674 (get_image_name): Use __PMAX to denote maximum buffer size.
675 (handle_load_dll): Likewise.
676 (windows_pid_to_exec_file): Likewise.
677 (windows_create_inferior): Add many accommodations for older Cygwin and
678 non-Cygwin.
679 (bad_GetModuleFileNameExW): Control inclusion of this function based on
680 __USEWIDE conditional.
681 (bad_GetModuleFileNameExA): Likewise.
682 (_initialize_loadable): Just use real function names without the dyn_
683 part since they are defined earlier.
684
f870a310
TT
6852010-03-05 Corinna Vinschen <vinschen@redhat.com>
686 Tom Tromey <tromey@redhat.com>
687
688 * utils.c (host_char_to_target): Add 'gdbarch' argument.
689 (parse_escape): Likewise.
690 * python/py-utils.c (unicode_to_target_string): Update.
691 (unicode_to_target_python_string): Update.
692 (target_string_to_unicode): Update.
693 * printcmd.c (printf_command): Update.
694 * p-exp.y (yylex): Update.
695 * objc-exp.y (yylex): Update.
696 * mi/mi-parse.c: Include charset.h.
697 (mi_parse_escape): New function.
698 (mi_parse_argv): Use it.
699 * jv-exp.y (yylex): Update.
700 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
701 function.
702 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
703 * gdbarch.sh (auto_charset, auto_wide_charset): New.
704 * gdbarch.c: Rebuild.
705 * gdbarch.h: Rebuild.
706 * defs.h (parse_escape): Update.
707 * cli/cli-setshow.c: Include arch-utils.h.
708 (do_setshow_command): Update.
709 * cli/cli-cmds.c (echo_command): Update.
710 * charset.h (target_charset, target_wide_charset): Update.
711 * charset.c: Include arch-utils.h.
712 (target_charset_name): Default to "auto".
713 (target_wide_charset_name): Likewise.
714 (show_target_charset_name): Handle "auto".
715 (show_target_wide_charset_name): Likewise.
716 (be_le_arch): New global.
717 (set_be_le_names): Add 'gdbarch' argument.
718 (validate): Likewise. Don't call set_be_le_names.
719 (set_charset_sfunc, set_host_charset_sfunc)
720 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
721 Update.
722 (target_charset): Add 'gdbarch' argument.
723 (target_wide_charset): Likewise. Remove 'byte_order' argument.
724 (auto_target_charset_name): New global.
725 (default_auto_charset, default_auto_wide_charset): New functions.
726 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
727 for target charsets. Copy result of nl_langinfo. Use GetACP if
728 USE_WIN32API.
729 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
730 remove 'byte_order' argument. Update.
731 (classify_type): Likewise.
732 (c_emit_char): Update.
733 (c_printchar): Update.
734 (c_printstr): Update.
735 (c_get_string): Update.
736 (evaluate_subexp_c): Update.
737 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
738 Declare.
739 * python/python.c (gdbpy_target_charset): New function.
740 (gdbpy_target_wide_charset): Likewise.
741 (GdbMethods): Update.
742 * NEWS: Update.
743
4e7386b0
UW
7442010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
745
746 * symfile.c (build_section_addr_info_from_objfile): Do not mask
747 off high address bits.
748
aab48ede
UW
7492010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
750
751 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
752 address as UnsignedLongLong, not LongLong.
753
8eeafb51
KB
7542010-03-05 Kevin Buettner <kevinb@redhat.com>
755 Pedro Alves <pedro@codesourcery.com>
756
757 * remote-mips.c (gdbthread.h): Include.
758 (remote_mips_ptid): Declare.
759 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
760 (common_open): Set inferior_ptid, add it as an inferior, and
761 as a thread too. Delete FIXME comment regarding start_remote().
762 (mips_close): Invoke generic_mourn_inferior().
763 (mips_kill): Make sure that target_mourn_inferior is invoked.
764 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
765 it's now invoked from mips_close().
766 (mips_load): Don't null out inferior_ptid. Don't call
767 clear_symtab_users().
768 (mips_thread_alive, mips_pid_to_str): New functions.
769 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
770 to_thread_alive and to_pid_to_str operations.
771
ae411497
TT
7722010-03-04 Tom Tromey <tromey@redhat.com>
773
774 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
775 in DWARF 3 and later.
776 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
777
0e0b460e
KS
7782010-03-04 Keith Seitz <keiths@redhat.com>
779
780 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
781 If the filename portion of the linespec was quoted, recheck the
782 remainder for additional quoting.
783 (locate_first_half): Skip over completer chars, too.
784
1b93ff13
TT
7852010-03-04 Tom Tromey <tromey@redhat.com>
786
787 * printcmd.c (printf_command): Pass dummy argument to
788 printf_filtered.
789
fc36e839
DE
7902010-03-04 Doug Evans <dje@google.com>
791
111f853c
DE
792 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
793 unwound_fp.
794
fc36e839
DE
795 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
796
c7437ca6
PA
7972010-03-04 Pedro Alves <pedro@codesourcery.com>
798
799 * breakpoint.c (update_watchpoint): Create a sentinel location if
800 the software watchpoint isn't watching any memory.
801 (breakpoint_address_bits): Skip dummy software watchpoint locations.
802
58dadb1b
PA
8032010-03-04 Pedro Alves <pedro@codesourcery.com>
804
805 * utils.c (fputs_maybe_filtered): Check if there's already a top
806 level interpreter before dereferencing it. If there isn't one,
807 don't paginate either.
808
50e98be4
DJ
8092010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
810
811 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
812 the state right when single stepping.
813 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
814 Get the next PC along with the instruction state.
815 (thumb_get_next_pc): Remove.
816 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
817
2e3ceee9
HZ
8182010-03-04 Hui Zhu <teawater@gmail.com>
819
820 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
821
390a8aca
PA
8222010-03-03 Pedro Alves <pedro@codesourcery.com>
823
824 * utils.c (fputs_maybe_filtered): Always disable pagination if the
825 top level interpreter is MI.
826
9355b391
SS
8272010-03-03 Stan Shebs <stan@codesourcery.com>
828
829 * remote.c (remote_download_tracepoint): Iterate over locations.
830 * tracepoint.c (validate_actionline): Ditto.
831 (encode_actions): Add location argument.
832 (trace_dump_command): Check all locations to see if stepping
833 frame.
390a8aca 834
8685c86f
L
8352010-03-03 H.J. Lu <hongjiu.lu@intel.com>
836 Eli Zaretskii <eliz@gnu.org>
837
838 * NEWS: Add X86 general purpose registers section.
839
e8f781e2
TT
8402010-03-03 Tom Tromey <tromey@redhat.com>
841
842 PR mi/11098:
843 * varobj.c (install_new_value): Handle case where new print_value
844 is NULL.
845
a0e0ef55
TT
8462010-03-03 Dainis Jonitis <jonitis@gmail.com>
847
848 PR gdb/11345:
849 * printcmd.c (printf_command): Print end of format string using
850 printf_filtered.
851
a58d7472
TT
8522010-03-02 Tom Tromey <tromey@redhat.com>
853
854 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
855 * defs.h (read_command_lines_1): Add missing 'void'.
856 * cli/cli-script.c (recurse_read_control_structure): Add missing
857 'void'.
858 (read_next_line): Likewise.
859 (read_command_lines_1): Likewise.
860
ce50d78b
UW
8612010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
862
863 * spu-tdep.c (spu_analyze_prologue): Track instruction to
864 store backchain as part of prologue.
865
7e9af34a
DJ
8662010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
867
868 * progspace.c (update_address_spaces): Update inferior address spaces
869 also.
870
01637564
DE
8712010-03-02 Doug Evans <dje@google.com>
872
873 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
874 lowpc,highpc args to addrmap_set_empty.
875
1ba53b71
L
8762010-03-02 H.J. Lu <hongjiu.lu@intel.com>
877
878 * amd64-tdep.c (amd64_byte_names): New.
879 (amd64_word_names): Likewise.
880 (amd64_dword_names): Likewise.
881 (amd64_pseudo_register_name): Likewise.
882 (amd64_pseudo_register_read): Likewise.
883 (amd64_pseudo_register_write): Likewise.
884 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
885 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
886 set_gdbarch_pseudo_register_write and
887 set_tdesc_pseudo_register_name. Don't call
888 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
889
890 * i386-tdep.c (i386_num_mmx_regs): Removed.
891 (i386_num_pseudo_regs): Likewise.
892 (i386_byte_names): New.
893 (i386_word_names): Likewise.
894 (i386_byte_regnum_p): Likewise.
895 (i386_word_regnum_p): Likewise.
896 (i386_mmx_regnum_p): Updated.
897 (i386_pseudo_register_name): Make it global. Handle byte and
898 word pseudo-registers.
899 (i386_pseudo_register_read): Likewise.
900 (i386_pseudo_register_write): Likewise.
901 (i386_pseudo_register_type): Handle byte, word and dword
902 pseudo-registers
903 (i386_register_reggroup_p): Don't include pseudo
904 registers, except for MXX, in any register groups. Don't
905 include pseudo byte, word, dword registers in general_reggroup.
906 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
907 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
908 pseudo-registers after word pseudo-registers. Call
909 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
910
911 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
912 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
913 eax_regnum.
914 (i386_byte_regnum_p): New.
915 (i386_word_regnum_p): Likewise.
916 (i386_dword_regnum_p): Likewise.
917 (i386_pseudo_register_name): Likewise.
918 (i386_pseudo_register_read): Likewise.
919 (i386_pseudo_register_write): Likewise.
920
a6f5ef51
L
9212010-03-01 H.J. Lu <hongjiu.lu@intel.com>
922
923 * target-descriptions.c (tdesc_type): Remove
924 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
925 (tdesc_predefined_types): Likewise.
926 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
927 if flag name is empty.
928 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
929
930 * features/i386/32bit-core.xml: Define i386_eflags.
931 * features/i386/64bit-core.xml: Likewise.
932
933 * features/i386/32bit-sse.xml: Define i386_mxcsr.
934 * features/i386/64bit-sse.xml: Likewise.
935
936 * features/i386/amd64-linux.c: Regenerated.
937 * features/i386/amd64.c: Likewise.
938 * features/i386/i386-linux.c: Likewise.
939 * features/i386/i386.c: Likewise.
940
f5dff777
DJ
9412010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
942
943 * gdbtypes.c (append_composite_type_field_raw): New.
944 (append_composite_type_field_aligned): Use the new function.
945 * gdbtypes.h (append_composite_type_field_raw): Declare.
946 * target-descriptions.c (struct tdesc_type_field): Add start and end.
947 (struct tdesc_type_flag): New type.
948 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
949 kind. Add size to u.u. Add u.f for flags.
950 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
951 (tdesc_free_type): Likewise.
952 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
953 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
954 (tdesc_add_bitfield, tdesc_add_flag): New.
955 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
956 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
957 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
958 current_type. Add current_type_size and current_type_is_flags.
959 (tdesc_start_union): Clear the new fields.
960 (tdesc_start_struct, tdesc_start_flags): New.
961 (tdesc_start_field): Handle struct fields, including bitfields.
962 (field_attributes): Make type optional. Add start and end.
963 (union_children): Rename to struct_union_children.
964 (union_attributes): Rename to struct_union_attributes. Add optional
965 size.
966 (flags_attributes): New.
967 (feature_children): Add struct and flags.
968 * features/gdb-target.dtd: Add flags and struct to features.
969 Make field type optional. Add field start and end.
970
90884b2b
L
9712010-03-01 H.J. Lu <hongjiu.lu@intel.com>
972
973 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
974 (amd64_linux_read_description): Likewise.
975 (_initialize_amd64_linux_nat): Set to_read_description to
976 amd64_linux_read_description.
977
978 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
979 (amd64_linux_register_name): Removed.
980 (amd64_linux_register_type): Likewise.
981 (amd64_linux_core_read_description): New.
982 (amd64_linux_init_abi): Set target description to
983 tdesc_amd64_linux if needed. Support orig_rax in target
984 description. Don't call set_gdbarch_register_name nor
985 set_gdbarch_register_type. Call
986 set_gdbarch_core_read_description.
987 (_initialize_amd64_linux_tdep): Call
988 initialize_tdesc_amd64_linux.
989
990 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
991
992 * amd64-tdep.c: Include "features/i386/amd64.c".
993 (amd64_register_names): Removed.
994 (amd64_register_name): Likewise.
995 (amd64_register_type): Likewise.
996 (amd64_init_abi): Set num_core_regs and register_names. Set
997 target description to tdesc_amd64 if needed. Don't call
998 set_gdbarch_register_name nor set_gdbarch_register_type.
999 (_initialize_amd64_tdep): New.
1000
1001 * i386-linux-nat.c (i386_linux_read_description): New.
1002 (_initialize_i386_linux_nat): Set to_read_description to
1003 i386_linux_read_description.
1004
1005 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
1006 (i386_linux_register_name): Removed.
1007 (i386_linux_core_read_description): New.
1008 (i386_linux_read_description): Likewise.
1009 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
1010 Set target description to tdesc_i386_linux if needed. Support
1011 orig_eax. Set register_reggroup_p. Call
1012 set_gdbarch_core_read_description.
1013 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
1014
1015 * i386-linux-tdep.h (tdesc_i386_linux): New.
1016
1017 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
1018 with I387_NUM_REGS.
1019
1020 * i386-tdep.c: Include "features/i386/i386.c".
1021 (i386_register_names): Make it const.
1022 (i386_mmx_names): Likewise.
1023 (i386_num_register_names): Removed.
1024 (i386_register_name): Likewise.
1025 (i386_eflags_type): Likewise.
1026 (i386_mxcsr_type): Likewise.
1027 (i386_sse_type): Likewise.
1028 (i386_register_type): Likewise.
1029 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
1030 (i386_pseudo_register_name): New.
1031 (i386_pseudo_register_type): Likewise.
1032 (i386_mmx_type): Make it static.
1033 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
1034 I387_NUM_REGS. Set num_core_regs and register_names. Don't
1035 call set_gdbarch_register_name nor set_gdbarch_register_type.
1036 Set register_reggroup_p. Set target description to tdesc_i386
1037 if needed. Call set_tdesc_pseudo_register_type,
1038 set_tdesc_pseudo_register_name and tdesc_use_registers.
1039 (_initialize_i386_tdep): Call initialize_tdesc_i386.
1040 initialize_tdesc_x86_64.
1041
1042 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
1043 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
1044 register_names, tdesc and register_reggroup_p.
1045 (I386_NUM_FREGS): Removed.
1046 (i386_eflags_type): Likewise.
1047 (i386_mxcsr_type): Likewise.
1048 (i386_mmx_type): Likewise.
1049 (i386_sse_type): Likewise.
1050 (i386_register_name): Likewise.
1051 (i386_regnum): Add I386_MXCSR_REGNUM.
1052 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
1053
1054 * i387-tdep.h (I387_NUM_REGS): New.
1055
1056 * regformats/i386/i386-linux.dat: Generated.
1057 * regformats/i386/i386.dat: Likewise.
1058 * regformats/i386/amd64-linux.dat: Likewise.
1059 * regformats/i386/amd64.dat: Likewise.
1060
1061 * regformats/reg-i386-linux.dat: Removed.
1062 * regformats/reg-i386.dat: Likewise.
1063 * regformats/reg-x86-64-linux.dat: Likewise.
1064 * regformats/reg-x86-64.dat: Likewise.
1065
d0d0ab16
CV
10662010-03-01 Corinna Vinschen <vinschen@redhat.com>
1067
1068 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
1069 cygwin_conv_path API rather than the deprecated
1070 cygwin_conv_to_full_posix_path.
1071 * windows-nat.c:
1072 (GetModuleFileNameExA): Undefine for Cygwin.
1073 (GetModuleFileNameExW): Define for Cygwin.
1074 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
1075 Call GetModuleFileNameExW and convert path to POSIX using
1076 cygwin_conv_path.
1077 (windows_make_so): Always define p. Drop unused variable m.
1078 Don't use Win32 functions to check file existance, rather use
1079 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
1080 Use canonicalize_file_name to get full path.
1081 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
1082 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
1083 use correct target buffer size in call to WideCharToMultiByte.
1084 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
1085 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
1086 (windows_create_inferior): Convert all paths and arguments to wchar_t
1087 and use CreateProcessW on Cygwin.
1088 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
1089 (bad_GetModuleFileNameExA): Undefine for Cygwin.
1090 (bad_GetModuleFileNameExW): Define for Cygwin.
1091 (_initialize_loadable): Load GetModuleFileNameExW into
1092 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
1093
dc00d89f
PM
10942010-02-28 Phil Muldoon <pmuldoon@redhat.com>
1095
1096 PR python/11036
1097 * python/py-frame.c (frapy_read_var): Add block argument and logic
1098 to cope with user provided blocks.
1099
0e095b7e
JK
11002010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1101
1102 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
1103 New comment.
1104
2f9e05b4
CV
11052010-02-28 Corinna Vinschen <vinschen@redhat.com>
1106
1107 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
1108 (COMMON_OBS): ... to here since it's used unconditionally.
1109 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
1110 (SFILES): To here.
1111
eb195664
DD
11122010-02-26 David Daney <ddaney@caviumnetworks.com>
1113
1114 * mips-linux-tdep.c: Update struct sigframe comments.
1115 (SIGFRAME_CODE_OFFSET): Delete macro.
1116 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
1117 this_frame's sp.
1118 (mips_linux_n32n64_sigframe_init): Same.
1119
97b0f3e2
KB
11202010-02-26 Kevin Buettner <kevinb@redhat.com>
1121
1122 * remote-mips.c (mips_load): Don't use pseudo-register when
1123 invalidating regcache.
1124
4069ebbe
DJ
11252010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
1126
1127 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
1128
05071a4d
PA
11292010-02-26 Pedro Alves <pedro@codesourcery.com>
1130
1131 * NEWS: Add "New targets" section, and mention ARM Symbian
1132 support.
1133
6063c216
UW
11342010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
1135
1136 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
1137 add ADDR_SIZE member.
1138 (allocate_piece_closure): Update.
1139 (copy_pieced_value_closure): Likewise.
1140 (dwarf2_evaluate_loc_desc): Likewise.
1141 (read_pieced_value): Use DWARF address size instead of
1142 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
1143
5107b149
PM
11442010-02-26 Phil Muldoon <pmuldoon@redhat.com>
1145 Tom Tromey <tromey@redhat.com>
1146
1147 * python/py-type.c (typy_lookup_typename): Add in block argument.
1148 If provided restrict lookup to specified blocks.
1149 (gdbpy_lookup_type): Likewise.
1150 (typy_lookup_type): Likewise.
1151
78664fa3
PA
11522010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
1153
1154 Symbian config
1155
1156 gdb/
1157 * arm-symbian-tdep.c: New.
1158 * configure.tgt (arm*-*-symbianelf*): New target.
1159 (*-*-symbianelf*): New OS.
1160 * osabi.c (gdb_osabi_names): Add Symbian.
1161 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
1162 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
1163 (ALLDEPFILES): Add arm-symbian-tdep.c.
1164
eb73e134
DJ
11652010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
1166
1167 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
1168
46ef47e5
PA
11692010-02-24 Pedro Alves <pedro@codesourcery.com>
1170
1171 * mi/mi-main.c (mi_cmd_execute): Fix typo.
1172
f3e9a817
PM
11732010-02-24 Phil Muldoon <pmuldoon@redhat.com>
1174 Tom Tromey <tromey@redhat.com>
1175 Thiago Jung Bauermann <bauerman@br.ibm.com>
1176
1177 * python/python.c (_initialize_python): Call
1178 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
1179 gdbpy_initialize_blocks.
1180 * python/python-internal.h: Declare struct symbol, block and
1181 symtab_and_line. Declare block_object_type and
1182 symbol_object_type
1183 (gdbpy_lookup_symbol gdbpy_block_for_pc)
1184 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
1185 (symbol_to_symbol_object, block_to_block_object)
1186 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
1187 (gdbpy_initialize_blocks ): Declare.
1188 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
1189 (frapy_select): Add methods.
1190 (frapy_read_var): Add symbol branch.
1191 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
1192 py-block.
1193 (SUBDIR_PYTHON_SRCS): Likewise.
1194 (py-symbol.o): New rule.
1195 (py-symtab.o): Likewise.
1196 (py-block.o): Likewise.
1197 * python/py-symbol.c: New file.
1198 * python/py-symtab.c: Likewise.
1199 * python/py-block.c: Likewise.
1200
24291992
PA
12012010-02-24 Pedro Alves <pedro@codesourcery.com>
1202
1203 PR gdb/11321
1204
1205 * inferior.h (prepare_for_detach): Declare.
1206 (struct inferior) <detaching>: New field.
1207 * infrun.c (prepare_for_detach): New.
1208 (handle_inferior_event) <random signal>: Don't stop if detaching.
1209 * target.c (target_detach): Call prepare_for_detach.
1210
fc1cf338
PA
12112010-02-24 Pedro Alves <pedro@codesourcery.com>
1212
1213 Per-process displaced stepping queue.
1214
1215 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
1216 (displaced_step_gdbarch, displaced_step_closure,
1217 (displaced_step_original, displaced_step_copy): Move globals to
1218 this...
1219 (struct displaced_step_inferior_state): ... new structure.
1220 (displaced_step_inferior_states): New global.
1221 (get_displaced_stepping_state, add_displaced_stepping_state)
1222 (remove_displaced_stepping_state, infrun_inferior_exit): New
1223 functions.
1224 (displaced_step_clear): Add displaced_step_inferior_state
1225 parameter, and adjust to handle it.
1226 (displaced_step_clear_cleanup): Parameter is now a
1227 displaced_step_inferior_state. Adjust.
1228 (displaced_step_prepare): Adjust.
1229 (displaced_step_fixup, displaced_step_fixup)
1230 (infrun_thread_ptid_changed, resume): Adjust.
1231 (init_wait_for_inferior): Don't call displaced_step_clear.
1232 (infrun_thread_stop_requested): Rewrite.
1233 (_initialize_infrun): Install infrun_inferior_exit as
1234 inferior_exit observer.
1235
0723dbf5
PA
12362010-02-24 Pedro Alves <pedro@codesourcery.com>
1237
1238 * inferior.h (ptid_match): Declare.
1239 * infrun.c (ptid_match): New.
1240 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
1241 (handle_notification): Add debug output.
1242 * linux-nat.c (ptid_match): Delete.
1243
09de9781
DM
12442010-02-24 David S. Miller <davem@davemloft.net>
1245
1246 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
1247 * syscalls/sparc-linux.xml: New.
1248 * syscalls/sparc64-linux.xml: New.
1249 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
1250 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
1251 (sparc32_linux_get_syscall_number): New function.
1252 (sparc32_linux_init_abi): Set syscall XML file name and hook up
1253 syscall number fetcher.
1254 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
1255 (sparc64_linux_get_syscall_number): New function.
1256 (sparc64_linux_init_abi): Set syscall XML file name and hook up
1257 syscall number fetcher.
1258
a79b8f6e
VP
12592010-02-24 Vladimir Prus <vladimir@codesourcery.com>
1260
1261 Multiexec MI
1262
1263 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
1264 * inferior.c (add_inferior_silent): Notify inferior_added
1265 observer.
1266 (delete_inferior_1): Notify inferior_removed observer.
1267 (exit_inferior_1): Pass inferior, not pid, to observer.
1268 (inferior_appeared): Likewise.
1269 (add_inferior_with_spaces): New.
1270 (add_inferior_command): Use the above.
1271 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
1272 Declare.
1273
1274 * inflow.c (inflow_inferior_exit): Likewise.
1275 * jit.c (jit_inferior_exit_hook): Likewise.
1276
1277 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
1278 remove-inferior.
1279 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
1280 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
1281 (report_initial_inferior): New.
1282 (mi_inferior_removed): Register the above. Make sure
1283 inferior_added observer is called on the first inferior.
1284 (mi_new_thread, mi_thread_exit): Thread group is now identified by
1285 inferior number, not pid.
1286 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
1287 affected.
1288 * mi/mi-main.c (current_context): New.
1289 (proceed_thread_callback): Use typed closure.
1290 Proceed everything if pid is 0. Most implementation split into
1291 (proceed_thread): ... this.
1292 (run_one_inferior): New.
1293 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
1294 Adjust for multiexec behaviour.
1295 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
1296 (mi_cmd_execute): Handle the 'thread-group' option here.
1297 Do some extra checks.
1298 * mi-parse.c (mi_parse): Handle the --all and --thread-group
1299 options.
1300 * mi-parse.h (struct mi_parse): New fields all and thread_group.
1301
115d30f9
VP
13022010-02-24 Vladimir Prus <vladimir@codesourcery.com>
1303
1304 Make -exec-run a proper MI commands.
1305
1306 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
1307 * mi/mi-cmds.c (mi_cmds): Adjust.
1308 * mi/mi-main.c (mi_cmd_exec_run): New.
1309
06cd862c
PA
13102010-02-24 Pedro Alves <pedro@codesourcery.com>
1311 Stan Shebs <stan@codesourcery.com>
1312
1313 * tracepoint.h (set_traceframe_number)
1314 (cleanup_restore_current_traceframe): Declare.
1315 * tracepoint.c (set_traceframe_number): New.
1316 (struct current_traceframe_cleanup): New.
1317 (do_restore_current_traceframe_cleanup)
1318 (restore_current_traceframe_cleanup_dtor)
1319 (make_cleanup_restore_current_traceframe): New.
1320 * infrun.c: Include tracepoint.h.
1321 (fetch_inferior_event): Switch out and in of tfind mode.
1322
ab92d69b
PA
13232010-02-24 Pedro Alves <pedro@codesourcery.com>
1324
1325 * breakpoint.c (breakpoint_init_inferior): Also delete
1326 bp_shlib_event breakpoints.
1327 * solib-frv.c (enable_break): Remove call to
1328 remove_solib_event_breakpoints.
1329 * solib-svr4.c (enable_break): Ditto.
1330 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
1331 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
1332 * solib-som.c (som_solib_create_inferior_hook): Ditto.
1333 * solib-spu.c (spu_enable_break): Ditto.
1334
e707a91d
PA
13352010-02-23 Harald Koenig <H.Koenig@science-computing.de>
1336
1337 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
1338
cfce2ea2
PA
13392010-02-23 Harald Koenig <H.Koenig@science-computing.de>
1340
1341 * varobj.c (varobj_update): Avoid non-constants in initializers.
1342
05566b3b
TT
13432010-02-23 Tom Tromey <tromey@redhat.com>
1344
1345 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
1346 handle big-endian values.
1347 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
1348
85d721b8
PA
13492010-02-22 Pedro Alves <pedro@codesourcery.com>
1350
1351 PR9605
1352
1353 gdb/
1354 * breakpoint.c (insert_bp_location): If inserting the read
1355 watchpoint failed, fallback to an access watchpoint.
1356 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
1357 if the value changed, if not watching the same memory for writes.
1358 (watchpoint_locations_match): Add comment.
1359 (update_global_location_list): Copy the location's watchpoint type.
1360 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
1361 handle read watchpoints here.
1362 (i386_insert_watchpoint): Read watchpoints aren't supported.
1363 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
1364 packets.
1365 * target.h (target_insert_watchpoint): Update description.
1366
48ea67a7
TT
13672010-02-19 Tom Tromey <tromey@redhat.com>
1368
1369 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
1370 * m2-typeprint.c (m2_print_type): Update.
1371 * gdbtypes.c (recursive_dump_type): Update.
1372 (copy_type_recursive): Update.
1373 * c-typeprint.c (c_type_print_varspec_prefix): Update.
1374 (c_type_print_base): Update.
1375 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
1376 Remove.
1377 (struct cplus_struct_type) <ntemplate_args>: Remove.
1378 <struct template_arg>: Remove.
1379 <is_dynamic>: Move earlier.
1380 (TYPE_TEMPLATE_ARGS): Remove.
1381 (TYPE_NTEMPLATE_ARGS): Remove.
1382 (TYPE_TEMPLATE_ARG): Remove.
1383
48e32051
TT
13842010-02-19 Tom Tromey <tromey@redhat.com>
1385
1386 PR c++/8693, PR c++/9496:
1387 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
1388 * c-exp.y (lex_one_token): Rename from yylex. Don't call
1389 write_dollar_variable. Don't try to classify NAME tokens.
1390 (token_and_value): New type.
1391 (token_fifo, popping, name_obstack): New globals.
1392 (classify_name): New function.
1393 (classify_inner_name): Likewise.
1394 (yylex): Likewise.
1395 (VARIABLE): Now has type sval.
1396 (exp : VARIABLE): Call write_dollar_variable.
1397 (qualified_name): Use TYPENAME, not typebase. Add production for
1398 multiple "::" instances.
1399 (variable): Use name_not_typename.
1400 (qualified_type): Remove.
1401 (typebase): Update.
1402
672d9c23
JK
14032010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1404
1405 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
1406 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
1407 found by bfd_get_section_by_name.
1408 * symfile.h (struct section_addr_info) <sectindex>: New comment.
1409
bfbf3774
JB
14102010-02-19 Joel Brobecker <brobecker@adacore.com>
1411
1412 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
1413 7.0 section" into "Changes in 7.1".
1414
6756b09b 14152010-02-19 Joel Brobecker <brobecker@adacore.com>
1416
1417 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
1418 * version.in: Bump version to 7.1.50.20100219-cvs.
1419
202b96c1
PA
14202010-02-18 Harald Koenig <H.Koenig@science-computing.de>
1421
1422 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
1423 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
1424
de2e5182
TT
14252010-02-17 Tom Tromey <tromey@redhat.com>
1426
1427 * NEWS: Add Python API Improvements section.
1428
7280022e
DJ
14292010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
1430
1431 * NEWS: Correct typo.
1432
6f451e5e
TT
14332010-02-17 Tom Tromey <tromey@redhat.com>
1434
1435 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
1436
012836ea
JK
14372010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1438
1439 * symfile.c (build_section_addr_info_from_objfile): Include sections
1440 only if they are SEC_ALLOC or SEC_LOAD.
1441
d182d057
L
14422010-02-17 H.J. Lu <hongjiu.lu@intel.com>
1443
1444 PR shlibs/11293
1445 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
1446 of ULONGEST for address size.
1447
4eef138c
TT
14482010-02-17 Tom Tromey <tromey@redhat.com>
1449
1450 * NEWS: Add C++ improvements section.
1451
548a926a
UW
14522010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
1453
1454 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
1455 PyThreadState_Swap): Avoid "statement with no effect" warning.
1456
ad3a0e5b
JK
14572010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1458
1459 * solib-svr4.c (enable_break <target_auxv_search>): New variable
1460 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
1461
243e2c5d
TG
14622010-02-17 Tristan Gingold <gingold@adacore.com>
1463 Petr Hluzín <petr.hluzin@gmail.com>
1464
1465 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
1466 gdb_assert. Fix info->size for SIG prologue.
1467
275f2e57
DJ
14682010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1469
1470 * infcmd.c (show_inferior_tty_command): Check for NULL.
1471 Correct output message.
1472
791dfb64
DJ
14732010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1474
1475 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
1476 FUNCTION contains parentheses. Improve removal of a trailing
1477 single quote.
1478
14d1346b
DJ
14792010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1480
1481 * gcore.c (do_bfd_delete_cleanup): New function.
1482 (gcore_command): Use it. Discard the cleanup after success.
1483 (gcore_copy_callback): Delete dead code.
1484
e76ab67f
DJ
14852010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
1486
1487 * symfile.c (addr_info_make_relative): Always use
1488 find_lowest_section.
1489
71dee663
SW
14902010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
1491
1492 * NEWS: Added entry for namespace fixes.
1493
a9854bd5
TT
14942010-02-15 Tom Tromey <tromey@redhat.com>
1495
1496 * dwarf2read.c (guess_structure_name): Allocate name on the
1497 objfile obstack.
1498
fd9e29b5
TT
14992010-02-15 Tom Tromey <tromey@redhat.com>
1500
1501 * c-typeprint.c (c_type_print_base): Reverse order of test.
1502
4e1fc9c9
JK
15032010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1504
1505 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
1506 initialize it from ELF BFD. Extend the prelink condition by it.
1507
74164c56
JK
15082010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1509
1510 * defs.h (parse_pid_to_attach): New.
1511 * utils.c (parse_pid_to_attach): New.
1512 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
1513 * gnu-nat.c (gnu_attach): Likewise.
1514 * nto-procfs.c (procfs_attach): Likewise.
1515 * procfs.c (procfs_attach): Likewise.
1516 * windows-nat.c (windows_attach): Likewise.
1517 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
1518 * inf-ttrace.c (inf_ttrace_attach): Likewise.
1519 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
1520 check.
1521
bf6adea8
MM
15222010-02-14 Masaki Muranaka <monaka@monami-software.com>
1523
1524 * MAINTAINERS: Add myself for write after approval privileges.
1525
28f34a8f
JK
15262010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1527
1528 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
1529 block.
1530
701ed6dc
JK
15312010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1532
1533 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
1534 only if INFO_VERBOSE.
1535
e5829bee
MS
15362010-02-12 Tomas Holmberg <th@virtutech.com>
1537
1538 * mi/mi-main.c: Added the --reverse flag to the following MI
1539 commands: exec-continue, exec-finish, exec-next, exec-step,
1540 exec-next-instruction, exec-step-instruction. This is to
1541 support reverse execution over the MI interface to gdb.
1542
081dfbf7
PA
15432010-02-12 Pedro Alves <pedro@codesourcery.com>
1544
1545 * tracepoint.c (_initialize_tracepoint): Specify that the address
1546 range of `tfind outsize' is exclusive, and that the address range
1547 of `tfind range' is inclusive, in the commands' help strings.
1548
ecc13e53
JB
15492010-02-12 Joel Brobecker <brobecker@adacore.com>
1550
1551 Spurious "dll not found" error messages on x64-windows.
1552 * windows-nat.c: Add include of complaints.h.
1553 (handle_unload_dll): Change dll-not-found error into a complaint.
1554
15c3d785
PA
15552010-02-12 Pedro Alves <pedro@codesourcery.com>
1556
1557 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
1558 bp_tracepoint and bp_fast_tracepoint, not
1559 bp_loc_software_breakpoint.
1560 (update_global_location_list): Tracepoints are never duplicates of
1561 anything.
1562
fd9b8c24
PA
15632010-02-12 Pedro Alves <pedro@codesourcery.com>
1564
1565 * breakpoint.c (break_command_really): Change return type to int.
1566 Return false if no breakpoint was created, true otherwise.
1567 (trace_command): Don't set the tracepoint count if no tracepoint
1568 was created.
1569 (ftrace_command): Ditto.
1570 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
1571 created in the breakpoints table.
1572
5c0d192f
JK
15732010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1574 Ulrich Weigand <uweigand@de.ibm.com>
1575
1576 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
1577
5d5b640e
PA
15782010-02-11 Pedro Alves <pedro@codesourcery.com>
1579
1580 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
1581 the offset value isn't of integral type.
1582
e5a0a904
JK
15832010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1584
1585 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
1586 New.
1587
be636754
PA
15882010-02-11 Pedro Alves <pedro@codesourcery.com>
1589
1590 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
1591 non-subscriptable types.
1592 * valarith.c (binop_types_user_defined_p): New, abstracted out
1593 from ...
1594 (binop_user_defined_p): ... this.
1595 * value.h (binop_types_user_defined_p): Declare.
1596
10ef8d6a
PA
15972010-02-11 Pedro Alves <pedro@codesourcery.com>
1598
1599 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
1600 Merge uploaded TSVs before merging uploaded tracepoints.
1601
b1028c8e
PA
16022010-02-11 Pedro Alves <pedro@codesourcery.com>
1603
1604 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
1605
7a93fb82 16062010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 1607
7a93fb82
VP
1608 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
1609 whitespace character after a dot in comment.
1610 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
1611 Likewise.
1612 (list_args_or_locals): For the 'all' (that is
1613 -stack-list-variables) case, always output list of tuples.
1614 Output 'arg' field if variable is argument.
84d90c10 1615
92981e24
TT
16162010-02-10 Tom Tromey <tromey@redhat.com>
1617
1618 * parser-defs.h (parser_debug): Declare.
1619 * parse.c (_initialize_parse): Install "debug parser" set/show
1620 command.
1621 (parser_debug): New global.
1622 (show_parserdebug): New function.
1623 * c-exp.y (c_parse): Set yydebug.
1624
9fd3625f
L
16252010-02-10 H.J. Lu <hongjiu.lu@intel.com>
1626
1627 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
1628 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1629 (tdesc_predefined_types): Add i387_ext, i386_eflags and
1630 i386_mxcsr.
1631 (tdesc_find_type): New.
1632 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
1633 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1634
1635 * target-descriptions.h (tdesc_find_type): New.
1636
2fe842e5
MS
16372010-02-10 Michael Snyder <msnyder@vmware.com>
1638
1639 * gdb-gdb.py: Comment fix.
1640
f18b4cab
TG
16412010-02-09 Tristan Gingold <gingold@adacore.com>
1642
1643 * machoread.c (macho_symfile_relocate): New function.
1644 (macho_sym_fns): Use macho_symfile_relocate instead of
1645 default_symfile_relocate.
1646 (macho_oso_data): New type.
1647 (current_oso): New variable.
1648 (macho_add_oso_symfile): Do not compute section_addr_info, but
1649 instead set vma of sections.
1650 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
1651 Set and clear current_oso.
1652
31dbc1c5
JB
16532010-02-09 Joel Brobecker <brobecker@adacore.com>
1654
1655 Wrong type description for tagged type parameter.
1656 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
1657 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
1658 reference to a tagged type.
1659
399f313b
TG
16602010-02-09 Tristan Gingold <gingold@adacore.com>
1661
1662 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
1663 brothers of the parent.
1664
714f19d5
TT
16652010-02-08 Tom Tromey <tromey@redhat.com>
1666
1667 PR c++/8017:
1668 * value.h: Update.
1669 * valops.c (search_struct_field): Make 'name' const.
1670 (search_struct_method): Likewise.
1671 (find_method_list): Make 'method' const.
1672 (value_struct_elt): Make 'name' and 'err' const.
1673 (value_find_oload_method_list): Make 'method' const.
1674 (find_overload_match): Make 'name' const.
1675 * eval.c (evaluate_subexp_standard): New locals function,
1676 function_name.
1677 <OP_FUNCALL>: Handle OP_SCOPE specially.
1678
de0a0249
UW
16792010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
1680
1681 * infrun.c (handle_inferior_event): Do not look up regcache
1682 for exited processes.
1683
83b10087
CM
1684Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
1685
1686 PR gdb/10728
1687 * valarith.c (value_ptrdiff): Added a test for a zero type length,
1688 warn if found, and assume length = 1.
1689
99903ae3
CM
16902010-02-08 Chris Moller <cmoller@redhat.com>
1691
1692 PR gdb/9067
1693 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
1694 cp_print_static_field) Fix use of obstacks.
1695
e3e9f5a2
PA
16962010-02-08 Pedro Alves <pedro@codesourcery.com>
1697
1698 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
1699 resumed LWPs as resumed.
1700 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
1701 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
1702 of throwing an internal error. If an LWP of a process we're not
1703 waiting for reports a signal, don't force collecting a SIGSTOP,
1704 and if it was breakpoint hit in non-stop mode, cancel it. Don't
1705 go through all LWPs cancelling breakpoints in non-stop mode.
1706 (resume_stopped_resumed_lwps): New.
1707 (linux_nat_wait): Use it.
1708
46763423
L
17092010-02-07 H.J. Lu <hongjiu.lu@intel.com>
1710
1711 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
1712 i386/amd64 and i386/amd64-linux.
1713 (i386/i386-expedite): New.
1714 (i386/i386-linux-expedite): Likewise.
1715 (i386/amd64-expedite):Likewise.
1716 (i386/amd64-linux-expedite): Likewise.
1717 ($(outdir)/i386/i386-linux.dat): Likewise.
1718 ($(outdir)/i386/amd64.dat): Likewise.
1719 ($(outdir)/i386/amd64-linux.dat): Likewise.
1720
1721 * features/i386/32bit-core.xml: New.
1722 * features/i386/32bit-linux.xml: Likewise.
1723 * features/i386/32bit-sse.xml: Likewise.
1724 * features/i386/64bit-core.xml: Likewise.
1725 * features/i386/64bit-linux.xml: Likewise.
1726 * features/i386/64bit-sse.xml: Likewise.
1727 * features/i386/i386-linux.xml: Likewise.
1728 * features/i386/i386.xml: Likewise.
1729 * features/i386/amd64-linux.xml: Likewise.
1730 * features/i386/amd64.xml: Likewise.
1731 * features/i386/i386-linux.c: Likewise.
1732 * features/i386/i386.c: Likewise.
1733 * features/i386/amd64-linux.c: Likewise.
1734 * features/i386/amd64.c: Likewise.
1735
82856980
SW
17362010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
1737
1738 PR c++/7935:
1739 * cp-support.h: Added char* alias element to using_direct data
1740 struct.
1741 (cp_add_using): Added char* alias argument.
1742 (cp_add_using_directive): Ditto.
1743 * cp-namespace.c: Updated with the above changes.
1744 (cp_lookup_symbol_imports): Check for aliases.
1745 * dwarf2read.c (read_import_statement): Figure out local alias
1746 for the import and pass it on to cp_add_using.
1747 (read_namespace): Pass alias argument to cp_add_using.
1748
d18b8b7a
HZ
17492010-02-05 Hui Zhu <teawater@gmail.com>
1750
1751 * defs.h (gdb_bfd_errmsg): New extern.
1752 * exec.c (exec_file_attach): Change bfd_errmsg to
1753 gdb_bfd_errmsg.
1754 * utils.c (AMBIGUOUS_MESS1): New macro.
1755 (AMBIGUOUS_MESS2): New macro.
1756 (gdb_bfd_errmsg): New function.
1757
48379de6
DE
17582010-02-04 Doug Evans <dje@google.com>
1759
1760 * solib-svr4.c (enable_break): Add comment.
1761
4ee73e90
AG
17622010-02-04 Anthony Green <green@moxielogic.com>
1763
1764 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
1765 gracefully.
1766
1a334831
TT
17672010-02-04 Tom Tromey <tromey@redhat.com>
1768
1769 * valops.c (search_struct_field): Account for
1770 value_embedded_offset. Fix check for virtual base past the end of
1771 the object. Use value_copy when making a slice of the value.
1772
1180b2c8
L
17732010-02-04 H.J. Lu <hongjiu.lu@intel.com>
1774
1775 PR tui/9622
1776 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
1777 only if gdb_stdout is a tty.
1778
c3f08eb7
L
17792010-02-04 H.J. Lu <hongjiu.lu@intel.com>
1780
1781 * target-descriptions.c: Include "osabi.h".
1782 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
1783 OSABI.
1784
2d33f7b8
TG
17852010-02-04 Tristan Gingold <gingold@adacore.com>
1786
1787 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
1788 (macho_symtab_read): Adjust calls to macho_add_oso.
1789 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
1790 (macho_symfile_read): Adjust call to macho_oso_symfile.
1791 (macho_new_init): Move this function after declarations.
1792 (macho_symfile_init): Ditto.
1793 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
1794 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
1795
11334b82
VP
17962010-02-04 Vladimir Prus <vladimir@codesourcery.com>
1797
1798 Include MI command in remotelog.
1799
1800 * mi/mi-main.c (mi_execute_command): Call target_log_command.
1801
ff97be06
L
18022010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1803
1804 * remote.c (remote_state): Remove gdbarch.
1805 (init_remote_state): Don't set gdbarch.
1806 (remote_query_supported): Pass target_gdbarch instead of
1807 rs->gdbarch to gdbarch_qsupported.
1808
75cebea9
L
18092010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1810
1811 * gdbarch.sh: Add qsupported.
1812
1813 * gdbarch.c: Regenerated.
1814 * gdbarch.h: Likewise.
1815
1816 * remote.c (remote_state): Add gdbarch.
1817 (init_remote_state): Set gdbarch.
1818 (remote_query_supported): Support gdbarch_qsupported.
1819
c1dec97b
DJ
18202010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
1821
1822 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
1823 __FreeBSD_kernel_version.
1824
ac8035ab
TG
18252010-02-03 Tristan Gingold <gingold@adacore.com>
1826
1827 * symfile.h (struct sym_fns): Add sym_relocate field.
1828 (default_symfile_relocate): New prototype.
1829 (symfile_relocate_debug_section): First argument is now an objfile.
1830 * symfile.c (default_symfile_relocate): Rename from
1831 symfile_relocate_debug_section, first argument is now an objfile.
1832 (symfile_relocate_debug_section): New function.
1833 * coffread.c (coff_sym_fns): Set sym_relocate field.
1834 * somread.c (som_sym_fns): Ditto.
1835 * mipsread.c (ecoff_sym_fns): Ditto.
1836 * machoread.c (macho_sym_fns): Ditto.
1837 * elfread.c (elf_sym_fns): Ditto.
1838 * dwarf2read.c (dwarf2_read_section): Ditto.
1839 * xcoffread.c (xcoff_sym_fns): Ditto.
1840 * dbxread.c (aout_sym_fns): Ditto.
1841 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
1842 (elfstab_build_psymtabs): Ditto.
1843
be52b756
L
18442010-02-03 H.J. Lu <hongjiu.lu@intel.com>
1845
1846 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
1847
9c3c02fd
TT
18482010-02-02 Tom Tromey <tromey@redhat.com>
1849
1850 * valops.c (value_cast_structs): Try downcasting using the RTTI
1851 type.
1852
f23f4c59
TT
18532010-02-02 Tom Tromey <tromey@redhat.com>
1854
1855 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
1856 (gnuv2_baseclass_offset): Now static.
1857 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
1858 * gnu-v2-abi.h: Remove.
1859
0cc2414c
TT
18602010-02-02 Tom Tromey <tromey@redhat.com>
1861
1862 * m2-typeprint.c (m2_record_fields): Don't use
1863 TYPE_DECLARED_TYPE.
1864 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
1865 (struct main_type) <flag_declared_class>: New field.
1866 (struct cplus_struct_type) <declared_type>: Remove.
1867 <ntemplate_args>: Move earlier.
1868 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
1869 (DECLARED_TYPE_TEMPLATE): Remove.
1870 (TYPE_DECLARED_TYPE): Remove.
1871 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
1872 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
1873 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
1874 TYPE_DECLARED_TYPE.
1875
edf3d5f3
TT
18762010-02-02 Tom Tromey <tromey@redhat.com>
1877
1878 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
1879 * valops.c (search_struct_field): Compute nbases after calling
1880 CHECK_TYPEDEF.
1881 (check_field): Call CHECK_TYPEDEF.
1882 * cp-valprint.c (cp_print_value): Pass correct address to
1883 baseclass_offset. Fix check for virtual base past the end of the
1884 object. Don't offset address passed to cp_print_value_fields or
1885 apply_val_pretty_printer.
1886 (cp_print_value_fields): Fix call to val_print.
1887 (cp_print_value_fields_rtti): New function.
1888 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
1889 * p-valprint.c (pascal_object_print_value_fields): Fix call to
1890 val_print.
1891 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
1892 offset to address.
1893 * language.h (struct language_defn) <la_val_print>: Document.
1894 * c-lang.h (cp_print_value_fields_rtti): Declare.
1895
e4b7f41c
JK
18962010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1897
1898 PR libc/11214:
1899 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1900 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
1901 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
1902
7618e12b
DJ
19032010-02-01 Michael Matz <matz@suse.de>
1904 Daniel Jacobowitz <dan@codesourcery.com>
1905
e4b7f41c 1906 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
1907 functions use a frame pointer.
1908
b381ea14
JK
19092010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1910
1911 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
1912 by a conditional setting DYN_ADDR. Use DYN_ADDR.
1913 * config/djgpp/fnchange.lst: Add translations for
1914 symbol-without-target_section.exp and symbol-without-target_section.c.
1915
0e05dfcb
DJ
19162010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1917
1918 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
1919 (remote_breakpoint_for_pc): Correct invalid_p check.
1920 * gdbarch.c: Regenerated.
1921
f9d67f43
DJ
19222010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1923
1924 * arm-tdep.c (arm_find_mapping_symbol): New function, from
1925 arm_pc_is_thumb.
1926 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
1927 (extend_buffer_earlier): New function.
1928 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
1929 (arm_adjust_breakpoint_address): New function.
1930 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
1931
177321bd
DJ
19322010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1933
1934 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
1935 (arm_linux_thumb2_le_breakpoint): New constants.
1936 (arm_linux_init_abi): Set thumb2_breakpoint and
1937 thumb2_breakpoint_size.
1938 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
1939 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
1940 Implement support for single stepping through IT blocks if
1941 a 32-bit Thumb breakpoint instruction is available.
1942 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
1943 is available, use it when needed.
1944 (arm_remote_breakpoint_from_pc): New function.
1945 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
1946 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
1947 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
1948
a1dcb23a
DJ
19492010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
1950
1951 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
1952 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
1953 * gdbarch.c, gdbarch.h: Regenerated.
1954 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
1955 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
1956 gdbarch_remote_breakpoint_from_pc.
1957
2b009048
DJ
19582010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1959
1960 * infrun.c (prepare_to_proceed): Handle other signals which might
1961 match a breakpoint.
1962 (handle_inferior_event): Move the check for unusual breakpoint
1963 signals earlier.
1964
e4e2711a
JB
19652010-01-29 Paul Hilfinger <hilfinger@adacore.com>
1966
1967 amd64 - function returning record with field straddling 2 registers.
1968 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
1969 a record of length <= 16 in which a field straddles the two
1970 eightbytes.
1971
cba6fab5
JB
19722010-01-29 Joel Brobecker <brobecker@adacore.com>
1973
1974 Implement return values on amd64-windows.
1975 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
1976 (amd64_windows_return_value): New function.
1977 (amd64_windows_init_abi): Call set_gdbarch_return_value with
1978 amd64_windows_return_value.
1979
3af6ddfe
JB
19802010-01-29 Joel Brobecker <brobecker@adacore.com>
1981
1982 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 1983 parameter registers.
3af6ddfe
JB
1984 * i386-tdep.h (struct gdbarch_tdep): Add new field
1985 integer_param_regs_saved_in_caller_frame.
1986 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1987 tdep->integer_param_regs_saved_in_caller_frame to 1.
1988 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1989 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1990
80d19a06
JB
19912010-01-29 Joel Brobecker <brobecker@adacore.com>
1992
1993 amd64-windows: memory args passed by pointer during function calls.
1994 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1995 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1996 where tdep->memory_args_by_pointer is non-zero.
1997 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
1998 tdep->memory_args_by_pointer to 1.
1999
ba581dc1
JB
20002010-01-29 Joel Brobecker <brobecker@adacore.com>
2001
4966b6c2 2002 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
2003 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2004 amd64-tdep.c.
2005 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2006 call_dummy_integer_regs, and classify.
2007 * amd64-tdep.h (amd64_classify): Add declaration.
2008 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2009 (amd64_reg_class): Delete, moved to i386-tdep.h.
2010 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2011 Replace call to amd64_classify by call to tdep->classify.
2012 (amd64_push_arguments): Get the list of registers to use for
2013 passing integer parameters from the gdbarch tdep structure,
2014 rather than using a hardcoded one. Replace calls to amd64_classify
2015 by calls to tdep->classify.
2016 (amd64_push_dummy_call): Get the register number used for
2017 the "hidden" argument from tdep->call_dummy_integer_regs.
2018 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2019 and tdep->call_dummy_integer_regs. Set tdep->classify.
2020 * amd64-windows-tdep.c: Add include of gdbtypes.h.
2021 (amd64_windows_dummy_call_integer_regs): New static global.
2022 (amd64_windows_classify): New function.
2023 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
2024 tdep->call_dummy_integer_regs and tdep->classify.
2025
d37346f0
DJ
20262010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
2027
2028 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
2029 for the new regcache. All callers updated.
2030 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
2031 (get_thread_arch_regcache): Do not set aspace here.
2032 * regcache.h (regcache_xmalloc): Update declaration.
2033
2034 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
2035 regcache_xmalloc updated.
2036
7434dadd
JB
20372010-01-28 Joel Brobecker <brobecker@adacore.com>
2038
2039 Another -Wunused-function error in procfs.c (sparc-solaris)
2040 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
2041 Only define if SYS_syssgi is defined.
2042 (remove_dbx_link_breakpoint): Delete declaration. Move up.
2043 (dbx_link_addr, insert_dbx_link_bpt_in_file)
2044 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
2045 is itself defined.
2046
16d905e2
CF
20472010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
2048
2049 * windows-nat.c (windows_initialization_done): New variable.
2050 (get_windows_debug_event): Issue error when process dies before
2051 completely initializing.
2052 (do_initial_windows_stuff): Set flag to indicate when we are done with
2053 the initial steps of attaching to the child.
2054
cd55e50f
JK
20552010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2056
2057 * symtab.h (struct symbol <symtab>): New comment on NULL values.
2058
99cc78aa
DE
20592010-01-27 Doug Evans <dje@google.com>
2060
4c7dcb84
DE
2061 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
2062
99cc78aa
DE
2063 * breakpoint.c (bpstat_stop_status): Delete useless code.
2064
52334bf5
JK
20652010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2066
2067 * printcmd.c (display_uses_solib_p): Remove variable section. Access
2068 objfile via SYMBOL_SYMTAB.
2069
708ead4e
TT
20702010-01-26 Tom Tromey <tromey@redhat.com>
2071
2072 PR exp/7643:
2073 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
2074 coerce_array on result.
2075
b14e635e
SW
20762010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
2077
2078 * cp-namespace.c (cp_lookup_symbol_namespace): Added
2079 search_parent argument.
2080 (cp_add_using): Initialize 'searched' field.
2081 (reset_directive_searched): New function.
2082 * cp-support.h: Add 'searched' field to using_direct struct.
2083 (cp_lookup_symbol_imports): Ditto.
2084 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
2085 Perform recursive search.
2086 Implement non parent search.
2087 * valops.c (value_maybe_namespace_elt): Updated.
2088
8540c487
SW
20892010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
2090
2091 PR gdb/10929:
2092 * dwarf2read.c (read_lexical_block_scope): Create blocks for
2093 scopes which contain using directives even if they contain no
2094 declarations.
2095 * symtab.c (lookup_symbol_aux): Pass lowest level block to
2096 la_lookup_symbol_nonlocal.
2097 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
2098 cp_lookup_symbol_namespace.
2099 (cp_lookup_symbol_namespace): Perform an import lookup at every
2100 block level.
2101 (cp_lookup_symbol_imports): New function.
2102 (cp_lookup_symbol_in_namespace): New function.
2103
421d5d99
TT
21042010-01-25 Tom Tromey <tromey@redhat.com>
2105
2106 PR gdb/11049:
2107 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
2108 result.
2109
6bcc772d
RO
21102010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2111
2112 * configure.ac: Only use host_os part when disabling TUI on osf.
2113 Use test to check variables, prefix strings with x.
2114 * configure: Regenerate.
2115
2116 * solib-osf.c (osf_current_sos): Initialize tail.
2117
1c1238a5
TG
21182010-01-25 gingold <gingold@adacore.com>
2119
2120 * windows-nat.c (windows_continue): Use %x to print thread id.
2121 (get_windows_debug_event): Ditto.
2122
0b92b5bb
TT
21232010-01-22 Tom Tromey <tromey@redhat.com>
2124
2125 PR symtab/11199:
2126 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
2127 type and arguments. Use smash_to_methodptr_type.
2128 (read_structure_type): Call quirk_gcc_member_function_pointer
2129 later.
2130 * gdbtypes.h (smash_to_methodptr_type): Declare.
2131 * gdbtypes.c (smash_to_methodptr_type): New function.
2132 (lookup_methodptr_type): Use it.
2133
0d5392b8
TT
21342010-01-21 Tom Tromey <tromey@redhat.com>
2135
2136 PR symtab/11198:
2137 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
2138 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
2139 * glibc-tdep.c (find_minsym_and_objfile): Remove.
2140 (glibc_skip_solib_resolver): Use
2141 lookup_minimal_symbol_and_objfile.
2142
e6d088ec
KT
21432010-01-21 Kai Tietz <kai.tietz@onevision.com>
2144
2145 * inflow.c (check_syscall): Guard by #if clause for GO32 and
2146 WIN32 targets.
2147
b966cb8a
TT
21482010-01-20 Tom Tromey <tromey@redhat.com>
2149
2150 PR backtrace/10770:
2151 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
2152 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
2153 * dwarf2expr.c (new_dwarf_expr_context): Allocate
2154 dwarf_stack_values, not CORE_ADDRs.
2155 (execute_stack_op): Change DW_OP_div and comparison operators to
2156 use signed operands.
2157
3f81c18a
VP
21582010-01-20 Vladimir Prus <vladimir@codesourcery.com>
2159
2160 Per-inferior args and tty and environment.
2161
2162 * infcmd.c (inferior_args): Rename to ...
2163 (inferior_args_scratch): ... this.
2164 (inferior_io_terminal): Rename to ...
2165 (inferior_io_terminal_scratch): ... this.
2166 (inferior_argc, inferior_argv): Remove.
2167 (set_inferior_io_terminal, get_inferior_io_terminal): Store
2168 inside current_inferior().
2169 (set_inferior_tty_command, show_inferior_tty_command): New.
2170 (get_inferior_args, set_inferior_args): Store inside
2171 current_inferior().
2172 (notice_args_set): Likewise and rename to...
2173 (set_args_command): ... this.
2174 (set_inferior_args_vector): Likewise.
2175 (notice_args_read): Rename to...
2176 (show_args_command): ...new.
2177 (tty_command): Remove.
2178 (run_command_1): Don't free old args, as they are freed by
2179 set_inferior_arg now.
2180 (run_no_args_command): Likewise.
2181 (inferior_environ): Remove.
2182 (run_command_1): Use environment of the current inferior.
2183 (environment_info, set_environment_command)
2184 (unset_environment_command, path_info, path_command): Likewise.
2185 (_initialize_infcmd): Adjust for function and variable renames.
2186 Do not init inferior_environ.
2187 * inferior.h (set_inferior_arg): Adjust prototype.
2188 (struct inferior): New fields args, argc, argv, terminal, environment.
2189 (inferior_environ): Remove declaration.
2190 * inferior.c (free_inferior): Free new fields.
2191 (add_inferior_silent): Initialize 'environment' field.
2192 * main.c (captured_main): Set arguments only after the initial
2193 inferior has been created. Set set_inferior_io_terminal,
2194 not tty_command.
2195 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
2196 inferior.
2197 (_initialize_mi_cmd_env): Adjust for disappearance of global
2198 inferior_environ.
2199 * solib.c (solib_find): Use environment of the current inferior.
2200
d8b65138
JK
22012010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2202
2203 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
2204 HAVE_PYTHON.
2205 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
2206
692465f1
JB
22072010-01-20 Joel Brobecker <brobecker@adacore.com>
2208
2209 Get rid of ada-lang.c:function_name_from_pc.
2210 * ada-lang.c: Add "stack.h" #include.
2211 (function_name_from_pc): Delete.
2212 (is_known_support_routine): Replace call to function_name_from_pc
2213 by call to find_frame_funname.
2214 (ada_unhandled_exception_name_addr_from_raise): Likewise.
2215
95519e0e
TT
22162010-01-19 Tom Tromey <tromey@redhat.com>
2217
2218 PR c++/11026:
2219 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
2220 objfile obstack.
2221
95c11dc7
TT
22222010-01-19 Tom Tromey <tromey@redhat.com>
2223
2224 * top.c (stop_sig, float_handler, do_nothing): Remove.
2225
a0f49112
JK
22262010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2227
2228 * breakpoint.c (watchpoint_check): Check the call
2229 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
2230 Extend the comment.
2231 * config/djgpp/fnchange.lst: Add translations for
2232 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
2233 watchpoint-cond-gone-stripped.c.
2234
ceeb3d5a
TT
22352010-01-19 Tom Tromey <tromey@redhat.com>
2236
2237 PR c++/8000:
2238 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
2239 into parent scope, and enumerator into grandparent scope.
2240
2b71fc8e
JB
22412010-01-19 Joel Brobecker <brobecker@adacore.com>
2242
2243 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
2244
03564ed9
JB
22452010-01-19 Joel Brobecker <brobecker@adacore.com>
2246
2247 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
2248 i[34567]86-*-solaris2.1[0-9]*.
2249 * configure.tgt: Likewise.
2250
fb2e7cb4
JB
22512010-01-19 Joel Brobecker <brobecker@adacore.com>
2252
2253 * NEWS: Document the source command enhancement allowing it
2254 to load Python scripts. Document the "set/show script-extension"
2255 commands.
2256
1cb5e2a4
JB
22572010-01-19 Joel Brobecker <brobecker@adacore.com>
2258
2259 Add -Wunused-function to compile flags.
2260 * configure.ac: Add -Wunused-function to build_warnings.
2261 * configure: Regenerate.
2262
0ec6cd0c
JB
22632010-01-19 Joel Brobecker <brobecker@adacore.com>
2264
2265 "delete" ada-lex.c:input function, not used.
2266 * ada-lex.l: #define YY_NO_INPUT.
2267
b74845da
JB
22682010-01-19 Joel Brobecker <brobecker@adacore.com>
2269
2270 Delete free_named_symtabs and associated cleanup.
2271 * symfile.h (free_named_symtabs): Delete declaration.
2272 * symfile.c: Remove some commented out code (clear_symtab_users_once).
2273 (cashier_psymtab): Comment function out.
2274 Delete declaration.
2275 (free_named_symtabs): Delete.
2276 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
2277 * dbxread.c (end_psymtab): Likewise.
2278 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
2279 * exec.c (exec_close_1): Ditto.
2280 * xcoffread.c (xcoff_end_psymtab): Likewise.
2281
65c06092
JB
22822010-01-19 Joel Brobecker <brobecker@adacore.com>
2283
2284 * stack.c (print_block_frame_labels): Comment function out.
2285
d5cd6034
JB
22862010-01-19 Joel Brobecker <brobecker@adacore.com>
2287
2288 Delete unused or undefined functions.
2289 * breakpoint.c (ep_parse_optional_filename): Delete.
2290 * dcache.c (dcache_write_line): Remove declaration.
2291 * infrun.c (build_infrun): Remove declaration.
2292 * tracepoint.c (tracepoint_save_command): Remove declaration.
2293 * linux-nat.c (init_lwp_list): Delete. No longer used.
2294 * event-loop.c (check_async_signal_handlers): Delete declaration.
2295 * infrun.c (init_execution_control_state): Delete.
2296 (proceed): Update comment to avoid mentioning
2297 init_execution_control_state.
2298 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
2299 * ada-lang.c (ada_to_static_fixed_value): Delete.
2300 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
2301 * cp-namespace.c (cp_copy_usings): Delete.
2302 * xml-syscall.c (xml_number_of_syscalls): Delete.
2303 * progspace.c (find_program_space_by_num): Delete.
2304 * inflow.c (handle_sigio): Delete declaration.
2305 * hppa-tdep.c (hppa_alignof): Delete.
2306 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
2307 (mipsnbsd_core_osabi_sniffer): Delete.
2308
4e8f195d
TT
23092010-01-18 Tom Tromey <tromey@redhat.com>
2310
2311 PR c++/9680:
2312 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
2313 (CONST_CAST): New tokens.
2314 (exp): Add new productions.
2315 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
2316 reinterpret_cast.
2317 (is_cast_operator): New function.
2318 (yylex): Handle cast operators specially.
2319 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
2320 UNOP_REINTERPRET_CAST>: New cases.
2321 * expprint.c (print_subexp_standard): Likewise.
2322 (op_name_standard): Likewise.
2323 (dump_subexp_body_standard): Likewise.
2324 * parse.c (operator_length_standard): Likewise.
2325 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
2326 UNOP_REINTERPRET_CAST.
2327 * gdbtypes.c (class_types_same_p): New function.
2328 (is_ancestor): Use it.
2329 (is_public_ancestor): New function.
2330 (is_unique_ancestor_worker): Likewise.
2331 (is_unique_ancestor): Likewise.
2332 * gdbtypes.h (class_types_same_p, is_public_ancestor)
2333 (is_unique_ancestor): Declare.
2334 * valops.c (value_reinterpret_cast): New function.
2335 (dynamic_cast_check_1): Likewise.
2336 (dynamic_cast_check_2): Likewise.
2337 (value_dynamic_cast): Likewise.
2338 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
2339
d9c57d9f
JB
23402010-01-18 Joel Brobecker <brobecker@adacore.com>
2341
2342 Fix build failure when building without Python support.
2343 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
2344 is not defined.
2345
f80d3ff2
JB
23462010-01-18 Joel Brobecker <brobecker@adacore.com>
2347
2348 Use XVS field type instead of doing a parallel lookup.
2349 * ada-lang.c (ada_get_base_type): Follow the XVS field type
2350 if it is a reference type instead of doing a type lookup using
2351 the XVS field name.
2352
5bf03f13
JB
23532010-01-18 Joel Brobecker <brobecker@adacore.com>
2354
2355 Trust PAD types instead of using PAD___XVS.
2356 * ada-lang.c (trust_pad_over_xvs): New static variable.
2357 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
2358 parallel XVS type, follow the XVS type instead of the PAD type.
2359 (unwrap_value): Make sure that there is no parallel XVE type
2360 before returning the value as is.
2361 (set_ada_list, show_ada_list): New static variables.
2362 (set_ada_command, show_ada_command): New functions.
2363 (_initialize_ada_language): Add new "set/show ada" prefix commands.
2364 Add new "set/show ada trust-PAD-over-XVS" setting.
2365
973817a3
JB
23662010-01-18 Tom Tromey <tromey@redhat.com>
2367 Thiago Jung Bauermann <bauerman@br.ibm.com>
2368
2369 Allow "source" to load python scripts.
2370 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
2371 * python/python.c (source_python_script): New function.
2372 * python/python.h (source_python_script): Add declaration.
2373 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
2374 (script_ext_off, script_ext_soft, script_ext_strict)
2375 (script_ext_enums, script_ext_mode): New static constants.
2376 (show_script_ext_mode, find_and_open_script): New functions.
2377 (source_script): Enhance to handle Python scripts.
2378 (init_cli_cmds): Add set/show script-extension commands.
2379
98e03262
SS
23802010-01-16 Stan Shebs <stan@codesourcery.com>
2381
2382 * tracepoint.h (struct trace_status): Use unsigned long long
2383 instead of size_t.
2384 * tracepoint.c (trace_status_command): Fix printf directive.
2385 (trace_save_command): Check fwrite returns, fix printf directive.
2386 (trace_filename): New global.
2387 (tfile_open): Set it, check read returns.
2388 (tfile_close): Free trace_filename.
2389 (tfile_get_traceframe_address): Check read returns.
2390 (tfile_trace_find): Ditto.
2391 (tfile_fetch_registers): Ditto.
2392 (tfile_xfer_partial): Ditto.
2393 (tfile_get_trace_state_variable_value): Ditto.
2394
00bf0b85
SS
23952010-01-15 Stan Shebs <stan@codesourcery.com>
2396
2397 Add trace file support.
2398 * tracepoint.h (enum trace_stop_reason): New enum.
2399 (struct trace_status): New struct.
2400 (parse_trace_status): Declare.
2401 (struct uploaded_tp): Move here from remote.c,
2402 add fields for actions.
2403 (struct uploaded_tsv): New struct.
2404 * tracepoint.c (tfile_ops): New target vector.
2405 (trace_fd): New global.
2406 (tfile_open): New function.
2407 (tfile_close): New function.
2408 (tfile_files_info): New function.
2409 (tfile_get_trace_status): New function.
2410 (tfile_get_traceframe_address): New function.
2411 (tfile_trace_find): New function.
2412 (tfile_fetch_registers): New function.
2413 (tfile_xfer_partial): New function.
2414 (tfile_get_trace_state_variable_value): New function.
2415 (init_tfile_ops): New function.
2416 (_initialize_tracepoint): Call it, add tfile target.
2417 (trace_status): New global.
2418 (current_trace_status): New function.
2419 (trace_running_p): Remove, change all users to get from
2420 current_trace_status()->running.
2421 (get_trace_status): Remove.
2422 (trace_status_command): Call target_get_trace_status directly,
2423 report more detail including tracing stop reasons.
2424 (trace_find_command): Always allow tfind on a file.
2425 (trace_find_pc_command): Ditto.
2426 (trace_find_tracepoint_command): Ditto.
2427 (trace_find_line_command): Ditto.
2428 (trace_find_range_command): Ditto.
2429 (trace_find_outside_command): Ditto.
2430 (trace_frames_offset, cur_offset): Declare as off_t.
2431 (trace_regblock_size): Rename from reg_size, update users.
2432 (parse_trace_status): New function.
2433 (tfile_interp_line): New function.
2434 (disconnect_or_stop_tracing): Ensure current trace
2435 status before asking what to do.
2436 (stop_reason_names): New global.
2437 (trace_save_command): New command.
2438 (get_uploaded_tp): Move here from remote.c.
2439 (find_matching_tracepoint): Ditto.
2440 (merge_uploaded_tracepoints): New function.
2441 (parse_trace_status): Use stop_reason_names.
2442 (_initialize_tracepoint): Define tsave command.
2443 * target.h (target_ops): New fields to_save_trace_data,
2444 to_upload_tracepoints, to_upload_trace_state_variables,
2445 to_get_raw_trace_data, change to_get_trace_status
2446 to take a pointer to a status struct.
2447 (target_save_trace_data): New macro.
2448 (target_upload_tracepoints): New macro.
2449 (target_upload_trace_state_variables): New macro.
2450 (target_get_raw_trace_data): New macro.
2451 * target.c (update_current_target): Add new methods, change
2452 signature of to_get_trace_status.
2453 * remote.c (hex2bin): Make globally visible.
2454 (bin2hex): Ditto.
2455 (remote_download_trace_state_variable): Download name also.
2456 (remote_get_trace_status): Update parameter, use
2457 parse_trace_status.
2458 (remote_save_trace_data): New function.
2459 (remote_upload_tracepoints): New function.
2460 (remote_upload_trace_state_variables): New function.
2461 (remote_get_raw_trace_data): New function.
2462 (remote_start_remote): Use them.
2463 (_initialize_remote_ops): Add operations.
2464 * ax-gdb.c: Include breakpoint.h.
2465 * breakpoint.c (create_tracepoint_from_upload): Use
2466 break_command_really, return tracepoint, warn about unimplemented
2467 parts.
2468 * NEWS: Mention trace file addition.
2469
d904de5b
JK
24702010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2471
2472 Fix compilation warning on gcc-3.4.
2473 * exec.c (print_section_info): Move the `displacement' variable
2474 initialization to its declaration.
2475
64aa9731
JK
24762010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2477
2478 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
2479 comparison.
2480
ca1f5def 24812010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
2482
2483 "info tasks" broken by typedefs in ATCB type definitions.
2484 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
2485 ada_check_typedef before retrieving the length of the type for
2486 regular fields.
2487
12ab9e09
JB
24882010-01-15 Joel Brobecker <brobecker@adacore.com>
2489
2490 Do not use name-based lookup for unconstrained packed arrays.
2491 * ada-lang.c (find_parallel_type_by_descriptive_type):
2492 Limit the fallback to name-based lookups to the case where
2493 the type is a constrained packed array.
2494
c389c3dc
JB
24952010-01-15 Joel Brobecker <brobecker@adacore.com>
2496
2497 Enhance gdb-gdb.py to handle main_type.type_specific.
2498 * gdb-gdb.py: Print the type-specific part of struct main_type.
2499
7991dee7
JK
25002010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2501
2502 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
2503 * configure: Regenerate.
2504 * config.in: Regenerate.
2505 * utils.c: Include sys/resource.h.
2506 (dump_core, can_dump_core): New.
2507 (internal_vproblem): Update the comment. Check can_dump_core while
2508 setting dump_core_p. Replace two abort calls by dump_core calls.
2509
93c26624
JK
25102010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2511 Eli Zaretskii <eliz@gnu.org>
2512
2513 * NEWS: Document the PIE support.
2514
55235ad7
JK
25152010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2516
2517 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
2518 (check_is_pie_binary, _initialize_linux_tdep): Remove.
2519
41752192
JK
25202010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2521
2522 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
2523 Replace exec_entry_point call by bfd_get_start_address.
2524
9f2982ff
JK
25252010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2526
2527 Support Valgrind attachments broken by the PIE support.
2528 * auxv.c: Include gdbcore.h.
2529 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
2530 parameters ops, object and annex. Remove their assertions.
2531 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
2532 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
2533 (memory_xfer_auxv): ... here.
2534 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
2535 memory_xfer_auxv.
2536 * procfs.c (procfs_xfer_partial): Likewise.
2537 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
2538 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
2539 (svr4_solib_create_inferior_hook): Conditionalize the
2540 svr4_relocate_main_executable call.
2541
61f0d762
JK
25422010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2543
2544 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
2545 target_section. Find SECT in current_target_sections, gdb_assert it.
2546 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
2547 New variable abfd.
2548 * symtab.c (lookup_objfile_from_block): Return the binary file instead
2549 of separate debug info file.
2550
51bee8e9
JK
25512010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2552
2553 Support PIEs with no symfile_objfile.
2554 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
2555 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
2556
b8040f19
JK
25572010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2558
2559 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
2560 code part to ...
2561 (svr4_static_exec_displacement): ... a new function.
2562 (svr4_exec_displacement): New function.
2563 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
2564 new_offsets using alloca now. Remove variable old_chain and changed.
2565 Call objfile_relocate unconditionally now.
2566
eb90ce83
DE
25672010-01-14 Doug Evans <dje@google.com>
2568
2569 * gdbtypes.c (arch_flags_type): Fix comment.
2570 * gdbtypes.h (arch_composite_type): Fix comment.
2571
bdfed3bc
TG
25722009-01-14 Tristan Gingold <gingold@adacore.com>
2573
2574 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
2575 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
2576 to symbol_file_add_from_bfd. Add OSO as separate objfile.
2577 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
2578 macho_add_oso_symfile.
2579 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
2580
1596ad23
JB
25812010-01-14 Joel Brobecker <brobecker@adacore.com>
2582
2583 Tru64: Dead threads are never deleted.
2584 * dec-thread.c (dec_thread_ptid_is_alive): New function.
2585 (dec_thread_count_gdb_threads): Fix counter increment.
2586 (dec_thread_add_gdb_thread): Fix *listp increment.
2587 (resync_thread_list): Fix bug in deletion of dead threads that
2588 caused all threads to be deleted, instead of just the dead ones.
2589
be759fcf
PM
25902010-01-13 Phil Muldoon <pmuldoon@redhat.com>
2591
2592 PR python/10705
2593
2594 * python/python-internal.h: Add lazy_string_object_type
2595 definition.
2596 (create_lazy_string_object, gdbpy_initialize_lazy_string)
2597 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
2598 * python/py-value.c (valpy_lazy_string): New function.
2599 (convert_value_from_python): Add lazy string conversion.
2600 * python/py-prettyprint.c (pretty_print_one_value): Check if
2601 return is also a lazy string.
2602 (print_string_repr): Add lazy string printing branch.
2603 (print_children): Likewise.
2604 * python/py-lazy-string.c: New file. Implement lazy strings.
2605 * python/python.c (_initialize_python): Call
2606 gdbpy_initialize_lazy_string.
2607 * varobj.c (value_get_print_value): Add lazy string printing
2608 branch. Account for encoding.
2609 * c-lang.c (c_printstr): Account for new encoding argument. If
2610 encoding is NULL, find encoding suited for type, otherwise use
2611 user encoding.
2612 * language.h (language_defn): Add encoding argument.
2613 (LA_PRINT_STRING): Likewise.
2614 * language.c (unk_lang_printstr): Update to reflect new encoding
2615 argument to language_defn.
2616 * ada-lang.h (ada_printstr): Likewise.
2617 * c-lang.h (c_printstr): Likewise.
2618 * p-lang.h (pascal_printstr);
2619 * f-lang.c (f_printstr): Likewise.
2620 * m2-lang.c (m2_printstr): Likewise.
2621 * objc-lang.c (objc_printstr): Likewise.
2622 * p-lang.c (pascal_printstr): Likewise.
2623 * scm-lang.c (scm_printstr): Likewise.
2624 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
2625 encoding argument.
2626 * ada-valprint.c (ada_printstr): Likewise.
2627 * f-valprint.c (f_val_print): Likewise
2628 * m2-valprint.c (m2_val_print): Likewise.
2629 * p-valprint.c (pascal_val_print): Likewise.
2630 * expprint.c (print_subexp_standard): Likewise.
2631 * valprint.c (val_print_string): Likewise.
2632 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
2633 (SUBDIR_PYTHON_SRCS): Likewise.
2634 (py-lazy-string.o): New rule.
2635
1fe72117 26362010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
2637
2638 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
2639 uninitialized" warning from gcc on local `tree'.
2640
dc146f7c
VP
26412010-01-13 Vladimir Prus <vladimir@codesourcery.com>
2642
2643 Implement core awareness.
2644
2645 * bcache.c (compare_ints): Remove
2646 (print_percentage): Use compare_positive_ints.
2647 * defs.h (compare_positive_ints): Declare.
2648 * linux-nat.h (struct lin_lwp): New field core.
2649 (linux_nat_core_of_thread_1): Declare.
2650 * linux-nat.c (add_lwp): Init the 'core' field.
2651 (linux_nat_wait_1): Record the core.
2652 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
2653 (linux_nat_add_target): Register the above.
2654 * linux-thread-db.c (update_thread_core): New.
2655 (thread_db_find_new_threads): Update core information for
2656 every thread.
2657 * remote.c (struct private_thread_info): New.
2658 (free_private_thread_info, demand_private_info): New.
2659 (PACKET_qXfer_threads, use_osdata_threads): New.
2660 (struct thread_item, threads_parsing_context
2661 (start_thread, end_thread, thread_attributes)
2662 (thread_children, threads_children, threads_elements): New.
2663 (remote_threads_info): Try qXfer:threads before anything
2664 else.
2665 (remote_protocol_packets): Register qXfer:threads.
2666 (remote_open_1): Init use_osdata_threads.
2667 (struct stop_reply): New field 'core'.
2668 (remote_parse_stop_reply): Parse core number.
2669 (process_stop_reply): Record core number.
2670 (remote_xfer_partial): Handle qXfer:threads.
2671 (remote_core_of_thread): New.
2672 (init_remote_ops): Register remote_core_of_thread.
2673 (_initialize_remote): Register qXfer:read.
2674 * target.c (target_core_of_thread): New
2675 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
2676 (struct target_ops): New field to_core_of_threads.
2677 (target_core_of_thread): Declare.
2678 * gdbthread.h (struct thread_info): New field private_dtor.
2679 * thread.c (print_thread_info): Report the core.
2680 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
2681 * utils.c (compare_positive_ints): New.
2682 * features/threads.dtd: New.
2683 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
2684 * mi/mi-main.c (struct collect_cores_data, collect_cores)
2685 (do_nothing, free_vector_of_osdata_items)
2686 (splay_tree_int_comparator, free_splay_tree): New.
2687 (print_one_inferior_data): Implemented printing of selected
2688 inferiors. Collect and print cores.
2689 (output_cores): New.
2690 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
2691 thread groups together with --available.
2692
d30c5336
JK
26932010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2694
2695 * configure: Regenerate (for _STRUCTURED_PROC).
2696
02893727
JB
26972010-01-12 Joel Brobecker <brobecker@adacore.com>
2698
2699 Delete dead function.
2700 * ada-lang.c (extract_string): Delete. No longer used.
2701
46ed2d6f
JB
27022010-01-12 Joel Brobecker <brobecker@adacore.com>
2703
2704 Fix -Wunused warning in dec-thread.c.
2705 * dec-thread.c (dec_thread_count_gdb_threads)
2706 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
2707
606b8d1a
JB
27082010-01-12 Joel Brobecker <brobecker@adacore.com>
2709
2710 * ada-valprint.c (ada_print_floating): Remove trailing space.
2711
b4ba55a1
JB
27122010-01-12 Joel Brobecker <brobecker@adacore.com>
2713
2714 Add support for DW_AT_GNAT_descriptive_type.
2715 * gdbtypes.h (enum type_specific_kind): New enum.
2716 (struct main_type) [type_specific_field]: New component.
2717 [type_specific]: Add new component "gnat_stuff".
2718 (struct gnat_aux_type): New type.
2719 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
2720 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
2721 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
2722 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
2723 (TYPE_SPECIFIC_FIELD): New macros.
2724 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
2725 type does not hold any cplus-specific data.
2726 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
2727 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
2728 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
2729 cplus-specific data.
2730 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
2731 Set new component TYPE_SPECIFIC_FIELD (type).
2732 (gnat_aux_default): New constant.
2733 (allocate_gnat_aux_type): New function.
2734 (init_type): Add initialization the type-specific stuff for
2735 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
2736 (print_gnat_stuff): New function.
2737 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
2738 specific data. Adjust code that prints the contents of the
2739 type-specific union using the TYPE_SPECIFIC_FIELD value.
2740 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
2741 the type cplus stuff for Ada types.
2742 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
2743 Error out if these routines are called with an Ada type.
2744 (read_structure_type, read_array_type, read_subrange_type):
2745 Add call to set_descriptive_type.
2746 (set_die_type): Initialize the gnat-specific data if necessary.
2747 (need_gnat_info, die_descriptive_type, set_descriptive_type):
2748 New functions.
2749 * ada-lang.c (decode_constrained_packed_array_type): Use
2750 decode_constrained_packed_array_type instead of doing a standard
2751 lookup to locate a parallel type.
2752 (find_parallel_type_by_descriptive_type): New function.
2753 (ada_find_parallel_type_with_name): New function.
2754 (ada_find_parallel_type): Reimplement using
2755 ada_find_parallel_type_with_name.
2756 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
2757 to check if type has a cplus stuff.
2758 * linespec.c (total_number_of_methods): Likewise.
2759 * mdebugread.c (new_type): Likewise.
2760
b0f02ee9
JK
27612010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2762
2763 * NEWS: Document the 0b binary number prefix parsing.
2764
b260e109
JK
27652010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2766
2767 * objfiles.c (objfile_relocate1): Change the return type to int.
2768 Describe the new return value. Return non-zero if data changed.
2769 (objfile_relocate): New variable changed. Set it. Call
2770 breakpoint_re_set depending on CHANGED.
2771
b5cfddf5
JK
27722010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2773
2774 Implement binary numbers parsing.
2775 * c-exp.y (parse_number): New case 'b' and 'B'.
2776
e0ae4240
JK
27772010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2778 Tristan Gingold <gingold@adacore.com>
2779
2780 * solib.c (info_sharedlibrary_command): Replace
2781 objfile_has_partial_symbols and objfile_has_full_symbols calls by
2782 objfile_has_symbols.
2783
6e0e5977
JB
27842010-01-10 Joel Brobecker <brobecker@adacore.com>
2785
2786 * NEWS: Document the improvements made to the mips-irix port.
2787
7348c5e1
JB
27882010-01-09 Joel Brobecker <brobecker@adacore.com>
2789
2790 Fix the documentation of valprint.c:value_print.
2791 * valprint.c (value_print): Update the function description to
2792 mention that the syntax of the output follows the current_language,
2793 not necessarily C.
2794
567995e1
JK
27952010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2796
2797 Fix displacement of separate debug info files.
2798 * objfiles.c (objfile_relocate): Rename to ...
2799 (objfile_relocate1): ... here and make it static. Extend the comment.
2800 (objfile_relocate): New function.
2801 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
2802 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
2803 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
2804 allocated using alloca.
2805 * symfile.c (copy_section_addr_info): Remove.
2806 (build_section_addr_info_from_objfile): Make it global. New variables
2807 addr_bit and mask, use them.
2808 * symfile.h (build_section_addr_info_from_objfile): New prototype.
2809 (copy_section_addr_info): Remove.
2810
6d8eadbd
JB
28112010-01-09 Joel Brobecker <brobecker@adacore.com>
2812
2813 Signal unwinder for mips-irix N32.
2814 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
2815 tramp-frame.h.
2816 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
2817 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
2818 (SIGCONTEXT_LO_OFF): New macros.
2819 (mips_irix_n32_tramp_frame_init): New function.
2820 (mips_irix_n32_tramp_frame): New static constant.
2821 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
2822
27087a3d
JB
28232010-01-09 Joel Brobecker <brobecker@adacore.com>
2824
2825 Breakpoint in shared library does not work on mips-irix.
2826 * procfs.c: #include "observer.h".
2827 (procfs_inferior_created): New function, moving here the code
2828 which unsets the syssgi syscall-exit notifications.
2829 (procfs_create_inferior): Remove the code which unsets the syssgi
2830 syscall-exit notifications. It is too early to do this here.
2831 (_initialize_procfs): Attach the procfs_inferior_created observer.
2832
f08877ba
JB
28332010-01-09 Joel Brobecker <brobecker@adacore.com>
2834
2835 Wrong return convention for arrays (mips-irix).
2836 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
2837 128 bits or smaller are returned the same way as structs
2838 and unions of the the same size.
2839
e4b97d48
JB
28402010-01-09 Joel Brobecker <brobecker@adacore.com>
2841
2842 Cannot set the PC on mips-irix.
2843 * irix5-nat.c (fill_gregset): Check regno against the raw PC
2844 register number, no the cooked one.
2845
11377e68
JB
28462010-01-09 Joel Brobecker <brobecker@adacore.com>
2847
2848 Error while loading core file on mips-irix.
2849 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
2850 if debugging from a core file.
2851
b2391021
JB
28522010-01-09 Joel Brobecker <brobecker@adacore.com>
2853
2854 GDB hangs when attaching to process on mips-irix.
2855 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
2856 attaching to a process.
2857
f2ec0ecf
JB
28582010-01-09 Joel Brobecker <brobecker@adacore.com>
2859
2860 Use the correct breakpoint instruction on mips-irix.
2861 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
2862 containing the correct breakpoint instruction to use on mips-irix.
2863 Use it when the osabi is GDB_OSABI_IRIX.
2864
3c95f01c
JB
28652010-01-09 Joel Brobecker <brobecker@adacore.com>
2866
2867 -Wunused warning in procfs.c (mips-irix only).
2868 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
2869 throughout instead of using praddset and prdelset respectively.
2870
4b7703ad
JB
28712010-01-09 Joel Brobecker <brobecker@adacore.com>
2872
2873 GDB crash while stepping into function.
2874 * infrun.c (handle_inferior_event): Refetch the current frame
2875 after handling what.main_action, in case that pointer became
2876 dangling.
2877
12c89474
JB
28782010-01-09 Joel Brobecker <brobecker@adacore.com>
2879
2880 Fix build failure of solaris-hosted cross debuggers.
2881 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
2882
1a3fd262 28832010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
2884
2885 Fix build failure on sparc-solaris.
2886 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
2887
75242ef4
JK
28882010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2889
2890 Move some symfile code into subroutines.
2891 * symfile.h (relative_addr_info_to_section_offsets)
2892 (addr_info_make_relative): New prototypes.
2893 * symfile.c (default_symfile_offsets): Move a part to ...
2894 (relative_addr_info_to_section_offsets): ... this new function.
2895 (default_symfile_offsets): Call it.
2896 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
2897 this part to ...
2898 (addr_info_make_relative): ... this new function.
2899
268a4a75
JK
29002010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2901
2902 Add from_tty to solib_create_inferior_hook.
2903 * infcmd.c (post_create_inferior): Move solib_add after
2904 solib_create_inferior_hook. Pass from_tty to
2905 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
2906 0 from_tty and comment why.
2907 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
2908 * linux-nat.c (linux_child_follow_fork): Likewise.
2909 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
2910 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
2911 from_tty.
2912 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
2913 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
2914 * solib-null.c (null_solib_create_inferior_hook): Likewise.
2915 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
2916 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
2917 * solib-som.c (som_solib_create_inferior_hook): Likewise.
2918 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
2919 Pass it to svr4_so_ops.solib_create_inferior_hook.
2920 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
2921 from_tty.
2922 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
2923 solib_add.
2924 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
2925 enable_break.
2926 * solib-target.c (solib_target_solib_create_inferior_hook): New
2927 parameter from_tty.
2928 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
2929 it to ops->solib_create_inferior_hook.
2930 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
2931 Move solib_add after solib_create_inferior_hook, call it now with
2932 from_tty as 0. New comment there.
2933 * solib.h (solib_create_inferior_hook): New parameter from_tty.
2934 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
2935 Likewise.
2936
cf00dfa7
VP
29372010-01-08 Vladimir Prus <vladimir@codesourcery.com>
2938
2939 Fix multiexec race.
2940 * infrun.c (handle_inferior_event): Use get_thread_regcache
2941 with events ptid, not get_current_regcache.
2942
f91e5ac3
JB
29432009-01-08 Joel Brobecker <brobecker@adacore.com>
2944
2945 GDB crash with empty executable name (MinGW).
2946 * source.c (openp): Add assert that parameter string is not NULL.
2947 if parameter string is an empty string, then return with a failure
2948 immediately.
2949
92b9ce5b
JB
29502009-01-08 Joel Brobecker <brobecker@adacore.com>
2951
2952 Get rid of support for VAX Floats.
2953 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
2954 (ada_vax_float_print_function): Delete.
2955 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
2956 (ada_vax_float_print_function): Delete.
2957 * ada-typeprint.c (print_vax_floating_point_type): Delete.
2958 (ada_print_type): Remove support for VAX floats.
2959 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
2960
268a4a75 29612010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
2962
2963 * stabsread.c (read_args): Handle zero arguments.
2964
f0f20949
JB
29652009-01-08 Joel Brobecker <brobecker@adacore.com>
2966
2967 Cannot find in-tree libiconv.a after reconfigure.
2968 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
2969 that we can use, then cache the path to this archive.
2970 * configure: Regenerate.
2971
6b6218c5
SS
29722010-01-07 Stan Shebs <stan@codesourcery.com>
2973
35b1e5cc
SS
2974 Make tracepoint operations go through target vector.
2975 * target.h (enum trace_find_type): New enum.
2976 (struct target_ops): New fields to_trace_init,
2977 to_download_tracepoint, to_download_trace_state_variable,
2978 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
2979 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
2980 to_set_disconnected_tracing.
2981 (target_trace_init): New macro.
2982 (target_download_tracepoint): New macro.
2983 (target_download_trace_state_variable): New macro.
2984 (target_trace_start): New macro.
2985 (target_trace_set_readonly_regions): New macro.
2986 (target_get_trace_status): New macro.
2987 (target_trace_stop): New macro.
2988 (target_trace_find): New macro.
2989 (target_get_trace_state_variable_value): New macro.
2990 (target_set_disconnected_tracing): New macro.
2991 * target.c (update_current_target): Inherit and set defaults for
2992 tracepoint operations.
2993 * tracepoint.c (default_collect): Make globally visible.
2994 (target_is_remote): Remove, along with all calls.
2995 (tvariables_info): Call target_get_trace_state_variable_value.
2996 (remote_set_transparent_ranges): Remove.
2997 (trace_start_command): Call target_trace_init,
2998 target_download_tracepoint, etc.
2999 (download_tracepoint): Remove.
3000 (trace_stop_command): Simplify.
3001 (stop_tracing): Call target_trace_stop.
3002 (get_trace_status): Call target_get_trace_status.
3003 (trace_status_command): Add case for targets that cannot trace.
3004 (finish_tfind_command): Change to take numerical arguments, call
3005 target_trace_find.
3006 (trace_find_command): Update call to finish_tfind_command.
3007 (trace_find_pc_command): Ditto.
3008 (trace_find_tracepoint_command): Ditto.
3009 (trace_find_line_command): Ditto.
3010 (trace_find_range_command): Ditto.
3011 (trace_find_outside_command): Ditto.
3012 (set_disconnected_tracing_value): Call
3013 target_set_disconnected_tracing.
3014 * remote.c: Add protocol encoding bits from tracepoint.c.
3015 (trace_error): Move from tracepoint.c.
3016 (remote_get_noisy_reply): Ditto.
3017 (free_actions_list_cleanup_wrapper): Ditto.
3018 (free_actions_list): Ditto.
3019 (remote_trace_init): New function.
3020 (remote_download_tracepoint): New function.
3021 (remote_download_trace_state_variable): New function.
3022 (remote_trace_set_readonly_regions): New function.
3023 (remote_trace_start): New function.
3024 (remote_get_trace_status): New function.
3025 (remote_trace_stop): New function.
3026 (remote_trace_find): New function.
3027 (remote_download_trace_state_variable): New function.
3028 (remote_set_disconnected_tracing): New function.
3029 (init_remote_ops): Add tracepoint operations.
3030
6b6218c5
SS
3031 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
3032
089b4803
TG
30332010-01-07 Tristan Gingold <gingold@adacore.com>
3034
3035 * symfile.c (build_section_addr_info_from_objfile): New function.
3036 (symbol_file_add_separate): Don't use offsets from objfile but
3037 built an addr info.
3038
d5551862
SS
30392010-01-06 Stan Shebs <stan@codesourcery.com>
3040
3041 Support disconnected tracing.
3042 * infcmd.c (detach_command): Ask whether to stop tracing.
3043 * cli/cli-cmds.c (quit_command): Ditto.
3044 * breakpoint.h (struct breakpoint): New field number_on_target.
3045 * breakpoint.c (create_tracepoint_from_upload): New function.
3046 (get_tracepoint_by_number_on_target): New function.
3047 * remote.c (struct remote): New field disconnected_tracing.
3048 (remote_disconnected_tracing_feature): New function.
3049 (remote_protocol_features): Add DisconnectedTracing.
3050 (struct uploaded_tp): New struct.
3051 (uploaded_tps): New global.
3052 (get_uploaded_tp): New function.
3053 (find_matching_tracepoint): New function.
3054 (remote_get_tracing_state): New function.
3055 (remote_start_remote): Call it.
3056 * tracepoint.c (disconnected_tracing): New global.
3057 (trace_start_command): Initialize number_on_target.
3058 (stop_tracing): New function, split out from...
3059 (trace_stop_command): Call stop_tracing.
3060 (get_trace_status): New function, split out from...
3061 (trace_status_command): Call get_trace_status, add info on
3062 disconnection behavior.
3063 (disconnect_or_stop_tracing): New function.
3064 (finish_tfind_command): Translate from number on target.
3065 (trace_find_tracepoint_command): Translate to number on target.
3066 (send_disconnected_tracing_value): New function.
3067 (set_disconnected_tracing): New function.
3068 (_initialize_tracepoint): Add disconnected-tracing variable.
3069 * NEWS: Mention disconnected tracing.
3070
15d123c9
TG
30712010-01-06 Tristan Gingold <gingold@adacore.com>
3072
3073 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
3074 parameter to main_objfile. Iterate on all separate debug objfiles.
3075 * symfile.h (symbol_file_add_separate)
3076 (find_separate_debug_file_by_debuglink): Remove parameter names.
3077 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
3078 (reread_symbols): Use free_objfile_separate_debug.
3079 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
3080 Adjust comment.
3081 (objfile_separate_debug_iterate, add_separate_debug_objfile)
3082 (free_objfile_separate_debug): New prototypes.
3083 * objfiles.c (objfile_separate_debug_iterate): New function.
3084 (add_separate_debug_objfile, free_objfile_separate_debug): New
3085 functions.
3086 (free_objfile): Use free_objfile_separate_debug. Adjust for
3087 multiple separate debug objfile.
3088 (objfile_has_symbols): Adjust comment. Iterate on all separate
3089 debug objfiles.
3090 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
3091 debug objfile.
3092 (lookup_minimal_symbol_text): Ditto.
3093 (lookup_minimal_symbol_by_pc_name): Ditto.
3094 (lookup_minimal_symbol_solib_trampoline): Ditto.
3095 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
3096 debug objfiles.
3097
7a697b8d
SS
30982010-01-05 Stan Shebs <stan@codesourcery.com>
3099
3100 Add fast tracepoints.
3101 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
3102 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
3103 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
3104 * breakpoint.c (tracepoint_type): New function.
3105 (ALL_TRACEPOINTS): Use it.
3106 (should_be_inserted): Ditto.
3107 (bpstat_check_location): Ditto.
3108 (print_one_breakpoint_location): Ditto.
3109 (user_settable_breakpoint): Ditto.
3110 (set_breakpoint_location_function): Ditto.
3111 (disable_breakpoints_in_shlibs): Ditto.
3112 (delete_trace_command): Ditto.
3113 (print_it_typical): Add bp_fast_tracepoint case.
3114 (bpstat_what): Ditto.
3115 (print_one_breakpoint_location): Ditto.
3116 (allocate_bp_location): Ditto.
3117 (mention): Ditto.
3118 (breakpoint_re_set_one): Ditto.
3119 (disable_command): Ditto.
3120 (enable_command): Ditto.
3121 (check_fast_tracepoint_sals): New function.
3122 (break_command_really): Call it.
3123 (ftrace_command): New function.
3124 (_initialize_breakpoint): Add ftrace command.
3125 * gdbarch.sh (fast_tracepoint_valid_at): New.
3126 * gdbarch.h, gdbarch.c: Regenerate.
3127 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
3128 (i386_gdbarch_init): Use it.
3129 * remote.c (struct remote_state): New field fast_tracepoints.
3130 (PACKET_FastTracepoints): New packet config type.
3131 (remote_fast_tracepoint_feature): New function.
3132 (remote_protocol_features): Add FastTracepoints.
3133 (remote_supports_fast_tracepoints): New function.
3134 (_initialize_remote): Add FastTracepoints.
3135 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
3136 * NEWS: Mention fast tracepoints.
3137
737a160e
JB
31382010-01-06 Joel Brobecker <brobecker@adacore.com>
3139
3140 * gdb-gdb.py: New file.
3141
ce6cca6d
MS
31422010-01-05 Michael Snyder <msnyder@vmware.com>
3143
3144 * infrun.c (handle_inferior_event): Fix typo in comment.
3145
0d15807d
JK
31462010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3147
3148 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
3149
7803799a
UW
31502010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3151
3152 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
3153 and s390x-linux64.
3154 (s390-linux32-expedite): Define.
3155 (s390-linux64-expedite): Define.
3156 (s390x-linux64-expedite): Define.
3157 * features/s390-acr.xml: New file.
3158 * features/s390-fpr.xml: New file.
3159 * features/s390-core32.xml: New file.
3160 * features/s390-core64.xml: New file.
3161 * features/s390x-core64.xml: New file.
3162 * features/s390-linux32.xml: New file.
3163 * features/s390-linux64.xml: New file.
3164 * features/s390x-linux64.xml: New file.
3165 * features/s390-linux32.c: New generated file.
3166 * features/s390-linux64.c: New generated file.
3167 * features/s390x-linux64.c: New generated file.
3168
3169 * regformats/s390-linux32.dat: New generated file.
3170 * regformats/s390-linux64.dat: New generated file.
3171 * regformats/s390x-linux64.dat: New generated file.
3172 * regformats/reg-s390.dat: Remove.
3173 * regformats/reg-s390x.dat: Remove.
3174
3175 * s390-nat.c: Include "auxv.h" and <elf.h>.
3176 (HWCAP_S390_HIGH_GPRS): Define if undefined.
3177 (s390_target_wordsize): New function.
3178 (s390_auxv_parse): Likewise.
3179 (s390_get_hwcap): Likewise.
3180 (s390_read_description): Likewise.
3181 (_initialize_s390_nat): Install s390_auxv_parse and
3182 s390_read_description.
3183
3184 * s390-tdep.c: Include "features/s390-linux32.c",
3185 "features/s390-linux64.c", and "features/s390x-linux64.c".
3186 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
3187 (s390_register_call_saved): New function.
3188 (s390_register_name): Remove.
3189 (s390_register_type): Remove.
3190 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
3191 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
3192 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
3193 (s390_pseudo_register_name): New function.
3194 (s390_pseudo_register_type): New function.
3195 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
3196 Handle full GPR pesudos and varying pseudo register numbers.
3197 (s390_pseudo_register_write): Likewise
3198 (s390x_pseudo_register_read): Remove.
3199 (s390x_pseudo_register_write): Likewise.
3200 (s390_register_group): Remove.
3201 (s390_pseudo_register_group): New function.
3202 (s390_regmap_gregset): Add GPR upper halves.
3203 (s390x_regmap_gregset): Likewise.
3204 (s390_regmap_fpregset): Likewise.
3205 (s390_regmap_upper): New global variable.
3206 (s390_upper_regset): New global variable.
3207 (s390_upper_regset_sections): New global variable.
3208 (s390_regset_from_core_section): Handle GPR upper halves.
3209 (s390_core_read_description): New function.
3210 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
3211 register information. Handle varying pseudo register numbers.
3212 (s390_backchain_frame_unwind_cache): Likewise.
3213 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
3214 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
3215 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
3216 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
3217 Handle varying pseudo register numbers.
3218 (s390_unwind_pc): Handle varying pseudo register numbers.
3219 (s390_dwarf2_prev_register): New function.
3220 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
3221 register information. Handle varying pseudo register numbers.
3222 Install s390_dwarf2_prev_register to unwind full GPRs.
3223 (s390_gdbarch_init): Handle target descriptions. Assign varying
3224 pseudo register numbers. Install s390_adjust_frame_regnum.
3225 (_initialize_s390_tdep): Initialize target descriptions.
3226
3227 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
3228 (S390_NUM_REGS): Redefine to include upper half registers.
3229 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
3230 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
3231 (tdesc_s390_linux32): Add declaration.
3232 (tdesc_s390_linux64): Likewise.
3233 (tdesc_s390x_linux64): Likewise.
3234
1b1818e4
UW
32352010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3236
3237 * regset.h (struct core_regset_section): Add HUMAN_NAME.
3238 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
3239 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3240 (ppc_linux_vmx_regset_sections): Likewise.
3241 (ppc_linux_fp_regset_sections): Likewise.
3242
3243 * corelow.c (get_core_register_section): Constify arguments.
3244 (get_core_registers): Use gdbarch_core_regset_sections instead
3245 of hard-coded platform-specific register section names.
3246
dcbf108f
UW
32472010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3248
3249 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 3250 a register, assume the least-significant part is used.
dcbf108f
UW
3251 (write_pieced_value): Likewise.
3252
704e9165
UW
32532010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
3254
3255 * printcmd.c: Include "arch-utils.h".
3256 (do_one_display): Re-parse expression if current architecture changed.
3257
c54eabfa
JK
32582010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3259 Joel Brobecker <brobecker@adacore.com>
3260
3261 * gdbtypes.c (check_typedef): New comment on type length.
3262 * value.c (allocate_value_lazy): Remove the unused atype variable. New
3263 comment on type length.
3264 (value_primitive_field): Keep the original TYPE value, new comment.
3265
50cb2941
JK
32662010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3267
3268 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
3269 p_start. Change != comparisons to > and < comparisons.
3270
be66db07
JK
32712010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3272
3273 * cli/cli-script.c (process_next_line): Check P2 overrun.
3274
abd775ce
JB
32752009-01-01 Joel Brobecker <brobecker@adacore.com>
3276
3277 Update the copyright hearder to add year 2010 for most GDB files.
3278
6479260d
JB
32792009-01-01 Joel Brobecker <brobecker@adacore.com>
3280
3281 Fix build failure in inf-ptrace.c.
3282 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
3283
4a70f654
JB
32842010-01-01 Joel Brobecker <brobecker@adacore.com>
3285
3286 * top.c (print_gdb_version): Update copyright year.
3287
b9ee2233
JB
32882010-01-01 Joel Brobecker <brobecker@adacore.com>
3289
3290 Fix break *FUN'address thread NUM.
3291 * ada-lex.l (task): Expand rule to also match the thread keyword.
3292
70575d34
JB
32932010-01-01 Joel Brobecker <brobecker@adacore.com>
3294
3295 Fix break *FUN'address task NUM.
3296 * ada-lex.l (task): New rule.
3297 * ada-lang.c (valid_task_id): Make sure the Ada task list has
3298 been built before using it.
3299
e1e4d4a4 3300For older changes see ChangeLog-2009.
c906108c
SS
3301\f
3302Local Variables:
3303mode: change-log
3304left-margin: 8
3305fill-column: 74
3306version-control: never
57da7796 3307coding: utf-8
c906108c 3308End:
This page took 3.076092 seconds and 4 git commands to generate.