Support i387 AVX.
[binutils-gdb.git] / gdb / ChangeLog
1 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
2
3 * i387-tdep.c: Include "i386-xstate.h".
4 (XSAVE_XSTATE_BV_ADDR): New.
5 (xsave_avxh_offset): Likewise.
6 (XSAVE_AVXH_ADDR): Likewise.
7 (i387_supply_xsave): Likewise.
8 (i387_collect_xsave): Likewise.
9
10 * i387-tdep.h (I387_NUM_YMM_REGS): New.
11 (I387_YMM0H_REGNUM): Likewise.
12 (I387_YMMENDH_REGNUM): Likewise.
13 (i387_supply_xsave): Likewise.
14 (i387_collect_xsave): Likewise.
15
16 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
17
18 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
19 <sys/uio.h> and "i386-xstate.h".
20 (PTRACE_GETREGSET): New.
21 (PTRACE_SETREGSET): Likewise.
22 (fetch_xstateregs): Likewise.
23 (store_xstateregs): Likewise.
24 (GETXSTATEREGS_SUPPLIES): Likewise.
25 (regmap): Include 8 upper YMM registers.
26 (i386_linux_fetch_inferior_registers): Support XSAVE extended
27 state.
28 (i386_linux_store_inferior_registers): Likewise.
29 (i386_linux_read_description): Check and enable AVX target
30 descriptions.
31
32 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
33 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
34 (i386_linux_regset_sections): Add ".reg-xstate".
35 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
36 (i386_linux_core_read_xcr0): New.
37 (i386_linux_core_read_description): Check and enable AVX target
38 description.
39 (i386_linux_init_abi): Set xsave_xcr0_offset.
40 (_initialize_i386_linux_tdep): Call
41 initialize_tdesc_i386_avx_linux.
42
43 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
44 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
45 (i386_linux_core_read_xcr0): New.
46 (tdesc_i386_avx_linux): Likewise.
47 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
48
49 * i386-tdep.c: Include "i386-xstate.h" and
50 "features/i386/i386-avx.c".
51 (i386_ymm_names): New.
52 (i386_ymmh_names): Likewise.
53 (i386_ymmh_regnum_p): Likewise.
54 (i386_ymm_regnum_p): Likewise.
55 (i386_xmm_regnum_p): Likewise.
56 (i386_register_name): Likewise.
57 (i386_ymm_type): Likewise.
58 (i386_supply_xstateregset): Likewise.
59 (i386_collect_xstateregset): Likewise.
60 (i386_sse_regnum_p): Removed.
61 (i386_pseudo_register_name): Support pseudo YMM registers.
62 (i386_pseudo_register_type): Likewise.
63 (i386_pseudo_register_read): Likewise.
64 (i386_pseudo_register_write): Likewise.
65 (i386_dbx_reg_to_regnum): Return %ymmN register number for
66 %xmmN if AVX is available.
67 (i386_regset_from_core_section): Support .reg-xstate section.
68 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
69 (i386_process_record): Replace i386_sse_regnum_p with
70 i386_xmm_regnum_p.
71 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
72 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
73 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
74 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
75 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
76 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
77 Set ymm0_regnum.
78 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
79
80 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
81 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
82 i386_ymm_type.
83 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
84 (I386_AVX_NUM_REGS): New.
85 (i386_xmm_regnum_p): Likewise.
86 (i386_ymm_regnum_p): Likewise.
87 (i386_ymmh_regnum_p): Likewise.
88
89 * common/i386-xstate.h: New.
90
91 2010-04-07 H.J. Lu <hongjiu.lu@intel.com>
92
93 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
94
95 * features/Makefile (WHICH): Add i386/i386-avx,
96 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
97 (i386/i386-avx-expedite): New.
98 (i386/i386-avx-linux-expedite): Likewise.
99 (i386/x86-64-avx-expedite):Likewise.
100 (i386/x86-64-avx-linux-expedite): Likewise.
101 ($(outdir)/i386/i386-avx.dat): New dependency.
102 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
103 ($(outdir)/i386/x86-avx-64.dat): Likewise.
104 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
105
106 * features/i386/32bit-avx.xml: New.
107 * features/i386/64bit-avx.xml: Likewise.
108 * features/i386/i386-avx-linux.c: Likewise.
109 * features/i386/i386-avx-linux.xml: Likewise.
110 * features/i386/i386-avx.c: Likewise.
111 * features/i386/i386-avx.xml: Likewise.
112 * features/i386/x86-64-avx-linux.c: Likewise.
113 * features/i386/x86-64-avx-linux.xml: Likewise.
114 * features/i386/x86-64-avx.c: Likewise.
115 * features/i386/x86-64-avx.xml: Likewise.
116 * regformats/i386/i386-avx-linux.dat: Likewise.
117 * regformats/i386/i386-avx.dat: Likewise.
118 * regformats/i386/x86-64-avx-linux.dat: Likewise.
119 * regformats/i386/x86-64-avx.dat: Likewise.
120
121 2010-04-07 Doug Evans <dje@google.com>
122
123 * top.c (source_file_name): Make const char *.
124 * top.h (source_file_name): Update.
125 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
126 const char *.
127 (script_from_file): Change `file' arg to const char *.
128 * cli/cli-script.h (script_from_file): Update.
129
130 2010-04-06 Doug Evans <dje@google.com>
131
132 * cli/cli-cmds.c (source_command): Run cleanups.
133
134 2010-04-06 Stan Shebs <stan@codesourcery.com>
135
136 * defs.h (char_ptr): Move typedef here from...
137 * ada-lang.c (char_ptr): Remove.
138 * charset.c (char_ptr): Remove.
139 * tracepoint.h (struct uploaded_string): Remove.
140 (struct uploaded_tp): Use vectors for string arrays.
141 * tracepoint.c (trace_save): Use vectors of actions.
142 (parse_tracepoint_definition): Ditto.
143 (get_uploaded_tp): Clear vectors.
144 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
145 (next_cmd): Change to an int.
146 (read_next_cmd): Use vector of command strings.
147
148 2010-04-06 Doug Evans <dje@google.com>
149
150 * top.h (source_script, cd_command): Delete.
151 * main.c: #include "cli/cli-cmds.h"
152
153 2010-04-06 Kevin Buettner <kevinb@redhat.com>
154
155 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
156 type in bytes, not bits.
157
158 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
159
160 * stabsread.c (define_symbol): Add support for char
161 and string constants.
162
163 2010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
164
165 Remove remaining "%ll" uses.
166 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
167 hex_string call.
168 * rs6000-nat.c (rs6000_ptrace64): Idem.
169 * solib-pa64.c (pa64_current_sos): Idem.
170 * solib-spu.c (spu_current_sos): Idem.
171 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
172 plongest call.
173 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
174 phex (VAR, 8) call.
175 * sh64-tdep.c (sh64_show_media_regs): Idem.
176
177 2010-04-05 Stan Shebs <stan@codesourcery.com>
178
179 * tracepoint.c: Include gdbcore.h.
180 (tfile_xfer_partial): Return partial results, also try reading
181 from executable.
182 (tfile_has_all_memory): New function.
183 (init_tfile_ops): Use it.
184
185 2010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
186
187 PR gdb/10736:
188 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
189 the changes in data-directory.
190 (init_sysinfo): Reload the syscall XML file if the data-directory
191 has changed.
192
193 2010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
194
195 Code cleanup.
196 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
197
198 2010-04-04 Stan Shebs <stan@codesourcery.com>
199 Nathan Sidwell <nathan@codesourcery.com>
200
201 * breakpoint.c (breakpoint_1): Add filter argument, return number of
202 breakpoints printed.
203 (is_hardware_watchpoint): Make argument const.
204 (is_watchpoint): Ditto.
205 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
206 use it everywhere.
207 (breakpoints_info): Pass NULL to breakpoint_1.
208 (maintenance_info_breakpoints): Ditto.
209 (watchpoints_info): New function.
210 (tracepoints_info): Use breakpoint_1 filter.
211 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
212 (_initialize_breakpoint): Make "info watchpoints" its own command.
213 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
214 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
215
216 2010-04-04 Stan Shebs <stan@codesourcery.com>
217
218 * tracepoint.c (tfile_fetch_registers): Add fallback case.
219
220 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
221
222 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
223 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
224
225 2010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
226
227 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
228 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
229
230 2010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
231
232 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
233 code form.
234
235 2010-04-02 Hui Zhu <teawater@gmail.com>
236
237 * i386-tdep.c (OT_DQUAD): New enum.
238 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
239 SSE3, SSSE3 and SSE4.
240
241 2010-04-02 Hui Zhu <teawater@gmail.com>
242
243 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
244 "*addr = 0".
245
246 2010-04-02 Pedro Alves <pedro@codesourcery.com>
247
248 * tracepoint.c (trace_dump_actions): New, factored out from
249 trace_dump_command, and adjusted to recurse into while-stepping's
250 action list.
251 (trace_dump_command): Use it.
252
253 2010-04-02 Pedro Alves <pedro@codesourcery.com>
254
255 * breakpoint.h (struct counted_command_line): Moved definition to
256 breakpoint.c, and forward declare.
257 (breakpoint_commands): Declare.
258 * breakpoint.c (struct counted_command_line): Moved here.
259 (breakpoint_commands): New.
260 * tracepoint.c (encode_actions): Use breakpoint_commands.
261 * remote.c (remote_download_tracepoint): Ditto.
262
263 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
264
265 * remote.c (remote_parse_stop_reply): Use hex_string instead
266 of phex_nz for error.
267
268 2010-04-01 Stan Shebs <stan@codesourcery.com>
269 Nathan Sidwell <nathan@codesourcery.com>
270
271 * tracepoint.h (enum actionline_type): Remove.
272 (validate_actionline): Change return to void.
273 * tracepoint.c (report_agent_reqs_errors): New function.
274 (validate_actionline): Call it, change return to void, report errors
275 more consistently.
276 (collect_symbol): Call report_agent_reqs_errors.
277 (encode_actions_1): Ditto.
278 (encode_actions): Don't expect a result from validate_actionline.
279
280 2010-04-01 Stan Shebs <stan@codesourcery.com>
281
282 * tracepoint.c (trace_start_command): Confirm if trace is running.
283 (trace_stop_command): Error if trace not running.
284
285 2010-04-01 H.J. Lu <hongjiu.lu@intel.com>
286
287 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
288 (AMD64_NUM_LOWER_BYTE_REGS): New.
289 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
290 (amd64_pseudo_register_write): Likewise.
291 (amd64_init_abi): Set num_byte_regs to 20.
292
293 2010-04-01 Pedro Alves <pedro@codesourcery.com>
294
295 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
296 (prev_breakpoint_count): New.
297 (set_breakpoint_count): Adjust.
298 (rbreak_start_breakpoint_count): New.
299 (start_rbreak_breakpoints): Adjust.
300 (end_rbreak_breakpoints): Adjust.
301 (struct commands_info) <arg>: New field.
302 (do_map_commands_command): Tweak output to include breakpoint spec
303 range.
304 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
305 ARG was empty on entry. Set INFO's arg.
306 (create_breakpoint): Adjust.
307
308 * NEWS: Clarify `commands' changes.
309
310 2010-04-01 Pedro Alves <pedro@codesourcery.com>
311
312 * tracepoint.c: Include stack.h.
313 (struct add_local_symbols_data): New.
314 (do_collect_symbol): New.
315 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
316 iterate_over_block_local_vars.
317 * stack.c (print_block_frame_locals): Rewrite as ...
318 (iterate_over_block_locals): ... this. Take a callback function
319 pointer and generic data pointer, and call that instead of
320 print_variable_and_value.
321 (struct print_variable_and_value_data): New.
322 (do_print_variable_and_value): New.
323 (iterate_over_block_local_vars): New, abstracted out from
324 print_frame_local_vars.
325 (print_frame_local_vars): Rewrite using
326 iterate_over_block_local_vars.
327 (iterate_over_block_arg_vars): New, abstracted out from
328 print_frame_arg_vars.
329 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
330 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
331 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
332
333 2010-03-31 Richard Earnshaw <rearnsha@arm.com>
334
335 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
336 instructions. Use the PC+4 if the base of the TBB or TBH is the
337 PC register.
338
339 2010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
340
341 Fix crash on reading wrong function declaration DWARF.
342 * dwarf2read.c (read_subroutine_type): New variable void_type.
343 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
344 more close to their use.
345
346 2010-03-31 Stan Shebs <stan@codesourcery.com>
347
348 * breakpoint.c (tracepoint_save_command): Include variables,
349 conditionals, tracepoint types, and default-collect.
350 * tracepoint.c (save_trace_state_variables): New function.
351 * tracepoint.h (save_trace_state_variables): Declare it.
352
353 2010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
354
355 * src/gdb/remote.c (end_thread): ARI fix: Use xstrdup instead of
356 strdup.
357
358 2010-03-30 Keith Seitz <keiths@redhat.com>
359
360 * c-typeprint.c (c_type_print_args): Don't print "void"
361 for java, regardless of whether it is TYPE_PROTOTYPED.
362 Use the passed-in language instead of current_language.
363 (c_type_print_varspec_suffix): Use current_language instead
364 of assuming language_c.
365 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
366 any return type specifier from the physname.
367
368 2010-03-30 Pedro Alves <pedro@codesourcery.com>
369
370 * tui/tui-interp.c (tui_is_toplevel): New.
371 (tui_init): Set it.
372 (tui_allowed_p): New.
373 * tui/tui.c (tui_enable): Check if the TUI is allowed before
374 enabling it.
375 * tui/tui.h (tui_allowed_p): Declare.
376
377 2010-03-30 Ozkan Sezer <sezeroz@gmail.com>
378
379 * serial.h: Include winsock2.h before windows.h.
380
381 2010-03-30 H.J. Lu <hongjiu.lu@intel.com>
382
383 * NEWS: Mention xmlRegisters= in qSupported packet.
384
385 * i386-tdep.c: Include "remote.h".
386 (_initialize_i386_tdep): Call register_remote_support_xml.
387
388 * remote.c (remote_support_xml): New.
389 (register_remote_support_xml): Likewise.
390 (remote_query_supported_append): Likewise.
391 (remote_query_supported): Support remote_support_xml.
392
393 * remote.h (register_remote_support_xml): New.
394
395 2010-03-29 Stan Shebs <stan@codesourcery.com>
396
397 * tracepoint.c (trace_find_line_command): Remove dead code.
398
399 * tracepoint.h (struct uploaded_string): New struct.
400 (struct uploaded_tp): New fields for source strings.
401 * breakpoint.c (this_utp, next_cmd): New globals.
402 (read_uploaded_action): New function.
403 (create_tracepoint_from_upload): Fill in more parts
404 of a tracepoint.
405 * tracepoint.c (encode_source_string): New function.
406 (trace_save): Write out source strings, fix error checks.
407 (parse_tracepoint_definition): Add source string parsing.
408 * remote.c (PACKET_TracepointSource): New packet type.
409 (remote_download_command_source): New function.
410 (remote_download_tracepoint): Download source pieces also.
411 (_initialize_remote): Add packet config command.
412
413 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
414 expression handler.
415
416 * tracepoint.c (start_tracing): Check tracepoints before sending
417 commands to target, don't start if all tracepoints disabled.
418
419 2010-03-28 Pedro Alves <pedro@codesourcery.com>
420
421 * cli/cli-script.c (process_next_line): Handle 'stepping'.
422
423 2010-03-26 Stan Shebs <stan@codesourcery.com>
424
425 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
426
427 2010-03-26 Tom Tromey <tromey@redhat.com>
428
429 * breakpoint.c (commands_command_1): Duplicate 'arg'.
430
431 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
432
433 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
434 (skip_prologue_sal): Remove local definition.
435 (resolve_sal_pc): Remove now unnecessary code.
436 * linespec.c (minsym_found): Call skip_prologue_sal.
437 * symtab.c (find_function_start_pc): Remove.
438 (find_function_start_sal): Extract prologue skipping into ...
439 (skip_prologue_sal): ... this new function. Handle code both
440 with and without debug info. Respect SAL's explicit_pc and
441 explicit_line flags. Inline old find_function_start_pc.
442 * symtab.h (find_function_start_pc): Remove.
443 (skip_prologue_sal): Add prototype.
444
445 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
446
447 * dwarf2read.c (read_func_scope): Also scan specification DIEs
448 for DW_TAG_imported_module children.
449
450 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
451
452 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
453 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
454 * completer.c (add_struct_fields): Fix inverted logic.
455
456 2010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
457
458 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
459
460 2010-03-26 Pedro Alves <pedro@codesourcery.com>
461
462 * tracepoint.c (current_trace_status): Don't make sure error_desc
463 is non-NULL here.
464 (parse_trace_status): Release a previous error_desc string, and
465 set it to NULL by default. If stop reason is tracepoint_error,
466 make sure error_desc is not left NULL.
467
468 2010-03-26 Pedro Alves <pedro@codesourcery.com>
469
470 * tracepoint.c (trace_save): Remove X from tracepoint error
471 description.
472
473 2010-03-26 Pedro Alves <pedro@codesourcery.com>
474
475 * tracepoint.c (parse_trace_status): Don't allow plain strings in
476 the terror description. Don't expect an X prefix.
477
478 2010-03-25 Stan Shebs <stan@codesourcery.com>
479
480 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
481 (struct trace_status): New field error_desc.
482 * tracepoint.c (stop_reason_names): Add terror.
483 (current_trace_status): Ensure non-NULL error description.
484 (trace_status_command): Add error report.
485 (trace_status_mi): Ditto.
486 (trace_save): Add special case for error description.
487 (parse_trace_status): Add case for errors.
488
489 2010-03-25 Keith Seitz <keiths@redhat.com>
490
491 * dwarf2read.c (read_subroutine_type): If the compilation unit
492 language is Java, mark any formal parameter named "this" as
493 artificial (GCC/43521).
494 (dwarf2_name): Add special handling for Java constructors.
495
496 2010-03-25 Tom Tromey <tromey@redhat.com>
497
498 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
499 * infrun.c (handle_inferior_event): Change initialization of
500 stop_stack_dummy.
501 (handle_inferior_event): Change assignment to stop_stack_dummy.
502 (normal_stop): Update use of stop_stack_dummy.
503 (struct inferior_status) <stop_stack_dummy>: Change type.
504 * inferior.h (stop_stack_dummy): Update.
505 * infcmd.c (stop_stack_dummy): Change type.
506 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
507 function.
508 (call_function_by_hand): Call set_std_terminate_breakpoint.
509 Rewrite std::terminate handling.
510 * breakpoint.h (enum bptype) <bp_std_terminate,
511 bp_std_terminate_master>: New.
512 (enum stop_stack_kind): New.
513 (struct bpstat_what) <call_dummy>: Change type.
514 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
515 Declare.
516 * breakpoint.c (create_std_terminate_master_breakpoint): New
517 function.
518 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
519 Call create_std_terminate_master_breakpoint.
520 (print_it_typical): Handle new breakpoint kinds.
521 (bpstat_stop_status): Handle bp_std_terminate_master.
522 (bpstat_what): Correctly set call_dummy field. Handle
523 bp_std_terminate_master and bp_std_terminate.
524 (print_one_breakpoint_location): Update.
525 (allocate_bp_location): Update.
526 (set_std_terminate_breakpoint): New function.
527 (delete_std_terminate_breakpoint): Likewise.
528 (create_thread_event_breakpoint): Update.
529 (delete_command): Update.
530 (breakpoint_re_set_one): Update.
531 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
532
533 2010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
534
535 * symfile.c (build_section_addr_info_from_bfd): New.
536 (build_section_addr_info_from_objfile): Base it on
537 build_section_addr_info_from_bfd.
538 (addrs_section_compar, addrs_section_sort): New.
539 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
540 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
541 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
542
543 2010-03-24 Michael Snyder <msnyder@localhost.localdomain>
544
545 * elfread.c (find_separate_debug_file_by_buildid):
546 Remove unused local variable.
547
548 2010-03-24 Tom Tromey <tromey@redhat.com>
549
550 PR breakpoints/9352:
551 * NEWS: Mention changes to `commands' and `rbreak'.
552 * symtab.c (do_end_rbreak_breakpoints): New function.
553 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
554 end_rbreak_breakpoints.
555 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
556 (set_breakpoint_count): Likewise. Clear last_was_multi.
557 (multi_start, multi_end, last_was_multi): New globals.
558 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
559 functions.
560 (struct commands_info): New
561 (do_map_commands_command): New function.
562 (commands_command_1): New function.
563 (commands_command): Use it.
564 (commands_from_control_command): Likewise.
565 (do_delete_breakpoint): New function.
566 (delete_command): Use it.
567 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
568 (do_map_disable_breakpoint): New function.
569 (disable_command): Use it.
570 (do_map_enable_breakpoint): New function.
571 (enable_command): Use it.
572 (enable_once_breakpoint): Add argument.
573 (enable_once_command): Update.
574 (enable_delete_breakpoint): Add argument.
575 (enable_delete_command): Update.
576 (break_command_really): Set last_was_multi when needed.
577 (check_tracepoint_command): Fix formatting.
578 (validate_commands_for_breakpoint): New function.
579 (breakpoint_set_commands): Use it.
580 (tracepoint_save_command): Update.
581 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
582 Declare.
583
584 2010-03-24 Tom Tromey <tromey@redhat.com>
585
586 * breakpoint.h (struct counted_command_line): New struct.
587 (struct breakpoint) <commands>: Change type.
588 (struct bpstats) <commands>: Change type.
589 <commands_left>: New field.
590 * breakpoint.c (alloc_counted_command_line): New function.
591 (incref_counted_command_line): Likewise.
592 (decref_counted_command_line): Likewise.
593 (do_cleanup_counted_command_line): Likewise.
594 (make_cleanup_decref_counted_command_line): Likewise.
595 (breakpoint_set_commands): Use decref_counted_command_line and
596 alloc_counted_command_line.
597 (commands_command): Don't error if breakpoint commands are
598 executing.
599 (commands_from_control_command): Likewise.
600 (bpstat_free): Update.
601 (bpstat_copy): Likewise.
602 (bpstat_clear_actions): Likewise.
603 (bpstat_do_actions_1): Likewise.
604 (bpstat_stop_status): Likewise.
605 (print_one_breakpoint_location): Likewise.
606 (delete_breakpoint): Likewise.
607 (bpstat_alloc): Initialize new field.
608 (tracepoint_save_command): Update.
609 * tracepoint.c (encode_actions): Update.
610 (trace_dump_command): Update.
611
612 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
613
614 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
615 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
616 (read_structure_type): For RealView, set TYPE_STUB on structures with
617 no byte size and no children.
618 (read_subroutine_type): Mark functions as prototyped by default.
619 * symtab.c (producer_is_realview): New function.
620 * symtab.h (expand_line_sal): Fix declaration formatting.
621 (producer_is_realview): Declare.
622
623 2010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
624
625 * arm-tdep.c (skip_prologue_function): New function.
626 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
627 (thumb_analyze_prologue): Document return value. Recognize more
628 Thumb instructions, skippable calls, and some Thumb-2 instructions.
629 Add debug output.
630 (arm_skip_prologue): Remove call dummy check. Check the prologue
631 for non-GNU compilers.
632 (arm_instruction_changes_pc): New function.
633 (arm_analyze_prologue): New function, broken out from
634 arm_scan_prologue. Recognize more ARM instructions and skippable
635 calls. Update comments. Handle NULL cache. Return the address
636 of the first unrecognized instruction. Do not skip past other
637 instructions which change control flow. Add debug output.
638 (arm_scan_prologue): Use arm_analyze_prologue.
639 (ARM_PC_32): Delete.
640 (shifted_reg_val): Simplify ARM_PC_32 check.
641
642 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
643
644 * tracepoint.c (tvariables_info_1): Actually compute
645 the number of rows in the result.
646
647 2010-03-24 Pedro Alves <pedro@codesourcery.com>
648
649 * remote.c (crc32): Constify `buf' parameter.
650 (remote_verify_memory): New, abstracted out from...
651 (compare_sections_command): ... this. Remove hardcoded target
652 checks.
653 (init_remote_ops): Install remote_verify_memory.
654 * target.c (target_verify_memory): New.
655 * target.h (struct target_ops) <to_verify_memory>: New field.
656 (target_verify_memory): Declare.
657
658 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
659
660 Implement -trace-save.
661
662 * mi-cmds.h (mi_cmds_trace_save): Declare.
663 * mi-cmds.c (mi_cmds): Register -trace-save.
664 * mi/mi-main.c (mi_cmd_trace_save): New.
665 * remote.c (remote_save_trace_data): Take const parameter.
666 * target.h (struct target_ops::to_save_trace_data): Take
667 const parameter.
668 * target.c (update_current_target): Adjust to the above.
669 * tracepoint.c (trave_save): New, extracted from
670 (trace_save_command): ...this.
671 (tfile_trace_find): Remove message that is unnecessary now
672 that 'tfind' reports found frame.
673 * tracepoint.h (trace_save): Declare.
674
675 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
676
677 Implement -trace-find.
678
679 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
680 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
681 * mi/mi-main.c (mi_cmd_trace_find): New.
682 * target.h (struct target_ops): Document to_trace_find.
683 * tracepoint.h (tfind_1): Declare.
684 * tracepoint.c (finish_tfind_command): Rename to...
685 (tfind_1): ...this.
686 * remote.c (remote_trace_find): Return -1 if target say
687 there's no frame. Improve error diagnostics.
688
689 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
690
691 -trace-define-variable and -trace-list-variables.
692
693 * tracepoint.c (create_trace_state_variable): Make
694 private copy of name, as opposed to assuming the
695 pointer lives forever.
696 (tvariables_info_1): New.
697 (tvariables_info): Use the above.
698 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
699 Declare.
700 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
701 and -trace-list-variables.
702 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
703 (mi_cmd_trace_list_variables): New.
704 * mi/mi-main.c (mi_cmd_trace_define_variable)
705 (mi_cmd_trace_list_variables): New.
706
707 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
708
709 Implement -break-passcount.
710
711 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
712 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
713 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
714
715 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
716
717 -trace-start/-trace-end/-trace-status.
718
719 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
720 and -trace-stop.
721 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
722 (mi_cmd_trace_stop): Declare.
723 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
724 (mi_cmd_trace_stop): New.
725 * tracepoint.c (start_tracing): New, extracted from...
726 (trace_start_command): ...this.
727 (trace_status_mi): New.
728 * tracepoint.h (struct trace_status): Document
729 stopping_tracepoint.
730 (start_tracing, stop_tracing, trace_status_mi): Declare.
731
732 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
733
734 Implement creating tracepoints with -break-insert.
735
736 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
737 to mean that tracepoint should be created.
738
739 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
740
741 * breakpoint.c (check_no_tracepoint_commands): Use
742 current spelling of 'teval'.
743
744 2010-03-24 Vladimir Prus <vladimir@codesourcery.com>
745
746 Unify actions and commands
747
748 * defs.h (read_command_lines, read_command_lines_1): New
749 parameters validator and closure.
750 * tracepoint.h (struct action_line): Remove.
751 * breakpoint.h (struct breakpoint): Remove the 'actions'
752 field.
753 * defs.h (enum command_control_type): New value
754 while_stepping_control.
755 (struct command_line): Add comments.
756 * breakpoint.c (breakoint_is_tracepoint): New.
757 (breakpoint_set_commands): For tracepoints,
758 verify the commands are permissible.
759 (check_tracepoint_commands): New.
760 (commands_command): Require that each new line is validated using
761 check_tracepoint_command, if we set commands for a tracepoint.
762 (create_tracepoint_from_upload): Likewise.
763 (print_one_breakpoint_location): Remove the code to print
764 actions specifically.
765 (tracepoint_save_command): Relay to print_command_lines.
766 * cli/cli-script.c (process_next_line): New parameters validator
767 and closure. Handle 'while-stepping'. Call validator if not null.
768 (read_command_lines, read_command_lines1): Likewise.
769 (recurse_read_control_structure): New parameters validator and
770 closure. Handle while_stepping_control.
771 (print_command_lines): Handle while-stepping.
772 (get_command_line, define_command, document_command): Adjust.
773 * remote.c (remote_download_tracepoint): Adjust.
774 * tracepoint.c (make_cleanup_free_actions, read_actions)
775 (free_actions, do_free_actions_cleanup): Remove.
776 (trace_actions_command): Use read_command_lines.
777 (validate_actionline): Use error in one place.
778 (encode_actions_1): New, extracted from...
779 (encode_actions): ...this. Also use cleanups for exception
780 safety.
781 (trace_dump_command): Adjust.
782 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
783 it's tracepoint.
784
785 2010-03-23 Mike Frysinger <vapier@gentoo.org>
786
787 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
788
789 2010-03-22 Stan Shebs <stan@codesourcery.com>
790
791 * value.c (value_static_field): Be lazy about the field's value.
792
793 2010-03-22 Reid Kleckner <reid@kleckner.net>
794
795 PR gdb/11094
796 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
797 bp_jit_event.
798 (disable_breakpoints_in_shlibs): Likewise.
799
800 2010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
801
802 * dwarf2read.c (partial_die_parent_scope): Work around buggy
803 GCC 4.1 debug info generation (GCC PR c++/28460).
804 (determine_prefix): Likewise.
805
806 2010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
807
808 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
809 get_current_arch.
810 * tui/tui-layout.c (extract_display_start_addr): Likewise.
811
812 2010-03-19 Stan Shebs <stan@codesourcery.com>
813
814 * ax-gdb.c (gen_fetch): Handle bool.
815 (gen_usual_unary): Ditto.
816 (gen_cast): Ditto.
817 (gen_equal): New function.
818 (gen_less): New function.
819 (gen_expr_binop_rest): Call them, also return integer type from
820 logical operations.
821 (gen_expr): Ditto.
822
823 2010-03-19 Tom Tromey <tromey@redhat.com>
824
825 * jv-lang.c (jv_dynamics_objfile_data_key)
826 (jv_type_objfile_data_key): New globals.
827 (class_symtab): Move earlier.
828 (jv_per_objfile_free): New function.
829 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
830 parameter.
831 Remove ancient #if 1.
832 (add_class_symbol): Remove redundant declaration.
833 (java_lookup_class): Use alloc_type, not alloc_type_arch.
834 (java_link_class_type): Mark as static. Update.
835 (jv_clear_object_type): New function.
836 (set_java_object_type): Likewise.
837 (get_java_object_type): Use set_java_object_type.
838 (is_object_type): Likewise.
839 (_initialize_java_language): Register new objfile keys.
840 (get_java_class_symtab): Add 'gdbarch' parameter.
841 (add_class_symtab_symbol): Update.
842 (type_from_class): Update.
843
844 2010-03-19 Stan Shebs <stan@codesourcery.com>
845
846 * ax-general.c (ax_const_l): Fix a sizing bug.
847
848 2010-03-18 Joel Brobecker <brobecker@adacore.com>
849
850 GDB 7.1 released.
851
852 2010-03-18 Stan Shebs <stan@codesourcery.com>
853 Pedro Alves <pedro@codesourcery.com>
854
855 * target.h (struct target_ops): New method
856 to_set_circular_trace_buffer.
857 (target_set_circular_trace_buffer): New macro.
858 * target.c (update_current_target): Add
859 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
860 default behavior.
861 * remote.c (remote_set_circular_trace_buffer): New function.
862 (init_remote_ops): Add it to vector.
863 * tracepoint.h (struct trace_status): New field traceframes_created,
864 change buffer_size and buffer_free to int.
865 * tracepoint.c (circular_trace_buffer): New global.
866 (start_tracing): Send values of disconnected tracing and circular
867 trace buffer settings.
868 (set_circular_trace_buffer): New function.
869 (parse_trace_state): Handle total space and frames created.
870 (trace_status_command): Display total space and total frames
871 created.
872 (trace_save): Write out new status values.
873 (parse_trace_status): Set traceframe_count, traceframes_created,
874 buffer_free and buffer_size to -1 by default.
875 (_initialize_tracepoint): New setshow for circular-trace-buffer.
876 * NEWS: Mention the circular trace buffer option.
877
878 2010-03-18 Tom Tromey <tromey@redhat.com>
879
880 * infcmd.c (finish_command_continuation): Wrap print_return_value
881 in TRY_CATCH.
882
883 2010-03-18 Joel Brobecker <brobecker@adacore.com>
884
885 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
886 DIE has a name before creating the associated partial symbol.
887 (read_func_scope): Emit a complaint if the subprogram does not
888 have a name or when we can't extract the subprogram PC bounds.
889
890 2010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
891
892 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
893 instead of selected frame architecture.
894
895 2010-03-18 Pedro Alves <pedro@codesourcery.com>
896
897 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
898 a valid selected thread, and that it is not running.
899 (advance_command): Ditto.
900 (finish_command): Ditto.
901
902 2010-03-17 Stan Shebs <stan@codesourcery.com>
903
904 * ax-gdb.c (require_rvalue): Disallow non-scalars.
905
906 * infcall.c: Include tracepoint.h.
907 (call_function_by_hand): Disallow calls in tfind mode.
908 * infcmd.c: Include tracepoint.h.
909 (ensure_not_tfind_mode): New function.
910 (continue_1): Call it.
911 (step_1) Ditto.
912 (jump_command): Ditto.
913 (signal_command): Ditto.
914 (advance_command): Ditto.
915 (until_command): Ditto.
916 (finish_command): Ditto.
917 * tracepoint.h (disconnect_or_stop_tracing): Declare.
918
919 * ax-gdb.h (struct axs_value): New field optimized_out.
920 (gen_trace_for_var): Add gdbarch argument.
921 * ax-gdb.c (gen_trace_static_fields): New function.
922 (gen_traced_pop): Call it, add gdbarch argument.
923 (gen_trace_for_expr): Update call to it.
924 (gen_trace_for_var): Ditto, and report optimized-out variables.
925 (gen_struct_ref_recursive): Check for optimized-out value.
926 (gen_struct_elt_for_reference): Ditto.
927 (gen_static_field): Pass gdbarch instead of expression, assume
928 optimization if field not found.
929 (gen_var_ref): Set the optimized_out flag.
930 (gen_expr): Error on optimized-out variable.
931 * tracepoint.c (collect_symbol): Handle struct-valued vars as
932 expressions, skip optimized-out variables with computed locations.
933 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
934 erroring out if location expression missing.
935 (loclist_tracepoint_var_ref): Don't error out here.
936
937 2010-03-17 Tom Tromey <tromey@redhat.com>
938
939 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
940 DWARF data is available.
941
942 2010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
943
944 * symfile.c (generic_load): Reset breakpoints after loading.
945
946 2010-03-17 Tom Tromey <tromey@redhat.com>
947
948 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
949
950 2010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
951
952 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
953 create_breakpoint call, adjust the parameters.
954
955 2010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
956 Chandru <chandru@in.ibm.com>
957
958 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
959 * valarith.c (value_subscripted_rvalue): Suppress error if
960 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
961
962 2010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
963
964 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
965
966 2010-03-16 Joel Brobecker <brobecker@adacore.com>
967
968 * ada-tasks.c (task_command_1): Check that the task ptid is valid
969 before doing the associated thread switch.
970
971 2010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
972
973 * MAINTAINERS: Update my email address.
974
975 2010-03-16 Vladimir Prus <vladimir@codesourcery.com>
976
977 Simplify MI breakpoint setting.
978
979 * breakpoint.c (break_command_really): Make nonstatic and
980 rename to...
981 (create_breakpoint): ...this. Rename prior function by this name
982 to...
983 (create_breakpoint_sal): ...this.
984 (create_breakpoints): Rename to...
985 (create_breakpoints_sal): ...this.
986 (set_breakpoint): Remove.
987 * breakpoint.h: Adjust to above changes.
988 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
989
990 2010-03-15 Stan Shebs <stan@codesourcery.com>
991
992 * ax-gdb.c: Include cp-support.h.
993 (find_field): Remove.
994 (gen_primitive_field): New function.
995 (gen_struct_ref_recursive): New function.
996 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
997 of find_field.
998 (gen_static_field): New function.
999 (gen_struct_elt_for_reference): New.
1000 (gen_namespace_elt): New.
1001 (gen_maybe_namespace_elt): New.
1002 (gen_aggregate_elt_ref): New.
1003 (gen_expr): Add OP_SCOPE, display opcode name in error message.
1004
1005 2010-03-15 Tom Tromey <tromey@redhat.com>
1006
1007 * dwarf2read.c (die_needs_namespace): Also return 0 for
1008 DW_TAG_subprogram.
1009
1010 2010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
1011
1012 PR c++/7936:
1013 * cp-support.h: Added char *declaration element to using_direct
1014 data struct.
1015 (cp_add_using): Added char *declaration argument.
1016 (cp_add_using_directive): Ditto.
1017 (cp_lookup_symbol_imports): made extern.
1018 * cp-namespace.c: Updated with the above changes.
1019 * dwarf2read.c (read_import_statement): Ditto.
1020 (read_namespace): Ditto.
1021 (read_import_statement): Support import declarations.
1022 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
1023 declarations.
1024 Added support for 'declaration_only' search.
1025 (cp_lookup_symbol_namespace): Attempt to search for the name as
1026 is before consideration of imports.
1027 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
1028 search at every block level search.
1029 Now takes language argument.
1030 (lookup_symbol_aux): Updated.
1031
1032 2010-03-15 Tom Tromey <tromey@redhat.com>
1033
1034 * c-exp.y (name_not_typename): Add 'operator' clause.
1035
1036 2010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
1037
1038 * configure.ac: Exit if ${gdb_target_obs}" is not set.
1039 * configure: Regenerate.
1040
1041 2010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1042
1043 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
1044 and ".sdynbss". Update the comment.
1045
1046 2010-03-15 Jie Zhang <jie@codesourcery.com>
1047
1048 * MAINTAINERS: Update my email address.
1049
1050 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1051
1052 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
1053
1054 2010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
1055
1056 * charset.c [USE_WIN32API]: Include <windows.h>.
1057 (_initialize_charset): Correct type of w32_host_default_charset.
1058
1059 2010-03-14 Pedro Alves <pedro@codesourcery.com>
1060
1061 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
1062
1063 2010-03-12 Tom Tromey <tromey@redhat.com>
1064
1065 PR c++/9708:
1066 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
1067 in a lexical block does not need a namespace.
1068 (new_symbol) <DW_TAG_variable>: Put extern variables on
1069 list_in_scope in all cases.
1070
1071 2010-03-12 Stan Shebs <stan@codesourcery.com>
1072
1073 * ax-gdb.c (gen_expr): Add shift expressions.
1074 (gen_expr_binop_rest): Ditto.
1075
1076 2010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
1077
1078 * buildsym.c (finish_block): Reset using_directives pointer
1079 after block initialization.
1080
1081 2010-03-12 H.J. Lu <hongjiu.lu@intel.com>
1082
1083 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
1084 * i386-tdep.c (i386_word_names): Likewise.
1085
1086 2010-03-12 Pedro Alves <pedro@codesourcery.com>
1087
1088 * target.c (memory_xfer_partial): Don't use the stack cache if
1089 inspecting trace frames.
1090 * tracepoint.c (finish_tfind_command): Invalidate the target
1091 dcache.
1092
1093 2010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1094
1095 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
1096 for the PIC displacement, print also the displacement value.
1097 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
1098
1099 2010-03-10 Kevin Buettner <kevinb@redhat.com>
1100
1101 * remote-mips.c (close_ports, mips_initialize_cleanups)
1102 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
1103 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
1104 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
1105 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
1106 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
1107 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
1108 comments describing each of these functions.
1109 (mips_enter_debug, mips_exit_debug, common_open)
1110 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
1111 blank line after the comment describing the function.
1112
1113 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1114
1115 * solib-svr4.c (svr4_exec_displacement): Return now success, new
1116 parameter displacementp. Update comment.
1117 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
1118 element exists. Return if svr4_exec_displacement was not successful.
1119 Update comment.
1120
1121 2010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1122 Daniel Jacobowitz <dan@codesourcery.com>
1123
1124 * solib-svr4.c (read_program_header): Support type == -1 to read
1125 all program headers.
1126 (read_program_headers_from_bfd): New function.
1127 (svr4_static_exec_displacement): Remove and move the comment ...
1128 (svr4_exec_displacement): ... here. Remove variable found. New
1129 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
1130 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
1131 targets using read_program_headers_from_bfd. Remove the call of
1132 svr4_static_exec_displacement.
1133
1134 2010-03-10 Tom Tromey <tromey@redhat.com>
1135
1136 * dwarf2read.c (struct pubnames_header): Remove.
1137 (_PUBNAMES_HEADER): Remove.
1138 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
1139 (struct aranges_header): Remove.
1140 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
1141 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
1142 (PUBNAMES_SECTION): Remove.
1143 (ARANGES_SECTION): Remove.
1144 (dwarf2_locate_sections): Don't handle pubnames or aranges.
1145 (dwarf2_build_psymtabs): Remove dead code.
1146 (dwarf2_build_psymtabs_easy): Remove.
1147
1148 2010-03-10 Tom Tromey <tromey@redhat.com>
1149
1150 * elfread.c (elf_symfile_read): Don't call
1151 dwarf2_build_frame_info.
1152 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
1153 (struct dwarf2_per_objfile) <objfile>: New field.
1154 (dwarf2_has_info): Now idempotent. Set objfile field.
1155 (dwarf2_read_section): Check and set readin field. Call
1156 posix_madvise.
1157 (dwarf2_build_psymtabs): Don't read all sections.
1158 (read_type_comp_unit_head): Read types section.
1159 (create_debug_types_hash_table): Likewise.
1160 (init_cu_die_reader): Add asserts.
1161 (process_type_comp_unit): Add assert.
1162 (dwarf2_build_psymtabs_hard): Read info section.
1163 (load_partial_comp_unit): Add assert.
1164 (create_all_comp_units): Read info section.
1165 (load_full_comp_unit): Likewise.
1166 (dwarf2_ranges_read): Read ranges section.
1167 (dwarf2_record_block_ranges): Add assert.
1168 (dwarf2_read_abbrevs): Read abbrev section.
1169 (read_indirect_string): Read str section.
1170 (dwarf_decode_line_header): Read line section.
1171 (read_signatured_type_at_offset): Read types section.
1172 (dwarf_decode_macros): Read macinfo section.
1173 (dwarf2_symbol_mark_computed): Read loc section.
1174 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
1175 dwarf2_build_frame_info.
1176 (dwarf2_build_frame_info): Unconditionally set
1177 dwarf2_frame_objfile_data on the objfile.
1178 * configure.ac: Check for posix_madvise.
1179 * config.in, configure: Rebuild.
1180
1181 2010-03-10 Tom Tromey <tromey@redhat.com>
1182
1183 * xcoffread.c (xcoff_start_psymtab): Update.
1184 (xcoff_end_psymtab): Update.
1185 * psymtab.c (allocate_psymtab): Remove dead code.
1186 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
1187 void*.
1188 * mdebugread.c (parse_partial_symbols): Update.
1189 (new_psymtab): Likewise.
1190 * dwarf2read.c (process_psymtab_comp_unit): Update.
1191 (psymtab_to_symtab_1): Update.
1192 * dbxread.c (start_psymtab): Update.
1193 (end_psymtab): Likewise.
1194
1195 2010-03-10 Tom Tromey <tromey@redhat.com>
1196
1197 * xcoffread.c: Include psymtab.h.
1198 (xcoff_sym_fns): Update.
1199 * symtab.h (struct partial_symbol): Remove.
1200 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
1201 (struct partial_symtab): Remove.
1202 (PSYMTAB_TO_SYMTAB): Remove.
1203 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
1204 (find_pc_sect_psymtab): Remove.
1205 (find_pc_sect_symtab_via_partial): Declare.
1206 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
1207 (find_main_psymtab): Remove.
1208 (find_main_filename): Declare.
1209 (fixup_psymbol_section): Remove.
1210 (fixup_section): Declare.
1211 * symtab.c: Include psymtab.h.
1212 (lookup_symtab): Use lookup_symtab method.
1213 (lookup_partial_symtab): Remove.
1214 (find_pc_sect_psymtab_closer): Remove.
1215 (find_pc_sect_psymtab): Remove.
1216 (find_pc_sect_symtab_via_partial): New function.
1217 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
1218 (fixup_section): No longer static.
1219 (fixup_psymbol_section): Remove.
1220 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
1221 (lookup_global_symbol_from_objfile): Likewise.
1222 (lookup_symbol_aux_psymtabs): Remove.
1223 (lookup_symbol_aux_quick): New function.
1224 (lookup_symbol_global): Use lookup_symbol_aux_quick.
1225 (lookup_partial_symbol): Remove.
1226 (basic_lookup_transparent_type_quick): New function.
1227 (basic_lookup_transparent_type): Use it.
1228 (find_main_psymtab): Remove.
1229 (find_main_filename): New function.
1230 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
1231 (find_line_symtab): Use expand_symtabs_with_filename method.
1232 (output_partial_symbol_filename): New function.
1233 (sources_info): Use map_partial_symbol_filenames.
1234 (struct search_symbols_data): New type.
1235 (search_symbols_file_matches): New function.
1236 (search_symbols_name_matches): Likewise.
1237 (search_symbols): Use expand_symtabs_matching method.
1238 (struct add_name_data): Rename from add_macro_name_data.
1239 (add_macro_name): Update.
1240 (add_partial_symbol_name): New function.
1241 (default_make_symbol_completion_list): Use
1242 map_partial_symbol_names.
1243 (struct add_partial_symbol_name): New type.
1244 (maybe_add_partial_symtab_filename): New function.
1245 (make_source_files_completion_list): Use
1246 map_partial_symbol_filenames.
1247 (expand_line_sal): Use expand_symtabs_with_filename method.
1248 * symmisc.c: Include psymtab.h.
1249 (print_objfile_statistics): Use print_stats method.
1250 (dump_objfile): Use dump method.
1251 (dump_psymtab, maintenance_print_psymbols)
1252 (maintenance_info_psymtabs, maintenance_check_symtabs)
1253 (extend_psymbol_list): Remove.
1254 * symfile.h (struct quick_symbol_functions): New struct.
1255 (struct sym_fns) <qf>: New field.
1256 (sort_pst_symbols): Remove.
1257 (increment_reading_symtab): Declare.
1258 * symfile.c: Include psymtab.h.
1259 (compare_psymbols, sort_pst_symbols): Remove.
1260 (psymtab_to_symtab): Remove.
1261 (increment_reading_symtab): New function.
1262 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
1263 method.
1264 (set_initial_language): Use find_main_filename.
1265 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
1266 (free_named_symtabs): Remove unused code.
1267 (start_psymtab_common, add_psymbol_to_bcache)
1268 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
1269 Remove.
1270 * stack.c: Include psymtab.h, symfile.h.
1271 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
1272 * source.h (psymtab_to_fullname): Don't declare.
1273 * source.c: Include psymtab.h.
1274 (select_source_symtab): Use find_last_source_symtab method.
1275 (forget_cached_source_info): Use forget_cached_source_info
1276 method.
1277 (find_and_open_source): No longer static.
1278 (psymtab_to_fullname): Remove.
1279 * somread.c: Include psymtab.h.
1280 (som_sym_fns): Update.
1281 * psympriv.h: New file.
1282 * psymtab.h: New file.
1283 * psymtab.c: New file.
1284 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
1285 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
1286 * objfiles.c: Include psymtab.h.
1287 (objfile_relocate1): Use relocate method.
1288 (objfile_has_partial_symbols): Use has_symbols method.
1289 * mipsread.c: Include psymtab.h.
1290 (ecoff_sym_fns): Update.
1291 * mi/mi-cmd-file.c: Include psymtab.h.
1292 (print_partial_file_name): New function.
1293 (mi_cmd_file_list_exec_source_files): Use
1294 map_partial_symbol_filenames.
1295 * mdebugread.c: Include psympriv.h.
1296 * machoread.c: Include psympriv.h.
1297 (macho_sym_fns): Update.
1298 * m2-exp.y (yylex): Use lookup_symtab.
1299 * elfread.c: Include psympriv.h.
1300 (elf_sym_fns): Update.
1301 * dwarf2read.c: Include psympriv.h.
1302 * dbxread.c: Include psympriv.h.
1303 (aout_sym_fns): Update.
1304 * cp-support.c: Include psymtab.h.
1305 (read_in_psymtabs): Remove.
1306 (make_symbol_overload_list_qualified): Use
1307 expand_symtabs_for_function method.
1308 * coffread.c: Include psympriv.h.
1309 (coff_sym_fns): Update.
1310 * blockframe.c: Include psymtab.h.
1311 (find_pc_partial_function): Use find_pc_sect_symtab method.
1312 * ada-lang.h (ada_update_initial_language): Update.
1313 * ada-lang.c: Include psymtab.h.
1314 (ada_update_initial_language): Remove 'main_pst' argument.
1315 (ada_lookup_partial_symbol): Remove.
1316 (struct ada_psym_data): New type.
1317 (ada_add_psyms): New function.
1318 (ada_add_non_local_symbols): Use map_ada_symtabs method.
1319 (struct add_partial_datum): New type.
1320 (ada_add_partial_symbol_completions): New function.
1321 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
1322 (ada_exception_support_info_sniffer): Update.
1323 * Makefile.in (SFILES): Add psymtab.c.
1324 (COMMON_OBS): Add psymtab.o.
1325 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
1326
1327 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
1328
1329 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
1330
1331 2010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
1332
1333 PR C++/11236:
1334 * cp-namespace.c (cp_add_using): Deleted.
1335 (cp_add_using_directive): Use obstack allocations.
1336 Merged the function cp_add_using into this one.
1337 Added 'struct obstack *' argument.
1338 (cp_scan_for_anonymous_namespaces): Updated.
1339 * cp-support.h: Updated.
1340 * dwarf2read.c (read_import_statement): Updated.
1341 (read_namespace): Updated.
1342
1343 2010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
1344
1345 * windows-nat.c (cygwin_conv_path): Remove old macro.
1346
1347 2010-03-10 Pedro Alves <pedro@codesourcery.com>
1348
1349 * breakpoint.c (condition_command): Handle watchpoint conditions.
1350 (is_hardware_watchpoint): Add comment.
1351 (is_watchpoint): New.
1352 (update_watchpoint): Don't reparse the watchpoint's condition
1353 unless necessary.
1354 (WP_IGNORE): New.
1355 (watchpoint_check): Use it.
1356 (bpstat_check_watchpoint): Handle it.
1357 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
1358 conditions in a frame where it makes sense.
1359 (watch_command_1): Store the innermost block of the condition
1360 expression.
1361 (delete_breakpoint): Delete the watchpoint condition expression.
1362 * breakpoint.h (struct bp_location) <cond>: Update comment.
1363 (struct breakpoint): New field `cond_exp_valid_block'.
1364
1365 2010-03-09 Joel Brobecker <brobecker@adacore.com>
1366
1367 Adjust handling of Ada DIEs after dwarf2_physname patch.
1368 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
1369
1370 2010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
1371 Pierre Muller <muller@ics.u-strasbg.fr>
1372
1373 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
1374 from/to posix/win32.
1375 (windows_make_so): Use non-Cygwin 1.7 specific function.
1376 (windows_create_inferior): Make sure that cygallargs points to
1377 original args in non Cygwin 1.7. case.
1378
1379 2010-03-09 Michael Snyder <msnyder@vmware.com>
1380
1381 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
1382 after target_read_memory to get host byte order.
1383 (i386_process_record): Ditto.
1384
1385 2010-03-09 Keith Seitz <keiths@redhat.com>
1386
1387 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
1388 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
1389 print out const or volatile qualifiers, too.
1390 (c_type_print_args): Add parameters show_artificial and language.
1391 Skip artificial parameters when requested.
1392 Use the appropriate language printer.
1393 (c_type_print_varspec): Tell c_type_print_args to skip artificial
1394 parameters and pass language_c.
1395 * dwarf2read.c (die_list): New file global.
1396 (struct partial_die_info): Update comments for name field.
1397 (pdi_needs_namespace): Renamed to ...
1398 (die_needs_namespace): ... this. Rewrite.
1399 (dwarf2_linkage_name): Remove.
1400 (add_partial_symbol): Do not predicate the call to
1401 partial_die_full_name based on pdi_needs_namespace.
1402 Remove call to cp_check_possible_namespace_symbols and associated
1403 outdated comments.
1404 (guess_structure_name): Do not inspect child subprogram DIEs.
1405 (dwarf2_fullname): Update comments.
1406 Use die_needs_namespace to assist in computing the name.
1407 (read_func_scope): Use dwarf2_name to get the DIE's name.
1408 Use dwarf2_physname to get the "linkage name" of the DIE.
1409 (dwarf2_add_member_field): Use dwarf2_physname instead of
1410 dwarf2_linkage_name.
1411 (read_structure_type): For structs and classes, set TYPE_NAME, too.
1412 (determine_class): Remove.
1413 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
1414 except Ada.
1415 (new_symbol): Unconditionally call dwarf2_name.
1416 Compute the "linkage name" using dwarf2_physname.
1417 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
1418 When determining to scan for anonymous C++ namespaces, ignore
1419 the linkage name.
1420 (dwarf2_physname): New function.
1421 (dwarf2_full_name): Move content to new function and call
1422 that.
1423 (dwarf2_compute_name): "New" function.
1424 (_initialize_dwarf2_read): Initialize die_list.
1425 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
1426 physname.
1427 (gnu_v3_print_method_ptr): Use the physname for virtual methods
1428 without a demangled name.
1429 Print out type information for non-virtual methods.
1430 * linespec.c (decode_line_1): Force ANY string using "::" (or
1431 "." for java) to use decode_compound, and clean up any stray quoting.
1432 If we found a file symtab, re-evaluate whether the remainder is_quoted.
1433 (decode_compound): Stop consuming at an open parenthesis.
1434 Keep template parameters.
1435 Keep any overload information.
1436 Keep keywords like "const".
1437 Remove paren_pointer.
1438 Move is_quoted check from set_flags to here.
1439 Remove #if 0 code from 2000. Ten years is long enough.
1440 (find_method): Before comparing symbol names, canonicalize the string
1441 from the user.
1442 If a specific overload is requested, find it. Otherwise throw an error.
1443 (find_method_overload_end): New function.
1444 (set_flags): Remove.
1445 (decode_compound): Assume that parentheses are matched.
1446 It's a lot easier.
1447 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
1448 to cplus_demangle.
1449 * linespec.c (decode_line_1): Keep important keywords like
1450 "const" and "volatile".
1451 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
1452 * typeprint.h (c_type_print_args): Add declaration.
1453 * ui-file.c (do_ui_file_obsavestring): New function.
1454 (ui_file_obsavestring): New function.
1455 * ui-file.h (ui_file_obsavestring): Add declaration.
1456 * valops.c (find_overload_match): Resolve the object to
1457 a non-pointer type.
1458 If the object is a data member, search the object for the member
1459 and return with staticp set.
1460 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
1461 Do not attempt to extract a function name from non-function types.
1462 If the extracted function name and the original name are the same,
1463 we don't have a C++ method.
1464
1465 From Jan Kratochvil <jan.kratochvil@redhat.com>:
1466 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
1467
1468 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
1469 and arguments from symbol lookups.
1470 * ax-gdb.c (gen_expr): Likewise.
1471 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
1472 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
1473 lookup_possible_namespace_symbol): Likewise.
1474 * cp-support.c (read_in_psymtabs): Likewise.
1475 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
1476 * language.h (la_lookup_symbol_nonlocal): Likewise.
1477 * scm-valprint.c (scm_inferior_print): Likewise.
1478 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
1479 * solib-svr.c (elf_lookup_lib): Likewise.
1480 * solib.c (show_auto_solib_add): Likewise.
1481 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
1482 * symmisc.c (maintenance_check_symtabs): Likewise.
1483 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
1484 lookup_symbol_aux_local, lookup_symbol_aux_block,
1485 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
1486 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
1487 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
1488 basic_lookup_transparent_type, find_main_psymtab,
1489 lookup_block_symbol): Likewise.
1490 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
1491 lookup_symbol_global, lookup_symbol_aux_block,
1492 lookup_symbol_partial_symbol, lookup_block_symbol,
1493 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
1494
1495 2010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
1496
1497 * python/python-internal.h: Include symtab.h.
1498
1499 2010-03-09 Joel Brobecker <brobecker@adacore.com>
1500 Pierre Muller <muller@ics.u-strasbg.fr>
1501
1502 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
1503 * p-valprint.c (pascal_val_print): Remove undeed block and fix
1504 indentation.
1505
1506 2010-03-08 Tom Tromey <tromey@redhat.com>
1507
1508 * breakpoint.c (breakpoint_1): Add "QUIT".
1509
1510 2010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
1511 Pedro Alves <pedro@codesourcery.com>
1512
1513 * solib.c (solib_find): Replace extension if
1514 solib_symbols_extension is set in the target gdbarch.
1515 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
1516 solib_symbols_extension to "sym".
1517 * gdbarch.sh (solib_symbols_extension): New variable.
1518 (pstring): New function.
1519 * gdbarch.h, gdbarch.c: Regenerate.
1520
1521 2010-03-08 Tom Tromey <tromey@redhat.com>
1522
1523 PR cli/9591:
1524 * NEWS: Update.
1525 * utils.c: Include main.h.
1526 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
1527 (defaulted_query): Use default answer if `batch_flag'.
1528 * main.h (batch_flag): Declare.
1529 * main.c (batch_flag): New global.
1530 (captured_main): Remove 'batch'. Update.
1531
1532 2010-03-08 Kevin Buettner <kevinb@redhat.com>
1533
1534 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
1535 and Kevin Buettner:
1536
1537 * remote-mips.c (rockhopper_ops): New target_ops struct.
1538 (MON_ROCKHOPPER): New mips_monitor_type.
1539 (read_hex_value): New function.
1540 (mips_request): Send 8-byte values with a 'T' packet. Read the
1541 packet argument as a string and use read_hex_value to parse it.
1542 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
1543 (rockhopper_open): New function.
1544 (mips_wait): Read the PC, FP and SP fields as strings. Use
1545 read_hex_value to parse them and mips_set_register to commit them.
1546 (mips_set_register): New function.
1547 (mips_fetch_registers): Do not cast register value to "unsigned"
1548 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
1549 (mips_store_registers): Use a 'T' packet to set registers when
1550 using MON_ROCKHOPPER.
1551 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
1552 and expect the total to be printed before the entry address.
1553 (_initialize_remote_mips): Initialize and add rockhopper_ops.
1554
1555 2010-03-08 Kevin Buettner <kevinb@redhat.com>
1556
1557 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
1558 Change return value to int. Store value fetched in location
1559 addressed by `val'. Use function's return value as success
1560 or failure indicator. Adjust all callers.
1561
1562 2010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
1563
1564 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
1565
1566 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1567 Hui Zhu <teawater@gmail.com>
1568
1569 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
1570 tmp_to_stopped_data_address.
1571 (record_open): Reset tmp_to_stopped_by_watchpoint and
1572 tmp_to_stopped_data_address.
1573 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
1574 to_stopped_data_address.
1575
1576 2010-03-08 Hui Zhu <teawater@gmail.com>
1577
1578 * i386-tdep.c (i386_process_record): Initialize regnum.
1579
1580 2010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1581
1582 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
1583 Do not warn on ".gnu.liblist" and ".gnu.conflict".
1584
1585 2010-03-08 Joel Brobecker <brobecker@adacore.com>
1586
1587 Memory error when reading wrong core file.
1588 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
1589 errors while reading the inferior memory, and return zero if
1590 an exception was raised.
1591
1592 2010-03-07 Michael Snyder <msnyder@vmware.com>
1593
1594 * record.c (record_restore): Rename tmpu8 to rectype.
1595
1596 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
1597 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
1598
1599 (i386_record_push): Rename local tmpulongest to addr.
1600
1601 (i386_process_record): Rename local tmpulongest to addr.
1602
1603 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
1604 addr64.
1605
1606 Rename local variable tmpu8 to opcode8 and regnum.
1607
1608 2010-03-07 Joel Brobecker <brobecker@adacore.com>
1609
1610 * remote.c (remote_get_ada_task_ptid): New function.
1611 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
1612
1613 2010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
1614
1615 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
1616 block. Define helper macros to reduce ifdefs in code.
1617 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
1618 size. Call unadorned GetModuleFileNameEx rather than
1619 GetModuleFileNameEx*.
1620 (windows_make_so): Use __PMAX to denote maximum buffer size and
1621 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
1622 appropriate.
1623 (get_image_name): Use __PMAX to denote maximum buffer size.
1624 (handle_load_dll): Likewise.
1625 (windows_pid_to_exec_file): Likewise.
1626 (windows_create_inferior): Add many accommodations for older Cygwin and
1627 non-Cygwin.
1628 (bad_GetModuleFileNameExW): Control inclusion of this function based on
1629 __USEWIDE conditional.
1630 (bad_GetModuleFileNameExA): Likewise.
1631 (_initialize_loadable): Just use real function names without the dyn_
1632 part since they are defined earlier.
1633
1634 2010-03-05 Corinna Vinschen <vinschen@redhat.com>
1635 Tom Tromey <tromey@redhat.com>
1636
1637 * utils.c (host_char_to_target): Add 'gdbarch' argument.
1638 (parse_escape): Likewise.
1639 * python/py-utils.c (unicode_to_target_string): Update.
1640 (unicode_to_target_python_string): Update.
1641 (target_string_to_unicode): Update.
1642 * printcmd.c (printf_command): Update.
1643 * p-exp.y (yylex): Update.
1644 * objc-exp.y (yylex): Update.
1645 * mi/mi-parse.c: Include charset.h.
1646 (mi_parse_escape): New function.
1647 (mi_parse_argv): Use it.
1648 * jv-exp.y (yylex): Update.
1649 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
1650 function.
1651 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
1652 * gdbarch.sh (auto_charset, auto_wide_charset): New.
1653 * gdbarch.c: Rebuild.
1654 * gdbarch.h: Rebuild.
1655 * defs.h (parse_escape): Update.
1656 * cli/cli-setshow.c: Include arch-utils.h.
1657 (do_setshow_command): Update.
1658 * cli/cli-cmds.c (echo_command): Update.
1659 * charset.h (target_charset, target_wide_charset): Update.
1660 * charset.c: Include arch-utils.h.
1661 (target_charset_name): Default to "auto".
1662 (target_wide_charset_name): Likewise.
1663 (show_target_charset_name): Handle "auto".
1664 (show_target_wide_charset_name): Likewise.
1665 (be_le_arch): New global.
1666 (set_be_le_names): Add 'gdbarch' argument.
1667 (validate): Likewise. Don't call set_be_le_names.
1668 (set_charset_sfunc, set_host_charset_sfunc)
1669 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
1670 Update.
1671 (target_charset): Add 'gdbarch' argument.
1672 (target_wide_charset): Likewise. Remove 'byte_order' argument.
1673 (auto_target_charset_name): New global.
1674 (default_auto_charset, default_auto_wide_charset): New functions.
1675 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
1676 for target charsets. Copy result of nl_langinfo. Use GetACP if
1677 USE_WIN32API.
1678 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
1679 remove 'byte_order' argument. Update.
1680 (classify_type): Likewise.
1681 (c_emit_char): Update.
1682 (c_printchar): Update.
1683 (c_printstr): Update.
1684 (c_get_string): Update.
1685 (evaluate_subexp_c): Update.
1686 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
1687 Declare.
1688 * python/python.c (gdbpy_target_charset): New function.
1689 (gdbpy_target_wide_charset): Likewise.
1690 (GdbMethods): Update.
1691 * NEWS: Update.
1692
1693 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
1694
1695 * symfile.c (build_section_addr_info_from_objfile): Do not mask
1696 off high address bits.
1697
1698 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
1699
1700 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
1701 address as UnsignedLongLong, not LongLong.
1702
1703 2010-03-05 Kevin Buettner <kevinb@redhat.com>
1704 Pedro Alves <pedro@codesourcery.com>
1705
1706 * remote-mips.c (gdbthread.h): Include.
1707 (remote_mips_ptid): Declare.
1708 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
1709 (common_open): Set inferior_ptid, add it as an inferior, and
1710 as a thread too. Delete FIXME comment regarding start_remote().
1711 (mips_close): Invoke generic_mourn_inferior().
1712 (mips_kill): Make sure that target_mourn_inferior is invoked.
1713 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
1714 it's now invoked from mips_close().
1715 (mips_load): Don't null out inferior_ptid. Don't call
1716 clear_symtab_users().
1717 (mips_thread_alive, mips_pid_to_str): New functions.
1718 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
1719 to_thread_alive and to_pid_to_str operations.
1720
1721 2010-03-04 Tom Tromey <tromey@redhat.com>
1722
1723 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
1724 in DWARF 3 and later.
1725 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
1726
1727 2010-03-04 Keith Seitz <keiths@redhat.com>
1728
1729 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
1730 If the filename portion of the linespec was quoted, recheck the
1731 remainder for additional quoting.
1732 (locate_first_half): Skip over completer chars, too.
1733
1734 2010-03-04 Tom Tromey <tromey@redhat.com>
1735
1736 * printcmd.c (printf_command): Pass dummy argument to
1737 printf_filtered.
1738
1739 2010-03-04 Doug Evans <dje@google.com>
1740
1741 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
1742 unwound_fp.
1743
1744 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
1745
1746 2010-03-04 Pedro Alves <pedro@codesourcery.com>
1747
1748 * breakpoint.c (update_watchpoint): Create a sentinel location if
1749 the software watchpoint isn't watching any memory.
1750 (breakpoint_address_bits): Skip dummy software watchpoint locations.
1751
1752 2010-03-04 Pedro Alves <pedro@codesourcery.com>
1753
1754 * utils.c (fputs_maybe_filtered): Check if there's already a top
1755 level interpreter before dereferencing it. If there isn't one,
1756 don't paginate either.
1757
1758 2010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1759
1760 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
1761 the state right when single stepping.
1762 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
1763 Get the next PC along with the instruction state.
1764 (thumb_get_next_pc): Remove.
1765 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
1766
1767 2010-03-04 Hui Zhu <teawater@gmail.com>
1768
1769 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
1770
1771 2010-03-03 Pedro Alves <pedro@codesourcery.com>
1772
1773 * utils.c (fputs_maybe_filtered): Always disable pagination if the
1774 top level interpreter is MI.
1775
1776 2010-03-03 Stan Shebs <stan@codesourcery.com>
1777
1778 * remote.c (remote_download_tracepoint): Iterate over locations.
1779 * tracepoint.c (validate_actionline): Ditto.
1780 (encode_actions): Add location argument.
1781 (trace_dump_command): Check all locations to see if stepping
1782 frame.
1783
1784 2010-03-03 H.J. Lu <hongjiu.lu@intel.com>
1785 Eli Zaretskii <eliz@gnu.org>
1786
1787 * NEWS: Add X86 general purpose registers section.
1788
1789 2010-03-03 Tom Tromey <tromey@redhat.com>
1790
1791 PR mi/11098:
1792 * varobj.c (install_new_value): Handle case where new print_value
1793 is NULL.
1794
1795 2010-03-03 Dainis Jonitis <jonitis@gmail.com>
1796
1797 PR gdb/11345:
1798 * printcmd.c (printf_command): Print end of format string using
1799 printf_filtered.
1800
1801 2010-03-02 Tom Tromey <tromey@redhat.com>
1802
1803 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
1804 * defs.h (read_command_lines_1): Add missing 'void'.
1805 * cli/cli-script.c (recurse_read_control_structure): Add missing
1806 'void'.
1807 (read_next_line): Likewise.
1808 (read_command_lines_1): Likewise.
1809
1810 2010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
1811
1812 * spu-tdep.c (spu_analyze_prologue): Track instruction to
1813 store backchain as part of prologue.
1814
1815 2010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
1816
1817 * progspace.c (update_address_spaces): Update inferior address spaces
1818 also.
1819
1820 2010-03-02 Doug Evans <dje@google.com>
1821
1822 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
1823 lowpc,highpc args to addrmap_set_empty.
1824
1825 2010-03-02 H.J. Lu <hongjiu.lu@intel.com>
1826
1827 * amd64-tdep.c (amd64_byte_names): New.
1828 (amd64_word_names): Likewise.
1829 (amd64_dword_names): Likewise.
1830 (amd64_pseudo_register_name): Likewise.
1831 (amd64_pseudo_register_read): Likewise.
1832 (amd64_pseudo_register_write): Likewise.
1833 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
1834 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
1835 set_gdbarch_pseudo_register_write and
1836 set_tdesc_pseudo_register_name. Don't call
1837 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
1838
1839 * i386-tdep.c (i386_num_mmx_regs): Removed.
1840 (i386_num_pseudo_regs): Likewise.
1841 (i386_byte_names): New.
1842 (i386_word_names): Likewise.
1843 (i386_byte_regnum_p): Likewise.
1844 (i386_word_regnum_p): Likewise.
1845 (i386_mmx_regnum_p): Updated.
1846 (i386_pseudo_register_name): Make it global. Handle byte and
1847 word pseudo-registers.
1848 (i386_pseudo_register_read): Likewise.
1849 (i386_pseudo_register_write): Likewise.
1850 (i386_pseudo_register_type): Handle byte, word and dword
1851 pseudo-registers
1852 (i386_register_reggroup_p): Don't include pseudo
1853 registers, except for MXX, in any register groups. Don't
1854 include pseudo byte, word, dword registers in general_reggroup.
1855 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
1856 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
1857 pseudo-registers after word pseudo-registers. Call
1858 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
1859
1860 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
1861 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
1862 eax_regnum.
1863 (i386_byte_regnum_p): New.
1864 (i386_word_regnum_p): Likewise.
1865 (i386_dword_regnum_p): Likewise.
1866 (i386_pseudo_register_name): Likewise.
1867 (i386_pseudo_register_read): Likewise.
1868 (i386_pseudo_register_write): Likewise.
1869
1870 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
1871
1872 * target-descriptions.c (tdesc_type): Remove
1873 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
1874 (tdesc_predefined_types): Likewise.
1875 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
1876 if flag name is empty.
1877 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
1878
1879 * features/i386/32bit-core.xml: Define i386_eflags.
1880 * features/i386/64bit-core.xml: Likewise.
1881
1882 * features/i386/32bit-sse.xml: Define i386_mxcsr.
1883 * features/i386/64bit-sse.xml: Likewise.
1884
1885 * features/i386/amd64-linux.c: Regenerated.
1886 * features/i386/amd64.c: Likewise.
1887 * features/i386/i386-linux.c: Likewise.
1888 * features/i386/i386.c: Likewise.
1889
1890 2010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
1891
1892 * gdbtypes.c (append_composite_type_field_raw): New.
1893 (append_composite_type_field_aligned): Use the new function.
1894 * gdbtypes.h (append_composite_type_field_raw): Declare.
1895 * target-descriptions.c (struct tdesc_type_field): Add start and end.
1896 (struct tdesc_type_flag): New type.
1897 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
1898 kind. Add size to u.u. Add u.f for flags.
1899 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
1900 (tdesc_free_type): Likewise.
1901 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
1902 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
1903 (tdesc_add_bitfield, tdesc_add_flag): New.
1904 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
1905 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
1906 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
1907 current_type. Add current_type_size and current_type_is_flags.
1908 (tdesc_start_union): Clear the new fields.
1909 (tdesc_start_struct, tdesc_start_flags): New.
1910 (tdesc_start_field): Handle struct fields, including bitfields.
1911 (field_attributes): Make type optional. Add start and end.
1912 (union_children): Rename to struct_union_children.
1913 (union_attributes): Rename to struct_union_attributes. Add optional
1914 size.
1915 (flags_attributes): New.
1916 (feature_children): Add struct and flags.
1917 * features/gdb-target.dtd: Add flags and struct to features.
1918 Make field type optional. Add field start and end.
1919
1920 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
1921
1922 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
1923 (amd64_linux_read_description): Likewise.
1924 (_initialize_amd64_linux_nat): Set to_read_description to
1925 amd64_linux_read_description.
1926
1927 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
1928 (amd64_linux_register_name): Removed.
1929 (amd64_linux_register_type): Likewise.
1930 (amd64_linux_core_read_description): New.
1931 (amd64_linux_init_abi): Set target description to
1932 tdesc_amd64_linux if needed. Support orig_rax in target
1933 description. Don't call set_gdbarch_register_name nor
1934 set_gdbarch_register_type. Call
1935 set_gdbarch_core_read_description.
1936 (_initialize_amd64_linux_tdep): Call
1937 initialize_tdesc_amd64_linux.
1938
1939 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
1940
1941 * amd64-tdep.c: Include "features/i386/amd64.c".
1942 (amd64_register_names): Removed.
1943 (amd64_register_name): Likewise.
1944 (amd64_register_type): Likewise.
1945 (amd64_init_abi): Set num_core_regs and register_names. Set
1946 target description to tdesc_amd64 if needed. Don't call
1947 set_gdbarch_register_name nor set_gdbarch_register_type.
1948 (_initialize_amd64_tdep): New.
1949
1950 * i386-linux-nat.c (i386_linux_read_description): New.
1951 (_initialize_i386_linux_nat): Set to_read_description to
1952 i386_linux_read_description.
1953
1954 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
1955 (i386_linux_register_name): Removed.
1956 (i386_linux_core_read_description): New.
1957 (i386_linux_read_description): Likewise.
1958 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
1959 Set target description to tdesc_i386_linux if needed. Support
1960 orig_eax. Set register_reggroup_p. Call
1961 set_gdbarch_core_read_description.
1962 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
1963
1964 * i386-linux-tdep.h (tdesc_i386_linux): New.
1965
1966 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
1967 with I387_NUM_REGS.
1968
1969 * i386-tdep.c: Include "features/i386/i386.c".
1970 (i386_register_names): Make it const.
1971 (i386_mmx_names): Likewise.
1972 (i386_num_register_names): Removed.
1973 (i386_register_name): Likewise.
1974 (i386_eflags_type): Likewise.
1975 (i386_mxcsr_type): Likewise.
1976 (i386_sse_type): Likewise.
1977 (i386_register_type): Likewise.
1978 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
1979 (i386_pseudo_register_name): New.
1980 (i386_pseudo_register_type): Likewise.
1981 (i386_mmx_type): Make it static.
1982 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
1983 I387_NUM_REGS. Set num_core_regs and register_names. Don't
1984 call set_gdbarch_register_name nor set_gdbarch_register_type.
1985 Set register_reggroup_p. Set target description to tdesc_i386
1986 if needed. Call set_tdesc_pseudo_register_type,
1987 set_tdesc_pseudo_register_name and tdesc_use_registers.
1988 (_initialize_i386_tdep): Call initialize_tdesc_i386.
1989 initialize_tdesc_x86_64.
1990
1991 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
1992 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
1993 register_names, tdesc and register_reggroup_p.
1994 (I386_NUM_FREGS): Removed.
1995 (i386_eflags_type): Likewise.
1996 (i386_mxcsr_type): Likewise.
1997 (i386_mmx_type): Likewise.
1998 (i386_sse_type): Likewise.
1999 (i386_register_name): Likewise.
2000 (i386_regnum): Add I386_MXCSR_REGNUM.
2001 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
2002
2003 * i387-tdep.h (I387_NUM_REGS): New.
2004
2005 * regformats/i386/i386-linux.dat: Generated.
2006 * regformats/i386/i386.dat: Likewise.
2007 * regformats/i386/amd64-linux.dat: Likewise.
2008 * regformats/i386/amd64.dat: Likewise.
2009
2010 * regformats/reg-i386-linux.dat: Removed.
2011 * regformats/reg-i386.dat: Likewise.
2012 * regformats/reg-x86-64-linux.dat: Likewise.
2013 * regformats/reg-x86-64.dat: Likewise.
2014
2015 2010-03-01 Corinna Vinschen <vinschen@redhat.com>
2016
2017 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
2018 cygwin_conv_path API rather than the deprecated
2019 cygwin_conv_to_full_posix_path.
2020 * windows-nat.c:
2021 (GetModuleFileNameExA): Undefine for Cygwin.
2022 (GetModuleFileNameExW): Define for Cygwin.
2023 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
2024 Call GetModuleFileNameExW and convert path to POSIX using
2025 cygwin_conv_path.
2026 (windows_make_so): Always define p. Drop unused variable m.
2027 Don't use Win32 functions to check file existance, rather use
2028 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
2029 Use canonicalize_file_name to get full path.
2030 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
2031 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
2032 use correct target buffer size in call to WideCharToMultiByte.
2033 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
2034 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
2035 (windows_create_inferior): Convert all paths and arguments to wchar_t
2036 and use CreateProcessW on Cygwin.
2037 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
2038 (bad_GetModuleFileNameExA): Undefine for Cygwin.
2039 (bad_GetModuleFileNameExW): Define for Cygwin.
2040 (_initialize_loadable): Load GetModuleFileNameExW into
2041 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
2042
2043 2010-02-28 Phil Muldoon <pmuldoon@redhat.com>
2044
2045 PR python/11036
2046 * python/py-frame.c (frapy_read_var): Add block argument and logic
2047 to cope with user provided blocks.
2048
2049 2010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2050
2051 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
2052 New comment.
2053
2054 2010-02-28 Corinna Vinschen <vinschen@redhat.com>
2055
2056 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
2057 (COMMON_OBS): ... to here since it's used unconditionally.
2058 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
2059 (SFILES): To here.
2060
2061 2010-02-26 David Daney <ddaney@caviumnetworks.com>
2062
2063 * mips-linux-tdep.c: Update struct sigframe comments.
2064 (SIGFRAME_CODE_OFFSET): Delete macro.
2065 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
2066 this_frame's sp.
2067 (mips_linux_n32n64_sigframe_init): Same.
2068
2069 2010-02-26 Kevin Buettner <kevinb@redhat.com>
2070
2071 * remote-mips.c (mips_load): Don't use pseudo-register when
2072 invalidating regcache.
2073
2074 2010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2075
2076 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
2077
2078 2010-02-26 Pedro Alves <pedro@codesourcery.com>
2079
2080 * NEWS: Add "New targets" section, and mention ARM Symbian
2081 support.
2082
2083 2010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
2084
2085 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
2086 add ADDR_SIZE member.
2087 (allocate_piece_closure): Update.
2088 (copy_pieced_value_closure): Likewise.
2089 (dwarf2_evaluate_loc_desc): Likewise.
2090 (read_pieced_value): Use DWARF address size instead of
2091 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
2092
2093 2010-02-26 Phil Muldoon <pmuldoon@redhat.com>
2094 Tom Tromey <tromey@redhat.com>
2095
2096 * python/py-type.c (typy_lookup_typename): Add in block argument.
2097 If provided restrict lookup to specified blocks.
2098 (gdbpy_lookup_type): Likewise.
2099 (typy_lookup_type): Likewise.
2100
2101 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
2102
2103 Symbian config
2104
2105 gdb/
2106 * arm-symbian-tdep.c: New.
2107 * configure.tgt (arm*-*-symbianelf*): New target.
2108 (*-*-symbianelf*): New OS.
2109 * osabi.c (gdb_osabi_names): Add Symbian.
2110 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
2111 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
2112 (ALLDEPFILES): Add arm-symbian-tdep.c.
2113
2114 2010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
2115
2116 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
2117
2118 2010-02-24 Pedro Alves <pedro@codesourcery.com>
2119
2120 * mi/mi-main.c (mi_cmd_execute): Fix typo.
2121
2122 2010-02-24 Phil Muldoon <pmuldoon@redhat.com>
2123 Tom Tromey <tromey@redhat.com>
2124 Thiago Jung Bauermann <bauerman@br.ibm.com>
2125
2126 * python/python.c (_initialize_python): Call
2127 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
2128 gdbpy_initialize_blocks.
2129 * python/python-internal.h: Declare struct symbol, block and
2130 symtab_and_line. Declare block_object_type and
2131 symbol_object_type
2132 (gdbpy_lookup_symbol gdbpy_block_for_pc)
2133 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
2134 (symbol_to_symbol_object, block_to_block_object)
2135 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
2136 (gdbpy_initialize_blocks ): Declare.
2137 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
2138 (frapy_select): Add methods.
2139 (frapy_read_var): Add symbol branch.
2140 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
2141 py-block.
2142 (SUBDIR_PYTHON_SRCS): Likewise.
2143 (py-symbol.o): New rule.
2144 (py-symtab.o): Likewise.
2145 (py-block.o): Likewise.
2146 * python/py-symbol.c: New file.
2147 * python/py-symtab.c: Likewise.
2148 * python/py-block.c: Likewise.
2149
2150 2010-02-24 Pedro Alves <pedro@codesourcery.com>
2151
2152 PR gdb/11321
2153
2154 * inferior.h (prepare_for_detach): Declare.
2155 (struct inferior) <detaching>: New field.
2156 * infrun.c (prepare_for_detach): New.
2157 (handle_inferior_event) <random signal>: Don't stop if detaching.
2158 * target.c (target_detach): Call prepare_for_detach.
2159
2160 2010-02-24 Pedro Alves <pedro@codesourcery.com>
2161
2162 Per-process displaced stepping queue.
2163
2164 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
2165 (displaced_step_gdbarch, displaced_step_closure,
2166 (displaced_step_original, displaced_step_copy): Move globals to
2167 this...
2168 (struct displaced_step_inferior_state): ... new structure.
2169 (displaced_step_inferior_states): New global.
2170 (get_displaced_stepping_state, add_displaced_stepping_state)
2171 (remove_displaced_stepping_state, infrun_inferior_exit): New
2172 functions.
2173 (displaced_step_clear): Add displaced_step_inferior_state
2174 parameter, and adjust to handle it.
2175 (displaced_step_clear_cleanup): Parameter is now a
2176 displaced_step_inferior_state. Adjust.
2177 (displaced_step_prepare): Adjust.
2178 (displaced_step_fixup, displaced_step_fixup)
2179 (infrun_thread_ptid_changed, resume): Adjust.
2180 (init_wait_for_inferior): Don't call displaced_step_clear.
2181 (infrun_thread_stop_requested): Rewrite.
2182 (_initialize_infrun): Install infrun_inferior_exit as
2183 inferior_exit observer.
2184
2185 2010-02-24 Pedro Alves <pedro@codesourcery.com>
2186
2187 * inferior.h (ptid_match): Declare.
2188 * infrun.c (ptid_match): New.
2189 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
2190 (handle_notification): Add debug output.
2191 * linux-nat.c (ptid_match): Delete.
2192
2193 2010-02-24 David S. Miller <davem@davemloft.net>
2194
2195 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
2196 * syscalls/sparc-linux.xml: New.
2197 * syscalls/sparc64-linux.xml: New.
2198 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
2199 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
2200 (sparc32_linux_get_syscall_number): New function.
2201 (sparc32_linux_init_abi): Set syscall XML file name and hook up
2202 syscall number fetcher.
2203 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
2204 (sparc64_linux_get_syscall_number): New function.
2205 (sparc64_linux_init_abi): Set syscall XML file name and hook up
2206 syscall number fetcher.
2207
2208 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
2209
2210 Multiexec MI
2211
2212 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
2213 * inferior.c (add_inferior_silent): Notify inferior_added
2214 observer.
2215 (delete_inferior_1): Notify inferior_removed observer.
2216 (exit_inferior_1): Pass inferior, not pid, to observer.
2217 (inferior_appeared): Likewise.
2218 (add_inferior_with_spaces): New.
2219 (add_inferior_command): Use the above.
2220 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
2221 Declare.
2222
2223 * inflow.c (inflow_inferior_exit): Likewise.
2224 * jit.c (jit_inferior_exit_hook): Likewise.
2225
2226 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
2227 remove-inferior.
2228 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
2229 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
2230 (report_initial_inferior): New.
2231 (mi_inferior_removed): Register the above. Make sure
2232 inferior_added observer is called on the first inferior.
2233 (mi_new_thread, mi_thread_exit): Thread group is now identified by
2234 inferior number, not pid.
2235 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
2236 affected.
2237 * mi/mi-main.c (current_context): New.
2238 (proceed_thread_callback): Use typed closure.
2239 Proceed everything if pid is 0. Most implementation split into
2240 (proceed_thread): ... this.
2241 (run_one_inferior): New.
2242 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
2243 Adjust for multiexec behaviour.
2244 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
2245 (mi_cmd_execute): Handle the 'thread-group' option here.
2246 Do some extra checks.
2247 * mi-parse.c (mi_parse): Handle the --all and --thread-group
2248 options.
2249 * mi-parse.h (struct mi_parse): New fields all and thread_group.
2250
2251 2010-02-24 Vladimir Prus <vladimir@codesourcery.com>
2252
2253 Make -exec-run a proper MI commands.
2254
2255 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
2256 * mi/mi-cmds.c (mi_cmds): Adjust.
2257 * mi/mi-main.c (mi_cmd_exec_run): New.
2258
2259 2010-02-24 Pedro Alves <pedro@codesourcery.com>
2260 Stan Shebs <stan@codesourcery.com>
2261
2262 * tracepoint.h (set_traceframe_number)
2263 (cleanup_restore_current_traceframe): Declare.
2264 * tracepoint.c (set_traceframe_number): New.
2265 (struct current_traceframe_cleanup): New.
2266 (do_restore_current_traceframe_cleanup)
2267 (restore_current_traceframe_cleanup_dtor)
2268 (make_cleanup_restore_current_traceframe): New.
2269 * infrun.c: Include tracepoint.h.
2270 (fetch_inferior_event): Switch out and in of tfind mode.
2271
2272 2010-02-24 Pedro Alves <pedro@codesourcery.com>
2273
2274 * breakpoint.c (breakpoint_init_inferior): Also delete
2275 bp_shlib_event breakpoints.
2276 * solib-frv.c (enable_break): Remove call to
2277 remove_solib_event_breakpoints.
2278 * solib-svr4.c (enable_break): Ditto.
2279 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
2280 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
2281 * solib-som.c (som_solib_create_inferior_hook): Ditto.
2282 * solib-spu.c (spu_enable_break): Ditto.
2283
2284 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
2285
2286 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
2287
2288 2010-02-23 Harald Koenig <H.Koenig@science-computing.de>
2289
2290 * varobj.c (varobj_update): Avoid non-constants in initializers.
2291
2292 2010-02-23 Tom Tromey <tromey@redhat.com>
2293
2294 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
2295 handle big-endian values.
2296 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
2297
2298 2010-02-22 Pedro Alves <pedro@codesourcery.com>
2299
2300 PR9605
2301
2302 gdb/
2303 * breakpoint.c (insert_bp_location): If inserting the read
2304 watchpoint failed, fallback to an access watchpoint.
2305 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
2306 if the value changed, if not watching the same memory for writes.
2307 (watchpoint_locations_match): Add comment.
2308 (update_global_location_list): Copy the location's watchpoint type.
2309 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
2310 handle read watchpoints here.
2311 (i386_insert_watchpoint): Read watchpoints aren't supported.
2312 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
2313 packets.
2314 * target.h (target_insert_watchpoint): Update description.
2315
2316 2010-02-19 Tom Tromey <tromey@redhat.com>
2317
2318 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
2319 * m2-typeprint.c (m2_print_type): Update.
2320 * gdbtypes.c (recursive_dump_type): Update.
2321 (copy_type_recursive): Update.
2322 * c-typeprint.c (c_type_print_varspec_prefix): Update.
2323 (c_type_print_base): Update.
2324 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
2325 Remove.
2326 (struct cplus_struct_type) <ntemplate_args>: Remove.
2327 <struct template_arg>: Remove.
2328 <is_dynamic>: Move earlier.
2329 (TYPE_TEMPLATE_ARGS): Remove.
2330 (TYPE_NTEMPLATE_ARGS): Remove.
2331 (TYPE_TEMPLATE_ARG): Remove.
2332
2333 2010-02-19 Tom Tromey <tromey@redhat.com>
2334
2335 PR c++/8693, PR c++/9496:
2336 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
2337 * c-exp.y (lex_one_token): Rename from yylex. Don't call
2338 write_dollar_variable. Don't try to classify NAME tokens.
2339 (token_and_value): New type.
2340 (token_fifo, popping, name_obstack): New globals.
2341 (classify_name): New function.
2342 (classify_inner_name): Likewise.
2343 (yylex): Likewise.
2344 (VARIABLE): Now has type sval.
2345 (exp : VARIABLE): Call write_dollar_variable.
2346 (qualified_name): Use TYPENAME, not typebase. Add production for
2347 multiple "::" instances.
2348 (variable): Use name_not_typename.
2349 (qualified_type): Remove.
2350 (typebase): Update.
2351
2352 2010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2353
2354 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
2355 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
2356 found by bfd_get_section_by_name.
2357 * symfile.h (struct section_addr_info) <sectindex>: New comment.
2358
2359 2010-02-19 Joel Brobecker <brobecker@adacore.com>
2360
2361 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
2362 7.0 section" into "Changes in 7.1".
2363
2364 2010-02-19 Joel Brobecker <brobecker@adacore.com>
2365
2366 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
2367 * version.in: Bump version to 7.1.50.20100219-cvs.
2368
2369 2010-02-18 Harald Koenig <H.Koenig@science-computing.de>
2370
2371 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
2372 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
2373
2374 2010-02-17 Tom Tromey <tromey@redhat.com>
2375
2376 * NEWS: Add Python API Improvements section.
2377
2378 2010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
2379
2380 * NEWS: Correct typo.
2381
2382 2010-02-17 Tom Tromey <tromey@redhat.com>
2383
2384 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
2385
2386 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2387
2388 * symfile.c (build_section_addr_info_from_objfile): Include sections
2389 only if they are SEC_ALLOC or SEC_LOAD.
2390
2391 2010-02-17 H.J. Lu <hongjiu.lu@intel.com>
2392
2393 PR shlibs/11293
2394 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
2395 of ULONGEST for address size.
2396
2397 2010-02-17 Tom Tromey <tromey@redhat.com>
2398
2399 * NEWS: Add C++ improvements section.
2400
2401 2010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
2402
2403 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
2404 PyThreadState_Swap): Avoid "statement with no effect" warning.
2405
2406 2010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2407
2408 * solib-svr4.c (enable_break <target_auxv_search>): New variable
2409 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
2410
2411 2010-02-17 Tristan Gingold <gingold@adacore.com>
2412 Petr Hluzín <petr.hluzin@gmail.com>
2413
2414 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
2415 gdb_assert. Fix info->size for SIG prologue.
2416
2417 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
2418
2419 * infcmd.c (show_inferior_tty_command): Check for NULL.
2420 Correct output message.
2421
2422 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
2423
2424 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
2425 FUNCTION contains parentheses. Improve removal of a trailing
2426 single quote.
2427
2428 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
2429
2430 * gcore.c (do_bfd_delete_cleanup): New function.
2431 (gcore_command): Use it. Discard the cleanup after success.
2432 (gcore_copy_callback): Delete dead code.
2433
2434 2010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
2435
2436 * symfile.c (addr_info_make_relative): Always use
2437 find_lowest_section.
2438
2439 2010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
2440
2441 * NEWS: Added entry for namespace fixes.
2442
2443 2010-02-15 Tom Tromey <tromey@redhat.com>
2444
2445 * dwarf2read.c (guess_structure_name): Allocate name on the
2446 objfile obstack.
2447
2448 2010-02-15 Tom Tromey <tromey@redhat.com>
2449
2450 * c-typeprint.c (c_type_print_base): Reverse order of test.
2451
2452 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2453
2454 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
2455 initialize it from ELF BFD. Extend the prelink condition by it.
2456
2457 2010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2458
2459 * defs.h (parse_pid_to_attach): New.
2460 * utils.c (parse_pid_to_attach): New.
2461 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
2462 * gnu-nat.c (gnu_attach): Likewise.
2463 * nto-procfs.c (procfs_attach): Likewise.
2464 * procfs.c (procfs_attach): Likewise.
2465 * windows-nat.c (windows_attach): Likewise.
2466 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
2467 * inf-ttrace.c (inf_ttrace_attach): Likewise.
2468 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
2469 check.
2470
2471 2010-02-14 Masaki Muranaka <monaka@monami-software.com>
2472
2473 * MAINTAINERS: Add myself for write after approval privileges.
2474
2475 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2476
2477 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
2478 block.
2479
2480 2010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2481
2482 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
2483 only if INFO_VERBOSE.
2484
2485 2010-02-12 Tomas Holmberg <th@virtutech.com>
2486
2487 * mi/mi-main.c: Added the --reverse flag to the following MI
2488 commands: exec-continue, exec-finish, exec-next, exec-step,
2489 exec-next-instruction, exec-step-instruction. This is to
2490 support reverse execution over the MI interface to gdb.
2491
2492 2010-02-12 Pedro Alves <pedro@codesourcery.com>
2493
2494 * tracepoint.c (_initialize_tracepoint): Specify that the address
2495 range of `tfind outsize' is exclusive, and that the address range
2496 of `tfind range' is inclusive, in the commands' help strings.
2497
2498 2010-02-12 Joel Brobecker <brobecker@adacore.com>
2499
2500 Spurious "dll not found" error messages on x64-windows.
2501 * windows-nat.c: Add include of complaints.h.
2502 (handle_unload_dll): Change dll-not-found error into a complaint.
2503
2504 2010-02-12 Pedro Alves <pedro@codesourcery.com>
2505
2506 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
2507 bp_tracepoint and bp_fast_tracepoint, not
2508 bp_loc_software_breakpoint.
2509 (update_global_location_list): Tracepoints are never duplicates of
2510 anything.
2511
2512 2010-02-12 Pedro Alves <pedro@codesourcery.com>
2513
2514 * breakpoint.c (break_command_really): Change return type to int.
2515 Return false if no breakpoint was created, true otherwise.
2516 (trace_command): Don't set the tracepoint count if no tracepoint
2517 was created.
2518 (ftrace_command): Ditto.
2519 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
2520 created in the breakpoints table.
2521
2522 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2523 Ulrich Weigand <uweigand@de.ibm.com>
2524
2525 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
2526
2527 2010-02-11 Pedro Alves <pedro@codesourcery.com>
2528
2529 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
2530 the offset value isn't of integral type.
2531
2532 2010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2533
2534 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
2535 New.
2536
2537 2010-02-11 Pedro Alves <pedro@codesourcery.com>
2538
2539 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
2540 non-subscriptable types.
2541 * valarith.c (binop_types_user_defined_p): New, abstracted out
2542 from ...
2543 (binop_user_defined_p): ... this.
2544 * value.h (binop_types_user_defined_p): Declare.
2545
2546 2010-02-11 Pedro Alves <pedro@codesourcery.com>
2547
2548 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
2549 Merge uploaded TSVs before merging uploaded tracepoints.
2550
2551 2010-02-11 Pedro Alves <pedro@codesourcery.com>
2552
2553 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
2554
2555 2010-02-11 Vladimir Prus <vladimir@codesourcery.com>
2556
2557 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
2558 whitespace character after a dot in comment.
2559 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
2560 Likewise.
2561 (list_args_or_locals): For the 'all' (that is
2562 -stack-list-variables) case, always output list of tuples.
2563 Output 'arg' field if variable is argument.
2564
2565 2010-02-10 Tom Tromey <tromey@redhat.com>
2566
2567 * parser-defs.h (parser_debug): Declare.
2568 * parse.c (_initialize_parse): Install "debug parser" set/show
2569 command.
2570 (parser_debug): New global.
2571 (show_parserdebug): New function.
2572 * c-exp.y (c_parse): Set yydebug.
2573
2574 2010-02-10 H.J. Lu <hongjiu.lu@intel.com>
2575
2576 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
2577 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2578 (tdesc_predefined_types): Add i387_ext, i386_eflags and
2579 i386_mxcsr.
2580 (tdesc_find_type): New.
2581 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
2582 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
2583
2584 * target-descriptions.h (tdesc_find_type): New.
2585
2586 2010-02-10 Michael Snyder <msnyder@vmware.com>
2587
2588 * gdb-gdb.py: Comment fix.
2589
2590 2010-02-09 Tristan Gingold <gingold@adacore.com>
2591
2592 * machoread.c (macho_symfile_relocate): New function.
2593 (macho_sym_fns): Use macho_symfile_relocate instead of
2594 default_symfile_relocate.
2595 (macho_oso_data): New type.
2596 (current_oso): New variable.
2597 (macho_add_oso_symfile): Do not compute section_addr_info, but
2598 instead set vma of sections.
2599 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
2600 Set and clear current_oso.
2601
2602 2010-02-09 Joel Brobecker <brobecker@adacore.com>
2603
2604 Wrong type description for tagged type parameter.
2605 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
2606 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
2607 reference to a tagged type.
2608
2609 2010-02-09 Tristan Gingold <gingold@adacore.com>
2610
2611 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
2612 brothers of the parent.
2613
2614 2010-02-08 Tom Tromey <tromey@redhat.com>
2615
2616 PR c++/8017:
2617 * value.h: Update.
2618 * valops.c (search_struct_field): Make 'name' const.
2619 (search_struct_method): Likewise.
2620 (find_method_list): Make 'method' const.
2621 (value_struct_elt): Make 'name' and 'err' const.
2622 (value_find_oload_method_list): Make 'method' const.
2623 (find_overload_match): Make 'name' const.
2624 * eval.c (evaluate_subexp_standard): New locals function,
2625 function_name.
2626 <OP_FUNCALL>: Handle OP_SCOPE specially.
2627
2628 2010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
2629
2630 * infrun.c (handle_inferior_event): Do not look up regcache
2631 for exited processes.
2632
2633 Mon Feb 8 13:17:10 2010 Chris Moller <moller@mollerware.com>
2634
2635 PR gdb/10728
2636 * valarith.c (value_ptrdiff): Added a test for a zero type length,
2637 warn if found, and assume length = 1.
2638
2639 2010-02-08 Chris Moller <cmoller@redhat.com>
2640
2641 PR gdb/9067
2642 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
2643 cp_print_static_field) Fix use of obstacks.
2644
2645 2010-02-08 Pedro Alves <pedro@codesourcery.com>
2646
2647 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
2648 resumed LWPs as resumed.
2649 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
2650 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
2651 of throwing an internal error. If an LWP of a process we're not
2652 waiting for reports a signal, don't force collecting a SIGSTOP,
2653 and if it was breakpoint hit in non-stop mode, cancel it. Don't
2654 go through all LWPs cancelling breakpoints in non-stop mode.
2655 (resume_stopped_resumed_lwps): New.
2656 (linux_nat_wait): Use it.
2657
2658 2010-02-07 H.J. Lu <hongjiu.lu@intel.com>
2659
2660 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
2661 i386/amd64 and i386/amd64-linux.
2662 (i386/i386-expedite): New.
2663 (i386/i386-linux-expedite): Likewise.
2664 (i386/amd64-expedite):Likewise.
2665 (i386/amd64-linux-expedite): Likewise.
2666 ($(outdir)/i386/i386-linux.dat): Likewise.
2667 ($(outdir)/i386/amd64.dat): Likewise.
2668 ($(outdir)/i386/amd64-linux.dat): Likewise.
2669
2670 * features/i386/32bit-core.xml: New.
2671 * features/i386/32bit-linux.xml: Likewise.
2672 * features/i386/32bit-sse.xml: Likewise.
2673 * features/i386/64bit-core.xml: Likewise.
2674 * features/i386/64bit-linux.xml: Likewise.
2675 * features/i386/64bit-sse.xml: Likewise.
2676 * features/i386/i386-linux.xml: Likewise.
2677 * features/i386/i386.xml: Likewise.
2678 * features/i386/amd64-linux.xml: Likewise.
2679 * features/i386/amd64.xml: Likewise.
2680 * features/i386/i386-linux.c: Likewise.
2681 * features/i386/i386.c: Likewise.
2682 * features/i386/amd64-linux.c: Likewise.
2683 * features/i386/amd64.c: Likewise.
2684
2685 2010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
2686
2687 PR c++/7935:
2688 * cp-support.h: Added char* alias element to using_direct data
2689 struct.
2690 (cp_add_using): Added char* alias argument.
2691 (cp_add_using_directive): Ditto.
2692 * cp-namespace.c: Updated with the above changes.
2693 (cp_lookup_symbol_imports): Check for aliases.
2694 * dwarf2read.c (read_import_statement): Figure out local alias
2695 for the import and pass it on to cp_add_using.
2696 (read_namespace): Pass alias argument to cp_add_using.
2697
2698 2010-02-05 Hui Zhu <teawater@gmail.com>
2699
2700 * defs.h (gdb_bfd_errmsg): New extern.
2701 * exec.c (exec_file_attach): Change bfd_errmsg to
2702 gdb_bfd_errmsg.
2703 * utils.c (AMBIGUOUS_MESS1): New macro.
2704 (AMBIGUOUS_MESS2): New macro.
2705 (gdb_bfd_errmsg): New function.
2706
2707 2010-02-04 Doug Evans <dje@google.com>
2708
2709 * solib-svr4.c (enable_break): Add comment.
2710
2711 2010-02-04 Anthony Green <green@moxielogic.com>
2712
2713 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
2714 gracefully.
2715
2716 2010-02-04 Tom Tromey <tromey@redhat.com>
2717
2718 * valops.c (search_struct_field): Account for
2719 value_embedded_offset. Fix check for virtual base past the end of
2720 the object. Use value_copy when making a slice of the value.
2721
2722 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
2723
2724 PR tui/9622
2725 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
2726 only if gdb_stdout is a tty.
2727
2728 2010-02-04 H.J. Lu <hongjiu.lu@intel.com>
2729
2730 * target-descriptions.c: Include "osabi.h".
2731 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
2732 OSABI.
2733
2734 2010-02-04 Tristan Gingold <gingold@adacore.com>
2735
2736 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
2737 (macho_symtab_read): Adjust calls to macho_add_oso.
2738 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
2739 (macho_symfile_read): Adjust call to macho_oso_symfile.
2740 (macho_new_init): Move this function after declarations.
2741 (macho_symfile_init): Ditto.
2742 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
2743 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
2744
2745 2010-02-04 Vladimir Prus <vladimir@codesourcery.com>
2746
2747 Include MI command in remotelog.
2748
2749 * mi/mi-main.c (mi_execute_command): Call target_log_command.
2750
2751 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
2752
2753 * remote.c (remote_state): Remove gdbarch.
2754 (init_remote_state): Don't set gdbarch.
2755 (remote_query_supported): Pass target_gdbarch instead of
2756 rs->gdbarch to gdbarch_qsupported.
2757
2758 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
2759
2760 * gdbarch.sh: Add qsupported.
2761
2762 * gdbarch.c: Regenerated.
2763 * gdbarch.h: Likewise.
2764
2765 * remote.c (remote_state): Add gdbarch.
2766 (init_remote_state): Set gdbarch.
2767 (remote_query_supported): Support gdbarch_qsupported.
2768
2769 2010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
2770
2771 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
2772 __FreeBSD_kernel_version.
2773
2774 2010-02-03 Tristan Gingold <gingold@adacore.com>
2775
2776 * symfile.h (struct sym_fns): Add sym_relocate field.
2777 (default_symfile_relocate): New prototype.
2778 (symfile_relocate_debug_section): First argument is now an objfile.
2779 * symfile.c (default_symfile_relocate): Rename from
2780 symfile_relocate_debug_section, first argument is now an objfile.
2781 (symfile_relocate_debug_section): New function.
2782 * coffread.c (coff_sym_fns): Set sym_relocate field.
2783 * somread.c (som_sym_fns): Ditto.
2784 * mipsread.c (ecoff_sym_fns): Ditto.
2785 * machoread.c (macho_sym_fns): Ditto.
2786 * elfread.c (elf_sym_fns): Ditto.
2787 * dwarf2read.c (dwarf2_read_section): Ditto.
2788 * xcoffread.c (xcoff_sym_fns): Ditto.
2789 * dbxread.c (aout_sym_fns): Ditto.
2790 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
2791 (elfstab_build_psymtabs): Ditto.
2792
2793 2010-02-03 H.J. Lu <hongjiu.lu@intel.com>
2794
2795 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
2796
2797 2010-02-02 Tom Tromey <tromey@redhat.com>
2798
2799 * valops.c (value_cast_structs): Try downcasting using the RTTI
2800 type.
2801
2802 2010-02-02 Tom Tromey <tromey@redhat.com>
2803
2804 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
2805 (gnuv2_baseclass_offset): Now static.
2806 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
2807 * gnu-v2-abi.h: Remove.
2808
2809 2010-02-02 Tom Tromey <tromey@redhat.com>
2810
2811 * m2-typeprint.c (m2_record_fields): Don't use
2812 TYPE_DECLARED_TYPE.
2813 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
2814 (struct main_type) <flag_declared_class>: New field.
2815 (struct cplus_struct_type) <declared_type>: Remove.
2816 <ntemplate_args>: Move earlier.
2817 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
2818 (DECLARED_TYPE_TEMPLATE): Remove.
2819 (TYPE_DECLARED_TYPE): Remove.
2820 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
2821 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
2822 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
2823 TYPE_DECLARED_TYPE.
2824
2825 2010-02-02 Tom Tromey <tromey@redhat.com>
2826
2827 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
2828 * valops.c (search_struct_field): Compute nbases after calling
2829 CHECK_TYPEDEF.
2830 (check_field): Call CHECK_TYPEDEF.
2831 * cp-valprint.c (cp_print_value): Pass correct address to
2832 baseclass_offset. Fix check for virtual base past the end of the
2833 object. Don't offset address passed to cp_print_value_fields or
2834 apply_val_pretty_printer.
2835 (cp_print_value_fields): Fix call to val_print.
2836 (cp_print_value_fields_rtti): New function.
2837 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
2838 * p-valprint.c (pascal_object_print_value_fields): Fix call to
2839 val_print.
2840 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
2841 offset to address.
2842 * language.h (struct language_defn) <la_val_print>: Document.
2843 * c-lang.h (cp_print_value_fields_rtti): Declare.
2844
2845 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2846
2847 PR libc/11214:
2848 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
2849 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
2850 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
2851
2852 2010-02-01 Michael Matz <matz@suse.de>
2853 Daniel Jacobowitz <dan@codesourcery.com>
2854
2855 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
2856 functions use a frame pointer.
2857
2858 2010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2859
2860 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
2861 by a conditional setting DYN_ADDR. Use DYN_ADDR.
2862 * config/djgpp/fnchange.lst: Add translations for
2863 symbol-without-target_section.exp and symbol-without-target_section.c.
2864
2865 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2866
2867 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
2868 (remote_breakpoint_for_pc): Correct invalid_p check.
2869 * gdbarch.c: Regenerated.
2870
2871 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2872
2873 * arm-tdep.c (arm_find_mapping_symbol): New function, from
2874 arm_pc_is_thumb.
2875 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
2876 (extend_buffer_earlier): New function.
2877 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
2878 (arm_adjust_breakpoint_address): New function.
2879 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
2880
2881 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2882
2883 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
2884 (arm_linux_thumb2_le_breakpoint): New constants.
2885 (arm_linux_init_abi): Set thumb2_breakpoint and
2886 thumb2_breakpoint_size.
2887 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
2888 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
2889 Implement support for single stepping through IT blocks if
2890 a 32-bit Thumb breakpoint instruction is available.
2891 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
2892 is available, use it when needed.
2893 (arm_remote_breakpoint_from_pc): New function.
2894 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
2895 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
2896 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
2897
2898 2010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
2899
2900 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
2901 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
2902 * gdbarch.c, gdbarch.h: Regenerated.
2903 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
2904 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
2905 gdbarch_remote_breakpoint_from_pc.
2906
2907 2010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
2908
2909 * infrun.c (prepare_to_proceed): Handle other signals which might
2910 match a breakpoint.
2911 (handle_inferior_event): Move the check for unusual breakpoint
2912 signals earlier.
2913
2914 2010-01-29 Paul Hilfinger <hilfinger@adacore.com>
2915
2916 amd64 - function returning record with field straddling 2 registers.
2917 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
2918 a record of length <= 16 in which a field straddles the two
2919 eightbytes.
2920
2921 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2922
2923 Implement return values on amd64-windows.
2924 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
2925 (amd64_windows_return_value): New function.
2926 (amd64_windows_init_abi): Call set_gdbarch_return_value with
2927 amd64_windows_return_value.
2928
2929 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2930
2931 amd64-windows: 32 bytes allocated on stack by caller for integer
2932 parameter registers.
2933 * i386-tdep.h (struct gdbarch_tdep): Add new field
2934 integer_param_regs_saved_in_caller_frame.
2935 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2936 tdep->integer_param_regs_saved_in_caller_frame to 1.
2937 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
2938 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
2939
2940 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2941
2942 amd64-windows: memory args passed by pointer during function calls.
2943 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
2944 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
2945 where tdep->memory_args_by_pointer is non-zero.
2946 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2947 tdep->memory_args_by_pointer to 1.
2948
2949 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2950
2951 amd64-windows: Integer parameters in function calls.
2952 * i386-tdep.h (enum amd64_reg_class): New, moved here from
2953 amd64-tdep.c.
2954 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
2955 call_dummy_integer_regs, and classify.
2956 * amd64-tdep.h (amd64_classify): Add declaration.
2957 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
2958 (amd64_reg_class): Delete, moved to i386-tdep.h.
2959 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
2960 Replace call to amd64_classify by call to tdep->classify.
2961 (amd64_push_arguments): Get the list of registers to use for
2962 passing integer parameters from the gdbarch tdep structure,
2963 rather than using a hardcoded one. Replace calls to amd64_classify
2964 by calls to tdep->classify.
2965 (amd64_push_dummy_call): Get the register number used for
2966 the "hidden" argument from tdep->call_dummy_integer_regs.
2967 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
2968 and tdep->call_dummy_integer_regs. Set tdep->classify.
2969 * amd64-windows-tdep.c: Add include of gdbtypes.h.
2970 (amd64_windows_dummy_call_integer_regs): New static global.
2971 (amd64_windows_classify): New function.
2972 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
2973 tdep->call_dummy_integer_regs and tdep->classify.
2974
2975 2010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
2976
2977 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
2978 for the new regcache. All callers updated.
2979 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
2980 (get_thread_arch_regcache): Do not set aspace here.
2981 * regcache.h (regcache_xmalloc): Update declaration.
2982
2983 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
2984 regcache_xmalloc updated.
2985
2986 2010-01-28 Joel Brobecker <brobecker@adacore.com>
2987
2988 Another -Wunused-function error in procfs.c (sparc-solaris)
2989 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
2990 Only define if SYS_syssgi is defined.
2991 (remove_dbx_link_breakpoint): Delete declaration. Move up.
2992 (dbx_link_addr, insert_dbx_link_bpt_in_file)
2993 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
2994 is itself defined.
2995
2996 2010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
2997
2998 * windows-nat.c (windows_initialization_done): New variable.
2999 (get_windows_debug_event): Issue error when process dies before
3000 completely initializing.
3001 (do_initial_windows_stuff): Set flag to indicate when we are done with
3002 the initial steps of attaching to the child.
3003
3004 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3005
3006 * symtab.h (struct symbol <symtab>): New comment on NULL values.
3007
3008 2010-01-27 Doug Evans <dje@google.com>
3009
3010 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
3011
3012 * breakpoint.c (bpstat_stop_status): Delete useless code.
3013
3014 2010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3015
3016 * printcmd.c (display_uses_solib_p): Remove variable section. Access
3017 objfile via SYMBOL_SYMTAB.
3018
3019 2010-01-26 Tom Tromey <tromey@redhat.com>
3020
3021 PR exp/7643:
3022 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
3023 coerce_array on result.
3024
3025 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
3026
3027 * cp-namespace.c (cp_lookup_symbol_namespace): Added
3028 search_parent argument.
3029 (cp_add_using): Initialize 'searched' field.
3030 (reset_directive_searched): New function.
3031 * cp-support.h: Add 'searched' field to using_direct struct.
3032 (cp_lookup_symbol_imports): Ditto.
3033 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
3034 Perform recursive search.
3035 Implement non parent search.
3036 * valops.c (value_maybe_namespace_elt): Updated.
3037
3038 2010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
3039
3040 PR gdb/10929:
3041 * dwarf2read.c (read_lexical_block_scope): Create blocks for
3042 scopes which contain using directives even if they contain no
3043 declarations.
3044 * symtab.c (lookup_symbol_aux): Pass lowest level block to
3045 la_lookup_symbol_nonlocal.
3046 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
3047 cp_lookup_symbol_namespace.
3048 (cp_lookup_symbol_namespace): Perform an import lookup at every
3049 block level.
3050 (cp_lookup_symbol_imports): New function.
3051 (cp_lookup_symbol_in_namespace): New function.
3052
3053 2010-01-25 Tom Tromey <tromey@redhat.com>
3054
3055 PR gdb/11049:
3056 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
3057 result.
3058
3059 2010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3060
3061 * configure.ac: Only use host_os part when disabling TUI on osf.
3062 Use test to check variables, prefix strings with x.
3063 * configure: Regenerate.
3064
3065 * solib-osf.c (osf_current_sos): Initialize tail.
3066
3067 2010-01-25 gingold <gingold@adacore.com>
3068
3069 * windows-nat.c (windows_continue): Use %x to print thread id.
3070 (get_windows_debug_event): Ditto.
3071
3072 2010-01-22 Tom Tromey <tromey@redhat.com>
3073
3074 PR symtab/11199:
3075 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
3076 type and arguments. Use smash_to_methodptr_type.
3077 (read_structure_type): Call quirk_gcc_member_function_pointer
3078 later.
3079 * gdbtypes.h (smash_to_methodptr_type): Declare.
3080 * gdbtypes.c (smash_to_methodptr_type): New function.
3081 (lookup_methodptr_type): Use it.
3082
3083 2010-01-21 Tom Tromey <tromey@redhat.com>
3084
3085 PR symtab/11198:
3086 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
3087 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
3088 * glibc-tdep.c (find_minsym_and_objfile): Remove.
3089 (glibc_skip_solib_resolver): Use
3090 lookup_minimal_symbol_and_objfile.
3091
3092 2010-01-21 Kai Tietz <kai.tietz@onevision.com>
3093
3094 * inflow.c (check_syscall): Guard by #if clause for GO32 and
3095 WIN32 targets.
3096
3097 2010-01-20 Tom Tromey <tromey@redhat.com>
3098
3099 PR backtrace/10770:
3100 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
3101 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
3102 * dwarf2expr.c (new_dwarf_expr_context): Allocate
3103 dwarf_stack_values, not CORE_ADDRs.
3104 (execute_stack_op): Change DW_OP_div and comparison operators to
3105 use signed operands.
3106
3107 2010-01-20 Vladimir Prus <vladimir@codesourcery.com>
3108
3109 Per-inferior args and tty and environment.
3110
3111 * infcmd.c (inferior_args): Rename to ...
3112 (inferior_args_scratch): ... this.
3113 (inferior_io_terminal): Rename to ...
3114 (inferior_io_terminal_scratch): ... this.
3115 (inferior_argc, inferior_argv): Remove.
3116 (set_inferior_io_terminal, get_inferior_io_terminal): Store
3117 inside current_inferior().
3118 (set_inferior_tty_command, show_inferior_tty_command): New.
3119 (get_inferior_args, set_inferior_args): Store inside
3120 current_inferior().
3121 (notice_args_set): Likewise and rename to...
3122 (set_args_command): ... this.
3123 (set_inferior_args_vector): Likewise.
3124 (notice_args_read): Rename to...
3125 (show_args_command): ...new.
3126 (tty_command): Remove.
3127 (run_command_1): Don't free old args, as they are freed by
3128 set_inferior_arg now.
3129 (run_no_args_command): Likewise.
3130 (inferior_environ): Remove.
3131 (run_command_1): Use environment of the current inferior.
3132 (environment_info, set_environment_command)
3133 (unset_environment_command, path_info, path_command): Likewise.
3134 (_initialize_infcmd): Adjust for function and variable renames.
3135 Do not init inferior_environ.
3136 * inferior.h (set_inferior_arg): Adjust prototype.
3137 (struct inferior): New fields args, argc, argv, terminal, environment.
3138 (inferior_environ): Remove declaration.
3139 * inferior.c (free_inferior): Free new fields.
3140 (add_inferior_silent): Initialize 'environment' field.
3141 * main.c (captured_main): Set arguments only after the initial
3142 inferior has been created. Set set_inferior_io_terminal,
3143 not tty_command.
3144 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
3145 inferior.
3146 (_initialize_mi_cmd_env): Adjust for disappearance of global
3147 inferior_environ.
3148 * solib.c (solib_find): Use environment of the current inferior.
3149
3150 2010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3151
3152 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
3153 HAVE_PYTHON.
3154 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
3155
3156 2010-01-20 Joel Brobecker <brobecker@adacore.com>
3157
3158 Get rid of ada-lang.c:function_name_from_pc.
3159 * ada-lang.c: Add "stack.h" #include.
3160 (function_name_from_pc): Delete.
3161 (is_known_support_routine): Replace call to function_name_from_pc
3162 by call to find_frame_funname.
3163 (ada_unhandled_exception_name_addr_from_raise): Likewise.
3164
3165 2010-01-19 Tom Tromey <tromey@redhat.com>
3166
3167 PR c++/11026:
3168 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
3169 objfile obstack.
3170
3171 2010-01-19 Tom Tromey <tromey@redhat.com>
3172
3173 * top.c (stop_sig, float_handler, do_nothing): Remove.
3174
3175 2010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3176
3177 * breakpoint.c (watchpoint_check): Check the call
3178 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
3179 Extend the comment.
3180 * config/djgpp/fnchange.lst: Add translations for
3181 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
3182 watchpoint-cond-gone-stripped.c.
3183
3184 2010-01-19 Tom Tromey <tromey@redhat.com>
3185
3186 PR c++/8000:
3187 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
3188 into parent scope, and enumerator into grandparent scope.
3189
3190 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3191
3192 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
3193
3194 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3195
3196 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
3197 i[34567]86-*-solaris2.1[0-9]*.
3198 * configure.tgt: Likewise.
3199
3200 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3201
3202 * NEWS: Document the source command enhancement allowing it
3203 to load Python scripts. Document the "set/show script-extension"
3204 commands.
3205
3206 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3207
3208 Add -Wunused-function to compile flags.
3209 * configure.ac: Add -Wunused-function to build_warnings.
3210 * configure: Regenerate.
3211
3212 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3213
3214 "delete" ada-lex.c:input function, not used.
3215 * ada-lex.l: #define YY_NO_INPUT.
3216
3217 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3218
3219 Delete free_named_symtabs and associated cleanup.
3220 * symfile.h (free_named_symtabs): Delete declaration.
3221 * symfile.c: Remove some commented out code (clear_symtab_users_once).
3222 (cashier_psymtab): Comment function out.
3223 Delete declaration.
3224 (free_named_symtabs): Delete.
3225 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
3226 * dbxread.c (end_psymtab): Likewise.
3227 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
3228 * exec.c (exec_close_1): Ditto.
3229 * xcoffread.c (xcoff_end_psymtab): Likewise.
3230
3231 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3232
3233 * stack.c (print_block_frame_labels): Comment function out.
3234
3235 2010-01-19 Joel Brobecker <brobecker@adacore.com>
3236
3237 Delete unused or undefined functions.
3238 * breakpoint.c (ep_parse_optional_filename): Delete.
3239 * dcache.c (dcache_write_line): Remove declaration.
3240 * infrun.c (build_infrun): Remove declaration.
3241 * tracepoint.c (tracepoint_save_command): Remove declaration.
3242 * linux-nat.c (init_lwp_list): Delete. No longer used.
3243 * event-loop.c (check_async_signal_handlers): Delete declaration.
3244 * infrun.c (init_execution_control_state): Delete.
3245 (proceed): Update comment to avoid mentioning
3246 init_execution_control_state.
3247 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
3248 * ada-lang.c (ada_to_static_fixed_value): Delete.
3249 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
3250 * cp-namespace.c (cp_copy_usings): Delete.
3251 * xml-syscall.c (xml_number_of_syscalls): Delete.
3252 * progspace.c (find_program_space_by_num): Delete.
3253 * inflow.c (handle_sigio): Delete declaration.
3254 * hppa-tdep.c (hppa_alignof): Delete.
3255 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
3256 (mipsnbsd_core_osabi_sniffer): Delete.
3257
3258 2010-01-18 Tom Tromey <tromey@redhat.com>
3259
3260 PR c++/9680:
3261 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
3262 (CONST_CAST): New tokens.
3263 (exp): Add new productions.
3264 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
3265 reinterpret_cast.
3266 (is_cast_operator): New function.
3267 (yylex): Handle cast operators specially.
3268 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
3269 UNOP_REINTERPRET_CAST>: New cases.
3270 * expprint.c (print_subexp_standard): Likewise.
3271 (op_name_standard): Likewise.
3272 (dump_subexp_body_standard): Likewise.
3273 * parse.c (operator_length_standard): Likewise.
3274 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
3275 UNOP_REINTERPRET_CAST.
3276 * gdbtypes.c (class_types_same_p): New function.
3277 (is_ancestor): Use it.
3278 (is_public_ancestor): New function.
3279 (is_unique_ancestor_worker): Likewise.
3280 (is_unique_ancestor): Likewise.
3281 * gdbtypes.h (class_types_same_p, is_public_ancestor)
3282 (is_unique_ancestor): Declare.
3283 * valops.c (value_reinterpret_cast): New function.
3284 (dynamic_cast_check_1): Likewise.
3285 (dynamic_cast_check_2): Likewise.
3286 (value_dynamic_cast): Likewise.
3287 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
3288
3289 2010-01-18 Joel Brobecker <brobecker@adacore.com>
3290
3291 Fix build failure when building without Python support.
3292 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
3293 is not defined.
3294
3295 2010-01-18 Joel Brobecker <brobecker@adacore.com>
3296
3297 Use XVS field type instead of doing a parallel lookup.
3298 * ada-lang.c (ada_get_base_type): Follow the XVS field type
3299 if it is a reference type instead of doing a type lookup using
3300 the XVS field name.
3301
3302 2010-01-18 Joel Brobecker <brobecker@adacore.com>
3303
3304 Trust PAD types instead of using PAD___XVS.
3305 * ada-lang.c (trust_pad_over_xvs): New static variable.
3306 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
3307 parallel XVS type, follow the XVS type instead of the PAD type.
3308 (unwrap_value): Make sure that there is no parallel XVE type
3309 before returning the value as is.
3310 (set_ada_list, show_ada_list): New static variables.
3311 (set_ada_command, show_ada_command): New functions.
3312 (_initialize_ada_language): Add new "set/show ada" prefix commands.
3313 Add new "set/show ada trust-PAD-over-XVS" setting.
3314
3315 2010-01-18 Tom Tromey <tromey@redhat.com>
3316 Thiago Jung Bauermann <bauerman@br.ibm.com>
3317
3318 Allow "source" to load python scripts.
3319 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
3320 * python/python.c (source_python_script): New function.
3321 * python/python.h (source_python_script): Add declaration.
3322 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
3323 (script_ext_off, script_ext_soft, script_ext_strict)
3324 (script_ext_enums, script_ext_mode): New static constants.
3325 (show_script_ext_mode, find_and_open_script): New functions.
3326 (source_script): Enhance to handle Python scripts.
3327 (init_cli_cmds): Add set/show script-extension commands.
3328
3329 2010-01-16 Stan Shebs <stan@codesourcery.com>
3330
3331 * tracepoint.h (struct trace_status): Use unsigned long long
3332 instead of size_t.
3333 * tracepoint.c (trace_status_command): Fix printf directive.
3334 (trace_save_command): Check fwrite returns, fix printf directive.
3335 (trace_filename): New global.
3336 (tfile_open): Set it, check read returns.
3337 (tfile_close): Free trace_filename.
3338 (tfile_get_traceframe_address): Check read returns.
3339 (tfile_trace_find): Ditto.
3340 (tfile_fetch_registers): Ditto.
3341 (tfile_xfer_partial): Ditto.
3342 (tfile_get_trace_state_variable_value): Ditto.
3343
3344 2010-01-15 Stan Shebs <stan@codesourcery.com>
3345
3346 Add trace file support.
3347 * tracepoint.h (enum trace_stop_reason): New enum.
3348 (struct trace_status): New struct.
3349 (parse_trace_status): Declare.
3350 (struct uploaded_tp): Move here from remote.c,
3351 add fields for actions.
3352 (struct uploaded_tsv): New struct.
3353 * tracepoint.c (tfile_ops): New target vector.
3354 (trace_fd): New global.
3355 (tfile_open): New function.
3356 (tfile_close): New function.
3357 (tfile_files_info): New function.
3358 (tfile_get_trace_status): New function.
3359 (tfile_get_traceframe_address): New function.
3360 (tfile_trace_find): New function.
3361 (tfile_fetch_registers): New function.
3362 (tfile_xfer_partial): New function.
3363 (tfile_get_trace_state_variable_value): New function.
3364 (init_tfile_ops): New function.
3365 (_initialize_tracepoint): Call it, add tfile target.
3366 (trace_status): New global.
3367 (current_trace_status): New function.
3368 (trace_running_p): Remove, change all users to get from
3369 current_trace_status()->running.
3370 (get_trace_status): Remove.
3371 (trace_status_command): Call target_get_trace_status directly,
3372 report more detail including tracing stop reasons.
3373 (trace_find_command): Always allow tfind on a file.
3374 (trace_find_pc_command): Ditto.
3375 (trace_find_tracepoint_command): Ditto.
3376 (trace_find_line_command): Ditto.
3377 (trace_find_range_command): Ditto.
3378 (trace_find_outside_command): Ditto.
3379 (trace_frames_offset, cur_offset): Declare as off_t.
3380 (trace_regblock_size): Rename from reg_size, update users.
3381 (parse_trace_status): New function.
3382 (tfile_interp_line): New function.
3383 (disconnect_or_stop_tracing): Ensure current trace
3384 status before asking what to do.
3385 (stop_reason_names): New global.
3386 (trace_save_command): New command.
3387 (get_uploaded_tp): Move here from remote.c.
3388 (find_matching_tracepoint): Ditto.
3389 (merge_uploaded_tracepoints): New function.
3390 (parse_trace_status): Use stop_reason_names.
3391 (_initialize_tracepoint): Define tsave command.
3392 * target.h (target_ops): New fields to_save_trace_data,
3393 to_upload_tracepoints, to_upload_trace_state_variables,
3394 to_get_raw_trace_data, change to_get_trace_status
3395 to take a pointer to a status struct.
3396 (target_save_trace_data): New macro.
3397 (target_upload_tracepoints): New macro.
3398 (target_upload_trace_state_variables): New macro.
3399 (target_get_raw_trace_data): New macro.
3400 * target.c (update_current_target): Add new methods, change
3401 signature of to_get_trace_status.
3402 * remote.c (hex2bin): Make globally visible.
3403 (bin2hex): Ditto.
3404 (remote_download_trace_state_variable): Download name also.
3405 (remote_get_trace_status): Update parameter, use
3406 parse_trace_status.
3407 (remote_save_trace_data): New function.
3408 (remote_upload_tracepoints): New function.
3409 (remote_upload_trace_state_variables): New function.
3410 (remote_get_raw_trace_data): New function.
3411 (remote_start_remote): Use them.
3412 (_initialize_remote_ops): Add operations.
3413 * ax-gdb.c: Include breakpoint.h.
3414 * breakpoint.c (create_tracepoint_from_upload): Use
3415 break_command_really, return tracepoint, warn about unimplemented
3416 parts.
3417 * NEWS: Mention trace file addition.
3418
3419 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3420
3421 Fix compilation warning on gcc-3.4.
3422 * exec.c (print_section_info): Move the `displacement' variable
3423 initialization to its declaration.
3424
3425 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3426
3427 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
3428 comparison.
3429
3430 2010-01-15 Eric Botcazou <botcazou@adacore.com>
3431
3432 "info tasks" broken by typedefs in ATCB type definitions.
3433 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
3434 ada_check_typedef before retrieving the length of the type for
3435 regular fields.
3436
3437 2010-01-15 Joel Brobecker <brobecker@adacore.com>
3438
3439 Do not use name-based lookup for unconstrained packed arrays.
3440 * ada-lang.c (find_parallel_type_by_descriptive_type):
3441 Limit the fallback to name-based lookups to the case where
3442 the type is a constrained packed array.
3443
3444 2010-01-15 Joel Brobecker <brobecker@adacore.com>
3445
3446 Enhance gdb-gdb.py to handle main_type.type_specific.
3447 * gdb-gdb.py: Print the type-specific part of struct main_type.
3448
3449 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3450
3451 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
3452 * configure: Regenerate.
3453 * config.in: Regenerate.
3454 * utils.c: Include sys/resource.h.
3455 (dump_core, can_dump_core): New.
3456 (internal_vproblem): Update the comment. Check can_dump_core while
3457 setting dump_core_p. Replace two abort calls by dump_core calls.
3458
3459 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3460 Eli Zaretskii <eliz@gnu.org>
3461
3462 * NEWS: Document the PIE support.
3463
3464 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3465
3466 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
3467 (check_is_pie_binary, _initialize_linux_tdep): Remove.
3468
3469 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3470
3471 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
3472 Replace exec_entry_point call by bfd_get_start_address.
3473
3474 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3475
3476 Support Valgrind attachments broken by the PIE support.
3477 * auxv.c: Include gdbcore.h.
3478 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
3479 parameters ops, object and annex. Remove their assertions.
3480 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
3481 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
3482 (memory_xfer_auxv): ... here.
3483 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
3484 memory_xfer_auxv.
3485 * procfs.c (procfs_xfer_partial): Likewise.
3486 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
3487 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
3488 (svr4_solib_create_inferior_hook): Conditionalize the
3489 svr4_relocate_main_executable call.
3490
3491 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3492
3493 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
3494 target_section. Find SECT in current_target_sections, gdb_assert it.
3495 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
3496 New variable abfd.
3497 * symtab.c (lookup_objfile_from_block): Return the binary file instead
3498 of separate debug info file.
3499
3500 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3501
3502 Support PIEs with no symfile_objfile.
3503 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
3504 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
3505
3506 2010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3507
3508 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
3509 code part to ...
3510 (svr4_static_exec_displacement): ... a new function.
3511 (svr4_exec_displacement): New function.
3512 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
3513 new_offsets using alloca now. Remove variable old_chain and changed.
3514 Call objfile_relocate unconditionally now.
3515
3516 2010-01-14 Doug Evans <dje@google.com>
3517
3518 * gdbtypes.c (arch_flags_type): Fix comment.
3519 * gdbtypes.h (arch_composite_type): Fix comment.
3520
3521 2009-01-14 Tristan Gingold <gingold@adacore.com>
3522
3523 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
3524 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
3525 to symbol_file_add_from_bfd. Add OSO as separate objfile.
3526 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
3527 macho_add_oso_symfile.
3528 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
3529
3530 2010-01-14 Joel Brobecker <brobecker@adacore.com>
3531
3532 Tru64: Dead threads are never deleted.
3533 * dec-thread.c (dec_thread_ptid_is_alive): New function.
3534 (dec_thread_count_gdb_threads): Fix counter increment.
3535 (dec_thread_add_gdb_thread): Fix *listp increment.
3536 (resync_thread_list): Fix bug in deletion of dead threads that
3537 caused all threads to be deleted, instead of just the dead ones.
3538
3539 2010-01-13 Phil Muldoon <pmuldoon@redhat.com>
3540
3541 PR python/10705
3542
3543 * python/python-internal.h: Add lazy_string_object_type
3544 definition.
3545 (create_lazy_string_object, gdbpy_initialize_lazy_string)
3546 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
3547 * python/py-value.c (valpy_lazy_string): New function.
3548 (convert_value_from_python): Add lazy string conversion.
3549 * python/py-prettyprint.c (pretty_print_one_value): Check if
3550 return is also a lazy string.
3551 (print_string_repr): Add lazy string printing branch.
3552 (print_children): Likewise.
3553 * python/py-lazy-string.c: New file. Implement lazy strings.
3554 * python/python.c (_initialize_python): Call
3555 gdbpy_initialize_lazy_string.
3556 * varobj.c (value_get_print_value): Add lazy string printing
3557 branch. Account for encoding.
3558 * c-lang.c (c_printstr): Account for new encoding argument. If
3559 encoding is NULL, find encoding suited for type, otherwise use
3560 user encoding.
3561 * language.h (language_defn): Add encoding argument.
3562 (LA_PRINT_STRING): Likewise.
3563 * language.c (unk_lang_printstr): Update to reflect new encoding
3564 argument to language_defn.
3565 * ada-lang.h (ada_printstr): Likewise.
3566 * c-lang.h (c_printstr): Likewise.
3567 * p-lang.h (pascal_printstr);
3568 * f-lang.c (f_printstr): Likewise.
3569 * m2-lang.c (m2_printstr): Likewise.
3570 * objc-lang.c (objc_printstr): Likewise.
3571 * p-lang.c (pascal_printstr): Likewise.
3572 * scm-lang.c (scm_printstr): Likewise.
3573 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
3574 encoding argument.
3575 * ada-valprint.c (ada_printstr): Likewise.
3576 * f-valprint.c (f_val_print): Likewise
3577 * m2-valprint.c (m2_val_print): Likewise.
3578 * p-valprint.c (pascal_val_print): Likewise.
3579 * expprint.c (print_subexp_standard): Likewise.
3580 * valprint.c (val_print_string): Likewise.
3581 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
3582 (SUBDIR_PYTHON_SRCS): Likewise.
3583 (py-lazy-string.o): New rule.
3584
3585 2010-01-13 Doug Evans <dje@google.com>
3586
3587 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
3588 uninitialized" warning from gcc on local `tree'.
3589
3590 2010-01-13 Vladimir Prus <vladimir@codesourcery.com>
3591
3592 Implement core awareness.
3593
3594 * bcache.c (compare_ints): Remove
3595 (print_percentage): Use compare_positive_ints.
3596 * defs.h (compare_positive_ints): Declare.
3597 * linux-nat.h (struct lin_lwp): New field core.
3598 (linux_nat_core_of_thread_1): Declare.
3599 * linux-nat.c (add_lwp): Init the 'core' field.
3600 (linux_nat_wait_1): Record the core.
3601 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
3602 (linux_nat_add_target): Register the above.
3603 * linux-thread-db.c (update_thread_core): New.
3604 (thread_db_find_new_threads): Update core information for
3605 every thread.
3606 * remote.c (struct private_thread_info): New.
3607 (free_private_thread_info, demand_private_info): New.
3608 (PACKET_qXfer_threads, use_osdata_threads): New.
3609 (struct thread_item, threads_parsing_context
3610 (start_thread, end_thread, thread_attributes)
3611 (thread_children, threads_children, threads_elements): New.
3612 (remote_threads_info): Try qXfer:threads before anything
3613 else.
3614 (remote_protocol_packets): Register qXfer:threads.
3615 (remote_open_1): Init use_osdata_threads.
3616 (struct stop_reply): New field 'core'.
3617 (remote_parse_stop_reply): Parse core number.
3618 (process_stop_reply): Record core number.
3619 (remote_xfer_partial): Handle qXfer:threads.
3620 (remote_core_of_thread): New.
3621 (init_remote_ops): Register remote_core_of_thread.
3622 (_initialize_remote): Register qXfer:read.
3623 * target.c (target_core_of_thread): New
3624 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
3625 (struct target_ops): New field to_core_of_threads.
3626 (target_core_of_thread): Declare.
3627 * gdbthread.h (struct thread_info): New field private_dtor.
3628 * thread.c (print_thread_info): Report the core.
3629 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
3630 * utils.c (compare_positive_ints): New.
3631 * features/threads.dtd: New.
3632 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
3633 * mi/mi-main.c (struct collect_cores_data, collect_cores)
3634 (do_nothing, free_vector_of_osdata_items)
3635 (splay_tree_int_comparator, free_splay_tree): New.
3636 (print_one_inferior_data): Implemented printing of selected
3637 inferiors. Collect and print cores.
3638 (output_cores): New.
3639 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
3640 thread groups together with --available.
3641
3642 2010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3643
3644 * configure: Regenerate (for _STRUCTURED_PROC).
3645
3646 2010-01-12 Joel Brobecker <brobecker@adacore.com>
3647
3648 Delete dead function.
3649 * ada-lang.c (extract_string): Delete. No longer used.
3650
3651 2010-01-12 Joel Brobecker <brobecker@adacore.com>
3652
3653 Fix -Wunused warning in dec-thread.c.
3654 * dec-thread.c (dec_thread_count_gdb_threads)
3655 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
3656
3657 2010-01-12 Joel Brobecker <brobecker@adacore.com>
3658
3659 * ada-valprint.c (ada_print_floating): Remove trailing space.
3660
3661 2010-01-12 Joel Brobecker <brobecker@adacore.com>
3662
3663 Add support for DW_AT_GNAT_descriptive_type.
3664 * gdbtypes.h (enum type_specific_kind): New enum.
3665 (struct main_type) [type_specific_field]: New component.
3666 [type_specific]: Add new component "gnat_stuff".
3667 (struct gnat_aux_type): New type.
3668 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
3669 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
3670 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
3671 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
3672 (TYPE_SPECIFIC_FIELD): New macros.
3673 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
3674 type does not hold any cplus-specific data.
3675 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
3676 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
3677 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
3678 cplus-specific data.
3679 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
3680 Set new component TYPE_SPECIFIC_FIELD (type).
3681 (gnat_aux_default): New constant.
3682 (allocate_gnat_aux_type): New function.
3683 (init_type): Add initialization the type-specific stuff for
3684 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
3685 (print_gnat_stuff): New function.
3686 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
3687 specific data. Adjust code that prints the contents of the
3688 type-specific union using the TYPE_SPECIFIC_FIELD value.
3689 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
3690 the type cplus stuff for Ada types.
3691 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
3692 Error out if these routines are called with an Ada type.
3693 (read_structure_type, read_array_type, read_subrange_type):
3694 Add call to set_descriptive_type.
3695 (set_die_type): Initialize the gnat-specific data if necessary.
3696 (need_gnat_info, die_descriptive_type, set_descriptive_type):
3697 New functions.
3698 * ada-lang.c (decode_constrained_packed_array_type): Use
3699 decode_constrained_packed_array_type instead of doing a standard
3700 lookup to locate a parallel type.
3701 (find_parallel_type_by_descriptive_type): New function.
3702 (ada_find_parallel_type_with_name): New function.
3703 (ada_find_parallel_type): Reimplement using
3704 ada_find_parallel_type_with_name.
3705 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
3706 to check if type has a cplus stuff.
3707 * linespec.c (total_number_of_methods): Likewise.
3708 * mdebugread.c (new_type): Likewise.
3709
3710 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3711
3712 * NEWS: Document the 0b binary number prefix parsing.
3713
3714 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3715
3716 * objfiles.c (objfile_relocate1): Change the return type to int.
3717 Describe the new return value. Return non-zero if data changed.
3718 (objfile_relocate): New variable changed. Set it. Call
3719 breakpoint_re_set depending on CHANGED.
3720
3721 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3722
3723 Implement binary numbers parsing.
3724 * c-exp.y (parse_number): New case 'b' and 'B'.
3725
3726 2010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3727 Tristan Gingold <gingold@adacore.com>
3728
3729 * solib.c (info_sharedlibrary_command): Replace
3730 objfile_has_partial_symbols and objfile_has_full_symbols calls by
3731 objfile_has_symbols.
3732
3733 2010-01-10 Joel Brobecker <brobecker@adacore.com>
3734
3735 * NEWS: Document the improvements made to the mips-irix port.
3736
3737 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3738
3739 Fix the documentation of valprint.c:value_print.
3740 * valprint.c (value_print): Update the function description to
3741 mention that the syntax of the output follows the current_language,
3742 not necessarily C.
3743
3744 2010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3745
3746 Fix displacement of separate debug info files.
3747 * objfiles.c (objfile_relocate): Rename to ...
3748 (objfile_relocate1): ... here and make it static. Extend the comment.
3749 (objfile_relocate): New function.
3750 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
3751 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
3752 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
3753 allocated using alloca.
3754 * symfile.c (copy_section_addr_info): Remove.
3755 (build_section_addr_info_from_objfile): Make it global. New variables
3756 addr_bit and mask, use them.
3757 * symfile.h (build_section_addr_info_from_objfile): New prototype.
3758 (copy_section_addr_info): Remove.
3759
3760 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3761
3762 Signal unwinder for mips-irix N32.
3763 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
3764 tramp-frame.h.
3765 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
3766 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
3767 (SIGCONTEXT_LO_OFF): New macros.
3768 (mips_irix_n32_tramp_frame_init): New function.
3769 (mips_irix_n32_tramp_frame): New static constant.
3770 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
3771
3772 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3773
3774 Breakpoint in shared library does not work on mips-irix.
3775 * procfs.c: #include "observer.h".
3776 (procfs_inferior_created): New function, moving here the code
3777 which unsets the syssgi syscall-exit notifications.
3778 (procfs_create_inferior): Remove the code which unsets the syssgi
3779 syscall-exit notifications. It is too early to do this here.
3780 (_initialize_procfs): Attach the procfs_inferior_created observer.
3781
3782 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3783
3784 Wrong return convention for arrays (mips-irix).
3785 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
3786 128 bits or smaller are returned the same way as structs
3787 and unions of the the same size.
3788
3789 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3790
3791 Cannot set the PC on mips-irix.
3792 * irix5-nat.c (fill_gregset): Check regno against the raw PC
3793 register number, no the cooked one.
3794
3795 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3796
3797 Error while loading core file on mips-irix.
3798 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
3799 if debugging from a core file.
3800
3801 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3802
3803 GDB hangs when attaching to process on mips-irix.
3804 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
3805 attaching to a process.
3806
3807 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3808
3809 Use the correct breakpoint instruction on mips-irix.
3810 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
3811 containing the correct breakpoint instruction to use on mips-irix.
3812 Use it when the osabi is GDB_OSABI_IRIX.
3813
3814 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3815
3816 -Wunused warning in procfs.c (mips-irix only).
3817 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
3818 throughout instead of using praddset and prdelset respectively.
3819
3820 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3821
3822 GDB crash while stepping into function.
3823 * infrun.c (handle_inferior_event): Refetch the current frame
3824 after handling what.main_action, in case that pointer became
3825 dangling.
3826
3827 2010-01-09 Joel Brobecker <brobecker@adacore.com>
3828
3829 Fix build failure of solaris-hosted cross debuggers.
3830 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
3831
3832 2010-01-09 Daniel Gutson <dgutson@codesourcery.com>
3833
3834 Fix build failure on sparc-solaris.
3835 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
3836
3837 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3838
3839 Move some symfile code into subroutines.
3840 * symfile.h (relative_addr_info_to_section_offsets)
3841 (addr_info_make_relative): New prototypes.
3842 * symfile.c (default_symfile_offsets): Move a part to ...
3843 (relative_addr_info_to_section_offsets): ... this new function.
3844 (default_symfile_offsets): Call it.
3845 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
3846 this part to ...
3847 (addr_info_make_relative): ... this new function.
3848
3849 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3850
3851 Add from_tty to solib_create_inferior_hook.
3852 * infcmd.c (post_create_inferior): Move solib_add after
3853 solib_create_inferior_hook. Pass from_tty to
3854 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
3855 0 from_tty and comment why.
3856 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
3857 * linux-nat.c (linux_child_follow_fork): Likewise.
3858 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
3859 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
3860 from_tty.
3861 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
3862 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
3863 * solib-null.c (null_solib_create_inferior_hook): Likewise.
3864 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
3865 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
3866 * solib-som.c (som_solib_create_inferior_hook): Likewise.
3867 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
3868 Pass it to svr4_so_ops.solib_create_inferior_hook.
3869 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
3870 from_tty.
3871 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
3872 solib_add.
3873 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
3874 enable_break.
3875 * solib-target.c (solib_target_solib_create_inferior_hook): New
3876 parameter from_tty.
3877 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
3878 it to ops->solib_create_inferior_hook.
3879 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
3880 Move solib_add after solib_create_inferior_hook, call it now with
3881 from_tty as 0. New comment there.
3882 * solib.h (solib_create_inferior_hook): New parameter from_tty.
3883 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
3884 Likewise.
3885
3886 2010-01-08 Vladimir Prus <vladimir@codesourcery.com>
3887
3888 Fix multiexec race.
3889 * infrun.c (handle_inferior_event): Use get_thread_regcache
3890 with events ptid, not get_current_regcache.
3891
3892 2009-01-08 Joel Brobecker <brobecker@adacore.com>
3893
3894 GDB crash with empty executable name (MinGW).
3895 * source.c (openp): Add assert that parameter string is not NULL.
3896 if parameter string is an empty string, then return with a failure
3897 immediately.
3898
3899 2009-01-08 Joel Brobecker <brobecker@adacore.com>
3900
3901 Get rid of support for VAX Floats.
3902 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
3903 (ada_vax_float_print_function): Delete.
3904 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
3905 (ada_vax_float_print_function): Delete.
3906 * ada-typeprint.c (print_vax_floating_point_type): Delete.
3907 (ada_print_type): Remove support for VAX floats.
3908 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
3909
3910 2010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3911
3912 * stabsread.c (read_args): Handle zero arguments.
3913
3914 2009-01-08 Joel Brobecker <brobecker@adacore.com>
3915
3916 Cannot find in-tree libiconv.a after reconfigure.
3917 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
3918 that we can use, then cache the path to this archive.
3919 * configure: Regenerate.
3920
3921 2010-01-07 Stan Shebs <stan@codesourcery.com>
3922
3923 Make tracepoint operations go through target vector.
3924 * target.h (enum trace_find_type): New enum.
3925 (struct target_ops): New fields to_trace_init,
3926 to_download_tracepoint, to_download_trace_state_variable,
3927 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
3928 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
3929 to_set_disconnected_tracing.
3930 (target_trace_init): New macro.
3931 (target_download_tracepoint): New macro.
3932 (target_download_trace_state_variable): New macro.
3933 (target_trace_start): New macro.
3934 (target_trace_set_readonly_regions): New macro.
3935 (target_get_trace_status): New macro.
3936 (target_trace_stop): New macro.
3937 (target_trace_find): New macro.
3938 (target_get_trace_state_variable_value): New macro.
3939 (target_set_disconnected_tracing): New macro.
3940 * target.c (update_current_target): Inherit and set defaults for
3941 tracepoint operations.
3942 * tracepoint.c (default_collect): Make globally visible.
3943 (target_is_remote): Remove, along with all calls.
3944 (tvariables_info): Call target_get_trace_state_variable_value.
3945 (remote_set_transparent_ranges): Remove.
3946 (trace_start_command): Call target_trace_init,
3947 target_download_tracepoint, etc.
3948 (download_tracepoint): Remove.
3949 (trace_stop_command): Simplify.
3950 (stop_tracing): Call target_trace_stop.
3951 (get_trace_status): Call target_get_trace_status.
3952 (trace_status_command): Add case for targets that cannot trace.
3953 (finish_tfind_command): Change to take numerical arguments, call
3954 target_trace_find.
3955 (trace_find_command): Update call to finish_tfind_command.
3956 (trace_find_pc_command): Ditto.
3957 (trace_find_tracepoint_command): Ditto.
3958 (trace_find_line_command): Ditto.
3959 (trace_find_range_command): Ditto.
3960 (trace_find_outside_command): Ditto.
3961 (set_disconnected_tracing_value): Call
3962 target_set_disconnected_tracing.
3963 * remote.c: Add protocol encoding bits from tracepoint.c.
3964 (trace_error): Move from tracepoint.c.
3965 (remote_get_noisy_reply): Ditto.
3966 (free_actions_list_cleanup_wrapper): Ditto.
3967 (free_actions_list): Ditto.
3968 (remote_trace_init): New function.
3969 (remote_download_tracepoint): New function.
3970 (remote_download_trace_state_variable): New function.
3971 (remote_trace_set_readonly_regions): New function.
3972 (remote_trace_start): New function.
3973 (remote_get_trace_status): New function.
3974 (remote_trace_stop): New function.
3975 (remote_trace_find): New function.
3976 (remote_download_trace_state_variable): New function.
3977 (remote_set_disconnected_tracing): New function.
3978 (init_remote_ops): Add tracepoint operations.
3979
3980 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
3981
3982 2010-01-07 Tristan Gingold <gingold@adacore.com>
3983
3984 * symfile.c (build_section_addr_info_from_objfile): New function.
3985 (symbol_file_add_separate): Don't use offsets from objfile but
3986 built an addr info.
3987
3988 2010-01-06 Stan Shebs <stan@codesourcery.com>
3989
3990 Support disconnected tracing.
3991 * infcmd.c (detach_command): Ask whether to stop tracing.
3992 * cli/cli-cmds.c (quit_command): Ditto.
3993 * breakpoint.h (struct breakpoint): New field number_on_target.
3994 * breakpoint.c (create_tracepoint_from_upload): New function.
3995 (get_tracepoint_by_number_on_target): New function.
3996 * remote.c (struct remote): New field disconnected_tracing.
3997 (remote_disconnected_tracing_feature): New function.
3998 (remote_protocol_features): Add DisconnectedTracing.
3999 (struct uploaded_tp): New struct.
4000 (uploaded_tps): New global.
4001 (get_uploaded_tp): New function.
4002 (find_matching_tracepoint): New function.
4003 (remote_get_tracing_state): New function.
4004 (remote_start_remote): Call it.
4005 * tracepoint.c (disconnected_tracing): New global.
4006 (trace_start_command): Initialize number_on_target.
4007 (stop_tracing): New function, split out from...
4008 (trace_stop_command): Call stop_tracing.
4009 (get_trace_status): New function, split out from...
4010 (trace_status_command): Call get_trace_status, add info on
4011 disconnection behavior.
4012 (disconnect_or_stop_tracing): New function.
4013 (finish_tfind_command): Translate from number on target.
4014 (trace_find_tracepoint_command): Translate to number on target.
4015 (send_disconnected_tracing_value): New function.
4016 (set_disconnected_tracing): New function.
4017 (_initialize_tracepoint): Add disconnected-tracing variable.
4018 * NEWS: Mention disconnected tracing.
4019
4020 2010-01-06 Tristan Gingold <gingold@adacore.com>
4021
4022 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
4023 parameter to main_objfile. Iterate on all separate debug objfiles.
4024 * symfile.h (symbol_file_add_separate)
4025 (find_separate_debug_file_by_debuglink): Remove parameter names.
4026 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
4027 (reread_symbols): Use free_objfile_separate_debug.
4028 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
4029 Adjust comment.
4030 (objfile_separate_debug_iterate, add_separate_debug_objfile)
4031 (free_objfile_separate_debug): New prototypes.
4032 * objfiles.c (objfile_separate_debug_iterate): New function.
4033 (add_separate_debug_objfile, free_objfile_separate_debug): New
4034 functions.
4035 (free_objfile): Use free_objfile_separate_debug. Adjust for
4036 multiple separate debug objfile.
4037 (objfile_has_symbols): Adjust comment. Iterate on all separate
4038 debug objfiles.
4039 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
4040 debug objfile.
4041 (lookup_minimal_symbol_text): Ditto.
4042 (lookup_minimal_symbol_by_pc_name): Ditto.
4043 (lookup_minimal_symbol_solib_trampoline): Ditto.
4044 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
4045 debug objfiles.
4046
4047 2010-01-05 Stan Shebs <stan@codesourcery.com>
4048
4049 Add fast tracepoints.
4050 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
4051 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
4052 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
4053 * breakpoint.c (tracepoint_type): New function.
4054 (ALL_TRACEPOINTS): Use it.
4055 (should_be_inserted): Ditto.
4056 (bpstat_check_location): Ditto.
4057 (print_one_breakpoint_location): Ditto.
4058 (user_settable_breakpoint): Ditto.
4059 (set_breakpoint_location_function): Ditto.
4060 (disable_breakpoints_in_shlibs): Ditto.
4061 (delete_trace_command): Ditto.
4062 (print_it_typical): Add bp_fast_tracepoint case.
4063 (bpstat_what): Ditto.
4064 (print_one_breakpoint_location): Ditto.
4065 (allocate_bp_location): Ditto.
4066 (mention): Ditto.
4067 (breakpoint_re_set_one): Ditto.
4068 (disable_command): Ditto.
4069 (enable_command): Ditto.
4070 (check_fast_tracepoint_sals): New function.
4071 (break_command_really): Call it.
4072 (ftrace_command): New function.
4073 (_initialize_breakpoint): Add ftrace command.
4074 * gdbarch.sh (fast_tracepoint_valid_at): New.
4075 * gdbarch.h, gdbarch.c: Regenerate.
4076 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
4077 (i386_gdbarch_init): Use it.
4078 * remote.c (struct remote_state): New field fast_tracepoints.
4079 (PACKET_FastTracepoints): New packet config type.
4080 (remote_fast_tracepoint_feature): New function.
4081 (remote_protocol_features): Add FastTracepoints.
4082 (remote_supports_fast_tracepoints): New function.
4083 (_initialize_remote): Add FastTracepoints.
4084 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
4085 * NEWS: Mention fast tracepoints.
4086
4087 2010-01-06 Joel Brobecker <brobecker@adacore.com>
4088
4089 * gdb-gdb.py: New file.
4090
4091 2010-01-05 Michael Snyder <msnyder@vmware.com>
4092
4093 * infrun.c (handle_inferior_event): Fix typo in comment.
4094
4095 2010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4096
4097 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
4098
4099 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4100
4101 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
4102 and s390x-linux64.
4103 (s390-linux32-expedite): Define.
4104 (s390-linux64-expedite): Define.
4105 (s390x-linux64-expedite): Define.
4106 * features/s390-acr.xml: New file.
4107 * features/s390-fpr.xml: New file.
4108 * features/s390-core32.xml: New file.
4109 * features/s390-core64.xml: New file.
4110 * features/s390x-core64.xml: New file.
4111 * features/s390-linux32.xml: New file.
4112 * features/s390-linux64.xml: New file.
4113 * features/s390x-linux64.xml: New file.
4114 * features/s390-linux32.c: New generated file.
4115 * features/s390-linux64.c: New generated file.
4116 * features/s390x-linux64.c: New generated file.
4117
4118 * regformats/s390-linux32.dat: New generated file.
4119 * regformats/s390-linux64.dat: New generated file.
4120 * regformats/s390x-linux64.dat: New generated file.
4121 * regformats/reg-s390.dat: Remove.
4122 * regformats/reg-s390x.dat: Remove.
4123
4124 * s390-nat.c: Include "auxv.h" and <elf.h>.
4125 (HWCAP_S390_HIGH_GPRS): Define if undefined.
4126 (s390_target_wordsize): New function.
4127 (s390_auxv_parse): Likewise.
4128 (s390_get_hwcap): Likewise.
4129 (s390_read_description): Likewise.
4130 (_initialize_s390_nat): Install s390_auxv_parse and
4131 s390_read_description.
4132
4133 * s390-tdep.c: Include "features/s390-linux32.c",
4134 "features/s390-linux64.c", and "features/s390x-linux64.c".
4135 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
4136 (s390_register_call_saved): New function.
4137 (s390_register_name): Remove.
4138 (s390_register_type): Remove.
4139 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
4140 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
4141 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
4142 (s390_pseudo_register_name): New function.
4143 (s390_pseudo_register_type): New function.
4144 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
4145 Handle full GPR pesudos and varying pseudo register numbers.
4146 (s390_pseudo_register_write): Likewise
4147 (s390x_pseudo_register_read): Remove.
4148 (s390x_pseudo_register_write): Likewise.
4149 (s390_register_group): Remove.
4150 (s390_pseudo_register_group): New function.
4151 (s390_regmap_gregset): Add GPR upper halves.
4152 (s390x_regmap_gregset): Likewise.
4153 (s390_regmap_fpregset): Likewise.
4154 (s390_regmap_upper): New global variable.
4155 (s390_upper_regset): New global variable.
4156 (s390_upper_regset_sections): New global variable.
4157 (s390_regset_from_core_section): Handle GPR upper halves.
4158 (s390_core_read_description): New function.
4159 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
4160 register information. Handle varying pseudo register numbers.
4161 (s390_backchain_frame_unwind_cache): Likewise.
4162 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
4163 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
4164 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
4165 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
4166 Handle varying pseudo register numbers.
4167 (s390_unwind_pc): Handle varying pseudo register numbers.
4168 (s390_dwarf2_prev_register): New function.
4169 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
4170 register information. Handle varying pseudo register numbers.
4171 Install s390_dwarf2_prev_register to unwind full GPRs.
4172 (s390_gdbarch_init): Handle target descriptions. Assign varying
4173 pseudo register numbers. Install s390_adjust_frame_regnum.
4174 (_initialize_s390_tdep): Initialize target descriptions.
4175
4176 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
4177 (S390_NUM_REGS): Redefine to include upper half registers.
4178 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
4179 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
4180 (tdesc_s390_linux32): Add declaration.
4181 (tdesc_s390_linux64): Likewise.
4182 (tdesc_s390x_linux64): Likewise.
4183
4184 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4185
4186 * regset.h (struct core_regset_section): Add HUMAN_NAME.
4187 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
4188 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
4189 (ppc_linux_vmx_regset_sections): Likewise.
4190 (ppc_linux_fp_regset_sections): Likewise.
4191
4192 * corelow.c (get_core_register_section): Constify arguments.
4193 (get_core_registers): Use gdbarch_core_regset_sections instead
4194 of hard-coded platform-specific register section names.
4195
4196 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4197
4198 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
4199 a register, assume the least-significant part is used.
4200 (write_pieced_value): Likewise.
4201
4202 2010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4203
4204 * printcmd.c: Include "arch-utils.h".
4205 (do_one_display): Re-parse expression if current architecture changed.
4206
4207 2010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4208 Joel Brobecker <brobecker@adacore.com>
4209
4210 * gdbtypes.c (check_typedef): New comment on type length.
4211 * value.c (allocate_value_lazy): Remove the unused atype variable. New
4212 comment on type length.
4213 (value_primitive_field): Keep the original TYPE value, new comment.
4214
4215 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4216
4217 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
4218 p_start. Change != comparisons to > and < comparisons.
4219
4220 2010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4221
4222 * cli/cli-script.c (process_next_line): Check P2 overrun.
4223
4224 2009-01-01 Joel Brobecker <brobecker@adacore.com>
4225
4226 Update the copyright hearder to add year 2010 for most GDB files.
4227
4228 2009-01-01 Joel Brobecker <brobecker@adacore.com>
4229
4230 Fix build failure in inf-ptrace.c.
4231 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
4232
4233 2010-01-01 Joel Brobecker <brobecker@adacore.com>
4234
4235 * top.c (print_gdb_version): Update copyright year.
4236
4237 2010-01-01 Joel Brobecker <brobecker@adacore.com>
4238
4239 Fix break *FUN'address thread NUM.
4240 * ada-lex.l (task): Expand rule to also match the thread keyword.
4241
4242 2010-01-01 Joel Brobecker <brobecker@adacore.com>
4243
4244 Fix break *FUN'address task NUM.
4245 * ada-lex.l (task): New rule.
4246 * ada-lang.c (valid_task_id): Make sure the Ada task list has
4247 been built before using it.
4248
4249 For older changes see ChangeLog-2009.
4250 \f
4251 Local Variables:
4252 mode: change-log
4253 left-margin: 8
4254 fill-column: 74
4255 version-control: never
4256 coding: utf-8
4257 End: