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