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