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