gdb/
[binutils-gdb.git] / gdb / ChangeLog
1 2013-02-15 Yao Qi <yao@codesourcery.com>
2
3 * remote.c: Fix a typo.
4
5 2013-02-14 Pierre Muller <muller@sourceware.org>
6
7 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
8
9 2013-02-14 Pedro Alves <palves@redhat.com>
10
11 * utils.c (savestring): Don't #undef it. Move function to
12 common/common-utils.c.
13 * common/common-utils.c: Include gdb_string.h.
14 (savestring): Move here from utils.c.
15 * common/common-utils.h (savestring): Declare.
16
17 2013-02-14 Pedro Alves <palves@redhat.com>
18
19 * utils.c (savestring): Rename parameter 'size' to 'len'.
20
21 2013-02-14 Pedro Alves <palves@redhat.com>
22 Yufeng Zhang <yufeng.zhang@arm.com>
23
24 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
25 (aarch64_inferior_data, struct aarch64_inferior_data):
26 Delete.
27 (struct aarch64_process_info): New.
28 (aarch64_process_list): New global.
29 (aarch64_find_process_pid, aarch64_add_process)
30 (aarch64_process_info_get): New functions.
31 (aarch64_inferior_data_get): Delete.
32 (aarch64_process_info_get): New function.
33 (aarch64_forget_process): New function.
34 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
35 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
36 aarch64_get_debug_reg_state.
37 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
38 instead of linux_nat_iterate_watchpoint_lwps.
39 (aarch64_linux_new_fork): New function.
40 (aarch64_linux_child_post_startup_inferior): Use
41 aarch64_forget_process instead of aarch64_init_debug_reg_state.
42 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
43 (aarch64_linux_remove_hw_breakpoint)
44 (aarch64_handle_aligned_watchpoint)
45 (aarch64_handle_unaligned_watchpoint)
46 (aarch64_linux_insert_watchpoint)
47 (aarch64_linux_remove_watchpoint)
48 (aarch64_linux_stopped_data_address): Adjust to pass the current
49 process id to aarch64_debug_reg_state.
50 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
51 linux_nat_new_fork hook, and aarch64_forget_process as
52 linux_nat_forget_process hook; remove the call to
53 register_inferior_data_with_cleanup.
54
55 2013-02-14 Pedro Alves <palves@redhat.com>
56
57 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
58 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
59 lval_memory.
60
61 2013-02-14 Pedro Alves <pedro@codesourcery.com>
62 Hafiz Abid Qadeer <abidh@codesourcery.com>
63
64 * tracepoint.h (validate_trace_state_variable_name): Declare.
65 * tracepoint.c (validate_trace_state_variable_name): New.
66 (trace_variable_command): Parse the trace state variable's name
67 without using parse_expression. Do several validations.
68 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
69 trace state variable's name with parse_expression. Validate it.
70
71 2013-02-14 Yao Qi <yao@codesourcery.com>
72
73 * infcmd.c (breakpoint_proceeded): Remove it.
74
75 2013-02-14 Yao Qi <yao@codesourcery.com>
76
77 * tracepoint.c (end_actions_pseudocommand): Make it static.
78 (while_stepping_pseudocommand): Likewise.
79 * tracepoint.h (end_actions_pseudocommand): Remove the
80 declaration.
81 (while_stepping_pseudocommand): Likewise.
82
83 2013-02-14 Yao Qi <yao@codesourcery.com>
84
85 * cli/cli-decode.c (help_cmd): Remove the declaration of
86 "cmdlist".
87 (help_all): Likewise.
88
89 2013-02-13 Pedro Alves <palves@redhat.com>
90
91 * amd64-linux-nat.c (update_debug_registers_callback):
92 Update comment.
93 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
94 iterate_over_lwps.
95 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
96 i386_debug_reg_state.
97 (amd64_linux_new_fork): New function.
98 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
99 linux_nat_new_fork hook, and i386_forget_process as
100 linux_nat_forget_process hook.
101 * i386-linux-nat.c (update_debug_registers_callback):
102 Update comment.
103 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
104 iterate_over_lwps.
105 (i386_linux_prepare_to_resume): Pass the lwp's pid to
106 i386_debug_reg_state.
107 (i386_linux_new_fork): New function.
108 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
109 linux_nat_new_fork hook, and i386_forget_process as
110 linux_nat_forget_process hook.
111 * i386-nat.c (i386_init_dregs): Delete.
112 (i386_inferior_data, struct i386_inferior_data):
113 Delete.
114 (struct i386_process_info): New.
115 (i386_process_list): New global.
116 (i386_find_process_pid, i386_add_process, i386_process_info_get):
117 New functions.
118 (i386_inferior_data_get): Delete.
119 (i386_process_info_get): New function.
120 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
121 (i386_forget_process): New function.
122 (i386_cleanup_dregs): Rewrite.
123 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
124 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
125 (i386_stopped_data_address, i386_insert_hw_breakpoint)
126 (i386_remove_hw_breakpoint): Adjust to pass the current process id
127 to i386_debug_reg_state.
128 (i386_use_watchpoints): Don't register inferior data.
129 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
130 adjust comment.
131 (i386_forget_process): Declare.
132 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
133 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
134 New static globals.
135 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
136 (add_initial_lwp): New, factored out from ...
137 (add_lwp): ... this. Don't check the number of lwps before
138 calling linux_nat_new_thread.
139 (linux_nat_iterate_watchpoint_lwps): Delete.
140 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
141 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
142 forks and vforks.
143 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
144 initial lwp.
145 (linux_nat_kill, linux_nat_mourn_inferior): Call
146 linux_nat_forget_process.
147 (linux_nat_set_new_fork, linux_nat_set_forget_process)
148 (linux_nat_forget_process): New functions.
149 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
150 type.
151 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
152 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
153 types.
154 (linux_nat_set_new_fork, linux_nat_set_forget_process)
155 (linux_nat_forget_process): New declarations.
156
157 * amd64fbsd-nat.c (super_mourn_inferior): New global.
158 (amd64fbsd_mourn_inferior): New function.
159 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
160 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
161
162 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
163
164 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
165 Adding _().
166
167 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
168
169 * aarch64-linux-nat.c (debug_reg_change_callback)
170 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
171 %s and phex().
172
173 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
174
175 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
176 with LONGEST.
177
178 2013-02-13 Pedro Alves <palves@redhat.com>
179 Hafiz Abid Qadeer <abidh@codesourcery.com>
180
181 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
182
183 2013-02-12 Tom Tromey <tromey@redhat.com>
184
185 PR symtab/11464:
186 * c-exp.y (lex_one_token): Initialize other fields of yylval on
187 NAME return.
188 (classify_inner_name): Remove 'first_name' argument, add
189 'context'. Remove unused variable.
190 (yylex): Explicitly maintain the context type. Exit loop earlier
191 if NAME result is seen.
192
193 2013-02-12 Pedro Alves <palves@redhat.com>
194
195 * amd64-darwin-tdep.c: Add (C) after Copyright.
196 * cli/cli-cmds.h: Ditto.
197 * cli/cli-decode.c: Ditto.
198 * cli/cli-decode.h: Ditto.
199 * cli/cli-dump.c: Ditto.
200 * cli/cli-dump.h: Ditto.
201 * cli/cli-interp.c: Ditto.
202 * cli/cli-logging.c: Ditto.
203 * cli/cli-script.c: Ditto.
204 * cli/cli-script.h: Ditto.
205 * cli/cli-setshow.c: Ditto.
206 * cli/cli-setshow.h: Ditto.
207 * cli/cli-utils.c: Ditto.
208 * cli/cli-utils.h: Ditto.
209 * config/alpha/nm-osf3.h: Ditto.
210 * config/djgpp/djconfig.sh: Ditto.
211 * config/i386/nm-fbsd.h: Ditto.
212 * config/i386/nm-i386gnu.h: Ditto.
213 * config/nm-linux.h: Ditto.
214 * config/nm-nto.h: Ditto.
215 * config/rs6000/nm-rs6000.h: Ditto.
216 * config/sparc/nm-sol2.h: Ditto.
217 * darwin-nat-info.c: Ditto.
218 * dfp.c: Ditto.
219 * dfp.h: Ditto.
220 * gdb-demangle.h: Ditto.
221 * i386-darwin-nat.c: Ditto.
222 * i386-darwin-tdep.c: Ditto.
223 * linux-fork.h: Ditto.
224 * m32c-tdep.c: Ditto.
225 * microblaze-linux-tdep.c: Ditto.
226 * microblaze-rom.c: Ditto.
227 * microblaze-tdep.c: Ditto.
228 * microblaze-tdep.h: Ditto.
229 * mips-linux-tdep.h: Ditto.
230 * ppc-ravenscar-thread.c: Ditto.
231 * ppc-ravenscar-thread.h: Ditto.
232 * prologue-value.c: Ditto.
233 * prologue-value.h: Ditto.
234 * ravenscar-thread.c: Ditto.
235 * ravenscar-thread.h: Ditto.
236 * sparc-ravenscar-thread.c: Ditto.
237 * sparc-ravenscar-thread.h: Ditto.
238 * tilegx-linux-tdep.c: Ditto.
239 * unwind_stop_reasons.def: Ditto.
240 * windows-nat.h: Ditto.
241 * xtensa-linux-tdep.c: Ditto.
242 * xtensa-xtregs.c: Ditto.
243 * regformats/regdat.sh: Ditto.
244 * regformats/regdef.h: Ditto.
245
246 2013-02-12 Pedro Alves <palves@redhat.com>
247
248 * break-catch-sig.c: Update copyright years.
249
250 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
251
252 Add support for a destructor for ui_out data and use it to
253 provide a ui_out destructor.
254 * ui-out.h: Declare the new ui_out destructor.
255 (ui_out_impl): Add a field for data destructor in ui_out_impl.
256 * ui-out.c (default_data_destroy): Add a default data destructor
257 which does nothing.
258 (default_ui_out_impl): Set the new data_destroy field to
259 default_data_destroy
260 (uo_data_destroy): Local function which invokes the data
261 destructor if present.
262 (clear_table): Local function which clears the table data of a
263 ui_out object.
264 (ui_out_destroy): Public function which frees a ui_out object.
265 (ui_out_table_end): Use the new clear_table function.
266 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
267 NULL.
268 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
269 to NULL.
270
271 2013-02-11 Doug Evans <dje@google.com>
272
273 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
274 (printf_decfloat): New function. Broken out from ui_printf.
275 Remove unnecessary code to shift the entire format string down.
276 (printf_pointer): New function.
277 (ui_printf): Code to print C strings, wide C strings, decfloats,
278 and pointers moved to separate functions.
279
280 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
281
282 * valops.c (value_assign): Handling bitfield offset in
283 `lval_internalvar_component' case.
284
285 2013-02-08 Doug Evans <dje@google.com>
286
287 * common/format.c (parse_format_string): Fix whitespace.
288
289 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
290
291 * stack.c (return_command): Work around uninitialized variable
292 warning.
293
294 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
295
296 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
297 number of the registers from 36 to 34.
298
299 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
300
301 * NEWS: Mention new AArch64 native and target support.
302
303 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
304
305 * MAINTAINERS (Write After Approval): Add myself.
306
307 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
308 Marcus Shawcroft <marcus.shawcroft@arm.com>
309 Nigel Stephens <nigel.stephens@arm.com>
310 Yufeng Zhang <yufeng.zhang@arm.com>
311
312 * aarch64-linux-nat.c: New file.
313 * config/aarch64/linux.mh: New file.
314 * configure.host: Add AArch64.
315 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
316
317 2013-02-07 Doug Evans <dje@google.com>
318
319 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
320 disassemble command.
321
322 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
323
324 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
325 set_gdbarch_fetch_tls_load_module_address.
326
327 2013-02-06 David S. Miller <davem@davemloft.net>
328
329 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
330 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
331 * value.c (struct_return_convention): New function.
332 (using_struct_return): Implement in terms of struct_return_convention.
333 * value.h (struct_return_convention): Declare.
334 * stack.c (return_command): Allow successful overriding of the return
335 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
336
337 2013-02-06 Tom Tromey <tromey@redhat.com>
338
339 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
340 outside of TRY_CATCH.
341
342 2013-02-06 Yao Qi <yao@codesourcery.com>
343
344 * mi/mi-interp.c: Include "tracepoint.h".
345 (mi_tsv_modified): Declare.
346 (mi_tsv_created, mi_tsv_deleted): Update declaration.
347 (mi_interpreter_init): Call observer_attach_tsv_modified.
348 (mi_tsv_modified): New.
349 (mi_tsv_created, mi_tsv_deleted): Update.
350 * tracepoint.c (trace_variable_command): Call
351 observer_notify_tsv_modified if the initial value of tsv is
352 changed.
353 (delete_trace_state_variable): Call
354 observer_notify_tsv_deleted earlier.
355 (trace_variable_command): Caller update.
356 (create_tsv_from_upload): Likewise.
357 * observer.sh: Declare "struct trace_state_variable".
358
359 * NEWS: Mention the new MI notification "=tsv-modified".
360
361 2013-02-05 Doug Evans <dje@google.com>
362
363 * completer.c (location_completer): Fix typo in comment.
364
365 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
366
367 * breakpoint.c (add_location_to_breakpoint): Insert the location with
368 ADDRESS sorted.
369
370 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
371
372 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
373 Refactor if statement to avoid trailing || operator.
374
375 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
376
377 * NEWS: Add PowerPC FreeBSD as a new native configuration.
378
379 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
380
381 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
382 * configure.host: Add powerpc*-*-freebsd* target.
383 * configure.tgt: Add target info for powerpc*-*-freebsd*.
384 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
385 * config/powerpc/fbsd.mh: New file.
386
387 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
388 Denys Vlasenko <dvlasenk@redhat.com>
389 Pedro Alves <palves@redhat.com>
390
391 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
392 (struct elf_internal_linux_prpsinfo): Forward declare.
393 * gdbarch.h, gdbarch.c: Regenerate.
394 * linux-tdep.c: Include `cli/cli-utils.h'.
395 (linux_fill_prpsinfo): New function.
396 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
397 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
398 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
399 depending on gdbarch pointer bitness.
400 * ppc-linux-tdep.c: Include elf-bfd.h.
401 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
402 on 32-bit.
403
404 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
405 Marcus Shawcroft <marcus.shawcroft@arm.com>
406 Nigel Stephens <nigel.stephens@arm.com>
407 Yufeng Zhang <yufeng.zhang@arm.com>
408
409 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
410
411 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
412 Marcus Shawcroft <marcus.shawcroft@arm.com>
413 Nigel Stephens <nigel.stephens@arm.com>
414 Yufeng Zhang <yufeng.zhang@arm.com>
415
416 * aarch64-newlib-tdep.c: New file.
417 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
418 aarch64*-*-elf.
419 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
420 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
421 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
422 * osabi.c (gdb_osabi_names): Add "Newlib".
423
424 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
425 Marcus Shawcroft <marcus.shawcroft@arm.com>
426 Nigel Stephens <nigel.stephens@arm.com>
427 Yufeng Zhang <yufeng.zhang@arm.com>
428
429 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
430 (ALLDEPFILES): Add aarch64-linux-tdep.c.
431 * aarch64-linux-tdep.c: New file.
432 * aarch64-linux-tdep.h: New file.
433 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
434 * configure.tgt: Add aarch64-none-linux-gnu.
435
436 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
437 Marcus Shawcroft <marcus.shawcroft@arm.com>
438 Nigel Stephens <nigel.stephens@arm.com>
439 Yufeng Zhang <yufeng.zhang@arm.com>
440
441 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
442 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
443 (ALLDEPFILES): Add aarch64-tdep.c.
444 * aarch64-tdep.c: New file.
445 * aarch64-tdep.h: New file.
446 * configure.tgt: Add AArch64.
447 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
448 (aarch64-expedite): New definition.
449 * features/aarch64-core.xml: New file.
450 * features/aarch64-fpu.xml: New file.
451 * features/aarch64-without-fpu.c: New file (generated).
452 * features/aarch64-without-fpu.xml: New file.
453 * features/aarch64.c: New file (generated).
454 * features/aarch64.xml: New file.
455 * regformats/aarch64-without-fpu.dat: New file (generated).
456 * regformats/aarch64.dat: New file (generated).
457
458 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
459
460 * contrib/expect-read1.c: New file.
461 * contrib/expect-read1.sh: New file.
462
463 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
464
465 * dwarf2read.c (file_file_name): New function with code from
466 file_full_name.
467 (file_full_name): Move most of the code to file_file_name.
468 (macro_start_file): Rename variable full_name to file_name and use
469 file_file_name for it. Add comp_dir parameter to new_macro_table.
470 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
471 macro_source_file->filename access by macro_source_fullname call.
472 * macroscope.c (_initialize_macroscope): Update the new_macro_table
473 caller.
474 * macrotab.c (struct macro_table): New field comp_dir.
475 (macro_include): New variables link_fullname and source_fullname.
476 Replace any macro_source_file->filename access by macro_source_fullname
477 call.
478 (macro_lookup_inclusion): Remove the partial filenames checking code.
479 (check_for_redefinition): New variables source_fullname and
480 found_key_fullname. Replace any macro_source_file->filename access by
481 macro_source_fullname call.
482 (macro_undef): New variables source_fullname and key_fullname. Replace
483 any macro_source_file->filename access by macro_source_fullname call.
484 (macro_lookup_definition): New variables retval and source_fullname.
485 Replace any macro_source_file->filename access by macro_source_fullname
486 call.
487 (foreach_macro): New variable key_fullname. Replace any
488 macro_source_file->filename access by macro_source_fullname call.
489 (foreach_macro_in_scope): New variable datum_fullname. Replace any
490 macro_source_file->filename access by macro_source_fullname call.
491 (new_macro_table): Add parameter comp_dir. Initialize T with it.
492 (macro_source_fullname): New function.
493 * macrotab.h (struct macro_source_file): Extent the filename field
494 comment.
495 (new_macro_table): New parameter comp_dir, add a comment for it.
496 (macro_source_fullname): new declaration.
497
498 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
499
500 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
501 this_real_name to outer block. Use it also for
502 compare_filenames_for_search.
503 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
504 with dw2_get_real_path for file_matcher, considering also
505 BASENAMES_MAY_DIFFER.
506 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
507
508 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
509
510 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
511 to the file_matcher parameter. Pass 0 to it.
512 (dwarf2_create_include_psymtab): Copy also DIRNAME.
513 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
514 NULL psymtab_to_fullname result.
515 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
516 an expected filename instead.
517 (expand_symtabs_matching_via_partial): Add basenames parameter to the
518 file_matcher parameter. Call also psymtab_to_fullname, after newly
519 considering BASENAMES_MAY_DIFFER.
520 * source.c (rewrite_source_path): Remove static.
521 * source.h (rewrite_source_path): New declaration.
522 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
523 the expand_symtabs_matching field. Comment it.
524 * symtab.c (file_matches): New function comment. Add parameter
525 basenames, implement it.
526 (search_symbols_file_matches): Add basenames parameter. Update the
527 file_matches caller.
528 (search_symbols): Match FILES also against symtab_to_fullname.
529 Optimize it for BASENAMES_MAY_DIFFER.
530
531 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
532
533 * source.c (print_source_lines_base): Print for TUI also "fullname".
534 * tui/tui-data.c (init_content_element): Change tui_locator_element
535 field to full_name.
536 * tui/tui-data.h (struct tui_locator_element): Likewise.
537 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
538 tui_update_locator_filename calls to tui_update_locator_fullname.
539 Replace symtab->filename refererence by symtab_to_fullname call.
540 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
541 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
542 field to full_name. Replace symtab->filename refererence by
543 symtab_to_fullname call.
544 (tui_show_symtab_source): Rename parameter to fullname. Change
545 tui_locator_element field to full_name.
546 * tui/tui-stack.c: Include source.h.
547 (tui_set_locator_filename): Rename the declaration to ...
548 (tui_set_locator_fullname): ... here. Rename its parameter to
549 fullname, updates its comment.
550 (tui_set_locator_info): Rename its parameter to fullname.
551 (tui_set_locator_filename): Rename the definition to ...
552 (tui_set_locator_fullname): ... here. Rename its parameter to
553 fullname, updates its comment. Change tui_locator_element field to
554 full_name.
555 (tui_set_locator_info): Rename its parameter to fullname.
556 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
557 (tui_update_locator_filename): Rename to ...
558 (tui_update_locator_fullname): ... here. Rename callee to
559 tui_set_locator_fullname.
560 (tui_show_frame_info): Replace symtab->filename refererence by
561 symtab_to_fullname call.
562 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
563 (tui_update_locator_fullname): ... here.
564 * tui/tui-winsource.c (tui_display_main): Rename the callee to
565 tui_update_locator_fullname. Replace symtab->filename refererence by
566 symtab_to_fullname call.
567 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
568 Rename the callee to tui_update_locator_fullname.
569 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
570
571 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
572
573 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
574 by symtab_to_filename_for_display calls.
575 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
576 (clear_command): New variable sal_fullname, initialize it. Replace
577 compare_filenames_for_search by filename_cmp with sal_fullname.
578 (say_where, update_static_tracepoint): Replace symtab->filename
579 refererences by symtab_to_filename_for_display calls.
580 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
581 Likewise.
582 * dwarf2read.c: Include source.h.
583 (fixup_go_packaging): Replace symtab->filename refererences by
584 symtab_to_filename_for_display calls.
585 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
586 Replace symtab->filename refererences by symtab_to_filename_for_display
587 calls.
588 (create_sals_line_offset, convert_linespec_to_sals): New variable
589 fullname, initialize it, replace symtab->filename reference by the
590 variable.
591 * linux-fork.c: Include source.h.
592 (info_checkpoints_command): Replace symtab->filename refererences by
593 symtab_to_filename_for_display calls.
594 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
595 by symtab_to_filename_for_display calls.
596 * mdebugread.c: Include source.h.
597 (psymtab_to_symtab_1): Replace symtab->filename refererences by
598 symtab_to_filename_for_display calls.
599 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
600 (mi_cmd_file_list_exec_source_files): Likewise.
601 * printcmd.c: Include source.h.
602 (build_address_symbolic): Replace symtab->filename refererences by
603 symtab_to_filename_for_display calls.
604 * psymtab.c (partial_map_symtabs_matching_filename)
605 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
606 with psymtab_to_fullname.
607 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
608 by symtab_to_filename_for_display calls.
609 (stpy_get_filename): New variable filename, initialize it, use instead
610 of symtab->filename refererences.
611 (salpy_str): Make variable filename const char *. Replace
612 symtab->filename refererences by symtab_to_filename_for_display calls.
613 * skip.c: Include source.h and filenames.h.
614 (skip_file_command): Remove const from the symtab variable. Replace
615 symtab->filename refererences by symtab_to_fullname call.
616 (function_name_is_marked_for_skip): New variables searched_for_fullname
617 and fullname. Use them to search also with symtab's fullname.
618 * source.c (find_source_lines): Replace symtab->filename refererences
619 by symtab_to_filename_for_display calls.
620 (print_source_lines_base): New variable filename, use it instead of
621 symtab->filename. Replace symtab->filename refererences by
622 symtab_to_filename_for_display calls.
623 (line_info, forward_search_command): Replace symtab->filename
624 refererences by symtab_to_filename_for_display calls.
625 (reverse_search_command): Replace symtab->filename refererences by
626 symtab_to_filename_for_display calls. New variable filename for it.
627 * stack.c (frame_info): Likewise.
628 * symmisc.c: Include source.h.
629 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
630 (maintenance_info_symtabs): Replace symtab->filename refererences by
631 symtab_to_filename_for_display calls.
632 * symtab.c (iterate_over_some_symtabs): Call
633 compare_filenames_for_search also with symtab_to_fullname.
634 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
635 symtab->filename refererences by symtab_to_filename_for_display calls.
636 (find_line_symtab): Replace symtab->filename refererences by
637 symtab_to_filename_for_display calls.
638 (file_matches): Replace filename_cmp by compare_filenames_for_search.
639 (print_symbol_info): Make the last parameter const char *. New
640 variable s_filename. Use it in the function.
641 (symtab_symbol_info): Make the last_filename variable const char *.
642 Replace symtab->filename refererences by symtab_to_filename_for_display
643 calls.
644 (rbreak_command): New variable fullname. Use it. Replace
645 symtab->filename refererence by symtab_to_filename_for_display call.
646 * tracepoint.c (set_traceframe_context, trace_find_line_command)
647 (print_one_static_tracepoint_marker): Replace symtab->filename
648 refererences by symtab_to_filename_for_display calls.
649 * tui/tui-source.c (tui_set_source_content): New variables filename and
650 s_filename. Replace symtab->filename refererences by this variable.
651 Replace other symtab->filename refererences by
652 symtab_to_filename_for_display calls.
653
654 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
655 Jan Kratochvil <jan.kratochvil@redhat.com>
656
657 Add a new variable that controls a way in which filenames are
658 displayed.
659 * NEWS (set filename-display): New entry.
660 * source.c (filename_display_basename, filename_display_relative)
661 (filename_display_absolute, filename_display_kind_names)
662 (filename_display_string, show_filename_display_string)
663 (symtab_to_filename_for_display): New.
664 (_initialize_source): Added initialization of 'filename-display'
665 variable.
666 * source.h (symtab_to_filename_for_display): Added declaration.
667 * stack.c (print_frame): Added new variable and calling of a new
668 function and condition with this variable. Changed third argument of
669 calling of a function.
670
671 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
672
673 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
674 Rename field reference filename to fullname.
675 * tui/tui-data.h (struct tui_source_info): Rename field filename to
676 fullname. New comment for it.
677 * tui/tui-source.c (tui_set_source_content): Rename field reference
678 filename to fullname. Initialize field by symtab_to_fullname now.
679 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
680 reference filename to fullname. Use symtab_to_fullname during
681 comparison.
682
683 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
684
685 Code cleanup.
686 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
687 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
688 filename to fullname. Rename variable this_name to this_fullname.
689 Lowercase FILENAME_CMP call.
690 (dw2_find_symbol_file): New comment for the returned string.
691 (dwarf2_gdb_index_functions): Rename the function to
692 dw2_expand_symtabs_with_fullname.
693 * psymtab.c (read_psymtabs_with_filename): Rename to ...
694 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
695 fullname.
696 (psym_functions): Rename the function to read_psymtabs_with_fullname.
697 * symfile.h (struct quick_symbol_functions): Rename field
698 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
699 parameter filename to fullname. Document returned string meaning for
700 find_symbol_file.
701 * symtab.c (find_line_symtab): Rename the called function to
702 expand_symtabs_with_fullname.
703
704 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
705
706 Code cleanup.
707 * breakpoint.c (clear_command): Remove variable is_abs, unify the
708 call of filename_cmp with compare_filenames_for_search.
709 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
710 is_abs, unify the call of FILENAME_CMP with
711 compare_filenames_for_search. New gdb_asserts for real_path and name.
712 Unify the call of compare_filenames_for_search with FILENAME_CMP.
713 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
714 * symfile.h (struct quick_symbol_functions): Extend the comment for
715 map_symtabs_matching_filename.
716 * symtab.c (compare_filenames_for_search): Remove the function comment
717 relative path requirement. Handle absolute filenames, with a comment.
718 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
719 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
720 real_path and name. Unify the call of compare_filenames_for_search
721 with FILENAME_CMP.
722 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
723
724 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
725
726 Code cleanup.
727 * breakpoint.c (print_breakpoint_location): Replace bp_location field
728 source_file references by symtab field references. Remove variables
729 sal and fullname.
730 (momentary_breakpoint_from_master, add_location_to_breakpoint):
731 (clear_command, say_where): Replace bp_location field source_file
732 references by symtab field references.
733 (bp_location_dtor): Remove the source_file reference.
734 (update_static_tracepoint): Replace bp_location field source_file
735 references by symtab field references.
736 (breakpoint_free_objfile): New function.
737 * breakpoint.h (struct bp_location): Extend the comment for line_number.
738 Replace the field source_file by field symtab, extend its comment.
739 (breakpoint_free_objfile): New declaration.
740 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
741 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
742 field source_file references by symtab field references.
743
744 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
745
746 Replace xfullpath calls by gdb_realpath calls.
747 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
748 function comment.
749 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
750 Remove it from the iterate_over_some_symtabs call.
751 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
752 Remove it from the dw2_map_expand_apply calls, remove a block handling
753 it.
754 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
755 Remove it from the iterate_over_some_symtabs call.
756 (partial_map_symtabs_matching_filename): Remove parameter full_path.
757 Remove it from the partial_map_expand_apply calls, remove a block
758 handling it. Drop gdb_realpath call and cleanups from the real_path
759 handling.
760 * source.c (openp): Drop the comment part about xfullpath. Replace
761 xfullpath calls by gdb_realpath calls.
762 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
763 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
764 from method map_symtabs_matching_filename and its comment.
765 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
766 gdb_realpath call.
767 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
768 remove it also from the function comment, remove a block handling it.
769 Drop gdb_realpath call and cleanups from the real_path handling.
770 (iterate_over_symtabs): Drop variable full_path and its use.
771 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
772 * utils.c (xfullpath): Remove.
773 * utils.h (xfullpath): Remove.
774
775 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
776
777 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
778 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
779 (ALLDEPFILES): Add ppc64-tdep.c.
780 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
781 ppc64-tdep.o to gdb_target_obs.
782 * ppc64-tdep.h: New file.
783 * ppc64-tdep.c: New file.
784 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
785 ppc-linux-tdep.c to here.
786 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
787 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
788 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
789 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
790 from ppc-linux-tdep.c to here.
791 (ppc64_convert_from_func_ptr_addr): Rename from
792 ppc64_linux_convert_from_func_ptr_addr to
793 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
794 here.
795 * rs6000-tdep.c:
796 (read_insn): Move from ppc-linux-tdep.c to here.
797 (insns_match_pattern, insn_d_field, insn_ds_field): Move
798 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
799 * ppc-linux-tdep.c: Include ppc64-tdep.h.
800 Removed above functions.
801 (ppc_linux_init_abi): Adjust.
802
803 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
804
805 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
806
807 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
808
809 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
810
811 2013-02-01 Pedro Alves <palves@redhat.com>
812
813 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
814 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
815
816 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
817
818 * elfread.c (elf_symfile_read): Limit separate debug info additions to
819 files with no separate debug info.
820 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
821 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
822 only for files with no separate debug info.
823
824 2013-01-31 Tom Tromey <tromey@redhat.com>
825
826 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
827 change type.
828 (struct jit_program_space_data): Rename from jit_inferior_data.
829 Update comments.
830 (get_jit_program_space_data): Rename from get_jit_inferior_data.
831 Change return type. Attach data to program space.
832 (jit_program_space_data_cleanup): Rename from
833 jit_inferior_data_cleanup; change argument type.
834 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
835 change type.
836 (jit_register_code): Update.
837 (jit_update_inferior_cache): Remove.
838 (jit_breakpoint_deleted): Get jit data from the location's program
839 space.
840 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
841 'ps_data', change type.
842 (jit_inferior_init, jit_breakpoint_re_set_internal)
843 (jit_event_handler): Update.
844 (free_objfile_data): Get data from objfile's program space.
845 (_initialize_jit): Update.
846
847 2013-01-31 Tom Tromey <tromey@redhat.com>
848
849 PR gdb/13987:
850 * jit.c (struct jit_inferior_data) <cached_code_address,
851 jit_breakpoint>: New fields.
852 (jit_breakpoint_re_set_internal): Fix logging. Only create
853 breakpoint if cached address has changed.
854 (jit_update_inferior_cache, jit_breakpoint_deleted): New
855 functions.
856 (_initialize_jit): Register breakpoint deleted observer.
857
858 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
859
860 * infrun.c (handle_syscall_event): Remove unused gdbarch.
861 (save_infcall_suspend_state): Ifdef out unused inf.
862 (restore_infcall_suspend_state): Ifdef out unused inf.
863 * jit.c (jit_register_code): Remove unused i, b, inf_data.
864 (jit_frame_sniffer): Remove unused inf_data.
865
866 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
867
868 * c-exp.y (classify_inner_name): Remove unused type.
869 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
870 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
871 need_escape.
872 (c_get_string): Remove unused kind.
873 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
874
875 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
876
877 * charset.c (intermediate_encoding): Remove unused i.
878 * completer.c (signal_completer): Remove unused i.
879 * continuations.c (discard_my_continuations_1): Remove unused
880 continuation_ptr.
881 * corelow.c (core_close): Remove unuseD name.
882 (get_core_siginfo): Remove unused pid.
883 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
884 i, cps.
885 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
886 (loclist_describe_location): Remove unused first.
887 * event-top.c (command_line_handler): Remove unused got_eof.
888 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
889 (resize_section_table): Remove unused old_value.
890 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
891 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
892 * i386-tdep.c (i386_process_record): Remove unused rex.
893 * infcmd.c (get_return_value): Remove unused uiout.
894 * jv-lang.c (type_from_class): Remove unused is_array.
895 * jv-valprint.c (java_val_print): Remove unused i.
896 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
897 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
898 * m2-typeprint.c (m2_print_type): Remove unused code.
899 * macroexp.c (get_character_constant): Remove unused body_start.
900 (macro_stringify): Remove unused result.
901 * objc-lang.c (find_methods): Remove unused gdbarch.
902 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
903 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
904 * stack.c (print_frame_args): Remove unused summary.
905 * thread.c (thread_apply_command): Remove unused p.
906 * valarith.c (value_x_unop): Remove unused mangle_ptr.
907 * valops.c (search_struct_method): Remove unused skip.
908 * valprint.c (generic_val_print): Remove unused byte_order.
909 * varobj.c (varobj_update): Remove unused changed.
910 * cli/cli-cmds.c (complete_command): Remove unused next_item.
911 (alias_command): Remove unused c.
912 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
913 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
914 format.
915 (mi_cmd_data_write_memory): Remove unused word_format.
916 (mi_cmd_data_write_memory_bytes): Remove unused r.
917 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
918 p_start, p_end.
919 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
920 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
921 line_width.
922
923 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
924
925 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
926 * symtab.c (iterate_over_symtabs): Remove unused s.
927 (find_pc_sect_symtab): Remove unused pspAce.
928 (find_pc_sect_line): Remove unused alt_symtab.
929 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
930 (completion_list_add_name): Remove unused newsize.
931
932 2013-01-31 Tom Tromey <tromey@redhat.com>
933
934 PR c++/14998:
935 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
936 TYPE_CODE_FUNC.
937
938 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
939
940 * target.c (target_read_string): Remove unused origlen.
941
942 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
943
944 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
945 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
946 * ax-general.c (ax_print): Remove unused is_float.
947 * blockframe.c (block_innermost_frame): Remove unused start, end.
948 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
949
950 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
951
952 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
953 (svr4_read_so_list): Remove unused lmo.
954 * solib-target.c (solib_target_relocate_section_addresses): Remove
955 unused flags.
956
957 2013-01-30 Tom Tromey <tromey@redhat.com>
958
959 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
960
961 2013-01-30 Tom Tromey <tromey@redhat.com>
962
963 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
964 * utils.c (gnu_debuglink_crc32): Remove.
965 * utils.h (gnu_debuglink_crc32): Don't declare.
966
967 2013-01-30 Tom Tromey <tromey@redhat.com>
968
969 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
970 (read_structure_type, read_enumeration_type): Remove cast.
971
972 2013-01-30 Tom Tromey <tromey@redhat.com>
973
974 * dwarf2read.c (read_namespace_type): Remove cast.
975 (read_typedef): Likewise.
976
977 2013-01-29 Tom Tromey <tromey@redhat.com>
978
979 * dwarf2read.c (free_dwo_file): Remove assert.
980
981 2013-01-29 Tom Tromey <tromey@redhat.com>
982
983 * value.c (deprecated_set_value_modifiable): Remove.
984 * value.h (deprecated_set_value_modifiable): Remove.
985
986 2013-01-28 Doug Evans <dje@google.com>
987
988 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
989 to addresses from dwo files.
990
991 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
992
993 * valops.c (find_overload_match): Remove unused argument 'lax'.
994 * value.h: Remove unused argument 'lax' from the declaration of
995 find_overload_match.
996 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
997 to find_overload_match.
998 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
999 argument to find_overload_match.
1000
1001 2013-01-25 Tom Tromey <tromey@redhat.com>
1002
1003 * dwarf2read.c (processing_has_namespace_info): Remove.
1004 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1005 (process_die, read_func_scope, dwarf2_start_symtab)
1006 (new_symbol_full): Update.
1007
1008 2013-01-25 Tom Tromey <tromey@redhat.com>
1009
1010 * cp-namespace.c (cp_set_block_scope): Remove.
1011 * cp-support.h (cp_set_block_scope): Remove.
1012 * dbxread.c: Include block.h.
1013 (cp_set_block_scope): New function.
1014 (process_one_symbol): Update.
1015 * dwarf2read.c (read_func_scope): Use block_set_scope.
1016
1017 2013-01-25 Pedro Alves <palves@redhat.com>
1018
1019 * remote.c (add_current_inferior_and_thread): Tweak comment.
1020
1021 2013-01-25 Tom Tromey <tromey@redhat.com>
1022
1023 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1024 (cp_add_using_directive): Add 'copy_names' argument.
1025 * cp-support.h (cp_add_using_directive): Update.
1026 (struct using_direct) <import_src, import_dest, alias,
1027 declaration>: Now const.
1028 * dwarf2read.c (read_import_statement): Use obconcat.
1029 Don't copy names passed to cp_add_using_directive.
1030
1031 2013-01-25 Tom Tromey <tromey@redhat.com>
1032
1033 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1034
1035 2013-01-25 Pedro Alves <palves@redhat.com>
1036
1037 * remote.c (stop_reply_extract_thread): New.
1038 (add_current_inferior_and_thread): New parameter 'wait_status'.
1039 Handle it.
1040 (remote_start_remote): Pass wait status to
1041 add_current_inferior_and_thread.
1042 (extended_remote_run): Update comment.
1043 (extended_remote_create_inferior_1): Pass wait status to
1044 add_current_inferior_and_thread.
1045
1046 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1047 Ulrich Weigand <uweigand@de.ibm.com>
1048
1049 * valarith.c (value_vector_widen): New function for replicating a
1050 scalar into a vector.
1051 (value_binop): Use value_vector_widen to widen scalar to vector
1052 rather than casting, this better matches gcc C behaviour.
1053 * valops.c (value_casst): Update logic for casting between vector
1054 types, and for casting from scalar to vector, try to match gcc C
1055 behaviour.
1056 * value.h (value_vector_widen): Declare.
1057 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1058 function, handle special case for casting scalar to vector.
1059 (opencl_relop): Use opencl_value_cast.
1060 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1061 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1062 in order to use opencl_value_cast.
1063
1064 2013-01-25 Yao Qi <yao@codesourcery.com>
1065
1066 * event-loop.c: Include "queue.h".
1067 (gdb_event_p): New typedef.
1068 (DECLARE_QUEUE_P): Use.
1069 (DEFINE_QUEUE_P): Use.
1070 (async_queue_event): Remove.
1071 (gdb_event_xfree): New.
1072 (initialize_event_loop): New.
1073 (process_event): Use QUEUE macros.
1074 (event_queue): Remove.
1075 (gdb_wait_for_event): Caller update.
1076 (check_async_event_handlers): Likewise.
1077 (poll_timers): Likewise.
1078 * event-loop.h (initialize_event_loop): Declare.
1079 * event-loop.c (gdb_event_xfree): New.
1080 * top.c (gdb_init): Call initialize_event_loop.
1081
1082 2013-01-25 Yao Qi <yao@codesourcery.com>
1083
1084 * event-loop.c (async_queue_event): Remove one parameter
1085 'position'. Remove code handling 'position' == TAIL.
1086 (gdb_wait_for_event): Caller update.
1087 (check_async_event_handlers): Caller update.
1088 (poll_timers): Caller update.
1089 * event-loop.h (enum queue_position): Remove.
1090
1091 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1092
1093 * MAINTAINERS: Update my email.
1094
1095 2013-01-25 Yao Qi <yao@codesourcery.com>
1096
1097 * main.c (print_gdb_help): Remove "--epoch" from the help
1098 message.
1099
1100 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1101
1102 * symtab.c (skip_prologue_using_sal): Consider a file
1103 change the same as an increased line number
1104
1105 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1106
1107 * MAINTAINERS (Write After Approval): Add myself to the list.
1108
1109 2013-01-24 Tom Tromey <tromey@redhat.com>
1110
1111 * ada-lang.h (ada_decode_symbol): Make return type const.
1112 * ada-lang.c (ada_decode_symbol): Likewise.
1113
1114 2013-01-23 Doug Evans <dje@google.com>
1115
1116 * linespec.c (find_linespec_symbols): Make static.
1117
1118 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1119
1120 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1121 type on float conversion for complex type.
1122
1123 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1124
1125 Add a new class gdb.Architecture which exposes GDB's
1126 internal representation of architecture via GDB Python API.
1127 * Makefile.in: Add entries corresponding to the new file
1128 python/py-arch.c.
1129 * NEWS (Python Scripting): Add entries for the new class
1130 gdb.Architecture and the new method gdb.Frame.architecture.
1131 * python/py-arch.c: Implement gdb.Architecture class.
1132 * python/py-frame.c (frapy_arch): Implement the method
1133 gdb.Frame.architecture().
1134 (frame_object_methods): Add 'architecture' to the method table.
1135 * python/python-internal.h: Add declarations of new utility
1136 functions.
1137 * python/python.c (_initialize_python): Initialize
1138 gdb.Architecture class.
1139
1140 2013-01-23 Doug Evans <dje@google.com>
1141
1142 Work around binutils/15021.
1143 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1144 type_unit_group out of union s. All uses updated.
1145 (read_index_from_section): Watch for index version 8.
1146 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1147 an imported symtab.
1148 (write_psymtabs_to_index): Increment version number to 8.
1149
1150 2013-01-22 Pedro Alves <palves@redhat.com>
1151
1152 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1153 user-visible.
1154
1155 2013-01-22 Pedro Alves <palves@redhat.com>
1156
1157 * annotate.c (annotate_breakpoints_changed): Rename to ...
1158 (annotate_breakpoints_invalid): ... this. Make static.
1159 (breakpoint_changed): Adjust.
1160 (_initialize_annotate): Always install the observers. Install a
1161 "breakpoint_created" observer.
1162 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1163 * breakpoint.c (set_breakpoint_condition)
1164 (breakpoint_set_commands, do_map_commands_command)
1165 (init_raw_breakpoint, clear_command, set_ignore_count)
1166 (enable_breakpoint_disp): No longer call
1167 annotate_breakpoints_changed.
1168
1169 2013-01-22 Pedro Alves <palves@redhat.com>
1170
1171 * annotate.c: Include "inferior.h".
1172 (frames_invalid_emitted)
1173 (breakpoints_invalid_emitted): New globals.
1174 (async_background_execution_p): New function.
1175 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1176 emitting the annotation if it has already been emitted.
1177 (annotate_display_prompt): New function.
1178 * annotate.h (annotate_display_prompt): New declaration.
1179 * event-top.c: Include annotate.h.
1180 (display_gdb_prompt): Call annotate_display_prompt.
1181
1182 2013-01-22 Pedro Alves <palves@redhat.com>
1183
1184 * annotate.c (ignore_count_changed): Delete.
1185 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1186 (annotate_ignore_count_change): Delete.
1187 (annotate_stopped): Don't emit a delayed breakpoints-changed
1188 annotation.
1189 * annotate.h (annotate_ignore_count_change): Delete.
1190 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1191 annotate_ignore_count_change.
1192
1193 2013-01-22 Tom Tromey <tromey@redhat.com>
1194
1195 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1196 require_rvalue for a register location.
1197
1198 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1199
1200 * breakpoint.c (print_one_breakpoint_location): Add MI
1201 field 'thread-groups' when printing a breakpoint.
1202 (output_thread_groups): New function.
1203
1204 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1205
1206 * python/lib/gdb/commands/explore.py
1207 (CompoundExplorer.explore_expr): Correct the name of a method
1208 being invoked.
1209 (ExploreTypeCommand.invoke): Add a missing 'return'.
1210
1211 2013-01-21 Tom Tromey <tromey@redhat.com>
1212
1213 * gdb_obstack.h (obconcat): Move declaration here, from...
1214 * symfile.h (obconcat): ... here.
1215 * gdb_obstack.c: New file.
1216 (obconcat): Move from...
1217 * symfile.c (obconcat): ... here.
1218 * Makefile.in (SFILES): Add gdb_obstack.c.
1219 (COMMON_OBS): Add gdb_obstack.o.
1220
1221 2013-01-21 Tom Tromey <tromey@redhat.com>
1222
1223 * symfile.h (obsavestring): Don't declare.
1224 * symfile.c (obsavestring): Remove.
1225 * ada-exp.y: Use obstack_copy0, not obsavestring.
1226 * ada-lang.c: Use obstack_copy0, not obsavestring.
1227 * coffread.c: Use obstack_copy0, not obsavestring.
1228 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1229 * dbxread.c: Use obstack_copy0, not obsavestring.
1230 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1231 * jit.c: Use obstack_copy0, not obsavestring.
1232 * mdebugread.c: Use obstack_copy0, not obsavestring.
1233 * psymtab.c: Use obstack_copy0, not obsavestring.
1234 * stabsread.c: Use obstack_copy0, not obsavestring.
1235 * xcoffread.c: Use obstack_copy0, not obsavestring.
1236
1237 2013-01-21 Tom Tromey <tromey@redhat.com>
1238
1239 * dwarf2read.c (fixup_go_packaging): Save package name
1240 on objfile obstack.
1241 * gdbtypes.c (init_type): Don't copy name.
1242
1243 2013-01-21 Tom Tromey <tromey@redhat.com>
1244
1245 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1246 const.
1247 (struct attribute) <u.str>: Now const.
1248 (struct fnfieldlist) <name>: Now const.
1249 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1250 (partial_die_parent_scope): Make return type const.
1251 (partial_die_full_name, add_partial_symbol): Update.
1252 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1253 'name' const.
1254 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1255 (read_file_scope, read_func_scope, dwarf2_add_field)
1256 (dwarf2_add_member_fn, read_structure_type)
1257 (process_enumeration_scope, read_array_type, read_module_type)
1258 (read_base_type, read_subrange_type): Update.
1259 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1260 (new_symbol_full, guess_full_die_structure_name): Update.
1261 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1262 (dwarf2_name): Return const type.
1263 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1264 const.
1265
1266 2013-01-21 Tom Tromey <tromey@redhat.com>
1267
1268 * gdbtypes.c (init_type): Make 'name' const.
1269 * gdbtypes.h (init_type): Update.
1270
1271 2013-01-21 Tom Tromey <tromey@redhat.com>
1272
1273 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1274 (start_symtab): Make 'name' and 'dirname' const. Use
1275 set_last_source_file.
1276 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1277 (last_source_file): Define. Now static.
1278 (set_last_source_file, get_last_source_file): New functions.
1279 * buildsym.h (last_source_file): Don't declare.
1280 (start_symtab): Update.
1281 (set_last_source_file, get_last_source_file): Declare.
1282 * coffread.c (complete_symtab): Use set_last_source_file.
1283 (coff_end_symtab): Likewise.
1284 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1285 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1286 set_last_source_file.
1287 (process_one_symbol): Use get_last_source_file.
1288 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1289 (psymtab_to_symtab_1): Use get_last_source_file.
1290 * xcoffread.c (process_linenos): Use get_last_source_file.
1291 (complete_symtab): Use set_last_source_file.
1292 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1293 (scan_xcoff_symtab): Use set_last_source_file.
1294
1295 2013-01-21 Tom Tromey <tromey@redhat.com>
1296
1297 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1298 (symbol_set_names): Remove casts. Handle field const-ness.
1299
1300 2013-01-21 Tom Tromey <tromey@redhat.com>
1301
1302 * dwarf2read.c (new_symbol_full): Remove cast.
1303 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1304 * symtab.h (symbol_set_demangled_name): Update.
1305
1306 2013-01-21 Tom Tromey <tromey@redhat.com>
1307
1308 * main.c (captured_main): Call bfd_init.
1309
1310 2013-01-21 Tom Tromey <tromey@redhat.com>
1311
1312 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1313 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1314 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1315 * NEWS: Update.
1316
1317 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1318
1319 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1320
1321 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1322
1323 Fix gdb.fortran/common-block.exp crash in PIE mode.
1324 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1325 LOC_COMMON_BLOCK.
1326 * f-valprint.c (info_common_command_for_block): Expect
1327 LOC_COMMON_BLOCK in gdb_assert.
1328 * symtab.h (struct general_symbol_info): Update comment for the
1329 common_block member.
1330 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1331 (enum address_class): New member LOC_COMMON_BLOCK.
1332
1333 2013-01-18 David Blaikie <dblaikie@gmail.com>
1334
1335 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1336
1337 2013-01-18 Tom Tromey <tromey@redhat.com>
1338
1339 PR c++/14999:
1340 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1341 Call require_rvalue.
1342
1343 2013-01-18 Yao Qi <yao@codesourcery.com>
1344
1345 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1346 (dbx_read_symtab): New declaration.
1347 (dbx_psymtab_to_symtab): Delete.
1348 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1349 Rename parameter PST to SELF. Exchanged two parameters.
1350 (start_psymtab): Caller update.
1351 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1352 (dwarf2_read_symtab): New declaration.
1353 (dwarf2_psymtab_to_symtab): Delete.
1354 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1355 Rename parameter PST to SELF. Exchanged two parameters.
1356 (create_partial_symtab): Caller update.
1357 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1358 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1359 Rename parameter PST to SELF. Exchanged two parameters.
1360 (parse_partial_symbols, new_psymtab): Caller update.
1361 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1362 two parameters.
1363 * psymtab.c (psymtab_to_symtab): Caller update.
1364 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1365 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1366 Rename parameter PST to SELF. Exchanged two parameters.
1367 (xcoff_start_psymtab): Caller update.
1368
1369 2013-01-18 Yao Qi <yao@codesourcery.com>
1370
1371 * infrun.c (proceed): Rename local variable 'oneproc' to
1372 'force_step'.
1373
1374 2013-01-17 Doug Evans <dje@google.com>
1375
1376 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1377 (dw2_build_type_unit_groups): Delete. All uses updated.
1378
1379 * symtab.h (struct symbol_search): Add comment.
1380
1381 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1382
1383 * symtab.c (compare_filenames_for_search): New comment for
1384 HAS_DRIVE_SPEC.
1385
1386 2013-01-17 Tom Tromey <tromey@redhat.com>
1387
1388 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1389
1390 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1391
1392 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1393 initialize it by existing make_cleanup. Call new do_cleanups.
1394
1395 2013-01-17 Tom Tromey <tromey@redhat.com>
1396
1397 * cp-abi.c (cp_abi_completer): New function.
1398 (_initialize_cp_abi): Set completer for "set cp-abi".
1399
1400 2013-01-17 Tom Tromey <tromey@redhat.com>
1401
1402 * mem-break.c: Remove obsolete comment.
1403 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1404
1405 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1406
1407 * jit.c (jit_reader_load_command): Interpret the jit reader name
1408 as an absolute path if it begins with a forward slash.
1409
1410 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1411
1412 PR gdb/14550
1413
1414 * jit.c (finalize_symtab): Ensure that only the global block has a
1415 NULL superblock.
1416
1417 2013-01-17 Pedro Alves <palves@redhat.com>
1418
1419 * acinclude.m4: Include ../config/plugins.m4,
1420 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1421 * Makefile.in (aclocal_m4_deps): Update.
1422 * aclocal.m4: Renegerate.
1423
1424 2013-01-16 Doug Evans <dje@google.com>
1425
1426 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1427
1428 2013-01-16 Pedro Alves <palves@redhat.com>
1429 Tom Tromey <tromey@redhat.com>
1430
1431 PR cli/7221:
1432 * NEWS: Add "catch signal".
1433 * breakpoint.c (base_breakpoint_ops): No longer static.
1434 (bpstat_explains_signal): New function.
1435 (init_catchpoint): No longer static.
1436 (base_breakpoint_explains_signal): New function.
1437 (base_breakpoint_ops): Initialize new field.
1438 * breakpoint.h (enum bpstat_signal_value): New.
1439 (struct breakpoint_ops) <explains_signal>: New field.
1440 (bpstat_explains_signal): Remove macro, declare as function.
1441 (base_breakpoint_ops, init_catchpoint): Declare.
1442 * break-catch-sig.c: New file.
1443 * inferior.h (signal_catch_update): Declare.
1444 * infrun.c (signal_catch): New global.
1445 (handle_syscall_event): Update for change to
1446 bpstat_explains_signal.
1447 (handle_inferior_event): Likewise. Always handle random signals
1448 via bpstats.
1449 (signal_cache_update): Check signal_catch.
1450 (signal_catch_update): New function.
1451 (_initialize_infrun): Initialize signal_catch.
1452 * Makefile.in (SFILES): Add break-catch-sig.c.
1453 (COMMON_OBS): Add break-catch-sig.o.
1454
1455 2013-01-16 Tom Tromey <tromey@redhat.com>
1456
1457 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1458 (print_one_catch_solib, print_one_catch_syscall)
1459 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1460 "catch-type".
1461
1462 2013-01-16 Yao Qi <yao@codesourcery.com>
1463
1464 * printcmd.c (current_display_number): Make it static.
1465
1466 2013-01-16 Yao Qi <yao@codesourcery.com>
1467
1468 * infcmd.c (step_once): Don't check '!single_inst' as it was
1469 checked before.
1470
1471 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1472
1473 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1474
1475 2013-01-14 Tom Tromey <tromey@redhat.com>
1476
1477 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1478 set command.
1479 * command.h (add_setshow_string_noescape_cmd): Update.
1480 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1481 (complete_set_gnutarget): New function.
1482 (_initialize_core): Set the "set gnutarget" completer.
1483
1484 2013-01-14 Tom Tromey <tromey@redhat.com>
1485
1486 PR symtab/14442:
1487 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1488 (c_type_print_modifier): Likewise.
1489 * dwarf2read.c (read_tag_restrict_type): New function.
1490 (read_type_die_1): Handle DW_TAG_restrict_type.
1491 * gdbtypes.c (make_restrict_type): New function.
1492 (recursive_dump_type): Handle TYPE_RESTRICT.
1493 * gdbtypes.h (enum type_flag_values): Renumber.
1494 (enum type_instance_flag_value): Add
1495 TYPE_INSTANCE_FLAG_RESTRICT.
1496 (TYPE_RESTRICT): New macro.
1497 (make_restrict_type): Declare.
1498
1499 2013-01-14 Tom Tromey <tromey@redhat.com>
1500
1501 PR symtab/14931:
1502 * psymtab.c (struct psymtab_state): New.
1503 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1504 functions.
1505 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1506 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1507
1508 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1509 Pedro Alves <palves@redhat.com>
1510
1511 PR remote/14786
1512
1513 * remote.c (remote_threads_info): Make a copy of the reply from
1514 qfThreadInfo and use that instead of rs->buf.
1515
1516 2013-01-14 Yao Qi <yao@codesourcery.com>
1517
1518 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1519 (dbx_psymtab_to_symtab): Likewise.
1520 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1521 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1522 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1523
1524 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1525
1526 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1527 make_cleanup_restore_current_language. Call set_language. Move
1528 OLD_CHAIN and INNER_CHAIN cleanups.
1529 * utils.c (do_restore_current_language)
1530 (make_cleanup_restore_current_language): New functions.
1531 * utils.h (make_cleanup_restore_current_language): New declaration.
1532
1533 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1534
1535 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1536 non-existing files.
1537
1538 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1539 non-existing files if FILENAME is already absolute.
1540
1541 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1542
1543 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1544 fputs_filtered. Append trailing newline.
1545
1546 2013-01-11 Yao Qi <yao@codesourcery.com>
1547 Stan Shebs <stan@codesourcery.com>
1548
1549 * psymtab.c (init_psymbol_list): Clarify the comment.
1550
1551 2013-01-11 Yao Qi <yao@codesourcery.com>
1552
1553 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1554 (update_dprintf_command_list): Assert that 'printf_line' is
1555 non-null. Remove condition check.
1556
1557 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1558
1559 Code cleanup.
1560 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1561 type const char *.
1562 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1563 const char *.
1564 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1565
1566 2013-01-09 Anthony Green <green@moxielogic.com>
1567
1568 * cp-abi.c (cplus_print_vtable): Don't return value from void
1569 function.
1570 * ada-lang.c (re_set_catch_assert): Ditto.
1571
1572 2013-01-09 Doug Evans <dje@google.com>
1573
1574 * symfile.h (quick_symbol_functions): Delete member
1575 pre_expand_symtabs_matching. All uses removed.
1576 * dwarf2read.c (dw2_lookup_symbol): Implement.
1577 (dw2_do_expand_symtabs_matching): Delete.
1578 (dw2_pre_expand_symtabs_matching): Delete.
1579 (struct dw2_symtab_iterator): New type.
1580 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1581 (dw2_expand_symtabs_for_function): Rewrite.
1582 (dwarf2_gdb_index_functions): Update.
1583 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1584 (psym_functions): Update.
1585
1586 2013-01-09 Tom Tromey <tromey@redhat.com>
1587
1588 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1589 * configure: Rebuild.
1590 * configure.ac: Add somread.o to the build if BFD has SOM
1591 support.
1592 * somread.c: Include som/aout.h, not syms.h.
1593 (som_symtab_read): Use som_external_symbol_dictionary_record.
1594 Unpack records manually.
1595 (_initialize_somread): Declare.
1596
1597 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1598
1599 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1600 Cast return_address to 64bits.
1601
1602 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1603
1604 * printcmd.c: Remove define of function output_command.
1605 * tracepoint.c: Remove extern of function output_command.
1606 * valprint.h: (output_command): New extern.
1607
1608 2013-01-07 Tom Tromey <tromey@redhat.com>
1609
1610 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1611 Remove.
1612 (objc_language_defn): Use c_printchar, c_printstr,
1613 c_emit_char.
1614
1615 2013-01-07 Tom Tromey <tromey@redhat.com>
1616
1617 PR cli/7719:
1618 * NEWS: Update.
1619 * ada-valprint.c (printstr, print_field_values): Remove
1620 "inspect_it" code.
1621 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1622 code.
1623 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1624 code.
1625 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1626 * main.c (captured_main): Remove "epoch" argument.
1627 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1628 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1629 * p-valprint.c (pascal_object_print_value_fields): Remove
1630 "inspect_it" code.
1631 * printcmd.c (print_command_1): Remove 'inspect' argument.
1632 (print_command, call_command): Update.
1633 (inspect_command): Remove.
1634 (_initialize_printcmd): Make "inspect" an alias for "print".
1635 * top.c (epoch_interface): Remove.
1636 * top.h (epoch_interface): Remove.
1637 * valprint.c (user_print_options): Update.
1638 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1639 * valprint.h (struct value_print_options) <inspect_it>: Remove
1640 field.
1641
1642 2013-01-04 Tom Tromey <tromey@redhat.com>
1643
1644 * valprint.h (read_string): Add 'extern'.
1645
1646 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1647
1648 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1649 used to decide whether to define darwin_read_dyld_info or not.
1650
1651 2013-01-03 Pierre Muller <muller@sourceware.org>
1652
1653 * main.c (relocate_gdb_directory): Avoid calling stat function
1654 if DIR is empty.
1655
1656 2013-01-03 Yao Qi <yao@codesourcery.com>
1657
1658 * psymtab.c (fixup_psymbol_section): Update declaration.
1659 (fixup_psymbol_section): Remove code returning value.
1660
1661 2013-01-03 Yao Qi <yao@codesourcery.com>
1662
1663 * symtab.h: Remove some out of date comments.
1664 (enum exception_event_kind): Move it ...
1665 * breakpoint.c: ... here.
1666
1667 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1668
1669 PR gdb/14405
1670 * darwin-nat.c (darwin_read_dyld_info): Only build if
1671 TASK_DYLD_INFO_COUNT is defined.
1672 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1673 TASK_DYLD_INFO_COUNT is defined.
1674
1675 2013-01-02 Tom Tromey <tromey@redhat.com>
1676
1677 * symfile.h (struct ecoff_debug_hack): Remove.
1678 * objfiles.c: Don't include mdebugread.h.
1679
1680 2013-01-02 Tom Tromey <tromey@redhat.com>
1681
1682 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1683 * configure.ac: Check for Mach-O support in BFD. Update
1684 CONFIG_OBS.
1685 * configure: Rebuild.
1686
1687 2013-01-02 Tom Tromey <tromey@redhat.com>
1688
1689 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1690 * configure.ac: Use GDB_AC_CHECK_BFD.
1691 * configure: Rebuild.
1692
1693 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1694
1695 * MAINTAINERS: Update my email.
1696
1697 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1698
1699 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1700
1701 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1702
1703 * rs6000-nat.c (bss_data_overlap): New function.
1704 (vmap_symtab): Use it to adjust the .bss section's offset.
1705
1706 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1707
1708 Update year range in copyright notice of all files.
1709
1710 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1711
1712 * top.c (print_gdb_version): Update copyright year.
1713
1714 For older changes see ChangeLog-2012.
1715 \f
1716 Local Variables:
1717 mode: change-log
1718 left-margin: 8
1719 fill-column: 74
1720 version-control: never
1721 coding: utf-8
1722 End: